game.min.js 895 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507
  1. var c = c || {};
  2. c.H = c.H || {};
  3. c.f = {};
  4. p = window;
  5. p = Object.prototype;
  6. delete window._p;
  7. c.ac = function(a) {
  8. return document.createElement(a)
  9. };
  10. c.Ra = function(a, b, d, e) {
  11. a.addEventListener(b, d, e)
  12. };
  13. c.IM = "undefined" !== typeof require && require("fs");
  14. c.Rn = function(a, b, d) {
  15. if (a) if (a instanceof Array) for (var e = 0, f = a.length; e < f && !1 !== b.call(d, a[e], e); e++);
  16. else for (e in a) if (!1 === b.call(d, a[e], e)) break
  17. };
  18. c.Bz = function(a) {
  19. if (!a) return c.log("invalid URL"), !1;
  20. var b = a.indexOf("://");
  21. if (-1 == b) return !1;
  22. b = a.indexOf("/", b + 3);
  23. return (-1 == b ? a : a.substring(0, b)) != location.origin
  24. };
  25. c.async = {
  26. tL: function(a) {
  27. var b = this.KO;
  28. if (!b.MG) {
  29. var d = b.length,
  30. e = b.wR,
  31. f = b.YQ,
  32. g = f.vd,
  33. h = f.CO,
  34. k = f.LI,
  35. f = f.xpa;
  36. if (a) {
  37. if (b.MG = a, g) return g.call(h, a)
  38. } else {
  39. var m = Array.apply(null, arguments).slice(1),
  40. n = m.length;
  41. 0 == n ? m = null : 1 == n && (m = m[0]);
  42. e[this.index] = m;
  43. b.count--;
  44. k && k.call(f, m, d - b.count, d);
  45. 0 == b.count && g && g.apply(h, [null, e])
  46. }
  47. }
  48. },
  49. hM: function() {},
  50. ula: function(a, b, d) {
  51. var e = c.async;
  52. if (void 0 !== d)"function" == typeof b && (b = {
  53. LI: b
  54. }), b.vd = d || b.vd;
  55. else if (void 0 !== b)"function" == typeof b && (b = {
  56. vd: b
  57. });
  58. else if (void 0 !== a) b = {};
  59. else throw "arguments error!";
  60. var f = (d = a instanceof Array) ? a.length : Object.keys(a).length;
  61. if (0 == f) b.vd && b.vd.call(b.CO, null);
  62. else {
  63. var g = {
  64. length: f,
  65. count: f,
  66. YQ: b,
  67. wR: d ? [] : {}
  68. };
  69. c.Rn(a, function(a, d) {
  70. if (g.MG) return !1;
  71. var f = b.vd || b.LI ? e.tL.bind({
  72. KO: g,
  73. index: d
  74. }) : e.hM;
  75. a(f, d)
  76. })
  77. }
  78. },
  79. map: function(a, b, d) {
  80. var e = this,
  81. f = arguments.length;
  82. "function" == typeof b && (b = {
  83. zH: b
  84. });
  85. if (3 === f) b.vd = d || b.vd;
  86. else if (2 > f) throw "arguments error!";
  87. "function" == typeof b && (b = {
  88. zH: b
  89. });
  90. if (void 0 !== d) b.vd = d || b.vd;
  91. else if (void 0 === a) throw "arguments error!";
  92. var g = (f = a instanceof Array) ? a.length : Object.keys(a).length;
  93. if (0 === g) b.vd && b.vd.call(b.CO, null);
  94. else {
  95. var h = {
  96. length: g,
  97. count: g,
  98. YQ: b,
  99. wR: f ? [] : {}
  100. };
  101. c.Rn(a, function(a, d) {
  102. if (h.MG) return !1;
  103. var f = b.vd ? e.tL.bind({
  104. KO: h,
  105. index: d
  106. }) : e.hM;
  107. b.zH.call(b.U4, a, d, f)
  108. })
  109. }
  110. }
  111. };
  112. c.path = {
  113. join: function() {
  114. for (var a = arguments.length, b = "", d = 0; d < a; d++) b = (b + ("" == b ? "" : "/") + arguments[d]).replace(/(\/|\\\\)$/, "");
  115. return b
  116. },
  117. jm: function(a) {
  118. return (a = /(\.[^\.\/\?\\]*)(\?.*)?$/.exec(a)) ? a[1] : null
  119. },
  120. vka: function(a) {
  121. if (a) {
  122. var b = a.lastIndexOf(".");
  123. if (-1 !== b) return a.substring(0, b)
  124. }
  125. return a
  126. },
  127. E1: function(a, b) {
  128. var d = a.indexOf("?");
  129. 0 < d && (a = a.substring(0, d));
  130. d = /(\/|\\\\)([^(\/|\\\\)]+)$/g.exec(a.replace(/(\/|\\\\)$/, ""));
  131. if (!d) return null;
  132. d = d[2];
  133. return b && a.substring(a.length - b.length).toLowerCase() == b.toLowerCase() ? d.substring(0, d.length - b.length) : d
  134. },
  135. dirname: function(a) {
  136. return a.replace(/((.*)(\/|\\|\\\\))?(.*?\..*$)?/, "$2")
  137. },
  138. DO: function(a, b) {
  139. b = b || "";
  140. var d = a.indexOf("?"),
  141. e = "";
  142. 0 < d && (e = a.substring(d), a = a.substring(0, d));
  143. d = a.lastIndexOf(".");
  144. return 0 > d ? a + b + e : a.substring(0, d) + b + e
  145. },
  146. kq: function(a, b, d) {
  147. if (0 == b.indexOf(".")) return this.DO(a, b);
  148. var e = a.indexOf("?"),
  149. f = "";
  150. d = d ? this.jm(a) : "";
  151. 0 < e && (f = a.substring(e), a = a.substring(0, e));
  152. e = a.lastIndexOf("/");
  153. return a.substring(0, 0 >= e ? 0 : e + 1) + b + d + f
  154. }
  155. };
  156. c.X = {
  157. OM: {},
  158. ey: {},
  159. TZ: {},
  160. Um: {},
  161. mA: "",
  162. A1: "",
  163. Ig: {},
  164. kz: function() {
  165. return window.XMLHttpRequest ? new window.XMLHttpRequest : new ActiveXObject("MSXML2.XMLHTTP")
  166. },
  167. tM: function(a) {
  168. var b = a[0],
  169. d = a[1],
  170. e = a[2],
  171. f = ["", null, null];
  172. if (1 === a.length) f[1] = b instanceof Array ? b : [b];
  173. else if (2 === a.length)"function" == typeof d ? (f[1] = b instanceof Array ? b : [b], f[2] = d) : (f[0] = b || "", f[1] = d instanceof Array ? d : [d]);
  174. else if (3 === a.length) f[0] = b || "", f[1] = d instanceof Array ? d : [d], f[2] = e;
  175. else throw "arguments error to load js!";
  176. return f
  177. },
  178. E5: function(a, b, d) {
  179. var e = this,
  180. f = e.OM,
  181. g = e.tM(arguments); - 1 < navigator.userAgent.indexOf("Trident/5") ? e.TM(g[0], g[1], 0, g[2]) : c.async.map(g[1], function(a, b, d) {
  182. a = c.path.join(g[0], a);
  183. if (f[a]) return d(null);
  184. e.uL(a, !1, d)
  185. }, g[2])
  186. },
  187. LQ: function(a, b, d) {
  188. var e = this.WZ(),
  189. f = this.tM(arguments);
  190. this.E5(f[0], f[1], function(a) {
  191. if (a) throw a;
  192. e.parentNode.removeChild(e);
  193. if (f[2]) f[2]()
  194. })
  195. },
  196. uL: function(a, b, d) {
  197. var e = document,
  198. f = c.ac("script");
  199. f.async = b;
  200. f.src = a;
  201. this.OM[a] = !0;
  202. c.Ra(f, "load", function() {
  203. this.removeEventListener("load", arguments.callee, !1);
  204. d()
  205. }, !1);
  206. c.Ra(f, "error", function() {
  207. d("Load " + a + " failed!")
  208. }, !1);
  209. e.body.appendChild(f)
  210. },
  211. TM: function(a, b, d, e) {
  212. if (d >= b.length) e && e();
  213. else {
  214. var f = this;
  215. f.uL(c.path.join(a, b[d]), !1, function(g) {
  216. if (g) return e(g);
  217. f.TM(a, b, d + 1, e)
  218. })
  219. }
  220. },
  221. WZ: function() {
  222. var a = document,
  223. b = a.getElementById("cocos2d_loadJsImg");
  224. if (!b) {
  225. b = c.ac("img");
  226. c.WM && (b.src = c.WM);
  227. a = a.getElementById(c.Wc.vf.id);
  228. a.style.backgroundColor = "black";
  229. a.parentNode.appendChild(b);
  230. var d = getComputedStyle ? getComputedStyle(a) : a.currentStyle;
  231. d || (d = {
  232. width: a.width,
  233. height: a.height
  234. });
  235. b.style.left = a.offsetLeft + (parseFloat(d.width) - b.width) / 2 + "px";
  236. b.style.top = a.offsetTop + (parseFloat(d.height) - b.height) / 2 + "px";
  237. b.style.position = "absolute"
  238. }
  239. return b
  240. },
  241. Pz: function(a, b) {
  242. if (c.IM) require("fs").Nla(a, function(a, d) {
  243. a ? b(a) : b(null, d.toString())
  244. });
  245. else {
  246. var d = this.kz(),
  247. e = "load " + a + " failed!";
  248. d.open("GET", a, !0);
  249. /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent) ? (d.setRequestHeader("Accept-Charset", "utf-8"), d.onreadystatechange = function() {
  250. 4 == d.readyState && 200 == d.status ? b(null, d.responseText) : b(e)
  251. }) : (d.overrideMimeType && d.overrideMimeType("text/plain; charset=utf-8"), d.onload = function() {
  252. 4 == d.readyState && 200 == d.status ? b(null, d.responseText) : b(e)
  253. });
  254. d.send(null)
  255. }
  256. },
  257. UM: function(a) {
  258. if (c.IM) return require("fs").Ola(a).toString();
  259. var b = this.kz();
  260. b.open("GET", a, !1);
  261. /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent) ? b.setRequestHeader("Accept-Charset", "utf-8") : b.overrideMimeType && b.overrideMimeType("text/plain; charset=utf-8");
  262. b.send(null);
  263. return 4 == !b.readyState || 200 != b.status ? null : b.responseText
  264. },
  265. MQ: function(a, b) {
  266. this.Pz(a, function(d, e) {
  267. try {
  268. d ? b(d) : b(null, JSON.parse(e))
  269. } catch (f) {
  270. throw "load json [" + a + "] failed : " + f;
  271. }
  272. })
  273. },
  274. pL: function(a) {
  275. return null != /(\.png)|(\.jpg)|(\.bmp)|(\.jpeg)|(\.gif)/.exec(a)
  276. },
  277. Qq: function(a, b, d) {
  278. var e = !0;
  279. void 0 !== d ? e = null == b.Bz ? e : b.Bz : void 0 !== b && (d = b);
  280. var f = new Image;
  281. e && "file://" != location.origin && (f.crossOrigin = "Anonymous");
  282. c.Ra(f, "load", function() {
  283. this.removeEventListener("load", arguments.callee, !1);
  284. this.removeEventListener("error", arguments.callee, !1);
  285. d && d(null, f)
  286. });
  287. c.Ra(f, "error", function() {
  288. this.removeEventListener("error", arguments.callee, !1);
  289. d && d("load image failed")
  290. });
  291. f.src = a;
  292. return f
  293. },
  294. XZ: function(a, b, d) {
  295. var e = this,
  296. f = null;
  297. (b = a.type) ? (b = "." + b.toLowerCase(), f = a.src ? a.src : a.name + b) : (f = a, b = c.path.jm(f));
  298. var g = e.Ig[f];
  299. if (g) return d(null, g);
  300. g = e.ey[b.toLowerCase()];
  301. if (!g) return c.error("loader for [" + b + "] not exists!"), d();
  302. b = e.e4(g.cz ? g.cz() : e.mA, f);
  303. g.load(b, f, a, function(a, b) {
  304. a ? (c.log(a), e.Ig[f] = null, delete e.Ig[f], d()) : (e.Ig[f] = b, d(null, b))
  305. })
  306. },
  307. e4: function(a, b) {
  308. var d = this.TZ,
  309. e = c.path;
  310. if (void 0 !== a && void 0 === b) {
  311. b = a;
  312. var f = e.jm(b),
  313. f = f ? f.toLowerCase() : "";
  314. a = (f = this.ey[f]) ? f.cz ? f.cz() : this.mA : this.mA
  315. }
  316. b = c.path.join(a || "", b);
  317. if (b.match(/[\/(\\\\)]lang[\/(\\\\)]/i)) {
  318. if (d[b]) return d[b];
  319. e = e.jm(b) || "";
  320. b = d[b] = b.substring(0, b.length - e.length) + "_" + c.Yb.language + e
  321. }
  322. return b
  323. },
  324. load: function(a, b, d) {
  325. if (void 0 !== d)"function" == typeof b && (b = {
  326. LI: b
  327. });
  328. else if (void 0 !== b)"function" == typeof b && (d = b, b = {});
  329. else if (void 0 !== a) b = {};
  330. else throw "arguments error!";
  331. b.vd = function(a, b) {
  332. a && c.log(a);
  333. d && d(b)
  334. };
  335. a instanceof Array || (a = [a]);
  336. b.zH = this.XZ;
  337. b.U4 = this;
  338. c.async.map(a, b)
  339. },
  340. BM: function(a, b) {
  341. var d = this.Um,
  342. e = [],
  343. f;
  344. for (f in a) {
  345. var g = a[f];
  346. d[f] = g;
  347. e.push(g)
  348. }
  349. this.load(e, b)
  350. },
  351. rka: function(a, b) {
  352. var d = this,
  353. e = d.be(a);
  354. e ? d.BM(e.filenames, b) : d.load(a, function(a) {
  355. d.BM(a[0].filenames, b)
  356. })
  357. },
  358. Tk: function(a, b) {
  359. if (a && b) {
  360. if ("string" == typeof a) return this.ey[a.trim().toLowerCase()] = b;
  361. for (var d = 0, e = a.length; d < e; d++) this.ey["." + a[d].trim().toLowerCase()] = b
  362. }
  363. },
  364. be: function(a) {
  365. return this.Ig[a] || this.Ig[this.Um[a]]
  366. },
  367. Lj: function(a) {
  368. var b = this.Ig,
  369. d = this.Um;
  370. delete b[a];
  371. delete b[d[a]];
  372. delete d[a]
  373. },
  374. Yla: function() {
  375. var a = this.Ig,
  376. b = this.Um,
  377. d;
  378. for (d in a) delete a[d];
  379. for (d in b) delete b[d]
  380. }
  381. };
  382. (function() {
  383. function a() {
  384. c.wa && c.Wc.Fl && c.wa.dispatchEvent(c.Wc.Fl)
  385. }
  386. function b() {
  387. c.wa && c.Wc.El && c.wa.dispatchEvent(c.Wc.El)
  388. }
  389. var d = window,
  390. e, f;
  391. "undefined" !== typeof document.hidden ? (e = "hidden", f = "visibilitychange") : "undefined" !== typeof document.mozHidden ? (e = "mozHidden", f = "mozvisibilitychange") : "undefined" !== typeof document.msHidden ? (e = "msHidden", f = "msvisibilitychange") : "undefined" !== typeof document.webkitHidden && (e = "webkitHidden", f = "webkitvisibilitychange");
  392. e ? c.Ra(document, f, function() {
  393. document[e] ? b() : a()
  394. }, !1) : (c.Ra(d, "blur", b, !1), c.Ra(d, "focus", a, !1));
  395. "onpageshow" in window && "onpagehide" in window && (c.Ra(d, "pagehide", b, !1), c.Ra(d, "pageshow", a, !1));
  396. f = d = null
  397. })();
  398. c.log = c.warn = c.error = c.assert = function() {};
  399. c.OO = function(a, b) {
  400. for (var d = ["webgl", "experimental-webgl", "webkit-3d", "moz-webgl"], e = null, f = 0; f < d.length; ++f) {
  401. try {
  402. e = a.getContext(d[f], b)
  403. } catch (g) {}
  404. if (e) break
  405. }
  406. return e
  407. };
  408. c.FZ = function(a, b) {
  409. c.Ha = 0;
  410. c.ea = 1;
  411. var d = c.Yb = {};
  412. d.EU = "en";
  413. d.Y$ = "zh";
  414. d.Z$ = "fr";
  415. d.baa = "it";
  416. d.$$ = "de";
  417. d.iaa = "es";
  418. d.haa = "ru";
  419. d.daa = "ko";
  420. d.caa = "ja";
  421. d.aaa = "hu";
  422. d.gaa = "pt";
  423. d.X$ = "ar";
  424. d.eaa = "no";
  425. d.faa = "pl";
  426. d.lV = "Windows";
  427. d.BJ = "iOS";
  428. d.CJ = "OS X";
  429. d.jV = "UNIX";
  430. d.iV = "Linux";
  431. d.hV = "Android";
  432. d.kV = "Unknown";
  433. d.jT = "wechat";
  434. d.fT = "androidbrowser";
  435. d.UA = "ie";
  436. d.gT = "qqbrowser";
  437. d.$I = "mqqbrowser";
  438. d.hT = "ucbrowser";
  439. d.Y9 = "360browser";
  440. d.Z9 = "baiduboxapp";
  441. d.ZI = "baidubrowser";
  442. d.a$ = "maxthon";
  443. d.VA = "opera";
  444. d.b$ = "miuibrowser";
  445. d.Ar = "firefox";
  446. d.WA = "safari";
  447. d.TA = "chrome";
  448. d.iT = "unknown";
  449. d.hia = !1;
  450. var e = [d.ZI, d.VA, d.Ar, d.TA, d.WA],
  451. f = [d.ZI, d.VA, d.Ar, d.TA, d.WA, d.hT, d.gT, d.$I, d.UA],
  452. g = window,
  453. h = g.navigator,
  454. k = document.documentElement,
  455. m = h.userAgent.toLowerCase();
  456. d.Aj = -1 != m.indexOf("mobile") || -1 != m.indexOf("android");
  457. var n = h.language,
  458. n = (n = n ? n : h.browserLanguage) ? n.split("-")[0] : d.EU;
  459. d.language = n;
  460. var n = d.iT,
  461. q = m.match(/micromessenger|qqbrowser|mqqbrowser|ucbrowser|360browser|baiduboxapp|baidubrowser|maxthon|trident|opera|miuibrowser|firefox/i) || m.match(/chrome|safari/i);
  462. q && 0 < q.length && (n = q[0].toLowerCase(), "micromessenger" == n ? n = d.jT : "safari" === n && m.match(/android.*applewebkit/) ? n = d.fT : "trident" == n && (n = d.UA));
  463. d.In = n;
  464. d.G0 = -1 < f.indexOf(d.In);
  465. f = parseInt(a[b.lA]);
  466. n = c.ea;
  467. q = c.ac("Canvas");
  468. c.Yt = !0;
  469. e = -1 == e.indexOf(d.In);
  470. if (1 === f || 0 === f && (d.Aj || e)) n = c.Ha;
  471. n != c.ea || g.WebGLRenderingContext && c.OO(q, {
  472. stencil: !0,
  473. preserveDrawingBuffer: !0
  474. }) || (0 == f ? n = c.Ha : c.Yt = !1);
  475. if (n == c.Ha) try {
  476. q.getContext("2d")
  477. } catch (r) {
  478. c.Yt = !1
  479. }
  480. c.F = n;
  481. try {
  482. d.vy = !! new(g.AudioContext || g.webkitAudioContext || g.mozAudioContext)
  483. } catch (t) {
  484. d.vy = !1
  485. }
  486. try {
  487. var s = d.localStorage = g.localStorage;
  488. s.setItem("storage", "");
  489. s.removeItem("storage");
  490. s = null
  491. } catch (u) {
  492. "SECURITY_ERR" !== u.name && "QuotaExceededError" !== u.name || c.warn("Warning: localStorage isn't enabled. Please confirm browser cookie or privacy option"), d.localStorage = function() {}
  493. }
  494. s = d.sG = {
  495. canvas: !0
  496. };
  497. c.F == c.ea && (s.opengl = !0);
  498. void 0 !== k.ontouchstart || h.msPointerEnabled ? s.touches = !0 : void 0 !== k.onmouseup && (s.mouse = !0);
  499. void 0 !== k.onkeyup && (s.keyboard = !0);
  500. if (g.DeviceMotionEvent || g.DeviceOrientationEvent) s.accelerometer = !0;
  501. g = m.match(/(iPad|iPhone|iPod)/i) ? !0 : !1;
  502. m = m.match(/android/i) || h.platform.match(/android/i) ? !0 : !1;
  503. k = d.kV; - 1 != h.appVersion.indexOf("Win") ? k = d.lV : g ? k = d.BJ : -1 != h.appVersion.indexOf("Mac") ? k = d.CJ : -1 != h.appVersion.indexOf("X11") ? k = d.jV : -1 != h.appVersion.indexOf("Linux") ? k = d.iV : m && (k = d.hV);
  504. d.PH = k;
  505. d.Wea = function() {};
  506. d.Rda = function() {};
  507. d.tma = function() {};
  508. d.Pda = function() {
  509. var a;
  510. a = "" + ("isMobile : " + this.Aj + "\r\n");
  511. a += "language : " + this.language + "\r\n";
  512. a += "browserType : " + this.In + "\r\n";
  513. a += "capabilities : " + JSON.stringify(this.sG) + "\r\n";
  514. a += "os : " + this.PH + "\r\n";
  515. c.log(a)
  516. }
  517. };
  518. c.vaa = 0;
  519. c.waa = 1;
  520. c.taa = 2;
  521. c.uaa = 3;
  522. c.jf = null;
  523. c.m = null;
  524. c.eb = null;
  525. c.NY = null;
  526. c.fy = !1;
  527. c.MN = !1;
  528. c.LN = function(a) {
  529. var b, d;
  530. if (!c.MN) {
  531. c.MN = !0;
  532. var e = window;
  533. e.$H = e.requestAnimationFrame || e.webkitRequestAnimationFrame || e.mozRequestAnimationFrame || e.oRequestAnimationFrame || e.msRequestAnimationFrame;
  534. var f = c.Fb(a) || c.Fb("#" + a),
  535. g;
  536. "CANVAS" == f.tagName ? (b = b || f.width, d = d || f.height, g = c.Mn = c.ac("DIV"), a = c.eb = f, a.parentNode.insertBefore(g, a), a.qO(g), g.setAttribute("id", "Cocos2dGameContainer")) : ("DIV" != f.tagName && c.log("Warning: target element is not a DIV or CANVAS"), b = b || f.clientWidth, d = d || f.clientHeight, g = c.Mn = f, a = c.eb = c.Fb(c.ac("CANVAS")), f.appendChild(a));
  537. a.mO("gameCanvas");
  538. a.setAttribute("width", b || 480);
  539. a.setAttribute("height", d || 320);
  540. a.setAttribute("tabindex", 99);
  541. a.style.outline = "none";
  542. f = g.style;
  543. f.width = (b || 480) + "px";
  544. f.height = (d || 320) + "px";
  545. f.margin = "0 auto";
  546. f.position = "relative";
  547. f.overflow = "hidden";
  548. g.top = "100%";
  549. c.F == c.ea && (c.m = c.Opa = c.OO(a, {
  550. stencil: !0,
  551. preserveDrawingBuffer: !0,
  552. antialias: !c.Yb.Aj,
  553. alpha: !1
  554. }));
  555. c.m ? (e.gl = c.m, c.jf = new c.RT(c.m), c.fy = !0, c.Ka.KZ(), c.ge.ot()) : (c.m = a.getContext("2d"), c.ZZ = c.m, c.m.translate(0, a.height), c.jf = c.jJ ? new c.jJ(c.m) : null);
  556. c.NY = g;
  557. c.log(c.fB);
  558. c.W_();
  559. c.Yb.Aj && (b = c.ac("style"), b.type = "text/css", document.body.appendChild(b), b.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);}");
  560. c.view = c.dB.HD();
  561. c.qQ.G6(c.eb);
  562. c.L = c.bb.HD();
  563. c.L.pI && c.L.pI(c.view);
  564. c.ja = c.L.V;
  565. c.Cma = new c.ww;
  566. c.n6 = new c.zV
  567. }
  568. };
  569. c.fD = function() {
  570. if (c.F !== c.ea) throw "This feature supports WebGL render mode only.";
  571. };
  572. c.HM = !1;
  573. c.W_ = function() {
  574. c.HM = !1;
  575. c.eb.oncontextmenu = function() {
  576. if (!c.HM) return !1
  577. }
  578. };
  579. c.Wc = {
  580. cJ: 0,
  581. ET: 1,
  582. t$: 2,
  583. DT: 3,
  584. ZA: 4,
  585. dJ: 5,
  586. bJ: 6,
  587. Uv: "game_on_hide",
  588. Fr: "game_on_show",
  589. El: null,
  590. Fl: null,
  591. Yba: [],
  592. Nh: {
  593. LG: "engineDir",
  594. yda: "dependencies",
  595. yu: "debugMode",
  596. s8: "showFPS",
  597. $y: "frameRate",
  598. id: "id",
  599. lA: "renderMode",
  600. W4: "jsList",
  601. M1: "classReleaseMode"
  602. },
  603. iN: !1,
  604. EE: !1,
  605. Ac: !0,
  606. XD: null,
  607. vf: null,
  608. dv: null,
  609. Yka: null,
  610. ona: function(a) {
  611. this.vf[this.Nh.$y] = a;
  612. this.XD && clearInterval(this.XD);
  613. this.Ac = !0;
  614. this.UE()
  615. },
  616. UE: function() {
  617. var a = this,
  618. b, d = a.vf,
  619. e = a.Nh,
  620. f = window,
  621. g = d[e.$y],
  622. h = c.L;
  623. h.v7(d[e.s8]);
  624. f.$H && 60 == g ? (b = function() {
  625. a.Ac || (h.NQ(), f.$H(b))
  626. }, f.$H(b)) : (b = function() {
  627. h.NQ()
  628. }, a.XD = setInterval(b, 1E3 / g));
  629. a.Ac = !1
  630. },
  631. d7: function(a) {
  632. function b() {
  633. a && (d.vf[d.Nh.id] = a);
  634. d.iN ? c.Yt && (d.hY = setInterval(function() {
  635. d.EE && (c.LN(d.vf[d.Nh.id]), d.UE(), d.El = d.El || new c.Tj(d.Uv), d.El.setUserData(d), d.Fl = d.Fl || new c.Tj(d.Fr), d.Fl.setUserData(d), d.dv(), clearInterval(d.hY))
  636. }, 10)) : d.s6(function() {
  637. c.Yt && (c.LN(d.vf[d.Nh.id]), d.UE(), d.El = d.El || new c.Tj(d.Uv), d.El.setUserData(d), d.Fl = d.Fl || new c.Tj(d.Fr), d.Fl.setUserData(d), d.dv())
  638. })
  639. }
  640. var d = this;
  641. document.body ? b() : c.Ra(window, "load", function() {
  642. this.removeEventListener("load", arguments.callee, !1);
  643. b()
  644. }, !1)
  645. },
  646. BZ: function() {
  647. function a(a) {
  648. a[b.LG] = a[b.LG] || "frameworks/cocos2d-html5";
  649. null == a[b.yu] && (a[b.yu] = 0);
  650. a[b.$y] = a[b.$y] || 60;
  651. null == a[b.lA] && (a[b.lA] = 1);
  652. return a
  653. }
  654. var b = this.Nh;
  655. if (document.ccConfig) this.vf = a(document.ccConfig);
  656. else try {
  657. for (var d = document.getElementsByTagName("script"), e = 0; e < d.length; e++) {
  658. var f = d[e].getAttribute("cocos");
  659. if ("" == f || f) break
  660. }
  661. var g, h, k;
  662. if (e < d.length) {
  663. if (g = d[e].src) k = /(.*)\//.exec(g)[0], c.X.mA = k, g = c.path.join(k, "project.txt");
  664. h = c.X.UM(g)
  665. }
  666. h || (h = c.X.UM("project.txt"));
  667. var m = JSON.parse(h);
  668. this.vf = a(m || {})
  669. } catch (n) {
  670. c.log("Failed to read or parse project.txt"), this.vf = a({})
  671. }
  672. c.FZ(this.vf, b)
  673. },
  674. RZ: {},
  675. vM: function(a, b, d) {
  676. var e = this.RZ;
  677. if (e[b]) return null;
  678. d = d || "";
  679. var f = [],
  680. g = a[b];
  681. if (!g) throw "can not find module [" + b + "]";
  682. b = c.path;
  683. for (var h = 0, k = g.length; h < k; h++) {
  684. var m = g[h];
  685. if (!e[m]) {
  686. var n = b.jm(m);
  687. n ? ".js" == n.toLowerCase() && f.push(b.join(d, m)) : (n = this.vM(a, m, d)) && (f = f.concat(n));
  688. e[m] = 1
  689. }
  690. }
  691. return f
  692. },
  693. s6: function(a) {
  694. var b = this,
  695. d = b.vf,
  696. e = b.Nh,
  697. f = d[e.LG],
  698. g = c.X;
  699. if (c.Yt) {
  700. b.iN = !0;
  701. var h = d[e.W4] || [];
  702. c.qa ? g.LQ("", h, function(d) {
  703. if (d) throw d;
  704. b.EE = !0;
  705. a && a()
  706. }) : (e = c.path.join(f, "moduleConfig.txt"), g.MQ(e, function(e, g) {
  707. if (e) throw e;
  708. var n = d.modules || [],
  709. q = g.module,
  710. r = [];
  711. c.F == c.ea ? n.splice(0, 0, "shaders") : 0 > n.indexOf("core") && n.splice(0, 0, "core");
  712. for (var t = 0, s = n.length; t < s; t++) {
  713. var u = b.vM(q, n[t], f);
  714. u && (r = r.concat(u))
  715. }
  716. r = r.concat(h);
  717. c.X.LQ(r, function(d) {
  718. if (d) throw d;
  719. b.EE = !0;
  720. a && a()
  721. })
  722. }))
  723. } else c.error("Can not support render!")
  724. }
  725. };
  726. c.Wc.BZ();
  727. c.f = {
  728. UI: "cc.ActionManager.addAction(): action must be non-null",
  729. aT: "cocos2d: removeAction: Target not found",
  730. K9: "cc.ActionManager.removeActionByTag(): an invalid tag",
  731. L9: "cc.ActionManager.removeActionByTag(): target must be non-null",
  732. ZS: "cc.ActionManager.getActionByTag(): an invalid tag",
  733. $S: "cocos2d : getActionByTag(tag = %s): Action not found",
  734. Y1: "cocos2d: **** WARNING **** CC_ENABLE_PROFILERS is defined. Disable it when you finish profiling (from ccConfig.js)",
  735. Z1: "Expected 'data' dict, but not found. Config file: %s",
  736. a2: "Please load the resource first : %s",
  737. KT: "cocos2d: Director: Error in gettimeofday",
  738. LT: "cocos2d: Director: unrecognized projection",
  739. G$: "cocos2d: Director: unrecognized projection",
  740. JT: "cocos2d: Director: Error in gettimeofday",
  741. IT: "running scene should not null",
  742. iJ: "the scene should not null",
  743. gq: "element type is wrong!",
  744. XV: "CCSheduler#scheduleCallback. Callback already scheduled. Updating interval from:%s to %s",
  745. YV: "cc.scheduler.scheduleCallbackForTarget(): callback_fn should be non-null.",
  746. ZV: "cc.scheduler.scheduleCallbackForTarget(): target should be non-null.",
  747. VV: "cc.Scheduler.pauseTarget():target should be non-null",
  748. WV: "cc.Scheduler.resumeTarget():target should be non-null",
  749. UV: "cc.Scheduler.isTargetPaused():target should be non-null",
  750. UU: "getZOrder is deprecated. Please use getLocalZOrder instead.",
  751. eV: "setZOrder is deprecated. Please use setLocalZOrder instead.",
  752. SU: "RotationX != RotationY. Don't know which one to return",
  753. TU: "ScaleX != ScaleY. Don't know which one to return",
  754. OU: "An Node can't be added as a child of itself.",
  755. PU: "child already added. It can't be added again",
  756. QU: "child must be non-null",
  757. ZU: "removeFromParentAndCleanup is deprecated. Use removeFromParent instead",
  758. XU: "argument tag is an invalid tag",
  759. YU: "cocos2d: removeChildByTag(tag = %s): child not found!",
  760. WU: "removeAllChildrenWithCleanup is deprecated. Use removeAllChildren instead",
  761. fV: "cc.Node.stopActionBy(): argument tag an invalid tag",
  762. RU: "cc.Node.getActionByTag(): argument tag is an invalid tag",
  763. aV: "resumeSchedulerAndActions is deprecated, please use resume instead.",
  764. VU: "pauseSchedulerAndActions is deprecated, please use pause instead.",
  765. NU: "Unknown callback function",
  766. $U: "child must be non-null",
  767. bV: "cc.Node.runAction(): action must be non-null",
  768. cV: "callback function must be non-null",
  769. dV: "interval must be positive",
  770. naa: "cocos2d: Could not initialize cc.AtlasNode. Invalid Texture.",
  771. dT: "cc.AtlasNode.updateAtlasValues(): Shall be overridden in subclasses",
  772. T9: "",
  773. WI: "cocos2d: Could not initialize cc.AtlasNode. Invalid Texture.",
  774. DX: "cc._EventListenerKeyboard.checkAvailable(): Invalid EventListenerKeyboard!",
  775. FX: "cc._EventListenerTouchOneByOne.checkAvailable(): Invalid EventListenerTouchOneByOne!",
  776. EX: "cc._EventListenerTouchAllAtOnce.checkAvailable(): Invalid EventListenerTouchAllAtOnce!",
  777. CX: "cc._EventListenerAcceleration.checkAvailable(): _onAccelerationEvent must be non-nil",
  778. ZT: "Invalid parameter.",
  779. Lw: "Don't call this method if the event is for touch.",
  780. M2: "Invalid scene graph priority!",
  781. N2: "0 priority is forbidden for fixed priority since it's used for scene graph based priority.",
  782. R2: "Invalid listener type!",
  783. S2: "Can't set fixed priority with scene graph based listener.",
  784. O2: "Invalid parameters.",
  785. P2: "listener must be a cc.EventListener object when adding a fixed priority listener",
  786. Q2: "The listener has been registered, please don't register it again.",
  787. HU: "parameters should not be ending with null in Javascript",
  788. IU: "Invalid index in MultiplexLayer switchTo message",
  789. JU: "Invalid index in MultiplexLayer switchTo message",
  790. GU: "cc.Layer.addLayer(): layer should be non-null",
  791. ST: "Resolution not valid",
  792. TT: "should set resolutionPolicy",
  793. H4: "The touches is more than MAX_TOUCHES, nUnusedIndex = %s",
  794. uS: "cc.swap is being modified from original macro, please check usage",
  795. mq: "WebGL error %s",
  796. m1: "cocos2d: cc.AnimationCache: No animations were found in provided dictionary.",
  797. n1: "cc.AnimationCache. Invalid animation format",
  798. u1: "cc.AnimationCache.addAnimations(): File could not be found",
  799. o1: "cocos2d: cc.AnimationCache: Animation '%s' found in dictionary without any frames - cannot add to animation cache.",
  800. p1: "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.",
  801. q1: "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.",
  802. r1: "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.",
  803. s1: "cocos2d: CCAnimationCache: Animation '%s' found in dictionary without any frames - cannot add to animation cache.",
  804. t1: "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.",
  805. v1: "cc.AnimationCache.addAnimations(): Invalid texture file name",
  806. xW: "cc.Sprite.reorderChild(): this child is not in children list",
  807. pW: "cc.Sprite.ignoreAnchorPointForPosition(): it is invalid in cc.Sprite when using SpriteBatchNode",
  808. AW: "cc.Sprite.setDisplayFrameWithAnimationName(): Frame not found",
  809. BW: "cc.Sprite.setDisplayFrameWithAnimationName(): Invalid frame index",
  810. zW: "setDisplayFrame is deprecated, please use setSpriteFrame instead.",
  811. iW: "cc.Sprite._updateBlendFunc(): _updateBlendFunc doesn't work when the sprite is rendered using a cc.CCSpriteBatchNode",
  812. rW: "cc.Sprite.initWithSpriteFrame(): spriteFrame should be non-null",
  813. sW: "cc.Sprite.initWithSpriteFrameName(): spriteFrameName should be non-null",
  814. tW: " is null, please check.",
  815. qW: "cc.Sprite.initWithFile(): filename should be non-null",
  816. DW: "cc.Sprite.setDisplayFrameWithAnimationName(): animationName must be non-null",
  817. yW: "cc.Sprite.reorderChild(): child should be non-null",
  818. jW: "cc.Sprite.addChild(): cc.Sprite only supports cc.Sprites as children when using cc.SpriteBatchNode",
  819. kW: "cc.Sprite.addChild(): cc.Sprite only supports a sprite using same texture as children when using cc.SpriteBatchNode",
  820. lW: "cc.Sprite.addChild(): child should be non-null",
  821. FW: "cc.Sprite.texture setter: Batched sprites should use the same texture as the batchnode",
  822. Oaa: "cc.SpriteBatchNode.updateQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",
  823. vW: "cc.SpriteBatchNode.insertQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",
  824. mW: "cc.SpriteBatchNode.addChild(): cc.SpriteBatchNode only supports cc.Sprites as children",
  825. nW: "cc.SpriteBatchNode.addChild(): cc.Sprite is not using the same texture",
  826. uW: "Sprite.initWithTexture(): Argument must be non-nil ",
  827. EW: "Invalid spriteFrameName",
  828. GW: "Invalid argument: cc.Sprite.texture setter expects a CCTexture2D.",
  829. Paa: "cc.SpriteBatchNode.updateQuadFromSprite(): sprite should be non-null",
  830. wW: "cc.SpriteBatchNode.insertQuadFromSprite(): sprite should be non-null",
  831. oW: "cc.SpriteBatchNode.addChild(): child should be non-null",
  832. bW: "cc.SpriteBatchNode.addQuadFromSprite(): SpriteBatchNode only supports cc.Sprites as children",
  833. dW: "cocos2d: CCSpriteBatchNode: resizing TextureAtlas capacity from %s to %s.",
  834. eW: "cocos2d: WARNING: Not enough memory to resize the atlas",
  835. gW: "cc.SpriteBatchNode.addChild(): Child doesn't belong to Sprite",
  836. fW: "cc.SpriteBatchNode.addChild(): sprite batch node should contain the child",
  837. cW: "cc.SpriteBatchNode.addQuadFromSprite(): child should be non-null",
  838. hW: "cc.SpriteBatchNode.addChild():child should be non-null",
  839. y8: "cocos2d: WARNING: originalWidth/Height not found on the cc.SpriteFrame. AnchorPoint won't work as expected. Regenrate the .plist",
  840. A8: "cocos2d: WARNING: an alias with name %s already exists",
  841. x8: "cocos2d: WARNING: Sprite frame: %s has already been added by another source, please fix name conflit",
  842. D8: "cocos2d: cc.SpriteFrameCahce: Frame %s not found",
  843. z8: "Please load the resource first : %s",
  844. B8: "cc.SpriteFrameCache.addSpriteFrames(): plist should be non-null",
  845. C8: "Argument must be non-nil",
  846. YA: "cc.SpriteBatchNode.updateQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",
  847. rT: "cc.SpriteBatchNode.insertQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",
  848. nT: "cc.SpriteBatchNode.addChild(): cc.SpriteBatchNode only supports cc.Sprites as children",
  849. qT: "Sprite.initWithTexture(): Argument must be non-nil ",
  850. oT: "cc.Sprite.addChild(): child should be non-null",
  851. tT: "Invalid spriteFrameName",
  852. uT: "Invalid argument: cc.Sprite texture setter expects a CCTexture2D.",
  853. vT: "cc.SpriteBatchNode.updateQuadFromSprite(): sprite should be non-null",
  854. sT: "cc.SpriteBatchNode.insertQuadFromSprite(): sprite should be non-null",
  855. pT: "cc.SpriteBatchNode.addChild(): child should be non-null",
  856. aX: "cocos2d: Could not open file: %s",
  857. mK: "cc.TextureAtlas.insertQuad(): invalid totalQuads",
  858. bX: "cc.TextureAtlas.initWithTexture():texture should be non-null",
  859. lX: "cc.TextureAtlas.updateQuad(): quad should be non-null",
  860. mX: "cc.TextureAtlas.updateQuad(): Invalid index",
  861. eX: "cc.TextureAtlas.insertQuad(): Invalid index",
  862. fX: "cc.TextureAtlas.insertQuad(): Invalid index + amount",
  863. cX: "cc.TextureAtlas.insertQuadFromIndex(): Invalid newIndex",
  864. dX: "cc.TextureAtlas.insertQuadFromIndex(): Invalid fromIndex",
  865. jX: "cc.TextureAtlas.removeQuadAtIndex(): Invalid index",
  866. kX: "cc.TextureAtlas.removeQuadsAtIndex(): index + amount out of bounds",
  867. gX: "cc.TextureAtlas.moveQuadsFromIndex(): move is out of bounds",
  868. hX: "cc.TextureAtlas.moveQuadsFromIndex(): Invalid newIndex",
  869. iX: "cc.TextureAtlas.moveQuadsFromIndex(): Invalid oldIndex",
  870. Q8: "TextureCache:addPVRTCImage does not support on HTML5",
  871. O8: "TextureCache:addPVRTCImage does not support on HTML5",
  872. P8: "addPVRImage does not support on HTML5",
  873. R8: "cocos2d: Couldn't add UIImage in TextureCache",
  874. T8: "cocos2d: '%s' id=%s %s x %s",
  875. xS: "cocos2d: '%s' id= HTMLCanvasElement %s x %s",
  876. U8: "cocos2d: TextureCache dumpDebugInfo: %s textures, HTMLCanvasElement for %s KB (%s MB)",
  877. S8: "cc.Texture.addUIImage(): image should be non-null",
  878. SW: "initWithETCFile does not support on HTML5",
  879. WW: "initWithPVRFile does not support on HTML5",
  880. YW: "initWithPVRTCData does not support on HTML5",
  881. OW: "cc.Texture.addImage(): path should be non-null",
  882. UW: "cocos2d: cc.Texture2D. Can't create Texture. UIImage is nil",
  883. VW: "cocos2d: WARNING: Image (%s x %s) is bigger than the supported %s x %s",
  884. $W: "initWithString isn't supported on cocos2d-html5",
  885. TW: "initWithETCFile does not support on HTML5",
  886. XW: "initWithPVRFile does not support on HTML5",
  887. ZW: "initWithPVRTCData does not support on HTML5",
  888. QW: "bitsPerPixelForFormat: %s, cannot give useful result, it's a illegal pixel format",
  889. NW: "cocos2d: cc.Texture2D: Using RGB565 texture since image has no alpha",
  890. PW: "cc.Texture.addImage(): path should be non-null",
  891. RW: "NSInternalInconsistencyException",
  892. cd: "Missing file: %s",
  893. jR: "cc.radiansToDegress() should be called cc.radiansToDegrees()",
  894. UB: "Rect width exceeds maximum margin: %s",
  895. TB: "Rect height exceeds maximum margin: %s",
  896. $T: "If program goes here, there should be event in dispatch.",
  897. aU: "_inDispatch should be 1 here."
  898. };
  899. c.Nx = function(a) {
  900. if (c.eb) {
  901. var b = c.YZ,
  902. d = document;
  903. if (!b) {
  904. var e = d.createElement("Div"),
  905. b = e.style;
  906. e.setAttribute("id", "logInfoDiv");
  907. c.eb.parentNode.appendChild(e);
  908. e.setAttribute("width", "200");
  909. e.setAttribute("height", c.eb.height);
  910. b.zIndex = "99999";
  911. b.position = "absolute";
  912. b.top = "0";
  913. b.left = "0";
  914. b = c.YZ = d.createElement("textarea");
  915. d = b.style;
  916. b.setAttribute("rows", "20");
  917. b.setAttribute("cols", "30");
  918. b.setAttribute("disabled", !0);
  919. e.appendChild(b);
  920. d.backgroundColor = "transparent";
  921. d.borderBottom = "1px solid #cccccc";
  922. d.borderRightWidth = "0px";
  923. d.borderLeftWidth = "0px";
  924. d.borderTopWidth = "0px";
  925. d.borderTopStyle = "none";
  926. d.borderRightStyle = "none";
  927. d.borderLeftStyle = "none";
  928. d.padding = "0px";
  929. d.margin = 0
  930. }
  931. a = "string" == typeof a ? a : JSON.stringify(a);
  932. b.value = b.value + a + "\r\n";
  933. b.scrollTop = b.scrollHeight
  934. }
  935. };
  936. c.zx = function(a) {
  937. if ("object" === typeof a) try {
  938. return JSON.stringify(a)
  939. } catch (b) {
  940. return ""
  941. } else return a
  942. };
  943. console.log && (c.log = function(a) {
  944. for (var b = 1; b < arguments.length; b++) a = a.replace(/(%s)|(%d)/, c.zx(arguments[b]));
  945. console.log(a)
  946. }, c.warn = console.warn ?
  947. function(a) {
  948. for (var b = 1; b < arguments.length; b++) a = a.replace(/(%s)|(%d)/, c.zx(arguments[b]));
  949. console.warn(a)
  950. } : c.log, c.error = console.error ?
  951. function(a) {
  952. for (var b = 1; b < arguments.length; b++) a = a.replace(/(%s)|(%d)/, c.zx(arguments[b]));
  953. console.error(a)
  954. } : c.log, c.assert = function(a, b) {
  955. if (!a && b) {
  956. for (var d = 2; d < arguments.length; d++) b = b.replace(/(%s)|(%d)/, c.zx(arguments[d]));
  957. throw b;
  958. }
  959. });
  960. var ga = c.Wc.vf[c.Wc.Nh.yu],
  961. ja = c.Wc;
  962. console.log && ga === ja.ET || (c.log = ga == ja.ZA ? c.Nx.bind(c) : function() {});
  963. ga && ga != ja.cJ && ga != ja.DT && ga != ja.bJ || (c.warn = function() {});
  964. ga != ja.ZA && ga != ja.dJ && console.warn || (c.warn = c.Nx.bind(c));
  965. ga && ga != ja.cJ ? ga != ja.ZA && ga != ja.dJ && ga != ja.bJ && console.error || (c.error = c.Nx.bind(c), c.assert = function(a, b) {
  966. if (!a && b) {
  967. for (var d = 2; d < arguments.length; d++) b = b.replace("%s", arguments[d]);
  968. c.Nx(b)
  969. }
  970. }) : (c.error = function() {}, c.assert = function() {});
  971. c.X.C5 = function(a, b) {
  972. var d = this,
  973. e = this.kz(),
  974. f = "load " + a + " failed!";
  975. e.open("GET", a, !0);
  976. /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent) ? (e.setRequestHeader("Accept-Charset", "x-user-defined"), e.onreadystatechange = function() {
  977. if (4 == e.readyState && 200 == e.status) {
  978. var a = c.rL(e.responseBody);
  979. b(null, d.ry(a))
  980. } else b(f)
  981. }) : (e.overrideMimeType && e.overrideMimeType("text/plain; charset=x-user-defined"), e.onload = function() {
  982. 4 == e.readyState && 200 == e.status ? b(null, d.ry(e.responseText)) : b(f)
  983. });
  984. e.send(null)
  985. };
  986. c.X.ry = function(a) {
  987. if (!a) return null;
  988. for (var b = new Uint8Array(a.length), d = 0; d < a.length; d++) b[d] = a.charCodeAt(d) & 255;
  989. return b
  990. };
  991. c.X.ska = function(a) {
  992. var b = this.kz(),
  993. d = "load " + a + " failed!";
  994. b.open("GET", a, !1);
  995. a = null;
  996. if (/msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent)) {
  997. b.setRequestHeader("Accept-Charset", "x-user-defined");
  998. b.send(null);
  999. if (200 != b.status) return c.log(d), null;
  1000. (b = c.rL(b.responseBody)) && (a = this.ry(b))
  1001. } else {
  1002. b.overrideMimeType && b.overrideMimeType("text/plain; charset=x-user-defined");
  1003. b.send(null);
  1004. if (200 != b.status) return c.log(d), null;
  1005. a = this.ry(b.responseText)
  1006. }
  1007. return a
  1008. };
  1009. var Uint8Array = Uint8Array || Array;
  1010. if (/msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent)) {
  1011. var ma = c.ac("script");
  1012. ma.type = "text/vbscript";
  1013. ma.textContent = '<!-- IEBinaryToArray_ByteStr -->\r\nFunction IEBinaryToArray_ByteStr(Binary)\r\n IEBinaryToArray_ByteStr = CStr(Binary)\r\nEnd Function\r\nFunction IEBinaryToArray_ByteStr_Last(Binary)\r\n Dim lastIndex\r\n lastIndex = LenB(Binary)\r\n if lastIndex mod 2 Then\r\n IEBinaryToArray_ByteStr_Last = Chr( AscB( MidB( Binary, lastIndex, 1 ) ) )\r\n Else\r\n IEBinaryToArray_ByteStr_Last = ""\r\n End If\r\nEnd Function\r\n';
  1014. document.body.appendChild(ma);
  1015. c.rL = function(a) {
  1016. for (var b = {}, d = 0; 256 > d; d++) for (var e = 0; 256 > e; e++) b[String.fromCharCode(d + 256 * e)] = String.fromCharCode(d) + String.fromCharCode(e);
  1017. d = IEBinaryToArray_ByteStr(a);
  1018. a = IEBinaryToArray_ByteStr_Last(a);
  1019. return d.replace(/[\s\S]/g, function(a) {
  1020. return b[a]
  1021. }) + a
  1022. }
  1023. };
  1024. c = c || {};
  1025. c.WM = "data:image/gif;base64,R0lGODlhEAAQALMNAD8/P7+/vyoqKlVVVX9/fxUVFUBAQGBgYMDAwC8vL5CQkP///wAAAP///wAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFAAANACwAAAAAEAAQAAAEO5DJSau9OOvNex0IMnDIsiCkiW6g6BmKYlBFkhSUEgQKlQCARG6nEBwOgl+QApMdCIRD7YZ5RjlGpCUCACH5BAUAAA0ALAAAAgAOAA4AAAQ6kLGB0JA4M7QW0hrngRllkYyhKAYqKUGguAws0ypLS8JxCLQDgXAIDg+FRKIA6v0SAECCBpXSkstMBAAh+QQFAAANACwAAAAACgAQAAAEOJDJORAac6K1kDSKYmydpASBUl0mqmRfaGTCcQgwcxDEke+9XO2WkxQSiUIuAQAkls0n7JgsWq8RACH5BAUAAA0ALAAAAAAOAA4AAAQ6kMlplDIzTxWC0oxwHALnDQgySAdBHNWFLAvCukc215JIZihVIZEogDIJACBxnCSXTcmwGK1ar1hrBAAh+QQFAAANACwAAAAAEAAKAAAEN5DJKc4RM+tDyNFTkSQF5xmKYmQJACTVpQSBwrpJNteZSGYoFWjIGCAQA2IGsVgglBOmEyoxIiMAIfkEBQAADQAsAgAAAA4ADgAABDmQSVZSKjPPBEDSGucJxyGA1XUQxAFma/tOpDlnhqIYN6MEAUXvF+zldrMBAjHoIRYLhBMqvSmZkggAIfkEBQAADQAsBgAAAAoAEAAABDeQyUmrnSWlYhMASfeFVbZdjHAcgnUQxOHCcqWylKEohqUEAYVkgEAMfkEJYrFA6HhKJsJCNFoiACH5BAUAAA0ALAIAAgAOAA4AAAQ3kMlJq704611SKloCAEk4lln3DQgyUMJxCBKyLAh1EMRR3wiDQmHY9SQslyIQUMRmlmVTIyRaIgA7";
  1026. c.up = "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=";
  1027. c.VM = "data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAAlAAD/4QMpaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjAtYzA2MCA2MS4xMzQ3NzcsIDIwMTAvMDIvMTItMTc6MzI6MDAgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjM4MDBEMDY2QTU1MjExRTFBQTAzQjEzMUNFNzMxRkQwIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjM4MDBEMDY1QTU1MjExRTFBQTAzQjEzMUNFNzMxRkQwIiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCBDUzUgV2luZG93cyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkU2RTk0OEM4OERCNDExRTE5NEUyRkE3M0M3QkE1NTlEIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkU2RTk0OEM5OERCNDExRTE5NEUyRkE3M0M3QkE1NTlEIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+/+4ADkFkb2JlAGTAAAAAAf/bAIQADQkJCQoJDQoKDRMMCwwTFhENDREWGhUVFhUVGhkUFhUVFhQZGR0fIB8dGScnKionJzk4ODg5QEBAQEBAQEBAQAEODAwOEA4RDw8RFA4RDhQVERISERUfFRUXFRUfKB0ZGRkZHSgjJiAgICYjLCwoKCwsNzc1NzdAQEBAQEBAQEBA/8AAEQgAyACgAwEiAAIRAQMRAf/EALAAAAEFAQEAAAAAAAAAAAAAAAQAAgMFBgcBAQEAAwEBAAAAAAAAAAAAAAAAAQMEAgUQAAIBAgIEBwoLBgQGAwAAAAECAwAEEQUhMRIGQVFxsTITFGGBwdEiQlKSMzWRoeFicqKyI1NzFYJjJDQWB9KjVCbxwkNkJWXik3QRAAIBAgMFBQcDBQEAAAAAAAABAhEDIRIEMUFRcTJhwVIUBZGhsSJyEzOB0ULhYpIjUxX/2gAMAwEAAhEDEQA/AMJSpUqAVKlXuFAeUq9wpUB5XuFe4V6ooDzZHDox0CnGMinzwl7Z8NajaHeoO3vmTBZBtp9YUIqTEV5ROxHKnWRnaU8VRMhFBUjpV7hSoSeUq9pUB5Sr2lhQHlKvcK8oBV7hSFSRrtaKAZs07YNPM1pG2xJIAw1jSeandry/8X4m8VCKkWwaWwam7Xl/4v1W8VLtmX/i/VbxUoKkWwakSM407tmX/i/VbxUmzGwjQsjdY41IARie/U0IbZO0kNtCXnOCkEBeFu4KI3Bs7DNb27ya+jDx3kJeEnpJJEcQVbWDsk17u5urd591ucZkWhym2Vnd9RkCDEpFxDRpbw0bunu5mlp2De2FMLYXOD2wB2xbOeraUcYGJ72mlSUiqzzdzMd3Z3mixltA2yzcK/NlHM1DQyRXce1HocdNOEfJXZ88y9ZojOqhiBszIRiHQ8Y4cK5TvHuzLljHNMqxNoDjLFraHHnjPxcNCGVbxEUzYNTx5jZSxhpW6qTzlwJ+DCvO2Zf+L9VvFSgqyHYNLYNTdssPxfibxUu15f8Ai/VPiqCakOwa82DU/a8v/F+JvFTDdWPBL8R8VKCvYRYV5UzoMAy6QdIIqI0B4KJtxiRQwou16QoGUkntH5Tz0RbZbmF2hktraSVBo2lUkY8tDye0flPPXTslVUyiyVRsjqUOA4yMT8dW2ram2m6UVTNq9S7EIyUVJydMTn/6DnP+im9Wl+g5z/opvVrpteEhQWY4AaSTwAVf5WPiZh/9S5/zj7zltzlmYWkfWXNvJDGTgGcYDHirR7i7mSbwXParsFMrgb7w6jKw/wCmnc9I14kF3vpvCljbMyWMOJL4aEiB8qU/ObUK7HYWVrl1pFZWiCOCBQqKOLjPGTrNZZqKbUXVHq2nNwTuJRk1VpbgXN8s7Rk5ym0UQQzhIG2NAjhxHWbI+gCBVjBBFbwxwQqEiiUJGg1BVGAFe7dV28WYLYZFmF2Th1UD7JGjymGyn1iK5OyzIBGB1HgrLZhamzumQAGJwSqnSCh1q3GOCodxt4cxurdcpzuN4cyhiWaF5Bg09udUmnWw1H/jV9nFuJ7Quo+8h8peThFA+047vduyMtk7fYqTl07YFdfUufMPzT5p71UdtlmYXaGS2t3mQHAsgxANdadYJopLe4QS2867EsZ4QfCNYrCFbjdDPmgkYyWFxgVf04ifJf6ScNdRUW1XBb6FU5TjF5EpSSrGu/s5lN+g5z/opvVpfoOc/wCim9WtdHnatvObJXDW7xLGhB8nrPaY9/HCr+tEdPCVaSeDoYLnqF63lzW4/PFSW3ecxbI84VSzWUwUaSdg0DXXK5nvAipnd6qgKvWnQO7pri9ZUEmm3Vl2j1kr8pRlFRyquBNZjGxQ/S56Y1S2fu9OVueon11Szahoou06QoQUXadIVCD2FJJ7R+U89dMydv8Axdn+TH9muZye0flPPXQstlK5Tbka1gUjlC1q0vVLkeb6r+O3Tx9xcY1nt8c0NrZCyiOE1108NYjGv1joo7Js1jzKyScYLIvkzL6LDwHXVJksH9Sb49dKNq0tj1jA6uriOCL+02FWX7iVtZX1/AzaHTyeoauKn2MX9W79zebiZCuR5MjSrhfXuEtwTrUeZH+yNfdrRNcxI6IzhXlJEak6WIGJ2Rw4ChWnChndtlVBLMdQA0k1gbXNMzzDfDLs6mjaPKppJbWwJ1bOwwxw43OnHh71YT3DpfWUJmFlb5jHHDdeXBHIsrRea5TSqvxqG04cNN62vetoCS4tre5mgnkGE9q+3DKOkuI2WX6LDQRRHWDh1UCtwj7QRg2wdl8Djgw1qe7XvW0BQ3kfZ7mSLgU+T9E6RVbnuVrnWVSWqj+Lt8ZbRuHEdKPkYVcZ2MJY5fSGyeVar45+rkWQHAqccalPE5km1htWK5nK4Wnt5FuUBUwOMG4nGkA/BXUrW4S6torlOjMgcd/xVn7rLo7zKs0uEjCNeSvdwoBhgsZxX1l2j36k3Lu+uyprdj5Vs5A+i/lD48a0aaVJOPi7jB6lbzWozpjB48pf1NDXNN4vfl7+Z4BXS65pvF78vfzPAK71XTHmZ/S/yT+jvJ7L3fHytz1E+upbL+Qj5W56jfXWRnsIYKLtekKEFGWvSFQgyjk9o/Keet3YthlMP/5x9msJJ7R+U89biyb/AMXEv7gD6tadL1T+kwepRrC39ZkLDMbiwMvUHRPG0bjlGg8ore/23sxBldxfMPLupNhT8yL/AORNZbdzJ484scytxgLqJY5LZj6Q2sV5G1Vud1mjjyG0ij0NEGSZToKyhjtqw4waztuiXA3qKTbSxltfGhbZlE95ZtZqxVbgiOZhrER9ph3Svk9+pJILZ4Y4DGBFCUMKjRsGPobPFhUfW0NJmljE2xJcIrcI2vFUEln1lRXd6lrazXT9GCNpD+yNqoI7mOVduNw6nzlOIoPOUa6yye1XXcbMR5GdQ3xY0BSbj31/FcTQZirJ+q431q7anbHCTZ72Bw7lbPrKBMcBWNNgbMBBh+bsjBdni0VJ1lARZs6yWiupxCuMDy6KpS2IwOo6DTr3Mre3e5tZZVUM4ZBjqOOJoWO4jkXajcOOMHGgDISvWIrdAkKR80+TzVl908bPPL3LzxOuHdifxVfiTAg92qI/w+/8gGgSyN/mR7XPVlp0lF/3L3mbVKtu5Hjbk/8AHE2Fc03i9+Xv5ngFdKNc13i9+Xv5ngFaNV0x5nn+l/kn9HeEWXu+PlbnqJ9dS2Xu9OVueon11kZ7CGCjLXpCgxRlr0hUIPYUcntH5Tz1s8vb+Bt1/dqPirGSe0flPPWusG/g4Py15q06XqlyMWvVYQ+ruI9xJOqzO9hOto/sP8tbGOFIrmWeM7IuMDMnAXXQJOUjQeOsJk0nY96ip0CYunrjaHx1t+srPJUbXBm2LrFPikwTOb+T+VhbZxGMrDXp83x1QSy2tucJpUjPETp+Cn5/ftaRvKvtp3Kx48HG3erHMzOxZiWZtLMdJNQSbbL71Vk6yynViOkqnEEfOWtPbXi3EQkGg6mXiNckjeSJxJGxR10qw0GtxuxmvbImD4CZMFlA4fRfv0BqesqqzTMZNMEDbIHtHH2QeCiZJSqMQdOGiue53mz3czQwsRbIcNHnkec3c4qAMuriz68gTIToxwOOnlp0MjxMJYW741Gs3RVldtbygE/dMcHX/moDaxTiWNZB53B3arb8/wC+4SOF4sf/AKxU9kcBsfOGHfoUHtG/RbzY5Die5HHhXdvavqiZ9Q8Jdlq4/gbKua7xe/L38zwCuhpf2Uk/Zo50kmwJKIdogDjw1VzzeL35e/meAVp1LTgqY4nn+mRauzqmqwrjzCLL3fHytz1E+upLL+Qj5W56jfXWRnroYKLtekKEFF2vSFQg9hSSe0flPPWosm/hIfoLzVl5PaPynnrRWb/w0X0F5q06XqlyM2sVYx5gmbFre/t71NY2T+0h8VbSO5SWNJUOKSAMp7jDGspmMPaLRlXS6eWve1/FRO7WYdbZm1Y/eW/R7qHxHRXGojlm3ulid6aVbaW+OALvgCLq2Hm9WxHKWqjhj6xsK1e8dm15l4niG1LZkswGsxtrPeOmsvayBJA1VItlWjptLuTdPMo7LtjRDq9naK4+WF9IrUW7BaHOljGqVHB7w2hzVoZt87d8vaNYSLl02CcRsDEbJbj71Uu7UBkvJ7/D7q2QoDxySaAO8MTXdxRVMpRp5XZOWdF/ms7R5XdyKfKWJsO/5PhrG5XlNxmEywW6bTnTxAAcJNbGSMXkM1pjgbiNo1PziPJ+Os7u7m/6ReM00ZOgxSpqYYHT3wRXMKN4ll9zUG4bQfNshu8sZVuEA2hirA4qe/VOwwrVbzbww5mI44UKRRYkbWG0S3JWctbd7u5WFfOOLHiUdJqmaipfLsIsObhWe001lMkMVvJNjhghIALMcBxCs7fxXQmkupx1bXDswGPlaTidVaEyKNXkoo4eBV+Sq7L7Vs9zcBgeyQ4GQ/MB1crmoim2orezqcowTuSeEY48jQ7oZX2PLzdyLhNd6RjrEY6I7+uspvH78vfzPAK6UAAAFGAGgAcArmu8Xvy9/M8ArTfio24RW5nnaG67uou3H/KPuqT2X8hHytz1G+upLL3enK3PUb66ys9RDBRdr0hQgou06QqEGUkntH5Tz1e238vF9BeaqKT2j8p56vbb+Xi+gvNWjTdUuRn1XTHmTh8KrJTJlt8t1CPIY44cGnpJVjTJYkmjaN9Ib4u7V923njTethRauZJV3PaW1rfLIiXEDYg6R4VYc9CXW7thfOZbKdbGZtLW8uPVY/u3GrkNUkM9zlcxUjbhfWOA90cRq4gv4LhdqN+VToNYWmnRm9NNVWNTyHc6VWBv8wt4YeHqm6xyPmroq1Z7WGFLSxTq7WLSuPSdjrkfumq5yHXDUeA92oO2SKpVumNAaoJLMXH3myp0rpJ4uKhc3tbDM5BMri1zAj79j7KTiY8TcdBpcsith0286o+sPCagEX9Pzg4zXUCp6QYse8oouCG3tk6m1BYv05W6T+IdyolxbHDAAa2OgDlNCz3ryN2WxBd5PJMg1t81eId2ukqnLlTBbfcuY+9uJLiRcvtPvHdsHK+cfRHcHDWsyawjyy0WBcDI3lTP6TeIcFV+S5OmXx9bJg1048o8Cj0V8Jq2DVu09nL80up7OxHi+oal3P8AXB/IsZS8T/YOV65zvCcc7vfzPAK3ivWCz445zeH954BXOr6I8yfSfyz+jvCLP3fHytz1G+upLP3fHytz1E+usbPaQ0UXadIUIKLtekKhB7Ckk9o/Keer22/l4/oLzVRSe0flPPV7b/y8X0F5q0abqlyM+q6Y8yQsBTDMor1o8aiaE1pbluMqS3sbLLHIhSRQyngqukhaJ9uBjo+H5aOa3ao2t34qouRlLajTalGP8v0IY8ylXQ+PKPFU/bYXOLPge6CKia0LaxTOxHu1Q7cuBd9yPEJ7TbjXKO8CajbMIF6CNIeNvJHjqIWJ7tSpYkalqVblwIdyG+RGXur0hXYJFxal+Dhq5y3slkv3Y2pD0pTr+QUClpJRUdo9XW4OLrTHtM16cZLLWkeC7y4jvlNEpcRtw1Ux27Ci448NZrTFy3nn3IQWxlgGrDZ3pza7/M8ArZo+ArF5171uvp+CqdV0R5l/psUrs2vB3hdl7vTlbnqJ9dS2Xu+PlbnqJ9dY2eshooq16QoQUXa9IVCD2FLJ7RuU89WNtmUSQqkgYMgw0accKrpPaPynnrZWG4Vi+VWmY5tnMWXG+XrIYnA0rhj0mdcTgdNdwnKDqjmduM1SRR/qlr8/4KX6pa8T/BVzDuLZXudRZblmbxXcPUNPc3KqCIwrbOzgrHEnHjoyD+3eSXkht7DeKG4umDGOJVUklfouThXfmbnZ7Cvy1vt9pmv1W1+d8FL9VteJvgq5yrcOGfLmzHN80iyyETPbptAEFo2ZG8pmUa1OFNn3Ky6W/sbDKM5hv5bx2WTZA+7RF2y52WOPJTzE+z2Dy1vt9pT/AKpacTerS/U7Tib1a04/t7kDXPY03jhN0W6sQ7K7W3q2dnrMccaDy/8At80kuZfqWYxWNtlcvUPPhiGYhWDeUy7IwYU8xPs9g8tb7faUn6pacTerTxm9oOBvVq3v9z927aynuId44LiWKNnjhAXF2UYhRg516qpsryjLr21665zFLSTaK9U2GOA87SwqY37knRU+BzOzags0s1Oyr+BKM6sxwP6tSDPLMen6vy0rvdm3Sxlu7K/S7WDDrFUDUTxgnTU826eXW7KlxmqQuwDBXUKcD+1Xee/wXuKX5XDGWLapSVcOyhEM/seJ/V+WnjeGx4pPV+Wkm6kKZlFay3Jlt7iFpYZY8ASVK6DjtDDA0f8A0Tl340/1f8Ndx8xJVWXB0KbktFFpNzdVXAC/qOwA0CQni2flrO3Vwbm5lnI2TKxbDirX/wBE5d+NcfV/wVR7xZPa5U9utvI8nWhmbbw0YEAYYAVxfhfy5rlKR4Fulu6X7mW1mzT8S4Yis/5CPlbnqJ9dSWfu9OVueon11mZvQ2i7XpChKKtekKhBlNJ7R+U89bDfGTb3a3ZX0Lcj6kdY+T2j8p560288m1kWQr6MJ+ylSAr+2cnV5renjs3H1loX+3j9XvbbtxLN9lqW4UnV5jdnjtXHxihtyZNjeSBu5J9k1BJe7xy7W5CJ/wCzuD/mTVTf2+fq97LJuLrPsNRueS7W6aJ/38x+vLVXuY+xvHaNxbf2GoCezf8A36j/APsSf8w1sLnqczTefJluYoLm5uo5F61sBshItP1cNFYe1f8A3ir/APfE/wCZUe9bB94r5jwuPsrQFhmG4l/Z2M17HdW90tuu3IkTHaCjWdIw0VVZdks9/C06yJFEp2dp+E1bbqybGTZ8vpQD7L1XRv8A7blT96Oda7tpNuuNE37Cq9KSisjyuUoxrStKllHbLlWTXsMs8chuSuwEPDqwoLe5y+YRE/gLzmqRekvKKtd4327yM/ulHxmrHJStySWVRyrjxKI2XC/CTlnlPPKTpTdFbP0L1bgrf5Lp0G3dPhQHwV0S1lzBsns3sESR8Crh9WAJGjSOKuU3E+zdZQ3oJh8IArdZXFDmOTpHa3i2+YrI2KtKy4ricBsBuHHgFXSo440+Wa2qqxjvM9uMoy+WvzWpLCWWWE28HxL6e43ojgkeSCBY1Ri5BGIUDT51cl3vm276BBqSEH4WbxV0tlkyXJcxTMb+OW6uY9mGHrCzDQwwAbTp2uKuTZ9N1uYsfRRR8WPhrm419mSSjRyiqxVK7y23B/ftuTm2oSdJyzNVw3BFn7vTlbnqF9dS2fu9OVueon11lZuQ2iLdsGFD05H2dNQGV0ntG5Tz1dWm9N1b2kVq8EVwsI2UaQaQOKhmitZGLOmk68DhSFvY+gfWNSAg7z3Qvo7yKCKIohiaNR5LKxx8qpxvjcqS0VpbxvwOAcRQPZ7D0G9Y0uz2HoH1jUCpLY7zXlpbm3eKO5QuzjrBqZji3x17PvNcyT288VvDBJbMWUovS2hslW7mFQ9nsPQPrGl2ew9A+saCod/WNxtbYsrfb17WBxx5ddD2281xC88klvDcSXEnWuzrqOGGC9zRUPZ7D0G9Y0uzWHoH1jQVCLreq6ntZbaO3it1mGy7RjTs1X2mYy20ZiCq8ZOODcdEdmsPQb1jS7PYegfWNdJuLqnQiSUlRqpFLmryxtH1Ma7Qw2gNNPOdSt0oI27p007s9h6B9Y0uz2HoH1jXX3Z+I4+1b8IJdX89xLHKQFMXQUahpxoiPN5P+onfU+A0/s9h6DesaXZ7D0D6xpG7OLbUtu0StW5JJx2bBsmbtiSiEk+cxoCWWSaVpZOk2vDVo0VYdnsPQb1jSNvZcCH1jSd2c+p1XAmFqEOmOPEfaH+BQd1ueo211IzrgFUYKNAAqI1WztCpUqVCRUqVKgFSpUqAVKlSoBUqVKgFSpUqAVKlSoBUqVKgFSpUqAVKlSoD/9k=";
  1028. var c = c || {},
  1029. na = {
  1030. id: 0 | 998 * Math.random(),
  1031. I4: 0 | 998 * Math.random(),
  1032. HO: function(a, b, d) {
  1033. a = a.toString();
  1034. var e = a.substring(a.indexOf("(") + 1, a.indexOf(")")),
  1035. e = e.trim();
  1036. for (a = a.substring(a.indexOf("{") + 1, a.lastIndexOf("}")); - 1 != a.indexOf("this._super");) {
  1037. var f = a.indexOf("this._super"),
  1038. g = a.indexOf("(", f),
  1039. h = a.substring(g + 1, a.indexOf(")", g)),
  1040. h = h.trim();
  1041. a = a.substring(0, f) + "ClassManager[" + d + "]." + b + ".call(this" + (h ? "," : "") + a.substring(g + 1)
  1042. }
  1043. return Function(e, a)
  1044. },
  1045. I3: function() {
  1046. return this.id++
  1047. },
  1048. J3: function() {
  1049. return this.I4++
  1050. }
  1051. };
  1052. na.HO.q$ = na;
  1053. (function() {
  1054. var a = /\b_super\b/,
  1055. b = c.Wc.vf[c.Wc.Nh.M1];
  1056. b && console.log("release Mode");
  1057. c.qa = function() {};
  1058. c.qa.extend = function(d) {
  1059. function e() {
  1060. this.Ba = na.J3();
  1061. this.ctor && this.ctor.apply(this, arguments)
  1062. }
  1063. var f = this.prototype,
  1064. g = Object.create(f),
  1065. h = na.I3();
  1066. na[h] = f;
  1067. var k = {
  1068. writable: !0,
  1069. enumerable: !1,
  1070. configurable: !0
  1071. };
  1072. g.Ba = null;
  1073. e.id = h;
  1074. k.value = h;
  1075. Object.defineProperty(g, "__pid", k);
  1076. e.prototype = g;
  1077. k.value = e;
  1078. Object.defineProperty(e.prototype, "constructor", k);
  1079. this.Wi && (e.Wi = c.k(this.Wi));
  1080. this.Xi && (e.Xi = c.k(this.Xi));
  1081. for (var m = 0, n = arguments.length; m < n; ++m) {
  1082. var q = arguments[m],
  1083. r;
  1084. for (r in q) {
  1085. var t = "function" === typeof q[r],
  1086. s = "function" === typeof f[r],
  1087. u = a.test(q[r]);
  1088. b && t && s && u ? (k.value = na.HO(q[r], r, h), Object.defineProperty(g, r, k)) : t && s && u ? (k.value = function(a, b) {
  1089. return function() {
  1090. var d = this._super;
  1091. this._super = f[a];
  1092. var e = b.apply(this, arguments);
  1093. this._super = d;
  1094. return e
  1095. }
  1096. }(r, q[r]), Object.defineProperty(g, r, k)) : t ? (k.value = q[r], Object.defineProperty(g, r, k)) : g[r] = q[r];
  1097. if (t) {
  1098. var v, B;
  1099. if (this.Wi && this.Wi[r]) {
  1100. var t = this.Wi[r],
  1101. x;
  1102. for (x in this.Xi) if (this.Xi[x] == t) {
  1103. B = x;
  1104. break
  1105. }
  1106. c.i(g, t, q[r], q[B] ? q[B] : g[B], r, B)
  1107. }
  1108. if (this.Xi && this.Xi[r]) {
  1109. t = this.Xi[r];
  1110. for (x in this.Wi) if (this.Wi[x] == t) {
  1111. v = x;
  1112. break
  1113. }
  1114. c.i(g, t, q[v] ? q[v] : g[v], q[r], v, r)
  1115. }
  1116. }
  1117. }
  1118. }
  1119. e.extend = c.qa.extend;
  1120. e.Qha = function(a) {
  1121. for (var b in a) g[b] = a[b]
  1122. };
  1123. return e
  1124. };
  1125. Function.prototype.bind = Function.prototype.bind ||
  1126. function(a) {
  1127. var b = this;
  1128. return function() {
  1129. var f = Array.prototype.slice.call(arguments);
  1130. return b.apply(a || null, f)
  1131. }
  1132. }
  1133. })();
  1134. c.i = function(a, b, d, e, f, g) {
  1135. if (a.__defineGetter__) d && a.__defineGetter__(b, d), e && a.__defineSetter__(b, e);
  1136. else if (Object.defineProperty) {
  1137. var h = {
  1138. enumerable: !1,
  1139. configurable: !0
  1140. };
  1141. d && (h.get = d);
  1142. e && (h.set = e);
  1143. Object.defineProperty(a, b, h)
  1144. } else throw Error("browser does not support getters");
  1145. if (!f && !g) for (var h = null != d, k = void 0 != e, m = Object.getOwnPropertyNames(a), n = 0; n < m.length; n++) {
  1146. var q = m[n];
  1147. if ((a.__lookupGetter__ ? !a.__lookupGetter__(q) : !Object.getOwnPropertyDescriptor(a, q)) && "function" === typeof a[q]) {
  1148. var r = a[q];
  1149. if (h && r === d && (f = q, !k || g)) break;
  1150. if (k && r === e && (g = q, !h || f)) break
  1151. }
  1152. }
  1153. a = a.constructor;
  1154. f && (a.Wi || (a.Wi = {}), a.Wi[f] = b);
  1155. g && (a.Xi || (a.Xi = {}), a.Xi[g] = b)
  1156. };
  1157. c.k = function(a) {
  1158. var b = a.constructor ? new a.constructor : {},
  1159. d;
  1160. for (d in a) {
  1161. var e = a[d];
  1162. b[d] = "object" != typeof e || !e || e instanceof c.t || e instanceof HTMLElement ? e : c.k(e)
  1163. }
  1164. return b
  1165. };
  1166. c = c || {};
  1167. c.H = c.H || {};
  1168. c.Nca = function() {};
  1169. c.$r = {
  1170. vO: 8,
  1171. N8: 9,
  1172. gP: 13,
  1173. shift: 16,
  1174. tda: 17,
  1175. alt: 18,
  1176. pause: 19,
  1177. Yca: 20,
  1178. escape: 27,
  1179. tla: 33,
  1180. sla: 34,
  1181. end: 35,
  1182. home: 36,
  1183. left: 37,
  1184. Apa: 38,
  1185. right: 39,
  1186. Nda: 40,
  1187. Nu: 45,
  1188. E$: 46,
  1189. 0: 48,
  1190. 1: 49,
  1191. 2: 50,
  1192. 3: 51,
  1193. 4: 52,
  1194. 5: 53,
  1195. 6: 54,
  1196. 7: 55,
  1197. 8: 56,
  1198. 9: 57,
  1199. a: 65,
  1200. b: 66,
  1201. C: 67,
  1202. D: 68,
  1203. Jd: 69,
  1204. wf: 70,
  1205. g: 71,
  1206. Fq: 72,
  1207. Bi: 73,
  1208. Cz: 74,
  1209. Dz: 75,
  1210. Ej: 76,
  1211. Mk: 77,
  1212. ha: 78,
  1213. Uz: 79,
  1214. d: 80,
  1215. gA: 81,
  1216. r: 82,
  1217. eI: 83,
  1218. jg: 84,
  1219. da: 85,
  1220. G: 86,
  1221. l: 87,
  1222. x: 88,
  1223. y: 89,
  1224. z: 90,
  1225. Jka: 96,
  1226. Kka: 97,
  1227. Lka: 98,
  1228. Mka: 99,
  1229. Nka: 100,
  1230. Oka: 101,
  1231. Pka: 102,
  1232. Qka: 103,
  1233. Rka: 104,
  1234. Ska: 105,
  1235. "*": 106,
  1236. "+": 107,
  1237. "-": 109,
  1238. numdel: 110,
  1239. "/": 111,
  1240. xea: 112,
  1241. Bea: 113,
  1242. Cea: 114,
  1243. Dea: 115,
  1244. Eea: 116,
  1245. Fea: 117,
  1246. Gea: 118,
  1247. Hea: 119,
  1248. Iea: 120,
  1249. yea: 121,
  1250. zea: 122,
  1251. Aea: 123,
  1252. Vka: 144,
  1253. Gma: 145,
  1254. Ima: 186,
  1255. ",": 186,
  1256. vea: 187,
  1257. "=": 187,
  1258. ";": 188,
  1259. nda: 188,
  1260. uda: 189,
  1261. ".": 190,
  1262. zla: 190,
  1263. Uea: 191,
  1264. Mha: 192,
  1265. "[": 219,
  1266. cla: 219,
  1267. "]": 221,
  1268. jda: 221,
  1269. Oca: 220,
  1270. quote: 222,
  1271. Ec: 32
  1272. };
  1273. c.J$ = 0;
  1274. c.iB = 1;
  1275. c.lJ = 2;
  1276. c.K$ = 3;
  1277. c.L$ = 4;
  1278. c.dU = 5;
  1279. c.w3 = function(a) {
  1280. 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] ? c.iB : 2 < a.length && (73 == a[0] && 73 == a[1] || 77 == a[0] && 77 == a[1] || 255 == a[0] && 216 == a[1]) ? c.lJ : c.dU
  1281. };
  1282. c.Rha = function(a, b) {
  1283. function d() {}
  1284. d.prototype = b.prototype;
  1285. a.HA = b.prototype;
  1286. a.prototype = new d;
  1287. a.prototype.constructor = a
  1288. };
  1289. c.Pca = function(a, b, d) {
  1290. var e = arguments.callee.caller;
  1291. if (e.HA) return ret = e.HA.constructor.apply(a, Array.prototype.slice.call(arguments, 1));
  1292. for (var f = Array.prototype.slice.call(arguments, 2), g = !1, h = a.constructor; h; h = h.HA && h.HA.constructor) if (h.prototype[b] === e) g = !0;
  1293. else if (g) return h.prototype[b].apply(a, f);
  1294. if (a[b] === e) return a.constructor.prototype[b].apply(a, f);
  1295. throw Error("cc.base called from a method of one name to a method of a different name");
  1296. };
  1297. c.Baa = function(a, b) {
  1298. this.x = a || 0;
  1299. this.y = b || 0
  1300. };
  1301. c.d = function(a, b) {
  1302. return void 0 == a ? {
  1303. x: 0,
  1304. y: 0
  1305. } : void 0 == b ? {
  1306. x: a.x,
  1307. y: a.y
  1308. } : {
  1309. x: a,
  1310. y: b
  1311. }
  1312. };
  1313. c.VH = function(a, b) {
  1314. return a && b && a.x === b.x && a.y === b.y
  1315. };
  1316. c.Laa = function(a, b) {
  1317. this.width = a || 0;
  1318. this.height = b || 0
  1319. };
  1320. c.size = function(a, b) {
  1321. return void 0 === a ? {
  1322. width: 0,
  1323. height: 0
  1324. } : void 0 === b ? {
  1325. width: a.width,
  1326. height: a.height
  1327. } : {
  1328. width: a,
  1329. height: b
  1330. }
  1331. };
  1332. c.Soa = function(a, b) {
  1333. return a && b && a.width == b.width && a.height == b.height
  1334. };
  1335. c.VJ = function(a, b, d, e) {
  1336. this.x = a || 0;
  1337. this.y = b || 0;
  1338. this.width = d || 0;
  1339. this.height = e || 0
  1340. };
  1341. c.rect = function(a, b, d, e) {
  1342. return void 0 === a ? {
  1343. x: 0,
  1344. y: 0,
  1345. width: 0,
  1346. height: 0
  1347. } : void 0 === b ? {
  1348. x: a.x,
  1349. y: a.y,
  1350. width: a.width,
  1351. height: a.height
  1352. } : {
  1353. x: a,
  1354. y: b,
  1355. width: d,
  1356. height: e
  1357. }
  1358. };
  1359. c.nR = function(a, b) {
  1360. return a && b && a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height
  1361. };
  1362. c.dy = function(a) {
  1363. return a && 0 === a.x && 0 === a.y && 0 === a.width && 0 === a.height
  1364. };
  1365. c.Tla = function(a, b) {
  1366. return a && b ? !(a.x >= b.x || a.y >= b.y || a.x + a.width <= b.x + b.width || a.y + a.height <= b.y + b.height) : !1
  1367. };
  1368. c.qv = function(a) {
  1369. return a.x + a.width
  1370. };
  1371. c.Ula = function(a) {
  1372. return a.x + a.width / 2
  1373. };
  1374. c.Zq = function(a) {
  1375. return a.x
  1376. };
  1377. c.rv = function(a) {
  1378. return a.y + a.height
  1379. };
  1380. c.Vla = function(a) {
  1381. return a.y + a.height / 2
  1382. };
  1383. c.$q = function(a) {
  1384. return a.y
  1385. };
  1386. c.Rg = function(a, b) {
  1387. return b.x >= c.Zq(a) && b.x <= c.qv(a) && b.y >= c.$q(a) && b.y <= c.rv(a)
  1388. };
  1389. c.F6 = function(a, b) {
  1390. var d = a.y + a.height,
  1391. e = b.x + b.width,
  1392. f = b.y + b.height;
  1393. return !(a.x + a.width < b.x || e < a.x || d < b.y || f < a.y)
  1394. };
  1395. c.Xla = function(a, b) {
  1396. return !(a.x + a.width < b.x || b.x + b.width < a.x || a.y + a.height < b.y || b.y + b.height < a.y)
  1397. };
  1398. c.jA = function(a, b) {
  1399. var d = c.rect(0, 0, 0, 0);
  1400. d.x = Math.min(a.x, b.x);
  1401. d.y = Math.min(a.y, b.y);
  1402. d.width = Math.max(a.x + a.width, b.x + b.width) - d.x;
  1403. d.height = Math.max(a.y + a.height, b.y + b.height) - d.y;
  1404. return d
  1405. };
  1406. c.Wla = function(a, b) {
  1407. var d = c.rect(Math.max(c.Zq(a), c.Zq(b)), Math.max(c.$q(a), c.$q(b)), 0, 0);
  1408. d.width = Math.min(c.qv(a), c.qv(b)) - c.Zq(d);
  1409. d.height = Math.min(c.rv(a), c.rv(b)) - c.$q(d);
  1410. return d
  1411. };
  1412. c.ww = c.qa.extend({
  1413. dN: null,
  1414. ZD: null,
  1415. ctor: function() {
  1416. window.DOMParser ? (this.ZD = !0, this.dN = new DOMParser) : this.ZD = !1
  1417. },
  1418. parse: function(a) {
  1419. return this.sE(a)
  1420. },
  1421. sE: function(a) {
  1422. var b;
  1423. this.ZD ? b = this.dN.parseFromString(a, "text/xml") : (b = new ActiveXObject("Microsoft.XMLDOM"), b.async = "false", b.loadXML(a));
  1424. return b
  1425. }
  1426. });
  1427. c.zV = c.ww.extend({
  1428. parse: function(a) {
  1429. a = this.sE(a).documentElement;
  1430. if ("plist" != a.tagName) throw "Not a plist file!";
  1431. for (var b = null, d = 0, e = a.childNodes.length; d < e && (b = a.childNodes[d], 1 != b.nodeType); d++);
  1432. return this.rE(b)
  1433. },
  1434. rE: function(a) {
  1435. var b = null,
  1436. d = a.tagName;
  1437. if ("dict" == d) b = this.r_(a);
  1438. else if ("array" == d) b = this.q_(a);
  1439. else if ("string" == d) if (1 == a.childNodes.length) b = a.firstChild.nodeValue;
  1440. else for (b = "", d = 0; d < a.childNodes.length; d++) b += a.childNodes[d].nodeValue;
  1441. else "false" == d ? b = !1 : "true" == d ? b = !0 : "real" == d ? b = parseFloat(a.firstChild.nodeValue) : "integer" == d && (b = parseInt(a.firstChild.nodeValue, 10));
  1442. return b
  1443. },
  1444. q_: function(a) {
  1445. for (var b = [], d = 0, e = a.childNodes.length; d < e; d++) {
  1446. var f = a.childNodes[d];
  1447. 1 == f.nodeType && b.push(this.rE(f))
  1448. }
  1449. return b
  1450. },
  1451. r_: function(a) {
  1452. for (var b = {}, d = null, e = 0, f = a.childNodes.length; e < f; e++) {
  1453. var g = a.childNodes[e];
  1454. 1 == g.nodeType && ("key" == g.tagName ? d = g.firstChild.nodeValue : b[d] = this.rE(g))
  1455. }
  1456. return b
  1457. }
  1458. });
  1459. c.$N = {
  1460. load: function(a, b, d, e) {
  1461. c.X.Pz(a, e)
  1462. }
  1463. };
  1464. c.X.Tk(["txt", "xml", "vsh", "fsh", "atlas"], c.$N);
  1465. c.SZ = {
  1466. load: function(a, b, d, e) {
  1467. c.X.MQ(a, e)
  1468. }
  1469. };
  1470. c.X.Tk(["json", "ExportJson"], c.SZ);
  1471. c.zZ = {
  1472. load: function(a, b, d, e) {
  1473. c.X.Ig[b] = c.X.Qq(a, function(a, d) {
  1474. if (a) return e(a);
  1475. c.Ka.$b(b);
  1476. e(null, d)
  1477. })
  1478. }
  1479. };
  1480. c.X.Tk("png jpg bmp jpeg gif ico".split(" "), c.zZ);
  1481. c.N_ = {
  1482. load: function(a, b, d, e) {
  1483. c.X.Ig[b] = c.X.Qq(d.src, function(a, d) {
  1484. if (a) return e(a);
  1485. c.Ka.$b(b);
  1486. e(null, d)
  1487. })
  1488. }
  1489. };
  1490. c.X.Tk(["serverImg"], c.N_);
  1491. c.w_ = {
  1492. load: function(a, b, d, e) {
  1493. c.X.Pz(a, function(a, b) {
  1494. if (a) return e(a);
  1495. e(null, c.n6.parse(b))
  1496. })
  1497. }
  1498. };
  1499. c.X.Tk(["plist"], c.w_);
  1500. c.LY = {
  1501. LW: {
  1502. ".eot": "embedded-opentype",
  1503. ".ttf": "truetype",
  1504. ".woff": "woff",
  1505. ".svg": "svg"
  1506. },
  1507. SM: function(a, b, d) {
  1508. var e = document,
  1509. f = c.path,
  1510. g = this.LW,
  1511. h = c.ac("style");
  1512. h.type = "text/css";
  1513. e.body.appendChild(h);
  1514. var k = "@font-face { font-family:" + a + "; src:";
  1515. if (b instanceof Array) for (var m = 0, n = b.length; m < n; m++) d = f.jm(b[m]).toLowerCase(), k += "url('" + b[m] + "') format('" + g[d] + "')", k += m == n - 1 ? ";" : ",";
  1516. else k += "url('" + b + "') format('" + g[d] + "');";
  1517. h.textContent += k + "};";
  1518. b = c.ac("div");
  1519. d = b.style;
  1520. d.fontFamily = a;
  1521. b.innerHTML = ".";
  1522. d.position = "absolute";
  1523. d.left = "-100px";
  1524. d.top = "-100px";
  1525. e.body.appendChild(b)
  1526. },
  1527. load: function(a, b, d, e) {
  1528. b = d.type;
  1529. a = d.name;
  1530. b = d.Yoa;
  1531. "string" == typeof d ? (b = c.path.jm(d), a = c.path.E1(d, b), this.SM(a, d, b)) : this.SM(a, b);
  1532. e(null, !0)
  1533. }
  1534. };
  1535. c.X.Tk(["font", "eot", "ttf", "woff", "svg"], c.LY);
  1536. c.Cba = {
  1537. load: function(a, b, d, e) {
  1538. c.X.C5(a, e)
  1539. }
  1540. };
  1541. window.CocosEngine = c.fB = "Cocos2d-html5 v3.0 RC0";
  1542. c.Do = 0;
  1543. c.aB = c.d(0, 0);
  1544. c.FT = 0.5;
  1545. c.p$ = 1;
  1546. c.ZB = 1;
  1547. c.gV = 0;
  1548. c.eK = 0;
  1549. c.bC = 0;
  1550. c.Saa = 0;
  1551. c.Daa = 1;
  1552. c.Caa = "-hd";
  1553. c.zX = 1;
  1554. c.hl = 0;
  1555. c.Haa = 0;
  1556. c.DU = 0;
  1557. c.CU = 0;
  1558. c.qB = 1;
  1559. c.u$ = c.fB + "-canvas";
  1560. c.Sv = 1;
  1561. c.Qh = 1;
  1562. c.Fb = function(a) {
  1563. var b = this == c ? document : this;
  1564. if (a = a instanceof HTMLElement ? a : b.querySelector(a)) a.find = a.find || c.Fb, a.kH = a.kH ||
  1565. function(a) {
  1566. return this.className.match(RegExp("(\\s|^)" + a + "(\\s|$)"))
  1567. }, a.mO = a.mO ||
  1568. function(a) {
  1569. this.kH(a) || (this.className && (this.className += " "), this.className += a);
  1570. return this
  1571. }, a.M6 = a.M6 ||
  1572. function(a) {
  1573. this.kH(a) && (this.className = this.className.replace(a, ""));
  1574. return this
  1575. }, a.remove = a.remove ||
  1576. function() {
  1577. this.parentNode && this.parentNode.removeChild(this);
  1578. return this
  1579. }, a.qO = a.qO ||
  1580. function(a) {
  1581. a.appendChild(this);
  1582. return this
  1583. }, a.t6 = a.t6 ||
  1584. function(a) {
  1585. a.childNodes[0] ? a.insertBefore(this, a.childNodes[0]) : a.appendChild(this);
  1586. return this
  1587. }, a.Iv = a.Iv ||
  1588. function() {
  1589. this.style[c.Fb.W8] = c.Fb.translate(this.position) + c.Fb.rotate(this.rotation) + c.Fb.scale(this.scale) + c.Fb.gr(this.gr);
  1590. return this
  1591. }, a.position = a.position || {
  1592. x: 0,
  1593. y: 0
  1594. }, a.rotation = a.rotation || 0, a.scale = a.scale || {
  1595. x: 1,
  1596. y: 1
  1597. }, a.gr = a.gr || {
  1598. x: 0,
  1599. y: 0
  1600. }, a.CS = function(a, b) {
  1601. this.position.x = a;
  1602. this.position.y = b;
  1603. this.Iv()
  1604. }, a.rotate = function(a) {
  1605. this.rotation = a;
  1606. this.Iv();
  1607. return this
  1608. }, a.resize = function(a, b) {
  1609. this.scale.x = a;
  1610. this.scale.y = b;
  1611. this.Iv();
  1612. return this
  1613. }, a.hoa = function(a, b) {
  1614. this.gr.x = a;
  1615. this.gr.y = b;
  1616. this.Iv();
  1617. return this
  1618. };
  1619. return a
  1620. };
  1621. switch (c.Yb.In) {
  1622. case c.Yb.Ar:
  1623. c.Fb.mv = "Moz";
  1624. c.Fb.Gq = !0;
  1625. break;
  1626. case c.Yb.TA:
  1627. case c.Yb.WA:
  1628. c.Fb.mv = "webkit";
  1629. c.Fb.Gq = !0;
  1630. break;
  1631. case c.Yb.VA:
  1632. c.Fb.mv = "O";
  1633. c.Fb.Gq = !1;
  1634. break;
  1635. case c.Yb.UA:
  1636. c.Fb.mv = "ms";
  1637. c.Fb.Gq = !1;
  1638. break;
  1639. default:
  1640. c.Fb.mv = "webkit", c.Fb.Gq = !0
  1641. }
  1642. c.Fb.W8 = c.Fb.mv + "Transform";
  1643. c.Fb.translate = c.Fb.Gq ?
  1644. function(a) {
  1645. return "translate3d(" + a.x + "px, " + a.y + "px, 0) "
  1646. } : function(a) {
  1647. return "translate(" + a.x + "px, " + a.y + "px) "
  1648. };
  1649. c.Fb.rotate = c.Fb.Gq ?
  1650. function(a) {
  1651. return "rotateZ(" + a + "deg) "
  1652. } : function(a) {
  1653. return "rotate(" + a + "deg) "
  1654. };
  1655. c.Fb.scale = function(a) {
  1656. return "scale(" + a.x + ", " + a.y + ") "
  1657. };
  1658. c.Fb.gr = function(a) {
  1659. return "skewX(" + -a.x + "deg) skewY(" + a.y + "deg)"
  1660. };
  1661. c.XS = function() {
  1662. return c.Fb(document.createElement("input"))
  1663. };
  1664. c.Fb.Oea = function(a) {
  1665. var b = 0,
  1666. d = 0;
  1667. do b += a.offsetLeft, d += a.offsetTop;
  1668. while (a = a.offsetParent);
  1669. return {
  1670. x: b,
  1671. y: d
  1672. }
  1673. };
  1674. c.V$ = -1;
  1675. c.PI = Math.PI;
  1676. c.cU = parseFloat("3.402823466e+38F");
  1677. c.I$ = parseFloat("1.175494351e-38F");
  1678. c.BV = c.PI / 180;
  1679. c.fJ = 180 / c.PI;
  1680. c.sC = 4294967295;
  1681. c.uS = function(a, b, d) {
  1682. if ("object" == typeof d && "undefined" != typeof d.x && "undefined" != typeof d.y) {
  1683. var e = d[a];
  1684. d[a] = d[b];
  1685. d[b] = e
  1686. } else c.log(c.f.uS)
  1687. };
  1688. c.KQ = function(a, b, d) {
  1689. return a + (b - a) * d
  1690. };
  1691. c.Mb = function() {
  1692. return 16777215 * Math.random()
  1693. };
  1694. c.B6 = function() {
  1695. return 2 * (Math.random() - 0.5)
  1696. };
  1697. c.Lla = Math.random;
  1698. c.ag = function(a) {
  1699. return a * c.BV
  1700. };
  1701. c.Yq = function(a) {
  1702. return a * c.fJ
  1703. };
  1704. c.jR = function(a) {
  1705. c.log(c.f.jR);
  1706. return a * c.fJ
  1707. };
  1708. c.js = Number.MAX_VALUE - 1;
  1709. c.vc = c.gV ? 1 : 770;
  1710. c.uc = 771;
  1711. c.av = function(a) {
  1712. a.Sb && (a.Sb.$c(), a.Sb.Ef())
  1713. };
  1714. c.tea = function() {};
  1715. c.Cda = function() {};
  1716. c.Ng = function() {
  1717. c.Lg += 1
  1718. };
  1719. c.lw = 1.192092896E-7;
  1720. c.wb = c.qB ?
  1721. function() {
  1722. return c.L.Uh
  1723. } : function() {
  1724. return 1
  1725. };
  1726. c.o6 = function(a) {
  1727. var b = c.wb();
  1728. return c.d(a.x * b, a.y * b)
  1729. };
  1730. c.WH = function(a) {
  1731. var b = c.wb();
  1732. return c.d(a.x / b, a.y / b)
  1733. };
  1734. c.wE = function(a, b) {
  1735. var d = c.wb();
  1736. b.x = a.x / d;
  1737. b.y = a.y / d
  1738. };
  1739. c.t8 = function(a) {
  1740. var b = c.wb();
  1741. return c.size(a.width * b, a.height * b)
  1742. };
  1743. c.jS = function(a) {
  1744. var b = c.wb();
  1745. return c.size(a.width / b, a.height / b)
  1746. };
  1747. c.RN = function(a, b) {
  1748. var d = c.wb();
  1749. b.width = a.width / d;
  1750. b.height = a.height / d
  1751. };
  1752. c.Sk = c.qB ?
  1753. function(a) {
  1754. var b = c.wb();
  1755. return c.rect(a.x / b, a.y / b, a.width / b, a.height / b)
  1756. } : function(a) {
  1757. return a
  1758. };
  1759. c.sv = c.qB ?
  1760. function(a) {
  1761. var b = c.wb();
  1762. return c.rect(a.x * b, a.y * b, a.width * b, a.height * b)
  1763. } : function(a) {
  1764. return a
  1765. };
  1766. c.ONE = 1;
  1767. c.ZERO = 0;
  1768. c.SRC_ALPHA = 770;
  1769. c.SRC_ALPHA_SATURATE = 776;
  1770. c.SRC_COLOR = 768;
  1771. c.DST_ALPHA = 772;
  1772. c.DST_COLOR = 774;
  1773. c.ONE_MINUS_SRC_ALPHA = 771;
  1774. c.ONE_MINUS_SRC_COLOR = 769;
  1775. c.ONE_MINUS_DST_ALPHA = 773;
  1776. c.ONE_MINUS_DST_COLOR = 775;
  1777. c.ONE_MINUS_CONSTANT_ALPHA = 32772;
  1778. c.ONE_MINUS_CONSTANT_COLOR = 32770;
  1779. c.mq = function() {
  1780. if (c.lA == c.ea) {
  1781. var a = c.m.getError();
  1782. a && c.log(CC.Jb.mq, a)
  1783. }
  1784. };
  1785. c.y$ = 0;
  1786. c.w$ = 1;
  1787. c.z$ = 2;
  1788. c.x$ = 3;
  1789. c.v$ = 2;
  1790. c.rba = 0;
  1791. c.ke = 1;
  1792. c.Hw = 2;
  1793. c.Ro = 4;
  1794. c.Sm = c.ke | c.Hw | c.Ro;
  1795. c.N$ = 0;
  1796. c.Ab = 0;
  1797. c.ef = 1;
  1798. c.Sd = 2;
  1799. c.sba = 3;
  1800. c.vC = 0;
  1801. c.uC = 1;
  1802. c.Es = 2;
  1803. c.zC = 3;
  1804. c.yC = 4;
  1805. c.tC = 5;
  1806. c.wC = 6;
  1807. c.xC = 7;
  1808. c.oba = 8;
  1809. c.Zj = "ShaderPositionTextureColor";
  1810. c.yw = "ShaderPositionTextureColorAlphaTest";
  1811. c.xw = "ShaderPositionColor";
  1812. c.ns = "ShaderPositionTexture";
  1813. c.XB = "ShaderPositionTexture_uColor";
  1814. c.WB = "ShaderPositionTextureA8Color";
  1815. c.YB = "ShaderPosition_uColor";
  1816. c.ZJ = "ShaderPositionLengthTextureColor";
  1817. c.tX = "CC_PMatrix";
  1818. c.rX = "CC_MVMatrix";
  1819. c.sX = "CC_MVPMatrix";
  1820. c.xX = "CC_Time";
  1821. c.wX = "CC_SinTime";
  1822. c.qX = "CC_CosTime";
  1823. c.uX = "CC_Random01";
  1824. c.vX = "CC_Texture0";
  1825. c.SK = "CC_alpha_value";
  1826. c.wr = "a_color";
  1827. c.Cm = "a_position";
  1828. c.Ao = "a_texCoord";
  1829. c.pU = 32;
  1830. c.aJ = 3233828865;
  1831. c.Iw = 3233828866;
  1832. c.MU = 8801;
  1833. c.CV = 8802;
  1834. c.GT = 8803;
  1835. c = c || {};
  1836. c.H = c.H || {};
  1837. c.H.DC = function() {
  1838. c.color = function(a, d, e, f, g, h) {
  1839. return void 0 === a ? new oa(0, 0, 0, 255, g, h) : "string" === typeof a ? (a = c.aQ(a), new oa(a.r, a.g, a.b, a.a)) : "object" === typeof a ? new oa(a.r, a.g, a.b, a.a, a.Ly, a.offset) : new oa(a, d, e, f, g, h)
  1840. };
  1841. oa = function(a, d, e, f, g, h) {
  1842. this.nd = g || new ArrayBuffer(oa.BYTES_PER_ELEMENT);
  1843. this.oa = h || 0;
  1844. g = this.nd;
  1845. h = this.oa;
  1846. var k = Uint8Array.BYTES_PER_ELEMENT;
  1847. this.KE = new Uint8Array(g, h, 1);
  1848. this.CD = new Uint8Array(g, h + k, 1);
  1849. this.TC = new Uint8Array(g, h + 2 * k, 1);
  1850. this.MC = new Uint8Array(g, h + 3 * k, 1);
  1851. this.KE[0] = a || 0;
  1852. this.CD[0] = d || 0;
  1853. this.TC[0] = e || 0;
  1854. this.MC[0] = f || 255;
  1855. void 0 === f && (this.mu = !0)
  1856. };
  1857. oa.BYTES_PER_ELEMENT = 4;
  1858. var a = oa.prototype;
  1859. a.mZ = function() {
  1860. return this.KE[0]
  1861. };
  1862. a.c0 = function(a) {
  1863. this.KE[0] = 0 > a ? 0 : a
  1864. };
  1865. a.bZ = function() {
  1866. return this.CD[0]
  1867. };
  1868. a.Y_ = function(a) {
  1869. this.CD[0] = 0 > a ? 0 : a
  1870. };
  1871. a.UY = function() {
  1872. return this.TC[0]
  1873. };
  1874. a.P_ = function(a) {
  1875. this.TC[0] = 0 > a ? 0 : a
  1876. };
  1877. a.QY = function() {
  1878. return this.MC[0]
  1879. };
  1880. a.O_ = function(a) {
  1881. this.MC[0] = 0 > a ? 0 : a
  1882. };
  1883. c.i(a, "r", a.mZ, a.c0);
  1884. c.i(a, "g", a.bZ, a.Y_);
  1885. c.i(a, "b", a.UY, a.P_);
  1886. c.i(a, "a", a.QY, a.O_);
  1887. c.Sc = function(a, d, e, f) {
  1888. this.nd = e || new ArrayBuffer(c.Sc.BYTES_PER_ELEMENT);
  1889. this.oa = f || 0;
  1890. this.Dn = new Float32Array(this.nd, this.oa, 1);
  1891. this.En = new Float32Array(this.nd, this.oa + 4, 1);
  1892. this.Dn[0] = a || 0;
  1893. this.En[0] = d || 0
  1894. };
  1895. c.Sc.BYTES_PER_ELEMENT = 8;
  1896. Object.defineProperties(c.Sc.prototype, {
  1897. x: {
  1898. get: function() {
  1899. return this.Dn[0]
  1900. },
  1901. set: function(a) {
  1902. this.Dn[0] = a
  1903. },
  1904. enumerable: !0
  1905. },
  1906. y: {
  1907. get: function() {
  1908. return this.En[0]
  1909. },
  1910. set: function(a) {
  1911. this.En[0] = a
  1912. },
  1913. enumerable: !0
  1914. }
  1915. });
  1916. c.xc = function(a, d, e, f, g) {
  1917. this.nd = f || new ArrayBuffer(c.xc.BYTES_PER_ELEMENT);
  1918. this.oa = g || 0;
  1919. f = this.nd;
  1920. g = this.oa;
  1921. this.Dn = new Float32Array(f, g, 1);
  1922. this.Dn[0] = a || 0;
  1923. this.En = new Float32Array(f, g + Float32Array.BYTES_PER_ELEMENT, 1);
  1924. this.En[0] = d || 0;
  1925. this.bG = new Float32Array(f, g + 2 * Float32Array.BYTES_PER_ELEMENT, 1);
  1926. this.bG[0] = e || 0
  1927. };
  1928. c.xc.BYTES_PER_ELEMENT = 12;
  1929. Object.defineProperties(c.xc.prototype, {
  1930. x: {
  1931. get: function() {
  1932. return this.Dn[0]
  1933. },
  1934. set: function(a) {
  1935. this.Dn[0] = a
  1936. },
  1937. enumerable: !0
  1938. },
  1939. y: {
  1940. get: function() {
  1941. return this.En[0]
  1942. },
  1943. set: function(a) {
  1944. this.En[0] = a
  1945. },
  1946. enumerable: !0
  1947. },
  1948. z: {
  1949. get: function() {
  1950. return this.bG[0]
  1951. },
  1952. set: function(a) {
  1953. this.bG[0] = a
  1954. },
  1955. enumerable: !0
  1956. }
  1957. });
  1958. c.$j = function(a, d, e, f) {
  1959. this.nd = e || new ArrayBuffer(c.$j.BYTES_PER_ELEMENT);
  1960. this.oa = f || 0;
  1961. this.JF = new Float32Array(this.nd, this.oa, 1);
  1962. this.PF = new Float32Array(this.nd, this.oa + 4, 1);
  1963. this.JF[0] = a || 0;
  1964. this.PF[0] = d || 0
  1965. };
  1966. c.$j.BYTES_PER_ELEMENT = 8;
  1967. Object.defineProperties(c.$j.prototype, {
  1968. da: {
  1969. get: function() {
  1970. return this.JF[0]
  1971. },
  1972. set: function(a) {
  1973. this.JF[0] = a
  1974. },
  1975. enumerable: !0
  1976. },
  1977. G: {
  1978. get: function() {
  1979. return this.PF[0]
  1980. },
  1981. set: function(a) {
  1982. this.PF[0] = a
  1983. },
  1984. enumerable: !0
  1985. }
  1986. });
  1987. c.RB = function(a, d, e, f, g, h) {
  1988. this.nd = g || new ArrayBuffer(c.RB.BYTES_PER_ELEMENT);
  1989. this.oa = h || 0;
  1990. g = this.nd;
  1991. h = c.Sc.BYTES_PER_ELEMENT;
  1992. this.Yp = a ? new c.Sc(a.x, a.y, g, 0) : new c.Sc(0, 0, g, 0);
  1993. this.aq = d ? new c.Sc(d.x, d.y, g, h) : new c.Sc(0, 0, g, h);
  1994. this.Wo = e ? new c.Sc(e.x, e.y, g, 2 * h) : new c.Sc(0, 0, g, 2 * h);
  1995. this.$o = f ? new c.Sc(f.x, f.y, g, 3 * h) : new c.Sc(0, 0, g, 3 * h)
  1996. };
  1997. c.RB.BYTES_PER_ELEMENT = 32;
  1998. c.uw = function(a, d, e, f) {
  1999. this.I = a || new c.xc(0, 0, 0);
  2000. this.R = d || new c.xc(0, 0, 0);
  2001. this.Q = e || new c.xc(0, 0, 0);
  2002. this.N = f || new c.xc(0, 0, 0)
  2003. };
  2004. Object.defineProperties(c.RB.prototype, {
  2005. Q: {
  2006. get: function() {
  2007. return this.Yp
  2008. },
  2009. set: function(a) {
  2010. this.Yp.x = a.x;
  2011. this.Yp.y = a.y
  2012. },
  2013. enumerable: !0
  2014. },
  2015. N: {
  2016. get: function() {
  2017. return this.aq
  2018. },
  2019. set: function(a) {
  2020. this.aq.x = a.x;
  2021. this.aq.y = a.y
  2022. },
  2023. enumerable: !0
  2024. },
  2025. I: {
  2026. get: function() {
  2027. return this.Wo
  2028. },
  2029. set: function(a) {
  2030. this.Wo.x = a.x;
  2031. this.Wo.y = a.y
  2032. },
  2033. enumerable: !0
  2034. },
  2035. R: {
  2036. get: function() {
  2037. return this.$o
  2038. },
  2039. set: function(a) {
  2040. this.$o.x = a.x;
  2041. this.$o.y = a.y
  2042. },
  2043. enumerable: !0
  2044. }
  2045. });
  2046. c.kh = function(a, d, e, f, g) {
  2047. this.nd = f || new ArrayBuffer(c.kh.BYTES_PER_ELEMENT);
  2048. this.oa = g || 0;
  2049. f = this.nd;
  2050. g = this.oa;
  2051. var h = c.xc.BYTES_PER_ELEMENT;
  2052. this.Ya = a ? new c.xc(a.x, a.y, a.z, f, g) : new c.xc(0, 0, 0, f, g);
  2053. this.Ts = d ? c.color(d.r, d.g, d.b, d.a, f, g + h) : c.color(0, 0, 0, 0, f, g + h);
  2054. this.Fg = e ? new c.$j(e.da, e.G, f, g + h + oa.BYTES_PER_ELEMENT) : new c.$j(0, 0, f, g + h + oa.BYTES_PER_ELEMENT)
  2055. };
  2056. c.kh.BYTES_PER_ELEMENT = 24;
  2057. Object.defineProperties(c.kh.prototype, {
  2058. j: {
  2059. get: function() {
  2060. return this.Ya
  2061. },
  2062. set: function(a) {
  2063. var d = this.Ya;
  2064. d.x = a.x;
  2065. d.y = a.y;
  2066. d.z = a.z
  2067. },
  2068. enumerable: !0
  2069. },
  2070. v: {
  2071. get: function() {
  2072. return this.Ts
  2073. },
  2074. set: function(a) {
  2075. var d = this.Ts;
  2076. d.r = a.r;
  2077. d.g = a.g;
  2078. d.b = a.b;
  2079. d.a = a.a
  2080. },
  2081. enumerable: !0
  2082. },
  2083. n: {
  2084. get: function() {
  2085. return this.Fg
  2086. },
  2087. set: function(a) {
  2088. this.Fg.da = a.da;
  2089. this.Fg.G = a.G
  2090. },
  2091. enumerable: !0
  2092. }
  2093. });
  2094. c.Nb = function(a, d, e, f, g, h) {
  2095. this.nd = g || new ArrayBuffer(c.Nb.BYTES_PER_ELEMENT);
  2096. this.oa = h || 0;
  2097. g = this.nd;
  2098. h = this.oa;
  2099. var k = c.kh.BYTES_PER_ELEMENT;
  2100. this.Yp = a ? new c.kh(a.j, a.v, a.n, g, h) : new c.kh(null, null, null, g, h);
  2101. this.Wo = d ? new c.kh(d.j, d.v, d.n, g, h + k) : new c.kh(null, null, null, g, h + k);
  2102. this.aq = e ? new c.kh(e.j, e.v, e.n, g, h + 2 * k) : new c.kh(null, null, null, g, h + 2 * k);
  2103. this.$o = f ? new c.kh(f.j, f.v, f.n, g, h + 3 * k) : new c.kh(null, null, null, g, h + 3 * k)
  2104. };
  2105. c.Nb.BYTES_PER_ELEMENT = 96;
  2106. Object.defineProperties(c.Nb.prototype, {
  2107. Q: {
  2108. get: function() {
  2109. return this.Yp
  2110. },
  2111. set: function(a) {
  2112. var d = this.Yp;
  2113. d.j = a.j;
  2114. d.v = a.v;
  2115. d.n = a.n
  2116. },
  2117. enumerable: !0
  2118. },
  2119. I: {
  2120. get: function() {
  2121. return this.Wo
  2122. },
  2123. set: function(a) {
  2124. var d = this.Wo;
  2125. d.j = a.j;
  2126. d.v = a.v;
  2127. d.n = a.n
  2128. },
  2129. enumerable: !0
  2130. },
  2131. N: {
  2132. get: function() {
  2133. return this.aq
  2134. },
  2135. set: function(a) {
  2136. var d = this.aq;
  2137. d.j = a.j;
  2138. d.v = a.v;
  2139. d.n = a.n
  2140. },
  2141. enumerable: !0
  2142. },
  2143. R: {
  2144. get: function() {
  2145. return this.$o
  2146. },
  2147. set: function(a) {
  2148. var d = this.$o;
  2149. d.j = a.j;
  2150. d.v = a.v;
  2151. d.n = a.n
  2152. },
  2153. enumerable: !0
  2154. },
  2155. Ly: {
  2156. get: function() {
  2157. return this.nd
  2158. },
  2159. enumerable: !0
  2160. }
  2161. });
  2162. c.UK = function() {
  2163. return new c.Nb
  2164. };
  2165. c.TK = function(a) {
  2166. if (!a) return c.UK();
  2167. var d = a.Q,
  2168. e = a.I,
  2169. f = a.N;
  2170. a = a.R;
  2171. return {
  2172. Q: {
  2173. j: {
  2174. x: d.j.x,
  2175. y: d.j.y,
  2176. z: d.j.z
  2177. },
  2178. v: {
  2179. r: d.v.r,
  2180. g: d.v.g,
  2181. b: d.v.b,
  2182. a: d.v.a
  2183. },
  2184. n: {
  2185. da: d.n.da,
  2186. G: d.n.G
  2187. }
  2188. },
  2189. I: {
  2190. j: {
  2191. x: e.j.x,
  2192. y: e.j.y,
  2193. z: e.j.z
  2194. },
  2195. v: {
  2196. r: e.v.r,
  2197. g: e.v.g,
  2198. b: e.v.b,
  2199. a: e.v.a
  2200. },
  2201. n: {
  2202. da: e.n.da,
  2203. G: e.n.G
  2204. }
  2205. },
  2206. N: {
  2207. j: {
  2208. x: f.j.x,
  2209. y: f.j.y,
  2210. z: f.j.z
  2211. },
  2212. v: {
  2213. r: f.v.r,
  2214. g: f.v.g,
  2215. b: f.v.b,
  2216. a: f.v.a
  2217. },
  2218. n: {
  2219. da: f.n.da,
  2220. G: f.n.G
  2221. }
  2222. },
  2223. R: {
  2224. j: {
  2225. x: a.j.x,
  2226. y: a.j.y,
  2227. z: a.j.z
  2228. },
  2229. v: {
  2230. r: a.v.r,
  2231. g: a.v.g,
  2232. b: a.v.b,
  2233. a: a.v.a
  2234. },
  2235. n: {
  2236. da: a.n.da,
  2237. G: a.n.G
  2238. }
  2239. }
  2240. }
  2241. };
  2242. c.qba = function(a) {
  2243. if (!a) return [];
  2244. for (var d = [], e = 0; e < a.length; e++) d.push(c.TK(a[e]));
  2245. return d
  2246. };
  2247. c.Rd = function(a, d, e, f, g) {
  2248. this.nd = f || new ArrayBuffer(c.Rd.BYTES_PER_ELEMENT);
  2249. this.oa = g || 0;
  2250. f = this.nd;
  2251. g = this.oa;
  2252. var h = c.Sc.BYTES_PER_ELEMENT;
  2253. this.Ya = a ? new c.Sc(a.x, a.y, f, g) : new c.Sc(0, 0, f, g);
  2254. this.Ts = d ? c.color(d.r, d.g, d.b, d.a, f, g + h) : c.color(0, 0, 0, 0, f, g + h);
  2255. this.Fg = e ? new c.$j(e.da, e.G, f, g + h + oa.BYTES_PER_ELEMENT) : new c.$j(0, 0, f, g + h + oa.BYTES_PER_ELEMENT)
  2256. };
  2257. c.Rd.BYTES_PER_ELEMENT = 20;
  2258. Object.defineProperties(c.Rd.prototype, {
  2259. j: {
  2260. get: function() {
  2261. return this.Ya
  2262. },
  2263. set: function(a) {
  2264. this.Ya.x = a.x;
  2265. this.Ya.y = a.y
  2266. },
  2267. enumerable: !0
  2268. },
  2269. v: {
  2270. get: function() {
  2271. return this.Ts
  2272. },
  2273. set: function(a) {
  2274. var d = this.Ts;
  2275. d.r = a.r;
  2276. d.g = a.g;
  2277. d.b = a.b;
  2278. d.a = a.a
  2279. },
  2280. enumerable: !0
  2281. },
  2282. n: {
  2283. get: function() {
  2284. return this.Fg
  2285. },
  2286. set: function(a) {
  2287. this.Fg.da = a.da;
  2288. this.Fg.G = a.G
  2289. },
  2290. enumerable: !0
  2291. }
  2292. });
  2293. c.lc = function(a, d, e, f, g) {
  2294. this.nd = f || new ArrayBuffer(c.lc.BYTES_PER_ELEMENT);
  2295. this.oa = g || 0;
  2296. f = this.nd;
  2297. g = this.oa;
  2298. var h = c.Rd.BYTES_PER_ELEMENT;
  2299. this.cL = a ? new c.Rd(a.j, a.v, a.n, f, g) : new c.Rd(null, null, null, f, g);
  2300. this.kL = d ? new c.Rd(d.j, d.v, d.n, f, g + h) : new c.Rd(null, null, null, f, g + h);
  2301. this.oL = e ? new c.Rd(e.j, e.v, e.n, f, g + 2 * h) : new c.Rd(null, null, null, f, g + 2 * h)
  2302. };
  2303. c.lc.BYTES_PER_ELEMENT = 60;
  2304. Object.defineProperties(c.lc.prototype, {
  2305. a: {
  2306. get: function() {
  2307. return this.cL
  2308. },
  2309. set: function(a) {
  2310. var d = this.cL;
  2311. d.j = a.j;
  2312. d.v = a.v;
  2313. d.n = a.n
  2314. },
  2315. enumerable: !0
  2316. },
  2317. b: {
  2318. get: function() {
  2319. return this.kL
  2320. },
  2321. set: function(a) {
  2322. var d = this.kL;
  2323. d.j = a.j;
  2324. d.v = a.v;
  2325. d.n = a.n
  2326. },
  2327. enumerable: !0
  2328. },
  2329. C: {
  2330. get: function() {
  2331. return this.oL
  2332. },
  2333. set: function(a) {
  2334. var d = this.oL;
  2335. d.j = a.j;
  2336. d.v = a.v;
  2337. d.n = a.n
  2338. },
  2339. enumerable: !0
  2340. }
  2341. })
  2342. };
  2343. c.H.JB = function() {
  2344. var a = c.color;
  2345. a.xZ = function() {
  2346. return a(255, 255, 255)
  2347. };
  2348. a.yZ = function() {
  2349. return a(255, 255, 0)
  2350. };
  2351. a.WY = function() {
  2352. return a(0, 0, 255)
  2353. };
  2354. a.dZ = function() {
  2355. return a(0, 255, 0)
  2356. };
  2357. a.nZ = function() {
  2358. return a(255, 0, 0)
  2359. };
  2360. a.iZ = function() {
  2361. return a(255, 0, 255)
  2362. };
  2363. a.VY = function() {
  2364. return a(0, 0, 0)
  2365. };
  2366. a.lZ = function() {
  2367. return a(255, 127, 0)
  2368. };
  2369. a.cZ = function() {
  2370. return a(166, 166, 166)
  2371. };
  2372. c.i(a, "WHITE", a.xZ);
  2373. c.i(a, "YELLOW", a.yZ);
  2374. c.i(a, "BLUE", a.WY);
  2375. c.i(a, "GREEN", a.dZ);
  2376. c.i(a, "RED", a.nZ);
  2377. c.i(a, "MAGENTA", a.iZ);
  2378. c.i(a, "BLACK", a.VY);
  2379. c.i(a, "ORANGE", a.lZ);
  2380. c.i(a, "GRAY", a.cZ)
  2381. };
  2382. function oa(a, b, d, e) {
  2383. this.r = a || 0;
  2384. this.g = b || 0;
  2385. this.b = d || 0;
  2386. this.a = e || 255
  2387. }
  2388. c.color = function(a, b, d, e) {
  2389. return void 0 === a ? {
  2390. r: 0,
  2391. g: 0,
  2392. b: 0,
  2393. a: 255
  2394. } : "string" === typeof a ? c.aQ(a) : "object" === typeof a ? {
  2395. r: a.r,
  2396. g: a.g,
  2397. b: a.b,
  2398. a: a.a || 255
  2399. } : {
  2400. r: a,
  2401. g: b,
  2402. b: d,
  2403. a: e || 255
  2404. }
  2405. };
  2406. c.lda = function(a, b) {
  2407. return a.r === b.r && a.g === b.g && a.b === b.b
  2408. };
  2409. c.YS = function() {
  2410. this.timestamp = this.z = this.y = this.x = 0
  2411. };
  2412. c.Sc = function(a, b) {
  2413. this.x = a || 0;
  2414. this.y = b || 0
  2415. };
  2416. c.QA = function(a, b) {
  2417. return new c.Sc(a, b)
  2418. };
  2419. c.xc = function(a, b, d) {
  2420. this.x = a || 0;
  2421. this.y = b || 0;
  2422. this.z = d || 0
  2423. };
  2424. c.Kpa = function(a, b, d) {
  2425. return new c.xc(a, b, d)
  2426. };
  2427. c.$j = function(a, b) {
  2428. this.da = a || 0;
  2429. this.G = b || 0
  2430. };
  2431. c.lpa = function(a, b) {
  2432. return new c.$j(a, b)
  2433. };
  2434. c.cl = function(a, b) {
  2435. this.src = a;
  2436. this.W = b
  2437. };
  2438. c.Tca = function() {
  2439. return new c.cl(c.ONE, c.ZERO)
  2440. };
  2441. c.aQ = function(a) {
  2442. a = a.replace(/^#?/, "0x");
  2443. a = parseInt(a);
  2444. return c.color(a >> 16, (a >> 8) % 256, a % 256)
  2445. };
  2446. c.mda = function(a) {
  2447. var b = a.r.toString(16),
  2448. d = a.g.toString(16),
  2449. e = a.b.toString(16);
  2450. return "#" + (16 > a.r ? "0" + b : b) + (16 > a.g ? "0" + d : d) + (16 > a.b ? "0" + e : e)
  2451. };
  2452. c.ss = 0;
  2453. c.Pm = 1;
  2454. c.hK = 2;
  2455. c.Fs = 0;
  2456. c.AX = 1;
  2457. c.VK = 2;
  2458. c.wba = c.qa.extend({
  2459. Jp: null,
  2460. gu: null,
  2461. LC: 0,
  2462. ctor: function() {
  2463. this.Jp = {};
  2464. this.gu = {};
  2465. this.LC = 2 << (0 | 10 * Math.random())
  2466. },
  2467. MX: function() {
  2468. this.LC++;
  2469. return "key_" + this.LC
  2470. },
  2471. Mna: function(a, b) {
  2472. if (null != b) {
  2473. var d = this.MX();
  2474. this.Jp[d] = b;
  2475. this.gu[d] = a
  2476. }
  2477. },
  2478. S5: function(a) {
  2479. if (null == a) return null;
  2480. var b = this.Jp,
  2481. d;
  2482. for (d in b) if (b[d] === a) return this.gu[d];
  2483. return null
  2484. },
  2485. Jpa: function(a) {
  2486. return this.S5(a)
  2487. },
  2488. P6: function(a) {
  2489. if (null != a) {
  2490. var b = this.Jp,
  2491. d;
  2492. for (d in b) if (b[d] === a) {
  2493. delete this.gu[d];
  2494. delete b[d];
  2495. break
  2496. }
  2497. }
  2498. },
  2499. kma: function(a) {
  2500. if (null != a) for (var b = 0; b < a.length; b++) this.P6(a[b])
  2501. },
  2502. l1: function() {
  2503. var a = [],
  2504. b = this.Jp,
  2505. d;
  2506. for (d in b) a.push(b[d]);
  2507. return a
  2508. },
  2509. ema: function() {
  2510. this.Jp = {};
  2511. this.gu = {}
  2512. },
  2513. count: function() {
  2514. return this.l1().length
  2515. }
  2516. });
  2517. c.nJ = function() {
  2518. this.fontName = "Arial";
  2519. this.fontSize = 12;
  2520. this.textAlign = c.Pm;
  2521. this.verticalAlign = c.Fs;
  2522. this.fillStyle = c.color(255, 255, 255, 255);
  2523. this.boundingHeight = this.boundingWidth = 0;
  2524. this.HI = !1;
  2525. this.strokeStyle = c.color(255, 255, 255, 255);
  2526. this.lineWidth = 1;
  2527. this.iS = !1;
  2528. this.shadowBlur = this.shadowOffsetY = this.shadowOffsetX = 0;
  2529. this.shadowOpacity = 1
  2530. };
  2531. c.F === c.ea && (c.assert("function" === typeof c.H.DC, c.f.cd, "CCTypesWebGL.js"), c.H.DC(), delete c.H.DC);
  2532. c.assert("function" === typeof c.H.JB, c.f.cd, "CCTypesPropertyDefine.js");
  2533. c.H.JB();
  2534. delete c.H.JB;
  2535. c.kba = [];
  2536. c.lba = {};
  2537. c.dB = c.qa.extend({
  2538. Gba: null,
  2539. He: null,
  2540. lp: null,
  2541. Ol: null,
  2542. Qe: null,
  2543. tj: null,
  2544. RE: !1,
  2545. SC: !0,
  2546. Ym: 1,
  2547. WF: "",
  2548. OE: null,
  2549. ma: 1,
  2550. $M: 1,
  2551. Na: 1,
  2552. aN: 1,
  2553. Bp: 0,
  2554. iE: 5,
  2555. gi: null,
  2556. yN: null,
  2557. CN: null,
  2558. BN: null,
  2559. zN: null,
  2560. AN: null,
  2561. pt: !1,
  2562. Dba: !1,
  2563. nca: null,
  2564. zM: null,
  2565. AM: null,
  2566. ica: !1,
  2567. iD: null,
  2568. Il: null,
  2569. BD: 1,
  2570. Nw: !1,
  2571. GM: !0,
  2572. ctor: function() {
  2573. var a = document,
  2574. b = c.dl,
  2575. d = c.fh;
  2576. this.Il = c.Mn.parentNode === a.body ? a.documentElement : c.Mn.parentNode;
  2577. this.He = c.size(0, 0);
  2578. this.RD();
  2579. var a = c.eb.width,
  2580. e = c.eb.height;
  2581. this.lp = c.size(a, e);
  2582. this.Ol = c.size(a, e);
  2583. this.Qe = c.rect(0, 0, a, e);
  2584. this.tj = c.rect(0, 0, a, e);
  2585. this.iD = {
  2586. left: 0,
  2587. top: 0
  2588. };
  2589. this.WF = "Cocos2dHTML5";
  2590. a = c.Yb;
  2591. this.J2(a.PH == a.BJ || a.PH == a.CJ);
  2592. c.Rj && c.Rj.K(this.tj);
  2593. this.yN = new c.cf(b.Tv, d.Vv);
  2594. this.CN = new c.cf(b.vV, d.SHOW_ALL);
  2595. this.BN = new c.cf(b.Tv, d.zB);
  2596. this.zN = new c.cf(b.Tv, d.gB);
  2597. this.AN = new c.cf(b.Tv, d.hB);
  2598. this.zM = c.eb;
  2599. this.AM = c.m
  2600. },
  2601. PE: function() {
  2602. var a = this.Ol.width,
  2603. b = this.Ol.height;
  2604. this.OE && (this.RD(), this.OE.call());
  2605. 0 < a && this.uA(a, b, this.gi)
  2606. },
  2607. V6: function(a) {
  2608. a ? this.Nw || (this.Nw = !0, a = this.PE.bind(this), c.Ra(window, "resize", a, !1)) : this.Nw && (this.Nw = !0, a = this.PE.bind(this), window.removeEventListener("resize", a, !1))
  2609. },
  2610. coa: function(a) {
  2611. if ("function" == typeof a || null == a) this.OE = a
  2612. },
  2613. RD: function() {
  2614. var a = this.He;
  2615. a.width = this.Il.clientWidth;
  2616. a.height = this.Il.clientHeight
  2617. },
  2618. xba: function() {
  2619. var a = this.Ol.width,
  2620. b = this.Ol.height;
  2621. 0 < a && this.uA(a, b, this.gi)
  2622. },
  2623. v0: function() {
  2624. if (this.GM) {
  2625. var a = {
  2626. "user-scalable": "no",
  2627. "maximum-scale": "1.0",
  2628. "initial-scale": "1.0"
  2629. },
  2630. b = document.getElementsByName("viewport"),
  2631. d;
  2632. 0 == b.length ? (b = c.ac("meta"), b.name = "viewport", b.content = "", document.head.appendChild(b)) : b = b[0];
  2633. if (c.Yb.Aj && c.Yb.In == c.Yb.Ar) b.content = "initial-scale:1";
  2634. else {
  2635. d = b.content;
  2636. for (var e in a) RegExp(e).test(d) || (d += ("" == d ? "" : ",") + e + "=" + a[e]);
  2637. b.content = d
  2638. }
  2639. }
  2640. },
  2641. IN: function() {
  2642. var a = c.wb();
  2643. this.Na = this.ma = a
  2644. },
  2645. vN: function() {
  2646. this.ma = this.$M;
  2647. this.Na = this.aN
  2648. },
  2649. yba: function() {},
  2650. G4: function() {
  2651. this.pt = !0
  2652. },
  2653. i1: function(a) {
  2654. this.GM = a
  2655. },
  2656. J2: function(a) {
  2657. this.RE = a ? !0 : !1
  2658. },
  2659. mia: function() {
  2660. return this.RE
  2661. },
  2662. sea: function(a) {
  2663. this.SC = a ? !0 : !1
  2664. },
  2665. Yha: function() {
  2666. return this.SC
  2667. },
  2668. end: function() {},
  2669. jia: function() {
  2670. return null != this.zM && null != this.AM
  2671. },
  2672. qna: function(a) {
  2673. this.BD = a;
  2674. c.L.so(c.L.vj())
  2675. },
  2676. hpa: function() {},
  2677. vna: function() {},
  2678. bna: function(a, b) {
  2679. this.iD = {
  2680. left: a,
  2681. top: b
  2682. }
  2683. },
  2684. sfa: function() {
  2685. return this.iD
  2686. },
  2687. Sfa: function() {
  2688. return c.size(this.He.width, this.He.height)
  2689. },
  2690. pna: function(a, b) {
  2691. this.He.width = a;
  2692. this.He.height = b;
  2693. this.Il.style.width = a + "px";
  2694. this.Il.style.height = b + "px";
  2695. this.PE();
  2696. c.L.so(c.L.vj())
  2697. },
  2698. dda: function() {},
  2699. Hu: function() {
  2700. return c.size(this.tj.width, this.tj.height)
  2701. },
  2702. eH: function() {
  2703. return c.d(this.tj.x, this.tj.y)
  2704. },
  2705. Wca: function() {
  2706. return !0
  2707. },
  2708. Qga: function() {
  2709. return this.gi
  2710. },
  2711. V7: function(a) {
  2712. if (a instanceof c.cf) this.gi = a;
  2713. else {
  2714. var b = c.cf;
  2715. a === b.Vv && (this.gi = this.yN);
  2716. a === b.SHOW_ALL && (this.gi = this.CN);
  2717. a === b.zB && (this.gi = this.BN);
  2718. a === b.gB && (this.gi = this.zN);
  2719. a === b.hB && (this.gi = this.AN)
  2720. }
  2721. },
  2722. uA: function(a, b, d) {
  2723. if (isNaN(a) || 0 == a || isNaN(b) || 0 == b) c.log(c.f.ST);
  2724. else {
  2725. this.V7(d);
  2726. var e = this.gi;
  2727. if (e) {
  2728. e.mo(this);
  2729. var f = this.He.width,
  2730. g = this.He.height;
  2731. c.Yb.Aj && this.v0(this.He.width, this.He.height);
  2732. this.RD();
  2733. if (d != this.gi || a != this.Ol.width || b != this.Ol.height || f != this.He.width || g != this.He.height) this.lp = c.size(a, b), this.Ol = c.size(a, b), a = e.apply(this, this.lp), a.scale && 2 == a.scale.length && (this.ma = a.scale[0], this.Na = a.scale[1]), a.viewport && (a = this.Qe = a.viewport, b = this.tj, b.width = c.eb.width / this.ma, b.height = c.eb.height / this.Na, b.x = -a.x / this.ma, b.y = -a.y / this.Na), a = c.L, c.ja.width = a.V.width = this.tj.width, c.ja.height = a.V.height = this.tj.height, e.lo(this), c.F == c.ea && (a.ip(), a.OR()), this.$M = this.ma, this.aN = this.Na, c.HT && c.HT.aca(), c.Rj && c.Rj.K(this.tj)
  2734. } else c.log(c.f.TT)
  2735. }
  2736. },
  2737. SG: function() {
  2738. return c.size(this.lp.width, this.lp.height)
  2739. },
  2740. q8: function(a, b, d, e) {
  2741. var f = this.BD,
  2742. g = this.ma,
  2743. h = this.Na;
  2744. c.m.viewport(a * g * f + this.Qe.x * f, b * h * f + this.Qe.y * f, d * g * f, e * h * f)
  2745. },
  2746. eoa: function(a, b, d, e) {
  2747. var f = this.BD,
  2748. g = this.ma,
  2749. h = this.Na;
  2750. c.m.scissor(a * g * f + this.Qe.x * f, b * h * f + this.Qe.y * f, d * g * f, e * h * f)
  2751. },
  2752. oia: function() {
  2753. var a = c.m;
  2754. return a.isEnabled(a.SCISSOR_TEST)
  2755. },
  2756. Vga: function() {
  2757. var a = c.m,
  2758. b = this.ma,
  2759. d = this.Na,
  2760. a = a.getParameter(a.SCISSOR_BOX);
  2761. return c.rect((a[0] - this.Qe.x) / b, (a[1] - this.Qe.y) / d, a[2] / b, a[3] / d)
  2762. },
  2763. Poa: function(a) {
  2764. null != a && 0 < a.length && (this.WF = a)
  2765. },
  2766. Dha: function() {
  2767. return this.WF
  2768. },
  2769. Eha: function() {
  2770. return this.Qe
  2771. },
  2772. IP: function() {
  2773. return this.ma
  2774. },
  2775. JP: function() {
  2776. return this.Na
  2777. },
  2778. Afa: function() {
  2779. return this.Ym
  2780. },
  2781. BG: function(a, b, d) {
  2782. return {
  2783. x: this.Ym * (a - d.left),
  2784. y: this.Ym * (d.top + d.height - b)
  2785. }
  2786. },
  2787. vY: function(a, b) {
  2788. var d = this.Qe;
  2789. a.x = (this.Ym * (a.x - b.left) - d.x) / this.ma;
  2790. a.y = (this.Ym * (b.top + b.height - a.y) - d.y) / this.Na
  2791. },
  2792. fx: function(a) {
  2793. for (var b = this.Qe, d = this.ma, e = this.Na, f, g, h, k = 0; k < a.length; k++) f = a[k], g = f.Xd, h = f.mj, f.hF((g.x - b.x) / d, (g.y - b.y) / e), f.Op((h.x - b.x) / d, (h.y - b.y) / e)
  2794. }
  2795. });
  2796. c.dB.HD = function() {
  2797. this.Gx || (this.Gx = this.Gx || new c.dB, this.Gx.G4());
  2798. return this.Gx
  2799. };
  2800. c.dl = c.qa.extend({
  2801. mo: function() {},
  2802. apply: function() {},
  2803. lo: function() {},
  2804. lF: function(a, b, d) {
  2805. var e = a.Il;
  2806. c.view.SC && c.Yb.Aj && e == document.documentElement && c.screen.C1(e);
  2807. var e = c.eb,
  2808. f = c.Mn;
  2809. f.style.width = e.style.width = b + "px";
  2810. f.style.height = e.style.height = d + "px";
  2811. f = a.Ym = 1;
  2812. a.RE && (f = a.Ym = window.devicePixelRatio || 1);
  2813. e.width = b * f;
  2814. e.height = d * f;
  2815. a = document.body;
  2816. var g;
  2817. 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 || "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")
  2818. },
  2819. mM: function() {
  2820. document.body.insertBefore(c.Mn, document.body.firstChild);
  2821. var a = document.body.style;
  2822. a.width = window.innerWidth + "px";
  2823. a.height = window.innerHeight + "px";
  2824. a.overflow = "hidden";
  2825. a = c.Mn.style;
  2826. a.position = "fixed";
  2827. a.left = a.top = "0px";
  2828. document.body.scrollTop = 0
  2829. }
  2830. });
  2831. c.fh = c.qa.extend({
  2832. QE: {
  2833. scale: [1, 1],
  2834. viewport: null
  2835. },
  2836. Ps: function(a, b, d, e, f, g) {
  2837. 2 > Math.abs(a - d) && (d = a);
  2838. 2 > Math.abs(b - e) && (e = b);
  2839. a = c.rect(Math.round((a - d) / 2), Math.round((b - e) / 2), d, e);
  2840. c.F == c.Ha && c.m.translate(a.x, a.y + e);
  2841. this.QE.scale = [f, g];
  2842. this.QE.viewport = a;
  2843. return this.QE
  2844. },
  2845. mo: function() {},
  2846. apply: function() {
  2847. return {
  2848. scale: [1, 1]
  2849. }
  2850. },
  2851. lo: function() {}
  2852. });
  2853. (function() {
  2854. var a = c.dl.extend({
  2855. apply: function(a) {
  2856. this.lF(a, a.He.width, a.He.height)
  2857. }
  2858. }),
  2859. b = c.dl.extend({
  2860. apply: function(a, b) {
  2861. var d = a.He.width,
  2862. e = a.He.height,
  2863. f = c.Mn.style,
  2864. q = b.width,
  2865. r = b.height,
  2866. t = d / q,
  2867. s = e / r,
  2868. u, v;
  2869. t < s ? (u = d, v = r * t) : (u = q * s, v = e);
  2870. q = Math.round((d - u) / 2);
  2871. v = Math.round((e - v) / 2);
  2872. this.lF(a, d - 2 * q, e - 2 * v);
  2873. f.marginLeft = q + "px";
  2874. f.marginRight = q + "px";
  2875. f.marginTop = v + "px";
  2876. f.marginBottom = v + "px"
  2877. }
  2878. });
  2879. a.extend({
  2880. mo: function(a) {
  2881. this._super(a);
  2882. a.Il = document.documentElement
  2883. },
  2884. apply: function(a) {
  2885. this._super(a);
  2886. this.mM()
  2887. }
  2888. });
  2889. b.extend({
  2890. mo: function(a) {
  2891. this._super(a);
  2892. a.Il = document.documentElement
  2893. },
  2894. apply: function(a, b) {
  2895. this._super(a, b);
  2896. this.mM()
  2897. }
  2898. });
  2899. var d = c.dl.extend({
  2900. apply: function(a) {
  2901. this.lF(a, c.eb.width, c.eb.height)
  2902. }
  2903. });
  2904. c.dl.Tv = new a;
  2905. c.dl.vV = new b;
  2906. c.dl.xaa = new d;
  2907. var a = c.fh.extend({
  2908. apply: function(a, b) {
  2909. var d = c.eb.width,
  2910. e = c.eb.height;
  2911. return this.Ps(d, e, d, e, d / b.width, e / b.height)
  2912. }
  2913. }),
  2914. b = c.fh.extend({
  2915. apply: function(a, b) {
  2916. var d = c.eb.width,
  2917. e = c.eb.height,
  2918. f = b.width,
  2919. q = b.height,
  2920. r = d / f,
  2921. t = e / q,
  2922. s = 0,
  2923. u, v;
  2924. r < t ? (s = r, u = d, v = q * s) : (s = t, u = f * s, v = e);
  2925. return this.Ps(d, e, u, v, s, s)
  2926. }
  2927. }),
  2928. d = c.fh.extend({
  2929. apply: function(a, b) {
  2930. var d = c.eb.width,
  2931. e = c.eb.height,
  2932. f = b.width,
  2933. q = b.height,
  2934. r = d / f,
  2935. t = e / q,
  2936. s, u, v;
  2937. r < t ? (s = t, u = f * s, v = e) : (s = r, u = d, v = q * s);
  2938. return this.Ps(d, e, u, v, s, s)
  2939. }
  2940. }),
  2941. e = c.fh.extend({
  2942. apply: function(a, b) {
  2943. var d = c.eb.width,
  2944. e = c.eb.height,
  2945. f = e / b.height;
  2946. return this.Ps(d, e, d, e, f, f)
  2947. },
  2948. lo: function(a) {
  2949. c.L.V = a.Hu()
  2950. }
  2951. }),
  2952. f = c.fh.extend({
  2953. apply: function(a, b) {
  2954. var d = c.eb.width,
  2955. e = c.eb.height,
  2956. f = d / b.width;
  2957. return this.Ps(d, e, d, e, f, f)
  2958. },
  2959. lo: function(a) {
  2960. c.L.V = a.Hu()
  2961. }
  2962. });
  2963. c.fh.Vv = new a;
  2964. c.fh.SHOW_ALL = new b;
  2965. c.fh.zB = new d;
  2966. c.fh.gB = new e;
  2967. c.fh.hB = new f
  2968. })();
  2969. c.cf = c.qa.extend({
  2970. dx: null,
  2971. ex: null,
  2972. ctor: function(a, b) {
  2973. this.q7(a);
  2974. this.r7(b)
  2975. },
  2976. mo: function(a) {
  2977. this.dx.mo(a);
  2978. this.ex.mo(a)
  2979. },
  2980. apply: function(a, b) {
  2981. this.dx.apply(a, b);
  2982. return this.ex.apply(a, b)
  2983. },
  2984. lo: function(a) {
  2985. this.dx.lo(a);
  2986. this.ex.lo(a)
  2987. },
  2988. q7: function(a) {
  2989. a instanceof c.dl && (this.dx = a)
  2990. },
  2991. r7: function(a) {
  2992. a instanceof c.fh && (this.ex = a)
  2993. }
  2994. });
  2995. c.cf.Vv = 0;
  2996. c.cf.zB = 1;
  2997. c.cf.SHOW_ALL = 2;
  2998. c.cf.gB = 3;
  2999. c.cf.hB = 4;
  3000. c.cf.yX = 5;
  3001. c.screen = {
  3002. xy: !1,
  3003. CE: null,
  3004. GF: "",
  3005. Hl: null,
  3006. JY: [
  3007. ["requestFullscreen", "exitFullscreen", "fullscreenchange", "fullscreenEnabled", "fullscreenElement"],
  3008. ["requestFullScreen", "exitFullScreen", "fullScreenchange", "fullScreenEnabled", "fullScreenElement"],
  3009. ["webkitRequestFullScreen", "webkitCancelFullScreen", "webkitfullscreenchange", "webkitIsFullScreen", "webkitCurrentFullScreenElement"],
  3010. ["mozRequestFullScreen", "mozCancelFullScreen", "mozfullscreenchange", "mozFullScreen", "mozFullScreenElement"],
  3011. ["msRequestFullscreen", "msExitFullscreen", "MSFullscreenChange", "msFullscreenEnabled", "msFullscreenElement"]
  3012. ],
  3013. K: function() {
  3014. this.Hl = {};
  3015. var a, b, d = this.JY,
  3016. e;
  3017. a = 0;
  3018. for (l = d.length; a < l; a++) if ((b = d[a]) && b[1] in document) {
  3019. a = 0;
  3020. for (e = b.length; a < e; a++) this.Hl[d[0][a]] = b[a];
  3021. break
  3022. }
  3023. this.xy = void 0 != this.Hl.requestFullscreen;
  3024. this.GF = "ontouchstart" in window ? "touchstart" : "mousedown"
  3025. },
  3026. fullScreen: function() {
  3027. return this.xy && document[this.Hl.fullscreenEnabled]
  3028. },
  3029. uR: function(a, b) {
  3030. if (this.xy) {
  3031. a = a || document.documentElement;
  3032. a[this.Hl.requestFullscreen]();
  3033. if (b) {
  3034. var d = this.Hl.Vea;
  3035. this.CE && document.removeEventListener(d, this.CE);
  3036. this.CE = b;
  3037. c.Ra(document, d, b, !1)
  3038. }
  3039. return a[this.Hl.requestFullscreen]()
  3040. }
  3041. },
  3042. wea: function() {
  3043. return this.xy ? document[this.Hl.exitFullscreen]() : !0
  3044. },
  3045. C1: function(a, b) {
  3046. function d() {
  3047. f.uR(a, b);
  3048. e.removeEventListener(f.GF, d)
  3049. }
  3050. a = a || document.body;
  3051. var e = c.eb || a,
  3052. f = this;
  3053. this.uR(a, b);
  3054. c.Ra(e, this.GF, d)
  3055. }
  3056. };
  3057. c.screen.K();
  3058. c.Rj = {
  3059. zS: c.d(0, 0),
  3060. AS: c.d(0, 0),
  3061. top: c.d(0, 0),
  3062. Py: c.d(0, 0),
  3063. yO: c.d(0, 0),
  3064. bottom: c.d(0, 0),
  3065. jq: c.d(0, 0),
  3066. left: c.d(0, 0),
  3067. right: c.d(0, 0),
  3068. width: 0,
  3069. height: 0,
  3070. K: function(a) {
  3071. var b = this.width = a.width,
  3072. d = this.height = a.height,
  3073. e = a.x;
  3074. a = a.y;
  3075. var f = a + d,
  3076. g = e + b;
  3077. this.zS.x = e;
  3078. this.zS.y = f;
  3079. this.AS.x = g;
  3080. this.AS.y = f;
  3081. this.top.x = e + b / 2;
  3082. this.top.y = f;
  3083. this.Py.x = e;
  3084. this.Py.y = a;
  3085. this.yO.x = g;
  3086. this.yO.y = a;
  3087. this.bottom.x = e + b / 2;
  3088. this.bottom.y = a;
  3089. this.jq.x = e + b / 2;
  3090. this.jq.y = a + d / 2;
  3091. this.left.x = e;
  3092. this.left.y = a + d / 2;
  3093. this.right.x = g;
  3094. this.right.y = a + d / 2
  3095. }
  3096. };
  3097. c.nX = -90;
  3098. c.oX = 90;
  3099. c.pX = 180;
  3100. c.nba = 0;
  3101. c.qQ = {
  3102. Kp: !1,
  3103. KM: !1,
  3104. gN: c.d(0, 0),
  3105. B_: c.d(0, 0),
  3106. hN: [],
  3107. DE: 0,
  3108. dm: [],
  3109. HF: {},
  3110. Bp: 0,
  3111. iE: 5,
  3112. Pw: !1,
  3113. Qw: 1 / 30,
  3114. eL: 1,
  3115. Tm: 0,
  3116. NC: null,
  3117. Ow: null,
  3118. vZ: function() {
  3119. for (var a = this.Bp, b = 0; b < this.iE; b++) {
  3120. if (!(a & 1)) return this.Bp |= 1 << b, b;
  3121. a >>= 1
  3122. }
  3123. return -1
  3124. },
  3125. H_: function(a) {
  3126. 0 > a || a >= this.iE || (a = ~ (1 << a), this.Bp &= a)
  3127. },
  3128. Kl: null,
  3129. hH: function(a) {
  3130. for (var b, d, e, f = [], g = this.HF, h = 0, k = a.length; h < k; h++) b = a[h], e = b.Zh, d = g[e], null == d && (d = this.vZ(), -1 == d ? c.log(c.f.H4, d) : (b = this.dm[d] = b, g[e] = d, f.push(b)));
  3131. 0 < f.length && (this.Kl.fx(f), a = new c.gh(f), a.Dl = c.gh.Co.SA, c.wa.dispatchEvent(a))
  3132. },
  3133. iH: function(a) {
  3134. for (var b, d, e = [], f = this.dm, g = 0, h = a.length; g < h; g++) b = a[g], d = b.Zh, d = this.HF[d], null != d && f[d] && (f[d].hF(b.Xd), f[d].Op(b.mj), e.push(f[d]));
  3135. 0 < e.length && (this.Kl.fx(e), a = new c.gh(e), a.Dl = c.gh.Co.vB, c.wa.dispatchEvent(a))
  3136. },
  3137. mz: function(a) {
  3138. a = this.KP(a);
  3139. 0 < a.length && (this.Kl.fx(a), a = new c.gh(a), a.Dl = c.gh.Co.eB, c.wa.dispatchEvent(a))
  3140. },
  3141. ZP: function(a) {
  3142. a = this.KP(a);
  3143. 0 < a.length && (this.Kl.fx(a), a = new c.gh(a), a.Dl = c.gh.Co.XA, c.wa.dispatchEvent(a))
  3144. },
  3145. KP: function(a) {
  3146. for (var b, d, e, f = [], g = this.dm, h = this.HF, k = 0, m = a.length; k < m; k++) b = a[k], e = b.Zh, d = h[e], null != d && g[d] && (g[d].hF(b.Xd), g[d].Op(b.mj), f.push(g[d]), this.H_(d), delete h[e]);
  3147. return f
  3148. },
  3149. yi: function(a) {
  3150. var b = document.documentElement,
  3151. d = window,
  3152. e = null,
  3153. e = "function" === typeof a.getBoundingClientRect ? a.getBoundingClientRect() : a instanceof HTMLCanvasElement ? {
  3154. left: 0,
  3155. top: 0,
  3156. width: a.width,
  3157. height: a.height
  3158. } : {
  3159. left: 0,
  3160. top: 0,
  3161. width: parseInt(a.style.width),
  3162. height: parseInt(a.style.height)
  3163. };
  3164. return {
  3165. left: e.left + d.pageXOffset - b.clientLeft,
  3166. top: e.top + d.pageYOffset - b.clientTop,
  3167. width: e.width,
  3168. height: e.height
  3169. }
  3170. },
  3171. N3: function(a) {
  3172. for (var b = null, d = this.hN, e = a.Zh, f = d.length - 1; 0 <= f; f--) if (d[f].Zh == e) {
  3173. b = d[f];
  3174. break
  3175. }
  3176. b || (b = a);
  3177. return b
  3178. },
  3179. T7: function(a) {
  3180. for (var b = !1, d = this.hN, e = a.Zh, f = d.length - 1; 0 <= f; f--) if (d[f].Zh == e) {
  3181. d[f] = a;
  3182. b = !0;
  3183. break
  3184. }
  3185. b || (50 >= d.length ? d.push(a) : (d[this.DE] = a, this.DE = (this.DE + 1) % 50))
  3186. },
  3187. Gu: function(a, b, d) {
  3188. var e = this.gN;
  3189. a = this.Kl.BG(a, b, d);
  3190. b = new c.pC(a.x, a.y);
  3191. b.Op(e.x, e.y);
  3192. e.x = a.x;
  3193. e.y = a.y;
  3194. return b
  3195. },
  3196. Bq: function(a, b, d) {
  3197. var e = this.B_;
  3198. this.Kl.vY(a, b);
  3199. b = new c.bd(d);
  3200. b.G7(a.x, a.y);
  3201. b.b0(e.x, e.y);
  3202. e.x = a.x;
  3203. e.y = a.y;
  3204. return b
  3205. },
  3206. Cq: function(a, b) {
  3207. if (null != a.pageX) return {
  3208. x: a.pageX,
  3209. y: a.pageY
  3210. };
  3211. b.left -= document.body.scrollLeft;
  3212. b.top -= document.body.scrollTop;
  3213. return {
  3214. x: a.clientX,
  3215. y: a.clientY
  3216. }
  3217. },
  3218. jz: function(a, b) {
  3219. for (var d = [], e = this.Kl, f, g, h = this.gN, k = a.changedTouches.length, m = 0; m < k; m++) if (f = a.changedTouches[m]) {
  3220. var n;
  3221. n = c.Yb.Ar === c.Yb.In ? e.BG(f.pageX, f.pageY, b) : e.BG(f.clientX, f.clientY, b);
  3222. null != f.identifier ? (f = new c.pC(n.x, n.y, f.identifier), g = this.N3(f).Aq(), f.Op(g.x, g.y), this.T7(f)) : (f = new c.pC(n.x, n.y), f.Op(h.x, h.y));
  3223. h.x = n.x;
  3224. h.y = n.y;
  3225. d.push(f)
  3226. }
  3227. return d
  3228. },
  3229. G6: function(a) {
  3230. if (!this.KM) {
  3231. var b = this.Kl = c.view,
  3232. d = this,
  3233. e = "touches" in c.Yb.sG;
  3234. "mouse" in c.Yb.sG && (c.Ra(window, "mousedown", function() {
  3235. d.Kp = !0
  3236. }, !1), c.Ra(window, "mouseup", function(b) {
  3237. var f = d.Kp;
  3238. d.Kp = !1;
  3239. if (f) {
  3240. var f = d.yi(a),
  3241. g = d.Cq(b, f);
  3242. c.Rg(new c.VJ(f.left, f.top, f.width, f.height), g) || (e || d.mz([d.Gu(g.x, g.y, f)]), f = d.Bq(g, f, c.bd.AC), f.ro(b.button), c.wa.dispatchEvent(f))
  3243. }
  3244. }, !1), c.Ra(a, "mousedown", function(b) {
  3245. d.Kp = !0;
  3246. var f = d.yi(a),
  3247. g = d.Cq(b, f);
  3248. e || d.hH([d.Gu(g.x, g.y, f)]);
  3249. f = d.Bq(g, f, c.bd.gJ);
  3250. f.ro(b.button);
  3251. c.wa.dispatchEvent(f);
  3252. b.stopPropagation();
  3253. b.preventDefault();
  3254. a.focus()
  3255. }, !1), c.Ra(a, "mouseup", function(b) {
  3256. d.Kp = !1;
  3257. var f = d.yi(a),
  3258. g = d.Cq(b, f);
  3259. e || d.mz([d.Gu(g.x, g.y, f)]);
  3260. f = d.Bq(g, f, c.bd.AC);
  3261. f.ro(b.button);
  3262. c.wa.dispatchEvent(f);
  3263. b.stopPropagation();
  3264. b.preventDefault()
  3265. }, !1), c.Ra(a, "mousemove", function(b) {
  3266. var f = d.yi(a),
  3267. g = d.Cq(b, f);
  3268. e || d.iH([d.Gu(g.x, g.y, f)]);
  3269. f = d.Bq(g, f, c.bd.wJ);
  3270. d.Kp ? f.ro(b.button) : f.ro(null);
  3271. c.wa.dispatchEvent(f);
  3272. b.stopPropagation();
  3273. b.preventDefault()
  3274. }, !1), c.Ra(a, "mousewheel", function(b) {
  3275. var e = d.yi(a),
  3276. f = d.Cq(b, e),
  3277. e = d.Bq(f, e, c.bd.VB);
  3278. e.ro(b.button);
  3279. e.bS(0, b.wheelDelta);
  3280. c.wa.dispatchEvent(e);
  3281. b.stopPropagation();
  3282. b.preventDefault()
  3283. }, !1), c.Ra(a, "DOMMouseScroll", function(b) {
  3284. var e = d.yi(a),
  3285. f = d.Cq(b, e),
  3286. e = d.Bq(f, e, c.bd.VB);
  3287. e.ro(b.button);
  3288. e.bS(0, -120 * b.detail);
  3289. c.wa.dispatchEvent(e);
  3290. b.stopPropagation();
  3291. b.preventDefault()
  3292. }, !1));
  3293. if (window.navigator.msPointerEnabled) {
  3294. var f = {
  3295. MSPointerDown: d.hH,
  3296. MSPointerMove: d.iH,
  3297. MSPointerUp: d.mz,
  3298. MSPointerCancel: d.ZP
  3299. },
  3300. g;
  3301. for (g in f)(function(b, e) {
  3302. c.Ra(a, b, function(b) {
  3303. var f = d.yi(a);
  3304. f.left -= document.documentElement.scrollLeft;
  3305. f.top -= document.documentElement.scrollTop;
  3306. e.call(d, [d.Gu(b.clientX, b.clientY, f)]);
  3307. b.stopPropagation()
  3308. }, !1)
  3309. })(g, f[g])
  3310. }
  3311. e && (c.Ra(a, "touchstart", function(b) {
  3312. if (b.changedTouches) {
  3313. var e = d.yi(a);
  3314. e.left -= document.body.scrollLeft;
  3315. e.top -= document.body.scrollTop;
  3316. d.hH(d.jz(b, e));
  3317. b.stopPropagation();
  3318. b.preventDefault();
  3319. a.focus()
  3320. }
  3321. }, !1), c.Ra(a, "touchmove", function(b) {
  3322. if (b.changedTouches) {
  3323. var e = d.yi(a);
  3324. e.left -= document.body.scrollLeft;
  3325. e.top -= document.body.scrollTop;
  3326. d.iH(d.jz(b, e));
  3327. b.stopPropagation();
  3328. b.preventDefault()
  3329. }
  3330. }, !1), c.Ra(a, "touchend", function(b) {
  3331. if (b.changedTouches) {
  3332. var e = d.yi(a);
  3333. e.left -= document.body.scrollLeft;
  3334. e.top -= document.body.scrollTop;
  3335. d.mz(d.jz(b, e));
  3336. b.stopPropagation();
  3337. b.preventDefault()
  3338. }
  3339. }, !1), c.Ra(a, "touchcancel", function(e) {
  3340. if (e.changedTouches) {
  3341. var f = d.yi(a);
  3342. f.left -= document.body.scrollLeft;
  3343. f.top -= document.body.scrollTop;
  3344. b.ZP(d.jz(e, f));
  3345. e.stopPropagation();
  3346. e.preventDefault()
  3347. }
  3348. }, !1));
  3349. this.rN();
  3350. this.qN();
  3351. this.KM = !0
  3352. }
  3353. },
  3354. rN: function() {},
  3355. qN: function() {},
  3356. update: function(a) {
  3357. this.Tm > this.Qw && (this.Tm -= this.Qw, c.wa.dispatchEvent(new c.YT(this.NC)));
  3358. this.Tm += a
  3359. }
  3360. };
  3361. var p = c.qQ;
  3362. p.Kma = function(a) {
  3363. this.Pw !== a && (this.Pw = a, a = c.L.km(), this.Pw ? (this.Tm = 0, a.fI(this)) : (this.Tm = 0, a.Lv(this)))
  3364. };
  3365. p.Lma = function(a) {
  3366. this.Qw !== a && (this.Qw = a)
  3367. };
  3368. p.rN = function() {
  3369. c.Ra(c.eb, "keydown", function(a) {
  3370. c.wa.dispatchEvent(new c.kJ(a.keyCode, !0));
  3371. a.stopPropagation();
  3372. a.preventDefault()
  3373. }, !1);
  3374. c.Ra(c.eb, "keyup", function(a) {
  3375. c.wa.dispatchEvent(new c.kJ(a.keyCode, !1));
  3376. a.stopPropagation();
  3377. a.preventDefault()
  3378. }, !1)
  3379. };
  3380. p.qN = function() {
  3381. var a = window;
  3382. this.NC = new c.YS;
  3383. this.Ow = a.DeviceMotionEvent || a.DeviceOrientationEvent;
  3384. c.Yb.In == c.Yb.$I && (this.Ow = window.DeviceOrientationEvent);
  3385. c.Ra(a, this.Ow == a.DeviceMotionEvent ? "devicemotion" : "deviceorientation", this.m2.bind(this), !1)
  3386. };
  3387. p.m2 = function(a) {
  3388. var b = window;
  3389. if (this.Pw) {
  3390. var d = this.NC;
  3391. if (this.Ow == window.DeviceMotionEvent) {
  3392. var e = a.accelerationIncludingGravity;
  3393. d.x = this.eL * e.x * 0.1;
  3394. d.y = this.eL * e.y * 0.1;
  3395. d.z = 0.1 * e.z
  3396. } else d.x = a.gamma / 90 * 0.981, d.y = 0.981 * -(a.beta / 90), d.z = a.alpha / 90 * 0.981;
  3397. d.timestamp = a.timeStamp || Date.now();
  3398. a = d.x;
  3399. b.orientation === c.oX ? (d.x = -d.y, d.y = a) : b.orientation === c.nX ? (d.x = d.y, d.y = -a) : b.orientation === c.pX && (d.x = -d.x, d.y = -d.y)
  3400. }
  3401. };
  3402. delete p;
  3403. c.N9 = function(a, b, d, e, f, g) {
  3404. this.a = a;
  3405. this.b = b;
  3406. this.C = d;
  3407. this.D = e;
  3408. this.xa = f;
  3409. this.ya = g
  3410. };
  3411. c.bT = function(a, b, d, e, f, g) {
  3412. return {
  3413. a: a,
  3414. b: b,
  3415. C: d,
  3416. D: e,
  3417. xa: f,
  3418. ya: g
  3419. }
  3420. };
  3421. c.UJ = function(a, b) {
  3422. return {
  3423. x: b.a * a.x + b.C * a.y + b.xa,
  3424. y: b.b * a.x + b.D * a.y + b.ya
  3425. }
  3426. };
  3427. c.tl = function(a, b, d) {
  3428. return {
  3429. x: d.a * a + d.C * b + d.xa,
  3430. y: d.b * a + d.D * b + d.ya
  3431. }
  3432. };
  3433. c.Maa = function(a, b) {
  3434. return {
  3435. width: b.a * a.width + b.C * a.height,
  3436. height: b.b * a.width + b.D * a.height
  3437. }
  3438. };
  3439. c.Q9 = function() {
  3440. return {
  3441. a: 1,
  3442. b: 0,
  3443. C: 0,
  3444. D: 1,
  3445. xa: 0,
  3446. ya: 0
  3447. }
  3448. };
  3449. c.P9 = function() {
  3450. return {
  3451. a: 1,
  3452. b: 0,
  3453. C: 0,
  3454. D: 1,
  3455. xa: 0,
  3456. ya: 0
  3457. }
  3458. };
  3459. c.SB = function(a, b) {
  3460. var d = c.$q(a),
  3461. e = c.Zq(a),
  3462. f = c.qv(a),
  3463. g = c.rv(a),
  3464. h = c.tl(e, d, b),
  3465. d = c.tl(f, d, b),
  3466. e = c.tl(e, g, b),
  3467. k = c.tl(f, g, b),
  3468. f = Math.min(h.x, d.x, e.x, k.x),
  3469. g = Math.max(h.x, d.x, e.x, k.x),
  3470. m = Math.min(h.y, d.y, e.y, k.y),
  3471. h = Math.max(h.y, d.y, e.y, k.y);
  3472. return c.rect(f, m, g - f, h - m)
  3473. };
  3474. c.JX = function(a, b) {
  3475. var d = c.$q(a),
  3476. e = c.Zq(a),
  3477. f = c.qv(a),
  3478. g = c.rv(a),
  3479. h = c.tl(e, d, b),
  3480. d = c.tl(f, d, b),
  3481. e = c.tl(e, g, b),
  3482. k = c.tl(f, g, b),
  3483. f = Math.min(h.x, d.x, e.x, k.x),
  3484. g = Math.max(h.x, d.x, e.x, k.x),
  3485. m = Math.min(h.y, d.y, e.y, k.y),
  3486. h = Math.max(h.y, d.y, e.y, k.y);
  3487. a.x = f;
  3488. a.y = m;
  3489. a.width = g - f;
  3490. a.height = h - m;
  3491. return a
  3492. };
  3493. c.cT = function(a, b, d) {
  3494. return {
  3495. a: a.a,
  3496. b: a.b,
  3497. C: a.C,
  3498. D: a.D,
  3499. xa: a.xa + a.a * b + a.C * d,
  3500. ya: a.ya + a.b * b + a.D * d
  3501. }
  3502. };
  3503. c.S9 = function(a, b, d) {
  3504. return {
  3505. a: a.a * b,
  3506. b: a.b * b,
  3507. C: a.C * d,
  3508. D: a.D * d,
  3509. xa: a.xa,
  3510. ya: a.ya
  3511. }
  3512. };
  3513. c.R9 = function(a, b) {
  3514. var d = Math.sin(b),
  3515. e = Math.cos(b);
  3516. return {
  3517. a: a.a * e + a.C * d,
  3518. b: a.b * e + a.D * d,
  3519. C: a.C * e - a.a * d,
  3520. D: a.D * e - a.b * d,
  3521. xa: a.xa,
  3522. ya: a.ya
  3523. }
  3524. };
  3525. c.Dm = function(a, b) {
  3526. return {
  3527. a: a.a * b.a + a.b * b.C,
  3528. b: a.a * b.b + a.b * b.D,
  3529. C: a.C * b.a + a.D * b.C,
  3530. D: a.C * b.b + a.D * b.D,
  3531. xa: a.xa * b.a + a.ya * b.C + b.xa,
  3532. ya: a.xa * b.b + a.ya * b.D + b.ya
  3533. }
  3534. };
  3535. c.O9 = function(a, b) {
  3536. return a.a === b.a && a.b === b.b && a.C === b.C && a.D === b.D && a.xa === b.xa && a.ya === b.ya
  3537. };
  3538. c.VI = function(a) {
  3539. var b = 1 / (a.a * a.D - a.b * a.C);
  3540. return {
  3541. a: b * a.D,
  3542. b: -b * a.b,
  3543. C: -b * a.C,
  3544. D: b * a.a,
  3545. xa: b * (a.C * a.ya - a.D * a.xa),
  3546. ya: b * (a.b * a.xa - a.a * a.ya)
  3547. }
  3548. };
  3549. c.GJ = parseFloat("1.192092896e-07F");
  3550. c.RH = function(a) {
  3551. return c.d(-a.x, -a.y)
  3552. };
  3553. c.Ij = function(a, b) {
  3554. return c.d(a.x + b.x, a.y + b.y)
  3555. };
  3556. c.de = function(a, b) {
  3557. return c.d(a.x - b.x, a.y - b.y)
  3558. };
  3559. c.Jj = function(a, b) {
  3560. return c.d(a.x * b, a.y * b)
  3561. };
  3562. c.eR = function(a, b) {
  3563. return c.Jj(c.Ij(a, b), 0.5)
  3564. };
  3565. c.Vq = function(a, b) {
  3566. return a.x * b.x + a.y * b.y
  3567. };
  3568. c.Z5 = function(a, b) {
  3569. return a.x * b.y - a.y * b.x
  3570. };
  3571. c.aA = function(a) {
  3572. return c.d(-a.y, a.x)
  3573. };
  3574. c.nla = function(a) {
  3575. return c.d(a.y, -a.x)
  3576. };
  3577. c.mla = function(a, b) {
  3578. return c.Jj(b, c.Vq(a, b) / c.Vq(b, b))
  3579. };
  3580. c.ola = function(a, b) {
  3581. return c.d(a.x * b.x - a.y * b.y, a.x * b.y + a.y * b.x)
  3582. };
  3583. c.rla = function(a, b) {
  3584. return c.d(a.x * b.x + a.y * b.y, a.y * b.x - a.x * b.y)
  3585. };
  3586. c.cR = function(a) {
  3587. return c.Vq(a, a)
  3588. };
  3589. c.bR = function(a, b) {
  3590. return c.cR(c.de(a, b))
  3591. };
  3592. c.rm = function(a) {
  3593. return Math.sqrt(c.cR(a))
  3594. };
  3595. c.ila = function(a, b) {
  3596. return c.rm(c.de(a, b))
  3597. };
  3598. c.Dh = function(a) {
  3599. return c.Jj(a, 1 / c.rm(a))
  3600. };
  3601. c.jla = function(a) {
  3602. return c.d(Math.cos(a), Math.sin(a))
  3603. };
  3604. c.d6 = function(a) {
  3605. return Math.atan2(a.y, a.x)
  3606. };
  3607. c.gd = function(a, b, d) {
  3608. if (b > d) {
  3609. var e = b;
  3610. b = d;
  3611. d = e
  3612. }
  3613. return a < b ? b : a < d ? a : d
  3614. };
  3615. c.aR = function(a) {
  3616. var b = c.d(0, 0),
  3617. d = c.d(1, 1);
  3618. return c.d(c.gd(a.x, b.x, d.x), c.gd(a.y, b.y, d.y))
  3619. };
  3620. c.a6 = function() {
  3621. var a = c.L.V;
  3622. return c.d(a.width, a.height)
  3623. };
  3624. c.hla = function(a, b) {
  3625. return c.d(b(a.x), b(a.y))
  3626. };
  3627. c.dR = function(a, b, d) {
  3628. return c.Ij(c.Jj(a, 1 - d), c.Jj(b, d))
  3629. };
  3630. c.kla = function(a, b, d) {
  3631. return a.x - d <= b.x && b.x <= a.x + d && a.y - d <= b.y && b.y <= a.y + d ? !0 : !1
  3632. };
  3633. c.gla = function(a, b) {
  3634. return c.d(a.x * b.x, a.y * b.y)
  3635. };
  3636. c.fla = function(a, b) {
  3637. var d = c.Dh(a),
  3638. e = c.Dh(b),
  3639. d = Math.atan2(d.x * e.y - d.y * e.x, c.Vq(d, e));
  3640. return Math.abs(d) < c.GJ ? 0 : d
  3641. };
  3642. c.ela = function(a, b) {
  3643. var d = Math.acos(c.Vq(c.Dh(a), c.Dh(b)));
  3644. return Math.abs(d) < c.GJ ? 0 : d
  3645. };
  3646. c.c6 = function(a, b, d) {
  3647. a = c.de(a, b);
  3648. var e = Math.cos(d);
  3649. d = Math.sin(d);
  3650. var f = a.x;
  3651. a.x = f * e - a.y * d + b.x;
  3652. a.y = f * d + a.y * e + b.y;
  3653. return a
  3654. };
  3655. c.QH = function(a, b, d, e, f) {
  3656. if (a.x == b.x && a.y == b.y || d.x == e.x && d.y == e.y) return !1;
  3657. var g = b.x - a.x;
  3658. b = b.y - a.y;
  3659. var h = e.x - d.x;
  3660. e = e.y - d.y;
  3661. var k = a.x - d.x;
  3662. a = a.y - d.y;
  3663. d = e * g - h * b;
  3664. f.x = h * a - e * k;
  3665. f.y = g * a - b * k;
  3666. if (0 == d) return 0 == f.x || 0 == f.y ? !0 : !1;
  3667. f.x /= d;
  3668. f.y /= d;
  3669. return !0
  3670. };
  3671. c.qla = function(a, b, d, e) {
  3672. var f = c.d(0, 0);
  3673. return c.QH(a, b, d, e, f) && 0 <= f.x && 1 >= f.x && 0 <= f.y && 1 >= f.y ? !0 : !1
  3674. };
  3675. c.lla = function(a, b, d, e) {
  3676. var f = c.d(0, 0);
  3677. return c.QH(a, b, d, e, f) ? (d = c.d(0, 0), d.x = a.x + f.x * (b.x - a.x), d.y = a.y + f.x * (b.y - a.y), d) : c.d(0, 0)
  3678. };
  3679. c.pla = function(a, b) {
  3680. return null != a && null != b ? a.x == b.x && a.y == b.y : !1
  3681. };
  3682. c.bA = function(a) {
  3683. a.x = 0;
  3684. a.y = 0
  3685. };
  3686. c.Qk = function(a, b) {
  3687. a.x = b.x;
  3688. a.y = b.y
  3689. };
  3690. c.Wq = function(a, b) {
  3691. a.x *= b;
  3692. a.y *= b
  3693. };
  3694. c.fR = function(a, b) {
  3695. a.x -= b.x;
  3696. a.y -= b.y
  3697. };
  3698. c.$z = function(a, b) {
  3699. a.x += b.x;
  3700. a.y += b.y
  3701. };
  3702. c.b6 = function(a) {
  3703. c.Wq(a, 1 / Math.sqrt(a.x * a.x + a.y * a.y))
  3704. };
  3705. c.QI = function(a, b, d, e, f) {
  3706. f += e;
  3707. if (!(1 >= f)) {
  3708. b *= 0.5;
  3709. for (var g, h = f - 1, k = e; k < f; k++) {
  3710. g = 2 * k;
  3711. var m = c.d(a[2 * k], a[2 * k + 1]),
  3712. n;
  3713. if (0 === k) n = c.aA(c.Dh(c.de(m, c.d(a[2 * (k + 1)], a[2 * (k + 1) + 1]))));
  3714. else if (k === h) n = c.aA(c.Dh(c.de(c.d(a[2 * (k - 1)], a[2 * (k - 1) + 1]), m)));
  3715. else {
  3716. n = c.d(a[2 * (k - 1)], a[2 * (k - 1) + 1]);
  3717. var q = c.d(a[2 * (k + 1)], a[2 * (k + 1) + 1]),
  3718. r = c.Dh(c.de(q, m)),
  3719. t = c.Dh(c.de(n, m)),
  3720. s = Math.acos(c.Vq(r, t));
  3721. n = s < c.ag(70) ? c.aA(c.Dh(c.eR(r, t))) : s < c.ag(170) ? c.Dh(c.eR(r, t)) : c.aA(c.Dh(c.de(q, n)))
  3722. }
  3723. n = c.Jj(n, b);
  3724. d[2 * g] = m.x + n.x;
  3725. d[2 * g + 1] = m.y + n.y;
  3726. d[2 * (g + 1)] = m.x - n.x;
  3727. d[2 * (g + 1) + 1] = m.y - n.y
  3728. }
  3729. for (k = 0 == e ? 0 : e - 1; k < h; k++) g = 2 * k, a = g + 2, b = c.QA(d[2 * g], d[2 * g + 1]), f = c.QA(d[2 * (g + 1)], d[2 * (g + 1) + 1]), g = c.QA(d[2 * a], d[2 * a]), e = c.QA(d[2 * (a + 1)], d[2 * (a + 1) + 1]), b = !c.p9(b.x, b.y, e.x, e.y, f.x, f.y, g.x, g.y), !b.Su && (0 > b.value || 1 < b.value) && (b.Su = !0), b.Su && (d[2 * a] = e.x, d[2 * a + 1] = e.y, d[2 * (a + 1)] = g.x, d[2 * (a + 1) + 1] = g.y)
  3730. }
  3731. };
  3732. c.p9 = function(a, b, d, e, f, g, h, k) {
  3733. if (a == d && b == e || f == h && g == k) return {
  3734. Su: !1,
  3735. value: 0
  3736. };
  3737. d -= a;
  3738. e -= b;
  3739. f -= a;
  3740. g -= b;
  3741. h -= a;
  3742. k -= b;
  3743. a = Math.sqrt(d * d + e * e);
  3744. d /= a;
  3745. e /= a;
  3746. b = f * d + g * e;
  3747. g = g * d - f * e;
  3748. f = b;
  3749. b = h * d + k * e;
  3750. k = k * d - h * e;
  3751. h = b;
  3752. return g == k ? {
  3753. Su: !1,
  3754. value: 0
  3755. } : {
  3756. Su: !0,
  3757. value: (h + (f - h) * k / (k - g)) / a
  3758. }
  3759. };
  3760. c.Lpa = function(a) {
  3761. for (var b = 0, d = a.length; b < d; b++) {
  3762. var e = a[(b + 1) % d],
  3763. f = a[(b + 2) % d];
  3764. if (0 < c.Z5(c.de(e, a[b]), c.de(f, e))) return !1
  3765. }
  3766. return !0
  3767. };
  3768. c.o$ = function(a, b) {
  3769. b[2] = b[3] = b[6] = b[7] = b[8] = b[9] = b[11] = b[14] = 0;
  3770. b[10] = b[15] = 1;
  3771. b[0] = a.a;
  3772. b[4] = a.C;
  3773. b[12] = a.xa;
  3774. b[1] = a.b;
  3775. b[5] = a.D;
  3776. b[13] = a.ya
  3777. };
  3778. c.M$ = function(a, b) {
  3779. b.a = a[0];
  3780. b.C = a[4];
  3781. b.xa = a[12];
  3782. b.b = a[1];
  3783. b.D = a[5];
  3784. b.ya = a[13]
  3785. };
  3786. c.pC = c.qa.extend({
  3787. Xd: null,
  3788. mj: null,
  3789. Zh: 0,
  3790. UN: !1,
  3791. Tt: null,
  3792. ctor: function(a, b, d) {
  3793. this.Xd = c.d(a || 0, b || 0);
  3794. this.Zh = d || 0
  3795. },
  3796. Aq: function() {
  3797. return {
  3798. x: this.Xd.x,
  3799. y: this.Xd.y
  3800. }
  3801. },
  3802. C3: function() {
  3803. return this.Xd.x
  3804. },
  3805. D3: function() {
  3806. return this.Xd.y
  3807. },
  3808. Kga: function() {
  3809. return {
  3810. x: this.mj.x,
  3811. y: this.mj.y
  3812. }
  3813. },
  3814. aha: function() {
  3815. return {
  3816. x: this.Tt.x,
  3817. y: this.Tt.y
  3818. }
  3819. },
  3820. RG: function() {
  3821. return c.de(this.Xd, this.mj)
  3822. },
  3823. B3: function() {
  3824. return {
  3825. x: this.Xd.x,
  3826. y: this.Xd.y
  3827. }
  3828. },
  3829. Lga: function() {
  3830. return {
  3831. x: this.mj.x,
  3832. y: this.mj.y
  3833. }
  3834. },
  3835. bha: function() {
  3836. return {
  3837. x: this.Tt.x,
  3838. y: this.Tt.y
  3839. }
  3840. },
  3841. Wfa: function() {
  3842. return this.Zh
  3843. },
  3844. Xfa: function() {
  3845. return this.Zh
  3846. },
  3847. xoa: function(a, b, d) {
  3848. this.mj = this.Xd;
  3849. this.Xd = c.d(b || 0, d || 0);
  3850. this.Zh = a;
  3851. this.UN || (this.Tt = c.d(this.Xd), this.UN = !0)
  3852. },
  3853. hF: function(a, b) {
  3854. void 0 === b ? (this.Xd.x = a.x, this.Xd.y = a.y) : (this.Xd.x = a, this.Xd.y = b)
  3855. },
  3856. Op: function(a, b) {
  3857. this.mj = void 0 === b ? c.d(a.x, a.y) : c.d(a || 0, b || 0)
  3858. }
  3859. });
  3860. c.Gc = c.qa.extend({
  3861. Cc: 0,
  3862. dn: !1,
  3863. Vd: null,
  3864. $E: function(a) {
  3865. this.Vd = a
  3866. },
  3867. ctor: function(a) {
  3868. this.Cc = a
  3869. },
  3870. dH: function() {
  3871. return this.Cc
  3872. },
  3873. stopPropagation: function() {
  3874. this.dn = !0
  3875. },
  3876. sia: function() {
  3877. return this.dn
  3878. },
  3879. ufa: function() {
  3880. return this.Vd
  3881. }
  3882. });
  3883. c.Gc.Cw = 0;
  3884. c.Gc.Io = 1;
  3885. c.Gc.yo = 2;
  3886. c.Gc.Lo = 3;
  3887. c.Gc.Cr = 4;
  3888. c.Tj = c.Gc.extend({
  3889. xD: null,
  3890. gO: null,
  3891. ctor: function(a) {
  3892. c.Gc.prototype.ctor.call(this, c.Gc.Cr);
  3893. this.xD = a
  3894. },
  3895. setUserData: function(a) {
  3896. this.gO = a
  3897. },
  3898. getUserData: function() {
  3899. return this.gO
  3900. },
  3901. Mfa: function() {
  3902. return this.xD
  3903. }
  3904. });
  3905. c.bd = c.Gc.extend({
  3906. iM: 0,
  3907. nL: 0,
  3908. ri: 0,
  3909. sf: 0,
  3910. FE: 0,
  3911. GE: 0,
  3912. EN: 0,
  3913. FN: 0,
  3914. ctor: function(a) {
  3915. c.Gc.prototype.ctor.call(this, c.Gc.Lo);
  3916. this.iM = a
  3917. },
  3918. bS: function(a, b) {
  3919. this.EN = a;
  3920. this.FN = b
  3921. },
  3922. Wga: function() {
  3923. return this.EN
  3924. },
  3925. Xga: function() {
  3926. return this.FN
  3927. },
  3928. G7: function(a, b) {
  3929. this.ri = a;
  3930. this.sf = b
  3931. },
  3932. Aq: function() {
  3933. return {
  3934. x: this.ri,
  3935. y: this.sf
  3936. }
  3937. },
  3938. B3: function() {
  3939. return {
  3940. x: this.ri,
  3941. y: c.view.lp.height - this.sf
  3942. }
  3943. },
  3944. b0: function(a, b) {
  3945. this.FE = a;
  3946. this.GE = b
  3947. },
  3948. RG: function() {
  3949. return {
  3950. x: this.ri - this.FE,
  3951. y: this.sf - this.GE
  3952. }
  3953. },
  3954. yfa: function() {
  3955. return this.ri - this.FE
  3956. },
  3957. zfa: function() {
  3958. return this.sf - this.GE
  3959. },
  3960. ro: function(a) {
  3961. this.nL = a
  3962. },
  3963. gfa: function() {
  3964. return this.nL
  3965. },
  3966. C3: function() {
  3967. return this.ri
  3968. },
  3969. D3: function() {
  3970. return this.sf
  3971. }
  3972. });
  3973. c.bd.NONE = 0;
  3974. c.bd.gJ = 1;
  3975. c.bd.AC = 2;
  3976. c.bd.wJ = 3;
  3977. c.bd.VB = 4;
  3978. c.bd.h$ = 0;
  3979. c.bd.j$ = 2;
  3980. c.bd.i$ = 1;
  3981. c.bd.c$ = 3;
  3982. c.bd.d$ = 4;
  3983. c.bd.e$ = 5;
  3984. c.bd.f$ = 6;
  3985. c.bd.g$ = 7;
  3986. c.gh = c.Gc.extend({
  3987. Dl: 0,
  3988. dm: null,
  3989. ctor: function(a) {
  3990. c.Gc.prototype.ctor.call(this, c.Gc.Cw);
  3991. this.dm = a || []
  3992. },
  3993. Lfa: function() {
  3994. return this.Dl
  3995. },
  3996. uha: function() {
  3997. return this.dm
  3998. },
  3999. dca: function(a) {
  4000. this.Dl = a
  4001. },
  4002. fca: function(a) {
  4003. this.dm = a
  4004. }
  4005. });
  4006. c.gh.jaa = 5;
  4007. c.gh.Co = {
  4008. SA: 0,
  4009. vB: 1,
  4010. eB: 2,
  4011. XA: 3
  4012. };
  4013. c.za = c.qa.extend({
  4014. mE: null,
  4015. Cc: 0,
  4016. fj: null,
  4017. Sf: !1,
  4018. Gl: 0,
  4019. Pf: null,
  4020. Ac: !1,
  4021. Fp: !0,
  4022. ctor: function(a, b, d) {
  4023. this.mE = d;
  4024. this.Cc = a || 0;
  4025. this.fj = b || ""
  4026. },
  4027. gF: function(a) {
  4028. this.Ac = a
  4029. },
  4030. Sba: function() {
  4031. return this.Ac
  4032. },
  4033. Lt: function(a) {
  4034. this.Sf = a
  4035. },
  4036. QZ: function() {
  4037. return this.Sf
  4038. },
  4039. Rba: function() {
  4040. return this.Cc
  4041. },
  4042. Oba: function() {
  4043. return this.fj
  4044. },
  4045. aF: function(a) {
  4046. this.Gl = a
  4047. },
  4048. Nba: function() {
  4049. return this.Gl
  4050. },
  4051. Mt: function(a) {
  4052. this.Pf = a
  4053. },
  4054. Pba: function() {
  4055. return this.Pf
  4056. },
  4057. gm: function() {
  4058. return null != this.mE
  4059. },
  4060. k: function() {
  4061. return null
  4062. },
  4063. We: function(a) {
  4064. this.Fp = a
  4065. },
  4066. isEnabled: function() {
  4067. return this.Fp
  4068. },
  4069. nA: function() {},
  4070. Lj: function() {}
  4071. });
  4072. c.za.yX = 0;
  4073. c.za.xs = 1;
  4074. c.za.eC = 2;
  4075. c.za.Io = 3;
  4076. c.za.Lo = 4;
  4077. c.za.yo = 5;
  4078. c.za.Cr = 6;
  4079. c.Gs = c.za.extend({
  4080. Bt: null,
  4081. ctor: function(a, b) {
  4082. this.Bt = b;
  4083. var d = this;
  4084. c.za.prototype.ctor.call(this, c.za.Cr, a, function(a) {
  4085. null != d.Bt && d.Bt(a)
  4086. })
  4087. },
  4088. gm: function() {
  4089. return c.za.prototype.gm.call(this) && null != this.Bt
  4090. },
  4091. k: function() {
  4092. return new c.Gs(this.fj, this.Bt)
  4093. }
  4094. });
  4095. c.Gs.create = function(a, b) {
  4096. return new c.Gs(a, b)
  4097. };
  4098. c.sl = c.za.extend({
  4099. Vz: null,
  4100. Yz: null,
  4101. Wz: null,
  4102. Xz: null,
  4103. ctor: function() {
  4104. var a = this;
  4105. c.za.prototype.ctor.call(this, c.za.Lo, c.sl.Hc, function(b) {
  4106. var d = c.bd;
  4107. switch (b.iM) {
  4108. case d.gJ:
  4109. a.Vz && a.Vz(b);
  4110. break;
  4111. case d.AC:
  4112. a.Yz && a.Yz(b);
  4113. break;
  4114. case d.wJ:
  4115. a.Wz && a.Wz(b);
  4116. break;
  4117. case d.VB:
  4118. a.Xz && a.Xz(b)
  4119. }
  4120. })
  4121. },
  4122. k: function() {
  4123. var a = new c.sl;
  4124. a.Vz = this.Vz;
  4125. a.Yz = this.Yz;
  4126. a.Wz = this.Wz;
  4127. a.Xz = this.Xz;
  4128. return a
  4129. },
  4130. gm: function() {
  4131. return !0
  4132. }
  4133. });
  4134. c.sl.Hc = "__cc_mouse";
  4135. c.sl.create = function() {
  4136. return new c.sl
  4137. };
  4138. c.Vi = c.za.extend({
  4139. fp: null,
  4140. Ev: !1,
  4141. jo: null,
  4142. gv: null,
  4143. fv: null,
  4144. ev: null,
  4145. ctor: function() {
  4146. c.za.prototype.ctor.call(this, c.za.xs, c.Vi.Hc, null);
  4147. this.fp = []
  4148. },
  4149. noa: function(a) {
  4150. this.Ev = a
  4151. },
  4152. k: function() {
  4153. var a = new c.Vi;
  4154. a.jo = this.jo;
  4155. a.gv = this.gv;
  4156. a.fv = this.fv;
  4157. a.ev = this.ev;
  4158. a.Ev = this.Ev;
  4159. return a
  4160. },
  4161. gm: function() {
  4162. return this.jo ? !0 : (c.log(c.f.FX), !1)
  4163. }
  4164. });
  4165. c.Vi.Hc = "__cc_touch_one_by_one";
  4166. c.Vi.create = function() {
  4167. return new c.Vi
  4168. };
  4169. c.Ui = c.za.extend({
  4170. hv: null,
  4171. kv: null,
  4172. jv: null,
  4173. iv: null,
  4174. ctor: function() {
  4175. c.za.prototype.ctor.call(this, c.za.eC, c.Ui.Hc, null)
  4176. },
  4177. k: function() {
  4178. var a = new c.Ui;
  4179. a.hv = this.hv;
  4180. a.kv = this.kv;
  4181. a.jv = this.jv;
  4182. a.iv = this.iv;
  4183. return a
  4184. },
  4185. gm: function() {
  4186. return null == this.hv && null == this.kv && null == this.jv && null == this.iv ? (c.log(c.f.EX), !1) : !0
  4187. }
  4188. });
  4189. c.Ui.Hc = "__cc_touch_all_at_once";
  4190. c.Ui.create = function() {
  4191. return new c.Ui
  4192. };
  4193. c.za.create = function(a) {
  4194. c.assert(a && a.event, c.f.ZT);
  4195. var b = a.event;
  4196. delete a.event;
  4197. var d = null;
  4198. b === c.za.xs ? d = new c.Vi : b === c.za.eC ? d = new c.Ui : b === c.za.Lo ? d = new c.sl : b === c.za.Cr ? (d = new c.Gs(a.T2, a.pG), delete a.T2, delete a.pG) : b === c.za.Io ? d = new c.rl : b === c.za.yo && (d = new c.ql(a.pG), delete a.pG);
  4199. for (var e in a) d[e] = a[e];
  4200. return d
  4201. };
  4202. c.JO = function(a) {
  4203. var b, d = a.length,
  4204. e = Array(d);
  4205. for (b = 0; b < d; b += 1) e[b] = a[b];
  4206. return e
  4207. };
  4208. c.GX = c.qa.extend({
  4209. vg: null,
  4210. Cg: null,
  4211. YP: 0,
  4212. ctor: function() {
  4213. this.vg = [];
  4214. this.Cg = []
  4215. },
  4216. size: function() {
  4217. return this.vg.length + this.Cg.length
  4218. },
  4219. empty: function() {
  4220. return 0 === this.vg.length && 0 === this.Cg.length
  4221. },
  4222. push: function(a) {
  4223. 0 == a.Gl ? this.Cg.push(a) : this.vg.push(a)
  4224. },
  4225. O1: function() {
  4226. this.Cg.length = 0
  4227. },
  4228. N1: function() {
  4229. this.vg.length = 0
  4230. },
  4231. clear: function() {
  4232. this.Cg.length = 0;
  4233. this.vg.length = 0
  4234. },
  4235. Ofa: function() {
  4236. return this.vg
  4237. },
  4238. Uga: function() {
  4239. return this.Cg
  4240. }
  4241. });
  4242. c.Lw = function(a) {
  4243. var b = c.Gc,
  4244. d = a.Cc;
  4245. if (d === b.yo) return c.ql.Hc;
  4246. if (d === b.Cr) return a.xD;
  4247. if (d === b.Io) return c.rl.Hc;
  4248. if (d === b.Lo) return c.sl.Hc;
  4249. d === b.Cw && c.log(c.f.Lw);
  4250. return ""
  4251. };
  4252. c.wa = {
  4253. bB: 0,
  4254. Rv: 1,
  4255. Er: 2,
  4256. A$: 3,
  4257. rh: {},
  4258. Ht: {},
  4259. hj: {},
  4260. Qx: {},
  4261. xM: {},
  4262. Zp: [],
  4263. Zs: [],
  4264. bn: 0,
  4265. Fp: !1,
  4266. YM: 0,
  4267. PZ: [c.Wc.Uv, c.Wc.Fr],
  4268. jy: function(a) {
  4269. null != this.hj[a.Ba] && this.Zs.push(a);
  4270. a = a.u;
  4271. for (var b = 0, d = a.length; b < d; b++) this.jy(a[b])
  4272. },
  4273. Xq: function(a, b) {
  4274. var d = this.hj[a.Ba],
  4275. e, f;
  4276. if (d) for (e = 0, f = d.length; e < f; e++) d[e].gF(!0);
  4277. if (!0 === b) for (d = a.u, e = 0, f = d.length; e < f; e++) this.Xq(d[e], !0)
  4278. },
  4279. Uk: function(a, b) {
  4280. var d = this.hj[a.Ba],
  4281. e, f;
  4282. if (d) for (e = 0, f = d.length; e < f; e++) d[e].gF(!1);
  4283. this.jy(a);
  4284. if (!0 === b) for (d = a.u, e = 0, f = d.length; e < f; e++) this.Uk(d[e], !0)
  4285. },
  4286. hL: function(a) {
  4287. 0 === this.bn ? this.oM(a) : this.Zp.push(a)
  4288. },
  4289. oM: function(a) {
  4290. var b = a.fj,
  4291. d = this.rh[b];
  4292. d || (d = new c.GX, this.rh[b] = d);
  4293. d.push(a);
  4294. 0 == a.Gl ? (this.Vl(b, this.Er), b = a.Pf, null == b && c.log(c.f.M2), this.WX(b, a), b.ii && this.Uk(b)) : this.Vl(b, this.Rv)
  4295. },
  4296. KD: function(a) {
  4297. return this.rh[a]
  4298. },
  4299. P0: function() {
  4300. if (0 != this.Zs.length) {
  4301. for (var a = this.Zs, b, d, e = this.hj, f = 0, g = a.length; f < g; f++) if (b = e[a[f].Ba]) for (var h = 0, k = b.length; h < k; h++)(d = b[h]) && this.Vl(d.fj, this.Er);
  4302. this.Zs.length = 0
  4303. }
  4304. },
  4305. sN: function(a) {
  4306. if (a) for (var b, d = 0; d < a.length;) b = a[d], b.Lt(!1), null != b.Pf && (this.DL(b.Pf, b), b.Mt(null)), 0 === this.bn ? c.tf(a, b) : ++d
  4307. },
  4308. pn: function(a) {
  4309. var b = this.rh[a];
  4310. if (b) {
  4311. var d = b.vg;
  4312. this.sN(b.Cg);
  4313. this.sN(d);
  4314. delete this.Ht[a];
  4315. this.bn || (b.clear(), delete this.rh[a])
  4316. }
  4317. for (var d = this.Zp, e, b = 0; b < d.length;)(e = d[b]) && e.fj == a ? c.tf(d, e) : ++b
  4318. },
  4319. oF: function(a) {
  4320. var b = this.bB,
  4321. d = this.Ht;
  4322. d[a] && (b = d[a]);
  4323. b != this.bB && (d[a] = this.bB, b & this.Rv && this.B0(a), b & this.Er && ((b = c.L.sd) ? this.D0(a, b) : d[a] = this.Er))
  4324. },
  4325. D0: function(a, b) {
  4326. var d = this.KD(a);
  4327. if (d) {
  4328. var e = d.Cg;
  4329. e && 0 !== e.length && (this.YM = 0, this.Qx = {}, this.XF(b, !0), d.Cg.sort(this.A0))
  4330. }
  4331. },
  4332. A0: function(a, b) {
  4333. var d = c.wa.Qx;
  4334. return d[b.Pf.Ba] - d[a.Pf.Ba]
  4335. },
  4336. B0: function(a) {
  4337. if (a = this.rh[a]) {
  4338. var b = a.vg;
  4339. if (b && 0 !== b.length) {
  4340. b.sort(this.C0);
  4341. for (var d = 0, e = b.length; d < e && !(0 <= b[d].Gl);)++d;
  4342. a.YP = d
  4343. }
  4344. }
  4345. },
  4346. C0: function(a, b) {
  4347. return a.Gl - b.Gl
  4348. },
  4349. nE: function(a) {
  4350. if (a = this.rh[a]) {
  4351. var b = a.vg,
  4352. d = a.Cg,
  4353. e, f;
  4354. if (d) for (e = 0; e < d.length;) f = d[e], f.Sf ? ++e : c.tf(d, f);
  4355. if (b) for (e = 0; e < b.length;) f = b[e], f.Sf ? ++e : c.tf(b, f);
  4356. d && 0 === d.length && a.O1();
  4357. b && 0 === b.length && a.N1()
  4358. }
  4359. },
  4360. Ey: function(a) {
  4361. var b = this.bn;
  4362. c.assert(0 < b, c.f.$T);
  4363. a.Cc == c.Gc.Cw ? (this.nE(c.Vi.Hc), this.nE(c.Ui.Hc)) : this.nE(c.Lw(a));
  4364. if (!(1 < b)) {
  4365. c.assert(1 == b, c.f.aU);
  4366. a = this.rh;
  4367. var b = this.Ht,
  4368. d;
  4369. for (d in a) a[d].empty() && (delete b[d], delete a[d]);
  4370. d = this.Zp;
  4371. if (0 !== d.length) {
  4372. a = 0;
  4373. for (b = d.length; a < b; a++) this.oM(d[a]);
  4374. this.Zp.length = 0
  4375. }
  4376. }
  4377. },
  4378. m_: function(a, b) {
  4379. if (!a.QZ) return !1;
  4380. var d = b.event,
  4381. e = b.BR;
  4382. d.$E(a.Pf);
  4383. var f = !1,
  4384. g, h = d.Dl,
  4385. k = c.gh.Co;
  4386. h == k.SA ? a.jo && (f = a.jo(e, d)) && a.Sf && a.fp.push(e) : 0 < a.fp.length && -1 != (g = a.fp.indexOf(e)) && (f = !0, h === k.vB && a.gv ? a.gv(e, d) : h === k.eB ? (a.fv && a.fv(e, d), a.Sf && a.fp.splice(g, 1)) : h === k.XA && (a.ev && a.ev(e, d), a.Sf && a.fp.splice(g, 1)));
  4387. return d.dn ? (c.wa.Ey(d), !0) : f && a.Sf && a.Ev ? (b.I5 && b.touches.splice(e, 1), !0) : !1
  4388. },
  4389. BY: function(a) {
  4390. this.oF(c.Vi.Hc);
  4391. this.oF(c.Ui.Hc);
  4392. var b = this.KD(c.Vi.Hc),
  4393. d = this.KD(c.Ui.Hc);
  4394. if (null != b || null != d) {
  4395. var e = a.dm,
  4396. f = c.JO(e),
  4397. g = {
  4398. event: a,
  4399. I5: b && d,
  4400. touches: f,
  4401. BR: null
  4402. };
  4403. if (b) for (var h = 0; h < e.length; h++) if (g.BR = e[h], this.pD(b, this.m_, g), a.dn) return;
  4404. if (d && 0 < f.length && (this.pD(d, this.o_, {
  4405. event: a,
  4406. touches: f
  4407. }), a.dn)) return;
  4408. this.Ey(a)
  4409. }
  4410. },
  4411. o_: function(a, b) {
  4412. if (!a.Sf) return !1;
  4413. var d = c.gh.Co,
  4414. e = b.event,
  4415. f = b.touches,
  4416. g = e.Dl;
  4417. e.$E(a.Pf);
  4418. g == d.SA && a.hv ? a.hv(f, e) : g == d.vB && a.kv ? a.kv(f, e) : g == d.eB && a.jv ? a.jv(f, e) : g == d.XA && a.iv && a.iv(f, e);
  4419. return e.dn ? (c.wa.Ey(e), !0) : !1
  4420. },
  4421. WX: function(a, b) {
  4422. var d = this.hj[a.Ba];
  4423. d || (d = [], this.hj[a.Ba] = d);
  4424. d.push(b)
  4425. },
  4426. DL: function(a, b) {
  4427. var d = this.hj[a.Ba];
  4428. d && (c.tf(d, b), 0 === d.length && delete this.hj[a.Ba])
  4429. },
  4430. pD: function(a, b, d) {
  4431. var e = !1,
  4432. f = a.vg,
  4433. g = a.Cg,
  4434. h = 0,
  4435. k;
  4436. if (f && 0 !== f.length) for (; h < a.YP; ++h) if (k = f[h], k.isEnabled() && !k.Ac && k.Sf && b(k, d)) {
  4437. e = !0;
  4438. break
  4439. }
  4440. if (g && !e) for (a = 0; a < g.length; a++) if (k = g[a], k.isEnabled() && !k.Ac && k.Sf && b(k, d)) {
  4441. e = !0;
  4442. break
  4443. }
  4444. if (f && !e) for (; h < f.length && (k = f[h], !k.isEnabled() || k.Ac || !k.Sf || !b(k, d)); ++h);
  4445. },
  4446. Vl: function(a, b) {
  4447. var d = this.Ht;
  4448. d[a] = null == d[a] ? b : b | d[a]
  4449. },
  4450. XF: function(a, b) {
  4451. var d = a.u,
  4452. e = 0,
  4453. f = d.length,
  4454. g = this.xM,
  4455. h = this.hj;
  4456. if (0 < f) {
  4457. for (var k; e < f; e++) if ((k = d[e]) && 0 > k.Jb) this.XF(k, !1);
  4458. else break;
  4459. null != h[a.Ba] && (g[a.gk] || (g[a.gk] = []), g[a.gk].push(a.Ba));
  4460. for (; e < f; e++)(k = d[e]) && this.XF(k, !1)
  4461. } else null != h[a.Ba] && (g[a.gk] || (g[a.gk] = []), g[a.gk].push(a.Ba));
  4462. if (b) {
  4463. var d = [],
  4464. m;
  4465. for (m in g) d.push(m);
  4466. d.sort(this.E0);
  4467. m = d.length;
  4468. k = this.Qx;
  4469. for (e = 0; e < m; e++) for (f = g[d[e]], h = 0; h < f.length; h++) k[f[h]] = ++this.YM;
  4470. this.xM = {}
  4471. }
  4472. },
  4473. E0: function(a, b) {
  4474. return a - b
  4475. },
  4476. addListener: function(a, b) {
  4477. c.assert(a && b, c.f.O2);
  4478. if (!(a instanceof c.za)) c.assert("number" !== typeof b, c.f.P2), a = c.za.create(a);
  4479. else if (a.Sf) {
  4480. c.log(c.f.Q2);
  4481. return
  4482. }
  4483. a.gm() && ("number" == typeof b ? 0 == b ? c.log(c.f.N2) : (a.Mt(null), a.aF(b), a.Lt(!0), a.gF(!1), this.hL(a)) : (a.Mt(b), a.aF(0), a.Lt(!0), this.hL(a)))
  4484. },
  4485. cG: function(a, b) {
  4486. var d = c.Gs.create(a, b);
  4487. this.addListener(d, 1);
  4488. return d
  4489. },
  4490. removeListener: function(a) {
  4491. if (null != a) {
  4492. var b, d = this.rh,
  4493. e;
  4494. for (e in d) {
  4495. var f = d[e],
  4496. g = f.vg;
  4497. (b = this.tN(f.Cg, a)) ? this.Vl(a.fj, this.Er) : (b = this.tN(g, a)) && this.Vl(a.fj, this.Rv);
  4498. f.empty() && (delete this.Ht[a.fj], delete d[e]);
  4499. if (b) break
  4500. }
  4501. if (!b) for (b = this.Zp, d = 0, e = b.length; d < e; d++) if (f = b[d], f == a) {
  4502. c.tf(b, f);
  4503. break
  4504. }
  4505. }
  4506. },
  4507. tN: function(a, b) {
  4508. if (null == a) return !1;
  4509. for (var d = 0, e = a.length; d < e; d++) {
  4510. var f = a[d];
  4511. if (f == b) return f.Lt(!1), null != f.Pf && (this.DL(f.Pf, f), f.Mt(null)), 0 == this.bn && c.tf(a, f), !0
  4512. }
  4513. return !1
  4514. },
  4515. rR: function(a, b) {
  4516. if (a instanceof c.t) {
  4517. delete this.Qx[a.Ba];
  4518. c.tf(this.Zs, a);
  4519. var d = this.hj[a.Ba];
  4520. if (d) {
  4521. for (var e = c.JO(d), d = 0; d < e.length; d++) this.removeListener(e[d]);
  4522. e.length = 0;
  4523. e = this.Zp;
  4524. for (d = 0; d < e.length;) {
  4525. var f = e[d];
  4526. f.Pf == a ? (f.Mt(null), f.Lt(!1), e.splice(d, 1)) : ++d
  4527. }
  4528. if (!0 === b) for (e = a.u, d = 0, f = e.length; d < f; d++) this.rR(e[d], !0)
  4529. }
  4530. } else a == c.za.xs ? this.pn(c.Vi.Hc) : a == c.za.eC ? this.pn(c.Ui.Hc) : a == c.za.Lo ? this.pn(c.sl.Hc) : a == c.za.yo ? this.pn(c.ql.Hc) : a == c.za.Io ? this.pn(c.rl.Hc) : c.log(c.f.R2)
  4531. },
  4532. ima: function(a) {
  4533. this.pn(a)
  4534. },
  4535. dma: function() {
  4536. var a = this.rh,
  4537. b = this.PZ,
  4538. d;
  4539. for (d in a) - 1 === b.indexOf(d) && this.pn(d)
  4540. },
  4541. Zna: function(a, b) {
  4542. if (null != a) {
  4543. var d = this.rh,
  4544. e;
  4545. for (e in d) {
  4546. var f = d[e].vg;
  4547. if (f && -1 != f.indexOf(a)) {
  4548. null != a.Pf && c.log(c.f.S2);
  4549. a.Gl !== b && (a.aF(b), this.Vl(a.fj, this.Rv));
  4550. break
  4551. }
  4552. }
  4553. }
  4554. },
  4555. We: function(a) {
  4556. this.Fp = a
  4557. },
  4558. isEnabled: function() {
  4559. return this.Fp
  4560. },
  4561. dispatchEvent: function(a) {
  4562. if (this.Fp) {
  4563. this.P0();
  4564. this.bn++;
  4565. if (!a || !a.dH) throw "event is undefined";
  4566. if (a.Cc == c.Gc.Cw) this.BY(a);
  4567. else {
  4568. var b = c.Lw(a);
  4569. this.oF(b);
  4570. b = this.rh[b];
  4571. null != b && this.pD(b, this.g_, a);
  4572. this.Ey(a)
  4573. }
  4574. this.bn--
  4575. }
  4576. },
  4577. g_: function(a, b) {
  4578. b.$E(a.Pf);
  4579. a.mE(b);
  4580. return b.dn
  4581. },
  4582. Fda: function(a, b) {
  4583. var d = new c.Tj(a);
  4584. d.setUserData(b);
  4585. this.dispatchEvent(d)
  4586. }
  4587. };
  4588. c.YT = c.Gc.extend({
  4589. dL: null,
  4590. ctor: function(a) {
  4591. c.Gc.prototype.ctor.call(this, c.Gc.yo);
  4592. this.dL = a
  4593. }
  4594. });
  4595. c.kJ = c.Gc.extend({
  4596. aE: 0,
  4597. JM: !1,
  4598. ctor: function(a, b) {
  4599. c.Gc.prototype.ctor.call(this, c.Gc.Io);
  4600. this.aE = a;
  4601. this.JM = b
  4602. }
  4603. });
  4604. c.ql = c.za.extend({
  4605. Tx: null,
  4606. ctor: function(a) {
  4607. this.Tx = a;
  4608. var b = this;
  4609. c.za.prototype.ctor.call(this, c.za.yo, c.ql.Hc, function(a) {
  4610. b.Tx(a.dL, a)
  4611. })
  4612. },
  4613. gm: function() {
  4614. c.assert(this.Tx, c.f.CX);
  4615. return !0
  4616. },
  4617. k: function() {
  4618. return new c.ql(this.Tx)
  4619. }
  4620. });
  4621. c.ql.Hc = "__cc_acceleration";
  4622. c.ql.create = function(a) {
  4623. return new c.ql(a)
  4624. };
  4625. c.rl = c.za.extend({
  4626. bv: null,
  4627. cv: null,
  4628. ctor: function() {
  4629. var a = this;
  4630. c.za.prototype.ctor.call(this, c.za.Io, c.rl.Hc, function(b) {
  4631. b.JM ? a.bv && a.bv(b.aE, b) : a.cv && a.cv(b.aE, b)
  4632. })
  4633. },
  4634. k: function() {
  4635. var a = new c.rl;
  4636. a.bv = this.bv;
  4637. a.cv = this.cv;
  4638. return a
  4639. },
  4640. gm: function() {
  4641. return null == this.bv && null == this.cv ? (c.log(c.f.DX), !1) : !0
  4642. }
  4643. });
  4644. c.rl.Hc = "__cc_keyboard";
  4645. c.rl.create = function() {
  4646. return new c.rl
  4647. };
  4648. c.H.CC = function() {
  4649. var a = c.t.prototype;
  4650. a.IF = null;
  4651. a.vF = null;
  4652. a.OD = null;
  4653. a.ck = null;
  4654. a.ctor = function() {
  4655. this.SD();
  4656. var a = new c.ga;
  4657. 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;
  4658. a.c[10] = a.c[15] = 1;
  4659. this.IF = a;
  4660. this.OD = 0;
  4661. this.vF = new c.ga
  4662. };
  4663. a.Sa = function() {
  4664. !1 === this.sj && (this.sj = this.Hx = !0)
  4665. };
  4666. a.U = function() {
  4667. if (this.Ja) {
  4668. var a = c.m,
  4669. d, e = c.ic;
  4670. e.stack.push(e.top);
  4671. c.Jk(this.vF, e.top);
  4672. e.top = this.vF;
  4673. var f = this.grid;
  4674. f && f.vl && f.ru();
  4675. this.transform();
  4676. var g = this.u;
  4677. if (g && 0 < g.length) {
  4678. var h = g.length;
  4679. this.jd();
  4680. for (d = 0; d < h; d++) if (g[d] && 0 > g[d].Jb) g[d].U();
  4681. else break;
  4682. for (this.Y(a); d < h; d++) g[d] && g[d].U()
  4683. } else this.Y(a);
  4684. this.arrivalOrder = 0;
  4685. f && f.vl && f.nu(this);
  4686. e.top = e.stack.pop()
  4687. }
  4688. };
  4689. a.transform = function() {
  4690. var a = this.IF,
  4691. d = c.ic.top,
  4692. e = this.Ve(),
  4693. f = a.c;
  4694. f[0] = e.a;
  4695. f[4] = e.C;
  4696. f[12] = e.xa;
  4697. f[1] = e.b;
  4698. f[5] = e.D;
  4699. f[13] = e.ya;
  4700. f[14] = this.iu;
  4701. c.Dj(d, d, a);
  4702. null == this.ck || null != this.grid && this.grid.fg() || (a = this.lb.x, d = this.lb.y, 0 !== a || 0 !== d ? (c.ZB || (a |= 0, d |= 0), c.Lq(a, d), this.ck.$u(), c.Lq(-a, -d)) : this.ck.$u())
  4703. };
  4704. a.Ve = a.d_
  4705. };
  4706. c.H.HB = function() {
  4707. var a = c.t.prototype;
  4708. c.i(a, "x", a.Se, a.qI);
  4709. c.i(a, "y", a.Mg, a.rI);
  4710. c.i(a, "width", a.Wh, a.vk);
  4711. c.i(a, "height", a.Jl, a.uk);
  4712. c.i(a, "anchorX", a.SY, a.XE);
  4713. c.i(a, "anchorY", a.TY, a.YE);
  4714. c.i(a, "skewX", a.W3, a.a8);
  4715. c.i(a, "skewY", a.X3, a.b8);
  4716. c.i(a, "zIndex", a.A3, a.RR);
  4717. c.i(a, "vertexZ", a.g4, a.n8);
  4718. c.i(a, "rotation", a.Lb, a.Xb);
  4719. c.i(a, "rotationX", a.R3, a.Y7);
  4720. c.i(a, "rotationY", a.S3, a.Z7);
  4721. c.i(a, "scale", a.T3, a.Wk);
  4722. c.i(a, "scaleX", a.IP, a.uv);
  4723. c.i(a, "scaleY", a.JP, a.vv);
  4724. c.i(a, "children", a.d3);
  4725. c.i(a, "childrenCount", a.e3);
  4726. c.i(a, "parent", a.getParent, a.O7);
  4727. c.i(a, "visible", a.T4, a.hS);
  4728. c.i(a, "running", a.R4);
  4729. c.i(a, "ignoreAnchor", a.O4, a.qz);
  4730. c.i(a, "actionManager", a.bz, a.ER);
  4731. c.i(a, "scheduler", a.km, a.aS);
  4732. c.i(a, "shaderProgram", a.ZG, a.uI);
  4733. c.i(a, "glServerState", a.r3, a.D7)
  4734. };
  4735. c.H.IB = function() {
  4736. var a = c.la.prototype;
  4737. c.i(a, "opacity", a.yf, a.Fa);
  4738. c.i(a, "opacityModifyRGB", a.Ue, a.ee);
  4739. c.i(a, "cascadeOpacity", a.Pu, a.er);
  4740. c.i(a, "color", a.xf, a.Va);
  4741. c.i(a, "cascadeColor", a.Ou, a.dr)
  4742. };
  4743. c.AJ = -1;
  4744. c.yR = 1;
  4745. c.t = c.qa.extend({
  4746. Jb: 0,
  4747. gk: 0,
  4748. iu: 0,
  4749. sk: 0,
  4750. rn: 0,
  4751. ma: 1,
  4752. Na: 1,
  4753. va: null,
  4754. ki: 0,
  4755. li: 0,
  4756. u: null,
  4757. Ja: !0,
  4758. dd: null,
  4759. lb: null,
  4760. S: null,
  4761. ii: !1,
  4762. gc: null,
  4763. $h: !1,
  4764. tag: c.AJ,
  4765. userData: null,
  4766. userObject: null,
  4767. sj: !0,
  4768. Hx: !0,
  4769. nh: !0,
  4770. bk: null,
  4771. lca: null,
  4772. pi: null,
  4773. FM: null,
  4774. se: !1,
  4775. Sb: null,
  4776. arrivalOrder: 0,
  4777. lh: null,
  4778. Dg: null,
  4779. Kba: null,
  4780. DM: !1,
  4781. Js: !1,
  4782. Rw: null,
  4783. $i: null,
  4784. $D: !1,
  4785. Sl: 0,
  4786. hy: 0,
  4787. ob: "Node",
  4788. mF: !1,
  4789. yt: "",
  4790. SD: function() {
  4791. this.dd = c.d(0, 0);
  4792. this.lb = c.d(0, 0);
  4793. this.S = c.size(0, 0);
  4794. this.va = c.d(0, 0);
  4795. this.u = [];
  4796. this.pi = {
  4797. a: 1,
  4798. b: 0,
  4799. C: 0,
  4800. D: 1,
  4801. xa: 0,
  4802. ya: 0
  4803. };
  4804. var a = c.L;
  4805. this.lh = a.bz();
  4806. this.Dg = a.km();
  4807. this.DM = !0;
  4808. this.Rw = {
  4809. a: 1,
  4810. b: 0,
  4811. C: 0,
  4812. D: 1,
  4813. xa: 0,
  4814. ya: 0
  4815. };
  4816. c.BT && (this.$i = new c.BT(this))
  4817. },
  4818. K: function() {
  4819. !1 === this.DM && this.SD();
  4820. return !0
  4821. },
  4822. mh: function(a, b) {
  4823. if (a && 0 !== a.length) {
  4824. var d, e = a.length,
  4825. f;
  4826. d = c.t.og;
  4827. switch (b) {
  4828. case d.ca:
  4829. for (d = 0; d < e; d++)(f = a[d]) && f.ca();
  4830. break;
  4831. case d.xb:
  4832. for (d = 0; d < e; d++)(f = a[d]) && f.xb();
  4833. break;
  4834. case d.Ki:
  4835. for (d = 0; d < e; d++)(f = a[d]) && f.Ki();
  4836. break;
  4837. case d.uf:
  4838. for (d = 0; d < e; d++)(f = a[d]) && f.uf();
  4839. break;
  4840. case d.Ff:
  4841. for (d = 0; d < e; d++)(f = a[d]) && f.Ff();
  4842. break;
  4843. case d.Og:
  4844. for (d = 0; d < e; d++)(f = a[d]) && f.Og();
  4845. break;
  4846. case d.jd:
  4847. for (d = 0; d < e; d++)(f = a[d]) && f.jd();
  4848. break;
  4849. default:
  4850. c.assert(0, c.f.NU)
  4851. }
  4852. }
  4853. },
  4854. Sa: null,
  4855. si: function(a) {
  4856. for (var b in a) this[b] = a[b]
  4857. },
  4858. W3: function() {
  4859. return this.ki
  4860. },
  4861. a8: function(a) {
  4862. this.ki = a;
  4863. this.Sa()
  4864. },
  4865. X3: function() {
  4866. return this.li
  4867. },
  4868. b8: function(a) {
  4869. this.li = a;
  4870. this.Sa()
  4871. },
  4872. RR: function(a) {
  4873. this.Jb = a;
  4874. this.gc && this.gc.ar(this, a);
  4875. c.wa.jy(this)
  4876. },
  4877. ky: function(a) {
  4878. this.Jb = a
  4879. },
  4880. A3: function() {
  4881. return this.Jb
  4882. },
  4883. Gha: function() {
  4884. c.log(c.f.UU);
  4885. return this.Jb
  4886. },
  4887. Qoa: function(a) {
  4888. c.log(c.f.eV);
  4889. this.RR(a)
  4890. },
  4891. sna: function(a) {
  4892. this.gk != a && (this.gk = a, c.wa.jy(this))
  4893. },
  4894. Ufa: function() {
  4895. return this.gk
  4896. },
  4897. g4: function() {
  4898. return this.iu
  4899. },
  4900. n8: function(a) {
  4901. this.iu = a
  4902. },
  4903. Lb: function() {
  4904. this.sk !== this.rn && c.log(c.f.SU);
  4905. return this.sk
  4906. },
  4907. Xb: function(a) {
  4908. this.sk = this.rn = a;
  4909. this.Sl = 0.017453292519943295 * this.sk;
  4910. this.hy = 0.017453292519943295 * this.rn;
  4911. this.Sa()
  4912. },
  4913. R3: function() {
  4914. return this.sk
  4915. },
  4916. Y7: function(a) {
  4917. this.sk = a;
  4918. this.Sl = 0.017453292519943295 * this.sk;
  4919. this.Sa()
  4920. },
  4921. S3: function() {
  4922. return this.rn
  4923. },
  4924. Z7: function(a) {
  4925. this.rn = a;
  4926. this.hy = 0.017453292519943295 * this.rn;
  4927. this.Sa()
  4928. },
  4929. T3: function() {
  4930. this.ma !== this.Na && c.log(c.f.TU);
  4931. return this.ma
  4932. },
  4933. Wk: function(a, b) {
  4934. this.ma = a;
  4935. this.Na = b || 0 === b ? b : a;
  4936. this.Sa()
  4937. },
  4938. IP: function() {
  4939. return this.ma
  4940. },
  4941. uv: function(a) {
  4942. this.ma = a;
  4943. this.Sa()
  4944. },
  4945. JP: function() {
  4946. return this.Na
  4947. },
  4948. vv: function(a) {
  4949. this.Na = a;
  4950. this.Sa()
  4951. },
  4952. J: function(a, b) {
  4953. var d = this.va;
  4954. void 0 === b ? (d.x = a.x, d.y = a.y) : (d.x = a, d.y = b);
  4955. this.Sa()
  4956. },
  4957. we: function() {
  4958. return c.d(this.va)
  4959. },
  4960. Se: function() {
  4961. return this.va.x
  4962. },
  4963. qI: function(a) {
  4964. this.va.x = a;
  4965. this.Sa()
  4966. },
  4967. Mg: function() {
  4968. return this.va.y
  4969. },
  4970. rI: function(a) {
  4971. this.va.y = a;
  4972. this.Sa()
  4973. },
  4974. e3: function() {
  4975. return this.u.length
  4976. },
  4977. d3: function() {
  4978. return this.u
  4979. },
  4980. T4: function() {
  4981. return this.Ja
  4982. },
  4983. hS: function(a) {
  4984. this.Ja = a;
  4985. this.Sa()
  4986. },
  4987. Zea: function() {
  4988. return this.dd
  4989. },
  4990. Vk: function(a, b) {
  4991. var d = this.dd;
  4992. if (void 0 === b) {
  4993. if (a.x === d.x && a.y === d.y) return;
  4994. d.x = a.x;
  4995. d.y = a.y
  4996. } else {
  4997. if (a === d.x && b === d.y) return;
  4998. d.x = a;
  4999. d.y = b
  5000. }
  5001. var e = this.lb,
  5002. f = this.S;
  5003. e.x = f.width * d.x;
  5004. e.y = f.height * d.y;
  5005. this.Sa()
  5006. },
  5007. Mba: function() {
  5008. return this.dd
  5009. },
  5010. GN: function(a) {
  5011. var b = a.x;
  5012. a = a.y;
  5013. this.dd.x !== b && (this.dd.x = b, this.lb.x = this.S.width * b);
  5014. this.dd.y !== a && (this.dd.y = a, this.lb.y = this.S.height * a);
  5015. this.Sa()
  5016. },
  5017. SY: function() {
  5018. return this.dd.x
  5019. },
  5020. XE: function(a) {
  5021. this.dd.x !== a && (this.dd.x = a, this.lb.x = this.S.width * a, this.Sa())
  5022. },
  5023. TY: function() {
  5024. return this.dd.y
  5025. },
  5026. YE: function(a) {
  5027. this.dd.y !== a && (this.dd.y = a, this.lb.y = this.S.height * a, this.Sa())
  5028. },
  5029. $ea: function() {
  5030. return this.lb
  5031. },
  5032. Wh: function() {
  5033. return this.S.width
  5034. },
  5035. vk: function(a) {
  5036. this.S.width = a;
  5037. this.lb.x = a * this.dd.x;
  5038. this.Sa()
  5039. },
  5040. Jl: function() {
  5041. return this.S.height
  5042. },
  5043. uk: function(a) {
  5044. this.S.height = a;
  5045. this.lb.y = a * this.dd.y;
  5046. this.Sa()
  5047. },
  5048. ve: function() {
  5049. return this.S
  5050. },
  5051. ye: function(a, b) {
  5052. var d = this.S;
  5053. if (void 0 === b) {
  5054. if (a.width === d.width && a.height === d.height) return;
  5055. d.width = a.width;
  5056. d.height = a.height
  5057. } else {
  5058. if (a === d.width && b === d.height) return;
  5059. d.width = a;
  5060. d.height = b
  5061. }
  5062. var e = this.lb,
  5063. f = this.dd;
  5064. e.x = d.width * f.x;
  5065. e.y = d.height * f.y;
  5066. this.Sa()
  5067. },
  5068. R4: function() {
  5069. return this.ii
  5070. },
  5071. getParent: function() {
  5072. return this.gc
  5073. },
  5074. O7: function(a) {
  5075. this.gc = a
  5076. },
  5077. O4: function() {
  5078. return this.$h
  5079. },
  5080. qz: function(a) {
  5081. a != this.$h && (this.$h = a, this.Sa())
  5082. },
  5083. Dq: function() {
  5084. return this.tag
  5085. },
  5086. to: function(a) {
  5087. this.tag = a
  5088. },
  5089. Ina: function() {
  5090. this.yt
  5091. },
  5092. getName: function() {
  5093. return this.yt
  5094. },
  5095. getUserData: function() {
  5096. return this.userData
  5097. },
  5098. setUserData: function(a) {
  5099. this.userData = a
  5100. },
  5101. Aha: function() {
  5102. return this.userObject
  5103. },
  5104. Noa: function(a) {
  5105. this.userObject != a && (this.userObject = a)
  5106. },
  5107. xga: function() {
  5108. return this.arrivalOrder
  5109. },
  5110. Ona: function(a) {
  5111. this.arrivalOrder = a
  5112. },
  5113. bz: function() {
  5114. this.lh || (this.lh = c.L.bz());
  5115. return this.lh
  5116. },
  5117. ER: function(a) {
  5118. this.lh != a && (this.Dv(), this.lh = a)
  5119. },
  5120. km: function() {
  5121. this.Dg || (this.Dg = c.L.km());
  5122. return this.Dg
  5123. },
  5124. aS: function(a) {
  5125. this.Dg != a && (this.MA(), this.Dg = a)
  5126. },
  5127. ffa: function() {
  5128. var a = c.rect(0, 0, this.S.width, this.S.height);
  5129. return c.JX(a, this.Ve())
  5130. },
  5131. uf: function() {
  5132. this.Dv();
  5133. this.MA();
  5134. c.wa.rR(this);
  5135. this.mh(this.u, c.t.og.uf)
  5136. },
  5137. cg: function(a) {
  5138. var b = this.u;
  5139. if (null != b) for (var d = 0; d < b.length; d++) {
  5140. var e = b[d];
  5141. if (e && e.tag == a) return e
  5142. }
  5143. return null
  5144. },
  5145. mfa: function(a) {
  5146. if (!a) return c.log("Invalid name"), null;
  5147. for (var b = this.u, d = 0, e = b.length; d < e; d++) if (b[d].yt == a) return b[d];
  5148. return null
  5149. },
  5150. M: function(a, b, d) {
  5151. c.assert(a, c.f.QU);
  5152. a === this ? c.log(c.f.OU) : null !== a.gc ? c.log(c.f.PU) : (b = null != b ? b : a.Jb, a.tag = null != d ? d : a.tag, this.LZ(a, b), a.gc = this, this.bk && (a.bk = this.bk), this.ii && (a.ca(), this.$D && a.Ki()))
  5153. },
  5154. vm: function(a) {
  5155. this.gc && (null == a && (a = !0), this.gc.removeChild(this, a))
  5156. },
  5157. jma: function(a) {
  5158. c.log(c.f.ZU);
  5159. this.vm(a)
  5160. },
  5161. removeChild: function(a, b) {
  5162. 0 !== this.u.length && (null == b && (b = !0), -1 < this.u.indexOf(a) && this.AY(a, b), this.Sa())
  5163. },
  5164. ZH: function(a, b) {
  5165. a === c.AJ && c.log(c.f.XU);
  5166. var d = this.cg(a);
  5167. null == d ? c.log(c.f.YU, a) : this.removeChild(d, b)
  5168. },
  5169. bma: function(a) {
  5170. c.log(c.f.WU);
  5171. this.Sg(a)
  5172. },
  5173. Sg: function(a) {
  5174. var b = this.u;
  5175. if (null != b) {
  5176. null == a && (a = !0);
  5177. for (var d = 0; d < b.length; d++) {
  5178. var e = b[d];
  5179. e && (this.ii && (e.Og(), e.xb()), a && e.uf(), e.parent = null)
  5180. }
  5181. this.u.length = 0
  5182. }
  5183. },
  5184. AY: function(a, b) {
  5185. this.ii && (a.Og(), a.xb());
  5186. b && a.uf();
  5187. a.parent = null;
  5188. c.tf(this.u, a)
  5189. },
  5190. LZ: function(a, b) {
  5191. this.se = !0;
  5192. this.u.push(a);
  5193. a.ky(b)
  5194. },
  5195. ar: function(a, b) {
  5196. c.assert(a, c.f.$U);
  5197. this.se = !0;
  5198. a.arrivalOrder = c.yR;
  5199. c.yR++;
  5200. a.ky(b);
  5201. this.Sa()
  5202. },
  5203. jd: function() {
  5204. if (this.se) {
  5205. var a = this.u,
  5206. b = a.length,
  5207. d, e, f;
  5208. for (d = 1; d < b; d++) {
  5209. f = a[d];
  5210. for (e = d - 1; 0 <= e;) {
  5211. if (f.Jb < a[e].Jb) a[e + 1] = a[e];
  5212. else if (f.Jb === a[e].Jb && f.arrivalOrder < a[e].arrivalOrder) a[e + 1] = a[e];
  5213. else break;
  5214. e--
  5215. }
  5216. a[e + 1] = f
  5217. }
  5218. this.se = !1
  5219. }
  5220. },
  5221. Y: function() {},
  5222. KA: function() {
  5223. null != this.gc && (this.gc.KA(), this.gc.transform())
  5224. },
  5225. ca: function() {
  5226. this.$D = !1;
  5227. this.ii = !0;
  5228. this.mh(this.u, c.t.og.ca);
  5229. this.br()
  5230. },
  5231. Ki: function() {
  5232. this.$D = !0;
  5233. this.mh(this.u, c.t.og.Ki)
  5234. },
  5235. Og: function() {
  5236. this.mh(this.u, c.t.og.Og)
  5237. },
  5238. xb: function() {
  5239. this.ii = !1;
  5240. this.pause();
  5241. this.mh(this.u, c.t.og.xb);
  5242. this.$i && this.$i.K6()
  5243. },
  5244. yb: function(a) {
  5245. c.assert(a, c.f.bV);
  5246. this.actionManager.Z0(a, this, !this.ii);
  5247. return a
  5248. },
  5249. Dv: function() {
  5250. this.actionManager && this.actionManager.pR(this)
  5251. },
  5252. F8: function(a) {
  5253. this.actionManager.oR(a)
  5254. },
  5255. G8: function(a) {
  5256. a === c.zo ? c.log(c.f.fV) : this.actionManager.J6(a, this)
  5257. },
  5258. NG: function(a) {
  5259. return a === c.zo ? (c.log(c.f.RU), null) : this.actionManager.NG(a, this)
  5260. },
  5261. rga: function() {
  5262. return this.actionManager.O5(this)
  5263. },
  5264. zR: function() {
  5265. this.AR(0)
  5266. },
  5267. AR: function(a) {
  5268. this.scheduler.fI(this, a, !this.ii)
  5269. },
  5270. HS: function() {
  5271. this.scheduler.Lv(this)
  5272. },
  5273. po: function(a, b, d, e) {
  5274. b = b || 0;
  5275. c.assert(a, c.f.cV);
  5276. c.assert(0 <= b, c.f.dV);
  5277. d = null == d ? c.js : d;
  5278. this.scheduler.f7(this, a, b, d, e || 0, !this.ii)
  5279. },
  5280. Fma: function(a, b) {
  5281. this.po(a, 0, 0, b)
  5282. },
  5283. Kv: function(a) {
  5284. a && this.scheduler.GS(this, a)
  5285. },
  5286. MA: function() {
  5287. this.scheduler.FS(this)
  5288. },
  5289. uma: function() {
  5290. c.log(c.f.aV);
  5291. this.br()
  5292. },
  5293. br: function() {
  5294. this.scheduler.Uk(this);
  5295. this.actionManager && this.actionManager.Uk(this);
  5296. c.wa.Uk(this)
  5297. },
  5298. yla: function() {
  5299. c.log(c.f.VU);
  5300. this.pause()
  5301. },
  5302. pause: function() {
  5303. this.scheduler.Xq(this);
  5304. this.actionManager && this.actionManager.Xq(this);
  5305. c.wa.Xq(this)
  5306. },
  5307. Mma: function(a) {
  5308. this.Rw = a;
  5309. this.Js = this.sj = !0
  5310. },
  5311. vla: function() {
  5312. this.Hx && (this.FM = c.VI(this.Ve()), this.Hx = !1);
  5313. return this.FM
  5314. },
  5315. Tq: function() {
  5316. for (var a = this.Ve(), b = this.gc; null != b; b = b.parent) a = c.Dm(a, b.Ve());
  5317. return a
  5318. },
  5319. r9: function() {
  5320. return c.VI(this.Tq())
  5321. },
  5322. CG: function(a) {
  5323. return c.UJ(a, this.r9())
  5324. },
  5325. hm: function(a) {
  5326. a = a || c.d(0, 0);
  5327. return c.UJ(a, this.Tq())
  5328. },
  5329. d2: function(a) {
  5330. return c.de(this.CG(a), this.lb)
  5331. },
  5332. Nn: function(a) {
  5333. a = a || c.d(0, 0);
  5334. a = c.Ij(a, this.lb);
  5335. return this.hm(a)
  5336. },
  5337. Fba: function(a) {
  5338. a = this.hm(a);
  5339. return c.L.e2(a)
  5340. },
  5341. qda: function(a) {
  5342. return this.CG(a.Aq())
  5343. },
  5344. rda: function(a) {
  5345. a = a.Aq();
  5346. a = c.L.c2(a);
  5347. return this.d2(a)
  5348. },
  5349. update: function(a) {
  5350. this.$i && !this.$i.eia() && this.$i.U(a)
  5351. },
  5352. Ff: function() {
  5353. this.mh(this.u, c.t.og.Ff)
  5354. },
  5355. nA: function() {},
  5356. Lj: function() {},
  5357. g3: function(a) {
  5358. return this.$i.g3(a)
  5359. },
  5360. rca: function(a) {
  5361. this.$i.add(a)
  5362. },
  5363. hma: function(a) {
  5364. return this.$i.remove(a)
  5365. },
  5366. cma: function() {
  5367. this.$i.K6()
  5368. },
  5369. grid: null,
  5370. ctor: null,
  5371. U: null,
  5372. transform: null,
  5373. Ve: null,
  5374. ji: function() {
  5375. if (!1 === this.nh) {
  5376. this.nh = !0;
  5377. var a = this.bk;
  5378. a && a != this && a.ji()
  5379. }
  5380. },
  5381. ZE: function(a) {
  5382. if (this.bk != a) {
  5383. this.bk = a;
  5384. for (var b = this.u, d = 0, e = b.length; d < e; d++) b[d].ZE(a)
  5385. }
  5386. },
  5387. Yn: function() {
  5388. this.ck || (this.ck = new c.Dr);
  5389. return this.ck
  5390. },
  5391. Fu: function() {
  5392. return this.grid
  5393. },
  5394. E7: function(a) {
  5395. this.grid = a
  5396. },
  5397. ZG: function() {
  5398. return this.Sb
  5399. },
  5400. uI: function(a) {
  5401. this.Sb = a
  5402. },
  5403. r3: function() {
  5404. return this.OD
  5405. },
  5406. D7: function(a) {
  5407. this.OD = a
  5408. },
  5409. b3: function() {
  5410. var a = c.rect(0, 0, this.S.width, this.S.height),
  5411. b = this.Tq(),
  5412. a = c.SB(a, this.Tq());
  5413. if (!this.u) return a;
  5414. for (var d = this.u, e = 0; e < d.length; e++) {
  5415. var f = d[e];
  5416. f && f.Ja && (f = f.it(b)) && (a = c.jA(a, f))
  5417. }
  5418. return a
  5419. },
  5420. it: function(a) {
  5421. var b = c.rect(0, 0, this.S.width, this.S.height);
  5422. a = null == a ? this.Ve() : c.Dm(this.Ve(), a);
  5423. b = c.SB(b, a);
  5424. if (!this.u) return b;
  5425. for (var d = this.u, e = 0; e < d.length; e++) {
  5426. var f = d[e];
  5427. f && f.Ja && (f = f.it(a)) && (b = c.jA(b, f))
  5428. }
  5429. return b
  5430. },
  5431. d_: function() {
  5432. if (this.sj) {
  5433. var a = this.va.x,
  5434. b = this.va.y,
  5435. d = this.lb.x,
  5436. e = -d,
  5437. f = this.lb.y,
  5438. g = -f,
  5439. h = this.ma,
  5440. k = this.Na;
  5441. this.$h && (a += d, b += f);
  5442. var m = 1,
  5443. n = 0,
  5444. q = 1,
  5445. r = 0;
  5446. if (0 !== this.sk || 0 !== this.rn) m = Math.cos(-this.Sl), n = Math.sin(-this.Sl), q = Math.cos(-this.hy), r = Math.sin(-this.hy);
  5447. var t = this.ki || this.li;
  5448. t || 0 === d && 0 === f || (a += q * e * h + -n * g * k, b += r * e * h + m * g * k);
  5449. var s = this.pi;
  5450. s.a = q * h;
  5451. s.b = r * h;
  5452. s.C = -n * k;
  5453. s.D = m * k;
  5454. s.xa = a;
  5455. s.ya = b;
  5456. t && (s = c.Dm({
  5457. a: 1,
  5458. b: Math.tan(c.ag(this.li)),
  5459. C: Math.tan(c.ag(this.ki)),
  5460. D: 1,
  5461. xa: 0,
  5462. ya: 0
  5463. }, s), 0 !== d || 0 !== f) && (s = c.cT(s, e, g));
  5464. this.Js && (s = c.Dm(s, this.Rw), this.Js = !1);
  5465. this.pi = s;
  5466. this.sj = !1
  5467. }
  5468. return this.pi
  5469. }
  5470. });
  5471. c.t.create = function() {
  5472. return new c.t
  5473. };
  5474. c.t.og = {
  5475. ca: 1,
  5476. xb: 2,
  5477. uf: 3,
  5478. Ki: 4,
  5479. Ff: 5,
  5480. Og: 6,
  5481. jd: 7
  5482. };
  5483. c.F === c.Ha ? (p = c.t.prototype, p.ctor = function() {
  5484. this.SD()
  5485. }, p.Sa = function() {
  5486. this.ji();
  5487. !1 === this.sj && (this.sj = this.Hx = !0)
  5488. }, p.U = function(a) {
  5489. if (this.Ja) {
  5490. a = a || c.m;
  5491. var b, d = this.u,
  5492. e;
  5493. a.save();
  5494. this.transform(a);
  5495. var f = d.length;
  5496. if (0 < f) {
  5497. this.jd();
  5498. for (b = 0; b < f; b++) if (e = d[b], 0 > e.Jb) e.U(a);
  5499. else break;
  5500. for (this.Y(a); b < f; b++) d[b].U(a)
  5501. } else this.Y(a);
  5502. this.nh = !1;
  5503. this.arrivalOrder = 0;
  5504. a.restore()
  5505. }
  5506. }, p.transform = function(a) {
  5507. a = a || c.m;
  5508. var b = c.view,
  5509. d = this.Ve();
  5510. a.transform(d.a, d.C, d.b, d.D, d.xa * b.ma, -d.ya * b.Na)
  5511. }, p.Ve = function() {
  5512. if (this.sj) {
  5513. var a = this.pi;
  5514. a.xa = this.va.x;
  5515. a.ya = this.va.y;
  5516. var b = 1,
  5517. d = 0;
  5518. this.sk && (b = Math.cos(this.Sl), d = Math.sin(this.Sl));
  5519. a.a = a.D = b;
  5520. a.b = -d;
  5521. a.C = d;
  5522. var e = this.ma,
  5523. f = this.Na,
  5524. g = this.lb.x,
  5525. h = this.lb.y,
  5526. k = 1E-6 > e && -1E-6 < e ? 1E-6 : e,
  5527. m = 1E-6 > f && -1E-6 < f ? 1E-6 : f;
  5528. if (this.ki || this.li) {
  5529. var n = Math.tan(-this.ki * Math.PI / 180),
  5530. q = Math.tan(-this.li * Math.PI / 180);
  5531. Infinity === n && (n = 99999999);
  5532. Infinity === q && (q = 99999999);
  5533. var r = h * n * k,
  5534. t = g * q * m;
  5535. a.a = b + -d * q;
  5536. a.b = b * n + -d;
  5537. a.C = d + b * q;
  5538. a.D = d * n + b;
  5539. a.xa += b * r + -d * t;
  5540. a.ya += d * r + b * t
  5541. }
  5542. if (1 !== e || 1 !== f) a.a *= k, a.C *= k, a.b *= m, a.D *= m;
  5543. a.xa += b * -g * k + -d * h * m;
  5544. a.ya -= d * -g * k + b * h * m;
  5545. this.$h && (a.xa += g, a.ya += h);
  5546. this.Js && (this.pi = c.Dm(a, this.Rw), this.Js = !1);
  5547. this.sj = !1
  5548. }
  5549. return this.pi
  5550. }, p = null) : (c.assert("function" === typeof c.H.CC, c.f.cd, "BaseNodesWebGL.js"), c.H.CC(), delete c.H.CC);
  5551. c.assert("function" === typeof c.H.HB, c.f.cd, "BaseNodesPropertyDefine.js");
  5552. c.H.HB();
  5553. delete c.H.HB;
  5554. c.la = c.t.extend({
  5555. Ib: !0,
  5556. Ia: 255,
  5557. re: 255,
  5558. Ma: null,
  5559. pc: null,
  5560. Ud: !1,
  5561. De: !1,
  5562. ctor: function() {
  5563. c.t.prototype.ctor.call(this);
  5564. this.re = this.Ia = 255;
  5565. this.Ma = c.color(255, 255, 255, 255);
  5566. this.pc = c.color(255, 255, 255, 255);
  5567. this.De = this.Ud = !1
  5568. },
  5569. sc: function() {},
  5570. yf: function() {
  5571. return this.re
  5572. },
  5573. sP: function() {
  5574. return this.Ia
  5575. },
  5576. Fa: function(a) {
  5577. this.Ia = this.re = a;
  5578. var b = 255,
  5579. d = this.gc;
  5580. d && d.Ib && d.cascadeOpacity && (b = d.Ia);
  5581. this.Zb(b);
  5582. this.Ma.a = this.pc.a = a
  5583. },
  5584. Zb: function(a) {
  5585. this.Ia = this.re * a / 255;
  5586. if (this.De) {
  5587. a = this.u;
  5588. for (var b = 0; b < a.length; b++) {
  5589. var d = a[b];
  5590. d && d.Ib && d.Zb(this.Ia)
  5591. }
  5592. }
  5593. },
  5594. Pu: function() {
  5595. return this.De
  5596. },
  5597. er: function(a) {
  5598. this.De !== a && ((this.De = a) ? this.bt() : this.oD())
  5599. },
  5600. bt: function() {
  5601. var a = 255,
  5602. b = this.gc;
  5603. b && b.Ib && b.cascadeOpacity && (a = b.Ia);
  5604. this.Zb(a)
  5605. },
  5606. oD: function() {
  5607. this.Ia = this.re;
  5608. for (var a = this.u, b = 0; b < a.length; b++) {
  5609. var d = a[b];
  5610. d && d.Ib && d.Zb(255)
  5611. }
  5612. },
  5613. xf: function() {
  5614. var a = this.pc;
  5615. return c.color(a.r, a.g, a.b, a.a)
  5616. },
  5617. Zn: function() {
  5618. var a = this.Ma;
  5619. return c.color(a.r, a.g, a.b, a.a)
  5620. },
  5621. Va: function(a) {
  5622. var b = this.Ma,
  5623. d = this.pc;
  5624. b.r = d.r = a.r;
  5625. b.g = d.g = a.g;
  5626. b.b = d.b = a.b;
  5627. b = (b = this.gc) && b.Ib && b.cascadeColor ? b.Zn() : c.color.WHITE;
  5628. this.bc(b);
  5629. void 0 === a.a || a.mu || this.Fa(a.a)
  5630. },
  5631. bc: function(a) {
  5632. var b = this.Ma,
  5633. d = this.pc;
  5634. b.r = 0 | d.r * a.r / 255;
  5635. b.g = 0 | d.g * a.g / 255;
  5636. b.b = 0 | d.b * a.b / 255;
  5637. if (this.Ud) for (a = this.u, d = 0; d < a.length; d++) {
  5638. var e = a[d];
  5639. e && e.Ib && e.bc(b)
  5640. }
  5641. },
  5642. Ou: function() {
  5643. return this.Ud
  5644. },
  5645. dr: function(a) {
  5646. this.Ud !== a && ((this.Ud = a) ? this.at() : this.nD())
  5647. },
  5648. at: function() {
  5649. var a;
  5650. a = (a = this.gc) && a.Ib && a.cascadeColor ? a.Zn() : c.color.WHITE;
  5651. this.bc(a)
  5652. },
  5653. nD: function() {
  5654. var a = this.Ma,
  5655. b = this.pc;
  5656. a.r = b.r;
  5657. a.g = b.g;
  5658. a.b = b.b;
  5659. for (var a = this.u, b = c.color.WHITE, d = 0; d < a.length; d++) {
  5660. var e = a[d];
  5661. e && e.Ib && e.bc(b)
  5662. }
  5663. },
  5664. M: function(a, b, d) {
  5665. c.t.prototype.M.call(this, a, b, d);
  5666. this.Ud && this.at();
  5667. this.De && this.bt()
  5668. },
  5669. ee: function() {},
  5670. Ue: function() {
  5671. return !1
  5672. }
  5673. });
  5674. c.la.create = function() {
  5675. var a = new c.la;
  5676. a.K();
  5677. return a
  5678. };
  5679. c.assert("function" === typeof c.H.IB, c.f.cd, "BaseNodesPropertyDefine.js");
  5680. c.H.IB();
  5681. delete c.H.IB;
  5682. c.t.paa = 0;
  5683. c.t.raa = 1;
  5684. c.t.qaa = 2;
  5685. c.t.saa = 3;
  5686. c.t.oaa = 4;
  5687. c.Sj = c.la.extend({
  5688. textureAtlas: null,
  5689. quadsToDraw: 0,
  5690. Ib: !0,
  5691. Ip: 0,
  5692. NM: 0,
  5693. ej: 0,
  5694. bi: 0,
  5695. Wm: null,
  5696. Xa: !1,
  5697. q: null,
  5698. Ex: !1,
  5699. ob: "AtlasNode",
  5700. ctor: function(a, b, d, e) {
  5701. c.la.prototype.ctor.call(this);
  5702. this.Wm = c.color.WHITE;
  5703. this.q = {
  5704. src: c.vc,
  5705. W: c.uc
  5706. };
  5707. this.Ex = !1;
  5708. void 0 !== e && this.C4(a, b, d, e)
  5709. },
  5710. rr: function() {
  5711. c.log(c.f.dT)
  5712. },
  5713. xf: function() {
  5714. return this.Xa ? this.Wm : c.la.prototype.xf.call(this)
  5715. },
  5716. ee: function(a) {
  5717. var b = this.color;
  5718. this.Xa = a;
  5719. this.color = b
  5720. },
  5721. Ue: function() {
  5722. return this.Xa
  5723. },
  5724. xi: function() {
  5725. return this.q
  5726. },
  5727. zf: function(a, b) {
  5728. this.q = void 0 === b ? a : {
  5729. src: a,
  5730. W: b
  5731. }
  5732. },
  5733. xI: function(a) {
  5734. this.textureAtlas = a
  5735. },
  5736. bH: function() {
  5737. return this.textureAtlas
  5738. },
  5739. Nga: function() {
  5740. return this.quadsToDraw
  5741. },
  5742. $na: function(a) {
  5743. this.quadsToDraw = a
  5744. },
  5745. bm: null,
  5746. Je: null,
  5747. KF: null,
  5748. Ss: null,
  5749. C4: function(a, b, d, e) {
  5750. if (!a) throw "cc.AtlasNode.initWithTileFile(): title should not be null";
  5751. a = c.Ka.Qc(a);
  5752. return this.pa(a, b, d, e)
  5753. },
  5754. pa: null,
  5755. UD: function(a, b, d, e) {
  5756. this.ej = b;
  5757. this.bi = d;
  5758. this.Xa = !0;
  5759. this.Je = a;
  5760. if (!this.Je) return c.log(c.f.WI), !1;
  5761. this.bm = this.Je;
  5762. this.Zw();
  5763. this.quadsToDraw = e;
  5764. return !0
  5765. },
  5766. VD: function(a, b, d, e) {
  5767. this.ej = b;
  5768. this.bi = d;
  5769. this.Wm = c.color.WHITE;
  5770. this.Xa = !0;
  5771. this.q.src = c.vc;
  5772. this.q.W = c.uc;
  5773. b = this.pc;
  5774. this.Ss = new Float32Array([b.r / 255, b.g / 255, b.b / 255, this.re / 255]);
  5775. this.textureAtlas = new c.ml;
  5776. this.textureAtlas.pa(a, e);
  5777. if (!this.textureAtlas) return c.log(c.f.WI), !1;
  5778. this.Gg();
  5779. this.fO();
  5780. this.Zw();
  5781. this.quadsToDraw = e;
  5782. this.shaderProgram = c.ge.Dc(c.XB);
  5783. this.KF = c.m.getUniformLocation(this.shaderProgram.$n(), "u_color");
  5784. return !0
  5785. },
  5786. Y: null,
  5787. fk: function(a) {
  5788. a = a || c.m;
  5789. c.av(this);
  5790. c.Ai(this.q.src, this.q.W);
  5791. this.KF && this.Ss && (a.uniform4fv(this.KF, this.Ss), this.textureAtlas.bP(this.quadsToDraw))
  5792. },
  5793. Va: null,
  5794. U_: function(a) {
  5795. var b = this.pc;
  5796. if (b.r != a.r || b.g != a.g || b.b != a.b) {
  5797. b = c.color(a.r, a.g, a.b);
  5798. this.Wm = a;
  5799. if (this.Xa) {
  5800. var d = this.Ia;
  5801. b.r = b.r * d / 255;
  5802. b.g = b.g * d / 255;
  5803. b.b = b.b * d / 255
  5804. }
  5805. c.la.prototype.Va.call(this, a);
  5806. this.texture && (a = this.Je.Ob) && (b = c.Ka.iz(a)) && (d = c.rect(0, 0, a.width, a.height), a = c.wq(a, b, this.pc, d), b = new c.ia, b.Ld(a), b.$b(), this.texture = b)
  5807. }
  5808. },
  5809. V_: function(a) {
  5810. var b = c.color(a.r, a.g, a.b);
  5811. this.Wm = a;
  5812. var d = this.Ia;
  5813. this.Xa && (b.r = b.r * d / 255, b.g = b.g * d / 255, b.b = b.b * d / 255);
  5814. c.la.prototype.Va.call(this, a);
  5815. a = this.Ma;
  5816. this.Ss = new Float32Array([a.r / 255, a.g / 255, a.b / 255, d / 255])
  5817. },
  5818. Fa: function() {},
  5819. eF: function(a) {
  5820. c.la.prototype.Fa.call(this, a);
  5821. this.Xa && (this.color = this.Wm)
  5822. },
  5823. fF: function(a) {
  5824. c.la.prototype.Fa.call(this, a);
  5825. this.Xa ? this.color = this.Wm : (a = this.Ma, this.Ss = new Float32Array([a.r / 255, a.g / 255, a.b / 255, this.Ia / 255]))
  5826. },
  5827. Ua: null,
  5828. jt: function() {
  5829. return this.bm
  5830. },
  5831. ND: function() {
  5832. return this.textureAtlas.texture
  5833. },
  5834. zb: null,
  5835. jF: function(a) {
  5836. this.bm = a
  5837. },
  5838. kF: function(a) {
  5839. this.textureAtlas.texture = a;
  5840. this.Gg();
  5841. this.fO()
  5842. },
  5843. Zw: null,
  5844. dY: function() {
  5845. var a = this.texture.ve();
  5846. this.NM = 0 | a.height / this.bi;
  5847. this.Ip = 0 | a.width / this.ej
  5848. },
  5849. eY: function() {
  5850. var a = this.texture,
  5851. b = a.ve();
  5852. this.Ex && (b = a.S);
  5853. this.NM = 0 | b.height / this.bi;
  5854. this.Ip = 0 | b.width / this.ej
  5855. },
  5856. Gg: function() {
  5857. this.textureAtlas.texture.xj() || (this.q.src = c.SRC_ALPHA, this.q.W = c.ONE_MINUS_SRC_ALPHA)
  5858. },
  5859. fO: function() {
  5860. this.Xa = this.textureAtlas.texture.xj()
  5861. },
  5862. bF: function(a) {
  5863. this.Ex = a
  5864. }
  5865. });
  5866. p = c.Sj.prototype;
  5867. c.F === c.ea ? (p.pa = p.VD, p.Y = p.fk, p.Va = p.V_, p.Fa = p.fF, p.Ua = p.ND, p.zb = p.kF, p.Zw = p.eY) : (p.pa = p.UD, p.Y = c.t.prototype.Y, p.Va = p.U_, p.Fa = p.eF, p.Ua = p.jt, p.zb = p.jF, p.Zw = p.dY);
  5868. c.i(p, "opacity", p.yf, p.Fa);
  5869. c.i(p, "color", p.xf, p.Va);
  5870. c.i(p, "texture", p.Ua, p.zb);
  5871. c.Sj.create = function(a, b, d, e) {
  5872. return new c.Sj(a, b, d, e)
  5873. };
  5874. c.H.IC = function() {
  5875. c.ia = c.qa.extend({
  5876. Zba: !0,
  5877. kj: null,
  5878. qk: 0,
  5879. pk: 0,
  5880. yt: "",
  5881. S: null,
  5882. Gj: 0,
  5883. Hj: 0,
  5884. Dx: !1,
  5885. Ap: !1,
  5886. shaderProgram: null,
  5887. Kc: !1,
  5888. Ob: null,
  5889. te: null,
  5890. url: null,
  5891. pb: null,
  5892. ctor: function() {
  5893. this.S = c.size(0, 0);
  5894. this.kj = c.ia.TO
  5895. },
  5896. YH: function() {
  5897. this.te && c.m.deleteTexture(this.te);
  5898. c.X.Lj(this.url)
  5899. },
  5900. AP: function() {
  5901. return this.kj
  5902. },
  5903. CP: function() {
  5904. return this.qk
  5905. },
  5906. BP: function() {
  5907. return this.pk
  5908. },
  5909. getName: function() {
  5910. return this.te
  5911. },
  5912. ve: function() {
  5913. return c.size(this.S.width / c.wb(), this.S.height / c.wb())
  5914. },
  5915. Wh: function() {
  5916. return this.S.width / c.wb()
  5917. },
  5918. Jl: function() {
  5919. return this.S.height / c.wb()
  5920. },
  5921. h3: function() {
  5922. return this.S
  5923. },
  5924. F3: function() {
  5925. return this.Gj
  5926. },
  5927. I7: function(a) {
  5928. this.Gj = a
  5929. },
  5930. G3: function() {
  5931. return this.Hj
  5932. },
  5933. J7: function(a) {
  5934. this.Hj = a
  5935. },
  5936. ZG: function() {
  5937. return this.shaderProgram
  5938. },
  5939. uI: function(a) {
  5940. this.shaderProgram = a
  5941. },
  5942. xj: function() {
  5943. return this.Dx
  5944. },
  5945. o4: function() {
  5946. return this.Ap
  5947. },
  5948. description: function() {
  5949. return "<cc.Texture2D | Name = " + this.yt + " | Dimensions = " + this.qk + " x " + this.pk + " | Coordinates = (" + this.Gj + ", " + this.Hj + ")>"
  5950. },
  5951. I6: function() {},
  5952. Y4: function(a) {
  5953. return a
  5954. },
  5955. Mu: function(a, b, d, e, f) {
  5956. var g = c.ia,
  5957. h = c.m,
  5958. k = h.RGBA,
  5959. m = h.UNSIGNED_BYTE,
  5960. n = d * c.ia.ZK[b] / 8;
  5961. 0 === n % 8 ? h.pixelStorei(h.UNPACK_ALIGNMENT, 8) : 0 === n % 4 ? h.pixelStorei(h.UNPACK_ALIGNMENT, 4) : 0 === n % 2 ? h.pixelStorei(h.UNPACK_ALIGNMENT, 2) : h.pixelStorei(h.UNPACK_ALIGNMENT, 1);
  5962. this.te = h.createTexture();
  5963. c.Te(this);
  5964. h.texParameteri(h.TEXTURE_2D, h.TEXTURE_MIN_FILTER, h.LINEAR);
  5965. h.texParameteri(h.TEXTURE_2D, h.TEXTURE_MAG_FILTER, h.LINEAR);
  5966. h.texParameteri(h.TEXTURE_2D, h.TEXTURE_WRAP_S, h.CLAMP_TO_EDGE);
  5967. h.texParameteri(h.TEXTURE_2D, h.TEXTURE_WRAP_T, h.CLAMP_TO_EDGE);
  5968. switch (b) {
  5969. case g.Yj:
  5970. k = h.RGBA;
  5971. break;
  5972. case g.gs:
  5973. k = h.RGB;
  5974. break;
  5975. case g.qw:
  5976. m = h.UNSIGNED_SHORT_4_4_4_4;
  5977. break;
  5978. case g.pw:
  5979. m = h.UNSIGNED_SHORT_5_5_5_1;
  5980. break;
  5981. case g.fs:
  5982. m = h.UNSIGNED_SHORT_5_6_5;
  5983. break;
  5984. case g.BB:
  5985. k = h.LUMINANCE_ALPHA;
  5986. break;
  5987. case g.es:
  5988. k = h.ALPHA;
  5989. break;
  5990. case g.CB:
  5991. k = h.LUMINANCE;
  5992. break;
  5993. default:
  5994. c.assert(0, c.f.RW)
  5995. }
  5996. h.texImage2D(h.TEXTURE_2D, 0, k, d, e, 0, k, m, a);
  5997. this.S.width = f.width;
  5998. this.S.height = f.height;
  5999. this.qk = d;
  6000. this.pk = e;
  6001. this.kj = b;
  6002. this.Gj = f.width / d;
  6003. this.Hj = f.height / e;
  6004. this.Ap = this.Dx = !1;
  6005. this.shaderProgram = c.ge.Dc(c.ns);
  6006. return this.Kc = !0
  6007. },
  6008. s2: function(a) {
  6009. var b = [0, this.Hj, this.Gj, this.Hj, 0, 0, this.Gj, 0],
  6010. d = this.qk * this.Gj,
  6011. e = this.pk * this.Hj;
  6012. 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];
  6013. c.Xc(c.ke | c.Ro);
  6014. this.Sb.$c();
  6015. this.Sb.zv();
  6016. c.Te(this);
  6017. d = c.m;
  6018. d.vertexAttribPointer(c.Ab, 2, d.FLOAT, !1, 0, a);
  6019. d.vertexAttribPointer(c.Sd, 2, d.FLOAT, !1, 0, b);
  6020. d.drawArrays(d.TRIANGLE_STRIP, 0, 4)
  6021. },
  6022. v2: function(a) {
  6023. var b = [0, this.Hj, this.Gj, this.Hj, 0, 0, this.Gj, 0];
  6024. 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];
  6025. c.Xc(c.ke | c.Ro);
  6026. this.Sb.$c();
  6027. this.Sb.zv();
  6028. c.Te(this);
  6029. var d = c.m;
  6030. d.vertexAttribPointer(c.Ab, 2, d.FLOAT, !1, 0, a);
  6031. d.vertexAttribPointer(c.Sd, 2, d.FLOAT, !1, 0, b);
  6032. d.drawArrays(d.TRIANGLE_STRIP, 0, 4)
  6033. },
  6034. kQ: function(a) {
  6035. if (null == a) return c.log(c.f.UW), !1;
  6036. var b = a.i4(),
  6037. d = a.t3(),
  6038. e = c.nq.wt;
  6039. if (b > e || d > e) return c.log(c.f.VW, b, d, e, e), !1;
  6040. this.Kc = !0;
  6041. return this.EZ(a, b, d)
  6042. },
  6043. Ld: function(a) {
  6044. a && (this.te = c.m.createTexture(), this.Ob = a)
  6045. },
  6046. v3: function() {
  6047. return this.Ob
  6048. },
  6049. P4: function() {
  6050. return this.Kc
  6051. },
  6052. $b: function() {
  6053. if (c.fy) {
  6054. if (!this.Ob) {
  6055. var a = c.X.be(this.url);
  6056. if (!a) return;
  6057. this.Ld(a)
  6058. }
  6059. this.Ob.width && this.Ob.height && (this.Kc = !0, a = c.m, c.Te(this), a.pixelStorei(a.UNPACK_ALIGNMENT, 4), a.texImage2D(a.TEXTURE_2D, 0, a.RGBA, a.RGBA, a.UNSIGNED_BYTE, this.Ob), a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MIN_FILTER, a.LINEAR), a.texParameteri(a.TEXTURE_2D, 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 = c.ge.Dc(c.ns), c.Te(null), a = this.Ob.height, this.qk = this.S.width = this.Ob.width, this.pk = this.S.height = a, this.kj = c.ia.Yj, this.Hj = this.Gj = 1, this.Ap = this.Dx = !1, this.me())
  6060. }
  6061. },
  6062. Md: function() {
  6063. c.log(c.f.$W);
  6064. return null
  6065. },
  6066. w4: function() {
  6067. c.log(c.f.TW);
  6068. return !1
  6069. },
  6070. z4: function() {
  6071. c.log(c.f.XW);
  6072. return !1
  6073. },
  6074. A4: function() {
  6075. c.log(c.f.ZW);
  6076. return !1
  6077. },
  6078. g8: function(a) {
  6079. var b = c.m;
  6080. c.assert(this.qk == c.fl(this.qk) && this.pk == c.fl(this.pk) || a.s9 == b.CLAMP_TO_EDGE && a.t9 == b.CLAMP_TO_EDGE, "WebGLRenderingContext.CLAMP_TO_EDGE should be used in NPOT textures");
  6081. c.Te(this);
  6082. b.texParameteri(b.TEXTURE_2D, b.TEXTURE_MIN_FILTER, a.xka);
  6083. b.texParameteri(b.TEXTURE_2D, b.TEXTURE_MAG_FILTER, a.uka);
  6084. b.texParameteri(b.TEXTURE_2D, b.TEXTURE_WRAP_S, a.s9);
  6085. b.texParameteri(b.TEXTURE_2D, b.TEXTURE_WRAP_T, a.t9)
  6086. },
  6087. k7: function() {
  6088. var a = c.m;
  6089. c.Te(this);
  6090. this.Ap ? a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MIN_FILTER, a.LINEAR_MIPMAP_NEAREST) : a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MIN_FILTER, a.LINEAR);
  6091. a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MAG_FILTER, a.NEAREST)
  6092. },
  6093. hI: function() {
  6094. var a = c.m;
  6095. c.Te(this);
  6096. this.Ap ? a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MIN_FILTER, a.NEAREST_MIPMAP_NEAREST) : a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MIN_FILTER, a.NEAREST);
  6097. a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MAG_FILTER, a.NEAREST)
  6098. },
  6099. generateMipmap: function() {
  6100. c.assert(this.qk == c.fl(this.qk) && this.pk == c.fl(this.pk), "Mimpap texture only works in POT textures");
  6101. c.Te(this);
  6102. c.m.generateMipmap(c.m.TEXTURE_2D);
  6103. this.Ap = !0
  6104. },
  6105. K8: function() {
  6106. return c.ia.IX[this.kj]
  6107. },
  6108. H1: function(a) {
  6109. a = a || this.kj;
  6110. var b = c.ia.ZK[a];
  6111. if (null != b) return b;
  6112. c.log(c.f.QW, a);
  6113. return -1
  6114. },
  6115. EZ: function(a, b, d) {
  6116. var e = c.ia,
  6117. f = a.getData(),
  6118. g = null,
  6119. g = null,
  6120. h = a.Oha(),
  6121. k = c.size(a.i4(), a.t3()),
  6122. m = e.TO,
  6123. n = a.efa();
  6124. h || (8 <= n ? m = e.gs : (c.log(c.f.NW), m = e.fs));
  6125. var q = b * d;
  6126. if (m == e.fs) if (h) for (f = new Uint16Array(b * d), g = a.getData(), n = 0; n < q; ++n) f[n] = (g[n] >> 0 & 255) >> 3 << 11 | (g[n] >> 8 & 255) >> 2 << 5 | (g[n] >> 16 & 255) >> 3 << 0;
  6127. else for (f = new Uint16Array(b * d), g = a.getData(), n = 0; n < q; ++n) f[n] = (g[n] & 255) >> 3 << 11 | (g[n] & 255) >> 2 << 5 | (g[n] & 255) >> 3 << 0;
  6128. else if (m == e.qw) for (f = new Uint16Array(b * d), g = a.getData(), n = 0; n < q; ++n) f[n] = (g[n] >> 0 & 255) >> 4 << 12 | (g[n] >> 8 & 255) >> 4 << 8 | (g[n] >> 16 & 255) >> 4 << 4 | (g[n] >> 24 & 255) >> 4 << 0;
  6129. else if (m == e.pw) for (f = new Uint16Array(b * d), g = a.getData(), n = 0; n < q; ++n) f[n] = (g[n] >> 0 & 255) >> 3 << 11 | (g[n] >> 8 & 255) >> 3 << 6 | (g[n] >> 16 & 255) >> 3 << 1 | (g[n] >> 24 & 255) >> 7 << 0;
  6130. else if (m == e.es) for (f = new Uint8Array(b * d), g = a.getData(), n = 0; n < q; ++n) f[n] = g >> 24 & 255;
  6131. if (h && m == e.gs) for (g = a.getData(), f = new Uint8Array(b * d * 3), n = 0; n < q; ++n) f[3 * n] = g >> 0 & 255, f[3 * n + 1] = g >> 8 & 255, f[3 * n + 2] = g >> 16 & 255;
  6132. this.Mu(f, m, b, d, k);
  6133. a.getData();
  6134. this.Dx = a.lia();
  6135. return !0
  6136. },
  6137. ue: function(a, b) {
  6138. this.pb || (this.pb = []);
  6139. this.pb.push({
  6140. wi: a,
  6141. Kg: b
  6142. })
  6143. },
  6144. O6: function(a) {
  6145. if (this.pb) for (var b = this.pb, d = 0; d < b.length; d++) b[d].Kg == a && b.splice(d, 1)
  6146. },
  6147. me: function() {
  6148. if (this.pb) {
  6149. for (var a = this.pb, b = 0, d = a.length; b < d; b++) {
  6150. var e = a[b];
  6151. e.wi.call(e.Kg, this)
  6152. }
  6153. a.length = 0
  6154. }
  6155. }
  6156. })
  6157. };
  6158. c.H.JC = function() {
  6159. var a = c.ml.prototype;
  6160. a.tn = function() {
  6161. var a = c.m;
  6162. this.Jc[0] = a.createBuffer();
  6163. this.Jc[1] = a.createBuffer();
  6164. this.on = a.createBuffer();
  6165. this.Px()
  6166. };
  6167. a.Px = function() {
  6168. var a = c.m;
  6169. a.bindBuffer(a.ARRAY_BUFFER, this.on);
  6170. a.bufferData(a.ARRAY_BUFFER, this.qd, a.DYNAMIC_DRAW);
  6171. a.bindBuffer(a.ELEMENT_ARRAY_BUFFER, this.Jc[1]);
  6172. a.bufferData(a.ELEMENT_ARRAY_BUFFER, this.sb, a.STATIC_DRAW)
  6173. };
  6174. a.bP = function(a) {
  6175. var d;
  6176. d = 0;
  6177. if (0 !== a && this.texture && this.texture.Kc) {
  6178. var e = c.m;
  6179. c.Te(this.texture);
  6180. c.Xc(c.Sm);
  6181. e.bindBuffer(e.ARRAY_BUFFER, this.on);
  6182. this.dirty && e.bufferData(e.ARRAY_BUFFER, this.qd, e.DYNAMIC_DRAW);
  6183. e.vertexAttribPointer(c.Ab, 3, e.FLOAT, !1, 24, 0);
  6184. e.vertexAttribPointer(c.ef, 4, e.UNSIGNED_BYTE, !0, 24, 12);
  6185. e.vertexAttribPointer(c.Sd, 2, e.FLOAT, !1, 24, 16);
  6186. this.dirty && (this.dirty = !1);
  6187. e.bindBuffer(e.ELEMENT_ARRAY_BUFFER, this.Jc[1]);
  6188. c.eK ? e.drawElements(e.TRIANGLE_STRIP, 6 * a, e.UNSIGNED_SHORT, 6 * d * this.sb.BYTES_PER_ELEMENT) : e.drawElements(e.TRIANGLES, 6 * a, e.UNSIGNED_SHORT, 6 * d * this.sb.BYTES_PER_ELEMENT);
  6189. c.Lg++
  6190. }
  6191. }
  6192. };
  6193. c.H.KC = function() {
  6194. var a = c.Ka;
  6195. a.$b = function(a) {
  6196. var d = this.Vc;
  6197. c.fy || (d = this.vt);
  6198. var e = d[a];
  6199. e || (e = d[a] = new c.ia, e.url = a);
  6200. e.$b()
  6201. };
  6202. a.Qc = function(a, d, e) {
  6203. c.assert(a, c.f.PW);
  6204. var f = this.Vc;
  6205. c.fy || (f = this.vt);
  6206. var g = f[a] || f[c.X.Um[a]];
  6207. if (g) return d && d.call(e), g;
  6208. c.X.be(a) || (c.X.pL(a) ? c.X.load(a, function() {
  6209. d && d.call(e)
  6210. }) : c.X.Ig[a] = c.X.Qq(a, function(e, f) {
  6211. if (e) return d ? d(e) : e;
  6212. c.Ka.$b(a);
  6213. d && d(null, f)
  6214. }));
  6215. g = f[a] = new c.ia;
  6216. g.url = a;
  6217. return g
  6218. };
  6219. delete a
  6220. };
  6221. c.H.PB = function() {
  6222. var a = c.ia;
  6223. a.Aaa = function(a) {
  6224. c.wV = a
  6225. };
  6226. a.Yj = 2;
  6227. a.gs = 3;
  6228. a.fs = 4;
  6229. a.es = 5;
  6230. a.CB = 6;
  6231. a.BB = 7;
  6232. a.qw = 8;
  6233. a.pw = 7;
  6234. a.FJ = 9;
  6235. a.EJ = 10;
  6236. a.nV = a.Yj;
  6237. var b = c.ia.IX = {};
  6238. b[a.Yj] = "RGBA8888";
  6239. b[a.gs] = "RGB888";
  6240. b[a.fs] = "RGB565";
  6241. b[a.es] = "A8";
  6242. b[a.CB] = "I8";
  6243. b[a.BB] = "AI88";
  6244. b[a.qw] = "RGBA4444";
  6245. b[a.pw] = "RGB5A1";
  6246. b[a.FJ] = "PVRTC4";
  6247. b[a.EJ] = "PVRTC2";
  6248. b = c.ia.ZK = {};
  6249. b[a.Yj] = 32;
  6250. b[a.gs] = 24;
  6251. b[a.fs] = 16;
  6252. b[a.es] = 8;
  6253. b[a.CB] = 8;
  6254. b[a.BB] = 16;
  6255. b[a.qw] = 16;
  6256. b[a.pw] = 16;
  6257. b[a.FJ] = 4;
  6258. b[a.EJ] = 3;
  6259. b = c.ia.prototype;
  6260. c.i(b, "name", b.getName);
  6261. c.i(b, "pixelFormat", b.AP);
  6262. c.i(b, "pixelsWidth", b.CP);
  6263. c.i(b, "pixelsHeight", b.BP);
  6264. c.i(b, "width", b.Wh);
  6265. c.i(b, "height", b.Jl);
  6266. a.TO = a.nV
  6267. };
  6268. c.H.QB = function() {
  6269. var a = c.ml.prototype;
  6270. c.i(a, "totalQuads", a.TP);
  6271. c.i(a, "capacity", a.qP);
  6272. c.i(a, "quads", a.DP, a.WR)
  6273. };
  6274. c.A9 = 51;
  6275. c.D9 = 19;
  6276. c.F9 = 18;
  6277. c.C9 = 50;
  6278. c.z9 = 34;
  6279. c.x9 = 35;
  6280. c.y9 = 33;
  6281. c.B9 = 49;
  6282. c.E9 = 17;
  6283. c.wV = !1;
  6284. c.F === c.Ha ? c.ia = c.qa.extend({
  6285. S: null,
  6286. Kc: !1,
  6287. Ob: null,
  6288. pb: null,
  6289. url: null,
  6290. ctor: function() {
  6291. this.S = c.size(0, 0);
  6292. this.Kc = !1;
  6293. this.Ob = null
  6294. },
  6295. CP: function() {
  6296. return this.S.width
  6297. },
  6298. BP: function() {
  6299. return this.S.height
  6300. },
  6301. ve: function() {
  6302. var a = c.wb();
  6303. return c.size(this.S.width / a, this.S.height / a)
  6304. },
  6305. Wh: function() {
  6306. return this.S.width / c.wb()
  6307. },
  6308. Jl: function() {
  6309. return this.S.height / c.wb()
  6310. },
  6311. h3: function() {
  6312. return this.S
  6313. },
  6314. Ld: function(a) {
  6315. a && (this.Ob = a)
  6316. },
  6317. v3: function() {
  6318. return this.Ob
  6319. },
  6320. P4: function() {
  6321. return this.Kc
  6322. },
  6323. $b: function() {
  6324. if (!this.Kc) {
  6325. if (!this.Ob) {
  6326. var a = c.X.be(this.url);
  6327. if (!a) return;
  6328. this.Ld(a)
  6329. }
  6330. this.Kc = !0;
  6331. a = this.Ob;
  6332. this.S.width = a.width;
  6333. this.S.height = a.height;
  6334. this.me()
  6335. }
  6336. },
  6337. description: function() {
  6338. return "<cc.Texture2D | width = " + this.S.width + " height " + this.S.height + ">"
  6339. },
  6340. Mu: function() {
  6341. return !1
  6342. },
  6343. kQ: function() {
  6344. return !1
  6345. },
  6346. Md: function() {
  6347. return !1
  6348. },
  6349. YH: function() {},
  6350. getName: function() {
  6351. return null
  6352. },
  6353. F3: function() {
  6354. return 1
  6355. },
  6356. I7: function() {},
  6357. G3: function() {
  6358. return 1
  6359. },
  6360. J7: function() {},
  6361. AP: function() {
  6362. return null
  6363. },
  6364. ZG: function() {
  6365. return null
  6366. },
  6367. uI: function() {},
  6368. xj: function() {
  6369. return !1
  6370. },
  6371. o4: function() {
  6372. return !1
  6373. },
  6374. I6: function() {},
  6375. Y4: function(a) {
  6376. return a
  6377. },
  6378. s2: function() {},
  6379. v2: function() {},
  6380. w4: function() {
  6381. c.log(c.f.SW);
  6382. return !1
  6383. },
  6384. z4: function() {
  6385. c.log(c.f.WW);
  6386. return !1
  6387. },
  6388. A4: function() {
  6389. c.log(c.f.YW);
  6390. return !1
  6391. },
  6392. g8: function() {},
  6393. k7: function() {},
  6394. hI: function() {},
  6395. generateMipmap: function() {},
  6396. K8: function() {
  6397. return ""
  6398. },
  6399. H1: function() {
  6400. return -1
  6401. },
  6402. ue: function(a, b) {
  6403. this.pb || (this.pb = []);
  6404. this.pb.push({
  6405. wi: a,
  6406. Kg: b
  6407. })
  6408. },
  6409. O6: function(a) {
  6410. if (this.pb) for (var b = this.pb, d = 0; d < b.length; d++) b[d].Kg == a && b.splice(d, 1)
  6411. },
  6412. me: function() {
  6413. if (this.pb) {
  6414. for (var a = this.pb, b = 0, d = a.length; b < d; b++) {
  6415. var e = a[b];
  6416. e.wi.call(e.Kg, this)
  6417. }
  6418. a.length = 0
  6419. }
  6420. }
  6421. }) : (c.assert("function" === typeof c.H.IC, c.f.cd, "TexturesWebGL.js"), c.H.IC(), delete c.H.IC);
  6422. c.assert("function" === typeof c.H.PB, c.f.cd, "TexturesPropertyDefine.js");
  6423. c.H.PB();
  6424. delete c.H.PB;
  6425. c.Ka = {
  6426. Vc: {},
  6427. Zt: {},
  6428. FF: 0 | 1E3 * Math.random(),
  6429. vt: {},
  6430. KZ: function() {
  6431. var a, b = this.vt,
  6432. d = this.Vc;
  6433. for (a in b) {
  6434. var e = b[a];
  6435. e.$b();
  6436. d[a] = e
  6437. }
  6438. this.vt = {}
  6439. },
  6440. vca: function() {
  6441. c.log(c.f.Q8)
  6442. },
  6443. sca: function() {
  6444. c.log(c.f.O8)
  6445. },
  6446. description: function() {
  6447. return "<TextureCache | Number of textures = " + this.Vc.length + ">"
  6448. },
  6449. uo: function(a) {
  6450. return this.Vc[a] || this.Vc[c.X.Um[a]]
  6451. },
  6452. x3: function(a) {
  6453. for (var b in this.Vc) if (this.Vc[b] == a) return b;
  6454. return null
  6455. },
  6456. PY: function() {
  6457. this.FF++;
  6458. return "_textureKey_" + this.FF
  6459. },
  6460. iz: function(a) {
  6461. var b = this.x3(a);
  6462. b || (b = a instanceof HTMLImageElement ? a.src : this.PY());
  6463. this.Zt[b] || (this.Zt[b] = c.vq(a));
  6464. return this.Zt[b]
  6465. },
  6466. uca: function() {
  6467. c.log(c.f.P8)
  6468. },
  6469. fma: function() {
  6470. var a = this.Vc,
  6471. b;
  6472. for (b in a) a[b] && a[b].YH();
  6473. this.Vc = {}
  6474. },
  6475. qma: function(a) {
  6476. if (a) {
  6477. var b = this.Vc,
  6478. d;
  6479. for (d in b) b[d] == a && (b[d].YH(), delete b[d])
  6480. }
  6481. },
  6482. rma: function(a) {
  6483. null != a && this.Vc[a] && delete this.Vc[a]
  6484. },
  6485. I1: function(a, b) {
  6486. if (b instanceof c.ia) this.Vc[a] = b;
  6487. else {
  6488. var d = new c.ia;
  6489. d.Ld(b);
  6490. d.$b();
  6491. this.Vc[a] = d
  6492. }
  6493. },
  6494. Aca: function(a, b) {
  6495. c.assert(a, c.f.S8);
  6496. if (b && this.Vc[b]) return this.Vc[b];
  6497. var d = new c.ia;
  6498. d.kQ(a);
  6499. null != b && null != d ? this.Vc[b] = d : c.log(c.f.R8);
  6500. return d
  6501. },
  6502. Qda: function() {
  6503. var a = 0,
  6504. b = 0,
  6505. d = this.Vc,
  6506. e;
  6507. for (e in d) {
  6508. var f = d[e];
  6509. a++;
  6510. f.Ob instanceof HTMLImageElement ? c.log(c.f.T8, e, f.Ob.src, f.pixelsWidth, f.pixelsHeight) : c.log(c.f.xS, e, f.pixelsWidth, f.pixelsHeight);
  6511. b += f.pixelsWidth * f.pixelsHeight * 4
  6512. }
  6513. d = this.Zt;
  6514. for (e in d) {
  6515. var f = d[e],
  6516. g;
  6517. for (g in f) {
  6518. var h = f[g];
  6519. a++;
  6520. c.log(c.f.xS, e, h.width, h.height);
  6521. b += h.width * h.height * 4
  6522. }
  6523. }
  6524. c.log(c.f.U8, a, b / 1024, (b / 1048576).toFixed(2))
  6525. },
  6526. zl: function() {
  6527. this.Vc = {};
  6528. this.Zt = {};
  6529. this.FF = 0 | 1E3 * Math.random();
  6530. this.vt = {}
  6531. }
  6532. };
  6533. c.F === c.Ha ? (p = c.Ka, p.$b = function(a) {
  6534. var b = this.Vc,
  6535. d = b[a];
  6536. d || (d = b[a] = new c.ia, d.url = a);
  6537. d.$b()
  6538. }, p.Qc = function(a, b, d) {
  6539. c.assert(a, c.f.OW);
  6540. var e = this.Vc,
  6541. f = e[a] || e[c.X.Um[a]];
  6542. if (f) return b && b.call(d), f;
  6543. f = e[a] = new c.ia;
  6544. f.url = a;
  6545. c.X.be(a) ? f.$b() : c.X.pL(a) ? c.X.load(a, function() {
  6546. b && b.call(d)
  6547. }) : c.X.Ig[a] = c.X.Qq(a, function(d, e) {
  6548. if (d) return b ? b(d) : d;
  6549. c.Ka.$b(a);
  6550. b && b(null, e)
  6551. });
  6552. return f
  6553. }, p = null) : (c.assert("function" === typeof c.H.KC, c.f.cd, "TexturesWebGL.js"), c.H.KC(), delete c.H.KC);
  6554. c.ml = c.qa.extend({
  6555. dirty: !1,
  6556. texture: null,
  6557. sb: null,
  6558. Jc: null,
  6559. Td: 0,
  6560. Tc: null,
  6561. qd: null,
  6562. on: null,
  6563. Bg: null,
  6564. ctor: function(a, b) {
  6565. this.Jc = [];
  6566. "string" == typeof a ? this.mm(a, b) : a instanceof c.ia && this.pa(a, b)
  6567. },
  6568. TP: function() {
  6569. return this.Ta
  6570. },
  6571. qP: function() {
  6572. return this.Td
  6573. },
  6574. Ua: function() {
  6575. return this.texture
  6576. },
  6577. zb: function(a) {
  6578. this.texture = a
  6579. },
  6580. vA: function(a) {
  6581. this.dirty = a
  6582. },
  6583. Qu: function() {
  6584. return this.dirty
  6585. },
  6586. DP: function() {
  6587. return this.Tc
  6588. },
  6589. WR: function(a) {
  6590. this.Tc = a
  6591. },
  6592. wY: function(a, b) {
  6593. if (a) for (var d = 0; d < a.length; d++) this.ly(a[d], b + d)
  6594. },
  6595. ly: function(a, b) {
  6596. var d = this.Tc;
  6597. d[b] ? (d[b].I = a.I, d[b].R = a.R, d[b].Q = a.Q, d[b].N = a.N) : d[b] = new c.Nb(a.Q, a.I, a.N, a.R, this.qd, b * c.Nb.BYTES_PER_ELEMENT)
  6598. },
  6599. description: function() {
  6600. return "<cc.TextureAtlas | totalQuads =" + this.Ta + ">"
  6601. },
  6602. NN: function() {
  6603. if (0 !== this.Td) for (var a = this.sb, b = this.Td, d = 0; d < b; d++) c.eK ? (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)
  6604. },
  6605. tn: function() {
  6606. var a = c.m;
  6607. this.Jc[0] = a.createBuffer();
  6608. this.Jc[1] = a.createBuffer();
  6609. this.on = a.createBuffer();
  6610. this.Px()
  6611. },
  6612. Px: function() {
  6613. var a = c.m;
  6614. a.bindBuffer(a.ARRAY_BUFFER, this.on);
  6615. a.bufferData(a.ARRAY_BUFFER, this.qd, a.DYNAMIC_DRAW);
  6616. a.bindBuffer(a.ELEMENT_ARRAY_BUFFER, this.Jc[1]);
  6617. a.bufferData(a.ELEMENT_ARRAY_BUFFER, this.sb, a.STATIC_DRAW)
  6618. },
  6619. mm: function(a, b) {
  6620. var d = c.Ka.Qc(a);
  6621. if (d) return this.pa(d, b);
  6622. c.log(c.f.aX, a);
  6623. return !1
  6624. },
  6625. pa: function(a, b) {
  6626. c.assert(a, c.f.bX);
  6627. this.Td = b |= 0;
  6628. this.Ta = 0;
  6629. this.texture = a;
  6630. this.Tc = [];
  6631. this.sb = new Uint16Array(6 * b);
  6632. var d = c.Nb.BYTES_PER_ELEMENT;
  6633. this.qd = new ArrayBuffer(d * b);
  6634. this.Bg = new Uint8Array(this.qd);
  6635. if ((!this.Tc || !this.sb) && 0 < b) return !1;
  6636. for (var e = this.Tc, f = 0; f < b; f++) e[f] = new c.Nb(null, null, null, null, this.qd, f * d);
  6637. this.NN();
  6638. this.tn();
  6639. return this.dirty = !0
  6640. },
  6641. OA: function(a, b) {
  6642. c.assert(a, c.f.lX);
  6643. c.assert(0 <= b && b < this.Td, c.f.mX);
  6644. this.Ta = Math.max(b + 1, this.Ta);
  6645. this.ly(a, b);
  6646. this.dirty = !0
  6647. },
  6648. vH: function(a, b) {
  6649. c.assert(b < this.Td, c.f.eX);
  6650. this.Ta++;
  6651. if (this.Ta > this.Td) c.log(c.f.mK);
  6652. else {
  6653. var d = c.Nb.BYTES_PER_ELEMENT,
  6654. e = b * d,
  6655. f = (this.Ta - 1 - b) * d;
  6656. this.Tc[this.Ta - 1] = new c.Nb(null, null, null, null, this.qd, (this.Ta - 1) * d);
  6657. this.Bg.set(this.Bg.subarray(e, e + f), e + d);
  6658. this.ly(a, b);
  6659. this.dirty = !0
  6660. }
  6661. },
  6662. Wha: function(a, b, d) {
  6663. d = d || a.length;
  6664. c.assert(b + d <= this.Td, c.f.fX);
  6665. var e = c.Nb.BYTES_PER_ELEMENT;
  6666. this.Ta += d;
  6667. if (this.Ta > this.Td) c.log(c.f.mK);
  6668. else {
  6669. var f = b * e,
  6670. g = (this.Ta - 1 - b - d) * e,
  6671. h = this.Ta - 1 - d,
  6672. k;
  6673. for (k = 0; k < d; k++) this.Tc[h + k] = new c.Nb(null, null, null, null, this.qd, (this.Ta - 1) * e);
  6674. this.Bg.set(this.Bg.subarray(f, f + g), f + e * d);
  6675. for (k = 0; k < d; k++) this.ly(a[k], b + k);
  6676. this.dirty = !0
  6677. }
  6678. },
  6679. Vha: function(a, b) {
  6680. if (a !== b) {
  6681. c.assert(0 <= b || b < this.Ta, c.f.cX);
  6682. c.assert(0 <= a || a < this.Ta, c.f.dX);
  6683. var d = c.Nb.BYTES_PER_ELEMENT,
  6684. e = this.Bg,
  6685. f = e.subarray(a * d, d),
  6686. g;
  6687. a > b ? (g = b * d, e.set(e.subarray(g, g + (a - b) * d), g + d), e.set(f, g)) : (g = (a + 1) * d, e.set(e.subarray(g, g + (b - a) * d), g - d), e.set(f, b * d));
  6688. this.dirty = !0
  6689. }
  6690. },
  6691. sR: function(a) {
  6692. c.assert(a < this.Ta, c.f.jX);
  6693. var b = c.Nb.BYTES_PER_ELEMENT;
  6694. this.Ta--;
  6695. this.Tc.length = this.Ta;
  6696. if (a !== this.Ta) {
  6697. var d = (a + 1) * b;
  6698. this.Bg.set(this.Bg.subarray(d, d + (this.Ta - a) * b), d - b)
  6699. }
  6700. this.dirty = !0
  6701. },
  6702. Q6: function(a, b) {
  6703. c.assert(a + b <= this.Ta, c.f.kX);
  6704. this.Ta -= b;
  6705. if (a !== this.Ta) {
  6706. var d = c.Nb.BYTES_PER_ELEMENT,
  6707. e = (a + b) * d;
  6708. this.Bg.set(this.Bg.subarray(e, e + (this.Ta - a) * d), a * d)
  6709. }
  6710. this.dirty = !0
  6711. },
  6712. qR: function() {
  6713. this.Ta = this.Tc.length = 0
  6714. },
  6715. Vl: function(a) {
  6716. this.dirty = a
  6717. },
  6718. aI: function(a) {
  6719. if (a == this.Td) return !0;
  6720. var b = c.Nb.BYTES_PER_ELEMENT,
  6721. d = this.Td;
  6722. this.Ta = Math.min(this.Ta, a);
  6723. var e = this.Td = 0 | a,
  6724. f = this.Ta;
  6725. if (null == this.Tc) for (this.Tc = [], this.qd = new ArrayBuffer(b * e), this.Bg = new Uint8Array(this.qd), a = 0; a < e; a++) this.Tc = new c.Nb(null, null, null, null, this.qd, a * b);
  6726. else {
  6727. var g, h, k = this.Tc;
  6728. if (e > d) {
  6729. g = [];
  6730. h = new ArrayBuffer(b * e);
  6731. for (a = 0; a < f; a++) g[a] = new c.Nb(k[a].Q, k[a].I, k[a].N, k[a].R, h, a * b);
  6732. for (; a < e; a++) g[a] = new c.Nb(null, null, null, null, h, a * b)
  6733. } else for (f = Math.max(f, e), g = [], h = new ArrayBuffer(b * e), a = 0; a < f; a++) g[a] = new c.Nb(k[a].Q, k[a].I, k[a].N, k[a].R, h, a * b);
  6734. this.Bg = new Uint8Array(h);
  6735. this.Tc = g;
  6736. this.qd = h
  6737. }
  6738. null == this.sb ? this.sb = new Uint16Array(6 * e) : e > d ? (b = new Uint16Array(6 * e), b.set(this.sb, 0), this.sb = b) : this.sb = this.sb.subarray(0, 6 * e);
  6739. this.NN();
  6740. this.Px();
  6741. return this.dirty = !0
  6742. },
  6743. cQ: function(a) {
  6744. this.Ta += a
  6745. },
  6746. OQ: function(a, b, d) {
  6747. if (void 0 === d) {
  6748. if (d = b, b = this.Ta - a, c.assert(d + (this.Ta - a) <= this.Td, c.f.gX), 0 === b) return
  6749. } else if (c.assert(d + b <= this.Ta, c.f.hX), c.assert(a < this.Ta, c.f.iX), a == d) return;
  6750. var e = c.Nb.BYTES_PER_ELEMENT,
  6751. f = a * e,
  6752. g = b * e,
  6753. h = this.Bg,
  6754. k = h.subarray(f, f + g),
  6755. m = d * e;
  6756. d < a ? (b = d * e, h.set(h.subarray(b, b + (a - d) * e), b + g)) : (b = (a + b) * e, h.set(h.subarray(b, b + (d - a) * e), f));
  6757. h.set(k, m);
  6758. this.dirty = !0
  6759. },
  6760. iP: function(a, b) {
  6761. for (var d = b * c.Nb.BYTES_PER_ELEMENT, e = new Uint8Array(this.qd, a * c.Nb.BYTES_PER_ELEMENT, d), f = 0; f < d; f++) e[f] = 0
  6762. },
  6763. cP: function() {
  6764. this.bP(this.Ta)
  6765. },
  6766. $ba: function() {
  6767. var a = c.m;
  6768. this.Jc && (this.Jc[0] && a.deleteBuffer(this.Jc[0]), this.Jc[1] && a.deleteBuffer(this.Jc[1]));
  6769. this.on && a.deleteBuffer(this.on)
  6770. }
  6771. });
  6772. p = c.ml.prototype;
  6773. c.i(p, "totalQuads", p.TP);
  6774. c.i(p, "capacity", p.qP);
  6775. c.i(p, "quads", p.DP, p.WR);
  6776. c.ml.create = function(a, b) {
  6777. return new c.ml(a, b)
  6778. };
  6779. c.F === c.ea && (c.assert("function" === typeof c.H.JC, c.f.cd, "TexturesWebGL.js"), c.H.JC(), delete c.H.JC);
  6780. c.assert("function" === typeof c.H.QB, c.f.cd, "TexturesPropertyDefine.js");
  6781. c.H.QB();
  6782. delete c.H.QB;
  6783. c.il = c.t.extend({
  6784. ob: "Scene",
  6785. ctor: function() {
  6786. c.t.prototype.ctor.call(this);
  6787. this.$h = !0;
  6788. this.Vk(0.5, 0.5);
  6789. this.ye(c.L.V)
  6790. }
  6791. });
  6792. c.il.create = function() {
  6793. return new c.il
  6794. };
  6795. c.vJ = c.il.extend({
  6796. jk: null,
  6797. ut: 0,
  6798. Xm: 0,
  6799. nc: null,
  6800. ob: "LoaderScene",
  6801. K: function() {
  6802. var a = this,
  6803. b = 200,
  6804. d = a.XC = c.md.create(c.color(32, 32, 32, 255));
  6805. d.J(c.Rj.Py);
  6806. a.M(d, 0);
  6807. var e = 24,
  6808. f = -b / 2 + 100;
  6809. c.VM && (c.X.Qq(c.VM, {
  6810. Bz: !1
  6811. }, function(d, e) {
  6812. b = e.height;
  6813. a.TD(e, c.Rj.jq)
  6814. }), e = 14, f = -b / 2 - 10);
  6815. e = a.nc = c.Z.create("Loading... 0%", "Arial", e);
  6816. e.J(c.Ij(c.Rj.jq, c.d(0, f)));
  6817. e.Va(c.color(180, 180, 180));
  6818. d.M(this.nc, 10);
  6819. return !0
  6820. },
  6821. TD: function(a, b) {
  6822. var d = new c.ia;
  6823. d.Ld(a);
  6824. d.$b();
  6825. d = c.P.create(d);
  6826. d.Wk(c.wb());
  6827. d.x = b.x;
  6828. d.y = b.y;
  6829. this.XC.M(d, 10)
  6830. },
  6831. ca: function() {
  6832. c.t.prototype.ca.call(this);
  6833. this.po(this.St, 0.3)
  6834. },
  6835. xb: function() {
  6836. c.t.prototype.xb.call(this);
  6837. this.nc.tc("Loading... 0%")
  6838. },
  6839. oH: function(a, b) {
  6840. "string" == typeof a && (a = [a]);
  6841. this.bI = a || [];
  6842. this.vd = b
  6843. },
  6844. St: function() {
  6845. var a = this;
  6846. a.Kv(a.St);
  6847. var b = a.bI;
  6848. a.ut = b.length;
  6849. a.Xm = 0;
  6850. c.X.load(b, function(b, e) {
  6851. a.Xm = e
  6852. }, function() {
  6853. a.vd && a.vd()
  6854. });
  6855. a.po(a.eu)
  6856. },
  6857. eu: function() {
  6858. var a = this.Xm,
  6859. b = this.ut,
  6860. d;
  6861. d = Math.min(a / b * 100 | 0, 100);
  6862. this.nc.tc("Loading... " + d + "%");
  6863. a >= b && this.Kv(this.eu)
  6864. }
  6865. });
  6866. c.vJ.fA = function(a, b) {
  6867. var d = c;
  6868. d.Fi || (d.Fi = new c.vJ, d.Fi.K());
  6869. d.Fi.oH(a, b);
  6870. c.L.rA(d.Fi);
  6871. return d.Fi
  6872. };
  6873. c.H.sB = function() {
  6874. var a = c.je.prototype;
  6875. a.wO = function() {};
  6876. a.DS = function() {};
  6877. a.U = c.t.prototype.U
  6878. };
  6879. c.H.FC = function() {
  6880. var a = c.md.prototype;
  6881. a.oy = null;
  6882. a.sF = null;
  6883. a.VF = null;
  6884. a.hD = null;
  6885. a.uF = null;
  6886. a.tF = null;
  6887. a.ctor = function(a, d, e) {
  6888. this.uF = new ArrayBuffer(32);
  6889. this.tF = new ArrayBuffer(16);
  6890. var f = this.uF,
  6891. g = this.tF,
  6892. h = c.Sc.BYTES_PER_ELEMENT,
  6893. k = oa.BYTES_PER_ELEMENT;
  6894. this.oy = [new c.Sc(0, 0, f, 0), new c.Sc(0, 0, f, h), new c.Sc(0, 0, f, 2 * h), new c.Sc(0, 0, f, 3 * h)];
  6895. this.sF = [c.color(0, 0, 0, 255, g, 0), c.color(0, 0, 0, 255, g, k), c.color(0, 0, 0, 255, g, 2 * k), c.color(0, 0, 0, 255, g, 3 * k)];
  6896. this.VF = c.m.createBuffer();
  6897. this.hD = c.m.createBuffer();
  6898. c.lg.prototype.ctor.call(this);
  6899. this.q = new c.cl(c.vc, c.uc);
  6900. c.md.prototype.K.call(this, a, d, e)
  6901. };
  6902. a.ye = function(a, d) {
  6903. var e = this.oy;
  6904. void 0 === d ? (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);
  6905. this.YC();
  6906. c.je.prototype.ye.call(this, a, d)
  6907. };
  6908. a.vk = function(a) {
  6909. var d = this.oy;
  6910. d[1].x = a;
  6911. d[3].x = a;
  6912. this.YC();
  6913. c.je.prototype.vk.call(this, a)
  6914. };
  6915. a.uk = function(a) {
  6916. var d = this.oy;
  6917. d[2].y = a;
  6918. d[3].y = a;
  6919. this.YC();
  6920. c.je.prototype.uk.call(this, a)
  6921. };
  6922. a.sc = function() {
  6923. for (var a = this.Ma, d = this.Ia, e = this.sF, f = 0; 4 > f; f++) e[f].r = a.r, e[f].g = a.g, e[f].b = a.b, e[f].a = d;
  6924. this.lL()
  6925. };
  6926. a.Y = function(a) {
  6927. a = a || c.m;
  6928. c.av(this);
  6929. c.Xc(c.ke | c.Hw);
  6930. a.bindBuffer(a.ARRAY_BUFFER, this.VF);
  6931. a.vertexAttribPointer(c.Ab, 2, a.FLOAT, !1, 0, 0);
  6932. a.bindBuffer(a.ARRAY_BUFFER, this.hD);
  6933. a.vertexAttribPointer(c.ef, 4, a.UNSIGNED_BYTE, !0, 0, 0);
  6934. c.Ai(this.q.src, this.q.W);
  6935. a.drawArrays(a.TRIANGLE_STRIP, 0, 4)
  6936. };
  6937. a.YC = function() {
  6938. var a = c.m;
  6939. a.bindBuffer(a.ARRAY_BUFFER, this.VF);
  6940. a.bufferData(a.ARRAY_BUFFER, this.uF, a.STATIC_DRAW)
  6941. };
  6942. a.lL = function() {
  6943. var a = c.m;
  6944. a.bindBuffer(a.ARRAY_BUFFER, this.hD);
  6945. a.bufferData(a.ARRAY_BUFFER, this.tF, a.STATIC_DRAW)
  6946. }
  6947. };
  6948. c.H.GC = function() {
  6949. var a = c.Km.prototype;
  6950. a.Y = c.md.prototype.Y;
  6951. a.sc = function() {
  6952. var a = this.wl,
  6953. d = c.rm(a);
  6954. if (0 !== d) {
  6955. var e = Math.sqrt(2),
  6956. a = c.d(a.x / d, a.y / d);
  6957. this.cx && (a = c.Jj(a, 1 / (Math.abs(a.x) + Math.abs(a.y)) * e));
  6958. var f = this.Ia / 255,
  6959. d = this.Ma,
  6960. g = this.kf,
  6961. d = {
  6962. r: d.r,
  6963. g: d.g,
  6964. b: d.b,
  6965. a: this.Sp * f
  6966. },
  6967. f = {
  6968. r: g.r,
  6969. g: g.g,
  6970. b: g.b,
  6971. a: this.np * f
  6972. },
  6973. h = this.sF,
  6974. g = h[0],
  6975. k = h[1],
  6976. m = h[2],
  6977. h = h[3];
  6978. g.r = f.r + (e + a.x + a.y) / (2 * e) * (d.r - f.r);
  6979. g.g = f.g + (e + a.x + a.y) / (2 * e) * (d.g - f.g);
  6980. g.b = f.b + (e + a.x + a.y) / (2 * e) * (d.b - f.b);
  6981. g.a = f.a + (e + a.x + a.y) / (2 * e) * (d.a - f.a);
  6982. k.r = f.r + (e - a.x + a.y) / (2 * e) * (d.r - f.r);
  6983. k.g = f.g + (e - a.x + a.y) / (2 * e) * (d.g - f.g);
  6984. k.b = f.b + (e - a.x + a.y) / (2 * e) * (d.b - f.b);
  6985. k.a = f.a + (e - a.x + a.y) / (2 * e) * (d.a - f.a);
  6986. m.r = f.r + (e + a.x - a.y) / (2 * e) * (d.r - f.r);
  6987. m.g = f.g + (e + a.x - a.y) / (2 * e) * (d.g - f.g);
  6988. m.b = f.b + (e + a.x - a.y) / (2 * e) * (d.b - f.b);
  6989. m.a = f.a + (e + a.x - a.y) / (2 * e) * (d.a - f.a);
  6990. h.r = f.r + (e - a.x - a.y) / (2 * e) * (d.r - f.r);
  6991. h.g = f.g + (e - a.x - a.y) / (2 * e) * (d.g - f.g);
  6992. h.b = f.b + (e - a.x - a.y) / (2 * e) * (d.b - f.b);
  6993. h.a = f.a + (e - a.x - a.y) / (2 * e) * (d.a - f.a);
  6994. this.lL()
  6995. }
  6996. }
  6997. };
  6998. c.H.NB = function() {
  6999. var a = c.lg.prototype;
  7000. c.i(a, "opacityModifyRGB", a.Ue, a.ee);
  7001. c.i(a, "opacity", a.yf, a.Fa);
  7002. c.i(a, "cascadeOpacity", a.Pu, a.er);
  7003. c.i(a, "color", a.xf, a.Va);
  7004. c.i(a, "cascadeColor", a.Ou, a.dr)
  7005. };
  7006. c.H.LB = function() {
  7007. var a = c.md.prototype;
  7008. c.i(a, "width", a.Wh, a.vk);
  7009. c.i(a, "height", a.Jl, a.uk)
  7010. };
  7011. c.H.MB = function() {
  7012. var a = c.Km.prototype;
  7013. c.i(a, "startColor", a.hz, a.Cf);
  7014. c.i(a, "endColor", a.dz, a.Af);
  7015. c.i(a, "startOpacity", a.Z3, a.d8);
  7016. c.i(a, "endOpacity", a.m3, a.y7);
  7017. c.i(a, "vector", a.f4, a.m8)
  7018. };
  7019. c.je = c.t.extend({
  7020. cn: !1,
  7021. Ww: null,
  7022. ob: "Layer",
  7023. ctor: function() {
  7024. var a = c.t.prototype;
  7025. a.ctor.call(this);
  7026. this.$h = !0;
  7027. a.Vk.call(this, 0.5, 0.5);
  7028. a.ye.call(this, c.ja)
  7029. },
  7030. wO: null,
  7031. DS: null,
  7032. $ha: function() {
  7033. return this.cn
  7034. },
  7035. U: null
  7036. });
  7037. c.je.create = function() {
  7038. return new c.je
  7039. };
  7040. if (c.F === c.Ha) {
  7041. var pa = c.je.prototype;
  7042. pa.wO = function() {
  7043. if (!this.cn) {
  7044. this.cn = this.nh = !0;
  7045. this.bk = this;
  7046. for (var a = this.u, b = 0, d = a.length; b < d; b++) a[b].ZE(this);
  7047. this.Ww || (this.Ww = new c.kT)
  7048. }
  7049. };
  7050. pa.DS = function() {
  7051. if (this.cn) {
  7052. this.cn = !1;
  7053. this.nh = !0;
  7054. this.bk = null;
  7055. for (var a = this.u, b = 0, d = a.length; b < d; b++) a[b].ZE(null)
  7056. }
  7057. };
  7058. pa.U = function(a) {
  7059. if (this.cn) {
  7060. a = a || c.m;
  7061. var b, d = this.u,
  7062. e = d.length;
  7063. if (this.Ja && 0 !== e) {
  7064. var f = this.Ww;
  7065. a.save();
  7066. this.transform(a);
  7067. if (this.nh) {
  7068. b = this.ED();
  7069. b.width |= 0;
  7070. b.height |= 0;
  7071. var g = f.gf;
  7072. f.vR(b.width, b.height);
  7073. g.translate(0 - b.x, b.height + b.y);
  7074. var h = f.lb;
  7075. f.J(h.x + b.x, h.y + b.y);
  7076. this.jd();
  7077. for (b = 0; b < e; b++) d[b].U(g);
  7078. this.nh = !1
  7079. }
  7080. f.U(a);
  7081. this.arrivalOrder = 0;
  7082. a.restore()
  7083. }
  7084. } else c.t.prototype.U.call(this, a)
  7085. };
  7086. pa.ED = function() {
  7087. var a = null;
  7088. if (!this.u || 0 === this.u.length) return c.rect(0, 0, 10, 10);
  7089. for (var b = this.u, d = 0; d < b.length; d++) {
  7090. var e = b[d];
  7091. e && e.Ja && (a ? (e = e.it()) && (a = c.jA(a, e)) : a = e.it())
  7092. }
  7093. return a
  7094. };
  7095. pa = null
  7096. } else c.assert("function" === typeof c.H.sB, c.f.cd, "CCLayerWebGL.js"), c.H.sB(), delete c.H.sB;
  7097. c.lg = c.je.extend({
  7098. Ib: !0,
  7099. Ia: 255,
  7100. re: 255,
  7101. Ma: null,
  7102. pc: null,
  7103. De: !1,
  7104. Ud: !1,
  7105. ob: "LayerRGBA",
  7106. ctor: function() {
  7107. c.je.prototype.ctor.call(this);
  7108. this.Ma = c.color(255, 255, 255, 255);
  7109. this.pc = c.color(255, 255, 255, 255)
  7110. },
  7111. K: function() {
  7112. var a = c.je.prototype;
  7113. this.$h = !0;
  7114. a.Vk.call(this, 0.5, 0.5);
  7115. a.ye.call(this, c.ja);
  7116. this.cascadeColor = this.cascadeOpacity = !1;
  7117. return !0
  7118. },
  7119. yf: function() {
  7120. return this.re
  7121. },
  7122. sP: function() {
  7123. return this.Ia
  7124. },
  7125. Fa: function(a) {
  7126. this.Ia = this.re = a;
  7127. var b = 255,
  7128. d = this.gc;
  7129. d && d.Ib && d.cascadeOpacity && (b = d.Ia);
  7130. this.Zb(b);
  7131. this.Ma.a = this.pc.a = a
  7132. },
  7133. Zb: function(a) {
  7134. this.Ia = 0 | this.re * a / 255;
  7135. if (this.De) {
  7136. a = this.u;
  7137. for (var b, d = 0; d < a.length; d++)(b = a[d]) && b.Ib && b.Zb(this.Ia)
  7138. }
  7139. },
  7140. Pu: function() {
  7141. return this.De
  7142. },
  7143. er: function(a) {
  7144. this.De !== a && ((this.De = a) ? this.bt() : this.oD())
  7145. },
  7146. bt: function() {
  7147. var a = 255,
  7148. b = this.gc;
  7149. b && b.Ib && b.cascadeOpacity && (a = b.Ia);
  7150. this.Zb(a)
  7151. },
  7152. oD: function() {
  7153. this.Ia = this.re;
  7154. for (var a = this.u, b, d = 0; d < a.length; d++)(b = a[d]) && b.Ib && b.Zb(255)
  7155. },
  7156. xf: function() {
  7157. var a = this.pc;
  7158. return c.color(a.r, a.g, a.b, a.a)
  7159. },
  7160. Zn: function() {
  7161. var a = this.Ma;
  7162. return c.color(a.r, a.g, a.b)
  7163. },
  7164. Va: function(a) {
  7165. var b = this.Ma,
  7166. d = this.pc;
  7167. b.r = d.r = a.r;
  7168. b.g = d.g = a.g;
  7169. b.b = d.b = a.b;
  7170. b = (b = this.gc) && b.Ib && b.cascadeColor ? b.Zn() : c.color.WHITE;
  7171. this.bc(b);
  7172. void 0 === a.a || a.mu || this.Fa(a.a)
  7173. },
  7174. bc: function(a) {
  7175. var b = this.Ma,
  7176. d = this.pc;
  7177. b.r = 0 | d.r * a.r / 255;
  7178. b.g = 0 | d.g * a.g / 255;
  7179. b.b = 0 | d.b * a.b / 255;
  7180. if (this.Ud) {
  7181. a = this.u;
  7182. for (var e = 0; e < a.length; e++)(d = a[e]) && d.Ib && d.bc(b)
  7183. }
  7184. },
  7185. Ou: function() {
  7186. return this.Ud
  7187. },
  7188. dr: function(a) {
  7189. this.Ud !== a && ((this.Ud = a) ? this.at() : this.nD())
  7190. },
  7191. at: function() {
  7192. var a;
  7193. a = (a = this.gc) && a.Ib && a.cascadeColor ? a.Zn() : c.color.WHITE;
  7194. this.bc(a)
  7195. },
  7196. nD: function() {
  7197. var a = this.Ma,
  7198. b = this.pc;
  7199. a.r = b.r;
  7200. a.g = b.g;
  7201. a.b = b.b;
  7202. var a = this.u,
  7203. b = c.color.WHITE,
  7204. d, e;
  7205. for (e = 0; e < a.length; e++)(d = a[e]) && d.Ib && d.bc(b)
  7206. },
  7207. M: function(a, b, d) {
  7208. c.t.prototype.M.call(this, a, b, d);
  7209. this.Ud && this.at();
  7210. this.De && this.bt()
  7211. },
  7212. ee: function() {},
  7213. Ue: function() {
  7214. return !1
  7215. }
  7216. });
  7217. c.assert("function" === typeof c.H.NB, c.f.cd, "CCLayerPropertyDefine.js");
  7218. c.H.NB();
  7219. delete c.H.NB;
  7220. c.md = c.lg.extend({
  7221. q: null,
  7222. ob: "LayerColor",
  7223. xi: function() {
  7224. return this.q
  7225. },
  7226. hda: function(a, b) {
  7227. this.width = a;
  7228. this.height = b
  7229. },
  7230. gda: function(a) {
  7231. this.width = a
  7232. },
  7233. fda: function(a) {
  7234. this.height = a
  7235. },
  7236. ee: function() {},
  7237. Ue: function() {
  7238. return !1
  7239. },
  7240. Va: function(a) {
  7241. c.lg.prototype.Va.call(this, a);
  7242. this.sc()
  7243. },
  7244. Fa: function(a) {
  7245. c.lg.prototype.Fa.call(this, a);
  7246. this.sc()
  7247. },
  7248. Gp: !1,
  7249. ctor: null,
  7250. K: function(a, b, d) {
  7251. c.F !== c.Ha && (this.shaderProgram = c.ge.Dc(c.xw));
  7252. var e = c.L.V;
  7253. a = a || c.color(0, 0, 0, 255);
  7254. b = void 0 === b ? e.width : b;
  7255. d = void 0 === d ? e.height : d;
  7256. e = this.Ma;
  7257. e.r = a.r;
  7258. e.g = a.g;
  7259. e.b = a.b;
  7260. e = this.pc;
  7261. e.r = a.r;
  7262. e.g = a.g;
  7263. e.b = a.b;
  7264. this.re = this.Ia = a.a;
  7265. a = c.md.prototype;
  7266. a.ye.call(this, b, d);
  7267. a.sc.call(this);
  7268. return !0
  7269. },
  7270. zf: function(a, b) {
  7271. this.q = void 0 === b ? a : {
  7272. src: a,
  7273. W: b
  7274. };
  7275. c.F === c.Ha && (this.Gp = this.q && 1 == this.q.src && 771 == this.q.W)
  7276. },
  7277. vk: null,
  7278. uk: null,
  7279. sc: null,
  7280. bc: function(a) {
  7281. c.lg.prototype.bc.call(this, a);
  7282. this.sc()
  7283. },
  7284. Zb: function(a) {
  7285. c.lg.prototype.Zb.call(this, a);
  7286. this.sc()
  7287. },
  7288. Y: null
  7289. });
  7290. c.md.create = function(a, b, d) {
  7291. return new c.md(a, b, d)
  7292. };
  7293. c.F === c.Ha ? (p = c.md.prototype, p.ctor = function(a, b, d) {
  7294. c.lg.prototype.ctor.call(this);
  7295. this.q = new c.cl(c.vc, c.uc);
  7296. c.md.prototype.K.call(this, a, b, d)
  7297. }, p.vk = c.lg.prototype.vk, p.uk = c.lg.prototype.uk, p.sc = function() {}, p.Y = function(a) {
  7298. a = a || c.m;
  7299. var b = c.view,
  7300. d = this.Ma;
  7301. a.fillStyle = "rgba(" + (0 | d.r) + "," + (0 | d.g) + "," + (0 | d.b) + "," + this.Ia / 255 + ")";
  7302. a.fillRect(0, 0, this.width * b.ma, -this.height * b.Na);
  7303. c.Lg++
  7304. }, p.U = function(a) {
  7305. if (this.cn) {
  7306. a = a || c.m;
  7307. var b, d = this.u,
  7308. e = d.length;
  7309. if (this.Ja) {
  7310. var f = this.Ww;
  7311. a.save();
  7312. this.transform(a);
  7313. if (this.nh) {
  7314. b = this.ED();
  7315. b.width |= 0;
  7316. b.height |= 0;
  7317. var g = f.gf;
  7318. f.vR(b.width, b.height);
  7319. var h = f.lb,
  7320. k = this.va;
  7321. if (this.$h) g.translate(0 - b.x + k.x, b.height + b.y - k.y), f.J(h.x + b.x - k.x, h.y + b.y - k.y);
  7322. else {
  7323. var m = this.lb,
  7324. n = k.x - m.x,
  7325. k = k.y - m.y;
  7326. g.translate(0 - b.x + n, b.height + b.y - k);
  7327. f.J(h.x + b.x - n, h.y + b.y - k)
  7328. }
  7329. if (0 < e) {
  7330. this.jd();
  7331. for (b = 0; b < e; b++) if (h = d[b], 0 > h.Jb) h.U(g);
  7332. else break;
  7333. for (this.Y(g); b < e; b++) d[b].U(g)
  7334. } else this.Y(g);
  7335. this.nh = !1
  7336. }
  7337. f.U(a);
  7338. this.arrivalOrder = 0;
  7339. a.restore()
  7340. }
  7341. } else c.t.prototype.U.call(this, a)
  7342. }, p.ED = function() {
  7343. var a = c.rect(0, 0, this.S.width, this.S.height),
  7344. b = this.Tq(),
  7345. a = c.SB(a, this.Tq());
  7346. if (!this.u || 0 === this.u.length) return a;
  7347. for (var d = this.u, e = 0; e < d.length; e++) {
  7348. var f = d[e];
  7349. f && f.Ja && (f = f.it(b), a = c.jA(a, f))
  7350. }
  7351. return a
  7352. }, p = null) : (c.assert("function" === typeof c.H.FC, c.f.cd, "CCLayerWebGL.js"), c.H.FC(), delete c.H.FC);
  7353. c.assert("function" === typeof c.H.LB, c.f.cd, "CCLayerPropertyDefine.js");
  7354. c.H.LB();
  7355. delete c.H.LB;
  7356. c.Km = c.md.extend({
  7357. ni: null,
  7358. kf: null,
  7359. Sp: 255,
  7360. np: 255,
  7361. wl: null,
  7362. cx: !1,
  7363. zp: null,
  7364. yp: null,
  7365. ob: "LayerGradient",
  7366. ctor: function(a, b, d) {
  7367. c.md.prototype.ctor.call(this);
  7368. this.ni = c.color(0, 0, 0, 255);
  7369. this.kf = c.color(0, 0, 0, 255);
  7370. this.wl = c.d(0, -1);
  7371. this.np = this.Sp = 255;
  7372. this.zp = c.d(0, 0);
  7373. this.yp = c.d(0, 0);
  7374. c.Km.prototype.K.call(this, a, b, d)
  7375. },
  7376. K: function(a, b, d) {
  7377. a = a || c.color(0, 0, 0, 255);
  7378. b = b || c.color(0, 0, 0, 255);
  7379. d = d || c.d(0, -1);
  7380. var e = this.ni,
  7381. f = this.kf;
  7382. e.r = a.r;
  7383. e.g = a.g;
  7384. e.b = a.b;
  7385. this.Sp = a.a;
  7386. f.r = b.r;
  7387. f.g = b.g;
  7388. f.b = b.b;
  7389. this.np = b.a;
  7390. this.wl = d;
  7391. this.cx = !0;
  7392. this.zp = c.d(0, 0);
  7393. this.yp = c.d(0, 0);
  7394. c.md.prototype.K.call(this, c.color(a.r, a.g, a.b, 255));
  7395. c.Km.prototype.sc.call(this);
  7396. return !0
  7397. },
  7398. ye: function(a, b) {
  7399. c.md.prototype.ye.call(this, a, b);
  7400. this.sc()
  7401. },
  7402. vk: function(a) {
  7403. c.md.prototype.vk.call(this, a);
  7404. this.sc()
  7405. },
  7406. uk: function(a) {
  7407. c.md.prototype.uk.call(this, a);
  7408. this.sc()
  7409. },
  7410. hz: function() {
  7411. return this.pc
  7412. },
  7413. Cf: function(a) {
  7414. this.color = a
  7415. },
  7416. Af: function(a) {
  7417. this.kf = a;
  7418. this.sc()
  7419. },
  7420. dz: function() {
  7421. return this.kf
  7422. },
  7423. d8: function(a) {
  7424. this.Sp = a;
  7425. this.sc()
  7426. },
  7427. Z3: function() {
  7428. return this.Sp
  7429. },
  7430. y7: function(a) {
  7431. this.np = a;
  7432. this.sc()
  7433. },
  7434. m3: function() {
  7435. return this.np
  7436. },
  7437. m8: function(a) {
  7438. this.wl.x = a.x;
  7439. this.wl.y = a.y;
  7440. this.sc()
  7441. },
  7442. f4: function() {
  7443. return c.d(this.wl.x, this.wl.y)
  7444. },
  7445. cia: function() {
  7446. return this.cx
  7447. },
  7448. Zma: function(a) {
  7449. this.cx = a;
  7450. this.sc()
  7451. },
  7452. Jba: null,
  7453. sc: null
  7454. });
  7455. c.Km.create = function(a, b, d) {
  7456. return new c.Km(a, b, d)
  7457. };
  7458. c.F === c.Ha ? (p = c.Km.prototype, p.Y = function(a) {
  7459. a = a || c.m;
  7460. this.Gp && (a.globalCompositeOperation = "lighter");
  7461. a.save();
  7462. var b = c.view,
  7463. d = this.Ia / 255,
  7464. e = this.width * b.ma,
  7465. b = this.height * b.Na,
  7466. f = a.createLinearGradient(this.zp.x, this.zp.y, this.yp.x, this.yp.y),
  7467. g = this.Ma,
  7468. h = this.kf;
  7469. f.addColorStop(0, "rgba(" + Math.round(g.r) + "," + Math.round(g.g) + "," + Math.round(g.b) + "," + (this.Sp / 255 * d).toFixed(4) + ")");
  7470. f.addColorStop(1, "rgba(" + Math.round(h.r) + "," + Math.round(h.g) + "," + Math.round(h.b) + "," + (this.np / 255 * d).toFixed(4) + ")");
  7471. a.fillStyle = f;
  7472. a.fillRect(0, 0, e, -b);
  7473. 0 != this.K_ && a.rotate(this.bca);
  7474. a.restore()
  7475. }, p.sc = function() {
  7476. var a = this.wl,
  7477. b = 0.5 * this.width,
  7478. d = 0.5 * this.height;
  7479. this.zp.x = b * -a.x + b;
  7480. this.zp.y = d * a.y - d;
  7481. this.yp.x = b * a.x + b;
  7482. this.yp.y = d * -a.y - d
  7483. }, p = null) : (c.assert("function" === typeof c.H.GC, c.f.cd, "CCLayerWebGL.js"), c.H.GC(), delete c.H.GC);
  7484. c.assert("function" === typeof c.H.MB, c.f.cd, "CCLayerPropertyDefine.js");
  7485. c.H.MB();
  7486. delete c.H.MB;
  7487. c.tB = c.je.extend({
  7488. an: 0,
  7489. Ie: null,
  7490. ob: "LayerMultiplex",
  7491. ctor: function(a) {
  7492. c.je.prototype.ctor.call(this);
  7493. a && c.tB.prototype.y4.call(this, a)
  7494. },
  7495. y4: function(a) {
  7496. 0 < a.length && null == a[a.length - 1] && c.log(c.f.HU);
  7497. this.Ie = a;
  7498. this.an = 0;
  7499. this.M(this.Ie[this.an]);
  7500. return !0
  7501. },
  7502. ipa: function(a) {
  7503. a >= this.Ie.length ? c.log(c.f.IU) : (this.removeChild(this.Ie[this.an], !0), this.an = a, this.M(this.Ie[a]))
  7504. },
  7505. jpa: function(a) {
  7506. a >= this.Ie.length ? c.log(c.f.JU) : (this.removeChild(this.Ie[this.an], !0), this.Ie[this.an] = null, this.an = a, this.M(this.Ie[a]))
  7507. },
  7508. tca: function(a) {
  7509. a ? this.Ie.push(a) : c.log(c.f.GU)
  7510. }
  7511. });
  7512. c.tB.create = function() {
  7513. return new c.tB(arguments)
  7514. };
  7515. c.H.HC = function() {
  7516. var a = c.P.prototype;
  7517. a.rF = function(a) {
  7518. this.Sa(!0);
  7519. this.Hb(a.zi(), a.Le, a.Qf);
  7520. this.me()
  7521. };
  7522. a.ee = function(a) {
  7523. this.Xa !== a && (this.Xa = a, this.Mv())
  7524. };
  7525. a.Zb = function(a) {
  7526. c.la.prototype.Zb.call(this, a);
  7527. this.Mv()
  7528. };
  7529. a.ctor = function(a, d, e) {
  7530. c.la.prototype.ctor.call(this);
  7531. this.Xl = !1;
  7532. this.Pb = c.d(0, 0);
  7533. this.qi = c.d(0, 0);
  7534. this.q = {
  7535. src: c.vc,
  7536. W: c.uc
  7537. };
  7538. this.ba = c.rect(0, 0, 0, 0);
  7539. this.hc = new c.Nb;
  7540. this.by = c.m.createBuffer();
  7541. this.sa = this.mf = !0;
  7542. this.SN(a, d, e)
  7543. };
  7544. a.zf = function(a, d) {
  7545. var e = this.q;
  7546. void 0 === d ? (e.src = a.src, e.W = a.W) : (e.src = a, e.W = d)
  7547. };
  7548. a.K = function() {
  7549. if (0 < arguments.length) return this.mm(arguments[0], arguments[1]);
  7550. c.la.prototype.K.call(this);
  7551. this.dirty = this.fi = !1;
  7552. this.Xa = !0;
  7553. this.q.src = c.vc;
  7554. this.q.W = c.uc;
  7555. this.texture = null;
  7556. this.sa = !0;
  7557. this.dc = this.ec = !1;
  7558. this.anchorY = this.anchorX = 0.5;
  7559. this.Pb.x = 0;
  7560. this.Pb.y = 0;
  7561. this.dj = !1;
  7562. var a = {
  7563. r: 255,
  7564. g: 255,
  7565. b: 255,
  7566. a: 255
  7567. };
  7568. this.hc.I.v = a;
  7569. this.hc.R.v = a;
  7570. this.hc.Q.v = a;
  7571. this.hc.N.v = a;
  7572. this.mf = !0;
  7573. this.Hb(c.rect(0, 0, 0, 0), !1, c.size(0, 0));
  7574. return !0
  7575. };
  7576. a.pa = function(a, d, e) {
  7577. c.assert(0 != arguments.length, c.f.uW);
  7578. e = e || !1;
  7579. if (!c.la.prototype.K.call(this)) return !1;
  7580. this.$ = null;
  7581. this.dirty = this.fi = !1;
  7582. this.Xa = !0;
  7583. this.q.src = c.vc;
  7584. this.q.W = c.uc;
  7585. this.dc = this.ec = !1;
  7586. this.anchorY = this.anchorX = 0.5;
  7587. this.Pb.x = 0;
  7588. this.Pb.y = 0;
  7589. this.dj = !1;
  7590. var f = c.color(255, 255, 255, 255),
  7591. g = this.hc;
  7592. g.I.v = f;
  7593. g.R.v = f;
  7594. g.Q.v = f;
  7595. g.N.v = f;
  7596. this.sa = f = a.Kc;
  7597. if (!f) return this.rd = e || !1, d && (f = this.ba, f.x = d.x, f.y = d.y, f.width = d.width, f.height = d.height), a.ue(this.zy, this), !0;
  7598. d || (d = c.rect(0, 0, a.width, a.height));
  7599. a && (e ? (f = d.x + d.height, g = d.y + d.width) : (f = d.x + d.width, g = d.y + d.height), f > a.width && c.error(c.f.UB, a.url), g > a.height && c.error(c.f.TB, a.url));
  7600. this.texture = a;
  7601. this.Hb(d, e);
  7602. this.batchNode = null;
  7603. return this.mf = !0
  7604. };
  7605. a.zy = function(a) {
  7606. if (!this.sa) {
  7607. this.sa = !0;
  7608. var d = this.ba;
  7609. d ? c.dy(d) && (d.width = a.width, d.height = a.height) : d = c.rect(0, 0, a.width, a.height);
  7610. this.texture = a;
  7611. this.Hb(d, this.rd);
  7612. this.batchNode = this.$;
  7613. this.mf = !0;
  7614. this.me()
  7615. }
  7616. };
  7617. a.Hb = function(a, d, e) {
  7618. this.rd = d || !1;
  7619. this.ye(e || a);
  7620. this.BI(a);
  7621. this.KN(a);
  7622. a = this.qi;
  7623. this.dc && (a.x = -a.x);
  7624. this.ec && (a.y = -a.y);
  7625. var f = this.ba;
  7626. this.Pb.x = a.x + (this.S.width - f.width) / 2;
  7627. this.Pb.y = a.y + (this.S.height - f.height) / 2;
  7628. if (this.$) this.dirty = !0;
  7629. else {
  7630. a = 0 + this.Pb.x;
  7631. d = 0 + this.Pb.y;
  7632. e = a + f.width;
  7633. var f = d + f.height,
  7634. g = this.hc;
  7635. g.I.j = {
  7636. x: a,
  7637. y: d,
  7638. z: 0
  7639. };
  7640. g.R.j = {
  7641. x: e,
  7642. y: d,
  7643. z: 0
  7644. };
  7645. g.Q.j = {
  7646. x: a,
  7647. y: f,
  7648. z: 0
  7649. };
  7650. g.N.j = {
  7651. x: e,
  7652. y: f,
  7653. z: 0
  7654. };
  7655. this.mf = !0
  7656. }
  7657. };
  7658. a.Ff = function() {
  7659. if (this.dirty) {
  7660. var a = this.hc,
  7661. d = this.gc;
  7662. if (!this.Ja || d && d != this.$ && d.Xl) a.R.j = {
  7663. x: 0,
  7664. y: 0,
  7665. z: 0
  7666. }, a.Q.j = {
  7667. x: 0,
  7668. y: 0,
  7669. z: 0
  7670. }, a.N.j = {
  7671. x: 0,
  7672. y: 0,
  7673. z: 0
  7674. }, a.I.j = {
  7675. x: 0,
  7676. y: 0,
  7677. z: 0
  7678. }, this.Xl = !0;
  7679. else {
  7680. this.Xl = !1;
  7681. var e = this.An = d && d != this.$ ? c.Dm(this.Ve(), d.An) : this.Ve(),
  7682. f = this.ba,
  7683. d = this.Pb.x,
  7684. g = this.Pb.y,
  7685. h = d + f.width,
  7686. k = g + f.height,
  7687. m = e.xa,
  7688. n = e.ya,
  7689. q = e.a,
  7690. r = e.b,
  7691. t = e.D,
  7692. s = -e.C,
  7693. e = d * q - g * s + m,
  7694. f = d * r + g * t + n,
  7695. u = h * q - g * s + m,
  7696. g = h * r + g * t + n,
  7697. v = h * q - k * s + m,
  7698. h = h * r + k * t + n,
  7699. m = d * q - k * s + m,
  7700. d = d * r + k * t + n,
  7701. k = this.iu;
  7702. c.ZB || (e |= 0, f |= 0, u |= 0, g |= 0, v |= 0, h |= 0, m |= 0, d |= 0);
  7703. a.I.j = {
  7704. x: e,
  7705. y: f,
  7706. z: k
  7707. };
  7708. a.R.j = {
  7709. x: u,
  7710. y: g,
  7711. z: k
  7712. };
  7713. a.Q.j = {
  7714. x: m,
  7715. y: d,
  7716. z: k
  7717. };
  7718. a.N.j = {
  7719. x: v,
  7720. y: h,
  7721. z: k
  7722. }
  7723. }
  7724. this.textureAtlas.OA(a, this.atlasIndex);
  7725. this.dirty = this.fi = !1
  7726. }
  7727. this.dj && this.mh(this.u, c.t.og.Ff);
  7728. c.hl && (a = [c.d(this.hc.I.j.x, this.hc.I.j.y), c.d(this.hc.R.j.x, this.hc.R.j.y), c.d(this.hc.N.j.x, this.hc.N.j.y), c.d(this.hc.Q.j.x, this.hc.Q.j.y)], c.jf.$d(a, 4, !0))
  7729. };
  7730. a.M = function(a, d, e) {
  7731. c.assert(a, c.f.lW);
  7732. null == d && (d = a.Jb);
  7733. null == e && (e = a.tag);
  7734. if (this.$) {
  7735. if (!(a instanceof c.P)) {
  7736. c.log(c.f.jW);
  7737. return
  7738. }
  7739. a.texture.te !== this.textureAtlas.texture.te && c.log(c.f.kW);
  7740. this.$.appendChild(a);
  7741. this.se || this.iF()
  7742. }
  7743. c.la.prototype.M.call(this, a, d, e);
  7744. this.dj = !0
  7745. };
  7746. a.Fa = function(a) {
  7747. c.la.prototype.Fa.call(this, a);
  7748. this.Mv()
  7749. };
  7750. a.Va = function(a) {
  7751. c.la.prototype.Va.call(this, a);
  7752. this.Mv()
  7753. };
  7754. a.bc = function(a) {
  7755. c.la.prototype.bc.call(this, a);
  7756. this.Mv()
  7757. };
  7758. a.xm = function(a) {
  7759. var d = this;
  7760. "string" == typeof a && (a = c.Zk.wj(a), c.assert(a, c.f.EW));
  7761. d.Sa(!0);
  7762. var e = a.oa;
  7763. d.qi.x = e.x;
  7764. d.qi.y = e.y;
  7765. e = a.Ua();
  7766. a.sa || (d.sa = !1, a.ue(function(a) {
  7767. d.sa = !0;
  7768. var b = a.Ua();
  7769. b != d.O && (d.texture = b);
  7770. d.Hb(a.zi(), a.Le, a.Qf);
  7771. d.me()
  7772. }, d));
  7773. e != d.O && (d.texture = e);
  7774. d.rd = a.Le;
  7775. d.Hb(a.zi(), d.rd, a.Qf)
  7776. };
  7777. a.uQ = function(a) {
  7778. return c.nR(a.zi(), this.ba) && a.Ua().getName() == this.O.getName() && c.VH(a.oa, this.qi)
  7779. };
  7780. a.wm = function(a) {
  7781. if (this.$ = a) this.An = {
  7782. a: 1,
  7783. b: 0,
  7784. C: 0,
  7785. D: 1,
  7786. xa: 0,
  7787. ya: 0
  7788. }, this.textureAtlas = this.$.textureAtlas;
  7789. else {
  7790. this.atlasIndex = c.P.pB;
  7791. this.textureAtlas = null;
  7792. this.dirty = this.fi = !1;
  7793. a = this.Pb.x;
  7794. var d = this.Pb.y,
  7795. e = a + this.ba.width,
  7796. f = d + this.ba.height,
  7797. g = this.hc;
  7798. g.I.j = {
  7799. x: a,
  7800. y: d,
  7801. z: 0
  7802. };
  7803. g.R.j = {
  7804. x: e,
  7805. y: d,
  7806. z: 0
  7807. };
  7808. g.Q.j = {
  7809. x: a,
  7810. y: f,
  7811. z: 0
  7812. };
  7813. g.N.j = {
  7814. x: e,
  7815. y: f,
  7816. z: 0
  7817. };
  7818. this.mf = !0
  7819. }
  7820. };
  7821. a.zb = function(a) {
  7822. a && "string" === typeof a ? (a = c.Ka.Qc(a), this.zb(a), a = a.ve(), this.Hb(c.rect(0, 0, a.width, a.height))) : (c.assert(!a || a instanceof c.ia, c.f.GW), this.$ && this.$.texture != a ? c.log(c.f.FW) : (this.shaderProgram = a ? c.ge.Dc(c.Zj) : c.ge.Dc(c.xw), this.$ || this.O == a || (this.O = a, this.Gg())))
  7823. };
  7824. a.Y = function() {
  7825. if (this.sa) {
  7826. var a = c.m,
  7827. d = this.O;
  7828. d ? d.Kc && (this.Sb.$c(), this.Sb.Ef(), c.Ai(this.q.src, this.q.W), c.fH(0, d), c.Xc(c.Sm), a.bindBuffer(a.ARRAY_BUFFER, this.by), this.mf && (a.bufferData(a.ARRAY_BUFFER, this.hc.Ly, a.DYNAMIC_DRAW), this.mf = !1), a.vertexAttribPointer(0, 3, a.FLOAT, !1, 24, 0), a.vertexAttribPointer(1, 4, a.UNSIGNED_BYTE, !0, 24, 12), a.vertexAttribPointer(2, 2, a.FLOAT, !1, 24, 16), a.drawArrays(a.TRIANGLE_STRIP, 0, 4)) : (this.Sb.$c(), this.Sb.Ef(), c.Ai(this.q.src, this.q.W), c.Te(null), c.Xc(c.ke | c.Hw), a.bindBuffer(a.ARRAY_BUFFER, this.by), this.mf && (c.m.bufferData(c.m.ARRAY_BUFFER, this.hc.Ly, c.m.STATIC_DRAW), this.mf = !1), a.vertexAttribPointer(c.Ab, 3, a.FLOAT, !1, 24, 0), a.vertexAttribPointer(c.ef, 4, a.UNSIGNED_BYTE, !0, 24, 12), a.drawArrays(a.TRIANGLE_STRIP, 0, 4));
  7829. c.Lg++;
  7830. if (0 !== c.hl || this.mF) 1 === c.hl || this.mF ? (a = this.hc, a = [c.d(a.Q.j.x, a.Q.j.y), c.d(a.I.j.x, a.I.j.y), c.d(a.R.j.x, a.R.j.y), c.d(a.N.j.x, a.N.j.y)], c.jf.$d(a, 4, !0)) : 2 === c.hl && (a = this.SP(), d = this.Pb, a = [c.d(d.x, d.y), c.d(d.x + a.width, d.y), c.d(d.x + a.width, d.y + a.height), c.d(d.x, d.y + a.height)], c.jf.$d(a, 4, !0))
  7831. }
  7832. };
  7833. delete a
  7834. };
  7835. c.H.OB = function() {
  7836. var a = c.P.prototype;
  7837. c.i(a, "opacityModifyRGB", a.Ue, a.ee);
  7838. c.i(a, "opacity", a.yf, a.Fa);
  7839. c.i(a, "color", a.xf, a.Va);
  7840. c.i(a, "flippedX", a.L4, a.wA);
  7841. c.i(a, "flippedY", a.M4, a.mI);
  7842. c.i(a, "offsetX", a.jZ);
  7843. c.i(a, "offsetY", a.kZ);
  7844. c.i(a, "texture", a.Ua, a.zb);
  7845. c.i(a, "textureRectRotated", a.S4);
  7846. c.i(a, "batchNode", a.PG, a.wm);
  7847. c.i(a, "quad", a.O3)
  7848. };
  7849. c.vq = function(a) {
  7850. function b() {
  7851. var b = c.vq,
  7852. e = a.width,
  7853. h = a.height;
  7854. d[0].width = e;
  7855. d[0].height = h;
  7856. d[1].width = e;
  7857. d[1].height = h;
  7858. d[2].width = e;
  7859. d[2].height = h;
  7860. d[3].width = e;
  7861. d[3].height = h;
  7862. b.canvas.width = e;
  7863. b.canvas.height = h;
  7864. var k = b.canvas.getContext("2d");
  7865. k.drawImage(a, 0, 0);
  7866. b.KI.width = e;
  7867. b.KI.height = h;
  7868. for (var k = k.getImageData(0, 0, e, h).data, m = 0; 4 > m; m++) {
  7869. var n = d[m].getContext("2d");
  7870. n.getImageData(0, 0, e, h).data;
  7871. b.wS.drawImage(a, 0, 0);
  7872. for (var q = b.wS.getImageData(0, 0, e, h), r = q.data, t = 0; t < k.length; t += 4) r[t] = 0 === m ? k[t] : 0, r[t + 1] = 1 === m ? k[t + 1] : 0, r[t + 2] = 2 === m ? k[t + 2] : 0, r[t + 3] = k[t + 3];
  7873. n.putImageData(q, 0, 0)
  7874. }
  7875. a.onload = null
  7876. }
  7877. if (a.EO) return a.EO;
  7878. var d = [c.ac("canvas"), c.ac("canvas"), c.ac("canvas"), c.ac("canvas")];
  7879. try {
  7880. b()
  7881. } catch (e) {
  7882. a.onload = b
  7883. }
  7884. return a.EO = d
  7885. };
  7886. c.vq.canvas = c.ac("canvas");
  7887. c.vq.KI = c.ac("canvas");
  7888. c.vq.wS = c.vq.KI.getContext("2d");
  7889. c.Xea = function(a, b, d) {
  7890. d || (d = c.rect(0, 0, a.width, a.height), d = c.Sk(d));
  7891. var e = c.ac("canvas"),
  7892. f = e.getContext("2d");
  7893. e.width != d.width && (e.width = d.width);
  7894. e.height != d.height && (e.height = d.height);
  7895. f.save();
  7896. f.drawImage(a, d.x, d.y, d.width, d.height, 0, 0, d.width, d.height);
  7897. f.globalCompositeOperation = "source-in";
  7898. f.globalAlpha = b.a / 255;
  7899. f.fillStyle = "rgb(" + b.r + "," + b.g + "," + b.b + ")";
  7900. f.fillRect(0, 0, d.width, d.height);
  7901. f.restore();
  7902. return e
  7903. };
  7904. c.wq = function(a, b, d, e, f) {
  7905. e || (e = c.rect(0, 0, a.width, a.height));
  7906. a = d.r / 255;
  7907. var g = d.g / 255;
  7908. d = d.b / 255;
  7909. var h = Math.min(e.width, b[0].width),
  7910. k = Math.min(e.height, b[0].height),
  7911. m;
  7912. f ? (m = f.getContext("2d"), m.clearRect(0, 0, h, k)) : (f = c.ac("canvas"), f.width = h, f.height = k, m = f.getContext("2d"));
  7913. m.save();
  7914. m.globalCompositeOperation = "lighter";
  7915. var n = m.globalAlpha;
  7916. 0 < a && (m.globalAlpha = a * n, m.drawImage(b[0], e.x, e.y, h, k, 0, 0, h, k));
  7917. 0 < g && (m.globalAlpha = g * n, m.drawImage(b[1], e.x, e.y, h, k, 0, 0, h, k));
  7918. 0 < d && (m.globalAlpha = d * n, m.drawImage(b[2], e.x, e.y, h, k, 0, 0, h, k));
  7919. 1 > a + g + d && (m.globalAlpha = n, m.drawImage(b[3], e.x, e.y, h, k, 0, 0, h, k));
  7920. m.restore();
  7921. return f
  7922. };
  7923. c.EG = function(a, b) {
  7924. if (!a) return null;
  7925. if (!b) return a;
  7926. var d = c.ac("canvas");
  7927. d.width = b.width;
  7928. d.height = b.height;
  7929. var e = d.getContext("2d");
  7930. e.translate(d.width / 2, d.height / 2);
  7931. e.rotate(-1.5707963267948966);
  7932. e.drawImage(a, b.x, b.y, b.height, b.width, -b.height / 2, -b.width / 2, b.height, b.width);
  7933. return d
  7934. };
  7935. c.P = c.la.extend({
  7936. Ib: !0,
  7937. dirty: !1,
  7938. atlasIndex: 0,
  7939. textureAtlas: null,
  7940. $: null,
  7941. fi: null,
  7942. dj: null,
  7943. Xl: !1,
  7944. An: null,
  7945. q: null,
  7946. O: null,
  7947. ba: null,
  7948. rd: !1,
  7949. Pb: null,
  7950. qi: null,
  7951. Xa: !1,
  7952. dc: !1,
  7953. ec: !1,
  7954. sa: !1,
  7955. pb: null,
  7956. jE: null,
  7957. ob: "Sprite",
  7958. Fv: function() {
  7959. return this.sa
  7960. },
  7961. ue: function(a, b) {
  7962. this.pb || (this.pb = []);
  7963. this.pb.push({
  7964. wi: a,
  7965. Kg: b
  7966. })
  7967. },
  7968. me: function() {
  7969. if (this.pb) {
  7970. for (var a = this.pb, b = 0, d = a.length; b < d; b++) {
  7971. var e = a[b];
  7972. e.wi.call(e.Kg, this)
  7973. }
  7974. a.length = 0
  7975. }
  7976. },
  7977. Qu: function() {
  7978. return this.dirty
  7979. },
  7980. vA: function(a) {
  7981. this.dirty = a
  7982. },
  7983. S4: function() {
  7984. return this.rd
  7985. },
  7986. yq: function() {
  7987. return this.atlasIndex
  7988. },
  7989. iI: function(a) {
  7990. this.atlasIndex = a
  7991. },
  7992. SP: function() {
  7993. return c.rect(this.ba.x, this.ba.y, this.ba.width, this.ba.height)
  7994. },
  7995. bH: function() {
  7996. return this.textureAtlas
  7997. },
  7998. xI: function(a) {
  7999. this.textureAtlas = a
  8000. },
  8001. vga: function() {
  8002. return this.Pb
  8003. },
  8004. jZ: function() {
  8005. return this.Pb.x
  8006. },
  8007. kZ: function() {
  8008. return this.Pb.y
  8009. },
  8010. xi: function() {
  8011. return this.q
  8012. },
  8013. Ah: function(a) {
  8014. c.assert(a, c.f.rW);
  8015. a.sa || (this.sa = !1, a.ue(this.rF, this));
  8016. var b = c.F === c.Ha ? !1 : a.Le,
  8017. b = this.pa(a.Ua(), a.zi(), b);
  8018. this.xm(a);
  8019. return b
  8020. },
  8021. rF: null,
  8022. Uha: function(a) {
  8023. c.assert(a, c.f.sW);
  8024. var b = c.Zk.wj(a);
  8025. c.assert(b, a + c.f.tW);
  8026. return this.Ah(b)
  8027. },
  8028. Gpa: function(a) {
  8029. this.textureAtlas = a.textureAtlas;
  8030. this.$ = a
  8031. },
  8032. BI: function(a) {
  8033. this.ba.x = a.x;
  8034. this.ba.y = a.y;
  8035. this.ba.width = a.width;
  8036. this.ba.height = a.height
  8037. },
  8038. jd: function() {
  8039. if (this.se) {
  8040. var a = this.u,
  8041. b = a.length,
  8042. d, e, f;
  8043. for (d = 1; d < b; d++) {
  8044. f = a[d];
  8045. for (e = d - 1; 0 <= e;) {
  8046. if (f.Jb < a[e].Jb) a[e + 1] = a[e];
  8047. else if (f.Jb === a[e].Jb && f.arrivalOrder < a[e].arrivalOrder) a[e + 1] = a[e];
  8048. else break;
  8049. e--
  8050. }
  8051. a[e + 1] = f
  8052. }
  8053. this.$ && this.mh(a, c.t.og.jd);
  8054. this.se = !1
  8055. }
  8056. },
  8057. ar: function(a, b) {
  8058. c.assert(a, c.f.yW); - 1 === this.u.indexOf(a) ? c.log(c.f.xW) : b !== a.zIndex && (this.$ && !this.se && (this.iF(), this.$.tR(!0)), c.t.prototype.ar.call(this, a, b))
  8059. },
  8060. removeChild: function(a, b) {
  8061. this.$ && this.$.no(a);
  8062. c.t.prototype.removeChild.call(this, a, b)
  8063. },
  8064. Sg: function(a) {
  8065. var b = this.u,
  8066. d = this.$;
  8067. if (d && null != b) for (var e = 0, f = b.length; e < f; e++) d.no(b[e]);
  8068. c.t.prototype.Sg.call(this, a);
  8069. this.dj = !1
  8070. },
  8071. KR: function(a) {
  8072. this.dirty = this.fi = a;
  8073. a = this.u;
  8074. for (var b, d = a ? a.length : 0, e = 0; e < d; e++) b = a[e], b instanceof c.P && b.KR(!0)
  8075. },
  8076. Sa: function(a) {
  8077. c.t.prototype.Sa.call(this);
  8078. a || !this.$ || this.fi || (this.dj ? this.KR(!0) : this.dirty = this.fi = !0)
  8079. },
  8080. qz: function(a) {
  8081. this.$ ? c.log(c.f.pW) : c.t.prototype.qz.call(this, a)
  8082. },
  8083. wA: function(a) {
  8084. this.dc != a && (this.dc = a, this.Hb(this.ba, this.rd, this.S), this.Sa(!0))
  8085. },
  8086. mI: function(a) {
  8087. this.ec != a && (this.ec = a, this.Hb(this.ba, this.rd, this.S), this.Sa(!0))
  8088. },
  8089. L4: function() {
  8090. return this.dc
  8091. },
  8092. M4: function() {
  8093. return this.ec
  8094. },
  8095. ee: null,
  8096. Ue: function() {
  8097. return this.Xa
  8098. },
  8099. Zb: null,
  8100. ina: function(a, b) {
  8101. c.assert(a, c.f.DW);
  8102. var d = c.Ky.nP(a);
  8103. d ? (d = d.pe[b]) ? this.xm(d.wj()) : c.log(c.f.BW) : c.log(c.f.AW)
  8104. },
  8105. PG: function() {
  8106. return this.$
  8107. },
  8108. iF: function() {
  8109. if (!this.se) {
  8110. this.se = !0;
  8111. for (var a = this.gc; a && a != this.$;) a.iF(), a = a.parent
  8112. }
  8113. },
  8114. Ua: function() {
  8115. return this.O
  8116. },
  8117. hc: null,
  8118. by: null,
  8119. mf: !1,
  8120. bx: !1,
  8121. Gp: !1,
  8122. Je: null,
  8123. Wp: null,
  8124. rD: null,
  8125. ctor: null,
  8126. SN: function(a, b, d) {
  8127. if (void 0 === a) c.P.prototype.K.call(this);
  8128. else if ("string" === typeof a)"#" === a[0] ? (a = c.Zk.wj(a.substr(1, a.length - 1)), this.Ah(a)) : c.P.prototype.K.call(this, a, b);
  8129. else if ("object" === typeof a) if (a instanceof c.ia) this.pa(a, b, d);
  8130. else if (a instanceof c.If) this.Ah(a);
  8131. else if (a instanceof HTMLImageElement || a instanceof HTMLCanvasElement) b = new c.ia, b.Ld(a), b.$b(), this.pa(b)
  8132. },
  8133. O3: function() {
  8134. return this.hc
  8135. },
  8136. zf: null,
  8137. K: null,
  8138. mm: function(a, b) {
  8139. c.assert(a, c.f.qW);
  8140. var d = c.Ka.uo(a);
  8141. if (d) {
  8142. if (!b) {
  8143. var e = d.ve();
  8144. b = c.rect(0, 0, e.width, e.height)
  8145. }
  8146. return this.pa(d, b)
  8147. }
  8148. d = c.Ka.Qc(a);
  8149. return this.pa(d, b || c.rect(0, 0, d.S.width, d.S.height))
  8150. },
  8151. pa: null,
  8152. zy: null,
  8153. Hb: null,
  8154. Ff: null,
  8155. M: null,
  8156. Mv: function() {
  8157. var a = this.Ma,
  8158. b = this.Ia,
  8159. a = {
  8160. r: a.r,
  8161. g: a.g,
  8162. b: a.b,
  8163. a: b
  8164. };
  8165. this.Xa && (a.r *= b / 255, a.g *= b / 255, a.b *= b / 255);
  8166. b = this.hc;
  8167. b.I.v = a;
  8168. b.R.v = a;
  8169. b.Q.v = a;
  8170. b.N.v = a;
  8171. this.$ && (this.atlasIndex != c.P.pB ? this.textureAtlas.OA(b, this.atlasIndex) : this.dirty = !0);
  8172. this.mf = !0
  8173. },
  8174. Fa: null,
  8175. Va: null,
  8176. bc: null,
  8177. xm: null,
  8178. u7: function(a) {
  8179. c.log(c.f.zW);
  8180. this.xm(a)
  8181. },
  8182. uQ: null,
  8183. q2: function() {
  8184. return c.If.create(this.O, c.sv(this.ba), this.rd, c.o6(this.qi), c.t8(this.S))
  8185. },
  8186. wm: null,
  8187. zb: null,
  8188. Gg: function() {
  8189. this.$ ? c.log(c.f.iW) : this.O && this.O.xj() ? (this.q.src = c.vc, this.q.W = c.uc, this.opacityModifyRGB = !0) : (this.q.src = c.SRC_ALPHA, this.q.W = c.ONE_MINUS_SRC_ALPHA, this.opacityModifyRGB = !1)
  8190. },
  8191. yl: function() {
  8192. var a, b = this.O,
  8193. d = this.Wp;
  8194. b && d.vr && this.Je && (a = b.Ob) && (b = c.Ka.iz(this.Je.Ob)) && (this.bx = !0, a instanceof HTMLCanvasElement && !this.rd && !this.jE ? c.wq(a, b, this.Ma, d, a) : (a = c.wq(a, b, this.Ma, d), b = new c.ia, b.Ld(a), b.$b(), this.texture = b))
  8195. },
  8196. KN: function(a) {
  8197. a = c.sv(a);
  8198. var b = this.$ ? this.textureAtlas.texture : this.O;
  8199. if (b) {
  8200. var d = b.pixelsWidth,
  8201. e = b.pixelsHeight,
  8202. f, g = this.hc;
  8203. this.rd ? (c.Do ? (b = (2 * a.x + 1) / (2 * d), d = b + (2 * a.height - 2) / (2 * d), f = (2 * a.y + 1) / (2 * e), a = f + (2 * a.width - 2) / (2 * e)) : (b = a.x / d, d = (a.x + a.height) / d, f = a.y / e, a = (a.y + a.width) / e), this.dc && (e = f, f = a, a = e), this.ec && (e = b, b = d, d = e), g.I.n.da = b, g.I.n.G = f, g.R.n.da = b, g.R.n.G = a, g.Q.n.da = d, g.Q.n.G = f, g.N.n.da = d, g.N.n.G = a) : (c.Do ? (b = (2 * a.x + 1) / (2 * d), d = b + (2 * a.width - 2) / (2 * d), f = (2 * a.y + 1) / (2 * e), a = f + (2 * a.height - 2) / (2 * e)) : (b = a.x / d, d = (a.x + a.width) / d, f = a.y / e, a = (a.y + a.height) / e), this.dc && (e = b, b = d, d = e), this.ec && (e = f, f = a, a = e), g.I.n.da = b, g.I.n.G = a, g.R.n.da = d, g.R.n.G = a, g.Q.n.da = b, g.Q.n.G = f, g.N.n.da = d, g.N.n.G = f);
  8204. this.mf = !0
  8205. }
  8206. },
  8207. Y: null
  8208. });
  8209. c.P.create = function(a, b, d) {
  8210. return new c.P(a, b, d)
  8211. };
  8212. c.P.pB = -1;
  8213. c.F === c.Ha ? (p = c.P.prototype, p.rF = function(a) {
  8214. this.Sa(!0);
  8215. this.Hb(a.zi(), a.Le, a.Qf);
  8216. a = this.color;
  8217. 255 === a.r && 255 === a.g && 255 === a.b || this.yl();
  8218. this.me()
  8219. }, p.ee = function(a) {
  8220. this.Xa !== a && (this.Xa = a, this.Sa(!0))
  8221. }, p.Zb = function(a) {
  8222. c.la.prototype.Zb.call(this, a);
  8223. this.ji()
  8224. }, p.ctor = function(a, b, d) {
  8225. c.la.prototype.ctor.call(this);
  8226. this.Xl = !1;
  8227. this.Pb = c.d(0, 0);
  8228. this.qi = c.d(0, 0);
  8229. this.q = {
  8230. src: c.vc,
  8231. W: c.uc
  8232. };
  8233. this.ba = c.rect(0, 0, 0, 0);
  8234. this.jE = !1;
  8235. this.sa = !0;
  8236. this.Wp = {
  8237. x: 0,
  8238. y: 0,
  8239. width: 0,
  8240. height: 0,
  8241. vr: !1
  8242. };
  8243. this.rD = c.size(0, 0);
  8244. this.SN(a, b, d)
  8245. }, p.zf = function(a, b) {
  8246. var d = this.q;
  8247. void 0 === b ? (d.src = a.src, d.W = a.W) : (d.src = a, d.W = b);
  8248. this.Gp = d && (d.src == c.SRC_ALPHA && d.W == c.ONE || d.src == c.ONE && d.W == c.ONE)
  8249. }, p.K = function() {
  8250. if (0 < arguments.length) return this.mm(arguments[0], arguments[1]);
  8251. c.la.prototype.K.call(this);
  8252. this.dirty = this.fi = !1;
  8253. this.Xa = !0;
  8254. this.q.src = c.vc;
  8255. this.q.W = c.uc;
  8256. this.texture = null;
  8257. this.sa = !0;
  8258. this.dc = this.ec = !1;
  8259. this.anchorY = this.anchorX = 0.5;
  8260. this.Pb.x = 0;
  8261. this.Pb.y = 0;
  8262. this.dj = !1;
  8263. this.Hb(c.rect(0, 0, 0, 0), !1, c.size(0, 0));
  8264. return !0
  8265. }, p.pa = function(a, b, d) {
  8266. c.assert(0 != arguments.length, c.f.qT);
  8267. if ((d = d || !1) && a.Kc) {
  8268. var e = a.Ob,
  8269. e = c.EG(e, b),
  8270. f = new c.ia;
  8271. f.Ld(e);
  8272. f.$b();
  8273. a = f;
  8274. this.ba = c.rect(0, 0, b.width, b.height)
  8275. }
  8276. if (!c.la.prototype.K.call(this)) return !1;
  8277. this.$ = null;
  8278. this.dirty = this.fi = !1;
  8279. this.Xa = !0;
  8280. this.q.src = c.vc;
  8281. this.q.W = c.uc;
  8282. this.dc = this.ec = !1;
  8283. this.anchorY = this.anchorX = 0.5;
  8284. this.Pb.x = 0;
  8285. this.Pb.y = 0;
  8286. this.dj = !1;
  8287. this.sa = e = a.Kc;
  8288. if (!e) return this.rd = d, b && (this.ba.x = b.x, this.ba.y = b.y, this.ba.width = b.width, this.ba.height = b.height), a.ue(this.zy, this), !0;
  8289. b || (b = c.rect(0, 0, a.width, a.height));
  8290. a && (e = b.y + b.height, b.x + b.width > a.width && c.error(c.f.UB, a.url), e > a.height && c.error(c.f.TB, a.url));
  8291. this.texture = this.Je = a;
  8292. this.Hb(b, d);
  8293. this.batchNode = null;
  8294. return !0
  8295. }, p.zy = function(a) {
  8296. if (!this.sa) {
  8297. this.sa = !0;
  8298. var b = this.ba;
  8299. b ? c.dy(b) && (b.width = a.width, b.height = a.height) : b = c.rect(0, 0, a.width, a.height);
  8300. this.texture = this.Je = a;
  8301. this.Hb(b, this.rd);
  8302. this.batchNode = this.$;
  8303. this.me()
  8304. }
  8305. }, p.Hb = function(a, b, d) {
  8306. this.rd = b || !1;
  8307. this.ye(d || a);
  8308. this.BI(a);
  8309. b = this.Wp;
  8310. d = c.wb();
  8311. b.x = 0 | a.x * d;
  8312. b.y = 0 | a.y * d;
  8313. b.width = 0 | a.width * d;
  8314. b.height = 0 | a.height * d;
  8315. b.vr = !(0 === b.width || 0 === b.height || 0 > b.x || 0 > b.y);
  8316. a = this.qi;
  8317. this.dc && (a.x = -a.x);
  8318. this.ec && (a.y = -a.y);
  8319. this.Pb.x = a.x + (this.S.width - this.ba.width) / 2;
  8320. this.Pb.y = a.y + (this.S.height - this.ba.height) / 2;
  8321. this.$ && (this.dirty = !0)
  8322. }, p.Ff = function() {
  8323. if (this.dirty) {
  8324. var a = this.gc;
  8325. !this.Ja || a && a != this.$ && a.Xl ? this.Xl = !0 : (this.Xl = !1, this.An = a && a != this.$ ? c.Dm(this.Ve(), a.An) : this.Ve());
  8326. this.dirty = this.fi = !1
  8327. }
  8328. this.dj && this.mh(this.u, c.t.og.Ff)
  8329. }, p.M = function(a, b, d) {
  8330. c.assert(a, c.f.oT);
  8331. null == b && (b = a.Jb);
  8332. null == d && (d = a.tag);
  8333. c.la.prototype.M.call(this, a, b, d);
  8334. this.dj = !0
  8335. }, p.Fa = function(a) {
  8336. c.la.prototype.Fa.call(this, a);
  8337. this.ji()
  8338. }, p.Va = function(a) {
  8339. var b = this.color;
  8340. if (b.r !== a.r || b.g !== a.g || b.b !== a.b) c.la.prototype.Va.call(this, a), this.yl(), this.ji()
  8341. }, p.bc = function(a) {
  8342. var b = this.color;
  8343. c.la.prototype.bc.call(this, a);
  8344. a = this.Ma;
  8345. if (b.r !== a.r || b.g !== a.g || b.b !== a.b) this.yl(), this.ji()
  8346. }, p.xm = function(a) {
  8347. var b = this;
  8348. "string" == typeof a && (a = c.Zk.wj(a), c.assert(a, c.f.tT));
  8349. b.Sa(!0);
  8350. var d = a.oa;
  8351. b.qi.x = d.x;
  8352. b.qi.y = d.y;
  8353. b.rd = a.Le;
  8354. var d = a.Ua(),
  8355. e = a.sa;
  8356. e || (b.sa = !1, a.ue(function(a) {
  8357. b.sa = !0;
  8358. var d = a.Ua();
  8359. d != b.O && (b.texture = d);
  8360. b.Hb(a.zi(), a.Le, a.Qf);
  8361. b.me()
  8362. }, b));
  8363. d != b.O && (b.texture = d);
  8364. b.rd && (b.Je = d);
  8365. b.Hb(a.zi(), b.rd, a.Qf);
  8366. b.bx = !1;
  8367. e && (a = b.color, 255 === a.r && 255 === a.g && 255 === a.b || b.yl())
  8368. }, p.uQ = function(a) {
  8369. return a.Ua() != this.O ? !1 : c.nR(a.zi(), this.ba)
  8370. }, p.wm = function(a) {
  8371. (this.$ = a) ? (this.An = {
  8372. a: 1,
  8373. b: 0,
  8374. C: 0,
  8375. D: 1,
  8376. xa: 0,
  8377. ya: 0
  8378. }, this.textureAtlas = this.$.textureAtlas) : (this.atlasIndex = c.P.pB, this.textureAtlas = null, this.dirty = this.fi = !1)
  8379. }, p.zb = function(a) {
  8380. a && "string" === typeof a ? (a = c.Ka.Qc(a), this.zb(a), a = a.ve(), this.Hb(c.rect(0, 0, a.width, a.height))) : (c.assert(!a || a instanceof c.ia, c.f.uT), this.O != a && (a && a.Ob instanceof HTMLImageElement && (this.Je = a), this.O = a))
  8381. }, p.Y = function(a) {
  8382. if (this.sa) {
  8383. a = a || c.m;
  8384. this.Gp && (a.globalCompositeOperation = "lighter");
  8385. var b = c.view.ma,
  8386. d = c.view.Na;
  8387. a.globalAlpha = this.Ia / 255;
  8388. var e = this.ba,
  8389. f = this.S,
  8390. g = this.Pb,
  8391. h = this.rD,
  8392. k = 0 | g.x,
  8393. m = -g.y - e.height,
  8394. n = this.Wp;
  8395. h.width = e.width * b;
  8396. h.height = e.height * d;
  8397. if (this.dc || this.ec) a.save(), this.dc && (k = -g.x - e.width, a.scale(-1, 1)), this.ec && (m = g.y, a.scale(1, -1));
  8398. k *= b;
  8399. m *= d;
  8400. this.O && n.vr ? (f = this.O.Ob, this.bx ? a.drawImage(f, 0, 0, n.width, n.height, k, m, h.width, h.height) : a.drawImage(f, n.x, n.y, n.width, n.height, k, m, h.width, h.height)) : !this.O && n.vr && (h = this.color, a.fillStyle = "rgba(" + h.r + "," + h.g + "," + h.b + ",1)", a.fillRect(k, m, f.width * b, f.height * d));
  8401. 1 === c.hl || this.mF ? (a.strokeStyle = "rgba(0,255,0,1)", k /= b, m = -(m / d), k = [c.d(k, m), c.d(k + e.width, m), c.d(k + e.width, m - e.height), c.d(k, m - e.height)], c.jf.$d(k, 4, !0)) : 2 === c.hl && (a.strokeStyle = "rgba(0,255,0,1)", b = this.ba, m = -m, k = [c.d(k, m), c.d(k + b.width, m), c.d(k + b.width, m - b.height), c.d(k, m - b.height)], c.jf.$d(k, 4, !0));
  8402. (this.dc || this.ec) && a.restore();
  8403. c.Lg++
  8404. }
  8405. }, delete p) : (c.assert("function" === typeof c.H.HC, c.f.cd, "SpritesWebGL.js"), c.H.HC(), delete c.H.HC);
  8406. c.assert("function" === typeof c.H.OB, c.f.cd, "SpritesPropertyDefine.js");
  8407. c.H.OB();
  8408. delete c.H.OB;
  8409. c.$A = 29;
  8410. c.ng = c.t.extend({
  8411. textureAtlas: null,
  8412. q: null,
  8413. Wd: null,
  8414. ob: "SpriteBatchNode",
  8415. g1: function(a, b, d) {
  8416. c.assert(a, c.f.cW);
  8417. if (!(a instanceof c.P)) return c.log(c.f.bW), null;
  8418. a.atlasIndex = b;
  8419. var e = 0,
  8420. f = this.Wd;
  8421. if (f && 0 < f.length) for (var g = 0; g < f.length; g++) {
  8422. var h = f[g];
  8423. h && h.atlasIndex >= b && ++e
  8424. }
  8425. f.splice(e, 0, a);
  8426. c.t.prototype.M.call(this, a, b, d);
  8427. this.tR(!1);
  8428. return this
  8429. },
  8430. bH: function() {
  8431. return this.textureAtlas
  8432. },
  8433. xI: function(a) {
  8434. a != this.textureAtlas && (this.textureAtlas = a)
  8435. },
  8436. j3: function() {
  8437. return this.Wd
  8438. },
  8439. mm: function(a, b) {
  8440. var d = c.Ka.uo(a);
  8441. d || (d = c.Ka.Qc(a));
  8442. return this.pa(d, b)
  8443. },
  8444. ji: function() {
  8445. this.nh = !0
  8446. },
  8447. K: function(a, b) {
  8448. var d = c.Ka.uo(a);
  8449. d || (d = c.Ka.Qc(a));
  8450. return this.pa(d, b)
  8451. },
  8452. tz: function() {
  8453. var a = this.textureAtlas.capacity,
  8454. b = Math.floor(4 * (a + 1) / 3);
  8455. c.log(c.f.dW, a, b);
  8456. this.textureAtlas.aI(b) || c.log(c.f.eW)
  8457. },
  8458. L6: function(a, b) {
  8459. this.removeChild(this.u[a], b)
  8460. },
  8461. mR: function(a, b) {
  8462. var d = a.children;
  8463. if (d && 0 < d.length) for (var e = 0; e < d.length; e++) {
  8464. var f = d[e];
  8465. f && 0 > f.zIndex && (b = this.mR(f, b))
  8466. }!a == this && (a.atlasIndex = b, b++);
  8467. if (d && 0 < d.length) for (e = 0; e < d.length; e++)(f = d[e]) && 0 <= f.zIndex && (b = this.mR(f, b));
  8468. return b
  8469. },
  8470. lH: function(a) {
  8471. var b = a.children;
  8472. return b && 0 != b.length ? this.lH(b[b.length - 1]) : a.atlasIndex
  8473. },
  8474. F5: function(a) {
  8475. var b = a.children;
  8476. return b && 0 != b.length ? this.F5(b[b.length - 1]) : a.atlasIndex
  8477. },
  8478. y1: function(a, b) {
  8479. var d = a.parent,
  8480. e = d.children,
  8481. f = e.indexOf(a),
  8482. g = null;
  8483. 0 < f && f < c.sC && (g = e[f - 1]);
  8484. return d == this ? 0 == f ? 0 : this.lH(g) + 1 : 0 == f ? 0 > b ? d.atlasIndex : d.atlasIndex + 1 : 0 > g.zIndex && 0 > b || 0 <= g.zIndex && 0 <= b ? this.lH(g) + 1 : d.atlasIndex + 1
  8485. },
  8486. tR: function(a) {
  8487. this.se = a
  8488. },
  8489. zf: function(a, b) {
  8490. this.q = void 0 === b ? a : {
  8491. src: a,
  8492. W: b
  8493. }
  8494. },
  8495. xi: function() {
  8496. return this.q
  8497. },
  8498. ar: function(a, b) {
  8499. c.assert(a, c.f.hW); - 1 === this.u.indexOf(a) ? c.log(c.f.gW) : b !== a.zIndex && (c.t.prototype.ar.call(this, a, b), this.Sa())
  8500. },
  8501. removeChild: function(a, b) {
  8502. null != a && (-1 === this.u.indexOf(a) ? c.log(c.f.fW) : (this.no(a), c.t.prototype.removeChild.call(this, a, b)))
  8503. },
  8504. b_: null,
  8505. bm: null,
  8506. mca: !1,
  8507. Je: null,
  8508. ctor: null,
  8509. Us: function(a, b) {
  8510. c.t.prototype.ctor.call(this);
  8511. var d;
  8512. b = b || c.$A;
  8513. "string" == typeof a ? (d = c.Ka.uo(a)) || (d = c.Ka.Qc(a)) : a instanceof c.ia && (d = a);
  8514. d && this.pa(d, b)
  8515. },
  8516. Vs: function(a, b) {
  8517. c.t.prototype.ctor.call(this);
  8518. this.b_ = new c.ga;
  8519. var d;
  8520. b = b || c.$A;
  8521. "string" == typeof a ? (d = c.Ka.uo(a)) || (d = c.Ka.Qc(a)) : a instanceof c.ia && (d = a);
  8522. d && this.pa(d, b)
  8523. },
  8524. LS: null,
  8525. S0: function(a, b) {
  8526. c.assert(a, c.f.vT);
  8527. a instanceof c.P ? (a.batchNode = this, a.atlasIndex = b, a.dirty = !0, a.Ff()) : c.log(c.f.YA)
  8528. },
  8529. T0: function(a, b) {
  8530. c.assert(a, c.f.YA);
  8531. if (a instanceof c.P) {
  8532. for (var d = this.textureAtlas.capacity; b >= d || d == this.textureAtlas.totalQuads;) this.tz();
  8533. a.batchNode = this;
  8534. a.atlasIndex = b;
  8535. a.dirty = !0;
  8536. a.Ff()
  8537. } else c.log(c.f.YA)
  8538. },
  8539. am: function(a, b) {
  8540. var d = this.Wd,
  8541. e = this.textureAtlas,
  8542. f = e.quads,
  8543. g = d[a],
  8544. h = c.TK(f[a]);
  8545. d[b].atlasIndex = a;
  8546. d[a] = d[b];
  8547. e.OA(f[b], a);
  8548. d[b] = g;
  8549. e.OA(h, b)
  8550. },
  8551. yz: null,
  8552. MZ: function(a, b) {
  8553. c.assert(a, c.f.sT);
  8554. a instanceof c.P ? (a.batchNode = this, a.atlasIndex = b, a.dirty = !0, a.Ff(), this.u.splice(b, 0, a)) : c.log(c.f.rT)
  8555. },
  8556. NZ: function(a, b) {
  8557. c.assert(a, c.f.wW);
  8558. if (a instanceof c.P) {
  8559. for (var d = this.textureAtlas; b >= d.capacity || d.capacity === d.totalQuads;) this.tz();
  8560. a.batchNode = this;
  8561. a.atlasIndex = b;
  8562. d.vH(a.quad, b);
  8563. a.dirty = !0;
  8564. a.Ff()
  8565. } else c.log(c.f.vW)
  8566. },
  8567. eO: function(a, b) {
  8568. var d = 0,
  8569. e = a.children;
  8570. e && (d = e.length);
  8571. var f = 0;
  8572. if (0 === d) f = a.atlasIndex, a.atlasIndex = b, a.arrivalOrder = 0, f != b && this.am(f, b), b++;
  8573. else {
  8574. f = !0;
  8575. 0 <= e[0].zIndex && (f = a.atlasIndex, a.atlasIndex = b, a.arrivalOrder = 0, f != b && this.am(f, b), b++, f = !1);
  8576. for (d = 0; d < e.length; d++) {
  8577. var g = e[d];
  8578. f && 0 <= g.zIndex && (f = a.atlasIndex, a.atlasIndex = b, a.arrivalOrder = 0, f != b && this.am(f, b), b++, f = !1);
  8579. b = this.eO(g, b)
  8580. }
  8581. f && (f = a.atlasIndex, a.atlasIndex = b, a.arrivalOrder = 0, f != b && this.am(f, b), b++)
  8582. }
  8583. return b
  8584. },
  8585. Gg: function() {
  8586. this.textureAtlas.texture.xj() || (this.q.src = c.SRC_ALPHA, this.q.W = c.ONE_MINUS_SRC_ALPHA)
  8587. },
  8588. pa: null,
  8589. UD: function(a) {
  8590. this.u = [];
  8591. this.Wd = [];
  8592. this.q = new c.cl(c.vc, c.uc);
  8593. this.bm = this.Je = a;
  8594. return !0
  8595. },
  8596. VD: function(a, b) {
  8597. this.u = [];
  8598. this.Wd = [];
  8599. this.q = new c.cl(c.vc, c.uc);
  8600. b = b || c.$A;
  8601. this.textureAtlas = new c.ml;
  8602. this.textureAtlas.pa(a, b);
  8603. this.Gg();
  8604. this.shaderProgram = c.ge.Dc(c.Zj);
  8605. return !0
  8606. },
  8607. uH: function(a, b) {
  8608. a.batchNode = this;
  8609. a.atlasIndex = b;
  8610. a.dirty = !0;
  8611. var d = this.textureAtlas;
  8612. d.totalQuads >= d.capacity && this.tz();
  8613. d.vH(a.quad, b);
  8614. this.Wd.splice(b, 0, a);
  8615. var d = b + 1,
  8616. e = this.Wd;
  8617. if (e && 0 < e.length) for (; d < e.length; d++) e[d].atlasIndex++;
  8618. var e = a.children,
  8619. f;
  8620. if (e) for (d = 0, l = e.length || 0; d < l; d++)(f = e[d]) && this.uH(f, this.y1(f, f.zIndex))
  8621. },
  8622. appendChild: null,
  8623. SX: function(a) {
  8624. this.se = !0;
  8625. a.batchNode = this;
  8626. a.dirty = !0;
  8627. this.Wd.push(a);
  8628. a.atlasIndex = this.Wd.length - 1;
  8629. a = a.children;
  8630. for (var b = 0, d = a.length || 0; b < d; b++) this.appendChild(a[b])
  8631. },
  8632. TX: function(a) {
  8633. this.se = !0;
  8634. a.batchNode = this;
  8635. a.dirty = !0;
  8636. this.Wd.push(a);
  8637. var b = this.Wd.length - 1;
  8638. a.atlasIndex = b;
  8639. var d = this.textureAtlas;
  8640. d.totalQuads == d.capacity && this.tz();
  8641. d.vH(a.quad, b);
  8642. a = a.children;
  8643. b = 0;
  8644. for (d = a.length || 0; b < d; b++) this.appendChild(a[b])
  8645. },
  8646. no: null,
  8647. F_: function(a) {
  8648. a.batchNode = null;
  8649. var b = this.Wd,
  8650. d = b.indexOf(a);
  8651. if (-1 != d) {
  8652. b.splice(d, 1);
  8653. for (var e = b.length; d < e; ++d) b[d].atlasIndex--
  8654. }
  8655. if (a = a.children) for (b = 0, d = a.length || 0; b < d; b++) a[b] && this.no(a[b])
  8656. },
  8657. G_: function(a) {
  8658. this.textureAtlas.sR(a.atlasIndex);
  8659. a.batchNode = null;
  8660. var b = this.Wd,
  8661. d = b.indexOf(a);
  8662. if (-1 != d) {
  8663. b.splice(d, 1);
  8664. for (var e = b.length; d < e; ++d) b[d].atlasIndex--
  8665. }
  8666. if (a = a.children) for (b = 0, d = a.length || 0; b < d; b++) a[b] && this.no(a[b])
  8667. },
  8668. Ua: null,
  8669. jt: function() {
  8670. return this.bm
  8671. },
  8672. ND: function() {
  8673. return this.textureAtlas.texture
  8674. },
  8675. zb: null,
  8676. jF: function(a) {
  8677. this.bm = a;
  8678. for (var b = this.u, d = 0; d < b.length; d++) b[d].texture = a
  8679. },
  8680. kF: function(a) {
  8681. this.textureAtlas.texture = a;
  8682. this.Gg()
  8683. },
  8684. U: null,
  8685. Cn: function(a) {
  8686. var b = a || c.m;
  8687. if (this.Ja) {
  8688. b.save();
  8689. this.transform(a);
  8690. var d = this.u;
  8691. if (d) for (this.jd(), a = 0; a < d.length; a++) d[a] && d[a].U(b);
  8692. b.restore()
  8693. }
  8694. },
  8695. ju: function(a) {
  8696. a = a || c.m;
  8697. if (this.Ja) {
  8698. c.eo();
  8699. var b = this.grid;
  8700. b && b.fg() && (b.ru(), this.KA());
  8701. this.jd();
  8702. this.transform(a);
  8703. this.Y(a);
  8704. b && b.fg() && b.nu(this);
  8705. c.co();
  8706. this.arrivalOrder = 0
  8707. }
  8708. },
  8709. M: null,
  8710. OC: function(a, b, d) {
  8711. c.assert(null != a, c.f.pT);
  8712. a instanceof c.P ? (b = null == b ? a.zIndex : b, d = null == d ? a.tag : d, c.t.prototype.M.call(this, a, b, d), this.appendChild(a), this.Sa()) : c.log(c.f.nT)
  8713. },
  8714. QX: function(a, b, d) {
  8715. c.assert(null != a, c.f.oW);
  8716. a instanceof c.P ? a.texture != this.textureAtlas.texture ? c.log(c.f.nW) : (b = null == b ? a.zIndex : b, d = null == d ? a.tag : d, c.t.prototype.M.call(this, a, b, d), this.appendChild(a), this.Sa()) : c.log(c.f.mW)
  8717. },
  8718. Sg: null,
  8719. D_: function(a) {
  8720. var b = this.Wd;
  8721. if (b && 0 < b.length) for (var d = 0, e = b.length; d < e; d++) b[d] && (b[d].batchNode = null);
  8722. c.t.prototype.Sg.call(this, a);
  8723. this.Wd.length = 0
  8724. },
  8725. E_: function(a) {
  8726. var b = this.Wd;
  8727. if (b && 0 < b.length) for (var d = 0, e = b.length; d < e; d++) b[d] && (b[d].batchNode = null);
  8728. c.t.prototype.Sg.call(this, a);
  8729. this.Wd.length = 0;
  8730. this.textureAtlas.qR()
  8731. },
  8732. jd: null,
  8733. y0: function() {
  8734. if (this.se) {
  8735. var a, b = 0,
  8736. d = this.u,
  8737. e = d.length,
  8738. f;
  8739. for (a = 1; a < e; a++) {
  8740. var g = d[a],
  8741. b = a - 1;
  8742. for (f = d[b]; 0 <= b && (g.Jb < f.Jb || g.Jb == f.Jb && g.arrivalOrder < f.arrivalOrder);) d[b + 1] = f, b -= 1, f = d[b];
  8743. d[b + 1] = g
  8744. }
  8745. 0 < d.length && this.mh(d, c.t.og.jd);
  8746. this.se = !1
  8747. }
  8748. },
  8749. z0: function() {
  8750. if (this.se) {
  8751. var a = this.u,
  8752. b, d = 0,
  8753. e = a.length,
  8754. f;
  8755. for (b = 1; b < e; b++) {
  8756. var g = a[b],
  8757. d = b - 1;
  8758. for (f = a[d]; 0 <= d && (g.Jb < f.Jb || g.Jb == f.Jb && g.arrivalOrder < f.arrivalOrder);) a[d + 1] = f, d -= 1, f = a[d];
  8759. a[d + 1] = g
  8760. }
  8761. if (0 < a.length) for (this.mh(a, c.t.og.jd), b = d = 0; b < a.length; b++) d = this.eO(a[b], d);
  8762. this.se = !1
  8763. }
  8764. },
  8765. Y: null,
  8766. fk: function() {
  8767. 0 !== this.textureAtlas.totalQuads && (this.Sb.$c(), this.Sb.Ef(), this.mh(this.u, c.t.og.Ff), c.Ai(this.q.src, this.q.W), this.textureAtlas.cP())
  8768. }
  8769. });
  8770. p = c.ng.prototype;
  8771. c.F === c.ea ? (p.ctor = p.Vs, p.LS = p.T0, p.yz = p.NZ, p.pa = p.VD, p.appendChild = p.TX, p.no = p.G_, p.Ua = p.ND, p.zb = p.kF, p.U = p.ju, p.M = p.QX, p.Sg = p.E_, p.jd = p.z0, p.Y = p.fk) : (p.ctor = p.Us, p.LS = p.S0, p.yz = p.MZ, p.pa = p.UD, p.appendChild = p.SX, p.no = p.F_, p.Ua = p.jt, p.zb = p.jF, p.U = p.Cn, p.Sg = p.D_, p.M = p.OC, p.jd = p.y0, p.Y = c.t.prototype.Y);
  8772. c.i(p, "texture", p.Ua, p.zb);
  8773. c.i(p, "descendants", p.j3);
  8774. c.ng.create = function(a, b) {
  8775. return new c.ng(a, b)
  8776. };
  8777. c.kT = c.P.extend({
  8778. Be: null,
  8779. gf: null,
  8780. ctor: function() {
  8781. c.P.prototype.ctor.call(this);
  8782. var a = document.createElement("canvas");
  8783. a.width = a.height = 10;
  8784. this.Be = a;
  8785. this.gf = a.getContext("2d");
  8786. var b = new c.ia;
  8787. b.Ld(a);
  8788. b.$b();
  8789. this.zb(b)
  8790. },
  8791. ifa: function() {
  8792. return this.gf
  8793. },
  8794. hfa: function() {
  8795. return this.Be
  8796. },
  8797. vR: function(a, b) {
  8798. void 0 === b && (b = a.height, a = a.width);
  8799. var d = this.Be;
  8800. d.width = a;
  8801. d.height = b;
  8802. this.Ua().$b();
  8803. this.Hb(c.rect(0, 0, a, b), !1)
  8804. }
  8805. });
  8806. c.eh = c.qa.extend({
  8807. Qp: null,
  8808. oe: 0,
  8809. bq: null,
  8810. ctor: function(a, b, d) {
  8811. this.Qp = a || null;
  8812. this.oe = b || 0;
  8813. this.bq = d || null
  8814. },
  8815. k: function() {
  8816. var a = new c.eh;
  8817. a.Ah(this.Qp.k(), this.oe, this.bq);
  8818. return a
  8819. },
  8820. Xy: function() {
  8821. return c.k(this)
  8822. },
  8823. copy: function() {
  8824. var a = new c.eh;
  8825. a.Ah(this.Qp.k(), this.oe, this.bq);
  8826. return a
  8827. },
  8828. Ah: function(a, b, d) {
  8829. this.Qp = a;
  8830. this.oe = b;
  8831. this.bq = d;
  8832. return !0
  8833. },
  8834. wj: function() {
  8835. return this.Qp
  8836. },
  8837. xm: function(a) {
  8838. this.Qp = a
  8839. },
  8840. wfa: function() {
  8841. return this.oe
  8842. },
  8843. fna: function(a) {
  8844. this.oe = a
  8845. },
  8846. zha: function() {
  8847. return this.bq
  8848. },
  8849. Moa: function(a) {
  8850. this.bq = a
  8851. }
  8852. });
  8853. c.eh.create = function(a, b, d) {
  8854. return new c.eh(a, b, d)
  8855. };
  8856. c.Em = c.qa.extend({
  8857. pe: null,
  8858. lk: 0,
  8859. qn: !1,
  8860. p: 0,
  8861. oe: 0,
  8862. rj: 0,
  8863. ctor: function(a, b, d) {
  8864. this.pe = [];
  8865. if (void 0 === a) this.pQ(null, 0);
  8866. else {
  8867. var e = a[0];
  8868. e && (e instanceof c.If ? this.pQ(a, b, d) : e instanceof c.eh && this.uz(a, b, d))
  8869. }
  8870. },
  8871. Tfa: function() {
  8872. return this.pe
  8873. },
  8874. rna: function(a) {
  8875. this.pe = a
  8876. },
  8877. eG: function(a) {
  8878. var b = new c.eh;
  8879. b.Ah(a, 1, null);
  8880. this.pe.push(b);
  8881. this.rj++
  8882. },
  8883. xca: function(a) {
  8884. a = c.Ka.Qc(a);
  8885. var b = c.rect(0, 0, 0, 0);
  8886. b.width = a.width;
  8887. b.height = a.height;
  8888. a = c.If.create(a, b);
  8889. this.eG(a)
  8890. },
  8891. yca: function(a, b) {
  8892. var d = c.If.create(a, b);
  8893. this.eG(d)
  8894. },
  8895. uz: function(a, b, d) {
  8896. c.gq(a, c.eh);
  8897. this.oe = b;
  8898. this.lk = void 0 === d ? 1 : d;
  8899. this.rj = 0;
  8900. b = this.pe;
  8901. for (d = b.length = 0; d < a.length; d++) {
  8902. var e = a[d];
  8903. b.push(e);
  8904. this.rj += e.oe
  8905. }
  8906. return !0
  8907. },
  8908. k: function() {
  8909. var a = new c.Em;
  8910. a.uz(this.sL(), this.oe, this.lk);
  8911. a.DA(this.qn);
  8912. return a
  8913. },
  8914. Xy: function() {
  8915. var a = new c.Em;
  8916. a.uz(this.sL(), this.oe, this.lk);
  8917. a.DA(this.qn);
  8918. return a
  8919. },
  8920. sL: function() {
  8921. for (var a = [], b = 0; b < this.pe.length; b++) a.push(this.pe[b].k());
  8922. return a
  8923. },
  8924. copy: function() {
  8925. return this.Xy(null)
  8926. },
  8927. iga: function() {
  8928. return this.lk
  8929. },
  8930. Ena: function(a) {
  8931. this.lk = a
  8932. },
  8933. DA: function(a) {
  8934. this.qn = a
  8935. },
  8936. Rga: function() {
  8937. return this.qn
  8938. },
  8939. zq: function() {
  8940. return this.rj * this.oe
  8941. },
  8942. vfa: function() {
  8943. return this.oe
  8944. },
  8945. ena: function(a) {
  8946. this.oe = a
  8947. },
  8948. sha: function() {
  8949. return this.rj
  8950. },
  8951. pQ: function(a, b, d) {
  8952. c.gq(a, c.If);
  8953. this.lk = void 0 === d ? 1 : d;
  8954. this.oe = b || 0;
  8955. this.rj = 0;
  8956. b = this.pe;
  8957. b.length = 0;
  8958. if (a) {
  8959. for (d = 0; d < a.length; d++) {
  8960. var e = a[d],
  8961. f = new c.eh;
  8962. f.Ah(e, 1, null);
  8963. b.push(f)
  8964. }
  8965. this.rj += a.length
  8966. }
  8967. return !0
  8968. },
  8969. nA: function() {},
  8970. Lj: function() {}
  8971. });
  8972. c.Em.create = function(a, b, d) {
  8973. return new c.Em(a, b, d)
  8974. };
  8975. c.Ky = {
  8976. To: {},
  8977. lO: function(a, b) {
  8978. this.To[b] = a
  8979. },
  8980. gma: function(a) {
  8981. a && this.To[a] && delete this.To[a]
  8982. },
  8983. nP: function(a) {
  8984. return this.To[a] ? this.To[a] : null
  8985. },
  8986. PX: function(a, b) {
  8987. var d = a.animations;
  8988. if (d) {
  8989. var e = 1,
  8990. f = a.properties;
  8991. if (f) for (var e = null != f.format ? parseInt(f.format) : e, f = f.spritesheets, g = c.Zk, h = c.path, k = 0; k < f.length; k++) g.f1(h.kq(b, f[k]));
  8992. switch (e) {
  8993. case 1:
  8994. this.u_(d);
  8995. break;
  8996. case 2:
  8997. this.v_(d);
  8998. break;
  8999. default:
  9000. c.log(c.f.n1)
  9001. }
  9002. } else c.log(c.f.m1)
  9003. },
  9004. qca: function(a) {
  9005. c.assert(a, c.f.v1);
  9006. var b = c.X.be(a);
  9007. b ? this.PX(b, a) : c.log(c.f.u1)
  9008. },
  9009. u_: function(a) {
  9010. var b = c.Zk,
  9011. d;
  9012. for (d in a) {
  9013. var e = a[d],
  9014. f = e.frames,
  9015. e = parseFloat(e.delay) || 0,
  9016. g = null;
  9017. if (f) {
  9018. for (var g = [], h = 0; h < f.length; h++) {
  9019. var k = b.wj(f[h]);
  9020. if (k) {
  9021. var m = new c.eh;
  9022. m.Ah(k, 1, null);
  9023. g.push(m)
  9024. } else c.log(c.f.p1, d, f[h])
  9025. }
  9026. 0 === g.length ? c.log(c.f.q1, d) : (g.length != f.length && c.log(c.f.r1, d), g = c.Em.create(g, e, 1), c.Ky.lO(g, d))
  9027. } else c.log(c.f.o1, d)
  9028. }
  9029. },
  9030. v_: function(a) {
  9031. var b = c.Zk,
  9032. d;
  9033. for (d in a) {
  9034. var e = a[d],
  9035. f = parseInt(e.loops),
  9036. f = e.loop ? c.js : isNaN(f) ? 1 : f,
  9037. g = e.restoreOriginalFrame && !0 == e.restoreOriginalFrame ? !0 : !1,
  9038. h = e.frames;
  9039. if (h) {
  9040. for (var k = [], m = 0; m < h.length; m++) {
  9041. var n = h[m],
  9042. q = n.spriteframe,
  9043. r = b.wj(q);
  9044. if (r) {
  9045. var q = parseFloat(n.delayUnits) || 0,
  9046. n = n.notification,
  9047. t = new c.eh;
  9048. t.Ah(r, q, n);
  9049. k.push(t)
  9050. } else c.log(c.f.t1, d, q)
  9051. }
  9052. e = parseFloat(e.delayPerUnit) || 0;
  9053. h = new c.Em;
  9054. h.uz(k, e, f);
  9055. h.DA(g);
  9056. c.Ky.lO(h, d)
  9057. } else c.log(c.f.s1, d)
  9058. }
  9059. },
  9060. zl: function() {
  9061. this.To = {}
  9062. }
  9063. };
  9064. c.If = c.qa.extend({
  9065. oa: null,
  9066. Qf: null,
  9067. of: null,
  9068. Le: !1,
  9069. ba: null,
  9070. zg: null,
  9071. Ag: null,
  9072. O: null,
  9073. Vp: "",
  9074. sa: !1,
  9075. sx: null,
  9076. ctor: function(a, b, d, e, f) {
  9077. this.oa = c.d(0, 0);
  9078. this.zg = c.d(0, 0);
  9079. this.Qf = c.size(0, 0);
  9080. this.Le = !1;
  9081. this.Ag = c.size(0, 0);
  9082. this.Vp = "";
  9083. this.O = null;
  9084. this.sa = !1;
  9085. void 0 !== a && void 0 !== b && (void 0 === d || void 0 === e || void 0 === f ? this.pa(a, b) : this.pa(a, b, d, e, f))
  9086. },
  9087. Fv: function() {
  9088. return this.sa
  9089. },
  9090. ue: function(a, b) {
  9091. null == this.sx && (this.sx = []);
  9092. this.sx.push({
  9093. wi: a,
  9094. Kg: b
  9095. })
  9096. },
  9097. me: function() {
  9098. var a = this.sx;
  9099. if (a) {
  9100. for (var b = 0, d = a.length; b < d; b++) {
  9101. var e = a[b];
  9102. e.wi.call(e.Kg, this)
  9103. }
  9104. a.length = 0
  9105. }
  9106. },
  9107. P3: function() {
  9108. var a = this.of;
  9109. return c.rect(a.x, a.y, a.width, a.height)
  9110. },
  9111. boa: function(a) {
  9112. this.of || (this.of = c.rect(0, 0, 0, 0));
  9113. this.of.x = a.x;
  9114. this.of.y = a.y;
  9115. this.of.width = a.width;
  9116. this.of.height = a.height;
  9117. this.ba = c.Sk(a)
  9118. },
  9119. nia: function() {
  9120. return this.Le
  9121. },
  9122. doa: function(a) {
  9123. this.Le = a
  9124. },
  9125. zi: function() {
  9126. var a = this.ba;
  9127. return c.rect(a.x, a.y, a.width, a.height)
  9128. },
  9129. XR: function(a) {
  9130. this.ba || (this.ba = c.rect(0, 0, 0, 0));
  9131. this.ba.x = a.x;
  9132. this.ba.y = a.y;
  9133. this.ba.width = a.width;
  9134. this.ba.height = a.height;
  9135. this.of = c.sv(this.ba)
  9136. },
  9137. uga: function() {
  9138. return this.zg
  9139. },
  9140. Nna: function(a) {
  9141. this.zg.x = a.x;
  9142. this.zg.y = a.y;
  9143. c.wE(this.zg, this.oa)
  9144. },
  9145. Aga: function() {
  9146. return this.Ag
  9147. },
  9148. Rna: function(a) {
  9149. this.Ag.width = a.width;
  9150. this.Ag.height = a.height
  9151. },
  9152. zga: function() {
  9153. return this.Qf
  9154. },
  9155. Qna: function(a) {
  9156. this.Qf.width = a.width;
  9157. this.Qf.height = a.height
  9158. },
  9159. Ua: function() {
  9160. if (this.O) return this.O;
  9161. if ("" !== this.Vp) {
  9162. var a = c.Ka.Qc(this.Vp);
  9163. a && (this.sa = a.Kc);
  9164. return a
  9165. }
  9166. return null
  9167. },
  9168. zb: function(a) {
  9169. if (this.O != a) {
  9170. var b = a.Kc;
  9171. this.sa = b;
  9172. this.O = a;
  9173. b || a.ue(function(a) {
  9174. this.sa = !0;
  9175. if (this.Le && c.F === c.Ha) {
  9176. var b = a.Ob,
  9177. b = c.EG(b, this.zi()),
  9178. f = new c.ia;
  9179. f.Ld(b);
  9180. f.$b();
  9181. this.zb(f);
  9182. b = this.zi();
  9183. this.XR(c.rect(0, 0, b.width, b.height))
  9184. }
  9185. b = this.ba;
  9186. 0 === b.width && 0 === b.height && (b = a.width, a = a.height, this.ba.width = b, this.ba.height = a, this.of = c.sv(this.ba), this.Ag.width = this.of.width, this.Ag.height = this.of.height, this.Qf.width = b, this.Qf.height = a);
  9187. this.me()
  9188. }, this)
  9189. }
  9190. },
  9191. zP: function() {
  9192. return this.oa
  9193. },
  9194. BA: function(a) {
  9195. this.oa.x = a.x;
  9196. this.oa.y = a.y
  9197. },
  9198. k: function() {
  9199. var a = new c.If;
  9200. a.pa(this.Vp, this.of, this.Le, this.zg, this.Ag);
  9201. a.zb(this.O);
  9202. return a
  9203. },
  9204. Xy: function() {
  9205. var a = new c.If;
  9206. a.pa(this.Vp, this.of, this.Le, this.zg, this.Ag);
  9207. a.zb(this.O);
  9208. return a
  9209. },
  9210. copy: function() {
  9211. return this.Xy()
  9212. },
  9213. pa: function(a, b, d, e, f) {
  9214. 2 === arguments.length && (b = c.sv(b));
  9215. e = e || c.d(0, 0);
  9216. f = f || b;
  9217. d = d || !1;
  9218. "string" == typeof a ? (this.O = null, this.Vp = a) : a instanceof c.ia && this.zb(a);
  9219. if (a = this.Ua()) {
  9220. var g, h;
  9221. d ? (g = b.x + b.height, h = b.y + b.width) : (g = b.x + b.width, h = b.y + b.height);
  9222. g > a.width && c.error(c.f.UB, a.url);
  9223. h > a.height && c.error(c.f.TB, a.url)
  9224. }
  9225. this.of = b;
  9226. this.ba = c.Sk(b);
  9227. this.zg.x = e.x;
  9228. this.zg.y = e.y;
  9229. c.wE(e, this.oa);
  9230. this.Ag.width = f.width;
  9231. this.Ag.height = f.height;
  9232. c.RN(f, this.Qf);
  9233. this.Le = d;
  9234. return !0
  9235. }
  9236. });
  9237. c.If.create = function(a, b, d, e, f) {
  9238. return new c.If(a, b, d, e, f)
  9239. };
  9240. c.If.Lba = function(a, b, d, e, f) {
  9241. var g = new c.If;
  9242. g.O = a;
  9243. g.of = b;
  9244. g.ba = c.Sk(b);
  9245. g.zg.x = e.x;
  9246. g.zg.y = e.y;
  9247. c.wE(g.zg, g.oa);
  9248. g.Ag.width = f.width;
  9249. g.Ag.height = f.height;
  9250. c.RN(g.Ag, g.Qf);
  9251. g.Le = d;
  9252. return g
  9253. };
  9254. c.Zk = {
  9255. $K: /^\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*$/,
  9256. BX: /^\s*\{\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*,\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*\}\s*$/,
  9257. mi: {},
  9258. xk: {},
  9259. vp: {},
  9260. pN: function(a) {
  9261. return (a = this.BX.exec(a)) ? c.rect(parseFloat(a[1]), parseFloat(a[2]), parseFloat(a[3]), parseFloat(a[4])) : c.rect(0, 0, 0, 0)
  9262. },
  9263. fN: function(a) {
  9264. return (a = this.$K.exec(a)) ? c.d(parseFloat(a[1]), parseFloat(a[2])) : c.d(0, 0)
  9265. },
  9266. nF: function(a) {
  9267. return (a = this.$K.exec(a)) ? c.size(parseFloat(a[1]), parseFloat(a[2])) : c.size(0, 0)
  9268. },
  9269. aZ: function(a) {
  9270. var b = c.X.be(a);
  9271. c.assert(b, c.f.z8, a);
  9272. c.X.Lj(a);
  9273. if (b.Cp) return this.vp[a] = b;
  9274. var d = b.frames,
  9275. e = b.metadata || b.meta,
  9276. b = {},
  9277. f = {},
  9278. g = 0;
  9279. e && (g = e.format, g = 1 >= g.length ? parseInt(g) : g, f.s4 = e.textureFileName || e.textureFileName || e.image);
  9280. for (var h in d) {
  9281. var k = d[h];
  9282. if (k) {
  9283. e = {};
  9284. if (0 == g) {
  9285. e.rect = c.rect(k.x, k.y, k.width, k.height);
  9286. e.qA = !1;
  9287. e.offset = c.d(k.offsetX, k.offsetY);
  9288. var m = k.originalWidth,
  9289. k = k.originalHeight;
  9290. m && k || c.log(c.f.y8);
  9291. m = Math.abs(m);
  9292. k = Math.abs(k);
  9293. e.size = c.size(m, k)
  9294. } else if (1 == g || 2 == g) e.rect = this.pN(k.frame), e.qA = k.rotated || !1, e.offset = this.fN(k.offset), e.size = this.nF(k.sourceSize);
  9295. else if (3 == g) {
  9296. var m = this.nF(k.spriteSize),
  9297. n = this.pN(k.textureRect);
  9298. m && (n = c.rect(n.x, n.y, m.width, m.height));
  9299. e.rect = n;
  9300. e.qA = k.textureRotated || !1;
  9301. e.offset = this.fN(k.spriteOffset);
  9302. e.size = this.nF(k.spriteSourceSize);
  9303. e.k1 = k.aliases
  9304. } else m = k.frame, n = k.sourceSize, h = k.filename || h, e.rect = c.rect(m.x, m.y, m.w, m.h), e.qA = k.rotated || !1, e.offset = c.d(0, 0), e.size = c.size(n.w, n.h);
  9305. b[h] = e
  9306. }
  9307. }
  9308. return this.vp[a] = {
  9309. Cp: !0,
  9310. frames: b,
  9311. H5: f
  9312. }
  9313. },
  9314. f1: function(a, b) {
  9315. c.assert(a, c.f.B8);
  9316. var d = this.vp[a] || c.X.be(a);
  9317. if (d && d.frames) {
  9318. var e = this.vp[a] || this.aZ(a),
  9319. d = e.frames,
  9320. e = e.H5;
  9321. b ? b instanceof c.ia || ("string" == typeof b ? b = c.Ka.Qc(b) : c.assert(0, c.f.C8)) : b = c.Ka.Qc(c.path.kq(a, e.s4 || ".png"));
  9322. var e = this.xk,
  9323. f = this.mi,
  9324. g;
  9325. for (g in d) {
  9326. var h = d[g],
  9327. k = f[g];
  9328. if (!k) {
  9329. k = c.If.create(b, h.rect, h.qA, h.offset, h.size);
  9330. if (h = h.k1) for (var m = 0, n = h.length; m < n; m++) {
  9331. var q = h[m];
  9332. e[q] && c.log(c.f.A8, q);
  9333. e[q] = g
  9334. }
  9335. c.F === c.Ha && k.Le && k.Ua().Kc && (h = k.Ua().Ob, h = c.EG(h, k.P3()), m = new c.ia, m.Ld(h), m.$b(), k.zb(m), h = k.ba, k.XR(c.rect(0, 0, h.width, h.height)));
  9336. f[g] = k
  9337. }
  9338. }
  9339. }
  9340. },
  9341. Eba: function(a) {
  9342. a = a.frames;
  9343. for (var b in a) this.mi[b] && c.log(c.f.x8, b)
  9344. },
  9345. eG: function(a, b) {
  9346. this.mi[b] = a
  9347. },
  9348. nma: function() {
  9349. this.mi = {};
  9350. this.xk = {}
  9351. },
  9352. mma: function(a) {
  9353. a && (this.xk[a] && delete this.xk[a], this.mi[a] && delete this.mi[a])
  9354. },
  9355. oma: function(a) {
  9356. var b = this.mi,
  9357. d = this.xk;
  9358. if (a = this.vp[a]) {
  9359. a = a.frames;
  9360. for (var e in a) if (b[e]) {
  9361. delete b[e];
  9362. for (var f in d) d[f] == e && delete d[f]
  9363. }
  9364. }
  9365. },
  9366. pma: function(a) {
  9367. var b = this.mi,
  9368. d = this.xk,
  9369. e;
  9370. for (e in b) {
  9371. var f = b[e];
  9372. if (f && f.Ua() == a) {
  9373. delete b[e];
  9374. for (var g in d) d[g] == e && delete d[g]
  9375. }
  9376. }
  9377. },
  9378. wj: function(a) {
  9379. var b = this.mi[a];
  9380. if (!b) {
  9381. var d = this.xk[a];
  9382. d && ((b = this.mi[d.toString()]) || delete this.xk[a])
  9383. }
  9384. b || c.log(c.f.D8, a);
  9385. return b
  9386. },
  9387. zl: function() {
  9388. this.mi = {};
  9389. this.xk = {};
  9390. this.vp = {}
  9391. }
  9392. };
  9393. c.nq = {
  9394. H$: 0,
  9395. Iaa: 1,
  9396. INT: 2,
  9397. B$: 3,
  9398. X9: 4,
  9399. wt: 0,
  9400. $Z: 0,
  9401. DF: !1,
  9402. yy: !1,
  9403. BF: !1,
  9404. CF: !1,
  9405. EF: !1,
  9406. Wba: 0,
  9407. hE: 0,
  9408. Kw: "",
  9409. fu: {},
  9410. Cp: !1,
  9411. ot: function() {
  9412. var a = this.fu;
  9413. a["cocos2d.x.version"] = c.fB;
  9414. a["cocos2d.x.compiled_with_profiler"] = !1;
  9415. a["cocos2d.x.compiled_with_gl_state_cache"] = c.Qh;
  9416. this.Cp = !0
  9417. },
  9418. nga: function() {
  9419. return this.wt
  9420. },
  9421. mga: function() {
  9422. return this.$Z
  9423. },
  9424. oga: function() {
  9425. return this.hE
  9426. },
  9427. dpa: function() {
  9428. return this.yy
  9429. },
  9430. epa: function() {
  9431. return this.DF
  9432. },
  9433. cpa: function() {
  9434. return !1
  9435. },
  9436. fpa: function() {
  9437. return !1
  9438. },
  9439. $oa: function() {
  9440. return !1
  9441. },
  9442. apa: function() {
  9443. return this.BF
  9444. },
  9445. bpa: function() {
  9446. return this.CF
  9447. },
  9448. gpa: function() {
  9449. return this.EF
  9450. },
  9451. lq: function(a) {
  9452. return -1 < this.Kw.indexOf(a)
  9453. },
  9454. Bha: function(a, b) {
  9455. this.Cp || this.ot();
  9456. var d = this.fu;
  9457. return d[a] ? d[a] : b
  9458. },
  9459. Ooa: function(a, b) {
  9460. this.fu[a] = b
  9461. },
  9462. B2: function() {
  9463. 0 === c.Qh && (c.log(""), c.log(c.f.Y1), c.log(""))
  9464. },
  9465. Y2: function() {
  9466. if (c.F !== c.Ha) {
  9467. this.Cp || this.ot();
  9468. var a = c.m,
  9469. b = this.fu;
  9470. b["gl.vendor"] = a.getParameter(a.VENDOR);
  9471. b["gl.renderer"] = a.getParameter(a.RENDERER);
  9472. b["gl.version"] = a.getParameter(a.VERSION);
  9473. this.Kw = "";
  9474. for (var d = a.getSupportedExtensions(), e = 0; e < d.length; e++) this.Kw += d[e] + " ";
  9475. this.wt = a.getParameter(a.MAX_TEXTURE_SIZE);
  9476. b["gl.max_texture_size"] = this.wt;
  9477. this.hE = a.getParameter(a.MAX_COMBINED_TEXTURE_IMAGE_UNITS);
  9478. b["gl.max_texture_units"] = this.hE;
  9479. this.DF = this.lq("GL_IMG_texture_compression_pvrtc");
  9480. b["gl.supports_PVRTC"] = this.DF;
  9481. this.yy = !1;
  9482. b["gl.supports_NPOT"] = this.yy;
  9483. this.BF = this.lq("GL_IMG_texture_format_BGRA888");
  9484. b["gl.supports_BGRA8888"] = this.BF;
  9485. this.CF = this.lq("GL_EXT_discard_framebuffer");
  9486. b["gl.supports_discard_framebuffer"] = this.CF;
  9487. this.EF = this.lq("vertex_array_object");
  9488. b["gl.supports_vertex_array_object"] = this.EF;
  9489. c.mq()
  9490. }
  9491. },
  9492. tka: function(a) {
  9493. this.Cp || this.ot();
  9494. var b = c.X.be(a);
  9495. if (!b) throw "Please load the resource first : " + a;
  9496. c.assert(b, c.f.a2, a);
  9497. if (b = b.data) for (var d in b) this.fu[d] = b[d];
  9498. else c.log(c.f.Z1, a)
  9499. }
  9500. };
  9501. c.H.cB = function() {
  9502. c.F$ = c.qa.extend({
  9503. Dpa: function() {}
  9504. });
  9505. var a = c.bb.prototype;
  9506. a.so = function(a) {
  9507. var d = this.V;
  9508. this.gS();
  9509. var e = this.di,
  9510. f = e.Qe.x / e.ma,
  9511. e = e.Qe.y / e.Na;
  9512. switch (a) {
  9513. case c.bb.sV:
  9514. c.Cj(c.Wj);
  9515. c.Jq();
  9516. f = new c.ga;
  9517. c.BH(f, 0, d.width, 0, d.height, -1024, 1024);
  9518. c.Kq(f);
  9519. c.Cj(c.Vj);
  9520. c.Jq();
  9521. break;
  9522. case c.bb.HJ:
  9523. var g = this.Ju(),
  9524. h = new c.ga,
  9525. k = new c.ga;
  9526. c.Cj(c.Wj);
  9527. c.Jq();
  9528. c.l5(h, d.width / d.height, 2 * g);
  9529. c.Kq(h);
  9530. c.Cj(c.Vj);
  9531. c.Jq();
  9532. g = c.Mq(null, -f + d.width / 2, -e + d.height / 2, g);
  9533. c.xQ(k, g, c.Mq(null, -f + d.width / 2, -e + d.height / 2, 0), c.Mq(null, 0, 1, 0));
  9534. c.Kq(k);
  9535. break;
  9536. case c.bb.tV:
  9537. break;
  9538. default:
  9539. c.log(c.f.LT)
  9540. }
  9541. this.It = a;
  9542. c.wa.dispatchEvent(this.tx);
  9543. c.VR()
  9544. };
  9545. a.JR = function(a) {
  9546. var d = c.m;
  9547. a ? (d.clearDepth(1), d.enable(d.DEPTH_TEST), d.depthFunc(d.LEQUAL)) : d.disable(d.DEPTH_TEST)
  9548. };
  9549. a.pI = function(a) {
  9550. this.V.width = c.eb.width;
  9551. this.V.height = c.eb.height;
  9552. this.di = a || c.view;
  9553. a = c.nq;
  9554. a.Y2();
  9555. a.B2();
  9556. this.ip();
  9557. this.OR();
  9558. c.wa && c.wa.We(!0)
  9559. };
  9560. a.zl = function() {
  9561. var a = c.m;
  9562. a.clear(a.COLOR_BUFFER_BIT | a.DEPTH_BUFFER_BIT)
  9563. };
  9564. a.VC = function() {
  9565. c.eo()
  9566. };
  9567. a.PC = function() {
  9568. c.co()
  9569. };
  9570. a.ip = function() {
  9571. if (!c.Si) this.xY();
  9572. else if (null != c.bb.pM && !1 != c.bb.pM) {
  9573. var a = new c.ia;
  9574. a.Ld(c.bb.up);
  9575. a.$b();
  9576. var d = c.view.SG().height / 320;
  9577. 0 === d && (d = this.V.height / 320);
  9578. var e = new c.Si;
  9579. e.bF(!0);
  9580. e.Md("00.0", a, 12, 32, ".");
  9581. e.scale = d;
  9582. this.pg = e;
  9583. e = new c.Si;
  9584. e.bF(!0);
  9585. e.Md("0.000", a, 12, 32, ".");
  9586. e.scale = d;
  9587. this.qg = e;
  9588. e = new c.Si;
  9589. e.bF(!0);
  9590. e.Md("000", a, 12, 32, ".");
  9591. e.scale = d;
  9592. this.tg = e;
  9593. a = c.aB;
  9594. this.tg.J(a.x, 34 * d + a.y);
  9595. this.qg.J(a.x, 17 * d + a.y);
  9596. this.pg.J(a)
  9597. }
  9598. };
  9599. a.xY = function() {
  9600. var a = 0,
  9601. a = this.V.width > this.V.height ? 0 | this.V.height / 320 * 24 : 0 | this.V.width / 320 * 24;
  9602. this.pg = c.Z.create("000.0", "Arial", a);
  9603. this.qg = c.Z.create("0.000", "Arial", a);
  9604. this.tg = c.Z.create("0000", "Arial", a);
  9605. a = c.aB;
  9606. this.tg.J(this.tg.width / 2 + a.x, 5 * this.tg.height / 2 + a.y);
  9607. this.qg.J(this.qg.width / 2 + a.x, 3 * this.qg.height / 2 + a.y);
  9608. this.pg.J(this.pg.width / 2 + a.x, this.pg.height / 2 + a.y)
  9609. };
  9610. a.c2 = function(a) {
  9611. var d = new c.ga;
  9612. c.oJ(d);
  9613. var e = new c.ga;
  9614. c.k5(e, d);
  9615. var d = d.c[14] / d.c[15],
  9616. f = this.di.SG(),
  9617. g = new c.Gb;
  9618. c.HQ(g, new c.Gb(2 * a.x / f.width - 1, 1 - 2 * a.y / f.height, d), e);
  9619. return c.d(g.x, g.y)
  9620. };
  9621. a.e2 = function(a) {
  9622. var d = new c.ga;
  9623. c.oJ(d);
  9624. var e = new c.Gb;
  9625. c.HQ(e, new c.Gb(a.x, a.y, 0), d);
  9626. a = this.di.SG();
  9627. return c.d(a.width * (0.5 * e.x + 0.5), a.height * (0.5 * -e.y + 0.5))
  9628. };
  9629. a.Hu = function() {
  9630. return this.di.Hu()
  9631. };
  9632. a.eH = function() {
  9633. return this.di.eH()
  9634. };
  9635. a.Ju = function() {
  9636. return this.V.height / 1.1566
  9637. };
  9638. a.gS = function() {
  9639. var a = this.di;
  9640. if (a) {
  9641. var d = this.V;
  9642. a.q8(-a.Qe.x / a.ma, -a.Qe.y / a.Na, d.width, d.height)
  9643. }
  9644. };
  9645. a.wga = function() {
  9646. return this.di
  9647. };
  9648. a.vj = function() {
  9649. return this.It
  9650. };
  9651. a.i7 = function() {
  9652. c.Ai(c.vc, c.uc)
  9653. };
  9654. a.OR = function() {
  9655. this.i7();
  9656. this.JR(!1);
  9657. this.so(this.It);
  9658. c.m.clearColor(0, 0, 0, 1)
  9659. }
  9660. };
  9661. c.Lg = 0;
  9662. c.oJ = function(a) {
  9663. var b = new c.ga;
  9664. c.Ez(c.Wj, b);
  9665. var d = new c.ga;
  9666. c.Ez(c.Vj, d);
  9667. c.Dj(a, b, d)
  9668. };
  9669. c.bb = c.qa.extend({
  9670. Uba: !1,
  9671. zt: !1,
  9672. Ac: !1,
  9673. ay: !1,
  9674. Tl: !1,
  9675. Ms: 0,
  9676. lE: 0,
  9677. It: 0,
  9678. So: 0,
  9679. Uh: 1,
  9680. $s: !1,
  9681. Al: 0,
  9682. AD: 0,
  9683. pg: null,
  9684. qg: null,
  9685. tg: null,
  9686. V: null,
  9687. Ml: null,
  9688. gj: null,
  9689. Rx: null,
  9690. di: null,
  9691. pj: null,
  9692. JE: null,
  9693. sd: null,
  9694. pe: 0,
  9695. By: 0,
  9696. VE: 0,
  9697. Iba: null,
  9698. Dg: null,
  9699. lh: null,
  9700. tx: null,
  9701. uD: null,
  9702. wD: null,
  9703. vD: null,
  9704. ctor: function() {
  9705. var a = this;
  9706. a.Ml = Date.now();
  9707. c.wa.cG(c.Wc.Fr, function() {
  9708. a.Ml = Date.now()
  9709. })
  9710. },
  9711. K: function() {
  9712. this.lE = this.Ms = 1 / c.k2;
  9713. this.pj = [];
  9714. this.It = c.bb.uV;
  9715. this.JE = null;
  9716. this.AD = this.So = 0;
  9717. this.$s = !1;
  9718. this.By = this.pe = 0;
  9719. this.Ml = Date.now();
  9720. this.ay = this.Ac = !1;
  9721. this.V = c.size(0, 0);
  9722. this.di = null;
  9723. this.Uh = 1;
  9724. this.Dg = new c.os;
  9725. this.lh = c.TI ? new c.TI : null;
  9726. this.Dg.fI(this.lh, c.os.rw, !1);
  9727. this.uD = new c.Tj(c.bb.UT);
  9728. this.uD.setUserData(this);
  9729. this.wD = new c.Tj(c.bb.WT);
  9730. this.wD.setUserData(this);
  9731. this.vD = new c.Tj(c.bb.VT);
  9732. this.vD.setUserData(this);
  9733. this.tx = new c.Tj(c.bb.XT);
  9734. this.tx.setUserData(this);
  9735. return !0
  9736. },
  9737. J1: function() {
  9738. var a = Date.now();
  9739. this.zt ? (this.Al = 0, this.zt = !1) : this.Al = (a - this.Ml) / 1E3;
  9740. 0 < c.Wc.vf[c.Wc.Nh.yu] && 0.2 < this.Al && (this.Al = 1 / 60);
  9741. this.Ml = a
  9742. },
  9743. z2: function() {
  9744. this.J1();
  9745. this.Ac || (this.Dg.update(this.Al), c.wa.dispatchEvent(this.vD));
  9746. this.zl();
  9747. this.gj && this.M7();
  9748. this.VC && this.VC();
  9749. this.sd && (this.sd.U(), c.wa.dispatchEvent(this.wD));
  9750. this.Rx && this.Rx.U();
  9751. this.$s && this.x0();
  9752. this.PC && this.PC();
  9753. c.wa.dispatchEvent(this.uD);
  9754. this.By++;
  9755. this.$s && this.cY()
  9756. },
  9757. VC: null,
  9758. PC: null,
  9759. end: function() {
  9760. this.ay = !0
  9761. },
  9762. rfa: function() {
  9763. return this.Uh
  9764. },
  9765. qga: function() {
  9766. return this.Rx
  9767. },
  9768. Fha: function() {
  9769. return this.V
  9770. },
  9771. Iu: function() {
  9772. return c.size(this.V.width * this.Uh, this.V.height * this.Uh)
  9773. },
  9774. pause: function() {
  9775. this.Ac || (this.lE = this.Ms, this.GR(0.25), this.Ac = !0)
  9776. },
  9777. Dla: function() {
  9778. c.assert(this.sd, c.f.IT);
  9779. this.pj.pop();
  9780. var a = this.pj.length;
  9781. 0 == a ? this.end() : (this.Tl = !0, this.gj = this.pj[a - 1])
  9782. },
  9783. x6: function() {
  9784. c.Ky.zl();
  9785. c.Zk.zl();
  9786. c.Ka.zl()
  9787. },
  9788. y6: function() {
  9789. this.km().MA();
  9790. c.wa && c.wa.We(!1);
  9791. this.sd && (this.sd.Og(), this.sd.xb(), this.sd.uf());
  9792. this.gj = this.sd = null;
  9793. this.pj.length = 0;
  9794. this.rS();
  9795. this.x6();
  9796. c.mq()
  9797. },
  9798. z6: function(a) {
  9799. c.assert(a, c.f.iJ);
  9800. this.Tl = !1;
  9801. this.pj.push(a);
  9802. this.gj = a
  9803. },
  9804. rA: function(a) {
  9805. c.assert(a, c.f.iJ);
  9806. if (this.sd) {
  9807. var b = this.pj.length;
  9808. 0 === b ? (this.Tl = !0, this.pj[b] = a) : (this.Tl = !0, this.pj[b - 1] = a);
  9809. this.gj = a
  9810. } else this.z6(a), this.nS()
  9811. },
  9812. br: function() {
  9813. this.Ac && (this.GR(this.lE), (this.Ml = Date.now()) || c.log(c.f.KT), this.Ac = !1, this.Al = 0)
  9814. },
  9815. ana: function(a) {
  9816. a != this.Uh && (this.Uh = a, this.ip())
  9817. },
  9818. dna: function() {},
  9819. Jna: function(a) {
  9820. this.zt = a
  9821. },
  9822. M7: function() {
  9823. var a = !1,
  9824. b = !1;
  9825. c.Aa && (a = this.sd ? this.sd instanceof c.Aa : !1, b = this.gj ? this.gj instanceof c.Aa : !1);
  9826. if (!b) {
  9827. if (b = this.sd) b.Og(), b.xb();
  9828. this.Tl && b && b.uf()
  9829. }
  9830. this.sd = this.gj;
  9831. this.gj = null;
  9832. a || null == this.sd || (this.sd.ca(), this.sd.Ki())
  9833. },
  9834. Lna: function(a) {
  9835. this.Rx = a
  9836. },
  9837. i3: function() {
  9838. return this.JE
  9839. },
  9840. s7: function(a) {
  9841. this.JE = a
  9842. },
  9843. x0: function() {
  9844. this.pe++;
  9845. this.So += this.Al;
  9846. this.pg && this.qg && this.tg ? (this.So > c.FT && (this.qg.string = this.VE.toFixed(3), this.AD = this.pe / this.So, this.So = this.pe = 0, this.pg.string = this.AD.toFixed(1), this.tg.string = (0 | c.Lg).toString()), this.pg.U(), this.qg.U(), this.tg.U()) : this.ip();
  9847. c.Lg = 0
  9848. },
  9849. qia: function() {
  9850. return this.Tl
  9851. },
  9852. Tga: function() {
  9853. return this.sd
  9854. },
  9855. cfa: function() {
  9856. return this.Ms
  9857. },
  9858. dia: function() {
  9859. return this.$s
  9860. },
  9861. v7: function(a) {
  9862. this.$s = a
  9863. },
  9864. Yga: function() {
  9865. return this.VE
  9866. },
  9867. iia: function() {
  9868. return this.zt
  9869. },
  9870. kia: function() {
  9871. return this.Ac
  9872. },
  9873. tha: function() {
  9874. return this.By
  9875. },
  9876. Ela: function() {
  9877. this.p6(1)
  9878. },
  9879. p6: function(a) {
  9880. c.assert(this.sd, c.f.JT);
  9881. var b = this.pj,
  9882. d = b.length;
  9883. if (0 == d) this.end();
  9884. else if (!(a > d)) {
  9885. for (; d > a;) {
  9886. var e = b.pop();
  9887. e.running && (e.Og(), e.xb());
  9888. e.uf();
  9889. d--
  9890. }
  9891. this.gj = b[b.length - 1];
  9892. this.Tl = !1
  9893. }
  9894. },
  9895. km: function() {
  9896. return this.Dg
  9897. },
  9898. aS: function(a) {
  9899. this.Dg != a && (this.Dg = a)
  9900. },
  9901. bz: function() {
  9902. return this.lh
  9903. },
  9904. ER: function(a) {
  9905. this.lh != a && (this.lh = a)
  9906. },
  9907. xfa: function() {
  9908. return this.Al
  9909. },
  9910. ip: null,
  9911. cY: function() {
  9912. this.VE = (Date.now() - this.Ml) / 1E3
  9913. }
  9914. });
  9915. c.bb.XT = "director_projection_changed";
  9916. c.bb.UT = "director_after_draw";
  9917. c.bb.WT = "director_after_visit";
  9918. c.bb.VT = "director_after_update";
  9919. c.MT = c.bb.extend({
  9920. zz: !1,
  9921. nS: function() {
  9922. this.zt = !0;
  9923. this.zz = !1
  9924. },
  9925. NQ: function() {
  9926. this.ay ? (this.ay = !1, this.y6()) : this.zz || this.z2()
  9927. },
  9928. rS: function() {
  9929. this.zz = !0
  9930. },
  9931. GR: function(a) {
  9932. this.Ms = a;
  9933. this.zz || (this.rS(), this.nS())
  9934. }
  9935. });
  9936. c.bb.CI = null;
  9937. c.bb.jP = !0;
  9938. c.bb.HD = function() {
  9939. c.bb.jP && (c.bb.jP = !1, c.bb.CI = new c.MT, c.bb.CI.K());
  9940. return c.bb.CI
  9941. };
  9942. c.k2 = 60;
  9943. c.bb.sV = 0;
  9944. c.bb.HJ = 1;
  9945. c.bb.tV = 3;
  9946. c.bb.uV = c.bb.HJ;
  9947. c.F === c.Ha ? (p = c.bb.prototype, p.so = function(a) {
  9948. this.It = a;
  9949. c.wa.dispatchEvent(this.tx)
  9950. }, p.JR = function() {}, p.pI = function(a) {
  9951. this.V.width = c.eb.width;
  9952. this.V.height = c.eb.height;
  9953. this.di = a || c.view;
  9954. c.wa && c.wa.We(!0)
  9955. }, p.zl = function() {
  9956. var a = this.di.Qe;
  9957. c.m.clearRect(-a.x, a.y, a.width, -a.height)
  9958. }, p.ip = function() {
  9959. var a = 0,
  9960. a = this.V.width > this.V.height ? 0 | this.V.height / 320 * 24 : 0 | this.V.width / 320 * 24;
  9961. this.pg = c.Z.create("000.0", "Arial", a);
  9962. this.qg = c.Z.create("0.000", "Arial", a);
  9963. this.tg = c.Z.create("0000", "Arial", a);
  9964. a = c.aB;
  9965. this.tg.J(this.tg.width / 2 + a.x, 5 * this.tg.height / 2 + a.y);
  9966. this.qg.J(this.qg.width / 2 + a.x, 3 * this.qg.height / 2 + a.y);
  9967. this.pg.J(this.pg.width / 2 + a.x, this.pg.height / 2 + a.y)
  9968. }, p.Hu = function() {
  9969. return this.V
  9970. }, p.eH = function() {
  9971. return c.d(0, 0)
  9972. }) : (c.bb.up = new Image, c.Ra(c.bb.up, "load", function() {
  9973. c.bb.pM = !0
  9974. }), c.up && (c.bb.up.src = c.up), c.assert("function" === typeof c.H.cB, c.f.cd, "CCDirectorWebGL.js"), c.H.cB(), delete c.H.cB);
  9975. c.Dr = c.qa.extend({
  9976. dt: null,
  9977. et: null,
  9978. ft: null,
  9979. bp: null,
  9980. dp: null,
  9981. ep: null,
  9982. bu: null,
  9983. cu: null,
  9984. du: null,
  9985. qb: null,
  9986. Ox: null,
  9987. ctor: function() {
  9988. this.Ox = new c.ga;
  9989. this.restore()
  9990. },
  9991. description: function() {
  9992. return "<CCCamera | center =(" + this.bp + "," + this.dp + "," + this.ep + ")>"
  9993. },
  9994. vA: function(a) {
  9995. this.qb = a
  9996. },
  9997. Qu: function() {
  9998. return this.qb
  9999. },
  10000. restore: function() {
  10001. this.dt = this.et = 0;
  10002. this.ft = c.Dr.Ju();
  10003. this.bu = this.bp = this.dp = this.ep = 0;
  10004. this.cu = 1;
  10005. this.du = 0;
  10006. c.fo(this.Ox);
  10007. this.qb = !1
  10008. },
  10009. $u: function() {
  10010. if (this.qb) {
  10011. var a = new c.Gb,
  10012. b = new c.Gb,
  10013. d = new c.Gb;
  10014. c.Mq(a, this.dt, this.et, this.ft);
  10015. c.Mq(b, this.bp, this.dp, this.ep);
  10016. c.Mq(d, this.bu, this.cu, this.du);
  10017. c.xQ(this.Ox, a, b, d);
  10018. this.qb = !1
  10019. }
  10020. c.Kq(this.Ox)
  10021. },
  10022. kna: function(a, b, d) {
  10023. this.NR(a, b, d)
  10024. },
  10025. NR: function(a, b, d) {
  10026. this.dt = a;
  10027. this.et = b;
  10028. this.ft = d;
  10029. this.qb = !0
  10030. },
  10031. Uma: function(a, b, d) {
  10032. this.n7(a, b, d)
  10033. },
  10034. n7: function(a, b, d) {
  10035. this.bp = a;
  10036. this.dp = b;
  10037. this.ep = d;
  10038. this.qb = !0
  10039. },
  10040. Loa: function(a, b, d) {
  10041. this.l8(a, b, d)
  10042. },
  10043. l8: function(a, b, d) {
  10044. this.bu = a;
  10045. this.cu = b;
  10046. this.du = d;
  10047. this.qb = !0
  10048. },
  10049. Nfa: function() {
  10050. return {
  10051. x: this.dt,
  10052. y: this.et,
  10053. z: this.ft
  10054. }
  10055. },
  10056. wP: function() {
  10057. return {
  10058. x: this.dt,
  10059. y: this.et,
  10060. z: this.ft
  10061. }
  10062. },
  10063. kfa: function() {
  10064. return {
  10065. x: this.bp,
  10066. y: this.dp,
  10067. z: this.ep
  10068. }
  10069. },
  10070. rP: function() {
  10071. return {
  10072. x: this.bp,
  10073. y: this.dp,
  10074. z: this.ep
  10075. }
  10076. },
  10077. yha: function() {
  10078. return {
  10079. x: this.bu,
  10080. y: this.cu,
  10081. z: this.du
  10082. }
  10083. },
  10084. d4: function() {
  10085. return {
  10086. x: this.bu,
  10087. y: this.cu,
  10088. z: this.du
  10089. }
  10090. },
  10091. vba: function() {}
  10092. });
  10093. c.Dr.Ju = function() {
  10094. return c.lw
  10095. };
  10096. c.zaa = c.rw + 1;
  10097. c.gq = function(a, b) {
  10098. if (a && 0 < a.length) for (var d = 0; d < a.length; d++) if (!(a[d] instanceof b)) return c.log(c.f.gq), !1;
  10099. return !0
  10100. };
  10101. c.tf = function(a, b) {
  10102. for (var d = 0, e = a.length; d < e; d++) if (a[d] == b) {
  10103. a.splice(d, 1);
  10104. break
  10105. }
  10106. };
  10107. c.Mca = function(a, b) {
  10108. for (var d = 0, e = b.length; d < e; d++) c.tf(a, b[d])
  10109. };
  10110. c.Lca = function(a, b, d) {
  10111. a.splice.apply(a, [d, 0].concat(b));
  10112. return a
  10113. };
  10114. c.uJ = function(a, b, d) {
  10115. this.next = this.tm = null;
  10116. this.target = a;
  10117. this.u6 = b;
  10118. this.paused = d;
  10119. this.Rz = !1
  10120. };
  10121. c.pJ = function(a, b, d) {
  10122. this.list = a;
  10123. this.Un = b;
  10124. this.target = d;
  10125. this.oz = null
  10126. };
  10127. c.jU = function(a, b) {
  10128. this.Pj = null;
  10129. this.target = a;
  10130. this.pr = 0;
  10131. this.wu = this.vu = null;
  10132. this.paused = b;
  10133. this.oz = null
  10134. };
  10135. c.nK = c.qa.extend({
  10136. jk: 0,
  10137. Ce: null,
  10138. Ne: null,
  10139. rb: 0,
  10140. DN: !1,
  10141. Iy: !1,
  10142. Xp: 0,
  10143. NE: 0,
  10144. ix: 0,
  10145. Zfa: function() {
  10146. return this.jk
  10147. },
  10148. setInterval: function(a) {
  10149. this.jk = a
  10150. },
  10151. jfa: function() {
  10152. return this.Ce
  10153. },
  10154. ctor: function(a, b, d, e, f) {
  10155. this.Ne = a;
  10156. this.Ce = b;
  10157. this.rb = -1;
  10158. this.jk = d || 0;
  10159. this.ix = f || 0;
  10160. this.Iy = 0 < this.ix;
  10161. this.NE = null == e ? c.js : e;
  10162. this.DN = this.NE == c.js
  10163. },
  10164. qD: function() {
  10165. if ("string" == typeof this.Ce) this.Ne[this.Ce](this.rb);
  10166. else this.Ce.call(this.Ne, this.rb)
  10167. },
  10168. update: function(a) {
  10169. if (-1 == this.rb) this.Xp = this.rb = 0;
  10170. else {
  10171. var b = this.Ne,
  10172. d = this.Ce;
  10173. this.rb += a;
  10174. this.DN && !this.Iy ? this.rb >= this.jk && (b && d && this.qD(), this.rb = 0) : (this.Iy ? this.rb >= this.ix && (b && d && this.qD(), this.rb -= this.ix, this.Xp += 1, this.Iy = !1) : this.rb >= this.jk && (b && d && this.qD(), this.rb = 0, this.Xp += 1), this.Xp > this.NE && c.L.km().GS(b, d))
  10175. }
  10176. }
  10177. });
  10178. c.os = c.qa.extend({
  10179. au: 1,
  10180. Bn: null,
  10181. ik: null,
  10182. Uw: null,
  10183. hk: null,
  10184. Aba: null,
  10185. Vd: null,
  10186. aj: !1,
  10187. Cy: !1,
  10188. ctor: function() {
  10189. this.au = 1;
  10190. this.Bn = [
  10191. [],
  10192. [],
  10193. []
  10194. ];
  10195. this.ik = {};
  10196. this.Uw = [];
  10197. this.hk = {};
  10198. this.Ns = [];
  10199. this.Vd = null;
  10200. this.Cy = this.aj = !1
  10201. },
  10202. ME: function(a) {
  10203. delete this.hk[a.target.Ba];
  10204. c.tf(this.Ns, a);
  10205. a.nK = null;
  10206. a.target = null
  10207. },
  10208. uN: function(a) {
  10209. if (a = this.ik[a.target.Ba]) c.tf(a.list, a.Un), delete this.ik[a.target.Ba], c.tf(this.Uw, a), a.Un = null, a.target = null
  10210. },
  10211. jN: function(a, b, d, e) {
  10212. e = new c.uJ(b, d, e);
  10213. if (a) {
  10214. for (var f = a.length - 1, g = 0; g <= f && !(d < a[g].u6); g++);
  10215. a.splice(g, 0, e)
  10216. } else a = [], a.push(e);
  10217. d = new c.pJ(a, e, b);
  10218. this.Uw.push(d);
  10219. this.ik[b.Ba] = d;
  10220. return a
  10221. },
  10222. UX: function(a, b, d) {
  10223. d = new c.uJ(b, 0, d);
  10224. a.push(d);
  10225. a = new c.pJ(a, d, b);
  10226. this.Uw.push(a);
  10227. this.ik[b.Ba] = a
  10228. },
  10229. woa: function(a) {
  10230. this.au = a
  10231. },
  10232. rha: function() {
  10233. return this.au
  10234. },
  10235. update: function(a) {
  10236. var b = this.Bn,
  10237. d = this.Ns,
  10238. e, f, g;
  10239. this.Cy = !0;
  10240. 1 != this.au && (a *= this.au);
  10241. f = 0;
  10242. for (g = b.length; f < g && 0 <= f; f++) for (var h = this.Bn[f], k = 0, m = h.length; k < m; k++) e = h[k], e.paused || e.Rz || e.target.update(a);
  10243. f = 0;
  10244. for (g = d.length; f < g; f++) {
  10245. e = d[f];
  10246. if (!e) break;
  10247. this.Vd = e;
  10248. this.aj = !1;
  10249. if (!e.paused) for (e.pr = 0; e.pr < e.Pj.length; e.pr++) e.vu = e.Pj[e.pr], e.wu = !1, e.vu.update(a), e.vu = null;
  10250. this.aj && 0 == e.Pj.length && (this.ME(e), f--)
  10251. }
  10252. f = 0;
  10253. for (g = b.length; f < g; f++) for (h = this.Bn[f], k = 0, m = h.length; k < m;) {
  10254. e = h[k];
  10255. if (!e) break;
  10256. e.Rz ? this.uN(e) : k++
  10257. }
  10258. this.Cy = !1;
  10259. this.Vd = null
  10260. },
  10261. f7: function(a, b, d, e, f, g) {
  10262. c.assert(b, c.f.YV);
  10263. c.assert(a, c.f.ZV);
  10264. d = d || 0;
  10265. e = null == e ? c.js : e;
  10266. f = f || 0;
  10267. g = g || !1;
  10268. var h = this.hk[a.Ba];
  10269. h || (h = new c.jU(a, g), this.Ns.push(h), this.hk[a.Ba] = h);
  10270. if (null == h.Pj) h.Pj = [];
  10271. else for (var k = 0; k < h.Pj.length; k++) if (g = h.Pj[k], b == g.Ce) {
  10272. c.log(c.f.XV, g.jk.toFixed(4), d.toFixed(4));
  10273. g.jk = d;
  10274. return
  10275. }
  10276. g = new c.nK(a, b, d, e, f);
  10277. h.Pj.push(g)
  10278. },
  10279. fI: function(a, b, d) {
  10280. if (null !== a) {
  10281. var e = this.Bn,
  10282. f = this.ik[a.Ba];
  10283. f ? f.Un.Rz = !1 : 0 == b ? this.UX(e[1], a, d) : 0 > b ? e[0] = this.jN(e[0], a, b, d) : e[2] = this.jN(e[2], a, b, d)
  10284. }
  10285. },
  10286. GS: function(a, b) {
  10287. if (null != a && null != b) {
  10288. var d = this.hk[a.Ba];
  10289. if (d) for (var e = d.Pj, f = 0, g = e.length; f < g; f++) {
  10290. var h = e[f];
  10291. if (b == h.Ce) {
  10292. h != d.vu || d.wu || (d.wu = !0);
  10293. e.splice(f, 1);
  10294. d.pr >= f && d.pr--;
  10295. 0 == e.length && (this.Vd == d ? this.aj = !0 : this.ME(d));
  10296. break
  10297. }
  10298. }
  10299. }
  10300. },
  10301. Lv: function(a) {
  10302. null != a && (a = this.ik[a.Ba], null != a && (this.Cy ? a.Un.Rz = !0 : this.uN(a.Un)))
  10303. },
  10304. FS: function(a) {
  10305. if (null != a) {
  10306. var b = this.hk[a.Ba];
  10307. if (b) {
  10308. var d = b.Pj;
  10309. !b.wu && 0 <= d.indexOf(b.vu) && (b.wu = !0);
  10310. d.length = 0;
  10311. this.Vd == b ? this.aj = !0 : this.ME(b)
  10312. }
  10313. this.Lv(a)
  10314. }
  10315. },
  10316. MA: function() {
  10317. this.c9(c.os.rw)
  10318. },
  10319. c9: function(a) {
  10320. for (var b = this.Ns, d = this.Bn, e = 0, f = b.length; e < f; e++) this.FS(b[e].target);
  10321. for (e = 2; 0 <= e; e--) if (!(1 == e && 0 < a || 0 == e && 0 <= a)) for (var b = d[e], f = 0, g = b.length; f < g; f++) this.Lv(b[f].target)
  10322. },
  10323. xla: function() {
  10324. return this.i6(c.os.rw)
  10325. },
  10326. i6: function() {
  10327. for (var a = [], b, d = this.Ns, e = this.Bn, f = 0, g = d.length; f < g; f++) if (b = d[f]) b.paused = !0, a.push(b.target);
  10328. f = 0;
  10329. for (g = e.length; f < g; f++) for (var d = e[f], h = 0, k = d.length; h < k; h++) if (b = d[h]) b.paused = !0, a.push(b.target);
  10330. return a
  10331. },
  10332. b7: function(a) {
  10333. if (a) for (var b = 0; b < a.length; b++) this.Uk(a[b])
  10334. },
  10335. Xq: function(a) {
  10336. c.assert(a, c.f.VV);
  10337. var b = this.hk[a.Ba];
  10338. b && (b.paused = !0);
  10339. (a = this.ik[a.Ba]) && (a.Un.paused = !0)
  10340. },
  10341. Uk: function(a) {
  10342. c.assert(a, c.f.WV);
  10343. var b = this.hk[a.Ba];
  10344. b && (b.paused = !1);
  10345. (a = this.ik[a.Ba]) && (a.Un.paused = !1)
  10346. },
  10347. tia: function(a) {
  10348. c.assert(a, c.f.UV);
  10349. return (a = this.hk[a.Ba]) ? a.paused : !1
  10350. }
  10351. });
  10352. c.os.rw = -2147483648;
  10353. c.DJ = 2 * Math.PI;
  10354. c.jJ = c.qa.extend({
  10355. $C: [],
  10356. m: null,
  10357. ctor: function(a) {
  10358. this.m = a
  10359. },
  10360. w2: function(a, b) {
  10361. b || (b = 1);
  10362. var d = c.view.ma,
  10363. e = c.d(a.x * d, a.y * c.view.Na);
  10364. this.m.beginPath();
  10365. this.m.arc(e.x, -e.y, b * d, 0, 2 * Math.PI, !1);
  10366. this.m.closePath();
  10367. this.m.fill()
  10368. },
  10369. x2: function(a, b, d) {
  10370. if (null != a) {
  10371. d || (d = 1);
  10372. b = this.m;
  10373. var e = c.view.ma,
  10374. f = c.view.Na;
  10375. b.beginPath();
  10376. for (var g = 0, h = a.length; g < h; g++) b.arc(a[g].x * e, -a[g].y * f, d * e, 0, 2 * Math.PI, !1);
  10377. b.closePath();
  10378. b.fill()
  10379. }
  10380. },
  10381. Fk: function(a, b) {
  10382. var d = this.m,
  10383. e = c.view.ma,
  10384. f = c.view.Na;
  10385. d.beginPath();
  10386. d.moveTo(a.x * e, -a.y * f);
  10387. d.lineTo(b.x * e, -b.y * f);
  10388. d.closePath();
  10389. d.stroke()
  10390. },
  10391. Eu: function(a, b) {
  10392. this.Fk(c.d(a.x, a.y), c.d(b.x, a.y));
  10393. this.Fk(c.d(b.x, a.y), c.d(b.x, b.y));
  10394. this.Fk(c.d(b.x, b.y), c.d(a.x, b.y));
  10395. this.Fk(c.d(a.x, b.y), c.d(a.x, a.y))
  10396. },
  10397. dP: function(a, b, d) {
  10398. a = [a, c.d(b.x, a.y), b, c.d(a.x, b.y)];
  10399. this.KG(a, 4, d)
  10400. },
  10401. $d: function(a, b, d, e) {
  10402. e = e || !1;
  10403. if (null != a) {
  10404. if (3 > a.length) throw Error("Polygon's point must greater than 2");
  10405. var f = a[0];
  10406. b = this.m;
  10407. var g = c.view.ma,
  10408. h = c.view.Na;
  10409. b.beginPath();
  10410. b.moveTo(f.x * g, -f.y * h);
  10411. for (var f = 1, k = a.length; f < k; f++) b.lineTo(a[f].x * g, -a[f].y * h);
  10412. d && b.closePath();
  10413. e ? b.fill() : b.stroke()
  10414. }
  10415. },
  10416. KG: function(a, b, d) {
  10417. this.fr(d.r, d.g, d.b, d.a);
  10418. this.$d(a, b, !0, !0)
  10419. },
  10420. HG: function(a, b, d, e, f) {
  10421. f = f || !1;
  10422. e = this.m;
  10423. var g = c.view.ma,
  10424. h = c.view.Na;
  10425. e.beginPath();
  10426. e.arc(0 | a.x * g, 0 | -(a.y * h), b * g, -d, -(d - 2 * Math.PI), !1);
  10427. f && e.lineTo(0 | a.x * g, 0 | -(a.y * h));
  10428. e.stroke()
  10429. },
  10430. JG: function(a, b, d, e) {
  10431. for (var f = this.$C, g = f.length = 0, h = 0; h < e; h++) f.push(c.d(Math.pow(1 - g, 2) * a.x + 2 * (1 - g) * g * b.x + g * g * d.x, Math.pow(1 - g, 2) * a.y + 2 * (1 - g) * g * b.y + g * g * d.y)), g += 1 / e;
  10432. f.push(c.d(d.x, d.y));
  10433. this.$d(f, e + 1, !1, !1)
  10434. },
  10435. IG: function(a, b, d, e, f) {
  10436. for (var g = this.$C, h = g.length = 0, k = 0; k < f; k++) g.push(c.d(Math.pow(1 - h, 3) * a.x + 3 * Math.pow(1 - h, 2) * h * b.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 * b.y + 3 * (1 - h) * h * h * d.y + h * h * h * e.y)), h += 1 / f;
  10437. g.push(c.d(e.x, e.y));
  10438. this.$d(g, f + 1, !1, !1)
  10439. },
  10440. GG: function(a, b) {
  10441. this.Qn(a, 0.5, b)
  10442. },
  10443. Qn: function(a, b, d) {
  10444. c.m.strokeStyle = "rgba(255,255,255,1)";
  10445. var e = this.$C;
  10446. e.length = 0;
  10447. for (var f, g, h = 1 / a.length, k = 0; k < d + 1; k++) g = k / d, 1 == g ? (f = a.length - 1, g = 1) : (f = 0 | g / h, g = (g - h * f) / h), f = c.yT(c.wd(a, f - 1), c.wd(a, f - 0), c.wd(a, f + 1), c.wd(a, f + 2), b, g), e.push(f);
  10448. this.$d(e, d + 1, !1, !1)
  10449. },
  10450. drawImage: function(a, b, d, e, f) {
  10451. switch (arguments.length) {
  10452. case 2:
  10453. this.m.drawImage(a, b.x, -(b.y + a.height));
  10454. break;
  10455. case 3:
  10456. this.m.drawImage(a, b.x, -(b.y + d.height), d.width, d.height);
  10457. break;
  10458. case 5:
  10459. this.m.drawImage(a, b.x, b.y, d.width, d.height, e.x, -(e.y + f.height), f.width, f.height);
  10460. break;
  10461. default:
  10462. throw Error("Argument must be non-nil");
  10463. }
  10464. },
  10465. A2: function(a, b, d) {
  10466. a = a || this.m;
  10467. b *= c.view.ma;
  10468. d = "rgba(" + (0 | d.r) + "," + (0 | d.g) + "," + (0 | d.b);
  10469. a.fillStyle = d + ",1)";
  10470. var e = b / 10;
  10471. a.beginPath();
  10472. a.moveTo(-b, b);
  10473. a.lineTo(0, e);
  10474. a.lineTo(b, b);
  10475. a.lineTo(e, 0);
  10476. a.lineTo(b, -b);
  10477. a.lineTo(0, -e);
  10478. a.lineTo(-b, -b);
  10479. a.lineTo(-e, 0);
  10480. a.lineTo(-b, b);
  10481. a.closePath();
  10482. a.fill();
  10483. var f = a.createRadialGradient(0, 0, e, 0, 0, b);
  10484. f.addColorStop(0, d + ", 1)");
  10485. f.addColorStop(0.3, d + ", 0.8)");
  10486. f.addColorStop(1, d + ", 0.0)");
  10487. a.fillStyle = f;
  10488. a.beginPath();
  10489. a.arc(0, 0, b - e, 0, c.DJ, !1);
  10490. a.closePath();
  10491. a.fill()
  10492. },
  10493. t2: function(a, b, d) {
  10494. a = a || this.m;
  10495. b *= c.view.ma;
  10496. d = "rgba(" + (0 | d.r) + "," + (0 | d.g) + "," + (0 | d.b);
  10497. var e = a.createRadialGradient(0, 0, b / 10, 0, 0, b);
  10498. e.addColorStop(0, d + ", 1)");
  10499. e.addColorStop(0.3, d + ", 0.8)");
  10500. e.addColorStop(0.6, d + ", 0.4)");
  10501. e.addColorStop(1, d + ", 0.0)");
  10502. a.fillStyle = e;
  10503. a.beginPath();
  10504. a.arc(0, 0, b, 0, c.DJ, !1);
  10505. a.closePath();
  10506. a.fill()
  10507. },
  10508. fillText: function(a, b, d) {
  10509. this.m.fillText(a, b, -d)
  10510. },
  10511. fr: function(a, b, d, e) {
  10512. this.m.fillStyle = "rgba(" + a + "," + b + "," + d + "," + e / 255 + ")";
  10513. this.m.strokeStyle = "rgba(" + a + "," + b + "," + d + "," + e / 255 + ")"
  10514. },
  10515. Q7: function() {},
  10516. nI: function(a) {
  10517. this.m.lineWidth = a * c.view.ma
  10518. }
  10519. });
  10520. c.RT = c.qa.extend({
  10521. m: null,
  10522. pt: !1,
  10523. Mc: null,
  10524. Zi: -1,
  10525. Jf: null,
  10526. yE: -1,
  10527. xE: -1,
  10528. ctor: function(a) {
  10529. null == a && (a = c.m);
  10530. if (!a instanceof WebGLRenderingContext) throw "Can't initialise DrawingPrimitiveWebGL. context need is WebGLRenderingContext";
  10531. this.m = a;
  10532. this.Jf = new Float32Array([1, 1, 1, 1])
  10533. },
  10534. Kk: function() {
  10535. this.pt || (this.Mc = c.ge.Dc(c.YB), this.Zi = this.m.getUniformLocation(this.Mc.$n(), "u_color"), this.yE = this.m.getUniformLocation(this.Mc.$n(), "u_pointSize"), this.pt = !0)
  10536. },
  10537. Oda: function() {
  10538. this.pt = !1
  10539. },
  10540. w2: function(a) {
  10541. this.Kk();
  10542. var b = this.m;
  10543. this.Mc.$c();
  10544. this.Mc.Ef();
  10545. c.Xc(c.ke);
  10546. b.uniform4fv(this.Zi, this.Jf);
  10547. this.Mc.xv(this.yE, this.xE);
  10548. var d = b.createBuffer();
  10549. b.bindBuffer(b.ARRAY_BUFFER, d);
  10550. b.bufferData(b.ARRAY_BUFFER, new Float32Array([a.x, a.y]), b.STATIC_DRAW);
  10551. b.vertexAttribPointer(c.Ab, 2, b.FLOAT, !1, 0, 0);
  10552. b.drawArrays(b.POINTS, 0, 1);
  10553. b.deleteBuffer(d);
  10554. c.Ng()
  10555. },
  10556. x2: function(a) {
  10557. if (a && 0 != a.length) {
  10558. this.Kk();
  10559. var b = this.m;
  10560. this.Mc.$c();
  10561. this.Mc.Ef();
  10562. c.Xc(c.ke);
  10563. b.uniform4fv(this.Zi, this.Jf);
  10564. this.Mc.xv(this.yE, this.xE);
  10565. var d = b.createBuffer();
  10566. b.bindBuffer(b.ARRAY_BUFFER, d);
  10567. b.bufferData(b.ARRAY_BUFFER, this.$x(a), b.STATIC_DRAW);
  10568. b.vertexAttribPointer(c.Ab, 2, b.FLOAT, !1, 0, 0);
  10569. b.drawArrays(b.POINTS, 0, a.length);
  10570. b.deleteBuffer(d);
  10571. c.Ng()
  10572. }
  10573. },
  10574. $x: function(a) {
  10575. for (var b = new Float32Array(2 * a.length), d = 0; d < a.length; d++) b[2 * d] = a[d].x, b[2 * d + 1] = a[d].y;
  10576. return b
  10577. },
  10578. Fk: function(a, b) {
  10579. this.Kk();
  10580. var d = this.m;
  10581. this.Mc.$c();
  10582. this.Mc.Ef();
  10583. c.Xc(c.ke);
  10584. d.uniform4fv(this.Zi, this.Jf);
  10585. var e = d.createBuffer();
  10586. d.bindBuffer(d.ARRAY_BUFFER, e);
  10587. d.bufferData(d.ARRAY_BUFFER, this.$x([a, b]), d.STATIC_DRAW);
  10588. d.vertexAttribPointer(c.Ab, 2, d.FLOAT, !1, 0, 0);
  10589. d.drawArrays(d.LINES, 0, 2);
  10590. d.deleteBuffer(e);
  10591. c.Ng()
  10592. },
  10593. Eu: function(a, b) {
  10594. this.Fk(c.d(a.x, a.y), c.d(b.x, a.y));
  10595. this.Fk(c.d(b.x, a.y), c.d(b.x, b.y));
  10596. this.Fk(c.d(b.x, b.y), c.d(a.x, b.y));
  10597. this.Fk(c.d(a.x, b.y), c.d(a.x, a.y))
  10598. },
  10599. dP: function(a, b, d) {
  10600. a = [a, c.d(b.x, a.y), b, c.d(a.x, b.y)];
  10601. this.KG(a, 4, d)
  10602. },
  10603. $d: function(a, b, d) {
  10604. this.Kk();
  10605. b = this.m;
  10606. this.Mc.$c();
  10607. this.Mc.Ef();
  10608. c.Xc(c.ke);
  10609. b.uniform4fv(this.Zi, this.Jf);
  10610. var e = b.createBuffer();
  10611. b.bindBuffer(b.ARRAY_BUFFER, e);
  10612. b.bufferData(b.ARRAY_BUFFER, this.$x(a), b.STATIC_DRAW);
  10613. b.vertexAttribPointer(c.Ab, 2, b.FLOAT, !1, 0, 0);
  10614. d ? b.drawArrays(b.LINE_LOOP, 0, a.length) : b.drawArrays(b.LINE_STRIP, 0, a.length);
  10615. b.deleteBuffer(e);
  10616. c.Ng()
  10617. },
  10618. KG: function(a, b, d) {
  10619. this.Kk();
  10620. d && this.fr(d.r, d.g, d.b, d.a);
  10621. b = this.m;
  10622. this.Mc.$c();
  10623. this.Mc.Ef();
  10624. c.Xc(c.ke);
  10625. b.uniform4fv(this.Zi, this.Jf);
  10626. d = b.createBuffer();
  10627. b.bindBuffer(b.ARRAY_BUFFER, d);
  10628. b.bufferData(b.ARRAY_BUFFER, this.$x(a), b.STATIC_DRAW);
  10629. b.vertexAttribPointer(c.Ab, 2, b.FLOAT, !1, 0, 0);
  10630. b.drawArrays(b.TRIANGLE_FAN, 0, a.length);
  10631. b.deleteBuffer(d);
  10632. c.Ng()
  10633. },
  10634. HG: function(a, b, d, e, f) {
  10635. this.Kk();
  10636. var g = 1;
  10637. f && g++;
  10638. var h = 2 * Math.PI / e;
  10639. if (f = new Float32Array(2 * (e + 2))) {
  10640. for (var k = 0; k <= e; k++) {
  10641. var m = k * h,
  10642. n = b * Math.sin(m + d) + a.y;
  10643. f[2 * k] = b * Math.cos(m + d) + a.x;
  10644. f[2 * k + 1] = n
  10645. }
  10646. f[2 * (e + 1)] = a.x;
  10647. f[2 * (e + 1) + 1] = a.y;
  10648. a = this.m;
  10649. this.Mc.$c();
  10650. this.Mc.Ef();
  10651. c.Xc(c.ke);
  10652. a.uniform4fv(this.Zi, this.Jf);
  10653. b = a.createBuffer();
  10654. a.bindBuffer(a.ARRAY_BUFFER, b);
  10655. a.bufferData(a.ARRAY_BUFFER, f, a.STATIC_DRAW);
  10656. a.vertexAttribPointer(c.Ab, 2, a.FLOAT, !1, 0, 0);
  10657. a.drawArrays(a.LINE_STRIP, 0, e + g);
  10658. a.deleteBuffer(b);
  10659. c.Ng()
  10660. }
  10661. },
  10662. JG: function(a, b, d, e) {
  10663. this.Kk();
  10664. 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 * b.x + g * g * d.x, f[2 * h + 1] = Math.pow(1 - g, 2) * a.y + 2 * (1 - g) * g * b.y + g * g * d.y, g += 1 / e;
  10665. f[2 * e] = d.x;
  10666. f[2 * e + 1] = d.y;
  10667. a = this.m;
  10668. this.Mc.$c();
  10669. this.Mc.Ef();
  10670. c.Xc(c.ke);
  10671. a.uniform4fv(this.Zi, this.Jf);
  10672. b = a.createBuffer();
  10673. a.bindBuffer(a.ARRAY_BUFFER, b);
  10674. a.bufferData(a.ARRAY_BUFFER, f, a.STATIC_DRAW);
  10675. a.vertexAttribPointer(c.Ab, 2, a.FLOAT, !1, 0, 0);
  10676. a.drawArrays(a.LINE_STRIP, 0, e + 1);
  10677. a.deleteBuffer(b);
  10678. c.Ng()
  10679. },
  10680. IG: function(a, b, d, e, f) {
  10681. this.Kk();
  10682. for (var g = new Float32Array(2 * (f + 1)), h = 0, k = 0; k < f; k++) g[2 * k] = Math.pow(1 - h, 3) * a.x + 3 * Math.pow(1 - h, 2) * h * b.x + 3 * (1 - h) * h * h * d.x + h * h * h * e.x, g[2 * k + 1] = Math.pow(1 - h, 3) * a.y + 3 * Math.pow(1 - h, 2) * h * b.y + 3 * (1 - h) * h * h * d.y + h * h * h * e.y, h += 1 / f;
  10683. g[2 * f] = e.x;
  10684. g[2 * f + 1] = e.y;
  10685. a = this.m;
  10686. this.Mc.$c();
  10687. this.Mc.Ef();
  10688. c.Xc(c.ke);
  10689. a.uniform4fv(this.Zi, this.Jf);
  10690. b = a.createBuffer();
  10691. a.bindBuffer(a.ARRAY_BUFFER, b);
  10692. a.bufferData(a.ARRAY_BUFFER, g, a.STATIC_DRAW);
  10693. a.vertexAttribPointer(c.Ab, 2, a.FLOAT, !1, 0, 0);
  10694. a.drawArrays(a.LINE_STRIP, 0, f + 1);
  10695. a.deleteBuffer(b);
  10696. c.Ng()
  10697. },
  10698. GG: function(a, b) {
  10699. this.Qn(a, 0.5, b)
  10700. },
  10701. Qn: function(a, b, d) {
  10702. this.Kk();
  10703. for (var e = new Float32Array(2 * (d + 1)), f, g, h = 1 / a.length, k = 0; k < d + 1; k++) g = k / d, 1 == g ? (f = a.length - 1, g = 1) : (f = 0 | g / h, g = (g - h * f) / h), f = c.yT(c.wd(a, f - 1), c.wd(a, f), c.wd(a, f + 1), c.wd(a, f + 2), b, g), e[2 * k] = f.x, e[2 * k + 1] = f.y;
  10704. a = this.m;
  10705. this.Mc.$c();
  10706. this.Mc.Ef();
  10707. c.Xc(c.ke);
  10708. a.uniform4fv(this.Zi, this.Jf);
  10709. b = a.createBuffer();
  10710. a.bindBuffer(a.ARRAY_BUFFER, b);
  10711. a.bufferData(a.ARRAY_BUFFER, e, a.STATIC_DRAW);
  10712. a.vertexAttribPointer(c.Ab, 2, a.FLOAT, !1, 0, 0);
  10713. a.drawArrays(a.LINE_STRIP, 0, d + 1);
  10714. a.deleteBuffer(b);
  10715. c.Ng()
  10716. },
  10717. fr: function(a, b, d, e) {
  10718. this.Jf[0] = a / 255;
  10719. this.Jf[1] = b / 255;
  10720. this.Jf[2] = d / 255;
  10721. this.Jf[3] = e / 255
  10722. },
  10723. Q7: function(a) {
  10724. this.xE = a * c.wb()
  10725. },
  10726. nI: function(a) {
  10727. this.m.lineWidth && this.m.lineWidth(a)
  10728. }
  10729. });
  10730. c.H.EC = function() {
  10731. var a = c.Z.prototype;
  10732. a.Va = c.P.prototype.Va;
  10733. a.Tf = function() {
  10734. this.ub = !0;
  10735. var a = this.vn,
  10736. d = this.wn;
  10737. this.ny = "rgba(128,128,128," + this.wk + ")";
  10738. this.wx = "rgba(" + (0 | d.r) + "," + (0 | d.g) + "," + (0 | d.b) + ", 1)";
  10739. this.sy = "rgba(" + (0 | a.r) + "," + (0 | a.g) + "," + (0 | a.b) + ", 1)"
  10740. };
  10741. a.bc = c.P.prototype.bc;
  10742. a.Fa = c.P.prototype.Fa;
  10743. a.Zb = c.P.prototype.Zb;
  10744. a.qH = function(a, d) {
  10745. if (!c.P.prototype.K.call(this)) return !1;
  10746. this.shaderProgram = c.ge.Dc(c.Z.KX);
  10747. this.NF(d, !1);
  10748. this.string = a;
  10749. return !0
  10750. };
  10751. a.xA = function(a) {
  10752. var d = this.wn;
  10753. 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.Tf(), this.ub = !0
  10754. };
  10755. a.Y = function(a) {
  10756. if (this.Tb && "" != this.Tb) {
  10757. a = a || c.m;
  10758. var d = this.O;
  10759. d && d.Kc && (this.Sb.$c(), this.Sb.Ef(), c.Ai(this.q.src, this.q.W), c.Te(d), c.Xc(c.Sm), a.bindBuffer(a.ARRAY_BUFFER, this.by), this.mf && (a.bufferData(a.ARRAY_BUFFER, this.hc.Ly, a.STATIC_DRAW), this.mf = !1), a.vertexAttribPointer(c.Ab, 3, a.FLOAT, !1, 24, 0), a.vertexAttribPointer(c.Sd, 2, a.FLOAT, !1, 24, 16), a.vertexAttribPointer(c.ef, 4, a.UNSIGNED_BYTE, !0, 24, 12), a.drawArrays(a.TRIANGLE_STRIP, 0, 4));
  10760. if (1 === c.hl) a = this.hc, a = [c.d(a.Q.j.x, a.Q.j.y), c.d(a.I.j.x, a.I.j.y), c.d(a.R.j.x, a.R.j.y), c.d(a.N.j.x, a.N.j.y)], c.jf.$d(a, 4, !0);
  10761. else if (2 === c.hl) {
  10762. a = this.SP().hca;
  10763. var d = this.offsetX,
  10764. e = this.offsetY;
  10765. a = [c.d(d, e), c.d(d + a.width, e), c.d(d + a.width, e + a.height), c.d(d, e + a.height)];
  10766. c.jf.$d(a, 4, !0)
  10767. }
  10768. c.Lg++
  10769. }
  10770. };
  10771. a.Hb = c.P.prototype.Hb
  10772. };
  10773. c.H.KB = function() {
  10774. var a = c.Z.prototype;
  10775. c.i(a, "color", a.xf, a.Va);
  10776. c.i(a, "opacity", a.yf, a.Fa);
  10777. c.i(a, "string", a.lm, a.tc);
  10778. c.i(a, "textAlign", a.u3, a.F7);
  10779. c.i(a, "verticalAlign", a.h4, a.o8);
  10780. c.i(a, "fontSize", a.UG, a.zA);
  10781. c.i(a, "fontName", a.TG, a.yA);
  10782. c.i(a, "font", a.$Y, a.X_);
  10783. c.i(a, "boundingWidth", a.FD, a.R_);
  10784. c.i(a, "boundingHeight", a.XY, a.Q_);
  10785. c.i(a, "fillStyle", a.ZY, a.xA);
  10786. c.i(a, "strokeStyle", a.uZ, a.s0);
  10787. c.i(a, "lineWidth", a.hZ, a.a0);
  10788. c.i(a, "shadowOffsetX", a.pZ, a.i0);
  10789. c.i(a, "shadowOffsetY", a.qZ, a.j0);
  10790. c.i(a, "shadowOpacity", a.rZ, a.k0);
  10791. c.i(a, "shadowBlur", a.oZ, a.h0)
  10792. };
  10793. c.Z = c.P.extend({
  10794. yc: null,
  10795. Ll: c.Pm,
  10796. em: c.Fs,
  10797. mc: null,
  10798. fc: 0,
  10799. Tb: "",
  10800. qE: null,
  10801. Hp: !1,
  10802. Vh: null,
  10803. Ed: !1,
  10804. Zd: null,
  10805. wk: 0,
  10806. Wl: 0,
  10807. ny: null,
  10808. wh: !1,
  10809. vn: null,
  10810. zk: 0,
  10811. sy: null,
  10812. wn: null,
  10813. wx: null,
  10814. yF: 0,
  10815. zF: 0,
  10816. ub: !1,
  10817. Kx: null,
  10818. Lx: null,
  10819. QM: null,
  10820. ob: "LabelTTF",
  10821. ctor: function(a, b, d, e, f, g) {
  10822. c.P.prototype.ctor.call(this);
  10823. this.yc = c.size(0, 0);
  10824. this.Ll = c.ss;
  10825. this.em = c.Fs;
  10826. this.Xa = !1;
  10827. this.Vh = "";
  10828. this.mc = "Arial";
  10829. this.Ed = this.Hp = !1;
  10830. this.Zd = c.d(0, 0);
  10831. this.Wl = this.wk = 0;
  10832. this.ny = "rgba(128, 128, 128, 0.5)";
  10833. this.wh = !1;
  10834. this.vn = c.color(255, 255, 255, 255);
  10835. this.zk = 0;
  10836. this.sy = "";
  10837. this.wn = c.color(255, 255, 255, 255);
  10838. this.wx = "rgba(255,255,255,1)";
  10839. this.zF = this.yF = 0;
  10840. this.ub = !1;
  10841. this.QM = [];
  10842. this.Tf();
  10843. b && b instanceof c.nJ ? this.qH(a, b) : c.Z.prototype.Md.call(this, a, b, d, e, f, g)
  10844. },
  10845. K: function() {
  10846. return this.Md(" ", this.mc, this.fc)
  10847. },
  10848. a_: function() {
  10849. this.ID().font = this.Vh
  10850. },
  10851. xt: function(a) {
  10852. return this.ID().measureText(a).width
  10853. },
  10854. gY: function(a, b) {
  10855. var d = this.xt(a),
  10856. e = Math.floor(a.length * b / d),
  10857. f = a.indexOf("\n");
  10858. if (0.8 * e >= f && 0 < f) return f + 1;
  10859. if (d < b) return a.length;
  10860. for (var d = !1, f = b + 1, g = -1, h = e, k, m = c.Z.iY, n = c.Z.J_, q = c.Z.fY, r = a.substr(e); k = m.exec(r);) {
  10861. h += k[0].length;
  10862. f = this.xt(a.substr(0, h));
  10863. if ("\n" == k[2] && f < b) {
  10864. d = !0;
  10865. g = h;
  10866. break
  10867. }
  10868. if (f > b) {
  10869. -1 != g && (d = !0);
  10870. break
  10871. }
  10872. g = h;
  10873. r = a.substr(h)
  10874. }
  10875. if (d) return g;
  10876. r = a.substr(0, e);
  10877. for (g = e; k = n.exec(r);) if (g = k[1].length, r = k[1], f = this.xt(r), f < b) {
  10878. q.test(k[2]) && g++;
  10879. break
  10880. }
  10881. return g || 1
  10882. },
  10883. description: function() {
  10884. return "<cc.LabelTTF | FontName =" + this.mc + " FontSize = " + this.fc.toFixed(1) + ">"
  10885. },
  10886. Va: null,
  10887. Tf: null,
  10888. bc: null,
  10889. Fa: null,
  10890. Zb: null,
  10891. Cpa: function(a) {
  10892. c.la.prototype.Zb.call(this, a);
  10893. this.Tf()
  10894. },
  10895. lm: function() {
  10896. return this.Tb
  10897. },
  10898. u3: function() {
  10899. return this.Ll
  10900. },
  10901. h4: function() {
  10902. return this.em
  10903. },
  10904. Bfa: function() {
  10905. return c.size(this.yc.width, this.yc.height)
  10906. },
  10907. UG: function() {
  10908. return this.fc
  10909. },
  10910. TG: function() {
  10911. return this.mc
  10912. },
  10913. Md: function(a, b, d, e, f, g) {
  10914. a = a ? a + "" : "";
  10915. d = d || 16;
  10916. e = e || c.size(0, d);
  10917. f = f || c.ss;
  10918. g = g || c.Fs;
  10919. this.Xa = !1;
  10920. this.yc = c.size(e.width, e.height);
  10921. this.mc = b || "Arial";
  10922. this.Ll = f;
  10923. this.em = g;
  10924. this.fc = d;
  10925. this.Vh = this.fc + "px '" + b + "'";
  10926. this.cj = c.Z.Hs(b, this.fc);
  10927. this.string = a;
  10928. this.Tf();
  10929. this.Hy();
  10930. this.ub = !1;
  10931. return !0
  10932. },
  10933. qH: null,
  10934. qoa: function(a) {
  10935. a && this.NF(a, !0)
  10936. },
  10937. lha: function() {
  10938. return this.A_(!1)
  10939. },
  10940. K2: function(a, b, d, e) {
  10941. d = d || 0.5;
  10942. !1 === this.Ed && (this.Ed = !0);
  10943. var f = this.Zd;
  10944. if (f && f.x != a || f.sf != b) f.x = a, f.y = b;
  10945. this.wk != d && (this.wk = d);
  10946. this.Tf();
  10947. this.Wl != e && (this.Wl = e);
  10948. this.ub = !0
  10949. },
  10950. pZ: function() {
  10951. return this.Zd.x
  10952. },
  10953. i0: function(a) {
  10954. !1 === this.Ed && (this.Ed = !0);
  10955. this.Zd.x != a && (this.Zd.x = a, this.ub = !0)
  10956. },
  10957. qZ: function() {
  10958. return this.Zd.sf
  10959. },
  10960. j0: function(a) {
  10961. !1 === this.Ed && (this.Ed = !0);
  10962. this.Zd.sf != a && (this.Zd.sf = a, this.ub = !0)
  10963. },
  10964. Qba: function() {
  10965. return c.d(this.Zd.x, this.Zd.y)
  10966. },
  10967. eca: function(a) {
  10968. !1 === this.Ed && (this.Ed = !0);
  10969. if (this.Zd.x != a.x || this.Zd.y != a.y) this.Zd.x = a.x, this.Zd.y = a.y, this.ub = !0
  10970. },
  10971. rZ: function() {
  10972. return this.wk
  10973. },
  10974. k0: function(a) {
  10975. !1 === this.Ed && (this.Ed = !0);
  10976. this.wk != a && (this.wk = a, this.Tf(), this.ub = !0)
  10977. },
  10978. oZ: function() {
  10979. return this.Wl
  10980. },
  10981. h0: function(a) {
  10982. !1 === this.Ed && (this.Ed = !0);
  10983. this.Wl != a && (this.Wl = a, this.ub = !0)
  10984. },
  10985. Dda: function() {
  10986. this.Ed && (this.Ed = !1, this.ub = !0)
  10987. },
  10988. L2: function(a, b) {
  10989. !1 === this.wh && (this.wh = !0);
  10990. var d = this.vn;
  10991. 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.Tf();
  10992. this.zk !== b && (this.zk = b || 0);
  10993. this.ub = !0
  10994. },
  10995. uZ: function() {
  10996. return this.vn
  10997. },
  10998. s0: function(a) {
  10999. !1 === this.wh && (this.wh = !0);
  11000. var b = this.vn;
  11001. if (b.r !== a.r || b.g !== a.g || b.b !== a.b) b.r = a.r, b.g = a.g, b.b = a.b, this.Tf(), this.ub = !0
  11002. },
  11003. hZ: function() {
  11004. return this.zk
  11005. },
  11006. a0: function(a) {
  11007. !1 === this.wh && (this.wh = !0);
  11008. this.zk !== a && (this.zk = a || 0, this.ub = !0)
  11009. },
  11010. Eda: function() {
  11011. this.wh && (this.wh = !1, this.ub = !0)
  11012. },
  11013. xA: null,
  11014. ZY: function() {
  11015. return this.wn
  11016. },
  11017. NF: function(a, b) {
  11018. a.Sea ? (this.yc.width = a.boundingWidth, this.yc.height = a.boundingHeight) : (this.yc.width = 0, this.yc.height = 0);
  11019. this.Ll = a.textAlign;
  11020. this.em = a.verticalAlign;
  11021. this.mc = a.fontName;
  11022. this.fc = a.fontSize || 12;
  11023. this.Vh = this.fc + "px '" + this.mc + "'";
  11024. this.cj = c.Z.Hs(this.mc, this.fc);
  11025. a.iS && this.K2(a.shadowOffsetX, a.shadowOffsetY, a.shadowOpacity, a.shadowBlur);
  11026. a.HI && this.L2(a.strokeStyle, a.lineWidth);
  11027. this.xA(a.fillStyle);
  11028. b && this.Hy()
  11029. },
  11030. A_: function(a) {
  11031. var b = new c.nJ;
  11032. a ? (b.fontSize = this.fc, b.boundingWidth = c.wb() * this.yc.width, b.boundingHeight = c.wb() * this.yc.height) : (b.fontSize = this.fc, b.boundingWidth = this.yc.width, b.boundingHeight = this.yc.height);
  11033. b.fontName = this.mc;
  11034. b.textAlign = this.Ll;
  11035. b.verticalAlign = this.em;
  11036. if (this.wh) {
  11037. b.HI = !0;
  11038. var d = this.vn;
  11039. b.strokeStyle = c.color(d.r, d.g, d.b);
  11040. b.lineWidth = this.zk
  11041. } else b.HI = !1;
  11042. this.Ed ? (b.iS = !0, b.shadowBlur = this.Wl, b.shadowOpacity = this.wk, b.shadowOffsetX = (a ? c.wb() : 1) * this.Zd.x, b.shadowOffsetY = (a ? c.wb() : 1) * this.Zd.y) : b.Ed = !1;
  11043. a = this.wn;
  11044. b.fillStyle = c.color(a.r, a.g, a.b);
  11045. return b
  11046. },
  11047. cj: 18,
  11048. tc: function(a) {
  11049. a = String(a);
  11050. this.qE != a && (this.qE = a + "", this.Fy(), this.ub = !0)
  11051. },
  11052. Fy: function() {
  11053. this.Tb = this.qE
  11054. },
  11055. F7: function(a) {
  11056. a !== this.Ll && (this.Ll = a, this.ub = !0)
  11057. },
  11058. o8: function(a) {
  11059. a != this.em && (this.em = a, this.ub = !0)
  11060. },
  11061. gna: function(a) {
  11062. if (a.width != this.yc.width || a.height != this.yc.height) this.yc = a, this.Fy(), this.ub = !0
  11063. },
  11064. FD: function() {
  11065. return this.yc.width
  11066. },
  11067. R_: function(a) {
  11068. a != this.yc.width && (this.yc.width = a, this.Fy(), this.ub = !0)
  11069. },
  11070. XY: function() {
  11071. return this.yc.height
  11072. },
  11073. Q_: function(a) {
  11074. a != this.yc.height && (this.yc.height = a, this.Fy(), this.ub = !0)
  11075. },
  11076. zA: function(a) {
  11077. this.fc !== a && (this.fc = a, this.Vh = a + "px '" + this.mc + "'", this.cj = c.Z.Hs(this.mc, a), this.ub = !0)
  11078. },
  11079. yA: function(a) {
  11080. this.mc && this.mc != a && (this.mc = a, this.Vh = this.fc + "px '" + a + "'", this.cj = c.Z.Hs(a, this.fc), this.ub = !0)
  11081. },
  11082. $Y: function() {
  11083. return this.Vh
  11084. },
  11085. X_: function(a) {
  11086. var b = c.Z.MY.exec(a);
  11087. b && (this.fc = parseInt(b[1]), this.mc = b[2], this.Vh = a, this.cj = c.Z.Hs(this.mc, this.fc), this.ub = !0)
  11088. },
  11089. GY: function(a) {
  11090. if (a) {
  11091. var b = this.yF,
  11092. d = this.zF,
  11093. e = this.S.height - d,
  11094. f = this.em,
  11095. g = this.Ll,
  11096. h = this.cj,
  11097. k = this.zk;
  11098. a.setTransform(1, 0, 0, 1, 0 + 0.5 * b, e + 0.5 * d);
  11099. a.font != this.Vh && (a.font = this.Vh);
  11100. a.fillStyle = this.wx;
  11101. var m = d = 0,
  11102. n = this.wh;
  11103. n && (a.lineWidth = 2 * k, a.strokeStyle = this.sy);
  11104. this.Ed && (k = this.Zd, a.shadowColor = this.ny, a.shadowOffsetX = k.x, a.shadowOffsetY = -k.y, a.shadowBlur = this.Wl);
  11105. a.textBaseline = c.Z.I0[f];
  11106. a.textAlign = c.Z.H0[g];
  11107. b = this.S.width - b;
  11108. d = g === c.hK ? d + b : g === c.Pm ? d + b / 2 : d + 0;
  11109. if (this.Hp) for (g = this.yk.length, f === c.VK ? m = h + e - h * g : f === c.AX && (m = h / 2 + (e - h * g) / 2), f = 0; f < g; f++) b = this.yk[f], k = -e + h * f + m, n && a.strokeText(b, d, k), a.fillText(b, d, k);
  11110. else f !== c.VK && (m = f === c.Fs ? m - e : m - 0.5 * e), n && a.strokeText(this.Tb, d, m), a.fillText(this.Tb, d, m)
  11111. }
  11112. },
  11113. ID: function() {
  11114. if (this.Lx) return this.Lx;
  11115. if (!this.Kx) {
  11116. var a = c.ac("canvas"),
  11117. b = new c.ia;
  11118. b.Ld(a);
  11119. this.texture = b;
  11120. this.Kx = a
  11121. }
  11122. return this.Lx = this.Kx.getContext("2d")
  11123. },
  11124. Gy: function() {
  11125. var a = this.yc.width,
  11126. b, d, e = this.QM;
  11127. e.length = 0;
  11128. this.Hp = !1;
  11129. this.a_();
  11130. if (0 !== a) {
  11131. var f = this.Tb;
  11132. this.yk = [];
  11133. b = 0;
  11134. for (d = this.Tb.length; b < d;) {
  11135. var g = this.gY(f.substr(b), a);
  11136. this.yk.push(f.substr(b, g));
  11137. b += g
  11138. }
  11139. } else for (this.yk = this.Tb.split("\n"), b = 0, d = this.yk.length; b < d; b++) e.push(this.xt(this.yk[b]));
  11140. 0 < this.yk.length && (this.Hp = !0);
  11141. d = b = 0;
  11142. this.wh && (b = d = 2 * this.zk);
  11143. this.Ed && (f = this.Zd, b += 2 * Math.abs(f.x), d += 2 * Math.abs(f.y));
  11144. a = 0 === a ? this.Hp ? c.size(0 | Math.max.apply(Math, e) + b, 0 | this.cj * this.yk.length + d) : c.size(0 | this.xt(this.Tb) + b, 0 | this.cj + d) : 0 === this.yc.height ? this.Hp ? c.size(0 | a + b, 0 | this.cj * this.yk.length + d) : c.size(0 | a + b, 0 | this.cj + d) : c.size(0 | a + b, 0 | this.yc.height + d);
  11145. this.ye(a);
  11146. this.yF = b;
  11147. this.zF = d;
  11148. e = this.dd;
  11149. this.lb.x = 0.5 * b + (a.width - b) * e.x;
  11150. this.lb.y = 0.5 * d + (a.height - d) * e.y
  11151. },
  11152. ve: function() {
  11153. this.ub && this.Gy();
  11154. return c.P.prototype.ve.call(this)
  11155. },
  11156. Wh: function() {
  11157. this.ub && this.Gy();
  11158. return c.P.prototype.Wh.call(this)
  11159. },
  11160. Jl: function() {
  11161. this.ub && this.Gy();
  11162. return c.P.prototype.Jl.call(this)
  11163. },
  11164. Hy: function() {
  11165. var a = this.ID(),
  11166. b = this.Kx,
  11167. d = this.S;
  11168. if (0 === this.Tb.length) return b.width = 1, b.height = d.height, this.Hb(c.rect(0, 0, 1, d.height)), !0;
  11169. a.font = this.Vh;
  11170. this.Gy();
  11171. var e = d.width,
  11172. d = d.height,
  11173. f = b.width == e && b.height == d;
  11174. b.width = e;
  11175. b.height = d;
  11176. f && a.clearRect(0, 0, e, d);
  11177. this.GY(a);
  11178. this.O && this.O.$b();
  11179. this.Hb(c.rect(0, 0, e, d));
  11180. return !0
  11181. },
  11182. U: function(a) {
  11183. this.Tb && "" != this.Tb && (this.ub && (this.ub = !1, this.Hy()), c.P.prototype.U.call(this, a || c.m))
  11184. },
  11185. Y: null,
  11186. KN: function(a) {
  11187. var b = this.$ ? this.textureAtlas.texture : this.O;
  11188. if (b) {
  11189. var d = b.pixelsWidth,
  11190. e = b.pixelsHeight,
  11191. f, g = this.hc;
  11192. this.rd ? (c.Do ? (b = (2 * a.x + 1) / (2 * d), d = b + (2 * a.height - 2) / (2 * d), f = (2 * a.y + 1) / (2 * e), a = f + (2 * a.width - 2) / (2 * e)) : (b = a.x / d, d = (a.x + a.height) / d, f = a.y / e, a = (a.y + a.width) / e), this.dc && (e = f, f = a, a = e), this.ec && (e = b, b = d, d = e), g.I.n.da = b, g.I.n.G = f, g.R.n.da = b, g.R.n.G = a, g.Q.n.da = d, g.Q.n.G = f, g.N.n.da = d, g.N.n.G = a) : (c.Do ? (b = (2 * a.x + 1) / (2 * d), d = b + (2 * a.width - 2) / (2 * d), f = (2 * a.y + 1) / (2 * e), a = f + (2 * a.height - 2) / (2 * e)) : (b = a.x / d, d = (a.x + a.width) / d, f = a.y / e, a = (a.y + a.height) / e), this.dc && (e = b, b = d, d = e), this.ec && (e = f, f = a, a = e), g.I.n.da = b, g.I.n.G = a, g.R.n.da = d, g.R.n.G = a, g.Q.n.da = b, g.Q.n.G = f, g.N.n.da = d, g.N.n.G = f);
  11193. this.mf = !0
  11194. }
  11195. }
  11196. });
  11197. c.F === c.Ha ? (p = c.Z.prototype, p.Va = function(a) {
  11198. c.la.prototype.Va.call(this, a);
  11199. this.Tf()
  11200. }, p.Tf = function() {
  11201. this.ub = !0;
  11202. var a = this.Ma,
  11203. b = this.Ia,
  11204. d = this.vn,
  11205. e = this.wn;
  11206. this.ny = "rgba(" + (0 | 0.5 * a.r) + "," + (0 | 0.5 * a.g) + "," + (0 | 0.5 * a.b) + "," + this.wk + ")";
  11207. this.wx = "rgba(" + (0 | a.r / 255 * e.r) + "," + (0 | a.g / 255 * e.g) + "," + (0 | a.b / 255 * e.b) + ", " + b / 255 + ")";
  11208. this.sy = "rgba(" + (0 | a.r / 255 * d.r) + "," + (0 | a.g / 255 * d.g) + "," + (0 | a.b / 255 * d.b) + ", " + b / 255 + ")"
  11209. }, p.bc = function(a) {
  11210. c.la.prototype.bc.call(this, a);
  11211. this.Tf()
  11212. }, p.Fa = function(a) {
  11213. this.qe !== a && (c.P.prototype.Fa.call(this, a), this.Tf(), this.ub = !0)
  11214. }, p.Zb = c.P.prototype.Zb, p.qH = function(a, b) {
  11215. this.NF(b, !1);
  11216. this.string = a;
  11217. return !0
  11218. }, p.xA = function(a) {
  11219. var b = this.wn;
  11220. if (b.r != a.r || b.g != a.g || b.b != a.b) b.r = a.r, b.g = a.g, b.b = a.b, this.Tf(), this.ub = !0
  11221. }, p.Y = c.P.prototype.Y, p.Hb = function(a, b, d) {
  11222. this.rd = b || !1;
  11223. this.ye(d || a);
  11224. this.BI(a);
  11225. b = this.Wp;
  11226. b.x = a.x;
  11227. b.y = a.y;
  11228. b.width = a.width;
  11229. b.height = a.height;
  11230. b.vr = !(0 === b.width || 0 === b.height || 0 > b.x || 0 > b.y);
  11231. a = this.qi;
  11232. this.dc && (a.x = -a.x);
  11233. this.ec && (a.y = -a.y);
  11234. this.Pb.x = a.x + (this.S.width - this.ba.width) / 2;
  11235. this.Pb.y = a.y + (this.S.height - this.ba.height) / 2;
  11236. this.$ && (this.dirty = !0)
  11237. }, p = null) : (c.assert("function" === typeof c.H.EC, c.f.cd, "LabelTTFWebGL.js"), c.H.EC(), delete c.H.EC);
  11238. c.assert("function" === typeof c.H.KB, c.f.cd, "LabelTTFPropertyDefine.js");
  11239. c.H.KB();
  11240. delete c.H.KB;
  11241. c.Z.H0 = ["left", "center", "right"];
  11242. c.Z.I0 = ["top", "middle", "bottom"];
  11243. c.Z.iY = /(.+?)([\s\n\r\-\/\\\:]|[一-龥]|[︰-ᅠ])/;
  11244. c.Z.J_ = /(.*)([\s\n\r\-\/\\\:]|[一-龥]|[︰-ᅠ])/;
  11245. c.Z.fY = /[\s\-\/\\\:]/;
  11246. c.Z.MY = /^(\d+)px\s+['"]?([\w\s\d]+)['"]?$/;
  11247. c.Z.create = function(a, b, d, e, f, g) {
  11248. return new c.Z(a, b, d, e, f, g)
  11249. };
  11250. c.Z.KX = c.zX ? c.Zj : c.WB;
  11251. c.Z.ul = c.ac("div");
  11252. c.Z.ul.style.fontFamily = "Arial";
  11253. c.Z.ul.style.position = "absolute";
  11254. c.Z.ul.style.left = "-100px";
  11255. c.Z.ul.style.top = "-100px";
  11256. c.Z.ul.style.lineHeight = "normal";
  11257. document.body ? document.body.appendChild(c.Z.ul) : c.Ra(window, "load", function() {
  11258. this.removeEventListener("load", arguments.callee, !1);
  11259. document.body.appendChild(c.Z.ul)
  11260. }, !1);
  11261. c.Z.Hs = function(a, b) {
  11262. var d = c.Z.aL[a + "." + b];
  11263. if (0 < d) return d;
  11264. var e = c.Z.ul;
  11265. e.innerHTML = "ajghl~!";
  11266. e.style.fontFamily = a;
  11267. e.style.fontSize = b + "px";
  11268. d = e.clientHeight;
  11269. c.Z.aL[a + "." + b] = d;
  11270. e.innerHTML = "";
  11271. return d
  11272. };
  11273. c.Z.aL = {};
  11274. c.iU = c.qa.extend({
  11275. Oc: null,
  11276. target: null,
  11277. Fn: 0,
  11278. $f: null,
  11279. On: !1,
  11280. paused: !1,
  11281. oz: null,
  11282. ctor: function() {
  11283. this.Oc = [];
  11284. this.target = null;
  11285. this.Fn = 0;
  11286. this.$f = null;
  11287. this.paused = this.On = !1;
  11288. this.oz = null
  11289. }
  11290. });
  11291. c.TI = c.qa.extend({
  11292. Yh: null,
  11293. Uo: null,
  11294. Vd: null,
  11295. aj: !1,
  11296. cca: function(a, b) {
  11297. for (var d = 0; d < a.length; d++) if (b == a[d].target) return a[d];
  11298. return null
  11299. },
  11300. ctor: function() {
  11301. this.Yh = {};
  11302. this.Uo = [];
  11303. this.Vd = null;
  11304. this.aj = !1
  11305. },
  11306. Z0: function(a, b, d) {
  11307. if (!a) throw "cc.ActionManager.addAction(): action must be non-null";
  11308. if (!b) throw "cc.ActionManager.addAction(): action must be non-null";
  11309. var e = this.Yh[b.Ba];
  11310. e || (e = new c.iU, e.paused = d, e.target = b, this.Yh[b.Ba] = e, this.Uo.push(e));
  11311. this.OX(e);
  11312. e.Oc.push(a);
  11313. a.B(b)
  11314. },
  11315. ama: function() {
  11316. for (var a = this.Uo, b = 0; b < a.length; b++) {
  11317. var d = a[b];
  11318. d && this.pR(d.target, !0)
  11319. }
  11320. },
  11321. pR: function(a, b) {
  11322. if (null != a) {
  11323. var d = this.Yh[a.Ba];
  11324. d && (-1 === d.Oc.indexOf(d.$f) || d.On || (d.On = !0), d.Oc.length = 0, this.Vd != d || b ? this.kD(d) : this.aj = !0)
  11325. }
  11326. },
  11327. oR: function(a) {
  11328. if (null != a) {
  11329. var b = this.Yh[a.originalTarget.Ba];
  11330. if (b) for (var d = 0; d < b.Oc.length; d++) {
  11331. if (b.Oc[d] == a) {
  11332. b.Oc.splice(d, 1);
  11333. break
  11334. }
  11335. } else c.log(c.f.aT)
  11336. }
  11337. },
  11338. J6: function(a, b) {
  11339. a == c.zo && c.log(c.f.UI);
  11340. c.assert(b, c.f.UI);
  11341. var d = this.Yh[b.Ba];
  11342. if (d) for (var e = d.Oc.length, f = 0; f < e; ++f) {
  11343. var g = d.Oc[f];
  11344. if (g && g.Dq() === a && g.originalTarget == b) {
  11345. this.C_(f, d);
  11346. break
  11347. }
  11348. }
  11349. },
  11350. NG: function(a, b) {
  11351. a == c.zo && c.log(c.f.ZS);
  11352. var d = this.Yh[b.Ba];
  11353. if (d) {
  11354. if (null != d.Oc) for (var e = 0; e < d.Oc.length; ++e) {
  11355. var f = d.Oc[e];
  11356. if (f && f.Dq() === a) return f
  11357. }
  11358. c.log(c.f.$S, a)
  11359. }
  11360. return null
  11361. },
  11362. O5: function(a) {
  11363. return (a = this.Yh[a.Ba]) ? a.Oc ? a.Oc.length : 0 : 0
  11364. },
  11365. Xq: function(a) {
  11366. (a = this.Yh[a.Ba]) && (a.paused = !0)
  11367. },
  11368. Uk: function(a) {
  11369. (a = this.Yh[a.Ba]) && (a.paused = !1)
  11370. },
  11371. wla: function() {
  11372. for (var a = [], b = this.Uo, d = 0; d < b.length; d++) {
  11373. var e = b[d];
  11374. e && !e.paused && (e.paused = !0, a.push(e.target))
  11375. }
  11376. return a
  11377. },
  11378. b7: function(a) {
  11379. if (a) for (var b = 0; b < a.length; b++) a[b] && this.Uk(a[b])
  11380. },
  11381. Jla: function() {
  11382. c.L.km().Lv(this)
  11383. },
  11384. C_: function(a, b) {
  11385. b.Oc[a] != b.$f || b.On || (b.On = !0);
  11386. b.Oc.splice(a, 1);
  11387. b.Fn >= a && b.Fn--;
  11388. 0 == b.Oc.length && (this.Vd == b ? this.aj = !0 : this.kD(b))
  11389. },
  11390. kD: function(a) {
  11391. a && (delete this.Yh[a.target.Ba], c.tf(this.Uo, a), a.Oc = null, a.target = null)
  11392. },
  11393. OX: function(a) {
  11394. null == a.Oc && (a.Oc = [])
  11395. },
  11396. update: function(a) {
  11397. for (var b = this.Uo, d, e = 0; e < b.length; e++) {
  11398. d = this.Vd = b[e];
  11399. if (!d.paused) for (d.Fn = 0; d.Fn < d.Oc.length; d.Fn++) if (d.$f = d.Oc[d.Fn], d.$f) {
  11400. d.On = !1;
  11401. d.$f.step(a * (d.$f.Qt ? d.$f.Me : 1));
  11402. if (d.On) d.$f = null;
  11403. else if (d.$f.Bh()) {
  11404. d.$f.stop();
  11405. var f = d.$f;
  11406. d.$f = null;
  11407. this.oR(f)
  11408. }
  11409. d.$f = null
  11410. }
  11411. this.aj && 0 === d.Oc.length && this.kD(d)
  11412. }
  11413. }
  11414. });
  11415. c.Mja = Number;
  11416. c.Cia = Number;
  11417. c.Dia = Number;
  11418. c.Jo = 0;
  11419. c.Ko = 1;
  11420. c.CH = 3.141592;
  11421. c.o5 = 0.017453;
  11422. c.p5 = 57.295779;
  11423. c.Da = 0.015625;
  11424. c.Yc = function(a) {
  11425. return a * a
  11426. };
  11427. c.Xu = function(a) {
  11428. return a * c.o5
  11429. };
  11430. c.Hja = function(a) {
  11431. return a * c.p5
  11432. };
  11433. c.Hz = function(a, b) {
  11434. return a < b ? a : b
  11435. };
  11436. c.Gz = function(a, b) {
  11437. return a > b ? a : b
  11438. };
  11439. c.Bia = function(a, b) {
  11440. return a + c.Da > b && a - c.Da < b
  11441. };
  11442. c.Ei = function() {
  11443. this.y = this.x = 0
  11444. };
  11445. c.Qja = function(a, b, d) {
  11446. a.x = b;
  11447. a.y = d;
  11448. return a
  11449. };
  11450. c.Jz = function(a) {
  11451. return Math.sqrt(c.Yc(a.x) + c.Yc(a.y))
  11452. };
  11453. c.Rja = function(a) {
  11454. return c.Yc(a.x) + c.Yc(a.y)
  11455. };
  11456. c.v5 = function(a, b) {
  11457. var d = 1 / c.Jz(b),
  11458. e = new c.Ei;
  11459. e.x = b.x * d;
  11460. e.y = b.y * d;
  11461. a.x = e.x;
  11462. a.y = e.y
  11463. };
  11464. c.Nja = function(a, b, d) {
  11465. a.x = b.x + d.x;
  11466. a.y = b.y + d.y;
  11467. return a
  11468. };
  11469. c.Pja = function(a, b) {
  11470. return a.x * b.x + a.y * b.y
  11471. };
  11472. c.Kz = function(a, b, d) {
  11473. a.x = b.x - d.x;
  11474. a.y = b.y - d.y;
  11475. return a
  11476. };
  11477. c.Tja = function(a, b, d) {
  11478. var e = new c.Ei;
  11479. e.x = b.x * d.c[0] + b.y * d.c[3] + d.c[6];
  11480. e.y = b.x * d.c[1] + b.y * d.c[4] + d.c[7];
  11481. a.x = e.x;
  11482. a.y = e.y;
  11483. return a
  11484. };
  11485. c.Uja = function() {
  11486. return null
  11487. };
  11488. c.Sja = function(a, b, d) {
  11489. a.x = b.x * d;
  11490. a.y = b.y * d;
  11491. return a
  11492. };
  11493. c.Oja = function(a, b) {
  11494. return a.x < b.x + c.Da && a.x > b.x - c.Da && a.y < b.y + c.Da && a.y > b.y - c.Da
  11495. };
  11496. c.Gb = function(a, b, d) {
  11497. this.x = a || 0;
  11498. this.y = b || 0;
  11499. this.z = d || 0
  11500. };
  11501. c.Mq = function(a, b, d, e) {
  11502. if (!a) return new c.Gb(b, d, e);
  11503. a.x = b;
  11504. a.y = d;
  11505. a.z = e;
  11506. return a
  11507. };
  11508. c.FQ = function(a) {
  11509. return Math.sqrt(c.Yc(a.x) + c.Yc(a.y) + c.Yc(a.z))
  11510. };
  11511. c.GQ = function(a) {
  11512. return c.Yc(a.x) + c.Yc(a.y) + c.Yc(a.z)
  11513. };
  11514. c.hg = function(a, b) {
  11515. var d = 1 / c.FQ(b);
  11516. a.x = b.x * d;
  11517. a.y = b.y * d;
  11518. a.z = b.z * d
  11519. };
  11520. c.om = function(a, b, d) {
  11521. a.x = b.y * d.z - b.z * d.y;
  11522. a.y = b.z * d.x - b.x * d.z;
  11523. a.z = b.x * d.y - b.y * d.x
  11524. };
  11525. c.EH = function(a, b) {
  11526. return a.x * b.x + a.y * b.y + a.z * b.z
  11527. };
  11528. c.EQ = function(a, b, d) {
  11529. a.x = b.x + d.x;
  11530. a.y = b.y + d.y;
  11531. a.z = b.z + d.z
  11532. };
  11533. c.GH = function(a, b, d) {
  11534. a.x = b.x - d.x;
  11535. a.y = b.y - d.y;
  11536. a.z = b.z - d.z
  11537. };
  11538. c.Zja = function(a, b, d) {
  11539. a.x = b.x * d.c[0] + b.y * d.c[4] + b.z * d.c[8] + d.c[12];
  11540. a.y = b.x * d.c[1] + b.y * d.c[5] + b.z * d.c[9] + d.c[13];
  11541. a.z = b.x * d.c[2] + b.y * d.c[6] + b.z * d.c[10] + d.c[14];
  11542. return a
  11543. };
  11544. c.$ja = function(a, b, d) {
  11545. a.x = b.x * d.c[0] + b.y * d.c[4] + b.z * d.c[8];
  11546. a.y = b.x * d.c[1] + b.y * d.c[5] + b.z * d.c[9];
  11547. a.z = b.x * d.c[2] + b.y * d.c[6] + b.z * d.c[10];
  11548. return a
  11549. };
  11550. c.HQ = function(a, b, d) {
  11551. var e = new c.IQ,
  11552. f = new c.IQ;
  11553. c.w5(f, b.x, b.y, b.z);
  11554. c.JQ(e, f, d);
  11555. a.x = e.x / e.l;
  11556. a.y = e.y / e.l;
  11557. a.z = e.z / e.l
  11558. };
  11559. c.FH = function(a, b, d) {
  11560. a.x = b.x * d;
  11561. a.y = b.y * d;
  11562. a.z = b.z * d;
  11563. return a
  11564. };
  11565. c.Vja = function(a, b) {
  11566. return a.x < b.x + c.Da && a.x > b.x - c.Da && a.y < b.y + c.Da && a.y > b.y - c.Da && a.z < b.z + c.Da && a.z > b.z - c.Da ? 1 : 0
  11567. };
  11568. c.Wja = function(a, b, d) {
  11569. b = new c.Gb(b.x - d.c[12], b.y - d.c[13], b.z - d.c[14]);
  11570. a.x = b.x * d.c[0] + b.y * d.c[1] + b.z * d.c[2];
  11571. a.y = b.x * d.c[4] + b.y * d.c[5] + b.z * d.c[6];
  11572. a.z = b.x * d.c[8] + b.y * d.c[9] + b.z * d.c[10];
  11573. return a
  11574. };
  11575. c.Xja = function(a, b, d) {
  11576. a.x = b.x * d.c[0] + b.y * d.c[1] + b.z * d.c[2];
  11577. a.y = b.x * d.c[4] + b.y * d.c[5] + b.z * d.c[6];
  11578. a.z = b.x * d.c[8] + b.y * d.c[9] + b.z * d.c[10];
  11579. return a
  11580. };
  11581. c.Yu = function(a, b) {
  11582. a != b && (a.x = b.x, a.y = b.y, a.z = b.z)
  11583. };
  11584. c.aka = function(a) {
  11585. a.x = 0;
  11586. a.y = 0;
  11587. a.z = 0;
  11588. return a
  11589. };
  11590. c.Yja = function(a) {
  11591. if (!a) return null;
  11592. var b = new Float32Array(3);
  11593. b[0] = a.x;
  11594. b[1] = a.y;
  11595. b[2] = a.z;
  11596. return b
  11597. };
  11598. c.IQ = function() {
  11599. this.l = this.z = this.y = this.x = 0
  11600. };
  11601. c.w5 = function(a, b, d, e) {
  11602. a.x = b;
  11603. a.y = d;
  11604. a.z = e;
  11605. a.l = 1
  11606. };
  11607. c.bka = function(a, b, d) {
  11608. a.x = b.x + d.x;
  11609. a.y = b.y + d.y;
  11610. a.z = b.z + d.z;
  11611. a.l = b.l + d.l;
  11612. return a
  11613. };
  11614. c.eka = function(a, b) {
  11615. return a.x * b.x + a.y * b.y + a.z * b.z + a.l * b.l
  11616. };
  11617. c.x5 = function(a) {
  11618. return Math.sqrt(c.Yc(a.x) + c.Yc(a.y) + c.Yc(a.z) + c.Yc(a.l))
  11619. };
  11620. c.fka = function(a) {
  11621. return c.Yc(a.x) + c.Yc(a.y) + c.Yc(a.z) + c.Yc(a.l)
  11622. };
  11623. c.gka = function(a) {
  11624. return a
  11625. };
  11626. c.y5 = function(a, b) {
  11627. var d = 1 / c.x5(b);
  11628. a.x *= d;
  11629. a.y *= d;
  11630. a.z *= d;
  11631. a.l *= d
  11632. };
  11633. c.hka = function(a, b, d) {
  11634. c.y5(a, b);
  11635. a.x *= d;
  11636. a.y *= d;
  11637. a.z *= d;
  11638. a.l *= d;
  11639. return a
  11640. };
  11641. c.ika = function(a, b, d) {
  11642. a.x = b.x - d.x;
  11643. a.y = b.y - d.y;
  11644. a.z = b.z - d.z;
  11645. a.l = b.l - d.l;
  11646. return a
  11647. };
  11648. c.JQ = function(a, b, d) {
  11649. a.x = b.x * d.c[0] + b.y * d.c[4] + b.z * d.c[8] + b.l * d.c[12];
  11650. a.y = b.x * d.c[1] + b.y * d.c[5] + b.z * d.c[9] + b.l * d.c[13];
  11651. a.z = b.x * d.c[2] + b.y * d.c[6] + b.z * d.c[10] + b.l * d.c[14];
  11652. a.l = b.x * d.c[3] + b.y * d.c[7] + b.z * d.c[11] + b.l * d.c[15]
  11653. };
  11654. c.kka = function(a, b, d, e, f, g) {
  11655. for (var h = 0; h < g;) c.JQ(a + h * b, d + h * e, f), ++h;
  11656. return a
  11657. };
  11658. c.cka = function(a, b) {
  11659. return a.x < b.x + c.Da && a.x > b.x - c.Da && a.y < b.y + c.Da && a.y > b.y - c.Da && a.z < b.z + c.Da && a.z > b.z - c.Da && a.l < b.l + c.Da && a.l > b.l - c.Da
  11660. };
  11661. c.dka = function(a, b) {
  11662. if (a == b) return c.log("destVec and srcVec are same object"), a;
  11663. a.x = b.x;
  11664. a.y = b.y;
  11665. a.z = b.z;
  11666. a.l = b.l;
  11667. return a
  11668. };
  11669. c.jka = function(a) {
  11670. if (!a) return null;
  11671. var b = new Float32Array(4);
  11672. b[0] = a.x;
  11673. b[1] = a.y;
  11674. b[2] = a.z;
  11675. b[3] = a.l;
  11676. return b
  11677. };
  11678. c.Ija = function(a) {
  11679. this.start = a || new c.Ei;
  11680. this.start = a || new c.Ei
  11681. };
  11682. c.Jja = function(a, b, d, e, f) {
  11683. a.start.x = b;
  11684. a.start.y = d;
  11685. a.dir.x = e;
  11686. a.dir.y = f
  11687. };
  11688. c.DH = function(a, b, d, e) {
  11689. var f = a.start.x,
  11690. g = a.start.y,
  11691. h = a.start.x + a.dir.x;
  11692. a = a.start.y + a.dir.y;
  11693. var k = b.x,
  11694. m = b.y,
  11695. n = d.x,
  11696. q = d.y,
  11697. r = (q - m) * (h - f) - (n - k) * (a - g);
  11698. if (r > -c.Da && r < c.Da) return c.Jo;
  11699. m = ((n - k) * (g - m) - (q - m) * (f - k)) / r;
  11700. k = f + m * (h - f);
  11701. m = g + m * (a - g);
  11702. if (k < c.Hz(b.x, d.x) - c.Da || k > c.Gz(b.x, d.x) + c.Da || m < c.Hz(b.y, d.y) - c.Da || m > c.Gz(b.y, d.y) + c.Da || k < c.Hz(f, h) - c.Da || k > c.Gz(f, h) + c.Da || m < c.Hz(g, a) - c.Da || m > c.Gz(g, a) + c.Da) return c.Jo;
  11703. e.x = k;
  11704. e.y = m;
  11705. return c.Ko
  11706. };
  11707. c.oG = function(a, b, d) {
  11708. var e = new c.Ei;
  11709. c.Kz(e, b, a);
  11710. d.x = -e.y;
  11711. d.y = e.x;
  11712. c.v5(d, d)
  11713. };
  11714. c.Lja = function(a, b, d, e, f, g) {
  11715. var h = new c.Ei,
  11716. k = new c.Ei,
  11717. m = new c.Ei,
  11718. n = 1E4,
  11719. q = c.Jo,
  11720. r;
  11721. c.DH(a, b, d, h) && (r = new c.Ei, q = c.Ko, r = c.Jz(c.Kz(r, h, a.start)), r < n && (k.x = h.x, k.y = h.y, n = r, c.oG(b, d, m)));
  11722. c.DH(a, d, e, h) && (r = new c.Ei, q = c.Ko, r = c.Jz(c.Kz(r, h, a.start)), r < n && (k.x = h.x, k.y = h.y, n = r, c.oG(d, e, m)));
  11723. c.DH(a, e, b, h) && (r = new c.Ei, q = c.Ko, r = c.Jz(c.Kz(r, h, a.start)), r < n && (k.x = h.x, k.y = h.y, c.oG(e, b, m)));
  11724. q && (f.x = k.x, f.y = k.y, g && (g.x = m.x, g.y = m.y));
  11725. return q
  11726. };
  11727. c.Kja = function() {
  11728. c.log("cc.kmRay2IntersectCircle() has not been implemented.")
  11729. };
  11730. var Float32Array = Float32Array || Array;
  11731. c.Fz = function() {
  11732. this.c = new Float32Array([0, 0, 0, 0, 0, 0, 0, 0, 0])
  11733. };
  11734. c.Lia = function(a, b) {
  11735. for (var d = 0; 9 > d; d++) a.c[d] = b;
  11736. return a
  11737. };
  11738. c.h5 = function(a, b) {
  11739. a.c[0] = b.c[4] * b.c[8] - b.c[5] * b.c[7];
  11740. a.c[1] = b.c[2] * b.c[7] - b.c[1] * b.c[8];
  11741. a.c[2] = b.c[1] * b.c[5] - b.c[2] * b.c[4];
  11742. a.c[3] = b.c[5] * b.c[6] - b.c[3] * b.c[8];
  11743. a.c[4] = b.c[0] * b.c[8] - b.c[2] * b.c[6];
  11744. a.c[5] = b.c[2] * b.c[3] - b.c[0] * b.c[5];
  11745. a.c[6] = b.c[3] * b.c[7] - b.c[4] * b.c[6];
  11746. a.c[8] = b.c[0] * b.c[4] - b.c[1] * b.c[3]
  11747. };
  11748. c.wQ = function(a) {
  11749. a.c[1] = a.c[2] = a.c[3] = a.c[5] = a.c[6] = a.c[7] = 0;
  11750. a.c[0] = a.c[4] = a.c[8] = 1
  11751. };
  11752. c.Mia = function(a, b, d) {
  11753. var e = new c.Fz;
  11754. if (0 === b) return null;
  11755. b = 1 / b;
  11756. c.h5(e, d);
  11757. c.i5(a, e, b);
  11758. return a
  11759. };
  11760. c.Fz.PD = new Float32Array([1, 0, 0, 0, 1, 0, 0, 0, 1]);
  11761. c.Nia = function(a) {
  11762. for (var b = 0; 9 > b; b++) if (c.Fz.PD[b] !== a.c[b]) return !1;
  11763. return !0
  11764. };
  11765. c.Yia = function(a, b) {
  11766. var d, e;
  11767. for (d = 0; 3 > d; ++d) for (e = 0; 3 > e; ++e) a.c[3 * d + e] = b.c[3 * e + d];
  11768. return a
  11769. };
  11770. c.Kia = function(a) {
  11771. var b;
  11772. b = 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];
  11773. return b -= 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]
  11774. };
  11775. c.Oia = function(a, b, d) {
  11776. b = b.c;
  11777. d = d.c;
  11778. a.c[0] = b[0] * d[0] + b[3] * d[1] + b[6] * d[2];
  11779. a.c[1] = b[1] * d[0] + b[4] * d[1] + b[7] * d[2];
  11780. a.c[2] = b[2] * d[0] + b[5] * d[1] + b[8] * d[2];
  11781. a.c[3] = b[0] * d[3] + b[3] * d[4] + b[6] * d[5];
  11782. a.c[4] = b[1] * d[3] + b[4] * d[4] + b[7] * d[5];
  11783. a.c[5] = b[2] * d[3] + b[5] * d[4] + b[8] * d[5];
  11784. a.c[6] = b[0] * d[6] + b[3] * d[7] + b[6] * d[8];
  11785. a.c[7] = b[1] * d[6] + b[4] * d[7] + b[7] * d[8];
  11786. a.c[8] = b[2] * d[6] + b[5] * d[7] + b[8] * d[8];
  11787. return a
  11788. };
  11789. c.i5 = function(a, b, d) {
  11790. for (var e = 0; 9 > e; e++) a.c[e] = b.c[e] * d
  11791. };
  11792. c.Qia = function(a, b, d) {
  11793. var e = Math.cos(d);
  11794. d = Math.sin(d);
  11795. a.c[0] = e + b.x * b.x * (1 - e);
  11796. a.c[1] = b.z * d + b.y * b.x * (1 - e);
  11797. a.c[2] = -b.y * d + b.z * b.x * (1 - e);
  11798. a.c[3] = -b.z * d + b.x * b.y * (1 - e);
  11799. a.c[4] = e + b.y * b.y * (1 - e);
  11800. a.c[5] = b.x * d + b.z * b.y * (1 - e);
  11801. a.c[6] = b.y * d + b.x * b.z * (1 - e);
  11802. a.c[7] = -b.x * d + b.y * b.z * (1 - e);
  11803. a.c[8] = e + b.z * b.z * (1 - e);
  11804. return a
  11805. };
  11806. c.Jia = function(a, b) {
  11807. if (a == b) return c.log("cc.kmMat3Assign(): pOut equals pIn"), a;
  11808. for (var d = 0; 9 > d; d++) a.c[d] = b.c[d];
  11809. return a
  11810. };
  11811. c.Iia = function(a, b) {
  11812. if (a == b) return !0;
  11813. for (var d = 0; 9 > d; ++d) if (!(a.c[d] + c.Da > b.c[d] && a.c[d] - c.Da < b.c[d])) return !1;
  11814. return !0
  11815. };
  11816. c.Tia = function(a, b) {
  11817. a.c[0] = 1;
  11818. a.c[1] = 0;
  11819. a.c[2] = 0;
  11820. a.c[3] = 0;
  11821. a.c[4] = Math.cos(b);
  11822. a.c[5] = Math.sin(b);
  11823. a.c[6] = 0;
  11824. a.c[7] = -Math.sin(b);
  11825. a.c[8] = Math.cos(b);
  11826. return a
  11827. };
  11828. c.Uia = function(a, b) {
  11829. a.c[0] = Math.cos(b);
  11830. a.c[1] = 0;
  11831. a.c[2] = -Math.sin(b);
  11832. a.c[3] = 0;
  11833. a.c[4] = 1;
  11834. a.c[5] = 0;
  11835. a.c[6] = Math.sin(b);
  11836. a.c[7] = 0;
  11837. a.c[8] = Math.cos(b);
  11838. return a
  11839. };
  11840. c.Via = function(a, b) {
  11841. a.c[0] = Math.cos(b);
  11842. a.c[1] = -Math.sin(b);
  11843. a.c[2] = 0;
  11844. a.c[3] = Math.sin(b);
  11845. a.c[4] = Math.cos(b);
  11846. a.c[5] = 0;
  11847. a.c[6] = 0;
  11848. a.c[7] = 0;
  11849. a.c[8] = 1;
  11850. return a
  11851. };
  11852. c.Pia = function(a, b) {
  11853. a.c[0] = Math.cos(b);
  11854. a.c[1] = Math.sin(b);
  11855. a.c[2] = 0;
  11856. a.c[3] = -Math.sin(b);
  11857. a.c[4] = Math.cos(b);
  11858. a.c[5] = 0;
  11859. a.c[6] = 0;
  11860. a.c[7] = 0;
  11861. a.c[8] = 1;
  11862. return a
  11863. };
  11864. c.Wia = function(a, b, d) {
  11865. c.wQ(a);
  11866. a.c[0] = b;
  11867. a.c[4] = d;
  11868. return a
  11869. };
  11870. c.Xia = function(a, b, d) {
  11871. c.wQ(a);
  11872. a.c[6] = b;
  11873. a.c[7] = d;
  11874. return a
  11875. };
  11876. c.Ria = function(a, b) {
  11877. if (!b || !a) return null;
  11878. a.c[0] = 1 - 2 * (b.y * b.y + b.z * b.z);
  11879. a.c[1] = 2 * (b.x * b.y - b.l * b.z);
  11880. a.c[2] = 2 * (b.x * b.z + b.l * b.y);
  11881. a.c[3] = 2 * (b.x * b.y + b.l * b.z);
  11882. a.c[4] = 1 - 2 * (b.x * b.x + b.z * b.z);
  11883. a.c[5] = 2 * (b.y * b.z - b.l * b.x);
  11884. a.c[6] = 2 * (b.x * b.z - b.l * b.y);
  11885. a.c[7] = 2 * (b.y * b.z + b.l * b.x);
  11886. a.c[8] = 1 - 2 * (b.x * b.x + b.y * b.y);
  11887. return a
  11888. };
  11889. c.Sia = function(a, b, d) {
  11890. c.CQ(void 0, d);
  11891. c.DQ(void 0, a);
  11892. return a
  11893. };
  11894. c.ga = function() {
  11895. this.c = new Float32Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0])
  11896. };
  11897. c.aja = function(a, b) {
  11898. 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] = b
  11899. };
  11900. c.fo = function(a) {
  11901. 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;
  11902. a.c[0] = a.c[5] = a.c[10] = a.c[15] = 1
  11903. };
  11904. c.ga.wg = function(a, b, d) {
  11905. return a.c[b + 4 * d]
  11906. };
  11907. c.ga.Ul = function(a, b, d, e) {
  11908. a.c[b + 4 * d] = e
  11909. };
  11910. c.ga.am = function(a, b, d, e, f) {
  11911. var g = c.ga.wg(a, b, d);
  11912. c.ga.Ul(a, b, d, c.ga.wg(a, e, f));
  11913. c.ga.Ul(a, e, f, g)
  11914. };
  11915. c.ga.OY = function(a, b) {
  11916. var d, e = 0,
  11917. f = 0,
  11918. g, h, k, m = [0, 0, 0, 0],
  11919. n = [0, 0, 0, 0],
  11920. q = [0, 0, 0, 0];
  11921. for (d = 0; 4 > d; d++) {
  11922. for (g = k = 0; 4 > g; g++) if (1 != q[g]) for (h = 0; 4 > h; h++) 0 == q[h] && Math.abs(c.ga.wg(a, g, h)) >= k && (k = Math.abs(c.ga.wg(a, g, h)), f = g, e = h);
  11923. ++q[e];
  11924. if (f != e) {
  11925. for (g = 0; 4 > g; g++) c.ga.am(a, f, g, e, g);
  11926. for (g = 0; 4 > g; g++) c.ga.am(b, f, g, e, g)
  11927. }
  11928. n[d] = f;
  11929. m[d] = e;
  11930. if (0 == c.ga.wg(a, e, e)) return c.Jo;
  11931. h = 1 / c.ga.wg(a, e, e);
  11932. c.ga.Ul(a, e, e, 1);
  11933. for (g = 0; 4 > g; g++) c.ga.Ul(a, e, g, c.ga.wg(a, e, g) * h);
  11934. for (g = 0; 4 > g; g++) c.ga.Ul(b, e, g, c.ga.wg(b, e, g) * h);
  11935. for (h = 0; 4 > h; h++) if (h != e) {
  11936. k = c.ga.wg(a, h, e);
  11937. c.ga.Ul(a, h, e, 0);
  11938. for (g = 0; 4 > g; g++) c.ga.Ul(a, h, g, c.ga.wg(a, h, g) - c.ga.wg(a, e, g) * k);
  11939. for (g = 0; 4 > g; g++) c.ga.Ul(b, h, g, c.ga.wg(a, h, g) - c.ga.wg(b, e, g) * k)
  11940. }
  11941. }
  11942. for (g = 3; 0 <= g; g--) if (n[g] != m[g]) for (h = 0; 4 > h; h++) c.ga.am(a, h, n[g], h, m[g]);
  11943. return c.Ko
  11944. };
  11945. c.ga.PD = new Float32Array([1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]);
  11946. c.k5 = function(a, b) {
  11947. var d = new c.ga,
  11948. e = new c.ga;
  11949. c.Jk(d, b);
  11950. c.fo(e);
  11951. c.ga.OY(d, e) != c.Jo && c.Jk(a, d)
  11952. };
  11953. c.eja = function(a) {
  11954. for (var b = 0; 16 > b; b++) if (c.ga.PD[b] != a.c[b]) return !1;
  11955. return !0
  11956. };
  11957. c.mja = function(a, b) {
  11958. var d, e, f = a.c,
  11959. g = b.c;
  11960. for (e = 0; 4 > e; ++e) for (d = 0; 4 > d; ++d) f[4 * e + d] = g[4 * d + e];
  11961. return a
  11962. };
  11963. c.Dj = function(a, b, d) {
  11964. a = a.c;
  11965. var e = b.c[0],
  11966. f = b.c[1],
  11967. g = b.c[2],
  11968. h = b.c[3],
  11969. k = b.c[4],
  11970. m = b.c[5],
  11971. n = b.c[6],
  11972. q = b.c[7],
  11973. r = b.c[8],
  11974. t = b.c[9],
  11975. s = b.c[10],
  11976. u = b.c[11],
  11977. v = b.c[12],
  11978. B = b.c[13],
  11979. x = b.c[14];
  11980. b = b.c[15];
  11981. var F = d.c[0],
  11982. I = d.c[1],
  11983. y = d.c[2],
  11984. A = d.c[3],
  11985. D = d.c[4],
  11986. z = d.c[5],
  11987. E = d.c[6],
  11988. J = d.c[7],
  11989. W = d.c[8],
  11990. K = d.c[9],
  11991. Y = d.c[10],
  11992. ha = d.c[11],
  11993. da = d.c[12],
  11994. ya = d.c[13],
  11995. M = d.c[14];
  11996. d = d.c[15];
  11997. a[0] = F * e + I * k + y * r + A * v;
  11998. a[1] = F * f + I * m + y * t + A * B;
  11999. a[2] = F * g + I * n + y * s + A * x;
  12000. a[3] = F * h + I * q + y * u + A * b;
  12001. a[4] = D * e + z * k + E * r + J * v;
  12002. a[5] = D * f + z * m + E * t + J * B;
  12003. a[6] = D * g + z * n + E * s + J * x;
  12004. a[7] = D * h + z * q + E * u + J * b;
  12005. a[8] = W * e + K * k + Y * r + ha * v;
  12006. a[9] = W * f + K * m + Y * t + ha * B;
  12007. a[10] = W * g + K * n + Y * s + ha * x;
  12008. a[11] = W * h + K * q + Y * u + ha * b;
  12009. a[12] = da * e + ya * k + M * r + d * v;
  12010. a[13] = da * f + ya * m + M * t + d * B;
  12011. a[14] = da * g + ya * n + M * s + d * x;
  12012. a[15] = da * h + ya * q + M * u + d * b
  12013. };
  12014. c.E3 = function() {
  12015. var a = c.um.top.c,
  12016. b = c.Nk.top.c,
  12017. d = new Float32Array(16);
  12018. d[0] = a[0] * b[0] + a[4] * b[1] + a[8] * b[2] + a[12] * b[3];
  12019. d[1] = a[1] * b[0] + a[5] * b[1] + a[9] * b[2] + a[13] * b[3];
  12020. d[2] = a[2] * b[0] + a[6] * b[1] + a[10] * b[2] + a[14] * b[3];
  12021. d[3] = a[3] * b[0] + a[7] * b[1] + a[11] * b[2] + a[15] * b[3];
  12022. d[4] = a[0] * b[4] + a[4] * b[5] + a[8] * b[6] + a[12] * b[7];
  12023. d[5] = a[1] * b[4] + a[5] * b[5] + a[9] * b[6] + a[13] * b[7];
  12024. d[6] = a[2] * b[4] + a[6] * b[5] + a[10] * b[6] + a[14] * b[7];
  12025. d[7] = a[3] * b[4] + a[7] * b[5] + a[11] * b[6] + a[15] * b[7];
  12026. d[8] = a[0] * b[8] + a[4] * b[9] + a[8] * b[10] + a[12] * b[11];
  12027. d[9] = a[1] * b[8] + a[5] * b[9] + a[9] * b[10] + a[13] * b[11];
  12028. d[10] = a[2] * b[8] + a[6] * b[9] + a[10] * b[10] + a[14] * b[11];
  12029. d[11] = a[3] * b[8] + a[7] * b[9] + a[11] * b[10] + a[15] * b[11];
  12030. d[12] = a[0] * b[12] + a[4] * b[13] + a[8] * b[14] + a[12] * b[15];
  12031. d[13] = a[1] * b[12] + a[5] * b[13] + a[9] * b[14] + a[13] * b[15];
  12032. d[14] = a[2] * b[12] + a[6] * b[13] + a[10] * b[14] + a[14] * b[15];
  12033. d[15] = a[3] * b[12] + a[7] * b[13] + a[11] * b[14] + a[15] * b[15];
  12034. return d
  12035. };
  12036. c.lga = function(a, b, d) {
  12037. a = a.c;
  12038. b = b.c;
  12039. var e = d.c;
  12040. e[0] = a[0] * b[0] + a[4] * b[1] + a[8] * b[2] + a[12] * b[3];
  12041. e[1] = a[1] * b[0] + a[5] * b[1] + a[9] * b[2] + a[13] * b[3];
  12042. e[2] = a[2] * b[0] + a[6] * b[1] + a[10] * b[2] + a[14] * b[3];
  12043. e[3] = a[3] * b[0] + a[7] * b[1] + a[11] * b[2] + a[15] * b[3];
  12044. e[4] = a[0] * b[4] + a[4] * b[5] + a[8] * b[6] + a[12] * b[7];
  12045. e[5] = a[1] * b[4] + a[5] * b[5] + a[9] * b[6] + a[13] * b[7];
  12046. e[6] = a[2] * b[4] + a[6] * b[5] + a[10] * b[6] + a[14] * b[7];
  12047. e[7] = a[3] * b[4] + a[7] * b[5] + a[11] * b[6] + a[15] * b[7];
  12048. e[8] = a[0] * b[8] + a[4] * b[9] + a[8] * b[10] + a[12] * b[11];
  12049. e[9] = a[1] * b[8] + a[5] * b[9] + a[9] * b[10] + a[13] * b[11];
  12050. e[10] = a[2] * b[8] + a[6] * b[9] + a[10] * b[10] + a[14] * b[11];
  12051. e[11] = a[3] * b[8] + a[7] * b[9] + a[11] * b[10] + a[15] * b[11];
  12052. e[12] = a[0] * b[12] + a[4] * b[13] + a[8] * b[14] + a[12] * b[15];
  12053. e[13] = a[1] * b[12] + a[5] * b[13] + a[9] * b[14] + a[13] * b[15];
  12054. e[14] = a[2] * b[12] + a[6] * b[13] + a[10] * b[14] + a[14] * b[15];
  12055. e[15] = a[3] * b[12] + a[7] * b[13] + a[11] * b[14] + a[15] * b[15];
  12056. return d.c
  12057. };
  12058. c.Jk = function(a, b) {
  12059. if (a == b) c.log("cc.kmMat4Assign(): pOut equals pIn");
  12060. else {
  12061. var d = a.c,
  12062. e = b.c;
  12063. d[0] = e[0];
  12064. d[1] = e[1];
  12065. d[2] = e[2];
  12066. d[3] = e[3];
  12067. d[4] = e[4];
  12068. d[5] = e[5];
  12069. d[6] = e[6];
  12070. d[7] = e[7];
  12071. d[8] = e[8];
  12072. d[9] = e[9];
  12073. d[10] = e[10];
  12074. d[11] = e[11];
  12075. d[12] = e[12];
  12076. d[13] = e[13];
  12077. d[14] = e[14];
  12078. d[15] = e[15]
  12079. }
  12080. };
  12081. c.Zia = function(a, b) {
  12082. if (a == b) return c.log("cc.kmMat4AreEqual(): pMat1 and pMat2 are same object."), !0;
  12083. for (var d = 0; 16 > d; d++) if (!(a.c[d] + c.Da > b.c[d] && a.c[d] - c.Da < b.c[d])) return !1;
  12084. return !0
  12085. };
  12086. c.jja = function(a, b) {
  12087. a.c[0] = 1;
  12088. a.c[1] = 0;
  12089. a.c[2] = 0;
  12090. a.c[3] = 0;
  12091. a.c[4] = 0;
  12092. a.c[5] = Math.cos(b);
  12093. a.c[6] = Math.sin(b);
  12094. a.c[7] = 0;
  12095. a.c[8] = 0;
  12096. a.c[9] = -Math.sin(b);
  12097. a.c[10] = Math.cos(b);
  12098. a.c[11] = 0;
  12099. a.c[12] = 0;
  12100. a.c[13] = 0;
  12101. a.c[14] = 0;
  12102. a.c[15] = 1;
  12103. return a
  12104. };
  12105. c.kja = function(a, b) {
  12106. a.c[0] = Math.cos(b);
  12107. a.c[1] = 0;
  12108. a.c[2] = -Math.sin(b);
  12109. a.c[3] = 0;
  12110. a.c[4] = 0;
  12111. a.c[5] = 1;
  12112. a.c[6] = 0;
  12113. a.c[7] = 0;
  12114. a.c[8] = Math.sin(b);
  12115. a.c[9] = 0;
  12116. a.c[10] = Math.cos(b);
  12117. a.c[11] = 0;
  12118. a.c[12] = 0;
  12119. a.c[13] = 0;
  12120. a.c[14] = 0;
  12121. a.c[15] = 1;
  12122. return a
  12123. };
  12124. c.lja = function(a, b) {
  12125. a.c[0] = Math.cos(b);
  12126. a.c[1] = Math.sin(b);
  12127. a.c[2] = 0;
  12128. a.c[3] = 0;
  12129. a.c[4] = -Math.sin(b);
  12130. a.c[5] = Math.cos(b);
  12131. a.c[6] = 0;
  12132. a.c[7] = 0;
  12133. a.c[8] = 0;
  12134. a.c[9] = 0;
  12135. a.c[10] = 1;
  12136. a.c[11] = 0;
  12137. a.c[12] = 0;
  12138. a.c[13] = 0;
  12139. a.c[14] = 0;
  12140. a.c[15] = 1;
  12141. return a
  12142. };
  12143. c.fja = function(a, b, d, e) {
  12144. var f = Math.cos(b);
  12145. b = Math.sin(b);
  12146. var g = Math.cos(d);
  12147. d = Math.sin(d);
  12148. var h = Math.cos(e);
  12149. e = Math.sin(e);
  12150. var k = b * d,
  12151. m = f * d;
  12152. a.c[0] = g * h;
  12153. a.c[4] = g * e;
  12154. a.c[8] = -d;
  12155. a.c[1] = k * h - f * e;
  12156. a.c[5] = k * e + f * h;
  12157. a.c[9] = b * g;
  12158. a.c[2] = m * h + b * e;
  12159. a.c[6] = m * e - b * h;
  12160. a.c[10] = f * g;
  12161. a.c[3] = a.c[7] = a.c[11] = 0;
  12162. a.c[15] = 1;
  12163. return a
  12164. };
  12165. c.gja = function(a, b) {
  12166. a.c[0] = 1 - 2 * (b.y * b.y + b.z * b.z);
  12167. a.c[1] = 2 * (b.x * b.y + b.z * b.l);
  12168. a.c[2] = 2 * (b.x * b.z - b.y * b.l);
  12169. a.c[3] = 0;
  12170. a.c[4] = 2 * (b.x * b.y - b.z * b.l);
  12171. a.c[5] = 1 - 2 * (b.x * b.x + b.z * b.z);
  12172. a.c[6] = 2 * (b.z * b.y + b.x * b.l);
  12173. a.c[7] = 0;
  12174. a.c[8] = 2 * (b.x * b.z + b.y * b.l);
  12175. a.c[9] = 2 * (b.y * b.z - b.x * b.l);
  12176. a.c[10] = 1 - 2 * (b.x * b.x + b.y * b.y);
  12177. a.c[11] = 0;
  12178. a.c[12] = 0;
  12179. a.c[13] = 0;
  12180. a.c[14] = 0;
  12181. a.c[15] = 1;
  12182. return a
  12183. };
  12184. c.ija = function(a, b, d) {
  12185. a.c[0] = b.c[0];
  12186. a.c[1] = b.c[1];
  12187. a.c[2] = b.c[2];
  12188. a.c[3] = 0;
  12189. a.c[4] = b.c[3];
  12190. a.c[5] = b.c[4];
  12191. a.c[6] = b.c[5];
  12192. a.c[7] = 0;
  12193. a.c[8] = b.c[6];
  12194. a.c[9] = b.c[7];
  12195. a.c[10] = b.c[8];
  12196. a.c[11] = 0;
  12197. a.c[12] = d.x;
  12198. a.c[13] = d.y;
  12199. a.c[14] = d.z;
  12200. a.c[15] = 1;
  12201. return a
  12202. };
  12203. c.n5 = function(a, b, d, e) {
  12204. a.c[0] = b;
  12205. a.c[5] = d;
  12206. a.c[10] = e;
  12207. a.c[15] = 1;
  12208. 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
  12209. };
  12210. c.yQ = function(a, b, d, e) {
  12211. a.c[0] = a.c[5] = a.c[10] = a.c[15] = 1;
  12212. 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;
  12213. a.c[12] = b;
  12214. a.c[13] = d;
  12215. a.c[14] = e
  12216. };
  12217. c.dja = function(a, b) {
  12218. a.x = b.c[4];
  12219. a.y = b.c[5];
  12220. a.z = b.c[6];
  12221. c.hg(a, a);
  12222. return a
  12223. };
  12224. c.cja = function(a, b) {
  12225. a.x = b.c[0];
  12226. a.y = b.c[1];
  12227. a.z = b.c[2];
  12228. c.hg(a, a);
  12229. return a
  12230. };
  12231. c.bja = function(a, b) {
  12232. a.x = b.c[8];
  12233. a.y = b.c[9];
  12234. a.z = b.c[10];
  12235. c.hg(a, a);
  12236. return a
  12237. };
  12238. c.l5 = function(a, b, d) {
  12239. var e = c.Xu(30),
  12240. f = d - 0.1,
  12241. g = Math.sin(e);
  12242. 0 != f && 0 != g && 0 != b && (e = Math.cos(e) / g, c.fo(a), a.c[0] = e / b, 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)
  12243. };
  12244. c.BH = function(a, b, d, e, f, g, h) {
  12245. c.fo(a);
  12246. a.c[0] = 2 / (d - b);
  12247. a.c[5] = 2 / (f - e);
  12248. a.c[10] = -2 / (h - g);
  12249. a.c[12] = -((d + b) / (d - b));
  12250. a.c[13] = -((f + e) / (f - e));
  12251. a.c[14] = -((h + g) / (h - g))
  12252. };
  12253. c.xQ = function(a, b, d, e) {
  12254. var f = new c.Gb,
  12255. g = new c.Gb,
  12256. h = new c.Gb,
  12257. k = new c.Gb,
  12258. m = new c.ga;
  12259. c.GH(f, d, b);
  12260. c.hg(f, f);
  12261. c.Yu(g, e);
  12262. c.hg(g, g);
  12263. c.om(h, f, g);
  12264. c.hg(h, h);
  12265. c.om(k, h, f);
  12266. c.hg(h, h);
  12267. c.fo(a);
  12268. a.c[0] = h.x;
  12269. a.c[4] = h.y;
  12270. a.c[8] = h.z;
  12271. a.c[1] = k.x;
  12272. a.c[5] = k.y;
  12273. a.c[9] = k.z;
  12274. a.c[2] = -f.x;
  12275. a.c[6] = -f.y;
  12276. a.c[10] = -f.z;
  12277. c.yQ(m, -b.x, -b.y, -b.z);
  12278. c.Dj(a, a, m)
  12279. };
  12280. c.m5 = function(a, b, d) {
  12281. var e = Math.cos(d);
  12282. d = Math.sin(d);
  12283. var f = new c.Gb;
  12284. c.hg(f, b);
  12285. a.c[0] = e + f.x * f.x * (1 - e);
  12286. a.c[1] = f.z * d + f.y * f.x * (1 - e);
  12287. a.c[2] = -f.y * d + f.z * f.x * (1 - e);
  12288. a.c[3] = 0;
  12289. a.c[4] = -f.z * d + f.x * f.y * (1 - e);
  12290. a.c[5] = e + f.y * f.y * (1 - e);
  12291. a.c[6] = f.x * d + f.z * f.y * (1 - e);
  12292. a.c[7] = 0;
  12293. a.c[8] = f.y * d + f.x * f.z * (1 - e);
  12294. a.c[9] = -f.x * d + f.y * f.z * (1 - e);
  12295. a.c[10] = e + f.z * f.z * (1 - e);
  12296. a.c[11] = 0;
  12297. a.c[12] = 0;
  12298. a.c[13] = 0;
  12299. a.c[14] = 0;
  12300. a.c[15] = 1
  12301. };
  12302. c.j5 = function(a, b) {
  12303. a.c[0] = b.c[0];
  12304. a.c[1] = b.c[1];
  12305. a.c[2] = b.c[2];
  12306. a.c[3] = b.c[4];
  12307. a.c[4] = b.c[5];
  12308. a.c[5] = b.c[6];
  12309. a.c[6] = b.c[8];
  12310. a.c[7] = b.c[9];
  12311. a.c[8] = b.c[10]
  12312. };
  12313. c.$ia = function(a, b, d) {
  12314. switch (d) {
  12315. case c.zU:
  12316. a.a = b.c[3] - b.c[0];
  12317. a.b = b.c[7] - b.c[4];
  12318. a.C = b.c[11] - b.c[8];
  12319. a.D = b.c[15] - b.c[12];
  12320. break;
  12321. case c.xU:
  12322. a.a = b.c[3] + b.c[0];
  12323. a.b = b.c[7] + b.c[4];
  12324. a.C = b.c[11] + b.c[8];
  12325. a.D = b.c[15] + b.c[12];
  12326. break;
  12327. case c.vU:
  12328. a.a = b.c[3] + b.c[1];
  12329. a.b = b.c[7] + b.c[5];
  12330. a.C = b.c[11] + b.c[9];
  12331. a.D = b.c[15] + b.c[13];
  12332. break;
  12333. case c.AU:
  12334. a.a = b.c[3] - b.c[1];
  12335. a.b = b.c[7] - b.c[5];
  12336. a.C = b.c[11] - b.c[9];
  12337. a.D = b.c[15] - b.c[13];
  12338. break;
  12339. case c.wU:
  12340. a.a = b.c[3] - b.c[2];
  12341. a.b = b.c[7] - b.c[6];
  12342. a.C = b.c[11] - b.c[10];
  12343. a.D = b.c[15] - b.c[14];
  12344. break;
  12345. case c.yU:
  12346. a.a = b.c[3] + b.c[2];
  12347. a.b = b.c[7] + b.c[6];
  12348. a.C = b.c[11] + b.c[10];
  12349. a.D = b.c[15] + b.c[14];
  12350. break;
  12351. default:
  12352. c.log("cc.kmMat4ExtractPlane(): Invalid plane index")
  12353. }
  12354. b = Math.sqrt(a.a * a.a + a.b * a.b + a.C * a.C);
  12355. a.a /= b;
  12356. a.b /= b;
  12357. a.C /= b;
  12358. a.D /= b;
  12359. return a
  12360. };
  12361. c.hja = function(a, b, d) {
  12362. b = new ra;
  12363. var e = new c.Fz;
  12364. c.j5(e, d);
  12365. c.CQ(b, e);
  12366. c.DQ(b, a);
  12367. return a
  12368. };
  12369. c.xU = 0;
  12370. c.zU = 1;
  12371. c.vU = 2;
  12372. c.AU = 3;
  12373. c.yU = 4;
  12374. c.wU = 5;
  12375. c.nja = function(a, b, d, e) {
  12376. this.a = a || 0;
  12377. this.b = b || 0;
  12378. this.C = d || 0;
  12379. this.D = e || 0
  12380. };
  12381. c.qV = 0;
  12382. c.pV = 1;
  12383. c.rV = 2;
  12384. c.pja = function(a, b) {
  12385. return a.a * b.x + a.b * b.y + a.C * b.z + a.D * b.l
  12386. };
  12387. c.qja = function(a, b) {
  12388. return a.a * b.x + a.b * b.y + a.C * b.z + a.D
  12389. };
  12390. c.rja = function(a, b) {
  12391. return a.a * b.x + a.b * b.y + a.C * b.z
  12392. };
  12393. c.sja = function(a, b, d) {
  12394. a.a = d.x;
  12395. a.b = d.y;
  12396. a.C = d.z;
  12397. a.D = -c.EH(d, b);
  12398. return a
  12399. };
  12400. c.tja = function(a, b, d, e) {
  12401. var f = new c.Gb,
  12402. g = new c.Gb,
  12403. h = new c.Gb;
  12404. c.GH(g, d, b);
  12405. c.GH(h, e, b);
  12406. c.om(f, g, h);
  12407. c.hg(f, f);
  12408. a.a = f.x;
  12409. a.b = f.y;
  12410. a.C = f.z;
  12411. a.D = c.EH(c.FH(f, f, -1), b);
  12412. return a
  12413. };
  12414. c.uja = function() {
  12415. throw "cc.kmPlaneIntersectLine() hasn't been implemented.";
  12416. };
  12417. c.vja = function(a, b) {
  12418. var d = new c.Gb;
  12419. d.x = b.a;
  12420. d.y = b.b;
  12421. d.z = b.C;
  12422. var e = 1 / c.FQ(d);
  12423. c.hg(d, d);
  12424. a.a = d.x;
  12425. a.b = d.y;
  12426. a.C = d.z;
  12427. a.D = b.D * e;
  12428. return a
  12429. };
  12430. c.wja = function() {
  12431. c.log("cc.kmPlaneScale() has not been implemented.")
  12432. };
  12433. c.oja = function(a, b) {
  12434. var d = a.a * b.x + a.b * b.y + a.C * b.z + a.D;
  12435. return 0.001 < d ? c.qV : -0.001 > d ? c.pV : c.rV
  12436. };
  12437. function ra() {
  12438. this.l = this.z = this.y = this.x = 0
  12439. }
  12440. c.r5 = function(a, b) {
  12441. a.x = -b.x;
  12442. a.y = -b.y;
  12443. a.z = -b.z;
  12444. a.l = b.l;
  12445. return a
  12446. };
  12447. c.s5 = function(a, b) {
  12448. return a.l * b.l + a.x * b.x + a.y * b.y + a.z * b.z
  12449. };
  12450. c.yja = function(a) {
  12451. return a
  12452. };
  12453. c.t5 = function(a) {
  12454. a.x = 0;
  12455. a.y = 0;
  12456. a.z = 0;
  12457. a.l = 1
  12458. };
  12459. c.zja = function(a, b) {
  12460. var d = c.zQ(b),
  12461. e = new ra;
  12462. if (Math.abs(d) > c.Da) return a.x = 0, a.y = 0, a.z = 0, a.l = 0, a;
  12463. c.Iz(a, c.r5(e, b), 1 / d);
  12464. return a
  12465. };
  12466. c.Aja = function(a) {
  12467. return 0 == a.x && 0 == a.y && 0 == a.z && 1 == a.l
  12468. };
  12469. c.zQ = function(a) {
  12470. return Math.sqrt(c.u5(a))
  12471. };
  12472. c.u5 = function(a) {
  12473. return a.x * a.x + a.y * a.y + a.z * a.z + a.l * a.l
  12474. };
  12475. c.Bja = function(a) {
  12476. return a
  12477. };
  12478. c.Cja = function(a, b, d) {
  12479. a.l = b.l * d.l - b.x * d.x - b.y * d.y - b.z * d.z;
  12480. a.x = b.l * d.x + b.x * d.l + b.y * d.z - b.z * d.y;
  12481. a.y = b.l * d.y + b.y * d.l + b.z * d.x - b.x * d.z;
  12482. a.z = b.l * d.z + b.z * d.l + b.x * d.y - b.y * d.x;
  12483. return a
  12484. };
  12485. c.AQ = function(a, b) {
  12486. var d = c.zQ(b);
  12487. if (Math.abs(d) <= c.Da) throw "cc.kmQuaternionNormalize(): pIn is an invalid value";
  12488. c.Iz(a, b, 1 / d)
  12489. };
  12490. c.BQ = function(a, b) {
  12491. var d = 0.5 * c.CH,
  12492. e = Math.sin(d);
  12493. a.l = Math.cos(d);
  12494. a.x = b.x * e;
  12495. a.y = b.y * e;
  12496. a.z = b.z * e
  12497. };
  12498. c.CQ = function(a, b) {
  12499. var d, e, f, g;
  12500. d = [];
  12501. e = g = 0;
  12502. if (b) {
  12503. d[0] = b.c[0];
  12504. d[1] = b.c[3];
  12505. d[2] = b.c[6];
  12506. d[4] = b.c[1];
  12507. d[5] = b.c[4];
  12508. d[6] = b.c[7];
  12509. d[8] = b.c[2];
  12510. d[9] = b.c[5];
  12511. d[10] = b.c[8];
  12512. d[15] = 1;
  12513. var h = d[0];
  12514. e = h[0] + h[5] + h[10] + 1;
  12515. e > c.Da ? (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 + 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);
  12516. a.x = d;
  12517. a.y = e;
  12518. a.z = f;
  12519. a.l = g
  12520. }
  12521. };
  12522. c.Fja = function(a, b, d, e) {
  12523. var f, g, h, k, m;
  12524. f = c.Xu(d) / 2;
  12525. g = c.Xu(b) / 2;
  12526. h = c.Xu(e) / 2;
  12527. e = Math.cos(f);
  12528. b = Math.cos(g);
  12529. d = Math.cos(h);
  12530. f = Math.sin(f);
  12531. g = Math.sin(g);
  12532. h = Math.sin(h);
  12533. k = b * d;
  12534. m = g * h;
  12535. a.l = e * k + f * m;
  12536. a.x = f * k - e * m;
  12537. a.y = e * g * d + f * b * h;
  12538. a.z = e * b * h - f * g * d;
  12539. c.AQ(a, a);
  12540. return a
  12541. };
  12542. c.Gja = function(a, b, d, e) {
  12543. if (b.x == d.x && b.y == d.y && b.z == d.z && b.l == d.l) return a.x = b.x, a.y = b.y, a.z = b.z, a.l = b.l, a;
  12544. var f = c.s5(b, d),
  12545. g = Math.acos(f),
  12546. f = Math.sqrt(1 - c.Yc(f)),
  12547. h = Math.sin(e * g) / f,
  12548. k = new ra,
  12549. m = new ra;
  12550. c.Iz(k, b, Math.sin((1 - e) * g) / f);
  12551. c.Iz(m, d, h);
  12552. c.q5(a, k, m);
  12553. return a
  12554. };
  12555. c.DQ = function(a, b) {
  12556. var d;
  12557. d = Math.sqrt(c.Yc(a.x) + c.Yc(a.y) + c.Yc(a.z));
  12558. d > -c.Da && d < c.Da || d < 2 * c.CH + c.Da && d > 2 * c.CH - c.Da ? (b.x = 0, b.y = 0, b.z = 1) : (b.x = a.x / d, b.y = a.y / d, b.z = a.z / d, c.hg(b, b))
  12559. };
  12560. c.Iz = function(a, b, d) {
  12561. a.x = b.x * d;
  12562. a.y = b.y * d;
  12563. a.z = b.z * d;
  12564. a.l = b.l * d
  12565. };
  12566. c.xja = function(a, b) {
  12567. a.x = b.x;
  12568. a.y = b.y;
  12569. a.z = b.z;
  12570. a.l = b.l;
  12571. return a
  12572. };
  12573. c.q5 = function(a, b, d) {
  12574. a.x = b.x + d.x;
  12575. a.y = b.y + d.y;
  12576. a.z = b.z + d.z;
  12577. a.l = b.l + d.l
  12578. };
  12579. c.Eja = function(a, b, d, e) {
  12580. var f = new c.Gb,
  12581. g = new c.Gb;
  12582. c.Yu(f, b);
  12583. c.Yu(g, d);
  12584. c.hg(f, f);
  12585. c.hg(g, g);
  12586. d = c.EH(f, g);
  12587. if (1 <= d) return c.t5(a), a; - 0.999999 > d ? Math.abs(c.GQ(e)) < c.Da ? c.BQ(a, e) : (f = new c.Gb, g = new c.Gb, g.x = 1, g.y = 0, g.z = 0, c.om(f, g, b), Math.abs(c.GQ(f)) < c.Da && (g = new c.Gb, g.x = 0, g.y = 1, g.z = 0, c.om(f, g, b)), c.hg(f, f), c.BQ(a, f)) : (b = Math.sqrt(2 * (1 + d)), e = 1 / b, d = new c.Gb, c.om(d, f, g), a.x = d.x * e, a.y = d.y * e, a.z = d.z * e, a.l = 0.5 * b, c.AQ(a, a));
  12588. return a
  12589. };
  12590. c.Dja = function(a, b, d) {
  12591. var e = new c.Gb,
  12592. f = new c.Gb,
  12593. g = new c.Gb;
  12594. g.x = b.x;
  12595. g.y = b.y;
  12596. g.z = b.z;
  12597. c.om(e, g, d);
  12598. c.om(f, g, e);
  12599. c.FH(e, e, 2 * b.l);
  12600. c.FH(f, f, 2);
  12601. c.EQ(a, d, e);
  12602. c.EQ(a, a, f);
  12603. return a
  12604. };
  12605. c.xia = function(a, b) {
  12606. this.min = a || new c.Gb;
  12607. this.max = b || new c.Gb
  12608. };
  12609. c.zia = function(a, b) {
  12610. return a.x >= b.min.x && a.x <= b.max.x && a.y >= b.min.y && a.y <= b.max.y && a.z >= b.min.z && a.z <= b.max.z ? c.Ko : c.Jo
  12611. };
  12612. c.yia = function(a, b) {
  12613. c.Yu(a.min, b.min);
  12614. c.Yu(a.max, b.max);
  12615. return a
  12616. };
  12617. c.Aia = function() {
  12618. c.log("cc.kmAABBScale hasn't been supported.")
  12619. };
  12620. c.Lz = function(a, b, d, e) {
  12621. this.top = d;
  12622. this.stack = e
  12623. };
  12624. c.Lz.U$ = 30;
  12625. c.HH = function(a) {
  12626. a.stack = [];
  12627. a.top = null
  12628. };
  12629. c.Mz = function(a, b) {
  12630. a.stack.push(a.top);
  12631. a.top = new c.ga;
  12632. c.Jk(a.top, b)
  12633. };
  12634. c.lka = function(a) {
  12635. a.top = a.stack.pop()
  12636. };
  12637. c.IH = function(a) {
  12638. a.stack = null;
  12639. a.top = null
  12640. };
  12641. c.Vj = 5888;
  12642. c.Wj = 5889;
  12643. c.rJ = 5890;
  12644. c.Nk = new c.Lz;
  12645. c.um = new c.Lz;
  12646. c.Gv = new c.Lz;
  12647. c.ic = null;
  12648. c.tH = !1;
  12649. c.A5 = function() {
  12650. if (!c.tH) {
  12651. var a = new c.ga;
  12652. c.HH(c.Nk);
  12653. c.HH(c.um);
  12654. c.HH(c.Gv);
  12655. c.ic = c.Nk;
  12656. c.tH = !0;
  12657. c.fo(a);
  12658. c.Mz(c.Nk, a);
  12659. c.Mz(c.um, a);
  12660. c.Mz(c.Gv, a)
  12661. }
  12662. };
  12663. c.A5();
  12664. c.g5 = function() {
  12665. c.IH(c.Nk);
  12666. c.IH(c.um);
  12667. c.IH(c.Gv);
  12668. c.tH = !1;
  12669. c.ic = null
  12670. };
  12671. c.eo = function() {
  12672. c.Mz(c.ic, c.ic.top)
  12673. };
  12674. c.Fia = function(a) {
  12675. c.ic.stack.push(c.ic.top);
  12676. c.Jk(a, c.ic.top);
  12677. c.ic.top = a
  12678. };
  12679. c.co = function() {
  12680. c.ic.top = c.ic.stack.pop()
  12681. };
  12682. c.Cj = function(a) {
  12683. switch (a) {
  12684. case c.Vj:
  12685. c.ic = c.Nk;
  12686. break;
  12687. case c.Wj:
  12688. c.ic = c.um;
  12689. break;
  12690. case c.rJ:
  12691. c.ic = c.Gv;
  12692. break;
  12693. default:
  12694. throw "Invalid matrix mode specified";
  12695. }
  12696. };
  12697. c.Jq = function() {
  12698. c.fo(c.ic.top)
  12699. };
  12700. c.Eia = function(a) {
  12701. c.Jk(c.ic.top, a)
  12702. };
  12703. c.Kq = function(a) {
  12704. c.Dj(c.ic.top, c.ic.top, a)
  12705. };
  12706. c.Lq = function(a, b) {
  12707. var d = new c.ga;
  12708. c.yQ(d, a, b, 0);
  12709. c.Dj(c.ic.top, c.ic.top, d)
  12710. };
  12711. c.Gia = function(a, b, d, e) {
  12712. b = new c.Gb(b, d, e);
  12713. d = new c.ga;
  12714. c.m5(d, b, c.Xu(a));
  12715. c.Dj(c.ic.top, c.ic.top, d)
  12716. };
  12717. c.Hia = function(a, b, d) {
  12718. var e = new c.ga;
  12719. c.n5(e, a, b, d);
  12720. c.Dj(c.ic.top, c.ic.top, e)
  12721. };
  12722. c.Ez = function(a, b) {
  12723. switch (a) {
  12724. case c.Vj:
  12725. c.Jk(b, c.Nk.top);
  12726. break;
  12727. case c.Wj:
  12728. c.Jk(b, c.um.top);
  12729. break;
  12730. case c.rJ:
  12731. c.Jk(b, c.Gv.top);
  12732. break;
  12733. default:
  12734. throw "Invalid matrix mode specified";
  12735. }
  12736. };
  12737. c.PV = "precision lowp float;\nvarying vec4 v_fragmentColor;\nvoid main() \n{ \n gl_FragColor = v_fragmentColor; \n}\n";
  12738. c.QV = "attribute vec4 a_position;\nuniform vec4 u_color;\nuniform float u_pointSize;\nvarying lowp vec4 v_fragmentColor; \nvoid main(void) \n{\n gl_Position = (CC_PMatrix * CC_MVMatrix) * a_position; \n gl_PointSize = u_pointSize; \n v_fragmentColor = u_color; \n}";
  12739. c.DV = "precision lowp float; \nvarying vec4 v_fragmentColor; \nvoid main() \n{ \n gl_FragColor = v_fragmentColor; \n} ";
  12740. c.GV = "attribute vec4 a_position;\nattribute vec4 a_color;\nvarying lowp vec4 v_fragmentColor;\nvoid main()\n{\n gl_Position = (CC_PMatrix * CC_MVMatrix) * a_position; \n v_fragmentColor = a_color; \n}";
  12741. c.EV = "// #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 = v_color*smoothstep(0.0, length(fwidth(v_texcoord)), 1.0 - length(v_texcoord)); \n// #else\t\ngl_FragColor = v_color * step(0.0, 1.0 - length(v_texcoord)); \n// #endif \n}";
  12742. c.FV = "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 = a_color;//vec4(a_color.rgb * a_color.a, a_color.a); \n v_texcoord = a_texcoord; \n gl_Position = (CC_PMatrix * CC_MVMatrix) * a_position; \n}";
  12743. c.LV = "precision lowp float; \nvarying vec2 v_texCoord; \nuniform sampler2D CC_Texture0; \nvoid main() \n{ \n gl_FragColor = texture2D(CC_Texture0, v_texCoord); \n}";
  12744. c.OV = "attribute vec4 a_position; \nattribute vec2 a_texCoord; \nvarying mediump vec2 v_texCoord; \nvoid main() \n{ \n gl_Position = (CC_PMatrix * CC_MVMatrix) * a_position; \n v_texCoord = a_texCoord; \n}";
  12745. c.MV = "precision lowp float; \nuniform vec4 u_color; \nvarying vec2 v_texCoord; \nuniform sampler2D CC_Texture0; \nvoid main() \n{ \n gl_FragColor = texture2D(CC_Texture0, v_texCoord) * u_color; \n}";
  12746. c.NV = "attribute vec4 a_position;\nattribute vec2 a_texCoord; \nvarying mediump vec2 v_texCoord; \nvoid main() \n{ \n gl_Position = (CC_PMatrix * CC_MVMatrix) * a_position; \n v_texCoord = a_texCoord; \n}";
  12747. c.HV = "precision lowp float; \nvarying vec4 v_fragmentColor; \nvarying vec2 v_texCoord; \nuniform sampler2D CC_Texture0; \nvoid main() \n{ \n gl_FragColor = vec4( v_fragmentColor.rgb, \n v_fragmentColor.a * texture2D(CC_Texture0, v_texCoord).a \n ); \n}";
  12748. c.IV = "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 = (CC_PMatrix * CC_MVMatrix) * a_position; \n v_fragmentColor = a_color; \n v_texCoord = a_texCoord; \n}";
  12749. c.KV = "precision lowp float;\nvarying vec4 v_fragmentColor; \nvarying vec2 v_texCoord; \nuniform sampler2D CC_Texture0; \nvoid main() \n{ \n gl_FragColor = v_fragmentColor * texture2D(CC_Texture0, v_texCoord); \n}";
  12750. c.$J = "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 = (CC_PMatrix * CC_MVMatrix) * a_position; \n v_fragmentColor = a_color; \n v_texCoord = a_texCoord; \n}";
  12751. c.JV = "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 = texture2D(CC_Texture0, v_texCoord); \n // mimic: glAlphaFunc(GL_GREATER) \n //pass if ( incoming_pixel >= CC_alpha_value ) => fail if incoming_pixel < CC_alpha_value \n if ( texColor.a <= CC_alpha_value ) \n discard; \n gl_FragColor = texColor * v_fragmentColor; \n}";
  12752. c.Gaa = "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 = texture2D(u_texture, v_texCoord); \n vec4 maskColor = texture2D(u_mask, v_texCoord); \n vec4 finalColor = vec4(texColor.r, texColor.g, texColor.b, maskColor.a * texColor.a); \n gl_FragColor = v_fragmentColor * finalColor; \n}";
  12753. c.ge = {
  12754. hC: 0,
  12755. iC: 1,
  12756. fC: 2,
  12757. gC: 3,
  12758. kC: 4,
  12759. jC: 5,
  12760. lC: 6,
  12761. lK: 7,
  12762. gba: 8,
  12763. Dd: {},
  12764. ot: function() {
  12765. this.D5();
  12766. return !0
  12767. },
  12768. lf: function(a, b) {
  12769. switch (b) {
  12770. case this.hC:
  12771. a.zj(c.$J, c.KV);
  12772. a.Id(c.Cm, c.Ab);
  12773. a.Id(c.wr, c.ef);
  12774. a.Id(c.Ao, c.Sd);
  12775. break;
  12776. case this.iC:
  12777. a.zj(c.$J, c.JV);
  12778. a.Id(c.Cm, c.Ab);
  12779. a.Id(c.wr, c.ef);
  12780. a.Id(c.Ao, c.Sd);
  12781. break;
  12782. case this.fC:
  12783. a.zj(c.GV, c.DV);
  12784. a.Id(c.Cm, c.Ab);
  12785. a.Id(c.wr, c.ef);
  12786. break;
  12787. case this.gC:
  12788. a.zj(c.OV, c.LV);
  12789. a.Id(c.Cm, c.Ab);
  12790. a.Id(c.Ao, c.Sd);
  12791. break;
  12792. case this.kC:
  12793. a.zj(c.NV, c.MV);
  12794. a.Id(c.Cm, c.Ab);
  12795. a.Id(c.Ao, c.Sd);
  12796. break;
  12797. case this.jC:
  12798. a.zj(c.IV, c.HV);
  12799. a.Id(c.Cm, c.Ab);
  12800. a.Id(c.wr, c.ef);
  12801. a.Id(c.Ao, c.Sd);
  12802. break;
  12803. case this.lC:
  12804. a.zj(c.QV, c.PV);
  12805. a.Id("aVertex", c.Ab);
  12806. break;
  12807. case this.lK:
  12808. a.zj(c.FV, c.EV);
  12809. a.Id(c.Cm, c.Ab);
  12810. a.Id(c.Ao, c.Sd);
  12811. a.Id(c.wr, c.ef);
  12812. break;
  12813. default:
  12814. c.log("cocos2d: cc.shaderCache._loadDefaultShader, error shader type");
  12815. return
  12816. }
  12817. a.link();
  12818. a.k9()
  12819. },
  12820. D5: function() {
  12821. var a = new c.Qi;
  12822. this.lf(a, this.hC);
  12823. this.Dd[c.Zj] = a;
  12824. this.Dd.ShaderPositionTextureColor = a;
  12825. a = new c.Qi;
  12826. this.lf(a, this.iC);
  12827. this.Dd[c.yw] = a;
  12828. this.Dd.ShaderPositionTextureColorAlphaTest = a;
  12829. a = new c.Qi;
  12830. this.lf(a, this.fC);
  12831. this.Dd[c.xw] = a;
  12832. this.Dd.ShaderPositionColor = a;
  12833. a = new c.Qi;
  12834. this.lf(a, this.gC);
  12835. this.Dd[c.ns] = a;
  12836. this.Dd.ShaderPositionTexture = a;
  12837. a = new c.Qi;
  12838. this.lf(a, this.kC);
  12839. this.Dd[c.XB] = a;
  12840. this.Dd.ShaderPositionTextureUColor = a;
  12841. a = new c.Qi;
  12842. this.lf(a, this.jC);
  12843. this.Dd[c.WB] = a;
  12844. this.Dd.ShaderPositionTextureA8Color = a;
  12845. a = new c.Qi;
  12846. this.lf(a, this.lC);
  12847. this.Dd[c.YB] = a;
  12848. this.Dd.ShaderPositionUColor = a;
  12849. a = new c.Qi;
  12850. this.lf(a, this.lK);
  12851. this.Dd[c.ZJ] = a;
  12852. this.Dd.ShaderPositionLengthTextureColor = a
  12853. },
  12854. $la: function() {
  12855. var a = this.Dc(c.Zj);
  12856. a.reset();
  12857. this.lf(a, this.hC);
  12858. a = this.Dc(c.yw);
  12859. a.reset();
  12860. this.lf(a, this.iC);
  12861. a = this.Dc(c.xw);
  12862. a.reset();
  12863. this.lf(a, this.fC);
  12864. a = this.Dc(c.ns);
  12865. a.reset();
  12866. this.lf(a, this.gC);
  12867. a = this.Dc(c.XB);
  12868. a.reset();
  12869. this.lf(a, this.kC);
  12870. a = this.Dc(c.WB);
  12871. a.reset();
  12872. this.lf(a, this.jC);
  12873. a = this.Dc(c.YB);
  12874. a.reset();
  12875. this.lf(a, this.lC)
  12876. },
  12877. Dc: function(a) {
  12878. return this.Dd[a]
  12879. },
  12880. $n: function(a) {
  12881. return this.Dd[a]
  12882. },
  12883. wca: function(a, b) {
  12884. this.Dd[b] = a
  12885. }
  12886. };
  12887. c.kU = function() {
  12888. this.location = this.value = void 0;
  12889. this.oz = {}
  12890. };
  12891. c.Qi = c.qa.extend({
  12892. ka: null,
  12893. Rb: null,
  12894. Uf: null,
  12895. qh: null,
  12896. Kb: null,
  12897. Xh: null,
  12898. hO: !1,
  12899. rf: function(a, b) {
  12900. if (null == a) return !1;
  12901. for (var d = !0, e = null, f = 0; f < this.Xh.length; f++) this.Xh[f].location == a && (e = this.Xh[f]);
  12902. e ? e.value == b ? d = !1 : e.value = b : (e = new c.kU, e.location = a, e.value = b, this.Xh.push(e));
  12903. return d
  12904. },
  12905. Hba: function() {
  12906. return "<CCGLProgram = " + this.toString() + " | Program = " + this.Rb.toString() + ", VertexShader = " + this.Uf.toString() + ", FragmentShader = " + this.qh.toString() + ">"
  12907. },
  12908. qL: function(a, b, d) {
  12909. if (!d || !a) return !1;
  12910. this.ka.shaderSource(a, "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);
  12911. this.ka.compileShader(a);
  12912. d = this.ka.getShaderParameter(a, this.ka.COMPILE_STATUS);
  12913. d || (c.log("cocos2d: ERROR: Failed to compile shader:\n" + this.ka.getShaderSource(a)), b == this.ka.VERTEX_SHADER ? c.log("cocos2d: \n" + this.q9()) : c.log("cocos2d: \n" + this.X2()));
  12914. return 1 == d
  12915. },
  12916. ctor: function(a, b, d) {
  12917. this.Kb = [];
  12918. this.Xh = [];
  12919. this.ka = d || c.m;
  12920. a && b && this.K(a, b)
  12921. },
  12922. Bda: function() {
  12923. this.Xh = this.Kb = this.qh = this.Uf = null;
  12924. this.ka.deleteProgram(this.Rb)
  12925. },
  12926. zj: function(a, b) {
  12927. var d = this.ka;
  12928. this.Rb = d.createProgram();
  12929. this.qh = this.Uf = null;
  12930. a && (this.Uf = d.createShader(d.VERTEX_SHADER), this.qL(this.Uf, d.VERTEX_SHADER, a) || c.log("cocos2d: ERROR: Failed to compile vertex shader"));
  12931. b && (this.qh = d.createShader(d.FRAGMENT_SHADER), this.qL(this.qh, d.FRAGMENT_SHADER, b) || c.log("cocos2d: ERROR: Failed to compile fragment shader"));
  12932. this.Uf && d.attachShader(this.Rb, this.Uf);
  12933. c.mq();
  12934. this.qh && d.attachShader(this.Rb, this.qh);
  12935. this.Xh.length = 0;
  12936. c.mq();
  12937. return !0
  12938. },
  12939. Md: function(a, b) {
  12940. return this.zj(a, b)
  12941. },
  12942. F4: function(a, b) {
  12943. var d = c.X.be(a);
  12944. if (!d) throw "Please load the resource firset : " + a;
  12945. var e = c.X.be(b);
  12946. if (!e) throw "Please load the resource firset : " + b;
  12947. return this.zj(d, e)
  12948. },
  12949. K: function(a, b) {
  12950. return this.F4(a, b)
  12951. },
  12952. Id: function(a, b) {
  12953. this.ka.bindAttribLocation(this.Rb, b, a)
  12954. },
  12955. link: function() {
  12956. if (!this.Rb) return c.log("cc.GLProgram.link(): Cannot link invalid program"), !1;
  12957. this.ka.linkProgram(this.Rb);
  12958. this.Uf && this.ka.deleteShader(this.Uf);
  12959. this.qh && this.ka.deleteShader(this.qh);
  12960. this.qh = this.Uf = null;
  12961. return c.Wc.vf[c.Wc.Nh.yu] && !this.ka.getProgramParameter(this.Rb, this.ka.LINK_STATUS) ? (c.log("cocos2d: ERROR: Failed to link program: " + this.ka.getProgramInfoLog(this.Rb)), c.j4(this.Rb), this.Rb = null, !1) : !0
  12962. },
  12963. $c: function() {
  12964. c.gH(this.Rb)
  12965. },
  12966. k9: function() {
  12967. this.Kb[c.vC] = this.ka.getUniformLocation(this.Rb, c.tX);
  12968. this.Kb[c.uC] = this.ka.getUniformLocation(this.Rb, c.rX);
  12969. this.Kb[c.Es] = this.ka.getUniformLocation(this.Rb, c.sX);
  12970. this.Kb[c.zC] = this.ka.getUniformLocation(this.Rb, c.xX);
  12971. this.Kb[c.yC] = this.ka.getUniformLocation(this.Rb, c.wX);
  12972. this.Kb[c.tC] = this.ka.getUniformLocation(this.Rb, c.qX);
  12973. this.hO = null != this.Kb[c.zC] || null != this.Kb[c.yC] || null != this.Kb[c.tC];
  12974. this.Kb[c.wC] = this.ka.getUniformLocation(this.Rb, c.uX);
  12975. this.Kb[c.xC] = this.ka.getUniformLocation(this.Rb, c.vX);
  12976. this.$c();
  12977. this.fS(this.Kb[c.xC], 0)
  12978. },
  12979. vha: function(a) {
  12980. if (!a) throw "cc.GLProgram.getUniformLocationForName(): uniform name should be non-null";
  12981. if (!this.Rb) throw "cc.GLProgram.getUniformLocationForName(): Invalid operation. Cannot get uniform location when program is not initialized";
  12982. return this.ka.getUniformLocation(this.Rb, a)
  12983. },
  12984. wha: function() {
  12985. return this.Kb[c.Es]
  12986. },
  12987. xha: function() {
  12988. return this.Kb[c.xC]
  12989. },
  12990. fS: function(a, b) {
  12991. this.rf(a, b) && this.ka.uniform1i(a, b)
  12992. },
  12993. Doa: function(a, b, d) {
  12994. this.rf(a, [b, d]) && this.ka.uniform2i(a, b, d)
  12995. },
  12996. Goa: function(a, b, d, e) {
  12997. this.rf(a, [b, d, e]) && this.ka.uniform3i(a, b, d, e)
  12998. },
  12999. Joa: function(a, b, d, e, f) {
  13000. this.rf(a, [b, d, e, f]) && this.ka.uniform4i(a, b, d, e, f)
  13001. },
  13002. Eoa: function(a, b) {
  13003. this.rf(a, b) && this.ka.uniform2iv(a, b)
  13004. },
  13005. Hoa: function(a, b) {
  13006. this.rf(a, b) && this.ka.uniform3iv(a, b)
  13007. },
  13008. Koa: function(a, b) {
  13009. this.rf(a, b) && this.ka.uniform4iv(a, b)
  13010. },
  13011. Boa: function(a, b) {
  13012. this.fS(a, b)
  13013. },
  13014. xv: function(a, b) {
  13015. this.rf(a, b) && this.ka.uniform1f(a, b)
  13016. },
  13017. j8: function(a, b, d) {
  13018. this.rf(a, [b, d]) && this.ka.uniform2f(a, b, d)
  13019. },
  13020. k8: function(a, b, d, e) {
  13021. this.rf(a, [b, d, e]) && this.ka.uniform3f(a, b, d, e)
  13022. },
  13023. yv: function(a, b, d, e, f) {
  13024. this.rf(a, [b, d, e, f]) && this.ka.uniform4f(a, b, d, e, f)
  13025. },
  13026. Coa: function(a, b) {
  13027. this.rf(a, b) && this.ka.uniform2fv(a, b)
  13028. },
  13029. Foa: function(a, b) {
  13030. this.rf(a, b) && this.ka.uniform3fv(a, b)
  13031. },
  13032. Ioa: function(a, b) {
  13033. this.rf(a, b) && this.ka.uniform4fv(a, b)
  13034. },
  13035. AI: function(a, b) {
  13036. this.rf(a, b) && this.ka.uniformMatrix4fv(a, !1, b)
  13037. },
  13038. Aoa: function() {
  13039. if (!(2 > arguments.length)) switch (arguments.length) {
  13040. case 2:
  13041. this.xv(arguments[0], arguments[1]);
  13042. break;
  13043. case 3:
  13044. this.j8(arguments[0], arguments[1], arguments[2]);
  13045. break;
  13046. case 4:
  13047. this.k8(arguments[0], arguments[1], arguments[2], arguments[3]);
  13048. break;
  13049. case 5:
  13050. this.yv(arguments[0], arguments[1], arguments[2], arguments[3], arguments[4])
  13051. }
  13052. },
  13053. zv: function() {
  13054. var a = new c.ga,
  13055. b = new c.ga,
  13056. d = new c.ga;
  13057. c.Ez(c.Wj, a);
  13058. c.Ez(c.Vj, b);
  13059. c.Dj(d, a, b);
  13060. this.AI(this.Kb[c.vC], a.c, 1);
  13061. this.AI(this.Kb[c.uC], b.c, 1);
  13062. this.AI(this.Kb[c.Es], d.c, 1);
  13063. this.hO && (a = c.L, a = a.By * a.Ms, this.yv(this.Kb[c.zC], a / 10, a, 2 * a, 4 * a), this.yv(this.Kb[c.yC], a / 8, a / 4, a / 2, Math.sin(a)), this.yv(this.Kb[c.tC], a / 8, a / 4, a / 2, Math.cos(a))); - 1 != this.Kb[c.wC] && this.yv(this.Kb[c.wC], Math.random(), Math.random(), Math.random(), Math.random())
  13064. },
  13065. yoa: function() {
  13066. this.ka.uniformMatrix4fv(this.Kb[c.Es], !1, c.E3())
  13067. },
  13068. zoa: function(a) {
  13069. c.Dj(a, c.um.top, c.Nk.top);
  13070. this.ka.uniformMatrix4fv(this.Kb[c.Es], !1, a.c)
  13071. },
  13072. Ef: function() {
  13073. this.ka.uniformMatrix4fv(this.Kb[c.uC], !1, c.Nk.top.c);
  13074. this.ka.uniformMatrix4fv(this.Kb[c.vC], !1, c.um.top.c)
  13075. },
  13076. q9: function() {
  13077. return this.ka.getShaderInfoLog(this.Uf)
  13078. },
  13079. Cha: function() {
  13080. return this.ka.getShaderInfoLog(this.Uf)
  13081. },
  13082. Rfa: function() {
  13083. return this.ka.getShaderInfoLog(this.Uf)
  13084. },
  13085. X2: function() {
  13086. return this.ka.getShaderInfoLog(this.qh)
  13087. },
  13088. Gla: function() {
  13089. return this.ka.getProgramInfoLog(this.Rb)
  13090. },
  13091. Mga: function() {
  13092. return this.ka.getProgramInfoLog(this.Rb)
  13093. },
  13094. reset: function() {
  13095. this.qh = this.Uf = null;
  13096. this.Kb.length = 0;
  13097. this.ka.deleteProgram(this.Rb);
  13098. this.Rb = null;
  13099. for (var a = 0; a < this.Xh.length; a++) this.Xh[a].value = null, this.Xh[a] = null;
  13100. this.Xh.length = 0
  13101. },
  13102. $n: function() {
  13103. return this.Rb
  13104. },
  13105. nA: function() {},
  13106. Lj: function() {}
  13107. });
  13108. c.Qi.create = function(a, b) {
  13109. return new c.Qi(a, b)
  13110. };
  13111. c.wL = -1;
  13112. c.RF = !1;
  13113. c.QF = !1;
  13114. c.SF = !1;
  13115. c.Qh && (c.LU = 16, c.Xs = -1, c.Ws = [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], c.Yo = -1, c.Xo = -1, c.HX = 0, c.bC && (c.aO = 0));
  13116. c.Lha = function() {
  13117. c.g5();
  13118. c.wL = -1;
  13119. c.RF = !1;
  13120. c.QF = !1;
  13121. c.SF = !1;
  13122. if (c.Qh) {
  13123. c.Xs = -1;
  13124. for (var a = 0; a < c.LU; a++) c.Ws[a] = -1;
  13125. c.Yo = -1;
  13126. c.Xo = -1;
  13127. c.HX = 0
  13128. }
  13129. };
  13130. c.gH = function(a) {
  13131. a !== c.Xs && (c.Xs = a, c.m.useProgram(a))
  13132. };
  13133. c.Qh || (c.gH = function(a) {
  13134. c.m.useProgram(a)
  13135. });
  13136. c.j4 = function(a) {
  13137. c.Qh && a === c.Xs && (c.Xs = -1);
  13138. gl.deleteProgram(a)
  13139. };
  13140. c.Ai = function(a, b) {
  13141. if (a !== c.Yo || b !== c.Xo) c.Yo = a, c.Xo = b, c.tA(a, b)
  13142. };
  13143. c.tA = function(a, b) {
  13144. var d = c.m;
  13145. a === d.ONE && b === d.ZERO ? d.disable(d.BLEND) : (d.enable(d.BLEND), c.m.blendFunc(a, b))
  13146. };
  13147. c.UP = function(a, b) {
  13148. if (a !== c.Yo || b !== c.Xo) {
  13149. c.Yo = a;
  13150. c.Xo = b;
  13151. var d = c.m;
  13152. a === d.ONE && b === d.ZERO ? d.disable(d.BLEND) : (d.enable(d.BLEND), d.blendFuncSeparate(d.SRC_ALPHA, b, a, b))
  13153. }
  13154. };
  13155. c.Qh || (c.Ai = c.tA);
  13156. c.Iha = function() {
  13157. var a = c.m;
  13158. a.blendEquation(a.FUNC_ADD);
  13159. c.Qh ? c.tA(c.Yo, c.Xo) : c.tA(a.vc, a.uc)
  13160. };
  13161. c.VR = function() {
  13162. c.wL = -1
  13163. };
  13164. c.Xc = function(a) {
  13165. var b = c.m,
  13166. d = a & c.ke;
  13167. d !== c.RF && (d ? b.enableVertexAttribArray(c.Ab) : b.disableVertexAttribArray(c.Ab), c.RF = d);
  13168. d = a & c.Hw;
  13169. d !== c.QF && (d ? b.enableVertexAttribArray(c.ef) : b.disableVertexAttribArray(c.ef), c.QF = d);
  13170. a &= c.Ro;
  13171. a !== c.SF && (a ? b.enableVertexAttribArray(c.Sd) : b.disableVertexAttribArray(c.Sd), c.SF = a)
  13172. };
  13173. c.Te = function(a) {
  13174. c.fH(0, a)
  13175. };
  13176. c.fH = function(a, b) {
  13177. if (c.Ws[a] != b) {
  13178. c.Ws[a] = b;
  13179. var d = c.m;
  13180. d.activeTexture(d.TEXTURE0 + a);
  13181. b ? d.bindTexture(d.TEXTURE_2D, b.te) : d.bindTexture(d.TEXTURE_2D, null)
  13182. }
  13183. };
  13184. c.Qh || (c.fH = function(a, b) {
  13185. var d = c.m;
  13186. d.activeTexture(d.TEXTURE0 + a);
  13187. b ? d.bindTexture(d.TEXTURE_2D, b.te) : d.bindTexture(d.TEXTURE_2D, null)
  13188. });
  13189. c.Jha = function(a) {
  13190. c.k4(a)
  13191. };
  13192. c.k4 = function(a) {
  13193. c.Qh && a == c.Ws[0] && (c.Ws[0] = -1);
  13194. c.m.deleteTexture(a)
  13195. };
  13196. c.Hha = function(a) {
  13197. c.bC && c.Qh && c.aO != a && (c.aO = a)
  13198. };
  13199. c.Kha = function() {};
  13200. c.P$ = 0;
  13201. c.Q$ = 1;
  13202. c.R$ = 2;
  13203. c.fl = function(a) {
  13204. a -= 1;
  13205. a |= a >> 1;
  13206. a |= a >> 2;
  13207. a |= a >> 4;
  13208. a |= a >> 8;
  13209. return (a | a >> 16) + 1
  13210. };
  13211. c.No = c.t.extend({
  13212. sprite: null,
  13213. Sy: 0,
  13214. uG: 0,
  13215. pu: !1,
  13216. Be: null,
  13217. gf: null,
  13218. vx: 0,
  13219. Ys: 0,
  13220. ij: 0,
  13221. O: null,
  13222. $t: null,
  13223. L0: null,
  13224. kj: c.ia.Yj,
  13225. dk: null,
  13226. vG: 0,
  13227. gD: null,
  13228. ob: "RenderTexture",
  13229. ctor: null,
  13230. Us: function(a, b, d, e) {
  13231. c.t.prototype.ctor.call(this);
  13232. this.dk = c.color(255, 255, 255, 255);
  13233. this.gD = "rgba(255,255,255,1)";
  13234. this.Be = c.ac("canvas");
  13235. this.gf = this.Be.getContext("2d");
  13236. this.anchorY = this.anchorX = 0;
  13237. void 0 !== a && void 0 !== b && (d = d || c.ia.Yj, this.xz(a, b, d, e || 0))
  13238. },
  13239. Vs: function(a, b, d, e) {
  13240. c.t.prototype.ctor.call(this);
  13241. this.dk = c.color(0, 0, 0, 0);
  13242. void 0 !== a && void 0 !== b && (d = d || c.ia.Yj, this.xz(a, b, d, e || 0))
  13243. },
  13244. uf: null,
  13245. kY: function() {
  13246. c.t.prototype.xb.call(this);
  13247. this.Be = this.gf = null
  13248. },
  13249. lY: function() {
  13250. c.t.prototype.xb.call(this);
  13251. this.$t = null;
  13252. var a = c.m;
  13253. a.deleteFramebuffer(this.vx);
  13254. this.Ys && a.deleteRenderbuffer(this.Ys);
  13255. this.L0 = null
  13256. },
  13257. MP: function() {
  13258. return this.sprite
  13259. },
  13260. EA: function(a) {
  13261. this.sprite = a
  13262. },
  13263. xz: null,
  13264. IZ: function(a, b) {
  13265. var d = this.Be,
  13266. e = c.wb();
  13267. d.width = 0 | a * e;
  13268. d.height = 0 | b * e;
  13269. this.gf.translate(0, d.height);
  13270. e = new c.ia;
  13271. e.Ld(d);
  13272. e.$b();
  13273. this.sprite = c.P.create(e);
  13274. return !0
  13275. },
  13276. JZ: function(a, b, d, e) {
  13277. d == c.ia.es && c.log("cc.RenderTexture._initWithWidthAndHeightForWebGL() : only RGB and RGBA formats are valid for a render texture;");
  13278. var f = c.m,
  13279. g = c.wb();
  13280. a = 0 | a * g;
  13281. b = 0 | b * g;
  13282. this.ij = f.getParameter(f.FRAMEBUFFER_BINDING);
  13283. var h;
  13284. c.nq.yy ? (g = a, h = b) : (g = c.fl(a), h = c.fl(b));
  13285. for (var k = new Uint8Array(g * h * 4), m = 0; m < g * h * 4; m++) k[m] = 0;
  13286. this.kj = d;
  13287. this.O = new c.ia;
  13288. if (!this.O) return !1;
  13289. m = this.O;
  13290. m.Mu(k, this.kj, g, h, c.size(a, b));
  13291. d = f.getParameter(f.RENDERBUFFER_BINDING);
  13292. if (c.nq.lq("GL_QCOM")) {
  13293. this.$t = new c.ia;
  13294. if (!this.$t) return !1;
  13295. this.$t.Mu(k, this.kj, g, h, c.size(a, b))
  13296. }
  13297. this.vx = f.createFramebuffer();
  13298. f.bindFramebuffer(f.FRAMEBUFFER, this.vx);
  13299. f.framebufferTexture2D(f.FRAMEBUFFER, f.COLOR_ATTACHMENT0, f.TEXTURE_2D, m.te, 0);
  13300. 0 != e && (this.Ys = f.createRenderbuffer(), f.bindRenderbuffer(f.RENDERBUFFER, this.Ys), f.renderbufferStorage(f.RENDERBUFFER, e, g, h), f.framebufferRenderbuffer(f.FRAMEBUFFER, f.DEPTH_ATTACHMENT, f.RENDERBUFFER, this.Ys));
  13301. f.checkFramebufferStatus(f.FRAMEBUFFER) !== f.FRAMEBUFFER_COMPLETE && c.log("Could not attach texture to the framebuffer");
  13302. m.hI();
  13303. a = this.sprite = c.P.create(m);
  13304. a.scaleY = -1;
  13305. a.zf(f.ONE, f.ONE_MINUS_SRC_ALPHA);
  13306. f.bindRenderbuffer(f.RENDERBUFFER, d);
  13307. f.bindFramebuffer(f.FRAMEBUFFER, this.ij);
  13308. this.pu = !1;
  13309. this.M(a);
  13310. return !0
  13311. },
  13312. Yf: null,
  13313. YX: function() {
  13314. c.m = this.gf;
  13315. c.view.IN()
  13316. },
  13317. ZX: function() {
  13318. c.Cj(c.Wj);
  13319. c.eo();
  13320. c.Cj(c.Vj);
  13321. c.eo();
  13322. var a = c.L;
  13323. a.so(a.vj());
  13324. var b = this.O.S,
  13325. d = c.L.Iu(),
  13326. a = d.width / b.width,
  13327. d = d.height / b.height,
  13328. e = c.m;
  13329. e.viewport(0, 0, b.width, b.height);
  13330. b = new c.ga;
  13331. c.BH(b, -1 / a, 1 / a, -1 / d, 1 / d, -1, 1);
  13332. c.Kq(b);
  13333. this.ij = e.getParameter(e.FRAMEBUFFER_BINDING);
  13334. e.bindFramebuffer(e.FRAMEBUFFER, this.vx);
  13335. c.nq.lq("GL_QCOM") && (e.framebufferTexture2D(e.FRAMEBUFFER, e.COLOR_ATTACHMENT0, e.TEXTURE_2D, this.$t.te, 0), e.clear(e.COLOR_BUFFER_BIT | e.DEPTH_BUFFER_BIT), e.framebufferTexture2D(e.FRAMEBUFFER, e.COLOR_ATTACHMENT0, e.TEXTURE_2D, this.O.te, 0))
  13336. },
  13337. G1: function(a, b, d, e, f, g) {
  13338. var h = c.m;
  13339. f = f || h.COLOR_BUFFER_BIT;
  13340. g = g || h.COLOR_BUFFER_BIT | h.DEPTH_BUFFER_BIT;
  13341. this.WC(a, b, d, e, f, g, h.COLOR_BUFFER_BIT | h.DEPTH_BUFFER_BIT | h.STENCIL_BUFFER_BIT)
  13342. },
  13343. WC: null,
  13344. $X: function(a, b, d, e) {
  13345. this.Yf();
  13346. a = a || 0;
  13347. b = b || 0;
  13348. d = d || 0;
  13349. e = isNaN(e) ? 1 : e;
  13350. var f = this.gf,
  13351. g = this.Be;
  13352. f.save();
  13353. f.fillStyle = "rgba(" + (0 | a) + "," + (0 | b) + "," + (0 | d) + "," + e / 255 + ")";
  13354. f.clearRect(0, 0, g.width, -g.height);
  13355. f.fillRect(0, 0, g.width, -g.height);
  13356. f.restore()
  13357. },
  13358. aY: function(a, b, d, e, f, g, h) {
  13359. this.Yf();
  13360. var k = c.m,
  13361. m = [0, 0, 0, 0],
  13362. n = 0,
  13363. q = 0;
  13364. h & k.COLOR_BUFFER_BIT && (m = k.getParameter(k.COLOR_CLEAR_VALUE), k.clearColor(a, b, d, e));
  13365. h & k.DEPTH_BUFFER_BIT && (n = k.getParameter(k.DEPTH_CLEAR_VALUE), k.clearDepth(f));
  13366. h & k.STENCIL_BUFFER_BIT && (q = k.getParameter(k.STENCIL_CLEAR_VALUE), k.clearStencil(g));
  13367. k.clear(h);
  13368. h & k.COLOR_BUFFER_BIT && k.clearColor(m[0], m[1], m[2], m[3]);
  13369. h & k.DEPTH_BUFFER_BIT && k.clearDepth(n);
  13370. h & k.STENCIL_BUFFER_BIT && k.clearStencil(q)
  13371. },
  13372. end: null,
  13373. HY: function() {
  13374. c.m = c.ZZ;
  13375. c.view.vN()
  13376. },
  13377. IY: function() {
  13378. var a = c.m,
  13379. b = c.L;
  13380. a.bindFramebuffer(a.FRAMEBUFFER, this.ij);
  13381. b.gS();
  13382. c.Cj(c.Wj);
  13383. c.co();
  13384. c.Cj(c.Vj);
  13385. c.co()
  13386. },
  13387. clear: function(a, b, d, e) {
  13388. this.G1(a, b, d, e);
  13389. this.end()
  13390. },
  13391. clearRect: null,
  13392. oY: function(a, b, d, e) {
  13393. this.gf.clearRect(a, b, d, -e)
  13394. },
  13395. pY: function() {},
  13396. clearDepth: null,
  13397. mY: function() {
  13398. c.log("clearDepth isn't supported on Cocos2d-Html5")
  13399. },
  13400. nY: function(a) {
  13401. this.Yf();
  13402. var b = c.m,
  13403. d = b.getParameter(b.DEPTH_CLEAR_VALUE);
  13404. b.clearDepth(a);
  13405. b.clear(b.DEPTH_BUFFER_BIT);
  13406. b.clearDepth(d);
  13407. this.end()
  13408. },
  13409. clearStencil: null,
  13410. qY: function() {
  13411. c.log("clearDepth isn't supported on Cocos2d-Html5")
  13412. },
  13413. rY: function(a) {
  13414. var b = c.m,
  13415. d = b.getParameter(b.STENCIL_CLEAR_VALUE);
  13416. b.clearStencil(a);
  13417. b.clear(b.STENCIL_BUFFER_BIT);
  13418. b.clearStencil(d)
  13419. },
  13420. U: null,
  13421. Cn: function(a) {
  13422. this.Ja && (a = a || c.m, a.save(), this.Y(a), this.transform(a), this.sprite.U(), a.restore(), this.arrivalOrder = 0)
  13423. },
  13424. ju: function(a) {
  13425. if (this.Ja) {
  13426. c.eo();
  13427. var b = this.grid;
  13428. b && b.fg() && (b.ru(), this.KA());
  13429. this.transform(a);
  13430. this.sprite.U();
  13431. this.Y(a);
  13432. b && b.fg() && b.nu(this);
  13433. c.co();
  13434. this.arrivalOrder = 0
  13435. }
  13436. },
  13437. Y: null,
  13438. Zm: function(a) {
  13439. a = a || c.m;
  13440. if (this.pu) {
  13441. this.Yf();
  13442. if (this.Sy) {
  13443. var b = this.Be;
  13444. a.save();
  13445. a.fillStyle = this.gD;
  13446. a.clearRect(0, 0, b.width, -b.height);
  13447. a.fillRect(0, 0, b.width, -b.height);
  13448. a.restore()
  13449. }
  13450. this.jd();
  13451. a = this.u;
  13452. for (var b = a.length, d = this.sprite, e = 0; e < b; e++) {
  13453. var f = a[e];
  13454. f != d && f.U()
  13455. }
  13456. this.end()
  13457. }
  13458. },
  13459. fk: function() {
  13460. var a = c.m;
  13461. if (this.pu) {
  13462. this.Yf();
  13463. var b = this.Sy;
  13464. if (b) {
  13465. var d = [0, 0, 0, 0],
  13466. e = 0,
  13467. f = 0;
  13468. b & a.COLOR_BUFFER_BIT && (d = a.getParameter(a.COLOR_CLEAR_VALUE), a.clearColor(this.dk.r / 255, this.dk.g / 255, this.dk.b / 255, this.dk.a / 255));
  13469. b & a.DEPTH_BUFFER_BIT && (e = a.getParameter(a.DEPTH_CLEAR_VALUE), a.clearDepth(this.uG));
  13470. b & a.STENCIL_BUFFER_BIT && (f = a.getParameter(a.STENCIL_CLEAR_VALUE), a.clearStencil(this.vG));
  13471. a.clear(b);
  13472. b & a.COLOR_BUFFER_BIT && a.clearColor(d[0], d[1], d[2], d[3]);
  13473. b & a.DEPTH_BUFFER_BIT && a.clearDepth(e);
  13474. b & a.STENCIL_BUFFER_BIT && a.clearStencil(f)
  13475. }
  13476. this.jd();
  13477. a = this.u;
  13478. for (b = 0; b < a.length; b++) d = a[b], d != this.sprite && d.U();
  13479. this.end()
  13480. }
  13481. },
  13482. Eka: function() {
  13483. c.log("saveToFile isn't supported on cocos2d-html5");
  13484. return null
  13485. },
  13486. Xba: function(a, b, d, e, f) {
  13487. for (var g = 0; g < f; g++) a[b + g] = d[e + g]
  13488. },
  13489. Bma: function() {
  13490. c.log("saveToFile isn't supported on Cocos2d-Html5")
  13491. },
  13492. pka: function() {
  13493. c.log("listenToBackground isn't supported on Cocos2d-Html5")
  13494. },
  13495. qka: function() {
  13496. c.log("listenToForeground isn't supported on Cocos2d-Html5")
  13497. },
  13498. ofa: function() {
  13499. return this.Sy
  13500. },
  13501. Wma: function(a) {
  13502. this.Sy = a
  13503. },
  13504. f3: function() {
  13505. return this.dk
  13506. },
  13507. kI: null,
  13508. S_: function(a) {
  13509. var b = this.dk;
  13510. b.r = a.r;
  13511. b.g = a.g;
  13512. b.b = a.b;
  13513. b.a = a.a;
  13514. this.gD = "rgba(" + (0 | a.r) + "," + (0 | a.g) + "," + (0 | a.b) + "," + a.a / 255 + ")"
  13515. },
  13516. T_: function(a) {
  13517. var b = this.dk;
  13518. b.r = a.r;
  13519. b.g = a.g;
  13520. b.b = a.b;
  13521. b.a = a.a
  13522. },
  13523. nfa: function() {
  13524. return this.uG
  13525. },
  13526. Vma: function(a) {
  13527. this.uG = a
  13528. },
  13529. pfa: function() {
  13530. return this.vG
  13531. },
  13532. Xma: function(a) {
  13533. this.vG = a
  13534. },
  13535. Xha: function() {
  13536. return this.pu
  13537. },
  13538. Oma: function(a) {
  13539. this.pu = a
  13540. }
  13541. });
  13542. p = c.No.prototype;
  13543. c.F == c.ea ? (p.ctor = p.Vs, p.uf = p.lY, p.xz = p.JZ, p.Yf = p.ZX, p.WC = p.aY, p.end = p.IY, p.clearRect = p.pY, p.clearDepth = p.nY, p.clearStencil = p.rY, p.U = p.ju, p.Y = p.fk, p.kI = p.T_) : (p.ctor = p.Us, p.uf = p.kY, p.xz = p.IZ, p.Yf = p.YX, p.WC = p.$X, p.end = p.HY, p.clearRect = p.oY, p.clearDepth = p.mY, p.clearStencil = p.qY, p.U = p.Cn, p.Y = p.Zm, p.kI = p.S_);
  13544. c.i(p, "clearColorVal", p.f3, p.kI);
  13545. c.No.create = function(a, b, d, e) {
  13546. return new c.No(a, b, d, e)
  13547. };
  13548. c.Si = c.Sj.extend({
  13549. Tb: null,
  13550. eE: null,
  13551. sa: !1,
  13552. pb: null,
  13553. ob: "LabelAtlas",
  13554. ctor: function(a, b, d, e, f) {
  13555. c.Sj.prototype.ctor.call(this);
  13556. b && c.Si.prototype.Md.call(this, a, b, d, e, f)
  13557. },
  13558. Fv: function() {
  13559. return this.sa
  13560. },
  13561. ue: function(a, b) {
  13562. this.pb || (this.pb = []);
  13563. this.pb.push({
  13564. wi: a,
  13565. Kg: b
  13566. })
  13567. },
  13568. me: function() {
  13569. if (this.pb) {
  13570. this.sa = !0;
  13571. for (var a = this.pb, b = 0, d = a.length; b < d; b++) {
  13572. var e = a[b];
  13573. e.wi.call(e.Kg, this)
  13574. }
  13575. a.length = 0
  13576. }
  13577. },
  13578. Md: function(a, b, d, e, f) {
  13579. var g = a + "",
  13580. h, k;
  13581. if (void 0 === d) {
  13582. d = c.X.be(b);
  13583. if (1 !== parseInt(d.version, 10)) return c.log("cc.LabelAtlas.initWithString(): Unsupported version. Upgrade cocos2d version"), !1;
  13584. b = c.path.kq(b, d.textureFilename);
  13585. e = c.wb();
  13586. h = parseInt(d.itemWidth, 10) / e;
  13587. k = parseInt(d.itemHeight, 10) / e;
  13588. d = String.fromCharCode(parseInt(d.firstChar, 10))
  13589. } else h = d || 0, k = e || 0, d = f || " ";
  13590. var m = null,
  13591. m = b instanceof c.ia ? b : c.Ka.Qc(b);
  13592. (this.sa = b = m.Kc) || m.ue(function() {
  13593. this.pa(m, h, k, g.length);
  13594. this.string = g;
  13595. this.me()
  13596. }, this);
  13597. return this.pa(m, h, k, g.length) ? (this.eE = d, this.string = g, !0) : !1
  13598. },
  13599. Va: function(a) {
  13600. c.Sj.prototype.Va.call(this, a);
  13601. this.rr()
  13602. },
  13603. lm: function() {
  13604. return this.Tb
  13605. },
  13606. Y: function(a) {
  13607. c.Sj.prototype.Y.call(this, a);
  13608. c.CU && (a = this.size, a = [c.d(0, 0), c.d(a.width, 0), c.d(a.width, a.height), c.d(0, a.height)], c.jf.$d(a, 4, !0))
  13609. },
  13610. OC: function(a, b, d) {
  13611. a.UZ = !0;
  13612. c.la.prototype.M.call(this, a, b, d)
  13613. },
  13614. rr: null,
  13615. M0: function() {
  13616. for (var a = this.Tb || "", b = a.length, d = this.texture, e = this.ej, f = this.bi, g = 0; g < b; g++) {
  13617. var h = a.charCodeAt(g) - this.eE.charCodeAt(0),
  13618. h = c.rect(parseInt(h % this.Ip, 10) * e, parseInt(h / this.Ip, 10) * f, e, f),
  13619. k = a.charCodeAt(g),
  13620. m = this.cg(g);
  13621. m ? 32 == k ? (m.K(), m.Hb(c.rect(0, 0, 10, 10), !1, c.size(0, 0))) : (m.pa(d, h), m.visible = !0, m.opacity = this.Ia) : (m = new c.P, 32 == k ? (m.K(), m.Hb(c.rect(0, 0, 10, 10), !1, c.size(0, 0))) : m.pa(d, h), c.la.prototype.M.call(this, m, 0, g));
  13622. m.J(g * e + e / 2, f / 2)
  13623. }
  13624. },
  13625. N0: function() {
  13626. var a = this.Tb,
  13627. b = a.length,
  13628. d = this.textureAtlas,
  13629. e = d.texture,
  13630. f = e.pixelsWidth,
  13631. e = e.pixelsHeight,
  13632. g = this.ej,
  13633. h = this.bi;
  13634. this.Ex || (g = this.ej * c.wb(), h = this.bi * c.wb());
  13635. b > d.Td && c.log("cc.LabelAtlas._updateAtlasValues(): Invalid String length");
  13636. for (var k = d.quads, m = this.Ma, m = {
  13637. r: m.r,
  13638. g: m.g,
  13639. b: m.b,
  13640. a: this.Ia
  13641. }, n = this.ej, q = 0; q < b; q++) {
  13642. var r = a.charCodeAt(q) - this.eE.charCodeAt(0),
  13643. t = r % this.Ip,
  13644. s = 0 | r / this.Ip,
  13645. u;
  13646. c.Do ? (t = (2 * t * g + 1) / (2 * f), r = t + (2 * g - 2) / (2 * f), s = (2 * s * h + 1) / (2 * e), u = s + (2 * h - 2) / (2 * e)) : (t = t * g / f, r = t + g / f, s = s * h / e, u = s + h / e);
  13647. var v = k[q],
  13648. B = v.Q,
  13649. x = v.N,
  13650. F = v.I,
  13651. v = v.R;
  13652. B.n.da = t;
  13653. B.n.G = s;
  13654. x.n.da = r;
  13655. x.n.G = s;
  13656. F.n.da = t;
  13657. F.n.G = u;
  13658. v.n.da = r;
  13659. v.n.G = u;
  13660. F.j.x = q * n;
  13661. F.j.y = 0;
  13662. F.j.z = 0;
  13663. v.j.x = q * n + n;
  13664. v.j.y = 0;
  13665. v.j.z = 0;
  13666. B.j.x = q * n;
  13667. B.j.y = this.bi;
  13668. B.j.z = 0;
  13669. x.j.x = q * n + n;
  13670. x.j.y = this.bi;
  13671. x.j.z = 0;
  13672. B.v = m;
  13673. x.v = m;
  13674. F.v = m;
  13675. v.v = m
  13676. }
  13677. 0 < b && (d.dirty = !0, a = d.totalQuads, b > a && d.cQ(b - a))
  13678. },
  13679. tc: null,
  13680. p0: function(a) {
  13681. a = String(a);
  13682. var b = a.length;
  13683. this.Tb = a;
  13684. this.width = b * this.ej;
  13685. this.height = this.bi;
  13686. if (this.u) {
  13687. a = this.u;
  13688. for (var b = a.length, d = 0; d < b; d++) {
  13689. var e = a[d];
  13690. e && !e.UZ && (e.visible = !1)
  13691. }
  13692. }
  13693. this.rr();
  13694. this.quadsToDraw = b
  13695. },
  13696. r0: function(a) {
  13697. a = String(a);
  13698. var b = a.length;
  13699. b > this.textureAtlas.totalQuads && this.textureAtlas.aI(b);
  13700. this.Tb = a;
  13701. this.width = b * this.ej;
  13702. this.height = this.bi;
  13703. this.rr();
  13704. this.quadsToDraw = b
  13705. },
  13706. Fa: null,
  13707. eF: function(a) {
  13708. if (this.Ia !== a) {
  13709. c.Sj.prototype.Fa.call(this, a);
  13710. for (var b = this.u, d = 0, e = b.length; d < e; d++) b[d] && (b[d].opacity = a)
  13711. }
  13712. },
  13713. fF: function(a) {
  13714. this.qe !== a && c.Sj.prototype.Fa.call(this, a)
  13715. }
  13716. });
  13717. p = c.Si.prototype;
  13718. c.F === c.ea ? (p.rr = p.N0, p.tc = p.r0, p.Fa = p.fF) : (p.rr = p.M0, p.tc = p.p0, p.Fa = p.eF, p.M = p.OC);
  13719. c.i(p, "opacity", p.yf, p.Fa);
  13720. c.i(p, "string", p.lm, p.tc);
  13721. c.Si.create = function(a, b, d, e, f) {
  13722. return new c.Si(a, b, d, e, f)
  13723. };
  13724. c.W$ = -1;
  13725. c.rB = c.ng.extend({
  13726. Ib: !0,
  13727. Xa: !1,
  13728. Tb: "",
  13729. rg: null,
  13730. yx: "",
  13731. Dp: "",
  13732. Ks: c.Pm,
  13733. ku: -1,
  13734. PM: !1,
  13735. Fx: null,
  13736. xN: null,
  13737. Ia: 255,
  13738. re: 255,
  13739. Ma: null,
  13740. pc: null,
  13741. Ud: !0,
  13742. De: !0,
  13743. sa: !1,
  13744. pb: null,
  13745. ob: "LabelBMFont",
  13746. JN: function(a, b) {
  13747. b ? this.Dp = a : this.Tb = a;
  13748. var d = this.u;
  13749. if (d) for (var e = 0; e < d.length; e++) {
  13750. var f = d[e];
  13751. f && f.hS(!1)
  13752. }
  13753. this.sa && (this.Yy(), b && this.bh())
  13754. },
  13755. ctor: function(a, b, d, e, f) {
  13756. c.ng.prototype.ctor.call(this);
  13757. this.Fx = c.d(0, 0);
  13758. this.Ma = c.color(255, 255, 255, 255);
  13759. this.pc = c.color(255, 255, 255, 255);
  13760. this.xN = [];
  13761. this.Md(a, b, d, e, f)
  13762. },
  13763. Fv: function() {
  13764. return this.sa
  13765. },
  13766. ue: function(a, b) {
  13767. this.pb || (this.pb = []);
  13768. this.pb.push({
  13769. wi: a,
  13770. Kg: b
  13771. })
  13772. },
  13773. me: function() {
  13774. if (this.pb) {
  13775. for (var a = this.pb, b = 0, d = a.length; b < d; b++) {
  13776. var e = a[b];
  13777. e.wi.call(e.Kg, this)
  13778. }
  13779. a.length = 0
  13780. }
  13781. },
  13782. Y: function(a) {
  13783. c.ng.prototype.Y.call(this, a);
  13784. if (c.DU) {
  13785. a = this.ve();
  13786. var b = c.d(0 | -this.lb.x, 0 | -this.lb.y);
  13787. a = [c.d(b.x, b.y), c.d(b.x + a.width, b.y), c.d(b.x + a.width, b.y + a.height), c.d(b.x, b.y + a.height)];
  13788. c.jf.fr(0, 255, 0, 255);
  13789. c.jf.$d(a, 4, !0)
  13790. }
  13791. },
  13792. Va: function(a) {
  13793. var b = this.Ma,
  13794. d = this.pc;
  13795. if (d.r != a.r || d.g != a.g || d.b != a.b || d.a != a.a) b.r = d.r = a.r, b.g = d.g = a.g, b.b = d.b = a.b, this.sa && this.Ud && (b = c.color.WHITE, (d = this.gc) && d.Ib && d.cascadeColor && (b = d.Zn()), this.bc(b)), void 0 === a.a || a.mu || this.Fa(a.a)
  13796. },
  13797. Ue: function() {
  13798. return this.Xa
  13799. },
  13800. ee: function(a) {
  13801. this.Xa = a;
  13802. if (a = this.u) for (var b = 0; b < a.length; b++) {
  13803. var d = a[b];
  13804. d && d.Ib && (d.opacityModifyRGB = this.Xa)
  13805. }
  13806. },
  13807. yf: function() {
  13808. return this.re
  13809. },
  13810. sP: function() {
  13811. return this.Ia
  13812. },
  13813. Fa: function(a) {
  13814. this.Ia = this.re = a;
  13815. if (this.De) {
  13816. var b = 255,
  13817. d = this.gc;
  13818. d && d.Ib && d.cascadeOpacity && (b = d.Ia);
  13819. this.Zb(b)
  13820. }
  13821. this.Ma.a = this.pc.a = a
  13822. },
  13823. Zb: function(a) {
  13824. this.Ia = this.re * a / 255;
  13825. a = this.u;
  13826. for (var b = 0; b < a.length; b++) {
  13827. var d = a[b];
  13828. c.F == c.ea ? d.Zb(this.Ia) : (c.la.prototype.Zb.call(d, this.Ia), d.Sa())
  13829. }
  13830. this.yl()
  13831. },
  13832. Pu: function() {
  13833. return !1
  13834. },
  13835. er: function(a) {
  13836. this.De = a
  13837. },
  13838. xf: function() {
  13839. var a = this.pc;
  13840. return c.color(a.r, a.g, a.b, a.a)
  13841. },
  13842. Zn: function() {
  13843. return this.Ma
  13844. },
  13845. bc: function(a) {
  13846. var b = this.Ma,
  13847. d = this.pc;
  13848. b.r = d.r * a.r / 255;
  13849. b.g = d.g * a.g / 255;
  13850. b.b = d.b * a.b / 255;
  13851. a = this.u;
  13852. for (b = 0; b < a.length; b++) d = a[b], c.F == c.ea ? d.bc(this.Ma) : (c.la.prototype.bc.call(d, this.Ma), d.Sa());
  13853. this.yl()
  13854. },
  13855. yl: function() {
  13856. if (c.F != c.ea) {
  13857. var a, b = this.texture;
  13858. b && 0 < b.width && (a = b.Ob) && (b = c.Ka.iz(this.Je.Ob)) && (a instanceof HTMLCanvasElement && !this.rd ? c.wq(a, b, this.Ma, null, a) : (a = c.wq(a, b, this.Ma), b = new c.ia, b.Ld(a), b.$b(), this.texture = b))
  13859. }
  13860. },
  13861. Ou: function() {
  13862. return !1
  13863. },
  13864. dr: function(a) {
  13865. this.Ud = a
  13866. },
  13867. K: function() {
  13868. return this.Md(null, null, null, null, null)
  13869. },
  13870. Md: function(a, b, d, e, f) {
  13871. a = a || "";
  13872. this.rg && c.log("cc.LabelBMFont.initWithString(): re-init is no longer supported");
  13873. if (b) {
  13874. var g = c.X.be(b);
  13875. if (!g) return c.log("cc.LabelBMFont.initWithString(): Impossible to create font. Please check file"), !1;
  13876. this.rg = g;
  13877. this.yx = b;
  13878. b = c.Ka.Qc(g.rO);
  13879. (this.sa = g = b.Kc) || b.ue(function(a) {
  13880. this.sa = !0;
  13881. this.pa(a, this.Dp.length);
  13882. this.tc(this.Dp, !0);
  13883. this.me()
  13884. }, this)
  13885. } else b = new c.ia, g = new Image, b.Ld(g), this.sa = !1;
  13886. return this.pa(b, a.length) ? (this.Ks = e || c.ss, this.Fx = f || c.d(0, 0), this.ku = null == d ? -1 : d, this.Ia = this.re = 255, this.Ma = c.color(255, 255, 255, 255), this.pc = c.color(255, 255, 255, 255), this.Ud = this.De = !0, this.S.width = 0, this.S.height = 0, this.Vk(0.5, 0.5), c.F === c.ea && (d = this.textureAtlas.texture, this.Xa = d.xj(), e = this.xN = new c.P, e.pa(d, c.rect(0, 0, 0, 0), !1), e.batchNode = this), this.tc(a, !0), !0) : !1
  13887. },
  13888. Yy: function() {
  13889. var a = c.F,
  13890. b = a === c.Ha ? this.texture : this.textureAtlas.texture,
  13891. d = 0,
  13892. e = c.size(0, 0),
  13893. f = 0,
  13894. g = 1,
  13895. h = this.Tb,
  13896. k = h ? h.length : 0;
  13897. if (0 !== k) {
  13898. var m, n = this.rg,
  13899. q = n.Z4,
  13900. r = n.zG,
  13901. t = n.W2;
  13902. for (m = 0; m < k - 1; m++) 10 == h.charCodeAt(m) && g++;
  13903. var s = r * g,
  13904. g = -(r - r * g),
  13905. u = -1;
  13906. for (m = 0; m < k; m++) if (r = h.charCodeAt(m), 0 != r) if (10 === r) d = 0, g -= n.zG;
  13907. else {
  13908. var v = q[u << 16 | r & 65535] || 0,
  13909. B = t[r];
  13910. if (B) {
  13911. var x = c.rect(B.rect.x, B.rect.y, B.rect.width, B.rect.height),
  13912. x = c.Sk(x);
  13913. x.x += this.Fx.x;
  13914. x.y += this.Fx.y;
  13915. (u = this.cg(m)) ? 32 === r && a === c.Ha ? u.Hb(x, !1, c.size(0, 0)) : (u.Hb(x, !1), u.visible = !0) : (u = new c.P, 32 === r && a === c.Ha && (x = c.rect(0, 0, 0, 0)), u.pa(b, x, !1), u.jE = !0, this.M(u, 0, m));
  13916. u.opacityModifyRGB = this.Xa;
  13917. c.F == c.ea ? (u.bc(this.Ma), u.Zb(this.Ia)) : (c.la.prototype.bc.call(u, this.Ma), c.la.prototype.Zb.call(u, this.Ia), u.Sa());
  13918. x = c.d(d + B.VS + 0.5 * B.rect.width + v, g + (n.zG - B.WS) - 0.5 * x.height * c.wb());
  13919. u.J(c.WH(x));
  13920. d += B.u9 + v;
  13921. u = r;
  13922. f < d && (f = d)
  13923. } else c.log("cocos2d: LabelBMFont: character not found " + h[m])
  13924. }
  13925. e.width = f;
  13926. e.height = s;
  13927. this.ye(c.jS(e))
  13928. }
  13929. },
  13930. Epa: function(a) {
  13931. var b = this.u;
  13932. if (b) for (var d = 0, e = b.length; d < e; d++) {
  13933. var f = b[d];
  13934. f && (f.visible = !1)
  13935. }
  13936. this.rg && this.Yy();
  13937. a || this.bh()
  13938. },
  13939. lm: function() {
  13940. return this.Dp
  13941. },
  13942. tc: function(a, b) {
  13943. a = String(a);
  13944. null == b && (b = !0);
  13945. if (null == a || "string" != typeof a) a += "";
  13946. this.Dp = a;
  13947. this.JN(a, b)
  13948. },
  13949. q0: function(a) {
  13950. this.tc(a, !1)
  13951. },
  13952. Sma: function(a) {
  13953. this.tc(a, !0)
  13954. },
  13955. bh: function() {
  13956. this.string = this.Dp;
  13957. if (0 < this.ku) {
  13958. for (var a = this.Tb.length, b = [], d = [], e = 1, f = 0, g = !1, h = !1, k = -1, m = -1, n = 0, q, r = 0, t = this.u.length; r < t; r++) {
  13959. for (var s = 0; !(q = this.cg(r + n + s));) s++;
  13960. n += s;
  13961. if (f >= a) break;
  13962. var u = this.Tb[f];
  13963. h || (m = this.JD(q), h = !0);
  13964. g || (k = m, g = !0);
  13965. if (10 == u.charCodeAt(0)) {
  13966. d.push("\n");
  13967. b = b.concat(d);
  13968. d.length = 0;
  13969. g = h = !1;
  13970. k = m = -1;
  13971. r--;
  13972. n -= s;
  13973. e++;
  13974. if (f >= a) break;
  13975. m || (m = this.JD(q), h = !0);
  13976. k || (k = m, g = !0);
  13977. f++
  13978. } else if (c.yH(u)) d.push(u), b = b.concat(d), d.length = 0, h = !1, m = -1, f++;
  13979. else if (this.gZ(q) - k > this.ku) if (this.PM) {
  13980. c.OS(d);
  13981. d.push("\n");
  13982. b = b.concat(d);
  13983. d.length = 0;
  13984. g = h = !1;
  13985. k = m = -1;
  13986. e++;
  13987. if (f >= a) break;
  13988. m || (m = this.JD(q), h = !0);
  13989. k || (k = m, g = !0);
  13990. r--
  13991. } else d.push(u), -1 != b.lastIndexOf(" ") ? c.OS(b) : b = [], 0 < b.length && b.push("\n"), e++, g = !1, k = -1, f++;
  13992. else d.push(u), f++
  13993. }
  13994. b = b.concat(d);
  13995. r = b.length;
  13996. q = "";
  13997. for (f = 0; f < r; ++f) q += b[f];
  13998. q += String.fromCharCode(0);
  13999. this.JN(q, !1)
  14000. }
  14001. if (this.Ks != c.ss) for (b = f = 0, a = this.Tb.length, d = [], e = 0; e < a; e++) if (10 == this.Tb[e].charCodeAt(0) || 0 == this.Tb[e].charCodeAt(0)) if (r = 0, g = d.length, 0 == g) b++;
  14002. else {
  14003. if (q = f + g - 1 + b, !(0 > q) && (r = this.cg(q), null != r)) {
  14004. r = r.Se() + r.Wh() / 2;
  14005. h = 0;
  14006. switch (this.Ks) {
  14007. case c.Pm:
  14008. h = this.width / 2 - r / 2;
  14009. break;
  14010. case c.hK:
  14011. h = this.width - r
  14012. }
  14013. if (0 != h) for (r = 0; r < g; r++)(q = f + r + b, 0 > q || !(q = this.cg(q))) || (q.x += h);
  14014. f += g;
  14015. b++;
  14016. d.length = 0
  14017. }
  14018. } else d.push(this.Tb[f])
  14019. },
  14020. h7: function(a) {
  14021. this.Ks = a;
  14022. this.bh()
  14023. },
  14024. RY: function() {
  14025. return this.Ks
  14026. },
  14027. m7: function(a) {
  14028. this.ku = a;
  14029. this.bh()
  14030. },
  14031. FD: function() {
  14032. return this.ku
  14033. },
  14034. Dna: function(a) {
  14035. this.PM = a;
  14036. this.bh()
  14037. },
  14038. Wk: function(a, b) {
  14039. c.t.prototype.Wk.call(this, a, b);
  14040. this.bh()
  14041. },
  14042. uv: function(a) {
  14043. c.t.prototype.uv.call(this, a);
  14044. this.bh()
  14045. },
  14046. vv: function(a) {
  14047. c.t.prototype.vv.call(this, a);
  14048. this.bh()
  14049. },
  14050. mna: function(a) {
  14051. if (null != a && a != this.yx) {
  14052. var b = c.X.be(a);
  14053. b ? (this.yx = a, this.rg = b, a = c.Ka.Qc(b.rO), this.sa = b = a.Kc, this.texture = a, c.F === c.Ha && (this.Je = this.texture), b ? this.Yy() : a.ue(function(a) {
  14054. this.sa = !0;
  14055. this.texture = a;
  14056. this.Yy();
  14057. this.yl();
  14058. this.bh();
  14059. this.me()
  14060. }, this)) : c.log("cc.LabelBMFont.setFntFile() : Impossible to create font. Please check file")
  14061. }
  14062. },
  14063. Pfa: function() {
  14064. return this.yx
  14065. },
  14066. Vk: function(a, b) {
  14067. c.t.prototype.Vk.call(this, a, b);
  14068. this.bh()
  14069. },
  14070. GN: function(a) {
  14071. c.t.prototype.GN.call(this, a);
  14072. this.bh()
  14073. },
  14074. XE: function(a) {
  14075. c.t.prototype.XE.call(this, a);
  14076. this.bh()
  14077. },
  14078. YE: function(a) {
  14079. c.t.prototype.YE.call(this, a);
  14080. this.bh()
  14081. },
  14082. Bba: function() {},
  14083. Tba: function(a, b) {
  14084. var d = 0;
  14085. if (this.uY.a5) {
  14086. var e = this.uY.a5[(a << 16 | b & 65535).toString()];
  14087. e && (d = e.Gca)
  14088. }
  14089. return d
  14090. },
  14091. JD: function(a) {
  14092. return a.Se() * this.ma - a.Wh() * this.ma * a.dd.x
  14093. },
  14094. gZ: function(a) {
  14095. return a.Se() * this.ma + a.Wh() * this.ma * a.dd.x
  14096. }
  14097. });
  14098. p = c.rB.prototype;
  14099. c.i(p, "opacityModifyRGB", p.Ue, p.ee);
  14100. c.i(p, "opacity", p.yf, p.Fa);
  14101. c.i(p, "cascadeOpacity", p.Pu, p.er);
  14102. c.i(p, "color", p.xf, p.Va);
  14103. c.i(p, "cascadeColor", p.Ou, p.dr);
  14104. c.i(p, "string", p.lm, p.q0);
  14105. c.i(p, "boundingWidth", p.FD, p.m7);
  14106. c.i(p, "textAlign", p.RY, p.h7);
  14107. c.rB.create = function(a, b, d, e, f) {
  14108. return new c.rB(a, b, d, e, f)
  14109. };
  14110. c.yH = function(a) {
  14111. a = a.charCodeAt(0);
  14112. 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
  14113. };
  14114. c.OS = function(a) {
  14115. var b = a.length;
  14116. if (!(0 >= b) && (b -= 1, c.yH(a[b]))) {
  14117. for (var d = b - 1; 0 <= d; --d) if (c.yH(a[d])) b = d;
  14118. else break;
  14119. c.m9(a, b)
  14120. }
  14121. };
  14122. c.m9 = function(a, b) {
  14123. var d = a.length;
  14124. b >= d || 0 > b || a.splice(b, d)
  14125. };
  14126. c.KY = {
  14127. mU: /info [^\n]*(\n|$)/gi,
  14128. xT: /common [^\n]*(\n|$)/gi,
  14129. mV: /page [^\n]*(\n|$)/gi,
  14130. wT: /char [^\n]*(\n|$)/gi,
  14131. uU: /kerning [^\n]*(\n|$)/gi,
  14132. oU: /\w+=[^ \r\n]+/gi,
  14133. nU: /^[\-]?\d+$/,
  14134. Dt: function(a) {
  14135. a = a.match(this.oU);
  14136. var b = {};
  14137. if (a) for (var d = 0, e = a.length; d < e; d++) {
  14138. var f = a[d],
  14139. g = f.indexOf("="),
  14140. h = f.substring(0, g),
  14141. f = f.substring(g + 1);
  14142. f.match(this.nU) ? f = parseInt(f) : '"' == f[0] && (f = f.substring(1, f.length - 1));
  14143. b[h] = f
  14144. }
  14145. return b
  14146. },
  14147. e6: function(a, b) {
  14148. var d = {};
  14149. this.Dt(a.match(this.mU)[0]);
  14150. var e = this.Dt(a.match(this.xT)[0]);
  14151. d.zG = e.lineHeight;
  14152. if (c.F === c.ea) {
  14153. var f = c.nq.wt;
  14154. (e.scaleW > f.width || e.scaleH > f.height) && c.log("cc.LabelBMFont._parseCommonArguments(): page can't be larger than supported")
  14155. }
  14156. 1 !== e.pages && c.log("cc.LabelBMFont._parseCommonArguments(): only supports 1 page");
  14157. e = this.Dt(a.match(this.mV)[0]);
  14158. 0 !== e.id && c.log("cc.LabelBMFont._parseImageFileName() : file could not be found");
  14159. d.rO = c.path.kq(b, e.file);
  14160. for (var g = a.match(this.wT), h = d.W2 = {}, e = 0, f = g.length; e < f; e++) {
  14161. var k = this.Dt(g[e]);
  14162. h[k.id] = {
  14163. rect: {
  14164. x: k.x,
  14165. y: k.y,
  14166. width: k.width,
  14167. height: k.height
  14168. },
  14169. VS: k.xoffset,
  14170. WS: k.yoffset,
  14171. u9: k.xadvance
  14172. }
  14173. }
  14174. g = d.Z4 = {};
  14175. if (h = a.match(this.uU)) for (e = 0, f = h.length; e < f; e++) k = this.Dt(h[e]), g[k.first << 16 | k.second & 65535] = k.amount;
  14176. return d
  14177. },
  14178. load: function(a, b, d, e) {
  14179. var f = this;
  14180. c.X.Pz(a, function(a, d) {
  14181. if (a) return e(a);
  14182. e(null, f.e6(d, b))
  14183. })
  14184. }
  14185. };
  14186. c.X.Tk(["fnt"], c.KY);
  14187. c.yJ = c.la.extend({
  14188. texture: null,
  14189. tq: !1,
  14190. Mj: !1,
  14191. q: null,
  14192. Xt: 0,
  14193. yD: 0,
  14194. jn: 0,
  14195. gE: 0,
  14196. Nl: 0,
  14197. HE: 0,
  14198. AE: null,
  14199. zE: null,
  14200. Ya: null,
  14201. gp: null,
  14202. Fg: null,
  14203. td: null,
  14204. hp: null,
  14205. Up: null,
  14206. ob: "MotionStreak",
  14207. ctor: function(a, b, d, e, f) {
  14208. c.la.prototype.ctor.call(this);
  14209. this.th = c.d(0, 0);
  14210. this.q = new c.cl(c.SRC_ALPHA, c.ONE_MINUS_SRC_ALPHA);
  14211. this.TF = c.m.createBuffer();
  14212. this.Mj = this.tq = !1;
  14213. this.texture = null;
  14214. this.HE = this.Nl = this.gE = this.jn = this.yD = this.Xt = 0;
  14215. this.Up = this.hp = this.td = this.Fg = this.gp = this.Ya = this.zE = this.AE = null;
  14216. void 0 !== f && this.x4(a, b, d, e, f)
  14217. },
  14218. Ua: function() {
  14219. return this.texture
  14220. },
  14221. zb: function(a) {
  14222. this.texture != a && (this.texture = a)
  14223. },
  14224. xi: function() {
  14225. return this.q
  14226. },
  14227. zf: function(a, b) {
  14228. void 0 === b ? this.q = a : (this.q.src = a, this.q.W = b)
  14229. },
  14230. yf: function() {
  14231. c.log("cc.MotionStreak.getOpacity has not been supported.");
  14232. return 0
  14233. },
  14234. Fa: function() {
  14235. c.log("cc.MotionStreak.setOpacity has not been supported.")
  14236. },
  14237. ee: function() {},
  14238. Ue: function() {
  14239. return !1
  14240. },
  14241. xb: function() {
  14242. c.t.prototype.xb.call(this);
  14243. this.td && c.m.deleteBuffer(this.td);
  14244. this.Up && c.m.deleteBuffer(this.Up);
  14245. this.hp && c.m.deleteBuffer(this.hp)
  14246. },
  14247. fia: function() {
  14248. return this.tq
  14249. },
  14250. lna: function(a) {
  14251. this.tq = a
  14252. },
  14253. ria: function() {
  14254. return this.Mj
  14255. },
  14256. joa: function(a) {
  14257. this.Mj = a
  14258. },
  14259. x4: function(a, b, d, e, f) {
  14260. if (!f) throw "cc.MotionStreak.initWithFade(): Invalid filename or texture";
  14261. "string" === typeof f && (f = c.Ka.Qc(f));
  14262. c.t.prototype.J.call(this, c.d(0, 0));
  14263. this.anchorY = this.anchorX = 0;
  14264. this.ignoreAnchor = !0;
  14265. this.Mj = !1;
  14266. this.tq = !0;
  14267. this.jn = -1 == b ? d / 5 : b;
  14268. this.jn *= this.jn;
  14269. this.Xt = d;
  14270. this.yD = 1 / a;
  14271. a = (0 | 60 * a) + 2;
  14272. this.Nl = 0;
  14273. this.zE = new Float32Array(a);
  14274. this.AE = new Float32Array(2 * a);
  14275. this.Ya = new Float32Array(4 * a);
  14276. this.Fg = new Float32Array(4 * a);
  14277. this.gp = new Uint8Array(8 * a);
  14278. this.gE = a;
  14279. a = c.m;
  14280. this.td = a.createBuffer();
  14281. this.Up = a.createBuffer();
  14282. this.hp = a.createBuffer();
  14283. this.q.src = a.SRC_ALPHA;
  14284. this.q.W = a.ONE_MINUS_SRC_ALPHA;
  14285. this.shaderProgram = c.ge.Dc(c.Zj);
  14286. this.texture = f;
  14287. this.color = e;
  14288. this.zR();
  14289. a.bindBuffer(a.ARRAY_BUFFER, this.td);
  14290. a.bufferData(a.ARRAY_BUFFER, this.Ya, a.DYNAMIC_DRAW);
  14291. a.bindBuffer(a.ARRAY_BUFFER, this.Up);
  14292. a.bufferData(a.ARRAY_BUFFER, this.Fg, a.DYNAMIC_DRAW);
  14293. a.bindBuffer(a.ARRAY_BUFFER, this.hp);
  14294. a.bufferData(a.ARRAY_BUFFER, this.gp, a.DYNAMIC_DRAW);
  14295. return !0
  14296. },
  14297. upa: function(a) {
  14298. this.color = a;
  14299. for (var b = this.gp, d = 0, e = 2 * this.Nl; d < e; d++) b[4 * d] = a.r, b[4 * d + 1] = a.g, b[4 * d + 2] = a.b
  14300. },
  14301. reset: function() {
  14302. this.Nl = 0
  14303. },
  14304. J: function(a, b) {
  14305. this.Mj = !0;
  14306. void 0 === b ? (this.th.x = a.x, this.th.y = a.y) : (this.th.x = a, this.th.y = b)
  14307. },
  14308. Se: function() {
  14309. return this.th.x
  14310. },
  14311. qI: function(a) {
  14312. this.th.x = a;
  14313. this.Mj || (this.Mj = !0)
  14314. },
  14315. Mg: function() {
  14316. return this.th.y
  14317. },
  14318. rI: function(a) {
  14319. this.th.y = a;
  14320. this.Mj || (this.Mj = !0)
  14321. },
  14322. Y: function(a) {
  14323. 1 >= this.Nl || !this.texture || !this.texture.Kc || (a = a || c.m, c.av(this), c.Xc(c.Sm), c.Ai(this.q.src, this.q.W), c.Te(this.texture), a.bindBuffer(a.ARRAY_BUFFER, this.td), a.bufferData(a.ARRAY_BUFFER, this.Ya, a.DYNAMIC_DRAW), a.vertexAttribPointer(c.Ab, 2, a.FLOAT, !1, 0, 0), a.bindBuffer(a.ARRAY_BUFFER, this.Up), a.bufferData(a.ARRAY_BUFFER, this.Fg, a.DYNAMIC_DRAW), a.vertexAttribPointer(c.Sd, 2, a.FLOAT, !1, 0, 0), a.bindBuffer(a.ARRAY_BUFFER, this.hp), a.bufferData(a.ARRAY_BUFFER, this.gp, a.DYNAMIC_DRAW), a.vertexAttribPointer(c.ef, 4, a.UNSIGNED_BYTE, !0, 0, 0), a.drawArrays(a.TRIANGLE_STRIP, 0, 2 * this.Nl), c.Lg++)
  14324. },
  14325. update: function(a) {
  14326. if (this.Mj) {
  14327. a *= this.yD;
  14328. var b, d, e, f, g = 0,
  14329. h = this.Nl,
  14330. k = this.zE,
  14331. m = this.AE,
  14332. n = this.Ya,
  14333. q = this.gp;
  14334. for (e = 0; e < h; e++) k[e] -= a, 0 >= k[e] ? g++ : (b = e - g, 0 < g ? (k[b] = k[e], m[2 * b] = m[2 * e], m[2 * b + 1] = m[2 * e + 1], f = 2 * e, d = 2 * b, n[2 * d] = n[2 * f], n[2 * d + 1] = n[2 * f + 1], n[2 * (d + 1)] = n[2 * (f + 1)], n[2 * (d + 1) + 1] = n[2 * (f + 1) + 1], f *= 4, d *= 4, q[d + 0] = q[f + 0], q[d + 1] = q[f + 1], q[d + 2] = q[f + 2], q[d + 4] = q[f + 4], q[d + 5] = q[f + 5], q[d + 6] = q[f + 6]) : d = 8 * b, b = 255 * k[b], q[d + 3] = b, q[d + 7] = b);
  14335. h -= g;
  14336. e = !0;
  14337. h >= this.gE ? e = !1 : 0 < h && (a = c.bR(c.d(m[2 * (h - 1)], m[2 * (h - 1) + 1]), this.th) < this.jn, d = 1 == h ? !1 : c.bR(c.d(m[2 * (h - 2)], m[2 * (h - 2) + 1]), this.th) < 2 * this.jn, a || d) && (e = !1);
  14338. e && (m[2 * h] = this.th.x, m[2 * h + 1] = this.th.y, k[h] = 1, k = 8 * h, e = this.Ma, q[k] = e.r, q[k + 1] = e.g, q[k + 2] = e.b, q[k + 4] = e.r, q[k + 5] = e.g, q[k + 6] = e.b, q[k + 3] = 255, q[k + 7] = 255, 0 < h && this.tq && (1 < h ? c.QI(m, this.Xt, this.Ya, h, 1) : c.QI(m, this.Xt, this.Ya, 0, 2)), h++);
  14339. this.tq || c.QI(m, this.Xt, this.Ya, 0, h);
  14340. if (h && this.HE != h) {
  14341. m = 1 / h;
  14342. q = this.Fg;
  14343. for (e = 0; e < h; e++) q[4 * e] = 0, q[4 * e + 1] = m * e, q[2 * (2 * e + 1)] = 1, q[2 * (2 * e + 1) + 1] = m * e;
  14344. this.HE = h
  14345. }
  14346. this.Nl = h
  14347. }
  14348. }
  14349. });
  14350. c.yJ.create = function(a, b, d, e, f) {
  14351. return new c.yJ(a, b, d, e, f)
  14352. };
  14353. c.AB = c.t.extend({
  14354. grid: null,
  14355. Ne: null,
  14356. Fu: function() {
  14357. return this.grid
  14358. },
  14359. E7: function(a) {
  14360. this.grid = a
  14361. },
  14362. wI: function(a) {
  14363. this.Ne = a
  14364. },
  14365. M: function(a, b, d) {
  14366. c.t.prototype.M.call(this, a, b, d);
  14367. a && !this.Ne && (this.Ne = a)
  14368. },
  14369. U: function() {
  14370. if (this.Ja) {
  14371. var a = c.F == c.ea,
  14372. b = this.grid;
  14373. a && b && b.vl && b.ru();
  14374. this.transform();
  14375. var d = this.u;
  14376. if (d && 0 < d.length) {
  14377. var e = d.length;
  14378. this.jd();
  14379. for (ua = 0; ua < e; ua++) {
  14380. var f = d[ua];
  14381. f && f.U()
  14382. }
  14383. }
  14384. a && b && b.vl && b.nu(this.Ne)
  14385. }
  14386. },
  14387. K0: function() {
  14388. var a = this.IF,
  14389. b = c.ic.top,
  14390. d = this.Ve(),
  14391. e = a.c;
  14392. e[0] = d.a;
  14393. e[4] = d.C;
  14394. e[12] = d.xa;
  14395. e[1] = d.b;
  14396. e[5] = d.D;
  14397. e[13] = d.ya;
  14398. e[14] = this.iu;
  14399. c.Dj(b, b, a);
  14400. null == this.ck || this.grid && this.grid.fg() || (a = this.lb.x, b = this.lb.y, 0 !== a || 0 !== b ? (c.ZB || (a |= 0, b |= 0), c.Lq(a, b), this.ck.$u(), c.Lq(-a, -b)) : this.ck.$u())
  14401. }
  14402. });
  14403. p = c.AB.prototype;
  14404. c.F === c.ea && (p.transform = p.K0);
  14405. c.i(p, "target", null, p.wI);
  14406. c.AB.create = function() {
  14407. return new c.AB
  14408. };
  14409. c.Ipa = function() {
  14410. return {
  14411. x: 0,
  14412. y: 0
  14413. }
  14414. };
  14415. c.Am = function(a, b) {
  14416. return {
  14417. x: a,
  14418. y: b
  14419. }
  14420. };
  14421. c.Ye = function(a, b) {
  14422. return c.Am(a.x + b.x, a.y + b.y)
  14423. };
  14424. c.Fc = function(a, b) {
  14425. return c.Am(a.x - b.x, a.y - b.y)
  14426. };
  14427. c.Pd = function(a, b) {
  14428. return c.Am(a.x * b, a.y * b)
  14429. };
  14430. c.sr = function(a) {
  14431. return c.Am(-a.y, a.x)
  14432. };
  14433. c.dh = function(a) {
  14434. return c.Am(-a.x, -a.y)
  14435. };
  14436. c.PS = function(a, b) {
  14437. return a.x * b.x + a.y * b.y
  14438. };
  14439. c.Hpa = function(a) {
  14440. return c.Am(Math.cos(a), Math.sin(a))
  14441. };
  14442. c.Nv = function(a) {
  14443. a = c.Dh(c.d(a.x, a.y));
  14444. return c.Am(a.x, a.y)
  14445. };
  14446. c.ff = function(a) {
  14447. return c.Am(a.x, a.y)
  14448. };
  14449. c.Qa = function(a) {
  14450. return {
  14451. da: a.x,
  14452. G: a.y
  14453. }
  14454. };
  14455. c.OT = c.t.extend({
  14456. kb: null,
  14457. q: null,
  14458. od: 1,
  14459. Mf: null,
  14460. ob: "DrawNodeCanvas",
  14461. ctor: function() {
  14462. c.t.prototype.ctor.call(this);
  14463. this.kb = [];
  14464. this.Mf = c.color(255, 255, 255, 255);
  14465. this.q = new c.cl(c.vc, c.uc);
  14466. this.K()
  14467. },
  14468. xi: function() {
  14469. return this.q
  14470. },
  14471. zf: function(a, b) {
  14472. void 0 === b ? (this.q.src = a.src, this.q.W = a.W) : (this.q.src = a, this.q.W = b)
  14473. },
  14474. nI: function(a) {
  14475. this.od = a
  14476. },
  14477. z3: function() {
  14478. return this.od
  14479. },
  14480. fr: function(a) {
  14481. var b = this.Mf;
  14482. b.r = a.r;
  14483. b.g = a.g;
  14484. b.b = a.b;
  14485. b.a = null == a.a ? 255 : a.a
  14486. },
  14487. ae: function() {
  14488. return c.color(this.Mf.r, this.Mf.g, this.Mf.b, this.Mf.a)
  14489. },
  14490. Eu: function(a, b, d, e, f) {
  14491. e = e || this.od;
  14492. f = f || this.ae();
  14493. null == f.a && (f.a = 255);
  14494. a = [a, c.d(b.x, a.y), b, c.d(a.x, b.y)];
  14495. b = new c.pl(c.zd.ll);
  14496. b.ze = a;
  14497. b.lineWidth = e;
  14498. b.Lk = f;
  14499. b.Az = !0;
  14500. b.nm = !0;
  14501. b.lineCap = "butt";
  14502. if (b.fillColor = d) null == d.a && (d.a = 255), b.wH = !0;
  14503. this.kb.push(b)
  14504. },
  14505. HG: function(a, b, d, e, f, g, h) {
  14506. g = g || this.od;
  14507. h = h || this.ae();
  14508. null == h.a && (h.a = 255);
  14509. for (var k = 2 * Math.PI / e, m = [], n = 0; n <= e; n++) {
  14510. var q = n * k;
  14511. m.push(c.d(b * Math.cos(q + d) + a.x, b * Math.sin(q + d) + a.y))
  14512. }
  14513. f && m.push(c.d(a.x, a.y));
  14514. a = new c.pl(c.zd.ll);
  14515. a.ze = m;
  14516. a.lineWidth = g;
  14517. a.Lk = h;
  14518. a.Az = !0;
  14519. a.nm = !0;
  14520. this.kb.push(a)
  14521. },
  14522. JG: function(a, b, d, e, f, g) {
  14523. f = f || this.od;
  14524. g = g || this.ae();
  14525. null == g.a && (g.a = 255);
  14526. for (var h = [], k = 0, m = 0; m < e; m++) h.push(c.d(Math.pow(1 - k, 2) * a.x + 2 * (1 - k) * k * b.x + k * k * d.x, Math.pow(1 - k, 2) * a.y + 2 * (1 - k) * k * b.y + k * k * d.y)), k += 1 / e;
  14527. h.push(c.d(d.x, d.y));
  14528. a = new c.pl(c.zd.ll);
  14529. a.ze = h;
  14530. a.lineWidth = f;
  14531. a.Lk = g;
  14532. a.nm = !0;
  14533. a.lineCap = "round";
  14534. this.kb.push(a)
  14535. },
  14536. IG: function(a, b, d, e, f, g, h) {
  14537. g = g || this.od;
  14538. h = h || this.ae();
  14539. null == h.a && (h.a = 255);
  14540. for (var k = [], m = 0, n = 0; n < f; n++) k.push(c.d(Math.pow(1 - m, 3) * a.x + 3 * Math.pow(1 - m, 2) * m * b.x + 3 * (1 - m) * m * m * d.x + m * m * m * e.x, Math.pow(1 - m, 3) * a.y + 3 * Math.pow(1 - m, 2) * m * b.y + 3 * (1 - m) * m * m * d.y + m * m * m * e.y)), m += 1 / f;
  14541. k.push(c.d(e.x, e.y));
  14542. a = new c.pl(c.zd.ll);
  14543. a.ze = k;
  14544. a.lineWidth = g;
  14545. a.Lk = h;
  14546. a.nm = !0;
  14547. a.lineCap = "round";
  14548. this.kb.push(a)
  14549. },
  14550. GG: function(a, b, d, e) {
  14551. this.Qn(a, 0.5, b, d, e)
  14552. },
  14553. Qn: function(a, b, d, e, f) {
  14554. e = e || this.od;
  14555. f = f || this.ae();
  14556. null == f.a && (f.a = 255);
  14557. for (var g = [], h, k, m = 1 / a.length, n = 0; n < d + 1; n++) k = n / d, 1 == k ? (h = a.length - 1, k = 1) : (h = 0 | k / m, k = (k - m * h) / m), h = c.tG(c.wd(a, h - 1), c.wd(a, h - 0), c.wd(a, h + 1), c.wd(a, h + 2), b, k), g.push(h);
  14558. a = new c.pl(c.zd.ll);
  14559. a.ze = g;
  14560. a.lineWidth = e;
  14561. a.Lk = f;
  14562. a.nm = !0;
  14563. a.lineCap = "round";
  14564. this.kb.push(a)
  14565. },
  14566. vi: function(a, b, d) {
  14567. d = d || this.ae();
  14568. null == d.a && (d.a = 255);
  14569. var e = new c.pl(c.zd.kK);
  14570. e.ze = [a];
  14571. e.lineWidth = b;
  14572. e.fillColor = d;
  14573. this.kb.push(e)
  14574. },
  14575. u2: function(a, b, d) {
  14576. if (a && 0 != a.length) {
  14577. d = d || this.ae();
  14578. null == d.a && (d.a = 255);
  14579. for (var e = 0, f = a.length; e < f; e++) this.vi(a[e], b, d)
  14580. }
  14581. },
  14582. im: function(a, b, d, e) {
  14583. d = d || this.od;
  14584. e = e || this.ae();
  14585. null == e.a && (e.a = 255);
  14586. var f = new c.pl(c.zd.ll);
  14587. f.ze = [a, b];
  14588. f.lineWidth = 2 * d;
  14589. f.Lk = e;
  14590. f.nm = !0;
  14591. f.lineCap = "round";
  14592. this.kb.push(f)
  14593. },
  14594. y2: function(a, b, d, e) {
  14595. d = d || this.od;
  14596. e = e || this.ae();
  14597. null == e.a && (e.a = 255);
  14598. var f = new c.pl(c.zd.ll);
  14599. f.ze = a;
  14600. f.fillColor = b;
  14601. f.lineWidth = d;
  14602. f.Lk = e;
  14603. f.Az = !0;
  14604. f.nm = !0;
  14605. f.lineCap = "round";
  14606. b && (f.wH = !0);
  14607. this.kb.push(f)
  14608. },
  14609. $d: function(a, b, d, e) {
  14610. for (var f = [], g = 0; g < a.length; g++) f.push(c.d(a[g].x, a[g].y));
  14611. return this.y2(f, b, d, e)
  14612. },
  14613. Y: function(a) {
  14614. a = a || c.m;
  14615. this.q && this.q.src == c.SRC_ALPHA && this.q.W == c.ONE && (a.globalCompositeOperation = "lighter");
  14616. for (var b = 0; b < this.kb.length; b++) {
  14617. var d = this.kb[b];
  14618. switch (d.type) {
  14619. case c.zd.kK:
  14620. this.DY(a, d);
  14621. break;
  14622. case c.zd.MW:
  14623. this.FY(a, d);
  14624. break;
  14625. case c.zd.ll:
  14626. this.EY(a, d)
  14627. }
  14628. }
  14629. },
  14630. DY: function(a, b) {
  14631. var d = b.fillColor,
  14632. e = b.ze[0],
  14633. f = b.lineWidth,
  14634. g = c.view.ma,
  14635. h = c.view.Na;
  14636. a.fillStyle = "rgba(" + (0 | d.r) + "," + (0 | d.g) + "," + (0 | d.b) + "," + d.a / 255 + ")";
  14637. a.beginPath();
  14638. a.arc(e.x * g, -e.y * h, f * g, 0, 2 * Math.PI, !1);
  14639. a.closePath();
  14640. a.fill()
  14641. },
  14642. FY: function(a, b) {
  14643. var d = b.Lk,
  14644. e = b.ze[0],
  14645. f = b.ze[1],
  14646. g = b.lineWidth,
  14647. h = b.lineCap,
  14648. k = c.view.ma,
  14649. m = c.view.Na;
  14650. a.strokeStyle = "rgba(" + (0 | d.r) + "," + (0 | d.g) + "," + (0 | d.b) + "," + d.a / 255 + ")";
  14651. a.lineWidth = g * k;
  14652. a.beginPath();
  14653. a.lineCap = h;
  14654. a.moveTo(e.x * k, -e.y * m);
  14655. a.lineTo(f.x * k, -f.y * m);
  14656. a.stroke()
  14657. },
  14658. EY: function(a, b) {
  14659. var d = b.ze,
  14660. e = b.lineCap,
  14661. f = b.fillColor,
  14662. g = b.lineWidth,
  14663. h = b.Lk,
  14664. k = b.Az,
  14665. m = b.wH,
  14666. n = b.nm;
  14667. if (null != d) {
  14668. var q = d[0],
  14669. r = c.view.ma,
  14670. t = c.view.Na;
  14671. a.lineCap = e;
  14672. f && (a.fillStyle = "rgba(" + (0 | f.r) + "," + (0 | f.g) + "," + (0 | f.b) + "," + f.a / 255 + ")");
  14673. g && (a.lineWidth = g * r);
  14674. h && (a.strokeStyle = "rgba(" + (0 | h.r) + "," + (0 | h.g) + "," + (0 | h.b) + "," + h.a / 255 + ")");
  14675. a.beginPath();
  14676. a.moveTo(q.x * r, -q.y * t);
  14677. e = 1;
  14678. for (f = d.length; e < f; e++) a.lineTo(d[e].x * r, -d[e].y * t);
  14679. k && a.closePath();
  14680. m && a.fill();
  14681. n && a.stroke()
  14682. }
  14683. },
  14684. clear: function() {
  14685. this.kb.length = 0
  14686. }
  14687. });
  14688. c.PT = c.t.extend({
  14689. ap: 0,
  14690. kb: null,
  14691. Ck: null,
  14692. YN: null,
  14693. XN: null,
  14694. od: 1,
  14695. Mf: null,
  14696. q: null,
  14697. qb: !1,
  14698. ob: "DrawNodeWebGL",
  14699. xi: function() {
  14700. return this.q
  14701. },
  14702. zf: function(a, b) {
  14703. void 0 === b ? (this.q.src = a.src, this.q.W = a.W) : (this.q.src = a, this.q.W = b)
  14704. },
  14705. ctor: function() {
  14706. c.t.prototype.ctor.call(this);
  14707. this.kb = [];
  14708. this.q = new c.cl(c.vc, c.uc);
  14709. this.Mf = c.color(255, 255, 255, 255);
  14710. this.K()
  14711. },
  14712. K: function() {
  14713. return c.t.prototype.K.call(this) ? (this.shaderProgram = c.ge.Dc(c.ZJ), this.ct(64), this.YN = c.m.createBuffer(), this.qb = !0) : !1
  14714. },
  14715. nI: function(a) {
  14716. this.od = a
  14717. },
  14718. z3: function() {
  14719. return this.od
  14720. },
  14721. fr: function(a) {
  14722. var b = this.Mf;
  14723. b.r = a.r;
  14724. b.g = a.g;
  14725. b.b = a.b;
  14726. b.a = a.a
  14727. },
  14728. ae: function() {
  14729. return c.color(this.Mf.r, this.Mf.g, this.Mf.b, this.Mf.a)
  14730. },
  14731. Eu: function(a, b, d, e, f) {
  14732. e = e || this.od;
  14733. f = f || this.ae();
  14734. null == f.a && (f.a = 255);
  14735. a = [a, c.d(b.x, a.y), b, c.d(a.x, b.y)];
  14736. null == d ? this.mx(a, e, f, !0) : this.$d(a, d, e, f)
  14737. },
  14738. HG: function(a, b, d, e, f, g, h) {
  14739. g = g || this.od;
  14740. h = h || this.ae();
  14741. null == h.a && (h.a = 255);
  14742. var k = 2 * Math.PI / e,
  14743. m = [],
  14744. n;
  14745. for (n = 0; n <= e; n++) {
  14746. var q = n * k;
  14747. m.push(c.d(b * Math.cos(q + d) + a.x, b * Math.sin(q + d) + a.y))
  14748. }
  14749. f && m.push(c.d(a.x, a.y));
  14750. g *= 0.5;
  14751. n = 0;
  14752. for (a = m.length; n < a - 1; n++) this.im(m[n], m[n + 1], g, h)
  14753. },
  14754. JG: function(a, b, d, e, f, g) {
  14755. f = f || this.od;
  14756. g = g || this.ae();
  14757. null == g.a && (g.a = 255);
  14758. for (var h = [], k = 0, m = 0; m < e; m++) h.push(c.d(Math.pow(1 - k, 2) * a.x + 2 * (1 - k) * k * b.x + k * k * d.x, Math.pow(1 - k, 2) * a.y + 2 * (1 - k) * k * b.y + k * k * d.y)), k += 1 / e;
  14759. h.push(c.d(d.x, d.y));
  14760. this.mx(h, f, g, !1)
  14761. },
  14762. IG: function(a, b, d, e, f, g, h) {
  14763. g = g || this.od;
  14764. h = h || this.ae();
  14765. null == h.a && (h.a = 255);
  14766. for (var k = [], m = 0, n = 0; n < f; n++) k.push(c.d(Math.pow(1 - m, 3) * a.x + 3 * Math.pow(1 - m, 2) * m * b.x + 3 * (1 - m) * m * m * d.x + m * m * m * e.x, Math.pow(1 - m, 3) * a.y + 3 * Math.pow(1 - m, 2) * m * b.y + 3 * (1 - m) * m * m * d.y + m * m * m * e.y)), m += 1 / f;
  14767. k.push(c.d(e.x, e.y));
  14768. this.mx(k, g, h, !1)
  14769. },
  14770. GG: function(a, b, d, e) {
  14771. this.Qn(a, 0.5, b, d, e)
  14772. },
  14773. Qn: function(a, b, d, e, f) {
  14774. e = e || this.od;
  14775. f = f || this.ae();
  14776. null == f.a && (f.a = 255);
  14777. for (var g = [], h, k, m = 1 / a.length, n = 0; n < d + 1; n++) k = n / d, 1 == k ? (h = a.length - 1, k = 1) : (h = 0 | k / m, k = (k - m * h) / m), h = c.tG(c.wd(a, h - 1), c.wd(a, h - 0), c.wd(a, h + 1), c.wd(a, h + 2), b, k), g.push(h);
  14778. e *= 0.5;
  14779. a = 0;
  14780. for (b = g.length; a < b - 1; a++) this.im(g[a], g[a + 1], e, f)
  14781. },
  14782. I_: function() {
  14783. var a = c.m;
  14784. c.Xc(c.Sm);
  14785. a.bindBuffer(a.ARRAY_BUFFER, this.YN);
  14786. this.qb && (a.bufferData(a.ARRAY_BUFFER, this.Ck, a.STREAM_DRAW), this.qb = !1);
  14787. var b = c.Rd.BYTES_PER_ELEMENT;
  14788. a.vertexAttribPointer(c.Ab, 2, a.FLOAT, !1, b, 0);
  14789. a.vertexAttribPointer(c.ef, 4, a.UNSIGNED_BYTE, !0, b, 8);
  14790. a.vertexAttribPointer(c.Sd, 2, a.FLOAT, !1, b, 12);
  14791. a.drawArrays(a.TRIANGLES, 0, 3 * this.kb.length);
  14792. c.Ng()
  14793. },
  14794. ct: function(a) {
  14795. var b = this.kb;
  14796. if (b.length + a > this.ap) {
  14797. var d = c.lc.BYTES_PER_ELEMENT;
  14798. this.ap += Math.max(this.ap, a);
  14799. if (null == b || 0 === b.length) this.kb = [], this.Ck = new ArrayBuffer(d * this.ap), this.XN = new Uint8Array(this.Ck);
  14800. else {
  14801. a = [];
  14802. for (var e = new ArrayBuffer(d * this.ap), f = 0; f < b.length; f++) a[f] = new c.lc(b[f].a, b[f].b, b[f].C, e, f * d);
  14803. this.XN = new Uint8Array(e);
  14804. this.Ck = e;
  14805. this.kb = a
  14806. }
  14807. }
  14808. },
  14809. Y: function() {
  14810. c.Ai(this.q.src, this.q.W);
  14811. this.Sb.$c();
  14812. this.Sb.zv();
  14813. this.I_()
  14814. },
  14815. vi: function(a, b, d) {
  14816. d = d || this.ae();
  14817. null == d.a && (d.a = 255);
  14818. var e = {
  14819. r: 0 | d.r,
  14820. g: 0 | d.g,
  14821. b: 0 | d.b,
  14822. a: 0 | d.a
  14823. };
  14824. d = {
  14825. j: {
  14826. x: a.x - b,
  14827. y: a.y - b
  14828. },
  14829. v: e,
  14830. n: {
  14831. da: -1,
  14832. G: -1
  14833. }
  14834. };
  14835. var f = {
  14836. j: {
  14837. x: a.x - b,
  14838. y: a.y + b
  14839. },
  14840. v: e,
  14841. n: {
  14842. da: -1,
  14843. G: 1
  14844. }
  14845. },
  14846. g = {
  14847. j: {
  14848. x: a.x + b,
  14849. y: a.y + b
  14850. },
  14851. v: e,
  14852. n: {
  14853. da: 1,
  14854. G: 1
  14855. }
  14856. };
  14857. a = {
  14858. j: {
  14859. x: a.x + b,
  14860. y: a.y - b
  14861. },
  14862. v: e,
  14863. n: {
  14864. da: 1,
  14865. G: -1
  14866. }
  14867. };
  14868. this.ct(6);
  14869. this.kb.push(new c.lc(d, f, g, this.Ck, this.kb.length * c.lc.BYTES_PER_ELEMENT));
  14870. this.kb.push(new c.lc(d, g, a, this.Ck, this.kb.length * c.lc.BYTES_PER_ELEMENT));
  14871. this.qb = !0
  14872. },
  14873. u2: function(a, b, d) {
  14874. if (a && 0 != a.length) {
  14875. d = d || this.ae();
  14876. null == d.a && (d.a = 255);
  14877. for (var e = 0, f = a.length; e < f; e++) this.vi(a[e], b, d)
  14878. }
  14879. },
  14880. im: function(a, b, d, e) {
  14881. e = e || this.ae();
  14882. null == e.a && (e.a = 255);
  14883. d = d || 0.5 * this.od;
  14884. this.ct(18);
  14885. e = {
  14886. r: 0 | e.r,
  14887. g: 0 | e.g,
  14888. b: 0 | e.b,
  14889. a: 0 | e.a
  14890. };
  14891. var f = c.ff(a);
  14892. b = c.ff(b);
  14893. a = c.Nv(c.sr(c.Fc(b, f)));
  14894. var g = c.sr(a),
  14895. h = c.Pd(a, d);
  14896. d = c.Pd(g, d);
  14897. var k = c.Ye(b, c.Fc(h, d)),
  14898. m = c.Fc(b, h),
  14899. n = c.Ye(b, h),
  14900. q = c.Fc(f, h),
  14901. r = c.Ye(f, h),
  14902. t = c.Fc(f, c.Fc(h, d)),
  14903. f = c.Ye(f, c.Ye(h, d)),
  14904. s = c.lc.BYTES_PER_ELEMENT,
  14905. u = this.Ck,
  14906. v = this.kb;
  14907. v.push(new c.lc({
  14908. j: c.Fc(b, c.Ye(h, d)),
  14909. v: e,
  14910. n: c.Qa(c.dh(c.Ye(a, g)))
  14911. }, {
  14912. j: k,
  14913. v: e,
  14914. n: c.Qa(c.Fc(a, g))
  14915. }, {
  14916. j: m,
  14917. v: e,
  14918. n: c.Qa(c.dh(a))
  14919. }, u, v.length * s));
  14920. v.push(new c.lc({
  14921. j: n,
  14922. v: e,
  14923. n: c.Qa(a)
  14924. }, {
  14925. j: k,
  14926. v: e,
  14927. n: c.Qa(c.Fc(a, g))
  14928. }, {
  14929. j: m,
  14930. v: e,
  14931. n: c.Qa(c.dh(a))
  14932. }, u, v.length * s));
  14933. v.push(new c.lc({
  14934. j: n,
  14935. v: e,
  14936. n: c.Qa(a)
  14937. }, {
  14938. j: q,
  14939. v: e,
  14940. n: c.Qa(c.dh(a))
  14941. }, {
  14942. j: m,
  14943. v: e,
  14944. n: c.Qa(c.dh(a))
  14945. }, u, v.length * s));
  14946. v.push(new c.lc({
  14947. j: n,
  14948. v: e,
  14949. n: c.Qa(a)
  14950. }, {
  14951. j: q,
  14952. v: e,
  14953. n: c.Qa(c.dh(a))
  14954. }, {
  14955. j: r,
  14956. v: e,
  14957. n: c.Qa(a)
  14958. }, u, v.length * s));
  14959. v.push(new c.lc({
  14960. j: t,
  14961. v: e,
  14962. n: c.Qa(c.Fc(g, a))
  14963. }, {
  14964. j: q,
  14965. v: e,
  14966. n: c.Qa(c.dh(a))
  14967. }, {
  14968. j: r,
  14969. v: e,
  14970. n: c.Qa(a)
  14971. }, u, v.length * s));
  14972. v.push(new c.lc({
  14973. j: t,
  14974. v: e,
  14975. n: c.Qa(c.Fc(g, a))
  14976. }, {
  14977. j: f,
  14978. v: e,
  14979. n: c.Qa(c.Ye(a, g))
  14980. }, {
  14981. j: r,
  14982. v: e,
  14983. n: c.Qa(a)
  14984. }, u, v.length * s));
  14985. this.qb = !0
  14986. },
  14987. $d: function(a, b, d, e) {
  14988. if (null == b) this.mx(a, d, e, !0);
  14989. else {
  14990. null == b.a && (b.a = 255);
  14991. null == e.a && (e.a = 255);
  14992. d = d || this.od;
  14993. d *= 0.5;
  14994. b = {
  14995. r: 0 | b.r,
  14996. g: 0 | b.g,
  14997. b: 0 | b.b,
  14998. a: 0 | b.a
  14999. };
  15000. e = {
  15001. r: 0 | e.r,
  15002. g: 0 | e.g,
  15003. b: 0 | e.b,
  15004. a: 0 | e.a
  15005. };
  15006. var f = [],
  15007. g, h, k, m, n = a.length;
  15008. for (g = 0; g < n; g++) {
  15009. h = c.ff(a[(g - 1 + n) % n]);
  15010. k = c.ff(a[g]);
  15011. m = c.ff(a[(g + 1) % n]);
  15012. var q = c.Nv(c.sr(c.Fc(k, h)));
  15013. k = c.Nv(c.sr(c.Fc(m, k)));
  15014. f[g] = {
  15015. offset: c.Pd(c.Ye(q, k), 1 / (c.PS(q, k) + 1)),
  15016. ha: k
  15017. }
  15018. }
  15019. q = 0 < d;
  15020. this.ct(3 * (3 * n - 2));
  15021. var r = c.lc.BYTES_PER_ELEMENT,
  15022. t = this.Ck,
  15023. s = this.kb,
  15024. u = !1 == q ? 0.5 : 0;
  15025. for (g = 0; g < n - 2; g++) h = c.Fc(c.ff(a[0]), c.Pd(f[0].offset, u)), k = c.Fc(c.ff(a[g + 1]), c.Pd(f[g + 1].offset, u)), m = c.Fc(c.ff(a[g + 2]), c.Pd(f[g + 2].offset, u)), s.push(new c.lc({
  15026. j: h,
  15027. v: b,
  15028. n: c.Qa({
  15029. x: 0,
  15030. y: 0
  15031. })
  15032. }, {
  15033. j: k,
  15034. v: b,
  15035. n: c.Qa({
  15036. x: 0,
  15037. y: 0
  15038. })
  15039. }, {
  15040. j: m,
  15041. v: b,
  15042. n: c.Qa({
  15043. x: 0,
  15044. y: 0
  15045. })
  15046. }, t, s.length * r));
  15047. for (g = 0; g < n; g++) {
  15048. u = (g + 1) % n;
  15049. h = c.ff(a[g]);
  15050. k = c.ff(a[u]);
  15051. m = f[g].ha;
  15052. var v = f[g].offset,
  15053. B = f[u].offset,
  15054. u = q ? c.Fc(h, c.Pd(v, d)) : c.Fc(h, c.Pd(v, 0.5)),
  15055. x = q ? c.Fc(k, c.Pd(B, d)) : c.Fc(k, c.Pd(B, 0.5));
  15056. h = q ? c.Ye(h, c.Pd(v, d)) : c.Ye(h, c.Pd(v, 0.5));
  15057. k = q ? c.Ye(k, c.Pd(B, d)) : c.Ye(k, c.Pd(B, 0.5));
  15058. q ? (s.push(new c.lc({
  15059. j: u,
  15060. v: e,
  15061. n: c.Qa(c.dh(m))
  15062. }, {
  15063. j: x,
  15064. v: e,
  15065. n: c.Qa(c.dh(m))
  15066. }, {
  15067. j: k,
  15068. v: e,
  15069. n: c.Qa(m)
  15070. }, t, s.length * r)), s.push(new c.lc({
  15071. j: u,
  15072. v: e,
  15073. n: c.Qa(c.dh(m))
  15074. }, {
  15075. j: h,
  15076. v: e,
  15077. n: c.Qa(m)
  15078. }, {
  15079. j: k,
  15080. v: e,
  15081. n: c.Qa(m)
  15082. }, t, s.length * r))) : (s.push(new c.lc({
  15083. j: u,
  15084. v: b,
  15085. n: c.Qa({
  15086. x: 0,
  15087. y: 0
  15088. })
  15089. }, {
  15090. j: x,
  15091. v: b,
  15092. n: c.Qa({
  15093. x: 0,
  15094. y: 0
  15095. })
  15096. }, {
  15097. j: k,
  15098. v: b,
  15099. n: c.Qa(m)
  15100. }, t, s.length * r)), s.push(new c.lc({
  15101. j: u,
  15102. v: b,
  15103. n: c.Qa({
  15104. x: 0,
  15105. y: 0
  15106. })
  15107. }, {
  15108. j: h,
  15109. v: b,
  15110. n: c.Qa(m)
  15111. }, {
  15112. j: k,
  15113. v: b,
  15114. n: c.Qa(m)
  15115. }, t, s.length * r)))
  15116. }
  15117. this.qb = !0
  15118. }
  15119. },
  15120. mx: function(a, b, d, e) {
  15121. b = b || this.od;
  15122. d = d || this.Mf;
  15123. null == d.a && (d.a = 255);
  15124. b *= 0.5;
  15125. if (!(0 >= b)) {
  15126. d = {
  15127. r: 0 | d.r,
  15128. g: 0 | d.g,
  15129. b: 0 | d.b,
  15130. a: 0 | d.a
  15131. };
  15132. var f = [],
  15133. g, h, k, m, n = a.length;
  15134. for (g = 0; g < n; g++) {
  15135. h = c.ff(a[(g - 1 + n) % n]);
  15136. k = c.ff(a[g]);
  15137. m = c.ff(a[(g + 1) % n]);
  15138. var q = c.Nv(c.sr(c.Fc(k, h)));
  15139. k = c.Nv(c.sr(c.Fc(m, k)));
  15140. f[g] = {
  15141. offset: c.Pd(c.Ye(q, k), 1 / (c.PS(q, k) + 1)),
  15142. ha: k
  15143. }
  15144. }
  15145. this.ct(3 * (3 * n - 2));
  15146. m = c.lc.BYTES_PER_ELEMENT;
  15147. var q = this.Ck,
  15148. r = this.kb;
  15149. e = e ? n : n - 1;
  15150. for (g = 0; g < e; g++) {
  15151. var t = (g + 1) % n;
  15152. h = c.ff(a[g]);
  15153. k = c.ff(a[t]);
  15154. var s = f[g].ha,
  15155. u = f[g].offset,
  15156. t = f[t].offset,
  15157. v = c.Fc(h, c.Pd(u, b));
  15158. h = c.Ye(h, c.Pd(u, b));
  15159. u = c.Ye(k, c.Pd(t, b));
  15160. r.push(new c.lc({
  15161. j: v,
  15162. v: d,
  15163. n: c.Qa(c.dh(s))
  15164. }, {
  15165. j: c.Fc(k, c.Pd(t, b)),
  15166. v: d,
  15167. n: c.Qa(c.dh(s))
  15168. }, {
  15169. j: u,
  15170. v: d,
  15171. n: c.Qa(s)
  15172. }, q, r.length * m));
  15173. r.push(new c.lc({
  15174. j: v,
  15175. v: d,
  15176. n: c.Qa(c.dh(s))
  15177. }, {
  15178. j: h,
  15179. v: d,
  15180. n: c.Qa(s)
  15181. }, {
  15182. j: u,
  15183. v: d,
  15184. n: c.Qa(s)
  15185. }, q, r.length * m))
  15186. }
  15187. this.qb = !0
  15188. }
  15189. },
  15190. clear: function() {
  15191. this.kb.length = 0;
  15192. this.qb = !0
  15193. }
  15194. });
  15195. c.zd = c.F == c.ea ? c.PT : c.OT;
  15196. c.zd.create = function() {
  15197. return new c.zd
  15198. };
  15199. c.pl = function(a) {
  15200. this.type = a;
  15201. this.fillColor = this.ze = null;
  15202. this.lineWidth = 0;
  15203. this.Lk = null;
  15204. this.lineCap = "butt";
  15205. this.nm = this.wH = this.Az = !1
  15206. };
  15207. c.zd.kK = 0;
  15208. c.zd.MW = 1;
  15209. c.zd.ll = 2;
  15210. c.Cv = -1;
  15211. c.UR = function(a, b) {
  15212. a.shaderProgram = b;
  15213. var d = a.children;
  15214. if (d) for (var e = 0; e < d.length; e++) c.UR(d[e], b)
  15215. };
  15216. c.kc = c.t.extend({
  15217. Gn: 0,
  15218. Ci: !1,
  15219. Fd: null,
  15220. yM: !1,
  15221. ctor: function(a) {
  15222. c.t.prototype.ctor.call(this);
  15223. this.Fd = null;
  15224. this.Gn = 0;
  15225. this.Ci = !1;
  15226. c.kc.prototype.K.call(this, a || null)
  15227. },
  15228. K: null,
  15229. ob: "ClippingNode",
  15230. DZ: function(a) {
  15231. this.Fd = a;
  15232. this.Gn = 1;
  15233. this.Ci = !1;
  15234. c.kc.WD = !0;
  15235. c.kc.WD && (c.Cv = c.m.getParameter(c.m.STENCIL_BITS), 0 >= c.Cv && c.log("Stencil buffer is not enabled."), c.kc.WD = !1);
  15236. return !0
  15237. },
  15238. CZ: function(a) {
  15239. this.Fd = a;
  15240. this.Gn = 1;
  15241. this.Ci = !1
  15242. },
  15243. ca: function() {
  15244. c.t.prototype.ca.call(this);
  15245. this.Fd.ca()
  15246. },
  15247. Ki: function() {
  15248. c.t.prototype.Ki.call(this);
  15249. this.Fd.Ki()
  15250. },
  15251. Og: function() {
  15252. this.Fd.Og();
  15253. c.t.prototype.Og.call(this)
  15254. },
  15255. xb: function() {
  15256. this.Fd.xb();
  15257. c.t.prototype.xb.call(this)
  15258. },
  15259. U: null,
  15260. ju: function(a) {
  15261. var b = a || c.m;
  15262. if (1 > c.Cv) c.t.prototype.U.call(this, a);
  15263. else if (this.Fd && this.Fd.visible) if (c.kc.tt = -1, c.kc.tt + 1 == c.Cv) c.kc.YF = !0, c.kc.YF && (c.log("Nesting more than " + c.Cv + "stencils is not supported. Everything will be drawn without stencil for this node and its childs."), c.kc.YF = !1), c.t.prototype.U.call(this, a);
  15264. else {
  15265. c.kc.tt++;
  15266. var d = 1 << c.kc.tt,
  15267. e = d | d - 1,
  15268. f = b.isEnabled(b.STENCIL_TEST),
  15269. g = b.getParameter(b.STENCIL_WRITEMASK),
  15270. h = b.getParameter(b.STENCIL_FUNC),
  15271. k = b.getParameter(b.STENCIL_REF),
  15272. m = b.getParameter(b.STENCIL_VALUE_MASK),
  15273. n = b.getParameter(b.STENCIL_FAIL),
  15274. q = b.getParameter(b.STENCIL_PASS_DEPTH_FAIL),
  15275. r = b.getParameter(b.STENCIL_PASS_DEPTH_PASS);
  15276. b.enable(b.STENCIL_TEST);
  15277. b.stencilMask(d);
  15278. var t = b.getParameter(b.DEPTH_WRITEMASK);
  15279. b.depthMask(!1);
  15280. b.stencilFunc(b.NEVER, d, d);
  15281. b.stencilOp(this.Ci ? b.REPLACE : b.ZERO, b.KEEP, b.KEEP);
  15282. c.jf.dP(c.d(0, 0), c.a6(), c.color(255, 255, 255, 255));
  15283. b.stencilFunc(b.NEVER, d, d);
  15284. b.stencilOp(this.Ci ? b.ZERO : b.REPLACE, b.KEEP, b.KEEP);
  15285. if (1 > this.Gn) {
  15286. var d = c.ge.Dc(c.yw),
  15287. s = b.getUniformLocation(d.$n(), c.SK);
  15288. c.gH(d.$n());
  15289. d.xv(s, this.Gn);
  15290. c.UR(this.Fd, d)
  15291. }
  15292. c.eo();
  15293. this.transform();
  15294. this.Fd.U();
  15295. c.co();
  15296. b.depthMask(t);
  15297. b.stencilFunc(b.EQUAL, e, e);
  15298. b.stencilOp(b.KEEP, b.KEEP, b.KEEP);
  15299. c.t.prototype.U.call(this, a);
  15300. b.stencilFunc(h, k, m);
  15301. b.stencilOp(n, q, r);
  15302. b.stencilMask(g);
  15303. f || b.disable(b.STENCIL_TEST);
  15304. c.kc.tt--
  15305. } else this.Ci && c.t.prototype.U.call(this, a)
  15306. },
  15307. Cn: function(a) {
  15308. if (this.Fd && this.Fd.visible) {
  15309. a = a || c.m;
  15310. var b = a.canvas;
  15311. if (this.bD() || this.Fd instanceof c.P) {
  15312. var d = c.kc.sZ();
  15313. d.width = b.width;
  15314. d.height = b.height;
  15315. d.getContext("2d").drawImage(b, 0, 0);
  15316. a.save();
  15317. c.t.prototype.U.call(this, a);
  15318. a.globalCompositeOperation = this.Ci ? "destination-out" : "destination-in";
  15319. this.transform(a);
  15320. this.Fd.U();
  15321. a.restore();
  15322. a.save();
  15323. a.setTransform(1, 0, 0, 1, 0, 0);
  15324. a.globalCompositeOperation = "destination-over";
  15325. a.drawImage(d, 0, 0)
  15326. } else {
  15327. var d = this.u,
  15328. e;
  15329. a.save();
  15330. this.transform(a);
  15331. this.Fd.U(a);
  15332. this.Ci && (a.save(), a.setTransform(1, 0, 0, 1, 0, 0), a.moveTo(0, 0), a.lineTo(0, b.height), a.lineTo(b.width, b.height), a.lineTo(b.width, 0), a.lineTo(0, 0), a.restore());
  15333. a.clip();
  15334. this.bD(!0);
  15335. var f = d.length;
  15336. if (0 < f) {
  15337. this.jd();
  15338. for (b = 0; b < f; b++) if (e = d[b], 0 > e.Jb) e.U(a);
  15339. else break;
  15340. for (this.Y(a); b < f; b++) d[b].U(a)
  15341. } else this.Y(a);
  15342. this.bD(!1)
  15343. }
  15344. a.restore()
  15345. } else this.Ci && c.t.prototype.U.call(this, a)
  15346. },
  15347. a4: function() {
  15348. return this.Fd
  15349. },
  15350. vI: null,
  15351. o0: function(a) {
  15352. this.Fd = a
  15353. },
  15354. n0: function(a) {
  15355. this.Fd = a;
  15356. var b = c.m;
  15357. !(a instanceof c.P) && a instanceof c.zd && (a.Y = function() {
  15358. var d = c.view.ma,
  15359. e = c.view.Na;
  15360. b.beginPath();
  15361. for (var f = 0; f < a.kb.length; f++) {
  15362. var g = a.kb[f].ze,
  15363. h = g[0];
  15364. b.moveTo(h.x * d, -h.y * e);
  15365. for (var h = 1, k = g.length; h < k; h++) b.lineTo(g[h].x * d, -g[h].y * e)
  15366. }
  15367. })
  15368. },
  15369. Yea: function() {
  15370. return this.Gn
  15371. },
  15372. Nma: function(a) {
  15373. this.Gn = a
  15374. },
  15375. gia: function() {
  15376. return this.Ci
  15377. },
  15378. xna: function(a) {
  15379. this.Ci = a
  15380. },
  15381. bD: function(a) {
  15382. if (!0 === a || !1 === a) c.kc.prototype.yM = a;
  15383. return c.kc.prototype.yM
  15384. }
  15385. });
  15386. p = c.kc.prototype;
  15387. c.F === c.ea ? (p.K = p.DZ, p.U = p.ju, p.vI = p.o0) : (p.K = p.CZ, p.U = p.Cn, p.vI = p.n0);
  15388. c.i(p, "stencil", p.a4, p.vI);
  15389. c.kc.WD = null;
  15390. c.kc.YF = null;
  15391. c.kc.tt = null;
  15392. c.kc.PN = null;
  15393. c.kc.sZ = function() {
  15394. return c.kc.PN || (c.kc.PN = document.createElement("canvas"))
  15395. };
  15396. c.kc.create = function(a) {
  15397. return new c.kc(a)
  15398. };
  15399. c.Go = c.qa.extend({
  15400. vl: !1,
  15401. nj: 0,
  15402. aa: null,
  15403. O: null,
  15404. vh: null,
  15405. xp: null,
  15406. en: !1,
  15407. Sb: null,
  15408. mD: 0,
  15409. qb: !1,
  15410. ctor: function(a, b, d) {
  15411. c.fD();
  15412. this.vl = !1;
  15413. this.nj = 0;
  15414. this.O = this.aa = null;
  15415. this.vh = c.d(0, 0);
  15416. this.xp = null;
  15417. this.en = !1;
  15418. this.Sb = null;
  15419. this.mD = 0;
  15420. this.qb = !1;
  15421. void 0 !== a && this.wz(a, b, d)
  15422. },
  15423. fg: function() {
  15424. return this.vl
  15425. },
  15426. setActive: function(a) {
  15427. this.vl = a;
  15428. a || (a = c.L, a.so(a.vj()))
  15429. },
  15430. Sga: function() {
  15431. return this.nj
  15432. },
  15433. W7: function(a) {
  15434. this.nj = a
  15435. },
  15436. s3: function() {
  15437. return c.size(this.aa.width, this.aa.height)
  15438. },
  15439. tna: function(a) {
  15440. this.aa.width = parseInt(a.width);
  15441. this.aa.height = parseInt(a.height)
  15442. },
  15443. aH: function() {
  15444. return c.d(this.vh.x, this.vh.y)
  15445. },
  15446. koa: function(a) {
  15447. this.vh.x = a.x;
  15448. this.vh.y = a.y
  15449. },
  15450. uia: function() {
  15451. return this.en
  15452. },
  15453. roa: function(a) {
  15454. this.en != a && (this.en = a, this.Ry())
  15455. },
  15456. wz: function(a, b, d) {
  15457. if (!b) {
  15458. var e = c.L.Iu(),
  15459. f = c.fl(e.width),
  15460. g = c.fl(e.height),
  15461. h = new Uint8Array(f * g * 4);
  15462. if (!h) return c.log("cocos2d: CCGrid: not enough memory."), !1;
  15463. b = new c.ia;
  15464. b.Mu(h, c.ia.Yj, f, g, e);
  15465. if (!b) return c.log("cocos2d: CCGrid: error creating texture"), !1
  15466. }
  15467. this.vl = !1;
  15468. this.nj = 0;
  15469. this.aa = a;
  15470. this.O = b;
  15471. this.en = d || !1;
  15472. this.vh.x = this.O.width / a.width;
  15473. this.vh.y = this.O.height / a.height;
  15474. this.xp = new c.fU;
  15475. if (!this.xp) return !1;
  15476. this.xp.l4(this.O);
  15477. this.Sb = c.ge.Dc(c.ns);
  15478. this.Ry();
  15479. return !0
  15480. },
  15481. ru: function() {
  15482. this.mD = c.L.vj();
  15483. this.g7();
  15484. this.xp.F1(this.O)
  15485. },
  15486. nu: function(a) {
  15487. this.xp.j1(this.O);
  15488. c.L.so(this.mD);
  15489. if (a.Yn().Qu()) {
  15490. var b = a.lb;
  15491. c.Lq(b.x, b.y);
  15492. a.Yn().$u();
  15493. c.Lq(-b.x, -b.y)
  15494. }
  15495. c.Te(this.O);
  15496. this.jG()
  15497. },
  15498. jG: function() {
  15499. c.log("cc.GridBase.blit(): Shall be overridden in subclass.")
  15500. },
  15501. cI: function() {
  15502. c.log("cc.GridBase.reuse(): Shall be overridden in subclass.")
  15503. },
  15504. Ry: function() {
  15505. c.log("cc.GridBase.calculateVertexPoints(): Shall be overridden in subclass.")
  15506. },
  15507. g7: function() {
  15508. var a = c.L.Iu();
  15509. c.m.viewport(0, 0, a.width, a.height);
  15510. c.Cj(c.Wj);
  15511. c.Jq();
  15512. var b = new c.ga;
  15513. c.BH(b, 0, a.width, 0, a.height, -1, 1);
  15514. c.Kq(b);
  15515. c.Cj(c.Vj);
  15516. c.Jq();
  15517. c.VR()
  15518. }
  15519. });
  15520. c.Go.create = function(a, b, d) {
  15521. return new c.Go(a, b, d)
  15522. };
  15523. c.mB = c.Go.extend({
  15524. xh: null,
  15525. Ya: null,
  15526. nk: null,
  15527. sb: null,
  15528. Eg: null,
  15529. td: null,
  15530. xg: null,
  15531. ctor: function(a, b, d) {
  15532. c.Go.prototype.ctor.call(this);
  15533. this.xg = this.td = this.Eg = this.sb = this.nk = this.Ya = this.xh = null;
  15534. void 0 !== a && this.wz(a, b, d)
  15535. },
  15536. xo: function(a) {
  15537. a.x === (0 | a.x) && a.y === (0 | a.y) || c.log("cc.Grid3D.vertex() : Numbers must be integers");
  15538. a = 0 | 3 * (a.x * (this.aa.height + 1) + a.y);
  15539. var b = this.Ya;
  15540. return new c.xc(b[a], b[a + 1], b[a + 2])
  15541. },
  15542. Zc: function(a) {
  15543. a.x === (0 | a.x) && a.y === (0 | a.y) || c.log("cc.Grid3D.originalVertex() : Numbers must be integers");
  15544. a = 0 | 3 * (a.x * (this.aa.height + 1) + a.y);
  15545. var b = this.nk;
  15546. return new c.xc(b[a], b[a + 1], b[a + 2])
  15547. },
  15548. fe: function(a, b) {
  15549. a.x === (0 | a.x) && a.y === (0 | a.y) || c.log("cc.Grid3D.setVertex() : Numbers must be integers");
  15550. var d = 0 | 3 * (a.x * (this.aa.height + 1) + a.y),
  15551. e = this.Ya;
  15552. e[d] = b.x;
  15553. e[d + 1] = b.y;
  15554. e[d + 2] = b.z;
  15555. this.qb = !0
  15556. },
  15557. jG: function() {
  15558. var a = this.aa.width * this.aa.height;
  15559. c.Xc(c.ke | c.Ro);
  15560. this.Sb.$c();
  15561. this.Sb.zv();
  15562. var b = c.m,
  15563. d = this.qb;
  15564. b.bindBuffer(b.ARRAY_BUFFER, this.td);
  15565. d && b.bufferData(b.ARRAY_BUFFER, this.Ya, b.DYNAMIC_DRAW);
  15566. b.vertexAttribPointer(c.Ab, 3, b.FLOAT, !1, 0, 0);
  15567. b.bindBuffer(b.ARRAY_BUFFER, this.Eg);
  15568. d && b.bufferData(b.ARRAY_BUFFER, this.xh, b.DYNAMIC_DRAW);
  15569. b.vertexAttribPointer(c.Sd, 2, b.FLOAT, !1, 0, 0);
  15570. b.bindBuffer(b.ELEMENT_ARRAY_BUFFER, this.xg);
  15571. d && b.bufferData(b.ELEMENT_ARRAY_BUFFER, this.sb, b.STATIC_DRAW);
  15572. b.drawElements(b.TRIANGLES, 6 * a, b.UNSIGNED_SHORT, 0);
  15573. d && (this.qb = !1);
  15574. c.Ng()
  15575. },
  15576. cI: function() {
  15577. if (0 < this.nj) {
  15578. for (var a = this.nk, b = this.Ya, d = 0, e = this.Ya.length; d < e; d++) a[d] = b[d];
  15579. --this.nj
  15580. }
  15581. },
  15582. Ry: function() {
  15583. var a = c.m,
  15584. b = this.O.pixelsWidth,
  15585. d = this.O.pixelsHeight,
  15586. e = this.O.S.height,
  15587. f = this.aa,
  15588. g = (f.width + 1) * (f.height + 1);
  15589. this.Ya = new Float32Array(3 * g);
  15590. this.xh = new Float32Array(2 * g);
  15591. this.sb = new Uint16Array(f.width * f.height * 6);
  15592. this.td && a.deleteBuffer(this.td);
  15593. this.td = a.createBuffer();
  15594. this.Eg && a.deleteBuffer(this.Eg);
  15595. this.Eg = a.createBuffer();
  15596. this.xg && a.deleteBuffer(this.xg);
  15597. this.xg = a.createBuffer();
  15598. for (var h, k, m = this.sb, n = this.xh, q = this.en, r = this.Ya, g = 0; g < f.width; ++g) for (h = 0; h < f.height; ++h) {
  15599. var t = h * f.width + g;
  15600. k = g * this.vh.x;
  15601. var s = k + this.vh.x,
  15602. u = h * this.vh.y,
  15603. v = u + this.vh.y,
  15604. B = g * (f.height + 1) + h,
  15605. x = (g + 1) * (f.height + 1) + h,
  15606. F = (g + 1) * (f.height + 1) + (h + 1),
  15607. I = g * (f.height + 1) + (h + 1);
  15608. m[6 * t] = B;
  15609. m[6 * t + 1] = x;
  15610. m[6 * t + 2] = I;
  15611. m[6 * t + 3] = x;
  15612. m[6 * t + 4] = F;
  15613. m[6 * t + 5] = I;
  15614. var t = [3 * B, 3 * x, 3 * F, 3 * I],
  15615. y = [{
  15616. x: k,
  15617. y: u,
  15618. z: 0
  15619. }, {
  15620. x: s,
  15621. y: u,
  15622. z: 0
  15623. }, {
  15624. x: s,
  15625. y: v,
  15626. z: 0
  15627. }, {
  15628. x: k,
  15629. y: v,
  15630. z: 0
  15631. }],
  15632. B = [2 * B, 2 * x, 2 * F, 2 * I],
  15633. s = [c.d(k, u), c.d(s, u), c.d(s, v), c.d(k, v)];
  15634. for (k = 0; 4 > k; ++k) r[t[k]] = y[k].x, r[t[k] + 1] = y[k].y, r[t[k] + 2] = y[k].z, n[B[k]] = s[k].x / b, n[B[k] + 1] = q ? (e - s[k].y) / d : s[k].y / d
  15635. }
  15636. this.nk = new Float32Array(this.Ya);
  15637. a.bindBuffer(a.ARRAY_BUFFER, this.td);
  15638. a.bufferData(a.ARRAY_BUFFER, this.Ya, a.DYNAMIC_DRAW);
  15639. a.bindBuffer(a.ARRAY_BUFFER, this.Eg);
  15640. a.bufferData(a.ARRAY_BUFFER, this.xh, a.DYNAMIC_DRAW);
  15641. a.bindBuffer(a.ELEMENT_ARRAY_BUFFER, this.xg);
  15642. a.bufferData(a.ELEMENT_ARRAY_BUFFER, this.sb, a.STATIC_DRAW);
  15643. this.qb = !0
  15644. }
  15645. });
  15646. c.mB.create = function(a, b, d) {
  15647. return new c.mB(a, b, d)
  15648. };
  15649. c.oC = c.Go.extend({
  15650. xh: null,
  15651. Ya: null,
  15652. nk: null,
  15653. sb: null,
  15654. Eg: null,
  15655. td: null,
  15656. xg: null,
  15657. ctor: function(a, b, d) {
  15658. c.Go.prototype.ctor.call(this);
  15659. this.xg = this.td = this.Eg = this.sb = this.nk = this.Ya = this.xh = null;
  15660. void 0 !== a && this.wz(a, b, d)
  15661. },
  15662. yS: function(a) {
  15663. a.x === (0 | a.x) && a.y === (0 | a.y) || c.log("cc.TiledGrid3D.tile() : Numbers must be integers");
  15664. a = 12 * (this.aa.height * a.x + a.y);
  15665. var b = this.Ya;
  15666. return new c.uw(new c.xc(b[a], b[a + 1], b[a + 2]), new c.xc(b[a + 3], b[a + 4], b[a + 5]), new c.xc(b[a + 6], b[a + 7], b[a + 8]), new c.xc(b[a + 9], b[a + 10], b[a + 11]))
  15667. },
  15668. Pg: function(a) {
  15669. a.x === (0 | a.x) && a.y === (0 | a.y) || c.log("cc.TiledGrid3D.originalTile() : Numbers must be integers");
  15670. a = 12 * (this.aa.height * a.x + a.y);
  15671. var b = this.nk;
  15672. return new c.uw(new c.xc(b[a], b[a + 1], b[a + 2]), new c.xc(b[a + 3], b[a + 4], b[a + 5]), new c.xc(b[a + 6], b[a + 7], b[a + 8]), new c.xc(b[a + 9], b[a + 10], b[a + 11]))
  15673. },
  15674. Df: function(a, b) {
  15675. a.x === (0 | a.x) && a.y === (0 | a.y) || c.log("cc.TiledGrid3D.setTile() : Numbers must be integers");
  15676. var d = 12 * (this.aa.height * a.x + a.y),
  15677. e = this.Ya;
  15678. e[d] = b.I.x;
  15679. e[d + 1] = b.I.y;
  15680. e[d + 2] = b.I.z;
  15681. e[d + 3] = b.R.x;
  15682. e[d + 4] = b.R.y;
  15683. e[d + 5] = b.R.z;
  15684. e[d + 6] = b.Q.x;
  15685. e[d + 7] = b.Q.y;
  15686. e[d + 8] = b.Q.z;
  15687. e[d + 9] = b.N.x;
  15688. e[d + 10] = b.N.y;
  15689. e[d + 11] = b.N.z;
  15690. this.qb = !0
  15691. },
  15692. jG: function() {
  15693. var a = this.aa.width * this.aa.height;
  15694. this.Sb.$c();
  15695. this.Sb.zv();
  15696. var b = c.m,
  15697. d = this.qb;
  15698. c.Xc(c.ke | c.Ro);
  15699. b.bindBuffer(b.ARRAY_BUFFER, this.td);
  15700. d && b.bufferData(b.ARRAY_BUFFER, this.Ya, b.DYNAMIC_DRAW);
  15701. b.vertexAttribPointer(c.Ab, 3, b.FLOAT, !1, 0, this.Ya);
  15702. b.bindBuffer(b.ARRAY_BUFFER, this.Eg);
  15703. d && b.bufferData(b.ARRAY_BUFFER, this.xh, b.DYNAMIC_DRAW);
  15704. b.vertexAttribPointer(c.Sd, 2, b.FLOAT, !1, 0, this.xh);
  15705. b.bindBuffer(b.ELEMENT_ARRAY_BUFFER, this.xg);
  15706. d && b.bufferData(b.ELEMENT_ARRAY_BUFFER, this.sb, b.STATIC_DRAW);
  15707. b.drawElements(b.TRIANGLES, 6 * a, b.UNSIGNED_SHORT, 0);
  15708. d && (this.qb = !1);
  15709. c.Ng()
  15710. },
  15711. cI: function() {
  15712. if (0 < this.nj) {
  15713. for (var a = this.Ya, b = this.nk, d = 0; d < a.length; d++) b[d] = a[d];
  15714. --this.nj
  15715. }
  15716. },
  15717. Ry: function() {
  15718. var a = this.O.pixelsWidth,
  15719. b = this.O.pixelsHeight,
  15720. d = this.O.S.height,
  15721. e = this.aa,
  15722. f = e.width * e.height;
  15723. this.Ya = new Float32Array(12 * f);
  15724. this.xh = new Float32Array(8 * f);
  15725. this.sb = new Uint16Array(6 * f);
  15726. var g = c.m;
  15727. this.td && g.deleteBuffer(this.td);
  15728. this.td = g.createBuffer();
  15729. this.Eg && g.deleteBuffer(this.Eg);
  15730. this.Eg = g.createBuffer();
  15731. this.xg && g.deleteBuffer(this.xg);
  15732. this.xg = g.createBuffer();
  15733. var h, k, m = 0,
  15734. n = this.vh,
  15735. q = this.Ya,
  15736. r = this.xh,
  15737. t = this.en;
  15738. for (h = 0; h < e.width; h++) for (k = 0; k < e.height; k++) {
  15739. var s = h * n.x,
  15740. u = s + n.x,
  15741. v = k * n.y,
  15742. B = v + n.y;
  15743. q[12 * m] = s;
  15744. q[12 * m + 1] = v;
  15745. q[12 * m + 2] = 0;
  15746. q[12 * m + 3] = u;
  15747. q[12 * m + 4] = v;
  15748. q[12 * m + 5] = 0;
  15749. q[12 * m + 6] = s;
  15750. q[12 * m + 7] = B;
  15751. q[12 * m + 8] = 0;
  15752. q[12 * m + 9] = u;
  15753. q[12 * m + 10] = B;
  15754. q[12 * m + 11] = 0;
  15755. var x = v,
  15756. F = B;
  15757. t && (x = d - v, F = d - B);
  15758. r[8 * m] = s / a;
  15759. r[8 * m + 1] = x / b;
  15760. r[8 * m + 2] = u / a;
  15761. r[8 * m + 3] = x / b;
  15762. r[8 * m + 4] = s / a;
  15763. r[8 * m + 5] = F / b;
  15764. r[8 * m + 6] = u / a;
  15765. r[8 * m + 7] = F / b;
  15766. m++
  15767. }
  15768. a = this.sb;
  15769. 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;
  15770. this.nk = new Float32Array(this.Ya);
  15771. g.bindBuffer(g.ARRAY_BUFFER, this.td);
  15772. g.bufferData(g.ARRAY_BUFFER, this.Ya, g.DYNAMIC_DRAW);
  15773. g.bindBuffer(g.ARRAY_BUFFER, this.Eg);
  15774. g.bufferData(g.ARRAY_BUFFER, this.xh, g.DYNAMIC_DRAW);
  15775. g.bindBuffer(g.ELEMENT_ARRAY_BUFFER, this.xg);
  15776. g.bufferData(g.ELEMENT_ARRAY_BUFFER, this.sb, g.DYNAMIC_DRAW);
  15777. this.qb = !0
  15778. }
  15779. });
  15780. c.oC.create = function(a, b, d) {
  15781. return new c.oC(a, b, d)
  15782. };
  15783. c.fU = c.qa.extend({
  15784. Jw: null,
  15785. ij: null,
  15786. ZM: null,
  15787. wp: null,
  15788. ctor: function() {
  15789. c.fD();
  15790. this.wp = c.m;
  15791. this.ZM = [0, 0, 0, 0];
  15792. this.ij = null;
  15793. this.Jw = this.wp.createFramebuffer()
  15794. },
  15795. l4: function(a) {
  15796. var b = this.wp;
  15797. this.ij = b.getParameter(b.FRAMEBUFFER_BINDING);
  15798. b.bindFramebuffer(b.FRAMEBUFFER, this.Jw);
  15799. b.framebufferTexture2D(b.FRAMEBUFFER, b.COLOR_ATTACHMENT0, b.TEXTURE_2D, a.te, 0);
  15800. b.checkFramebufferStatus(b.FRAMEBUFFER) != b.FRAMEBUFFER_COMPLETE && c.log("Frame Grabber: could not attach texture to frmaebuffer");
  15801. b.bindFramebuffer(b.FRAMEBUFFER, this.ij)
  15802. },
  15803. F1: function() {
  15804. var a = this.wp;
  15805. this.ij = a.getParameter(a.FRAMEBUFFER_BINDING);
  15806. a.bindFramebuffer(a.FRAMEBUFFER, this.Jw);
  15807. this.ZM = a.getParameter(a.COLOR_CLEAR_VALUE);
  15808. a.clearColor(0, 0, 0, 0);
  15809. a.clear(a.COLOR_BUFFER_BIT | a.DEPTH_BUFFER_BIT)
  15810. },
  15811. j1: function() {
  15812. var a = this.wp;
  15813. a.bindFramebuffer(a.FRAMEBUFFER, this.ij);
  15814. a.colorMask(!0, !0, !0, !0)
  15815. },
  15816. zda: function() {
  15817. this.wp.deleteFramebuffer(this.Jw)
  15818. }
  15819. });
  15820. c.zo = -1;
  15821. c.yd = c.qa.extend({
  15822. originalTarget: null,
  15823. target: null,
  15824. tag: c.zo,
  15825. ctor: function() {
  15826. this.target = this.originalTarget = null;
  15827. this.tag = c.zo
  15828. },
  15829. copy: function() {
  15830. c.log("copy is deprecated. Please use clone instead.");
  15831. return this.k()
  15832. },
  15833. k: function() {
  15834. var a = new c.yd;
  15835. a.originalTarget = null;
  15836. a.target = null;
  15837. a.tag = this.tag;
  15838. return a
  15839. },
  15840. Bh: function() {
  15841. return !0
  15842. },
  15843. B: function(a) {
  15844. this.target = this.originalTarget = a
  15845. },
  15846. stop: function() {
  15847. this.target = null
  15848. },
  15849. step: function() {
  15850. c.log("[Action step]. override me")
  15851. },
  15852. update: function() {
  15853. c.log("[Action update]. override me")
  15854. },
  15855. jha: function() {
  15856. return this.target
  15857. },
  15858. wI: function(a) {
  15859. this.target = a
  15860. },
  15861. Bga: function() {
  15862. return this.originalTarget
  15863. },
  15864. Sna: function(a) {
  15865. this.originalTarget = a
  15866. },
  15867. Dq: function() {
  15868. return this.tag
  15869. },
  15870. to: function(a) {
  15871. this.tag = a
  15872. },
  15873. nA: function() {},
  15874. Lj: function() {}
  15875. });
  15876. c.yd.create = function() {
  15877. return new c.yd
  15878. };
  15879. c.Uj = c.yd.extend({
  15880. p: 0,
  15881. ctor: function() {
  15882. c.yd.prototype.ctor.call(this);
  15883. this.p = 0
  15884. },
  15885. zq: function() {
  15886. return this.p * (this.rc || 1)
  15887. },
  15888. Tg: function(a) {
  15889. this.p = a
  15890. },
  15891. reverse: function() {
  15892. c.log("cocos2d: FiniteTimeAction#reverse: Implement me");
  15893. return null
  15894. },
  15895. k: function() {
  15896. return new c.Uj
  15897. }
  15898. });
  15899. c.rs = c.yd.extend({
  15900. Me: 0,
  15901. tb: null,
  15902. ctor: function(a, b) {
  15903. c.yd.prototype.ctor.call(this);
  15904. this.Me = 0;
  15905. this.tb = null;
  15906. a && this.fa(a, b)
  15907. },
  15908. gz: function() {
  15909. return this.Me
  15910. },
  15911. Bf: function(a) {
  15912. this.Me = a
  15913. },
  15914. fa: function(a, b) {
  15915. if (!a) throw "cc.Speed.initWithAction(): action must be non nil";
  15916. this.tb = a;
  15917. this.Me = b;
  15918. return !0
  15919. },
  15920. k: function() {
  15921. var a = new c.rs;
  15922. a.fa(this.tb.k(), this.Me);
  15923. return a
  15924. },
  15925. B: function(a) {
  15926. c.yd.prototype.B.call(this, a);
  15927. this.tb.B(a)
  15928. },
  15929. stop: function() {
  15930. this.tb.stop();
  15931. c.yd.prototype.stop.call(this)
  15932. },
  15933. step: function(a) {
  15934. this.tb.step(a * this.Me)
  15935. },
  15936. Bh: function() {
  15937. return this.tb.Bh()
  15938. },
  15939. reverse: function() {
  15940. return c.rs.create(this.tb.reverse(), this.Me)
  15941. },
  15942. PR: function(a) {
  15943. this.tb != a && (this.tb = a)
  15944. },
  15945. VG: function() {
  15946. return this.tb
  15947. }
  15948. });
  15949. c.rs.create = function(a, b) {
  15950. return new c.rs(a, b)
  15951. };
  15952. c.nw = c.yd.extend({
  15953. sp: null,
  15954. Zo: !1,
  15955. Yw: !1,
  15956. Cx: null,
  15957. gt: null,
  15958. ho: 0,
  15959. oo: 0,
  15960. vo: 0,
  15961. Hn: 0,
  15962. aG: null,
  15963. ctor: function(a, b) {
  15964. c.yd.prototype.ctor.call(this);
  15965. this.sp = null;
  15966. this.Yw = this.Zo = !1;
  15967. this.gt = this.Cx = null;
  15968. this.Hn = this.vo = this.oo = this.ho = 0;
  15969. this.aG = c.rect(0, 0, 0, 0);
  15970. a && (b ? this.Hq(a, b) : this.Hq(a))
  15971. },
  15972. k: function() {
  15973. var a = new c.nw,
  15974. b = this.aG;
  15975. a.Hq(this.sp, new c.VJ(b.x, b.y, b.width, b.height));
  15976. return a
  15977. },
  15978. aia: function() {
  15979. return this.Zo
  15980. },
  15981. Rma: function(a) {
  15982. this.Zo = a
  15983. },
  15984. Hq: function(a, b) {
  15985. if (!a) throw "cc.Follow.initWithAction(): followedNode must be non nil";
  15986. b = b || c.rect(0, 0, 0, 0);
  15987. this.sp = a;
  15988. this.aG = b;
  15989. this.Zo = !c.dy(b);
  15990. this.Yw = !1;
  15991. var d = c.L.V;
  15992. this.gt = c.d(d.width, d.height);
  15993. this.Cx = c.Jj(this.gt, 0.5);
  15994. this.Zo && (this.ho = -(b.x + b.width - this.gt.x), this.oo = -b.x, this.vo = -b.y, this.Hn = -(b.y + b.height - this.gt.y), this.oo < this.ho && (this.oo = this.ho = (this.ho + this.oo) / 2), this.vo < this.Hn && (this.vo = this.Hn = (this.vo + this.Hn) / 2), this.vo == this.Hn && this.ho == this.oo && (this.Yw = !0));
  15995. return !0
  15996. },
  15997. step: function() {
  15998. var a = this.sp.x,
  15999. b = this.sp.y,
  16000. a = this.Cx.x - a,
  16001. b = this.Cx.y - b;
  16002. this.Zo ? this.Yw || this.target.J(c.gd(a, this.ho, this.oo), c.gd(b, this.Hn, this.vo)) : this.target.J(a, b)
  16003. },
  16004. Bh: function() {
  16005. return !this.sp.running
  16006. },
  16007. stop: function() {
  16008. this.target = null;
  16009. c.yd.prototype.stop.call(this)
  16010. }
  16011. });
  16012. c.nw.create = function(a, b) {
  16013. return new c.nw(a, b)
  16014. };
  16015. c.A = c.Uj.extend({
  16016. rb: 0,
  16017. xx: !1,
  16018. ph: null,
  16019. rc: 1,
  16020. Kt: !1,
  16021. Np: !1,
  16022. Me: 1,
  16023. Qt: !1,
  16024. ctor: function(a) {
  16025. this.rc = this.Me = 1;
  16026. this.Kt = !1;
  16027. this.MAX_VALUE = 2;
  16028. this.Qt = this.Np = !1;
  16029. c.Uj.prototype.ctor.call(this);
  16030. void 0 !== a && this.e(a)
  16031. },
  16032. Efa: function() {
  16033. return this.rb
  16034. },
  16035. e: function(a) {
  16036. this.p = 0 === a ? c.lw : a;
  16037. this.rb = 0;
  16038. return this.xx = !0
  16039. },
  16040. Bh: function() {
  16041. return this.rb >= this.p
  16042. },
  16043. Ca: function(a) {
  16044. a.Kt = this.Kt;
  16045. a.Me = this.Me;
  16046. a.rc = this.rc;
  16047. a.ph = this.ph;
  16048. a.Qt = this.Qt;
  16049. a.Np = this.Np
  16050. },
  16051. Ke: function(a) {
  16052. if (this.ph) {
  16053. a.ph = [];
  16054. for (var b = 0; b < this.ph.length; b++) a.ph.push(this.ph[b].reverse())
  16055. }
  16056. },
  16057. k: function() {
  16058. var a = new c.A(this.p);
  16059. this.Ca(a);
  16060. return a
  16061. },
  16062. Za: function(a) {
  16063. this.ph ? this.ph.length = 0 : this.ph = [];
  16064. for (var b = 0; b < arguments.length; b++) this.ph.push(arguments[b]);
  16065. return this
  16066. },
  16067. Bd: function(a) {
  16068. var b = this.ph;
  16069. if (!b || 0 === b.length) return a;
  16070. for (var d = 0, e = b.length; d < e; d++) a = b[d].Za(a);
  16071. return a
  16072. },
  16073. step: function(a) {
  16074. this.xx ? (this.xx = !1, this.rb = 0) : this.rb += a;
  16075. a = this.rb / (1.192092896E-7 < this.p ? this.p : 1.192092896E-7);
  16076. a = 1 > a ? a : 1;
  16077. this.update(0 < a ? a : 0);
  16078. this.Np && 1 < this.rc && this.Bh() && (this.Kt || this.rc--, this.B(this.target), this.step(this.rb - this.p))
  16079. },
  16080. B: function(a) {
  16081. c.yd.prototype.B.call(this, a);
  16082. this.rb = 0;
  16083. this.xx = !0
  16084. },
  16085. reverse: function() {
  16086. c.log("cc.IntervalAction: reverse not implemented.");
  16087. return null
  16088. },
  16089. qo: function() {
  16090. c.log("cc.ActionInterval.setAmplitudeRate(): it should be overridden in subclass.")
  16091. },
  16092. Xn: function() {
  16093. c.log("cc.ActionInterval.getAmplitudeRate(): it should be overridden in subclass.");
  16094. return 0
  16095. },
  16096. speed: function(a) {
  16097. if (0 >= a) return c.log("The speed parameter error"), this;
  16098. this.Qt = !0;
  16099. this.Me *= a;
  16100. return this
  16101. },
  16102. gz: function() {
  16103. return this.Me
  16104. },
  16105. Bf: function(a) {
  16106. this.Me = a;
  16107. return this
  16108. },
  16109. repeat: function(a) {
  16110. a = Math.round(a);
  16111. if (isNaN(a) || 1 > a) return c.log("The repeat parameter error"), this;
  16112. this.Np = !0;
  16113. this.rc *= a;
  16114. return this
  16115. },
  16116. T6: function() {
  16117. this.Np = !0;
  16118. this.rc = this.MAX_VALUE;
  16119. this.Kt = !0;
  16120. return this
  16121. }
  16122. });
  16123. c.A.create = function(a) {
  16124. return new c.A(a)
  16125. };
  16126. c.La = c.A.extend({
  16127. Yi: null,
  16128. TN: null,
  16129. st: 0,
  16130. ctor: function(a) {
  16131. c.A.prototype.ctor.call(this);
  16132. this.Yi = [];
  16133. var b = a instanceof Array ? a : arguments,
  16134. d = b.length - 1;
  16135. 0 <= d && null == b[d] && c.log("parameters should not be ending with null in Javascript");
  16136. if (0 <= d) {
  16137. for (var e = b[0], f = 1; f < d; f++) b[f] && (e = c.La.ak(e, b[f]));
  16138. this.ao(e, b[d])
  16139. }
  16140. },
  16141. ao: function(a, b) {
  16142. if (!a || !b) throw "cc.Sequence.initWithTwoActions(): arguments must all be non nil";
  16143. this.e(a.p + b.p);
  16144. this.Yi[0] = a;
  16145. this.Yi[1] = b;
  16146. return !0
  16147. },
  16148. k: function() {
  16149. var a = new c.La;
  16150. this.Ca(a);
  16151. a.ao(this.Yi[0].k(), this.Yi[1].k());
  16152. return a
  16153. },
  16154. B: function(a) {
  16155. c.A.prototype.B.call(this, a);
  16156. this.TN = this.Yi[0].p / this.p;
  16157. this.st = -1
  16158. },
  16159. stop: function() {
  16160. -1 !== this.st && this.Yi[this.st].stop();
  16161. c.yd.prototype.stop.call(this)
  16162. },
  16163. update: function(a) {
  16164. a = this.Bd(a);
  16165. var b = 0,
  16166. d = this.TN,
  16167. e = this.Yi,
  16168. f = this.st;
  16169. a < d ? (a = 0 !== d ? a / d : 1, 0 === b && 1 === f && (e[1].update(0), e[1].stop())) : (b = 1, a = 1 === d ? 1 : (a - d) / (1 - d), -1 === f && (e[0].B(this.target), e[0].update(1), e[0].stop()), f || (e[0].update(1), e[0].stop()));
  16170. f === b && e[b].Bh() || (f !== b && e[b].B(this.target), e[b].update(a), this.st = b)
  16171. },
  16172. reverse: function() {
  16173. var a = c.La.ak(this.Yi[1].reverse(), this.Yi[0].reverse());
  16174. this.Ca(a);
  16175. this.Ke(a);
  16176. return a
  16177. }
  16178. });
  16179. c.La.create = function(a) {
  16180. var b = a instanceof Array ? a : arguments;
  16181. 0 < b.length && null == b[b.length - 1] && c.log("parameters should not be ending with null in Javascript");
  16182. for (var d = b[0], e = 1; e < b.length; e++) b[e] && (d = c.La.ak(d, b[e]));
  16183. return d
  16184. };
  16185. c.La.ak = function(a, b) {
  16186. var d = new c.La;
  16187. d.ao(a, b);
  16188. return d
  16189. };
  16190. c.ls = c.A.extend({
  16191. rc: 0,
  16192. cm: 0,
  16193. kE: 0,
  16194. gL: !1,
  16195. tb: null,
  16196. ctor: function(a, b) {
  16197. c.A.prototype.ctor.call(this);
  16198. void 0 !== b && this.fa(a, b)
  16199. },
  16200. fa: function(a, b) {
  16201. return this.e(a.p * b) ? (this.rc = b, this.tb = a, a instanceof c.af && (this.gL = !0, this.rc -= 1), this.cm = 0, !0) : !1
  16202. },
  16203. k: function() {
  16204. var a = new c.ls;
  16205. this.Ca(a);
  16206. a.fa(this.tb.k(), this.rc);
  16207. return a
  16208. },
  16209. B: function(a) {
  16210. this.cm = 0;
  16211. this.kE = this.tb.p / this.p;
  16212. c.A.prototype.B.call(this, a);
  16213. this.tb.B(a)
  16214. },
  16215. stop: function() {
  16216. this.tb.stop();
  16217. c.yd.prototype.stop.call(this)
  16218. },
  16219. update: function(a) {
  16220. a = this.Bd(a);
  16221. var b = this.tb,
  16222. d = this.p,
  16223. e = this.rc,
  16224. f = this.kE;
  16225. if (a >= f) {
  16226. for (; a > f && this.cm < e;) b.update(1), this.cm++, b.stop(), b.B(this.target), this.kE = f += b.p / d;
  16227. 1 <= a && this.cm < e && this.cm++;
  16228. this.gL || (this.cm === e ? (b.update(1), b.stop()) : b.update(a - (f - b.p / d)))
  16229. } else b.update(a * e % 1)
  16230. },
  16231. Bh: function() {
  16232. return this.cm == this.rc
  16233. },
  16234. reverse: function() {
  16235. var a = c.ls.create(this.tb.reverse(), this.rc);
  16236. this.Ca(a);
  16237. this.Ke(a);
  16238. return a
  16239. },
  16240. PR: function(a) {
  16241. this.tb != a && (this.tb = a)
  16242. },
  16243. VG: function() {
  16244. return this.tb
  16245. }
  16246. });
  16247. c.ls.create = function(a, b) {
  16248. return new c.ls(a, b)
  16249. };
  16250. c.Oo = c.A.extend({
  16251. tb: null,
  16252. ctor: function(a) {
  16253. c.A.prototype.ctor.call(this);
  16254. this.tb = null;
  16255. a && this.fa(a)
  16256. },
  16257. fa: function(a) {
  16258. if (!a) throw "cc.RepeatForever.initWithAction(): action must be non null";
  16259. this.tb = a;
  16260. return !0
  16261. },
  16262. k: function() {
  16263. var a = new c.Oo;
  16264. this.Ca(a);
  16265. a.fa(this.tb.k());
  16266. return a
  16267. },
  16268. B: function(a) {
  16269. c.A.prototype.B.call(this, a);
  16270. this.tb.B(a)
  16271. },
  16272. step: function(a) {
  16273. var b = this.tb;
  16274. b.step(a);
  16275. b.Bh() && (b.B(this.target), b.step(b.rb - b.p))
  16276. },
  16277. Bh: function() {
  16278. return !1
  16279. },
  16280. reverse: function() {
  16281. var a = c.Oo.create(this.tb.reverse());
  16282. this.Ca(a);
  16283. this.Ke(a);
  16284. return a
  16285. },
  16286. PR: function(a) {
  16287. this.tb != a && (this.tb = a)
  16288. },
  16289. VG: function() {
  16290. return this.tb
  16291. }
  16292. });
  16293. c.Oo.create = function(a) {
  16294. return new c.Oo(a)
  16295. };
  16296. c.df = c.A.extend({
  16297. mk: null,
  16298. Dk: null,
  16299. ctor: function(a) {
  16300. c.A.prototype.ctor.call(this);
  16301. this.Dk = this.mk = null;
  16302. var b = a instanceof Array ? a : arguments,
  16303. d = b.length - 1;
  16304. 0 <= d && null == b[d] && c.log("parameters should not be ending with null in Javascript");
  16305. if (0 <= d) {
  16306. for (var e = b[0], f = 1; f < d; f++) b[f] && (e = c.df.ak(e, b[f]));
  16307. this.ao(e, b[d])
  16308. }
  16309. },
  16310. ao: function(a, b) {
  16311. if (!a || !b) throw "cc.Spawn.initWithTwoActions(): arguments must all be non null";
  16312. var d = !1,
  16313. e = a.p,
  16314. f = b.p;
  16315. this.e(Math.max(e, f)) && (this.mk = a, this.Dk = b, e > f ? this.Dk = c.La.ak(b, c.ad.create(e - f)) : e < f && (this.mk = c.La.ak(a, c.ad.create(f - e))), d = !0);
  16316. return d
  16317. },
  16318. k: function() {
  16319. var a = new c.df;
  16320. this.Ca(a);
  16321. a.ao(this.mk.k(), this.Dk.k());
  16322. return a
  16323. },
  16324. B: function(a) {
  16325. c.A.prototype.B.call(this, a);
  16326. this.mk.B(a);
  16327. this.Dk.B(a)
  16328. },
  16329. stop: function() {
  16330. this.mk.stop();
  16331. this.Dk.stop();
  16332. c.yd.prototype.stop.call(this)
  16333. },
  16334. update: function(a) {
  16335. a = this.Bd(a);
  16336. this.mk && this.mk.update(a);
  16337. this.Dk && this.Dk.update(a)
  16338. },
  16339. reverse: function() {
  16340. var a = c.df.ak(this.mk.reverse(), this.Dk.reverse());
  16341. this.Ca(a);
  16342. this.Ke(a);
  16343. return a
  16344. }
  16345. });
  16346. c.df.create = function(a) {
  16347. var b = a instanceof Array ? a : arguments;
  16348. 0 < b.length && null == b[b.length - 1] && c.log("parameters should not be ending with null in Javascript");
  16349. for (var d = b[0], e = 1; e < b.length; e++) null != b[e] && (d = c.df.ak(d, b[e]));
  16350. return d
  16351. };
  16352. c.df.ak = function(a, b) {
  16353. var d = new c.df;
  16354. d.ao(a, b);
  16355. return d
  16356. };
  16357. c.vw = c.A.extend({
  16358. nx: 0,
  16359. Rt: 0,
  16360. BL: 0,
  16361. sD: 0,
  16362. Rp: 0,
  16363. CL: 0,
  16364. ctor: function(a, b, d) {
  16365. c.A.prototype.ctor.call(this);
  16366. void 0 !== b && this.e(a, b, d)
  16367. },
  16368. e: function(a, b, d) {
  16369. return c.A.prototype.e.call(this, a) ? (this.nx = b || 0, this.sD = d || this.nx, !0) : !1
  16370. },
  16371. k: function() {
  16372. var a = new c.vw;
  16373. this.Ca(a);
  16374. a.e(this.p, this.nx, this.sD);
  16375. return a
  16376. },
  16377. B: function(a) {
  16378. c.A.prototype.B.call(this, a);
  16379. var b = a.rotationX % 360,
  16380. d = this.nx - b;
  16381. 180 < d && (d -= 360); - 180 > d && (d += 360);
  16382. this.Rt = b;
  16383. this.BL = d;
  16384. this.Rp = a.rotationY % 360;
  16385. a = this.sD - this.Rp;
  16386. 180 < a && (a -= 360); - 180 > a && (a += 360);
  16387. this.CL = a
  16388. },
  16389. reverse: function() {
  16390. c.log("cc.RotateTo.reverse(): it should be overridden in subclass.")
  16391. },
  16392. update: function(a) {
  16393. a = this.Bd(a);
  16394. this.target && (this.target.rotationX = this.Rt + this.BL * a, this.target.rotationY = this.Rp + this.CL * a)
  16395. }
  16396. });
  16397. c.vw.create = function(a, b, d) {
  16398. return new c.vw(a, b, d)
  16399. };
  16400. c.Po = c.A.extend({
  16401. Th: 0,
  16402. Rt: 0,
  16403. Tw: 0,
  16404. Rp: 0,
  16405. ctor: function(a, b, d) {
  16406. c.A.prototype.ctor.call(this);
  16407. void 0 !== b && this.e(a, b, d)
  16408. },
  16409. e: function(a, b, d) {
  16410. return c.A.prototype.e.call(this, a) ? (this.Th = b || 0, this.Tw = d || this.Th, !0) : !1
  16411. },
  16412. k: function() {
  16413. var a = new c.Po;
  16414. this.Ca(a);
  16415. a.e(this.p, this.Th, this.Tw);
  16416. return a
  16417. },
  16418. B: function(a) {
  16419. c.A.prototype.B.call(this, a);
  16420. this.Rt = a.rotationX;
  16421. this.Rp = a.rotationY
  16422. },
  16423. update: function(a) {
  16424. a = this.Bd(a);
  16425. this.target && (this.target.rotationX = this.Rt + this.Th * a, this.target.rotationY = this.Rp + this.Tw * a)
  16426. },
  16427. reverse: function() {
  16428. var a = c.Po.create(this.p, -this.Th, -this.Tw);
  16429. this.Ca(a);
  16430. this.Ke(a);
  16431. return a
  16432. }
  16433. });
  16434. c.Po.create = function(a, b, d) {
  16435. var e = new c.Po;
  16436. e.e(a, b, d);
  16437. return e
  16438. };
  16439. c.bf = c.A.extend({
  16440. lj: null,
  16441. Uc: null,
  16442. fd: null,
  16443. ctor: function(a, b, d) {
  16444. c.A.prototype.ctor.call(this);
  16445. this.lj = c.d(0, 0);
  16446. this.Uc = c.d(0, 0);
  16447. this.fd = c.d(0, 0);
  16448. void 0 !== b && this.e(a, b, d)
  16449. },
  16450. e: function(a, b, d) {
  16451. return c.A.prototype.e.call(this, a) ? (void 0 !== b.x && (d = b.y, b = b.x), this.lj.x = b, this.lj.y = d, !0) : !1
  16452. },
  16453. k: function() {
  16454. var a = new c.bf;
  16455. this.Ca(a);
  16456. a.e(this.p, this.lj);
  16457. return a
  16458. },
  16459. B: function(a) {
  16460. c.A.prototype.B.call(this, a);
  16461. var b = a.Se();
  16462. a = a.Mg();
  16463. this.fd.x = b;
  16464. this.fd.y = a;
  16465. this.Uc.x = b;
  16466. this.Uc.y = a
  16467. },
  16468. update: function(a) {
  16469. a = this.Bd(a);
  16470. if (this.target) {
  16471. var b = this.lj.x * a;
  16472. a *= this.lj.y;
  16473. var d = this.Uc;
  16474. if (c.Sv) {
  16475. var e = this.target.Mg(),
  16476. f = this.fd;
  16477. d.x = d.x + this.target.Se() - f.x;
  16478. d.y = d.y + e - f.y;
  16479. b += d.x;
  16480. a += d.y;
  16481. f.x = b;
  16482. f.y = a;
  16483. this.target.J(b, a)
  16484. } else this.target.J(d.x + b, d.y + a)
  16485. }
  16486. },
  16487. reverse: function() {
  16488. var a = c.bf.create(this.p, c.d(-this.lj.x, -this.lj.y));
  16489. this.Ca(a);
  16490. this.Ke(a);
  16491. return a
  16492. }
  16493. });
  16494. c.bf.create = function(a, b, d) {
  16495. return new c.bf(a, b, d)
  16496. };
  16497. c.ds = c.bf.extend({
  16498. ug: null,
  16499. ctor: function(a, b, d) {
  16500. c.bf.prototype.ctor.call(this);
  16501. this.ug = c.d(0, 0);
  16502. void 0 !== b && this.e(a, b, d)
  16503. },
  16504. e: function(a, b, d) {
  16505. return c.bf.prototype.e.call(this, a, b, d) ? (void 0 !== b.x && (d = b.y, b = b.x), this.ug.x = b, this.ug.y = d, !0) : !1
  16506. },
  16507. k: function() {
  16508. var a = new c.ds;
  16509. this.Ca(a);
  16510. a.e(this.p, this.ug);
  16511. return a
  16512. },
  16513. B: function(a) {
  16514. c.bf.prototype.B.call(this, a);
  16515. this.lj.x = this.ug.x - a.Se();
  16516. this.lj.y = this.ug.y - a.Mg()
  16517. }
  16518. });
  16519. c.ds.create = function(a, b, d) {
  16520. return new c.ds(a, b, d)
  16521. };
  16522. c.jl = c.A.extend({
  16523. ki: 0,
  16524. li: 0,
  16525. py: 0,
  16526. qy: 0,
  16527. qx: 0,
  16528. rx: 0,
  16529. Kf: 0,
  16530. Lf: 0,
  16531. ctor: function(a, b, d) {
  16532. c.A.prototype.ctor.call(this);
  16533. void 0 !== d && this.e(a, b, d)
  16534. },
  16535. e: function(a, b, d) {
  16536. var e = !1;
  16537. c.A.prototype.e.call(this, a) && (this.qx = b, this.rx = d, e = !0);
  16538. return e
  16539. },
  16540. k: function() {
  16541. var a = new c.jl;
  16542. this.Ca(a);
  16543. a.e(this.p, this.qx, this.rx);
  16544. return a
  16545. },
  16546. B: function(a) {
  16547. c.A.prototype.B.call(this, a);
  16548. this.py = a.skewX % 180;
  16549. this.Kf = this.qx - this.py;
  16550. 180 < this.Kf && (this.Kf -= 360); - 180 > this.Kf && (this.Kf += 360);
  16551. this.qy = a.skewY % 360;
  16552. this.Lf = this.rx - this.qy;
  16553. 180 < this.Lf && (this.Lf -= 360); - 180 > this.Lf && (this.Lf += 360)
  16554. },
  16555. update: function(a) {
  16556. a = this.Bd(a);
  16557. this.target.skewX = this.py + this.Kf * a;
  16558. this.target.skewY = this.qy + this.Lf * a
  16559. }
  16560. });
  16561. c.jl.create = function(a, b, d) {
  16562. return new c.jl(a, b, d)
  16563. };
  16564. c.qs = c.jl.extend({
  16565. ctor: function(a, b, d) {
  16566. c.jl.prototype.ctor.call(this);
  16567. void 0 !== d && this.e(a, b, d)
  16568. },
  16569. e: function(a, b, d) {
  16570. var e = !1;
  16571. c.jl.prototype.e.call(this, a, b, d) && (this.ki = b, this.li = d, e = !0);
  16572. return e
  16573. },
  16574. k: function() {
  16575. var a = new c.qs;
  16576. this.Ca(a);
  16577. a.e(this.p, this.ki, this.li);
  16578. return a
  16579. },
  16580. B: function(a) {
  16581. c.jl.prototype.B.call(this, a);
  16582. this.Kf = this.ki;
  16583. this.Lf = this.li;
  16584. this.qx = this.py + this.Kf;
  16585. this.rx = this.qy + this.Lf
  16586. },
  16587. reverse: function() {
  16588. var a = c.qs.create(this.p, -this.ki, -this.li);
  16589. this.Ca(a);
  16590. this.Ke(a);
  16591. return a
  16592. }
  16593. });
  16594. c.qs.create = function(a, b, d) {
  16595. var e = new c.qs;
  16596. e && e.e(a, b, d);
  16597. return e
  16598. };
  16599. c.Ri = c.A.extend({
  16600. Uc: null,
  16601. bj: null,
  16602. nt: 0,
  16603. kk: 0,
  16604. fd: null,
  16605. ctor: function(a, b, d, e, f) {
  16606. c.A.prototype.ctor.call(this);
  16607. this.Uc = c.d(0, 0);
  16608. this.fd = c.d(0, 0);
  16609. this.bj = c.d(0, 0);
  16610. void 0 !== e && this.e(a, b, d, e, f)
  16611. },
  16612. e: function(a, b, d, e, f) {
  16613. return c.A.prototype.e.call(this, a) ? (void 0 === f && (f = e, e = d, d = b.y, b = b.x), this.bj.x = b, this.bj.y = d, this.nt = e, this.kk = f, !0) : !1
  16614. },
  16615. k: function() {
  16616. var a = new c.Ri;
  16617. this.Ca(a);
  16618. a.e(this.p, this.bj, this.nt, this.kk);
  16619. return a
  16620. },
  16621. B: function(a) {
  16622. c.A.prototype.B.call(this, a);
  16623. var b = a.Se();
  16624. a = a.Mg();
  16625. this.fd.x = b;
  16626. this.fd.y = a;
  16627. this.Uc.x = b;
  16628. this.Uc.y = a
  16629. },
  16630. update: function(a) {
  16631. a = this.Bd(a);
  16632. if (this.target) {
  16633. var b = a * this.kk % 1,
  16634. b = 4 * this.nt * b * (1 - b),
  16635. b = b + this.bj.y * a;
  16636. a *= this.bj.x;
  16637. var d = this.Uc;
  16638. if (c.Sv) {
  16639. var e = this.target.Mg(),
  16640. f = this.fd;
  16641. d.x = d.x + this.target.Se() - f.x;
  16642. d.y = d.y + e - f.y;
  16643. a += d.x;
  16644. b += d.y;
  16645. f.x = a;
  16646. f.y = b;
  16647. this.target.J(a, b)
  16648. } else this.target.J(d.x + a, d.y + b)
  16649. }
  16650. },
  16651. reverse: function() {
  16652. var a = c.Ri.create(this.p, c.d(-this.bj.x, -this.bj.y), this.nt, this.kk);
  16653. this.Ca(a);
  16654. this.Ke(a);
  16655. return a
  16656. }
  16657. });
  16658. c.Ri.create = function(a, b, d, e, f) {
  16659. return new c.Ri(a, b, d, e, f)
  16660. };
  16661. c.ow = c.Ri.extend({
  16662. ug: null,
  16663. ctor: function(a, b, d, e, f) {
  16664. c.Ri.prototype.ctor.call(this);
  16665. this.ug = c.d(0, 0);
  16666. void 0 !== e && this.e(a, b, d, e, f)
  16667. },
  16668. e: function(a, b, d, e, f) {
  16669. return c.Ri.prototype.e.call(this, a, b, d, e, f) ? (void 0 === f && (d = b.y, b = b.x), this.ug.x = b, this.ug.y = d, !0) : !1
  16670. },
  16671. B: function(a) {
  16672. c.Ri.prototype.B.call(this, a);
  16673. this.bj.x = this.ug.x - this.Uc.x;
  16674. this.bj.y = this.ug.y - this.Uc.y
  16675. },
  16676. k: function() {
  16677. var a = new c.ow;
  16678. this.Ca(a);
  16679. a.e(this.p, this.ug, this.nt, this.kk);
  16680. return a
  16681. }
  16682. });
  16683. c.ow.create = function(a, b, d, e, f) {
  16684. return new c.ow(a, b, d, e, f)
  16685. };
  16686. c.xO = function(a, b, d, e) {
  16687. return 0 * Math.pow(1 - e, 3) + 3 * e * Math.pow(1 - e, 2) * a + 3 * Math.pow(e, 2) * (1 - e) * b + Math.pow(e, 3) * d
  16688. };
  16689. c.bl = c.A.extend({
  16690. rg: null,
  16691. Uc: null,
  16692. fd: null,
  16693. ctor: function(a, b) {
  16694. c.A.prototype.ctor.call(this);
  16695. this.rg = [];
  16696. this.Uc = c.d(0, 0);
  16697. this.fd = c.d(0, 0);
  16698. b && this.e(a, b)
  16699. },
  16700. e: function(a, b) {
  16701. return c.A.prototype.e.call(this, a) ? (this.rg = b, !0) : !1
  16702. },
  16703. k: function() {
  16704. var a = new c.bl;
  16705. this.Ca(a);
  16706. for (var b = [], d = 0; d < this.rg.length; d++) {
  16707. var e = this.rg[d];
  16708. b.push(c.d(e.x, e.y))
  16709. }
  16710. a.e(this.p, b);
  16711. return a
  16712. },
  16713. B: function(a) {
  16714. c.A.prototype.B.call(this, a);
  16715. var b = a.Se();
  16716. a = a.Mg();
  16717. this.fd.x = b;
  16718. this.fd.y = a;
  16719. this.Uc.x = b;
  16720. this.Uc.y = a
  16721. },
  16722. update: function(a) {
  16723. a = this.Bd(a);
  16724. if (this.target) {
  16725. var b = this.rg,
  16726. d = c.xO(b[0].x, b[1].x, b[2].x, a);
  16727. a = c.xO(b[0].y, b[1].y, b[2].y, a);
  16728. b = this.Uc;
  16729. if (c.Sv) {
  16730. var e = this.target.Mg(),
  16731. f = this.fd;
  16732. b.x = b.x + this.target.Se() - f.x;
  16733. b.y = b.y + e - f.y;
  16734. d += b.x;
  16735. a += b.y;
  16736. f.x = d;
  16737. f.y = a;
  16738. this.target.J(d, a)
  16739. } else this.target.J(b.x + d, b.y + a)
  16740. }
  16741. },
  16742. reverse: function() {
  16743. var a = this.rg,
  16744. a = [c.Ij(a[1], c.RH(a[2])), c.Ij(a[0], c.RH(a[2])), c.RH(a[2])],
  16745. a = c.bl.create(this.p, a);
  16746. this.Ca(a);
  16747. this.Ke(a);
  16748. return a
  16749. }
  16750. });
  16751. c.bl.create = function(a, b) {
  16752. return new c.bl(a, b)
  16753. };
  16754. c.Ov = c.bl.extend({
  16755. Ay: null,
  16756. ctor: function(a, b) {
  16757. c.bl.prototype.ctor.call(this);
  16758. this.Ay = [];
  16759. b && this.e(a, b)
  16760. },
  16761. e: function(a, b) {
  16762. return c.A.prototype.e.call(this, a) ? (this.Ay = b, !0) : !1
  16763. },
  16764. k: function() {
  16765. var a = new c.Ov;
  16766. this.Ca(a);
  16767. a.e(this.p, this.Ay);
  16768. return a
  16769. },
  16770. B: function(a) {
  16771. c.bl.prototype.B.call(this, a);
  16772. a = this.Uc;
  16773. var b = this.Ay,
  16774. d = this.rg;
  16775. d[0] = c.de(b[0], a);
  16776. d[1] = c.de(b[1], a);
  16777. d[2] = c.de(b[2], a)
  16778. }
  16779. });
  16780. c.Ov.create = function(a, b) {
  16781. return new c.Ov(a, b)
  16782. };
  16783. c.Qd = c.A.extend({
  16784. ma: 1,
  16785. Na: 1,
  16786. Ut: 1,
  16787. Vt: 1,
  16788. op: 0,
  16789. pp: 0,
  16790. Kf: 0,
  16791. Lf: 0,
  16792. ctor: function(a, b, d) {
  16793. c.A.prototype.ctor.call(this);
  16794. void 0 !== b && this.e(a, b, d)
  16795. },
  16796. e: function(a, b, d) {
  16797. return c.A.prototype.e.call(this, a) ? (this.op = b, this.pp = null != d ? d : b, !0) : !1
  16798. },
  16799. k: function() {
  16800. var a = new c.Qd;
  16801. this.Ca(a);
  16802. a.e(this.p, this.op, this.pp);
  16803. return a
  16804. },
  16805. B: function(a) {
  16806. c.A.prototype.B.call(this, a);
  16807. this.Ut = a.scaleX;
  16808. this.Vt = a.scaleY;
  16809. this.Kf = this.op - this.Ut;
  16810. this.Lf = this.pp - this.Vt
  16811. },
  16812. update: function(a) {
  16813. a = this.Bd(a);
  16814. this.target && (this.target.scaleX = this.Ut + this.Kf * a, this.target.scaleY = this.Vt + this.Lf * a)
  16815. }
  16816. });
  16817. c.Qd.create = function(a, b, d) {
  16818. var e = new c.Qd;
  16819. e.e(a, b, d);
  16820. return e
  16821. };
  16822. c.Qo = c.Qd.extend({
  16823. B: function(a) {
  16824. c.Qd.prototype.B.call(this, a);
  16825. this.Kf = this.Ut * this.op - this.Ut;
  16826. this.Lf = this.Vt * this.pp - this.Vt
  16827. },
  16828. reverse: function() {
  16829. var a = c.Qo.create(this.p, 1 / this.op, 1 / this.pp);
  16830. this.Ca(a);
  16831. this.Ke(a);
  16832. return a
  16833. },
  16834. k: function() {
  16835. var a = new c.Qo;
  16836. this.Ca(a);
  16837. a.e(this.p, this.op, this.pp);
  16838. return a
  16839. }
  16840. });
  16841. c.Qo.create = function(a, b, d) {
  16842. return new c.Qo(a, b, d)
  16843. };
  16844. c.Br = c.A.extend({
  16845. rc: 0,
  16846. bN: !1,
  16847. ctor: function(a, b) {
  16848. c.A.prototype.ctor.call(this);
  16849. void 0 !== b && this.e(a, b)
  16850. },
  16851. e: function(a, b) {
  16852. return c.A.prototype.e.call(this, a) ? (this.rc = b, !0) : !1
  16853. },
  16854. k: function() {
  16855. var a = new c.Br;
  16856. this.Ca(a);
  16857. a.e(this.p, this.rc);
  16858. return a
  16859. },
  16860. update: function(a) {
  16861. a = this.Bd(a);
  16862. if (this.target && !this.Bh()) {
  16863. var b = 1 / this.rc;
  16864. this.target.visible = a % b > b / 2
  16865. }
  16866. },
  16867. B: function(a) {
  16868. c.A.prototype.B.call(this, a);
  16869. this.bN = a.visible
  16870. },
  16871. stop: function() {
  16872. this.target.visible = this.bN;
  16873. c.A.prototype.stop.call(this)
  16874. },
  16875. reverse: function() {
  16876. var a = c.Br.create(this.p, this.rc);
  16877. this.Ca(a);
  16878. this.Ke(a);
  16879. return a
  16880. }
  16881. });
  16882. c.Br.create = function(a, b) {
  16883. var d = new c.Br;
  16884. d.e(a, b);
  16885. return d
  16886. };
  16887. c.el = c.A.extend({
  16888. $p: 0,
  16889. Ax: 0,
  16890. ctor: function(a, b) {
  16891. c.A.prototype.ctor.call(this);
  16892. void 0 !== b && this.e(a, b)
  16893. },
  16894. e: function(a, b) {
  16895. return c.A.prototype.e.call(this, a) ? (this.$p = b, !0) : !1
  16896. },
  16897. k: function() {
  16898. var a = new c.el;
  16899. this.Ca(a);
  16900. a.e(this.p, this.$p);
  16901. return a
  16902. },
  16903. update: function(a) {
  16904. a = this.Bd(a);
  16905. if (this.target.Ib) {
  16906. var b = void 0 !== this.Ax ? this.Ax : 255;
  16907. this.target.opacity = b + (this.$p - b) * a
  16908. }
  16909. },
  16910. B: function(a) {
  16911. c.A.prototype.B.call(this, a);
  16912. this.target.Ib && (this.Ax = a.opacity)
  16913. }
  16914. });
  16915. c.el.create = function(a, b) {
  16916. return new c.el(a, b)
  16917. };
  16918. c.Eo = c.el.extend({
  16919. TE: null,
  16920. reverse: function() {
  16921. var a = new c.Fo;
  16922. a.e(this.p, 0);
  16923. this.Ca(a);
  16924. this.Ke(a);
  16925. return a
  16926. },
  16927. k: function() {
  16928. var a = new c.Eo;
  16929. this.Ca(a);
  16930. a.e(this.p, this.$p);
  16931. return a
  16932. },
  16933. B: function(a) {
  16934. this.TE && (this.$p = this.TE.Ax);
  16935. c.el.prototype.B.call(this, a)
  16936. }
  16937. });
  16938. c.Eo.create = function(a) {
  16939. return new c.Eo(a, 255)
  16940. };
  16941. c.Fo = c.el.extend({
  16942. reverse: function() {
  16943. var a = new c.Eo;
  16944. a.TE = this;
  16945. a.e(this.p, 255);
  16946. this.Ca(a);
  16947. this.Ke(a);
  16948. return a
  16949. },
  16950. k: function() {
  16951. var a = new c.Fo;
  16952. this.Ca(a);
  16953. a.e(this.p, this.$p);
  16954. return a
  16955. }
  16956. });
  16957. c.Fo.create = function(a) {
  16958. var b = new c.Fo;
  16959. b.e(a, 0);
  16960. return b
  16961. };
  16962. c.Gw = c.A.extend({
  16963. Gd: null,
  16964. ed: null,
  16965. ctor: function(a, b, d, e) {
  16966. c.A.prototype.ctor.call(this);
  16967. this.Gd = c.color(0, 0, 0);
  16968. this.ed = c.color(0, 0, 0);
  16969. void 0 !== e && this.e(a, b, d, e)
  16970. },
  16971. e: function(a, b, d, e) {
  16972. return c.A.prototype.e.call(this, a) ? (this.Gd = c.color(b, d, e), !0) : !1
  16973. },
  16974. k: function() {
  16975. var a = new c.Gw;
  16976. this.Ca(a);
  16977. var b = this.Gd;
  16978. a.e(this.p, b.r, b.g, b.b);
  16979. return a
  16980. },
  16981. B: function(a) {
  16982. c.A.prototype.B.call(this, a);
  16983. this.target.Ib && (this.ed = this.target.color)
  16984. },
  16985. update: function(a) {
  16986. a = this.Bd(a);
  16987. var b = this.ed,
  16988. d = this.Gd;
  16989. b && this.target.Ib && (this.target.color = c.color(b.r + (d.r - b.r) * a, b.g + (d.g - b.g) * a, b.b + (d.b - b.b) * a))
  16990. }
  16991. });
  16992. c.Gw.create = function(a, b, d, e) {
  16993. return new c.Gw(a, b, d, e)
  16994. };
  16995. c.zs = c.A.extend({
  16996. lx: 0,
  16997. kx: 0,
  16998. jx: 0,
  16999. sM: 0,
  17000. rM: 0,
  17001. qM: 0,
  17002. ctor: function(a, b, d, e) {
  17003. c.A.prototype.ctor.call(this);
  17004. void 0 !== e && this.e(a, b, d, e)
  17005. },
  17006. e: function(a, b, d, e) {
  17007. return c.A.prototype.e.call(this, a) ? (this.lx = b, this.kx = d, this.jx = e, !0) : !1
  17008. },
  17009. k: function() {
  17010. var a = new c.zs;
  17011. this.Ca(a);
  17012. a.e(this.p, this.lx, this.kx, this.jx);
  17013. return a
  17014. },
  17015. B: function(a) {
  17016. c.A.prototype.B.call(this, a);
  17017. a.Ib && (a = a.color, this.sM = a.r, this.rM = a.g, this.qM = a.b)
  17018. },
  17019. update: function(a) {
  17020. a = this.Bd(a);
  17021. this.target.Ib && (this.target.color = c.color(this.sM + this.lx * a, this.rM + this.kx * a, this.qM + this.jx * a))
  17022. },
  17023. reverse: function() {
  17024. var a = c.zs.create(this.p, -this.lx, -this.kx, -this.jx);
  17025. this.Ca(a);
  17026. this.Ke(a);
  17027. return a
  17028. }
  17029. });
  17030. c.zs.create = function(a, b, d, e) {
  17031. return new c.zs(a, b, d, e)
  17032. };
  17033. c.ad = c.A.extend({
  17034. update: function() {},
  17035. reverse: function() {
  17036. var a = c.ad.create(this.p);
  17037. this.Ca(a);
  17038. this.Ke(a);
  17039. return a
  17040. },
  17041. k: function() {
  17042. var a = new c.ad;
  17043. this.Ca(a);
  17044. a.e(this.p);
  17045. return a
  17046. }
  17047. });
  17048. c.ad.create = function(a) {
  17049. return new c.ad(a)
  17050. };
  17051. c.Nm = c.A.extend({
  17052. ok: null,
  17053. ctor: function(a) {
  17054. c.A.prototype.ctor.call(this);
  17055. this.ok = null;
  17056. a && this.fa(a)
  17057. },
  17058. fa: function(a) {
  17059. if (!a) throw "cc.ReverseTime.initWithAction(): action must be non null";
  17060. if (a == this.ok) throw "cc.ReverseTime.initWithAction(): the action was already passed in.";
  17061. return c.A.prototype.e.call(this, a.p) ? (this.ok = a, !0) : !1
  17062. },
  17063. k: function() {
  17064. var a = new c.Nm;
  17065. this.Ca(a);
  17066. a.fa(this.ok.k());
  17067. return a
  17068. },
  17069. B: function(a) {
  17070. c.A.prototype.B.call(this, a);
  17071. this.ok.B(a)
  17072. },
  17073. update: function(a) {
  17074. a = this.Bd(a);
  17075. this.ok && this.ok.update(1 - a)
  17076. },
  17077. reverse: function() {
  17078. return this.ok.k()
  17079. },
  17080. stop: function() {
  17081. this.ok.stop();
  17082. c.yd.prototype.stop.call(this)
  17083. }
  17084. });
  17085. c.Nm.create = function(a) {
  17086. return new c.Nm(a)
  17087. };
  17088. c.yr = c.A.extend({
  17089. xl: null,
  17090. At: 0,
  17091. pE: null,
  17092. ux: 0,
  17093. qF: null,
  17094. ctor: function(a) {
  17095. c.A.prototype.ctor.call(this);
  17096. this.qF = [];
  17097. a && this.gQ(a)
  17098. },
  17099. nP: function() {
  17100. return this.xl
  17101. },
  17102. j7: function(a) {
  17103. this.xl = a
  17104. },
  17105. gQ: function(a) {
  17106. if (!a) throw "cc.Animate.initWithAnimation(): animation must be non-NULL";
  17107. var b = a.zq();
  17108. if (this.e(b * a.lk)) {
  17109. this.At = 0;
  17110. this.j7(a);
  17111. this.pE = null;
  17112. this.ux = 0;
  17113. var d = this.qF,
  17114. e = d.length = 0,
  17115. f = b / a.rj;
  17116. a = a.pe;
  17117. c.gq(a, c.eh);
  17118. for (var g = 0; g < a.length; g++) {
  17119. var h = e * f / b,
  17120. e = e + a[g].oe;
  17121. d.push(h)
  17122. }
  17123. return !0
  17124. }
  17125. return !1
  17126. },
  17127. k: function() {
  17128. var a = new c.yr;
  17129. this.Ca(a);
  17130. a.gQ(this.xl.k());
  17131. return a
  17132. },
  17133. B: function(a) {
  17134. c.A.prototype.B.call(this, a);
  17135. this.xl.qn && (this.pE = a.q2());
  17136. this.ux = this.At = 0
  17137. },
  17138. update: function(a) {
  17139. a = this.Bd(a);
  17140. 1 > a && (a *= this.xl.lk, (0 | a) > this.ux && (this.At = 0, this.ux++), a %= 1);
  17141. for (var b = this.xl.pe, d = b.length, e = this.qF, f = this.At; f < d; f++) if (e[f] <= a) this.target.xm(b[f].wj()), this.At = f + 1;
  17142. else break
  17143. },
  17144. reverse: function() {
  17145. var a = this.xl,
  17146. b = a.pe,
  17147. d = [];
  17148. c.gq(b, c.eh);
  17149. if (0 < b.length) for (var e = b.length - 1; 0 <= e; e--) {
  17150. var f = b[e];
  17151. if (!f) break;
  17152. d.push(f.k())
  17153. }
  17154. b = c.Em.create(d, a.oe, a.lk);
  17155. b.DA(a.qn);
  17156. a = c.yr.create(b);
  17157. this.Ca(a);
  17158. this.Ke(a);
  17159. return a
  17160. },
  17161. stop: function() {
  17162. this.xl.qn && this.target && this.target.xm(this.pE);
  17163. c.yd.prototype.stop.call(this)
  17164. }
  17165. });
  17166. c.yr.create = function(a) {
  17167. return new c.yr(a)
  17168. };
  17169. c.Ew = c.A.extend({
  17170. Is: null,
  17171. tp: null,
  17172. ctor: function(a, b) {
  17173. c.A.prototype.ctor.call(this);
  17174. b && this.Hq(a, b)
  17175. },
  17176. Hq: function(a, b) {
  17177. return this.e(b.p) ? (this.tp = a, this.Is = b, !0) : !1
  17178. },
  17179. k: function() {
  17180. var a = new c.Ew;
  17181. this.Ca(a);
  17182. a.Hq(this.tp, this.Is.k());
  17183. return a
  17184. },
  17185. B: function(a) {
  17186. c.A.prototype.B.call(this, a);
  17187. this.Is.B(this.tp)
  17188. },
  17189. stop: function() {
  17190. this.Is.stop()
  17191. },
  17192. update: function(a) {
  17193. a = this.Bd(a);
  17194. this.Is.update(a)
  17195. },
  17196. Qfa: function() {
  17197. return this.tp
  17198. },
  17199. nna: function(a) {
  17200. this.tp != a && (this.tp = a)
  17201. }
  17202. });
  17203. c.Ew.create = function(a, b) {
  17204. return new c.Ew(a, b)
  17205. };
  17206. c.af = c.Uj.extend({
  17207. Bh: function() {
  17208. return !0
  17209. },
  17210. step: function() {
  17211. this.update(1)
  17212. },
  17213. update: function() {},
  17214. reverse: function() {
  17215. return this.k()
  17216. },
  17217. k: function() {
  17218. return new c.af
  17219. }
  17220. });
  17221. c.mg = c.af.extend({
  17222. update: function() {
  17223. this.target.visible = !0
  17224. },
  17225. reverse: function() {
  17226. return c.Rh.create()
  17227. },
  17228. k: function() {
  17229. return new c.mg
  17230. }
  17231. });
  17232. c.mg.create = function() {
  17233. return new c.mg
  17234. };
  17235. c.Rh = c.af.extend({
  17236. update: function() {
  17237. this.target.visible = !1
  17238. },
  17239. reverse: function() {
  17240. return c.mg.create()
  17241. },
  17242. k: function() {
  17243. return new c.Rh
  17244. }
  17245. });
  17246. c.Rh.create = function() {
  17247. return new c.Rh
  17248. };
  17249. c.As = c.af.extend({
  17250. update: function() {
  17251. this.target.visible = !this.target.visible
  17252. },
  17253. reverse: function() {
  17254. return new c.As
  17255. },
  17256. k: function() {
  17257. return new c.As
  17258. }
  17259. });
  17260. c.As.create = function() {
  17261. return new c.As
  17262. };
  17263. c.ks = c.af.extend({
  17264. Ix: !0,
  17265. ctor: function(a) {
  17266. c.Uj.prototype.ctor.call(this);
  17267. void 0 !== a && this.K(a)
  17268. },
  17269. update: function() {
  17270. this.target.vm(this.Ix)
  17271. },
  17272. K: function(a) {
  17273. this.Ix = a;
  17274. return !0
  17275. },
  17276. reverse: function() {
  17277. return new c.ks(this.Ix)
  17278. },
  17279. k: function() {
  17280. return new c.ks(this.Ix)
  17281. }
  17282. });
  17283. c.ks.create = function(a) {
  17284. return new c.ks(a)
  17285. };
  17286. c.Yr = c.af.extend({
  17287. dc: !1,
  17288. ctor: function(a) {
  17289. c.Uj.prototype.ctor.call(this);
  17290. this.dc = !1;
  17291. void 0 !== a && this.iQ(a)
  17292. },
  17293. iQ: function(a) {
  17294. this.dc = a;
  17295. return !0
  17296. },
  17297. update: function() {
  17298. this.target.flippedX = this.dc
  17299. },
  17300. reverse: function() {
  17301. return c.Yr.create(!this.dc)
  17302. },
  17303. k: function() {
  17304. var a = new c.Yr;
  17305. a.iQ(this.dc);
  17306. return a
  17307. }
  17308. });
  17309. c.Yr.create = function(a) {
  17310. return new c.Yr(a)
  17311. };
  17312. c.Zr = c.af.extend({
  17313. ec: !1,
  17314. ctor: function(a) {
  17315. c.Uj.prototype.ctor.call(this);
  17316. this.ec = !1;
  17317. void 0 !== a && this.jQ(a)
  17318. },
  17319. jQ: function(a) {
  17320. this.ec = a;
  17321. return !0
  17322. },
  17323. update: function() {
  17324. this.target.flippedY = this.ec
  17325. },
  17326. reverse: function() {
  17327. return c.Zr.create(!this.ec)
  17328. },
  17329. k: function() {
  17330. var a = new c.Zr;
  17331. a.jQ(this.ec);
  17332. return a
  17333. }
  17334. });
  17335. c.Zr.create = function(a) {
  17336. return new c.Zr(a)
  17337. };
  17338. c.tw = c.af.extend({
  17339. ri: 0,
  17340. sf: 0,
  17341. ctor: function(a, b) {
  17342. c.Uj.prototype.ctor.call(this);
  17343. this.sf = this.ri = 0;
  17344. void 0 !== a && (void 0 !== a.x && (b = a.y, a = a.x), this.oQ(a, b))
  17345. },
  17346. oQ: function(a, b) {
  17347. this.ri = a;
  17348. this.sf = b;
  17349. return !0
  17350. },
  17351. update: function() {
  17352. this.target.J(this.ri, this.sf)
  17353. },
  17354. k: function() {
  17355. var a = new c.tw;
  17356. a.oQ(this.ri, this.sf);
  17357. return a
  17358. }
  17359. });
  17360. c.tw.create = function(a, b) {
  17361. return new c.tw(a, b)
  17362. };
  17363. c.cc = c.af.extend({
  17364. tk: null,
  17365. $w: null,
  17366. ht: null,
  17367. kp: null,
  17368. ctor: function(a, b, d) {
  17369. c.Uj.prototype.ctor.call(this);
  17370. void 0 !== a && (void 0 === b ? this.vz(a) : this.vz(a, b, d))
  17371. },
  17372. vz: function(a, b, d) {
  17373. b ? (this.kp = d, this.$w = a, this.tk = b) : a && (this.ht = a);
  17374. return !0
  17375. },
  17376. execute: function() {
  17377. null != this.$w ? this.$w.call(this.tk, this.target, this.kp) : this.ht && this.ht.call(null, this.target)
  17378. },
  17379. update: function() {
  17380. this.execute()
  17381. },
  17382. kha: function() {
  17383. return this.tk
  17384. },
  17385. poa: function(a) {
  17386. a != this.tk && (this.tk && (this.tk = null), this.tk = a)
  17387. },
  17388. k: function() {
  17389. var a = new c.cc;
  17390. this.tk ? a.vz(this.$w, this.tk, this.kp) : this.ht && a.vz(this.ht);
  17391. return a
  17392. }
  17393. });
  17394. c.cc.create = function(a, b, d) {
  17395. return new c.cc(a, b, d)
  17396. };
  17397. c.RA = c.A.extend({
  17398. cD: 0,
  17399. dD: 0,
  17400. eD: 0,
  17401. jM: 0,
  17402. kM: 0,
  17403. lM: 0,
  17404. bO: 0,
  17405. cO: 0,
  17406. dO: 0,
  17407. ctor: function() {
  17408. c.A.prototype.ctor.call(this);
  17409. this.dO = this.cO = this.bO = this.lM = this.kM = this.jM = this.eD = this.dD = this.cD = 0
  17410. },
  17411. B: function(a) {
  17412. c.A.prototype.B.call(this, a);
  17413. a = a.Yn();
  17414. var b = a.rP();
  17415. this.cD = b.x;
  17416. this.dD = b.y;
  17417. this.eD = b.z;
  17418. b = a.wP();
  17419. this.jM = b.x;
  17420. this.kM = b.y;
  17421. this.lM = b.z;
  17422. a = a.d4();
  17423. this.bO = a.x;
  17424. this.cO = a.y;
  17425. this.dO = a.z
  17426. },
  17427. k: function() {
  17428. return new c.RA
  17429. },
  17430. reverse: function() {
  17431. return c.Nm.create(this)
  17432. }
  17433. });
  17434. c.Ae = c.RA.extend({
  17435. nf: 0,
  17436. lD: 0,
  17437. Ls: 0,
  17438. zL: 0,
  17439. Th: 0,
  17440. yL: 0,
  17441. nN: 0,
  17442. lN: 0,
  17443. mN: 0,
  17444. kN: 0,
  17445. ctor: function(a, b, d, e, f, g, h) {
  17446. c.RA.prototype.ctor.call(this);
  17447. void 0 !== h && this.e(a, b, d, e, f, g, h)
  17448. },
  17449. e: function(a, b, d, e, f, g, h) {
  17450. return c.A.prototype.e.call(this, a) ? (this.nf = b, this.lD = d, this.Ls = e, this.zL = f, this.Th = g, this.yL = h, this.lN = c.ag(f), this.kN = c.ag(h), !0) : !1
  17451. },
  17452. u8: function() {
  17453. var a = this.target.Yn(),
  17454. b = a.wP(),
  17455. d = a.rP(),
  17456. a = b.x - d.x,
  17457. e = b.y - d.y,
  17458. b = b.z - d.z,
  17459. d = Math.sqrt(Math.pow(a, 2) + Math.pow(e, 2) + Math.pow(b, 2)),
  17460. f = Math.sqrt(Math.pow(a, 2) + Math.pow(e, 2));
  17461. 0 === f && (f = c.lw);
  17462. 0 === d && (d = c.lw);
  17463. return {
  17464. K5: d / c.Dr.Ju(),
  17465. v9: Math.acos(b / d),
  17466. azimuth: 0 > a ? Math.PI - Math.asin(e / f) : Math.asin(e / f)
  17467. }
  17468. },
  17469. B: function(a) {
  17470. c.A.prototype.B.call(this, a);
  17471. a = this.u8();
  17472. isNaN(this.nf) && (this.nf = a.K5);
  17473. isNaN(this.Ls) && (this.Ls = c.Yq(a.v9));
  17474. isNaN(this.Th) && (this.Th = c.Yq(a.azimuth));
  17475. this.nN = c.ag(this.Ls);
  17476. this.mN = c.ag(this.Th)
  17477. },
  17478. k: function() {
  17479. var a = new c.Ae;
  17480. a.e(this.p, this.nf, this.lD, this.Ls, this.zL, this.Th, this.yL);
  17481. return a
  17482. },
  17483. update: function(a) {
  17484. a = this.Bd(a);
  17485. var b = (this.nf + this.lD * a) * c.Dr.Ju(),
  17486. d = this.nN + this.lN * a,
  17487. e = this.mN + this.kN * a;
  17488. a = Math.sin(d) * Math.cos(e) * b + this.cD;
  17489. e = Math.sin(d) * Math.sin(e) * b + this.dD;
  17490. b = Math.cos(d) * b + this.eD;
  17491. this.target.Yn().NR(a, e, b)
  17492. }
  17493. });
  17494. c.Ae.create = function(a, b, d, e, f, g, h) {
  17495. return new c.Ae(a, b, d, e, f, g, h)
  17496. };
  17497. c.Wa = c.A.extend({
  17498. s: null,
  17499. ctor: function(a) {
  17500. c.A.prototype.ctor.call(this);
  17501. a && this.fa(a)
  17502. },
  17503. fa: function(a) {
  17504. if (!a) throw "cc.ActionEase.initWithAction(): action must be non nil";
  17505. return this.e(a.zq()) ? (this.s = a, !0) : !1
  17506. },
  17507. k: function() {
  17508. var a = new c.Wa;
  17509. a.fa(this.s.k());
  17510. return a
  17511. },
  17512. B: function(a) {
  17513. c.A.prototype.B.call(this, a);
  17514. this.s.B(this.target)
  17515. },
  17516. stop: function() {
  17517. this.s.stop();
  17518. c.A.prototype.stop.call(this)
  17519. },
  17520. update: function(a) {
  17521. this.s.update(a)
  17522. },
  17523. reverse: function() {
  17524. return c.Wa.create(this.s.reverse())
  17525. },
  17526. VG: function() {
  17527. return this.s
  17528. }
  17529. });
  17530. c.Wa.create = function(a) {
  17531. return new c.Wa(a)
  17532. };
  17533. c.Jm = c.Wa.extend({
  17534. oc: 0,
  17535. ctor: function(a, b) {
  17536. c.Wa.prototype.ctor.call(this);
  17537. void 0 !== b && this.fa(a, b)
  17538. },
  17539. aoa: function(a) {
  17540. this.oc = a
  17541. },
  17542. Oga: function() {
  17543. return this.oc
  17544. },
  17545. fa: function(a, b) {
  17546. return c.Wa.prototype.fa.call(this, a) ? (this.oc = b, !0) : !1
  17547. },
  17548. k: function() {
  17549. var a = new c.Jm;
  17550. a.fa(this.s.k(), this.oc);
  17551. return a
  17552. },
  17553. reverse: function() {
  17554. return c.Jm.create(this.s.reverse(), 1 / this.oc)
  17555. }
  17556. });
  17557. c.Jm.create = function(a, b) {
  17558. return new c.Jm(a, b)
  17559. };
  17560. c.hw = c.Jm.extend({
  17561. update: function(a) {
  17562. this.s.update(Math.pow(a, this.oc))
  17563. },
  17564. reverse: function() {
  17565. return c.hw.create(this.s.reverse(), 1 / this.oc)
  17566. },
  17567. k: function() {
  17568. var a = new c.hw;
  17569. a.fa(this.s.k(), this.oc);
  17570. return a
  17571. }
  17572. });
  17573. c.hw.create = function(a, b) {
  17574. return new c.hw(a, b)
  17575. };
  17576. c.G2 = function(a) {
  17577. return {
  17578. oc: a,
  17579. Za: function(a) {
  17580. return Math.pow(a, this.oc)
  17581. },
  17582. reverse: function() {
  17583. return c.G2(1 / this.oc)
  17584. }
  17585. }
  17586. };
  17587. c.Im = c.Jm.extend({
  17588. update: function(a) {
  17589. this.s.update(Math.pow(a, 1 / this.oc))
  17590. },
  17591. reverse: function() {
  17592. return c.Im.create(this.s.reverse(), 1 / this.oc)
  17593. },
  17594. k: function() {
  17595. var a = new c.Im;
  17596. a.fa(this.s.k(), this.oc);
  17597. return a
  17598. }
  17599. });
  17600. c.Im.create = function(a, b) {
  17601. return new c.Im(a, b)
  17602. };
  17603. c.I2 = function(a) {
  17604. return {
  17605. oc: a,
  17606. Za: function(a) {
  17607. return Math.pow(a, 1 / this.oc)
  17608. },
  17609. reverse: function() {
  17610. return c.I2(1 / this.oc)
  17611. }
  17612. }
  17613. };
  17614. c.Nr = c.Jm.extend({
  17615. update: function(a) {
  17616. a *= 2;
  17617. 1 > a ? this.s.update(0.5 * Math.pow(a, this.oc)) : this.s.update(1 - 0.5 * Math.pow(2 - a, this.oc))
  17618. },
  17619. k: function() {
  17620. var a = new c.Nr;
  17621. a.fa(this.s.k(), this.oc);
  17622. return a
  17623. },
  17624. reverse: function() {
  17625. return c.Nr.create(this.s.reverse(), this.oc)
  17626. }
  17627. });
  17628. c.Nr.create = function(a, b) {
  17629. return new c.Nr(a, b)
  17630. };
  17631. c.H2 = function(a) {
  17632. return {
  17633. oc: a,
  17634. Za: function(a) {
  17635. a *= 2;
  17636. return 1 > a ? 0.5 * Math.pow(a, this.oc) : 1 - 0.5 * Math.pow(2 - a, this.oc)
  17637. },
  17638. reverse: function() {
  17639. return c.H2(this.oc)
  17640. }
  17641. }
  17642. };
  17643. c.ew = c.Wa.extend({
  17644. update: function(a) {
  17645. this.s.update(0 === a ? 0 : Math.pow(2, 10 * (a - 1)))
  17646. },
  17647. reverse: function() {
  17648. return c.gw.create(this.s.reverse())
  17649. },
  17650. k: function() {
  17651. var a = new c.ew;
  17652. a.fa(this.s.k());
  17653. return a
  17654. }
  17655. });
  17656. c.ew.create = function(a) {
  17657. return new c.ew(a)
  17658. };
  17659. c.TL = {
  17660. Za: function(a) {
  17661. return 0 === a ? 0 : Math.pow(2, 10 * (a - 1))
  17662. },
  17663. reverse: function() {
  17664. return c.VL
  17665. }
  17666. };
  17667. c.dea = function() {
  17668. return c.TL
  17669. };
  17670. c.gw = c.Wa.extend({
  17671. update: function(a) {
  17672. this.s.update(1 == a ? 1 : -Math.pow(2, -10 * a) + 1)
  17673. },
  17674. reverse: function() {
  17675. return c.ew.create(this.s.reverse())
  17676. },
  17677. k: function() {
  17678. var a = new c.gw;
  17679. a.fa(this.s.k());
  17680. return a
  17681. }
  17682. });
  17683. c.gw.create = function(a) {
  17684. return new c.gw(a)
  17685. };
  17686. c.VL = {
  17687. Za: function(a) {
  17688. return 1 == a ? 1 : -Math.pow(2, -10 * a) + 1
  17689. },
  17690. reverse: function() {
  17691. return c.TL
  17692. }
  17693. };
  17694. c.fea = function() {
  17695. return c.VL
  17696. };
  17697. c.fw = c.Wa.extend({
  17698. update: function(a) {
  17699. 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));
  17700. this.s.update(a)
  17701. },
  17702. reverse: function() {
  17703. return c.fw.create(this.s.reverse())
  17704. },
  17705. k: function() {
  17706. var a = new c.fw;
  17707. a.fa(this.s.k());
  17708. return a
  17709. }
  17710. });
  17711. c.fw.create = function(a) {
  17712. return new c.fw(a)
  17713. };
  17714. c.UL = {
  17715. Za: function(a) {
  17716. 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
  17717. },
  17718. reverse: function() {
  17719. return c.UL
  17720. }
  17721. };
  17722. c.eea = function() {
  17723. return c.UL
  17724. };
  17725. c.iw = c.Wa.extend({
  17726. update: function(a) {
  17727. a = 0 === a || 1 === a ? a : -1 * Math.cos(a * Math.PI / 2) + 1;
  17728. this.s.update(a)
  17729. },
  17730. reverse: function() {
  17731. return c.kw.create(this.s.reverse())
  17732. },
  17733. k: function() {
  17734. var a = new c.iw;
  17735. a.fa(this.s.k());
  17736. return a
  17737. }
  17738. });
  17739. c.iw.create = function(a) {
  17740. return new c.iw(a)
  17741. };
  17742. c.eM = {
  17743. Za: function(a) {
  17744. return 0 === a || 1 === a ? a : -1 * Math.cos(a * Math.PI / 2) + 1
  17745. },
  17746. reverse: function() {
  17747. return c.gM
  17748. }
  17749. };
  17750. c.pea = function() {
  17751. return c.eM
  17752. };
  17753. c.kw = c.Wa.extend({
  17754. update: function(a) {
  17755. a = 0 === a || 1 === a ? a : Math.sin(a * Math.PI / 2);
  17756. this.s.update(a)
  17757. },
  17758. reverse: function() {
  17759. return c.iw.create(this.s.reverse())
  17760. },
  17761. k: function() {
  17762. var a = new c.kw;
  17763. a.fa(this.s.k());
  17764. return a
  17765. }
  17766. });
  17767. c.kw.create = function(a) {
  17768. return new c.kw(a)
  17769. };
  17770. c.gM = {
  17771. Za: function(a) {
  17772. return 0 === a || 1 == a ? a : Math.sin(a * Math.PI / 2)
  17773. },
  17774. reverse: function() {
  17775. return c.eM
  17776. }
  17777. };
  17778. c.rea = function() {
  17779. return c.gM
  17780. };
  17781. c.jw = c.Wa.extend({
  17782. update: function(a) {
  17783. a = 0 === a || 1 === a ? a : -0.5 * (Math.cos(Math.PI * a) - 1);
  17784. this.s.update(a)
  17785. },
  17786. k: function() {
  17787. var a = new c.jw;
  17788. a.fa(this.s.k());
  17789. return a
  17790. },
  17791. reverse: function() {
  17792. return c.jw.create(this.s.reverse())
  17793. }
  17794. });
  17795. c.jw.create = function(a) {
  17796. return new c.jw(a)
  17797. };
  17798. c.fM = {
  17799. Za: function(a) {
  17800. return 0 === a || 1 === a ? a : -0.5 * (Math.cos(Math.PI * a) - 1)
  17801. },
  17802. reverse: function() {
  17803. return c.fM
  17804. }
  17805. };
  17806. c.qea = function() {
  17807. return c.fM
  17808. };
  17809. c.Bo = c.Wa.extend({
  17810. Qb: 0.3,
  17811. ctor: function(a, b) {
  17812. c.Wa.prototype.ctor.call(this);
  17813. a && this.fa(a, b)
  17814. },
  17815. Gga: function() {
  17816. return this.Qb
  17817. },
  17818. Xna: function(a) {
  17819. this.Qb = a
  17820. },
  17821. fa: function(a, b) {
  17822. c.Wa.prototype.fa.call(this, a);
  17823. this.Qb = null == b ? 0.3 : b;
  17824. return !0
  17825. },
  17826. reverse: function() {
  17827. c.log("cc.EaseElastic.reverse(): it should be overridden in subclass.");
  17828. return null
  17829. },
  17830. k: function() {
  17831. var a = new c.Bo;
  17832. a.fa(this.s.k(), this.Qb);
  17833. return a
  17834. }
  17835. });
  17836. c.Bo.create = function(a, b) {
  17837. return new c.Bo(a, b)
  17838. };
  17839. c.bw = c.Bo.extend({
  17840. update: function(a) {
  17841. var b = 0;
  17842. 0 === a || 1 === a ? b = a : (b = this.Qb / 4, a -= 1, b = -Math.pow(2, 10 * a) * Math.sin((a - b) * Math.PI * 2 / this.Qb));
  17843. this.s.update(b)
  17844. },
  17845. reverse: function() {
  17846. return c.dw.create(this.s.reverse(), this.Qb)
  17847. },
  17848. k: function() {
  17849. var a = new c.bw;
  17850. a.fa(this.s.k(), this.Qb);
  17851. return a
  17852. }
  17853. });
  17854. c.bw.create = function(a, b) {
  17855. return new c.bw(a, b)
  17856. };
  17857. c.RL = {
  17858. Za: function(a) {
  17859. if (0 === a || 1 === a) return a;
  17860. a -= 1;
  17861. return -Math.pow(2, 10 * a) * Math.sin((a - 0.075) * Math.PI * 2 / 0.3)
  17862. },
  17863. reverse: function() {
  17864. return c.SL
  17865. }
  17866. };
  17867. c.D2 = function(a) {
  17868. return a && 0.3 !== a ? {
  17869. Qb: a,
  17870. Za: function(a) {
  17871. if (0 === a || 1 === a) return a;
  17872. a -= 1;
  17873. return -Math.pow(2, 10 * a) * Math.sin((a - this.Qb / 4) * Math.PI * 2 / this.Qb)
  17874. },
  17875. reverse: function() {
  17876. return c.F2(this.Qb)
  17877. }
  17878. } : c.RL
  17879. };
  17880. c.dw = c.Bo.extend({
  17881. update: function(a) {
  17882. var b = 0,
  17883. b = 0 === a || 1 == a ? a : Math.pow(2, -10 * a) * Math.sin((a - this.Qb / 4) * Math.PI * 2 / this.Qb) + 1;
  17884. this.s.update(b)
  17885. },
  17886. reverse: function() {
  17887. return c.bw.create(this.s.reverse(), this.Qb)
  17888. },
  17889. k: function() {
  17890. var a = new c.dw;
  17891. a.fa(this.s.k(), this.Qb);
  17892. return a
  17893. }
  17894. });
  17895. c.dw.create = function(a, b) {
  17896. return new c.dw(a, b)
  17897. };
  17898. c.SL = {
  17899. Za: function(a) {
  17900. return 0 === a || 1 === a ? a : Math.pow(2, -10 * a) * Math.sin((a - 0.075) * Math.PI * 2 / 0.3) + 1
  17901. },
  17902. reverse: function() {
  17903. return c.RL
  17904. }
  17905. };
  17906. c.F2 = function(a) {
  17907. return a && 0.3 !== a ? {
  17908. Qb: a,
  17909. Za: function(a) {
  17910. return 0 === a || 1 === a ? a : Math.pow(2, -10 * a) * Math.sin((a - this.Qb / 4) * Math.PI * 2 / this.Qb) + 1
  17911. },
  17912. reverse: function() {
  17913. return c.D2(this.Qb)
  17914. }
  17915. } : c.SL
  17916. };
  17917. c.cw = c.Bo.extend({
  17918. update: function(a) {
  17919. var b = 0,
  17920. b = this.Qb;
  17921. if (0 === a || 1 == a) b = a;
  17922. else {
  17923. b || (b = this.Qb = 0.3 * 1.5);
  17924. var d = b / 4;
  17925. a = 2 * a - 1;
  17926. b = 0 > a ? -0.5 * Math.pow(2, 10 * a) * Math.sin((a - d) * Math.PI * 2 / b) : Math.pow(2, -10 * a) * Math.sin((a - d) * Math.PI * 2 / b) * 0.5 + 1
  17927. }
  17928. this.s.update(b)
  17929. },
  17930. reverse: function() {
  17931. return c.cw.create(this.s.reverse(), this.Qb)
  17932. },
  17933. k: function() {
  17934. var a = new c.cw;
  17935. a.fa(this.s.k(), this.Qb);
  17936. return a
  17937. }
  17938. });
  17939. c.cw.create = function(a, b) {
  17940. return new c.cw(a, b)
  17941. };
  17942. c.E2 = function(a) {
  17943. return {
  17944. Qb: a || 0.3,
  17945. Za: function(a) {
  17946. var d = 0,
  17947. d = this.Qb;
  17948. if (0 === a || 1 === a) d = a;
  17949. else {
  17950. d || (d = this.Qb = 0.3 * 1.5);
  17951. var e = d / 4;
  17952. a = 2 * a - 1;
  17953. d = 0 > a ? -0.5 * Math.pow(2, 10 * a) * Math.sin((a - e) * Math.PI * 2 / d) : Math.pow(2, -10 * a) * Math.sin((a - e) * Math.PI * 2 / d) * 0.5 + 1
  17954. }
  17955. return d
  17956. },
  17957. reverse: function() {
  17958. return c.E2(this.Qb)
  17959. }
  17960. }
  17961. };
  17962. c.Hm = c.Wa.extend({
  17963. Qy: function(a) {
  17964. if (a < 1 / 2.75) return 7.5625 * a * a;
  17965. if (a < 2 / 2.75) return a -= 1.5 / 2.75, 7.5625 * a * a + 0.75;
  17966. if (a < 2.5 / 2.75) return a -= 2.25 / 2.75, 7.5625 * a * a + 0.9375;
  17967. a -= 2.625 / 2.75;
  17968. return 7.5625 * a * a + 0.984375
  17969. },
  17970. k: function() {
  17971. var a = new c.Hm;
  17972. a.fa(this.s.k());
  17973. return a
  17974. },
  17975. reverse: function() {
  17976. return c.Hm.create(this.s.reverse())
  17977. }
  17978. });
  17979. c.Hm.create = function(a) {
  17980. return new c.Hm(a)
  17981. };
  17982. c.Zv = c.Hm.extend({
  17983. update: function(a) {
  17984. this.s.update(1 - this.Qy(1 - a))
  17985. },
  17986. reverse: function() {
  17987. return c.aw.create(this.s.reverse())
  17988. },
  17989. k: function() {
  17990. var a = new c.Zv;
  17991. a.fa(this.s.k());
  17992. return a
  17993. }
  17994. });
  17995. c.Zv.create = function(a) {
  17996. return new c.Zv(a)
  17997. };
  17998. c.Xw = function(a) {
  17999. if (a < 1 / 2.75) return 7.5625 * a * a;
  18000. if (a < 2 / 2.75) return a -= 1.5 / 2.75, 7.5625 * a * a + 0.75;
  18001. if (a < 2.5 / 2.75) return a -= 2.25 / 2.75, 7.5625 * a * a + 0.9375;
  18002. a -= 2.625 / 2.75;
  18003. return 7.5625 * a * a + 0.984375
  18004. };
  18005. c.IL = {
  18006. Za: function(a) {
  18007. return 1 - c.Xw(1 - a)
  18008. },
  18009. reverse: function() {
  18010. return c.KL
  18011. }
  18012. };
  18013. c.Vda = function() {
  18014. return c.IL
  18015. };
  18016. c.aw = c.Hm.extend({
  18017. update: function(a) {
  18018. this.s.update(this.Qy(a))
  18019. },
  18020. reverse: function() {
  18021. return c.Zv.create(this.s.reverse())
  18022. },
  18023. k: function() {
  18024. var a = new c.aw;
  18025. a.fa(this.s.k());
  18026. return a
  18027. }
  18028. });
  18029. c.aw.create = function(a) {
  18030. return new c.aw(a)
  18031. };
  18032. c.KL = {
  18033. Za: function(a) {
  18034. return c.Xw(a)
  18035. },
  18036. reverse: function() {
  18037. return c.IL
  18038. }
  18039. };
  18040. c.Xda = function() {
  18041. return c.KL
  18042. };
  18043. c.$v = c.Hm.extend({
  18044. update: function(a) {
  18045. var b = 0,
  18046. b = 0.5 > a ? 0.5 * (1 - this.Qy(1 - 2 * a)) : 0.5 * this.Qy(2 * a - 1) + 0.5;
  18047. this.s.update(b)
  18048. },
  18049. k: function() {
  18050. var a = new c.$v;
  18051. a.fa(this.s.k());
  18052. return a
  18053. },
  18054. reverse: function() {
  18055. return c.$v.create(this.s.reverse())
  18056. }
  18057. });
  18058. c.$v.create = function(a) {
  18059. return new c.$v(a)
  18060. };
  18061. c.JL = {
  18062. Za: function(a) {
  18063. return a = 0.5 > a ? 0.5 * (1 - c.Xw(1 - 2 * a)) : 0.5 * c.Xw(2 * a - 1) + 0.5
  18064. },
  18065. reverse: function() {
  18066. return c.JL
  18067. }
  18068. };
  18069. c.Wda = function() {
  18070. return c.JL
  18071. };
  18072. c.Wv = c.Wa.extend({
  18073. update: function(a) {
  18074. this.s.update(0 === a || 1 == a ? a : a * a * (2.70158 * a - 1.70158))
  18075. },
  18076. reverse: function() {
  18077. return c.Yv.create(this.s.reverse())
  18078. },
  18079. k: function() {
  18080. var a = new c.Wv;
  18081. a.fa(this.s.k());
  18082. return a
  18083. }
  18084. });
  18085. c.Wv.create = function(a) {
  18086. return new c.Wv(a)
  18087. };
  18088. c.FL = {
  18089. Za: function(a) {
  18090. return 0 === a || 1 === a ? a : a * a * (2.70158 * a - 1.70158)
  18091. },
  18092. reverse: function() {
  18093. return c.HL
  18094. }
  18095. };
  18096. c.Sda = function() {
  18097. return c.FL
  18098. };
  18099. c.Yv = c.Wa.extend({
  18100. update: function(a) {
  18101. a -= 1;
  18102. this.s.update(a * a * (2.70158 * a + 1.70158) + 1)
  18103. },
  18104. reverse: function() {
  18105. return c.Wv.create(this.s.reverse())
  18106. },
  18107. k: function() {
  18108. var a = new c.Yv;
  18109. a.fa(this.s.k());
  18110. return a
  18111. }
  18112. });
  18113. c.Yv.create = function(a) {
  18114. return new c.Yv(a)
  18115. };
  18116. c.HL = {
  18117. Za: function(a) {
  18118. a -= 1;
  18119. return a * a * (2.70158 * a + 1.70158) + 1
  18120. },
  18121. reverse: function() {
  18122. return c.FL
  18123. }
  18124. };
  18125. c.Uda = function() {
  18126. return c.HL
  18127. };
  18128. c.Xv = c.Wa.extend({
  18129. update: function(a) {
  18130. a *= 2;
  18131. 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))
  18132. },
  18133. k: function() {
  18134. var a = new c.Xv;
  18135. a.fa(this.s.k());
  18136. return a
  18137. },
  18138. reverse: function() {
  18139. return c.Xv.create(this.s.reverse())
  18140. }
  18141. });
  18142. c.Xv.create = function(a) {
  18143. return new c.Xv(a)
  18144. };
  18145. c.GL = {
  18146. Za: function(a) {
  18147. a *= 2;
  18148. if (1 > a) return a * a * (3.5949095 * a - 2.5949095) / 2;
  18149. a -= 2;
  18150. return a * a * (3.5949095 * a + 2.5949095) / 2 + 1
  18151. },
  18152. reverse: function() {
  18153. return c.GL
  18154. }
  18155. };
  18156. c.Tda = function() {
  18157. return c.GL
  18158. };
  18159. c.Gr = c.Wa.extend({
  18160. Vx: null,
  18161. Wx: null,
  18162. Xx: null,
  18163. Yx: null,
  18164. ctor: function(a) {
  18165. c.Wa.prototype.ctor.call(this, a)
  18166. },
  18167. ta: function(a, b, d, e, f) {
  18168. return Math.pow(1 - f, 3) * a + 3 * f * Math.pow(1 - f, 2) * b + 3 * Math.pow(f, 2) * (1 - f) * d + Math.pow(f, 3) * e
  18169. },
  18170. update: function(a) {
  18171. this.s.update(this.ta(this.Vx, this.Wx, this.Xx, this.Yx, a))
  18172. },
  18173. k: function() {
  18174. var a = new c.Gr;
  18175. a.fa(this.s.k());
  18176. a.HR(this.Vx, this.Wx, this.Xx, this.Yx);
  18177. return a
  18178. },
  18179. reverse: function() {
  18180. var a = c.Gr.create(this.s.reverse());
  18181. a.HR(this.Yx, this.Xx, this.Wx, this.Vx);
  18182. return a
  18183. },
  18184. HR: function(a, b, d, e) {
  18185. this.Vx = a || 0;
  18186. this.Wx = b || 0;
  18187. this.Xx = d || 0;
  18188. this.Yx = e || 0
  18189. }
  18190. });
  18191. c.Gr.create = function(a) {
  18192. return new c.Gr(a)
  18193. };
  18194. c.C2 = function(a, b, d, e) {
  18195. return {
  18196. Za: function(f) {
  18197. return c.Gr.prototype.ta(a, b, d, e, f)
  18198. },
  18199. reverse: function() {
  18200. return c.C2(e, d, b, a)
  18201. }
  18202. }
  18203. };
  18204. c.Or = c.Wa.extend({
  18205. ta: function(a) {
  18206. return Math.pow(a, 2)
  18207. },
  18208. update: function(a) {
  18209. this.s.update(this.ta(a))
  18210. },
  18211. k: function() {
  18212. var a = new c.Or;
  18213. a.fa(this.s.k());
  18214. return a
  18215. },
  18216. reverse: function() {
  18217. return c.Or.create(this.s.reverse())
  18218. }
  18219. });
  18220. c.Or.create = function(a) {
  18221. return new c.Or(a)
  18222. };
  18223. c.WL = {
  18224. Za: c.Or.prototype.ta,
  18225. reverse: function() {
  18226. return c.WL
  18227. }
  18228. };
  18229. c.gea = function() {
  18230. return c.WL
  18231. };
  18232. c.Qr = c.Wa.extend({
  18233. ta: function(a) {
  18234. return -a * (a - 2)
  18235. },
  18236. update: function(a) {
  18237. this.s.update(this.ta(a))
  18238. },
  18239. k: function() {
  18240. var a = new c.Qr;
  18241. a.fa();
  18242. return a
  18243. },
  18244. reverse: function() {
  18245. return c.Qr.create(this.s.reverse())
  18246. }
  18247. });
  18248. c.Qr.create = function(a) {
  18249. return new c.Qr(a)
  18250. };
  18251. c.YL = {
  18252. Za: c.Qr.prototype.ta,
  18253. reverse: function() {
  18254. return c.YL
  18255. }
  18256. };
  18257. c.iea = function() {
  18258. return c.YL
  18259. };
  18260. c.Pr = c.Wa.extend({
  18261. ta: function(a) {
  18262. var b = a;
  18263. a *= 2;
  18264. 1 > a ? b = a * a * 0.5 : (--a, b = -0.5 * (a * (a - 2) - 1));
  18265. return b
  18266. },
  18267. update: function(a) {
  18268. this.s.update(this.ta(a))
  18269. },
  18270. k: function() {
  18271. var a = new c.Pr;
  18272. a.fa(this.s.k());
  18273. return a
  18274. },
  18275. reverse: function() {
  18276. return c.Pr.create(this.s.reverse())
  18277. }
  18278. });
  18279. c.Pr.create = function(a) {
  18280. return new c.Pr(a)
  18281. };
  18282. c.XL = {
  18283. Za: c.Pr.prototype.ta,
  18284. reverse: function() {
  18285. return c.XL
  18286. }
  18287. };
  18288. c.hea = function() {
  18289. return c.XL
  18290. };
  18291. c.Rr = c.Wa.extend({
  18292. ta: function(a) {
  18293. return a * a * a * a
  18294. },
  18295. update: function(a) {
  18296. this.s.update(this.ta(a))
  18297. },
  18298. k: function() {
  18299. var a = new c.Rr;
  18300. a.fa(this.s.k());
  18301. return a
  18302. },
  18303. reverse: function() {
  18304. return c.Rr.create(this.s.reverse())
  18305. }
  18306. });
  18307. c.Rr.create = function(a) {
  18308. return new c.Rr(a)
  18309. };
  18310. c.ZL = {
  18311. Za: c.Rr.prototype.ta,
  18312. reverse: function() {
  18313. return c.ZL
  18314. }
  18315. };
  18316. c.jea = function() {
  18317. return c.ZL
  18318. };
  18319. c.Tr = c.Wa.extend({
  18320. ta: function(a) {
  18321. a -= 1;
  18322. return -(a * a * a * a - 1)
  18323. },
  18324. update: function(a) {
  18325. this.s.update(this.ta(a))
  18326. },
  18327. k: function() {
  18328. var a = new c.Tr;
  18329. a.fa(this.s.k());
  18330. return a
  18331. },
  18332. reverse: function() {
  18333. return c.Tr.create(this.s.reverse())
  18334. }
  18335. });
  18336. c.Tr.create = function(a) {
  18337. return new c.Tr(a)
  18338. };
  18339. c.aM = {
  18340. Za: c.Tr.prototype.ta,
  18341. reverse: function() {
  18342. return c.aM
  18343. }
  18344. };
  18345. c.lea = function() {
  18346. return c.aM
  18347. };
  18348. c.Sr = c.Wa.extend({
  18349. ta: function(a) {
  18350. a *= 2;
  18351. if (1 > a) return 0.5 * a * a * a * a;
  18352. a -= 2;
  18353. return -0.5 * (a * a * a * a - 2)
  18354. },
  18355. update: function(a) {
  18356. this.s.update(this.ta(a))
  18357. },
  18358. k: function() {
  18359. var a = new c.Sr;
  18360. a.fa(this.s.k());
  18361. return a
  18362. },
  18363. reverse: function() {
  18364. return c.Sr.create(this.s.reverse())
  18365. }
  18366. });
  18367. c.Sr.create = function(a) {
  18368. return new c.Sr(a)
  18369. };
  18370. c.$L = {
  18371. Za: c.Sr.prototype.ta,
  18372. reverse: function() {
  18373. return c.$L
  18374. }
  18375. };
  18376. c.kea = function() {
  18377. return c.$L
  18378. };
  18379. c.Ur = c.Wa.extend({
  18380. ta: function(a) {
  18381. return a * a * a * a * a
  18382. },
  18383. update: function(a) {
  18384. this.s.update(this.ta(a))
  18385. },
  18386. k: function() {
  18387. var a = new c.Ur;
  18388. a.fa(this.s.k());
  18389. return a
  18390. },
  18391. reverse: function() {
  18392. return c.Ur.create(this.s.reverse())
  18393. }
  18394. });
  18395. c.Ur.create = function(a) {
  18396. return new c.Ur(a)
  18397. };
  18398. c.bM = {
  18399. Za: c.Ur.prototype.ta,
  18400. reverse: function() {
  18401. return c.bM
  18402. }
  18403. };
  18404. c.mea = function() {
  18405. return c.bM
  18406. };
  18407. c.Wr = c.Wa.extend({
  18408. ta: function(a) {
  18409. a -= 1;
  18410. return a * a * a * a * a + 1
  18411. },
  18412. update: function(a) {
  18413. this.s.update(this.ta(a))
  18414. },
  18415. k: function() {
  18416. var a = new c.Wr;
  18417. a.fa(this.s.k());
  18418. return a
  18419. },
  18420. reverse: function() {
  18421. return c.Wr.create(this.s.reverse())
  18422. }
  18423. });
  18424. c.Wr.create = function(a) {
  18425. return new c.Wr(a)
  18426. };
  18427. c.dM = {
  18428. Za: c.Wr.prototype.ta,
  18429. reverse: function() {
  18430. return c.dM
  18431. }
  18432. };
  18433. c.oea = function() {
  18434. return c.dM
  18435. };
  18436. c.Vr = c.Wa.extend({
  18437. ta: function(a) {
  18438. a *= 2;
  18439. if (1 > a) return 0.5 * a * a * a * a * a;
  18440. a -= 2;
  18441. return 0.5 * (a * a * a * a * a + 2)
  18442. },
  18443. update: function(a) {
  18444. this.s.update(this.ta(a))
  18445. },
  18446. k: function() {
  18447. var a = new c.Vr;
  18448. a.fa(this.s.k());
  18449. return a
  18450. },
  18451. reverse: function() {
  18452. return c.Vr.create(this.s.reverse())
  18453. }
  18454. });
  18455. c.Vr.create = function(a) {
  18456. return new c.Vr(a)
  18457. };
  18458. c.cM = {
  18459. Za: c.Vr.prototype.ta,
  18460. reverse: function() {
  18461. return c.cM
  18462. }
  18463. };
  18464. c.nea = function() {
  18465. return c.cM
  18466. };
  18467. c.Hr = c.Wa.extend({
  18468. ta: function(a) {
  18469. return -1 * (Math.sqrt(1 - a * a) - 1)
  18470. },
  18471. update: function(a) {
  18472. this.s.update(this.ta(a))
  18473. },
  18474. k: function() {
  18475. var a = new c.Hr;
  18476. a.fa(this.s.k());
  18477. return a
  18478. },
  18479. reverse: function() {
  18480. return c.Hr.create(this.s.reverse())
  18481. }
  18482. });
  18483. c.Hr.create = function(a) {
  18484. return new c.Hr(a)
  18485. };
  18486. c.LL = {
  18487. Za: c.Hr.prototype.ta,
  18488. reverse: function() {
  18489. return c.LL
  18490. }
  18491. };
  18492. c.Yda = function() {
  18493. return c.LL
  18494. };
  18495. c.Jr = c.Wa.extend({
  18496. ta: function(a) {
  18497. a -= 1;
  18498. return Math.sqrt(1 - a * a)
  18499. },
  18500. update: function(a) {
  18501. this.s.update(this.ta(a))
  18502. },
  18503. k: function() {
  18504. var a = new c.Jr;
  18505. a.fa(this.s.k());
  18506. return a
  18507. },
  18508. reverse: function() {
  18509. return c.Jr.create(this.s.reverse())
  18510. }
  18511. });
  18512. c.Jr.create = function(a) {
  18513. return new c.Jr(a)
  18514. };
  18515. c.NL = {
  18516. Za: c.Jr.prototype.ta,
  18517. reverse: function() {
  18518. return c.NL
  18519. }
  18520. };
  18521. c.$da = function() {
  18522. return c.NL
  18523. };
  18524. c.Ir = c.Wa.extend({
  18525. ta: function(a) {
  18526. a *= 2;
  18527. if (1 > a) return -0.5 * (Math.sqrt(1 - a * a) - 1);
  18528. a -= 2;
  18529. return 0.5 * (Math.sqrt(1 - a * a) + 1)
  18530. },
  18531. update: function(a) {
  18532. this.s.update(this.ta(a))
  18533. },
  18534. k: function() {
  18535. var a = new c.Ir;
  18536. a.fa(this.s.k());
  18537. return a
  18538. },
  18539. reverse: function() {
  18540. return c.Ir.create(this.s.reverse())
  18541. }
  18542. });
  18543. c.Ir.create = function(a) {
  18544. return new c.Ir(a)
  18545. };
  18546. c.ML = {
  18547. Za: c.Ir.prototype.ta,
  18548. reverse: function() {
  18549. return c.ML
  18550. }
  18551. };
  18552. c.Zda = function() {
  18553. return c.ML
  18554. };
  18555. c.Kr = c.Wa.extend({
  18556. ta: function(a) {
  18557. return a * a * a
  18558. },
  18559. update: function(a) {
  18560. this.s.update(this.ta(a))
  18561. },
  18562. k: function() {
  18563. var a = new c.Kr;
  18564. a.fa(this.s.k());
  18565. return a
  18566. },
  18567. reverse: function() {
  18568. return c.Kr.create(this.s.reverse())
  18569. }
  18570. });
  18571. c.Kr.create = function(a) {
  18572. return new c.Kr(a)
  18573. };
  18574. c.OL = {
  18575. Za: c.Kr.prototype.ta,
  18576. reverse: function() {
  18577. return c.OL
  18578. }
  18579. };
  18580. c.aea = function() {
  18581. return c.OL
  18582. };
  18583. c.Mr = c.Wa.extend({
  18584. ta: function(a) {
  18585. a -= 1;
  18586. return a * a * a + 1
  18587. },
  18588. update: function(a) {
  18589. this.s.update(this.ta(a))
  18590. },
  18591. k: function() {
  18592. var a = new c.Mr;
  18593. a.fa(this.s.k());
  18594. return a
  18595. },
  18596. reverse: function() {
  18597. return c.Mr.create(this.s.reverse())
  18598. }
  18599. });
  18600. c.Mr.create = function(a) {
  18601. return new c.Mr(a)
  18602. };
  18603. c.QL = {
  18604. Za: c.Mr.prototype.ta,
  18605. reverse: function() {
  18606. return c.QL
  18607. }
  18608. };
  18609. c.cea = function() {
  18610. return c.QL
  18611. };
  18612. c.Lr = c.Wa.extend({
  18613. ta: function(a) {
  18614. a *= 2;
  18615. if (1 > a) return 0.5 * a * a * a;
  18616. a -= 2;
  18617. return 0.5 * (a * a * a + 2)
  18618. },
  18619. update: function(a) {
  18620. this.s.update(this.ta(a))
  18621. },
  18622. k: function() {
  18623. var a = new c.Lr;
  18624. a.fa(this.s.k());
  18625. return a
  18626. },
  18627. reverse: function() {
  18628. return c.Lr.create(this.s.reverse())
  18629. }
  18630. });
  18631. c.Lr.create = function(a) {
  18632. return new c.Lr(a)
  18633. };
  18634. c.PL = {
  18635. Za: c.Lr.prototype.ta,
  18636. reverse: function() {
  18637. return c.PL
  18638. }
  18639. };
  18640. c.bea = function() {
  18641. return c.PL
  18642. };
  18643. c.tG = function(a, b, d, e, f, g) {
  18644. var h = g * g,
  18645. k = h * g,
  18646. m = (1 - f) / 2;
  18647. f = m * (-k + 2 * h - g);
  18648. var n = m * (-k + h) + (2 * k - 3 * h + 1);
  18649. g = m * (k - 2 * h + g) + (-2 * k + 3 * h);
  18650. h = m * (k - h);
  18651. return c.d(a.x * f + b.x * n + d.x * g + e.x * h, a.y * f + b.y * n + d.y * g + e.y * h)
  18652. };
  18653. c.xR = function(a) {
  18654. for (var b = [], d = a.length - 1; 0 <= d; d--) b.push(c.d(a[d].x, a[d].y));
  18655. return b
  18656. };
  18657. c.Wy = function(a) {
  18658. for (var b = [], d = 0; d < a.length; d++) b.push(c.d(a[d].x, a[d].y));
  18659. return b
  18660. };
  18661. c.wd = function(a, b) {
  18662. var d = Math.min(a.length - 1, Math.max(b, 0));
  18663. return a[d]
  18664. };
  18665. c.vma = function(a) {
  18666. for (var b = a.length, d = 0 | b / 2, e = 0; e < d; ++e) {
  18667. var f = a[e];
  18668. a[e] = a[b - e - 1];
  18669. a[b - e - 1] = f
  18670. }
  18671. };
  18672. c.Ph = c.A.extend({
  18673. ei: null,
  18674. AL: 0,
  18675. Tp: 0,
  18676. fd: null,
  18677. fL: null,
  18678. ctor: function(a, b, d) {
  18679. c.A.prototype.ctor.call(this);
  18680. this.ei = [];
  18681. void 0 !== d && this.e(a, b, d)
  18682. },
  18683. e: function(a, b, d) {
  18684. if (!b || 0 == b.length) throw "Invalid configuration. It must at least have one control point";
  18685. return c.A.prototype.e.call(this, a) ? (this.R7(b), this.Tp = d, !0) : !1
  18686. },
  18687. k: function() {
  18688. var a = new c.Ph;
  18689. a.e(this.p, c.Wy(this.ei), this.Tp);
  18690. return a
  18691. },
  18692. B: function(a) {
  18693. c.A.prototype.B.call(this, a);
  18694. this.AL = 1 / (this.ei.length - 1);
  18695. this.fd = c.d(this.target.Se(), this.target.Mg());
  18696. this.fL = c.d(0, 0)
  18697. },
  18698. update: function(a) {
  18699. a = this.Bd(a);
  18700. var b, d = this.ei;
  18701. if (1 == a) b = d.length - 1, a = 1;
  18702. else {
  18703. var e = this.AL;
  18704. b = 0 | a / e;
  18705. a = (a - e * b) / e
  18706. }
  18707. b = c.tG(c.wd(d, b - 1), c.wd(d, b - 0), c.wd(d, b + 1), c.wd(d, b + 2), this.Tp, a);
  18708. c.Sv && (d = this.target.Se() - this.fd.x, a = this.target.Mg() - this.fd.y, 0 != d || 0 != a) && (e = this.fL, d = e.x + d, a = e.y + a, e.x = d, e.y = a, b.x += d, b.y += a);
  18709. this.KS(b)
  18710. },
  18711. reverse: function() {
  18712. var a = c.xR(this.ei);
  18713. return c.Ph.create(this.p, a, this.Tp)
  18714. },
  18715. KS: function(a) {
  18716. this.target.J(a);
  18717. this.fd = a
  18718. },
  18719. Hga: function() {
  18720. return this.ei
  18721. },
  18722. R7: function(a) {
  18723. this.ei = a
  18724. }
  18725. });
  18726. c.Ph.create = function(a, b, d) {
  18727. return new c.Ph(a, b, d)
  18728. };
  18729. c.Gm = c.Ph.extend({
  18730. Uc: null,
  18731. ctor: function(a, b, d) {
  18732. c.Ph.prototype.ctor.call(this);
  18733. this.Uc = c.d(0, 0);
  18734. void 0 !== d && this.e(a, b, d)
  18735. },
  18736. B: function(a) {
  18737. c.Ph.prototype.B.call(this, a);
  18738. this.Uc.x = a.Se();
  18739. this.Uc.y = a.Mg()
  18740. },
  18741. reverse: function() {
  18742. for (var a = this.ei.slice(), b, d = a[0], e = 1; e < a.length; ++e) b = a[e], a[e] = c.de(b, d), d = b;
  18743. a = c.xR(a);
  18744. d = a[a.length - 1];
  18745. a.pop();
  18746. d.x = -d.x;
  18747. d.y = -d.y;
  18748. a.unshift(d);
  18749. for (e = 1; e < a.length; ++e) b = a[e], b.x = -b.x, b.y = -b.y, b.x += d.x, b.y += d.y, d = a[e] = b;
  18750. return c.Gm.create(this.p, a, this.Tp)
  18751. },
  18752. KS: function(a) {
  18753. var b = this.Uc,
  18754. d = a.x + b.x;
  18755. a = a.y + b.y;
  18756. this.fd.x = d;
  18757. this.fd.y = a;
  18758. this.target.J(d, a)
  18759. },
  18760. k: function() {
  18761. var a = new c.Gm;
  18762. a.e(this.p, c.Wy(this.ei), this.Tp);
  18763. return a
  18764. }
  18765. });
  18766. c.Gm.create = function(a, b, d) {
  18767. return new c.Gm(a, b, d)
  18768. };
  18769. c.Qv = c.Ph.extend({
  18770. ctor: function(a, b) {
  18771. b && this.e(a, b)
  18772. },
  18773. e: function(a, b) {
  18774. return c.Ph.prototype.e.call(this, a, b, 0.5)
  18775. },
  18776. k: function() {
  18777. var a = new c.Qv;
  18778. a.e(this.p, c.Wy(this.ei));
  18779. return a
  18780. }
  18781. });
  18782. c.Qv.create = function(a, b) {
  18783. return new c.Qv(a, b)
  18784. };
  18785. c.Pv = c.Gm.extend({
  18786. ctor: function(a, b) {
  18787. c.Gm.prototype.ctor.call(this);
  18788. b && this.e(a, b)
  18789. },
  18790. e: function(a, b) {
  18791. return c.Ph.prototype.e.call(this, a, b, 0.5)
  18792. },
  18793. k: function() {
  18794. var a = new c.Pv;
  18795. a.e(this.p, c.Wy(this.ei));
  18796. return a
  18797. }
  18798. });
  18799. c.Pv.create = function(a, b) {
  18800. return new c.Pv(a, b)
  18801. };
  18802. c.M9 = c.qa.extend({
  18803. j9: function() {}
  18804. });
  18805. c.xr = c.A.extend({
  18806. key: "",
  18807. az: 0,
  18808. JA: 0,
  18809. zu: 0,
  18810. ctor: function(a, b, d, e) {
  18811. c.A.prototype.ctor.call(this);
  18812. this.key = "";
  18813. void 0 !== e && this.e(a, b, d, e)
  18814. },
  18815. e: function(a, b, d, e) {
  18816. return c.A.prototype.e.call(this, a) ? (this.key = b, this.JA = e, this.az = d, !0) : !1
  18817. },
  18818. B: function(a) {
  18819. if (!a || !a.j9) throw "cc.ActionTween.startWithTarget(): target must be non-null, and target must implement updateTweenAction function";
  18820. c.A.prototype.B.call(this, a);
  18821. this.zu = this.JA - this.az
  18822. },
  18823. update: function() {},
  18824. reverse: function() {
  18825. return c.xr.create(this.duration, this.key, this.JA, this.az)
  18826. },
  18827. k: function() {
  18828. var a = new c.xr;
  18829. a.e(this.p, this.key, this.az, this.JA);
  18830. return a
  18831. }
  18832. });
  18833. c.xr.create = function(a, b, d, e) {
  18834. var f = new c.xr;
  18835. return f.e(a, b, d, e) ? f : null
  18836. };
  18837. c.action = c.yd.create;
  18838. c.speed = c.rs.create;
  18839. c.Rea = c.nw.create;
  18840. c.dla = c.Ae.create;
  18841. c.ada = c.Ph.create;
  18842. c.$ca = c.Gm.create;
  18843. c.cda = c.Qv.create;
  18844. c.bda = c.Pv.create;
  18845. c.show = c.mg.create;
  18846. c.Pha = c.Rh.create;
  18847. c.wpa = c.As.create;
  18848. c.lma = c.ks.create;
  18849. c.Pea = c.Yr.create;
  18850. c.Qea = c.Zr.create;
  18851. c.Bla = c.tw.create;
  18852. c.Vca = c.cc.create;
  18853. c.oca = c.A.create;
  18854. c.Jma = c.La.create;
  18855. c.repeat = c.ls.create;
  18856. c.T6 = c.Oo.create;
  18857. c.Xoa = c.df.create;
  18858. c.Ama = c.vw.create;
  18859. c.zma = c.Po.create;
  18860. c.moveBy = c.bf.create;
  18861. c.moveTo = c.ds.create;
  18862. c.Uoa = c.jl.create;
  18863. c.Toa = c.qs.create;
  18864. c.via = c.Ri.create;
  18865. c.wia = c.ow.create;
  18866. c.Qca = c.bl.create;
  18867. c.Rca = c.Ov.create;
  18868. c.Ema = c.Qd.create;
  18869. c.Dma = c.Qo.create;
  18870. c.blink = c.Br.create;
  18871. c.Lea = c.el.create;
  18872. c.Jea = c.Eo.create;
  18873. c.Kea = c.Fo.create;
  18874. c.tpa = c.Gw.create;
  18875. c.spa = c.zs.create;
  18876. c.xda = c.ad.create;
  18877. c.wma = c.Nm.create;
  18878. c.Hca = c.yr.create;
  18879. c.kpa = c.Ew.create;
  18880. c.pca = c.xr.create;
  18881. c.wc = c.A.extend({
  18882. aa: null,
  18883. ctor: function(a, b) {
  18884. c.fD();
  18885. c.A.prototype.ctor.call(this);
  18886. this.aa = c.size(0, 0);
  18887. b && this.e(a, b)
  18888. },
  18889. k: function() {
  18890. var a = new c.wc,
  18891. b = this.aa;
  18892. a.e(this.p, c.size(b.width, b.height));
  18893. return a
  18894. },
  18895. B: function(a) {
  18896. c.A.prototype.B.call(this, a);
  18897. var b = this.Fu(),
  18898. d = this.target;
  18899. (a = d.grid) && 0 < a.nj ? (b = a.s3(), a.fg() && b.width == this.aa.width && b.height == this.aa.height && a.cI()) : (a && a.fg() && a.setActive(!1), d.grid = b, d.grid.setActive(!0))
  18900. },
  18901. reverse: function() {
  18902. return c.Nm.create(this)
  18903. },
  18904. e: function(a, b) {
  18905. return c.A.prototype.e.call(this, a) ? (this.aa.width = b.width, this.aa.height = b.height, !0) : !1
  18906. },
  18907. Fu: function() {
  18908. c.log("cc.GridAction.getGrid(): it should be overridden in subclass.")
  18909. }
  18910. });
  18911. c.wc.create = function(a, b) {
  18912. return new c.wc(a, b)
  18913. };
  18914. c.ld = c.wc.extend({
  18915. Fu: function() {
  18916. return c.mB.create(this.aa)
  18917. },
  18918. xo: function(a) {
  18919. return this.target.grid.xo(a)
  18920. },
  18921. Zc: function(a) {
  18922. return this.target.grid.Zc(a)
  18923. },
  18924. fe: function(a, b) {
  18925. this.target.grid.fe(a, b)
  18926. }
  18927. });
  18928. c.ld.create = function(a, b) {
  18929. return new c.ld(a, b)
  18930. };
  18931. c.Ic = c.wc.extend({
  18932. yS: function(a) {
  18933. return this.target.grid.yS(a)
  18934. },
  18935. Pg: function(a) {
  18936. return this.target.grid.Pg(a)
  18937. },
  18938. Df: function(a, b) {
  18939. this.target.grid.Df(a, b)
  18940. },
  18941. Fu: function() {
  18942. return c.oC.create(this.aa)
  18943. }
  18944. });
  18945. c.Ic.create = function(a, b) {
  18946. return new c.Ic(a, b)
  18947. };
  18948. c.Om = c.af.extend({
  18949. B: function(a) {
  18950. c.af.prototype.B.call(this, a);
  18951. (a = this.target.grid) && a.fg() && a.setActive(!1)
  18952. }
  18953. });
  18954. c.Om.create = function() {
  18955. return new c.Om
  18956. };
  18957. c.WJ = c.af.extend({
  18958. rc: null,
  18959. ctor: function(a) {
  18960. c.af.prototype.ctor.call(this);
  18961. void 0 !== a && this.E4(a)
  18962. },
  18963. E4: function(a) {
  18964. this.rc = a;
  18965. return !0
  18966. },
  18967. B: function(a) {
  18968. c.af.prototype.B.call(this, a);
  18969. this.target.grid && this.target.grid.fg() && this.target.grid.W7(this.target.grid.nj + this.rc)
  18970. }
  18971. });
  18972. c.WJ.create = function(a) {
  18973. return new c.WJ(a)
  18974. };
  18975. c.XK = c.ld.extend({
  18976. Wf: 0,
  18977. ib: 0,
  18978. jb: 0,
  18979. ctor: function(a, b, d, e) {
  18980. c.wc.prototype.ctor.call(this);
  18981. void 0 !== e && this.e(a, b, d, e)
  18982. },
  18983. xq: function() {
  18984. return this.ib
  18985. },
  18986. cr: function(a) {
  18987. this.ib = a
  18988. },
  18989. Xn: function() {
  18990. return this.jb
  18991. },
  18992. qo: function(a) {
  18993. this.jb = a
  18994. },
  18995. e: function(a, b, d, e) {
  18996. return c.ld.prototype.e.call(this, a, b) ? (this.Wf = d, this.ib = e, this.jb = 1, !0) : !1
  18997. },
  18998. update: function(a) {
  18999. for (var b = this.aa, d = this.ib, e = c.d(0, 0), f = this.jb, g = this.Wf, h = 0; h < b.width + 1; ++h) for (var k = 0; k < b.height + 1; ++k) {
  19000. e.x = h;
  19001. e.y = k;
  19002. var m = this.Zc(e);
  19003. m.z += Math.sin(Math.PI * a * g * 2 + 0.01 * (m.y + m.x)) * d * f;
  19004. this.fe(e, m)
  19005. }
  19006. }
  19007. });
  19008. c.XK.create = function(a, b, d, e) {
  19009. return new c.XK(a, b, d, e)
  19010. };
  19011. c.lB = c.ld.extend({
  19012. ctor: function(a) {
  19013. void 0 !== a ? c.wc.prototype.ctor.call(this, a, c.size(1, 1)) : c.wc.prototype.ctor.call(this)
  19014. },
  19015. e: function(a) {
  19016. return c.ld.prototype.e.call(this, a, c.size(1, 1))
  19017. },
  19018. wz: function(a, b) {
  19019. return 1 != a.width || 1 != a.height ? (c.log("Grid size must be (1,1)"), !1) : c.ld.prototype.e.call(this, b, a)
  19020. },
  19021. update: function(a) {
  19022. var b = Math.PI * a;
  19023. a = Math.sin(b);
  19024. var d = Math.cos(b / 2),
  19025. b = new c.xc,
  19026. e = c.d(0, 0);
  19027. e.x = e.y = 1;
  19028. var f = this.Zc(e);
  19029. e.x = e.y = 0;
  19030. var e = this.Zc(e),
  19031. g = f.x,
  19032. h = e.x,
  19033. k, m;
  19034. g > h ? (f = c.d(0, 0), e = c.d(0, 1), k = c.d(1, 0), m = c.d(1, 1)) : (k = c.d(0, 0), m = c.d(0, 1), f = c.d(1, 0), e = c.d(1, 1), g = h);
  19035. b.x = g - g * d;
  19036. b.z = Math.abs(parseFloat(g * a / 4));
  19037. a = this.Zc(f);
  19038. a.x = b.x;
  19039. a.z += b.z;
  19040. this.fe(f, a);
  19041. a = this.Zc(e);
  19042. a.x = b.x;
  19043. a.z += b.z;
  19044. this.fe(e, a);
  19045. a = this.Zc(k);
  19046. a.x -= b.x;
  19047. a.z -= b.z;
  19048. this.fe(k, a);
  19049. a = this.Zc(m);
  19050. a.x -= b.x;
  19051. a.z -= b.z;
  19052. this.fe(m, a)
  19053. }
  19054. });
  19055. c.lB.create = function(a) {
  19056. return new c.lB(a)
  19057. };
  19058. c.mJ = c.lB.extend({
  19059. ctor: function(a) {
  19060. void 0 !== a ? c.wc.prototype.ctor.call(this, a, c.size(1, 1)) : c.wc.prototype.ctor.call(this)
  19061. },
  19062. update: function(a) {
  19063. var b = Math.PI * a;
  19064. a = Math.sin(b);
  19065. var d = Math.cos(b / 2),
  19066. b = new c.xc,
  19067. e = c.d(0, 0);
  19068. e.x = e.y = 1;
  19069. var f = this.Zc(e);
  19070. e.x = e.y = 0;
  19071. var e = this.Zc(e),
  19072. g = f.y,
  19073. h = e.y,
  19074. k, m;
  19075. g > h ? (f = c.d(0, 0), e = c.d(0, 1), k = c.d(1, 0), m = c.d(1, 1)) : (e = c.d(0, 0), f = c.d(0, 1), m = c.d(1, 0), k = c.d(1, 1), g = h);
  19076. b.y = g - g * d;
  19077. b.z = Math.abs(parseFloat(g * a) / 4);
  19078. a = this.Zc(f);
  19079. a.y = b.y;
  19080. a.z += b.z;
  19081. this.fe(f, a);
  19082. a = this.Zc(e);
  19083. a.y -= b.y;
  19084. a.z -= b.z;
  19085. this.fe(e, a);
  19086. a = this.Zc(k);
  19087. a.y = b.y;
  19088. a.z += b.z;
  19089. this.fe(k, a);
  19090. a = this.Zc(m);
  19091. a.y -= b.y;
  19092. a.z -= b.z;
  19093. this.fe(m, a)
  19094. }
  19095. });
  19096. c.mJ.create = function(a) {
  19097. return new c.mJ(a)
  19098. };
  19099. c.sJ = c.ld.extend({
  19100. va: null,
  19101. nf: 0,
  19102. Mx: 0,
  19103. tY: !1,
  19104. qb: !1,
  19105. ctor: function(a, b, d, e) {
  19106. c.wc.prototype.ctor.call(this);
  19107. this.va = c.d(0, 0);
  19108. void 0 !== e && this.e(a, b, d, e)
  19109. },
  19110. fga: function() {
  19111. return this.Mx
  19112. },
  19113. Cna: function(a) {
  19114. this.Mx = a
  19115. },
  19116. $ma: function(a) {
  19117. this.tY = a
  19118. },
  19119. we: function() {
  19120. return this.va
  19121. },
  19122. J: function(a) {
  19123. c.VH(a, this.va) || (this.va.x = a.x, this.va.y = a.y, this.qb = !0)
  19124. },
  19125. e: function(a, b, d, e) {
  19126. return c.ld.prototype.e.call(this, a, b) ? (this.J(d), this.nf = e, this.Mx = 0.7, this.qb = !0) : !1
  19127. },
  19128. update: function() {
  19129. if (this.qb) {
  19130. for (var a = this.aa.width, b = this.aa.height, d = this.nf, e = this.Mx, f = c.d(0, 0), g = c.d(0, 0), h, k, m, n = 0; n < a + 1; ++n) for (var q = 0; q < b + 1; ++q) f.x = n, f.y = q, h = this.Zc(f), g.x = this.va.x - h.x, g.y = this.va.y - h.y, k = c.rm(g), k < d && (k = d - k, k /= d, 0 == k && (k = 0.001), k = Math.log(k) * e, m = Math.exp(k) * d, k = c.rm(g), 0 < k && (g.x /= k, g.y /= k, g.x *= m, g.y *= m, h.z += c.rm(g) * e)), this.fe(f, h);
  19131. this.qb = !1
  19132. }
  19133. }
  19134. });
  19135. c.sJ.create = function(a, b, d, e) {
  19136. return new c.sJ(a, b, d, e)
  19137. };
  19138. c.XJ = c.ld.extend({
  19139. va: null,
  19140. nf: 0,
  19141. Wf: 0,
  19142. ib: 0,
  19143. jb: 0,
  19144. ctor: function(a, b, d, e, f, g) {
  19145. c.wc.prototype.ctor.call(this);
  19146. this.va = c.d(0, 0);
  19147. void 0 !== g && this.e(a, b, d, e, f, g)
  19148. },
  19149. we: function() {
  19150. return this.va
  19151. },
  19152. J: function(a) {
  19153. this.va.x = a.x;
  19154. this.va.y = a.y
  19155. },
  19156. xq: function() {
  19157. return this.ib
  19158. },
  19159. cr: function(a) {
  19160. this.ib = a
  19161. },
  19162. Xn: function() {
  19163. return this.jb
  19164. },
  19165. qo: function(a) {
  19166. this.jb = a
  19167. },
  19168. e: function(a, b, d, e, f, g) {
  19169. return c.ld.prototype.e.call(this, a, b) ? (this.J(d), this.nf = e, this.Wf = f, this.ib = g, this.jb = 1, !0) : !1
  19170. },
  19171. update: function(a) {
  19172. for (var b = this.aa.width, d = this.aa.height, e = c.d(0, 0), f = this.nf, g = this.Wf, h = this.ib, k = this.jb, m, n, q = c.d(0, 0), r = 0; r < b + 1; ++r) for (var t = 0; t < d + 1; ++t) e.x = r, e.y = t, m = this.Zc(e), q.x = this.va.x - m.x, q.y = this.va.y - m.y, n = c.rm(q), n < f && (n = f - n, m.z += Math.sin(a * Math.PI * g * 2 + 0.1 * n) * h * k * Math.pow(n / f, 2)), this.fe(e, m)
  19173. }
  19174. });
  19175. c.XJ.create = function(a, b, d, e, f, g) {
  19176. return new c.XJ(a, b, d, e, f, g)
  19177. };
  19178. c.aK = c.ld.extend({
  19179. Rl: 0,
  19180. Pt: !1,
  19181. ctor: function(a, b, d, e) {
  19182. c.wc.prototype.ctor.call(this);
  19183. void 0 !== e && this.e(a, b, d, e)
  19184. },
  19185. e: function(a, b, d, e) {
  19186. return c.ld.prototype.e.call(this, a, b) ? (this.Rl = d, this.Pt = e, !0) : !1
  19187. },
  19188. update: function() {
  19189. for (var a = this.aa.width, b = this.aa.height, d = this.Rl, e = this.Pt, f = c.d(0, 0), g, h = 0; h < a + 1; ++h) for (var k = 0; k < b + 1; ++k) f.x = h, f.y = k, g = this.Zc(f), g.x += c.Mb() % (2 * d) - d, g.y += c.Mb() % (2 * d) - d, e && (g.z += c.Mb() % (2 * d) - d), this.fe(f, g)
  19190. }
  19191. });
  19192. c.aK.create = function(a, b, d, e) {
  19193. return new c.aK(a, b, d, e)
  19194. };
  19195. c.tJ = c.ld.extend({
  19196. Wf: 0,
  19197. ib: 0,
  19198. jb: 0,
  19199. ctor: function(a, b, d, e) {
  19200. c.wc.prototype.ctor.call(this);
  19201. void 0 !== e && this.e(a, b, d, e)
  19202. },
  19203. xq: function() {
  19204. return this.ib
  19205. },
  19206. cr: function(a) {
  19207. this.ib = a
  19208. },
  19209. Xn: function() {
  19210. return this.jb
  19211. },
  19212. qo: function(a) {
  19213. this.jb = a
  19214. },
  19215. e: function(a, b, d, e) {
  19216. return c.ld.prototype.e.call(this, a, b) ? (this.Wf = d, this.ib = e, this.jb = 1, !0) : !1
  19217. },
  19218. update: function(a) {
  19219. for (var b = this.aa.width, d = this.aa.height, e = c.d(0, 0), f = this.Wf, g = this.ib, h = this.jb, k, m = 1; m < b; ++m) for (var n = 1; n < d; ++n) e.x = m, e.y = n, k = this.Zc(e), k.x += Math.sin(a * Math.PI * f * 2 + 0.01 * k.x) * g * h, k.y += Math.sin(a * Math.PI * f * 2 + 0.01 * k.y) * g * h, this.fe(e, k)
  19220. }
  19221. });
  19222. c.tJ.create = function(a, b, d, e) {
  19223. return new c.tJ(a, b, d, e)
  19224. };
  19225. c.WK = c.ld.extend({
  19226. Wf: 0,
  19227. ib: 0,
  19228. jb: 0,
  19229. jO: !1,
  19230. CM: !1,
  19231. ctor: function(a, b, d, e, f, g) {
  19232. c.wc.prototype.ctor.call(this);
  19233. void 0 !== g && this.e(a, b, d, e, f, g)
  19234. },
  19235. xq: function() {
  19236. return this.ib
  19237. },
  19238. cr: function(a) {
  19239. this.ib = a
  19240. },
  19241. Xn: function() {
  19242. return this.jb
  19243. },
  19244. qo: function(a) {
  19245. this.jb = a
  19246. },
  19247. e: function(a, b, d, e, f, g) {
  19248. return c.ld.prototype.e.call(this, a, b) ? (this.Wf = d, this.ib = e, this.jb = 1, this.CM = f, this.jO = g, !0) : !1
  19249. },
  19250. update: function(a) {
  19251. for (var b = this.aa.width, d = this.aa.height, e = c.d(0, 0), f = this.jO, g = this.CM, h = this.Wf, k = this.ib, m = this.jb, n, q = 0; q < b + 1; ++q) for (var r = 0; r < d + 1; ++r) e.x = q, e.y = r, n = this.Zc(e), f && (n.x += Math.sin(a * Math.PI * h * 2 + 0.01 * n.y) * k * m), g && (n.y += Math.sin(a * Math.PI * h * 2 + 0.01 * n.x) * k * m), this.fe(e, n)
  19252. }
  19253. });
  19254. c.WK.create = function(a, b, d, e, f, g) {
  19255. return new c.WK(a, b, d, e, f, g)
  19256. };
  19257. c.RK = c.ld.extend({
  19258. va: null,
  19259. ZN: 0,
  19260. ib: 0,
  19261. jb: 0,
  19262. ctor: function(a, b, d, e, f) {
  19263. c.wc.prototype.ctor.call(this);
  19264. this.va = c.d(0, 0);
  19265. void 0 !== f && this.e(a, b, d, e, f)
  19266. },
  19267. we: function() {
  19268. return this.va
  19269. },
  19270. J: function(a) {
  19271. this.va.x = a.x;
  19272. this.va.y = a.y
  19273. },
  19274. xq: function() {
  19275. return this.ib
  19276. },
  19277. cr: function(a) {
  19278. this.ib = a
  19279. },
  19280. Xn: function() {
  19281. return this.jb
  19282. },
  19283. qo: function(a) {
  19284. this.jb = a
  19285. },
  19286. e: function(a, b, d, e, f) {
  19287. return c.ld.prototype.e.call(this, a, b) ? (this.J(d), this.ZN = e, this.ib = f, this.jb = 1, !0) : !1
  19288. },
  19289. update: function(a) {
  19290. for (var b = this.va, d = this.aa.width, e = this.aa.height, f = c.d(0, 0), g = 0.1 * this.ib * this.jb, h = this.ZN, k, m, n, q = c.d(0, 0), r = 0; r < d + 1; ++r) for (var t = 0; t < e + 1; ++t) f.x = r, f.y = t, k = this.Zc(f), q.x = r - d / 2, q.y = t - e / 2, m = c.rm(q) * Math.cos(Math.PI / 2 + a * Math.PI * h * 2) * g, n = Math.sin(m) * (k.y - b.y) + Math.cos(m) * (k.x - b.x), m = Math.cos(m) * (k.y - b.y) - Math.sin(m) * (k.x - b.x), k.x = b.x + n, k.y = b.y + m, this.fe(f, k)
  19291. }
  19292. });
  19293. c.RK.create = function(a, b, d, e, f) {
  19294. return new c.RK(a, b, d, e, f)
  19295. };
  19296. c.bK = c.Ic.extend({
  19297. Rl: 0,
  19298. Pt: !1,
  19299. ctor: function(a, b, d, e) {
  19300. c.wc.prototype.ctor.call(this);
  19301. void 0 !== e && this.e(a, b, d, e)
  19302. },
  19303. e: function(a, b, d, e) {
  19304. return c.Ic.prototype.e.call(this, a, b) ? (this.Rl = d, this.Pt = e, !0) : !1
  19305. },
  19306. update: function() {
  19307. for (var a = this.aa, b = this.Rl, d = c.d(0, 0), e = 0; e < a.width; ++e) for (var f = 0; f < a.height; ++f) {
  19308. d.x = e;
  19309. d.y = f;
  19310. var g = this.Pg(d);
  19311. g.I.x += c.Mb() % (2 * b) - b;
  19312. g.R.x += c.Mb() % (2 * b) - b;
  19313. g.Q.x += c.Mb() % (2 * b) - b;
  19314. g.N.x += c.Mb() % (2 * b) - b;
  19315. g.I.y += c.Mb() % (2 * b) - b;
  19316. g.R.y += c.Mb() % (2 * b) - b;
  19317. g.Q.y += c.Mb() % (2 * b) - b;
  19318. g.N.y += c.Mb() % (2 * b) - b;
  19319. this.Pt && (g.I.z += c.Mb() % (2 * b) - b, g.R.z += c.Mb() % (2 * b) - b, g.Q.z += c.Mb() % (2 * b) - b, g.N.z += c.Mb() % (2 * b) - b);
  19320. this.Df(d, g)
  19321. }
  19322. }
  19323. });
  19324. c.bK.create = function(a, b, d, e) {
  19325. return new c.bK(a, b, d, e)
  19326. };
  19327. c.cK = c.Ic.extend({
  19328. Rl: 0,
  19329. oE: !1,
  19330. QN: !1,
  19331. ctor: function(a, b, d, e) {
  19332. c.wc.prototype.ctor.call(this);
  19333. void 0 !== e && this.e(a, b, d, e)
  19334. },
  19335. e: function(a, b, d, e) {
  19336. return c.Ic.prototype.e.call(this, a, b) ? (this.oE = !1, this.Rl = d, this.QN = e, !0) : !1
  19337. },
  19338. update: function() {
  19339. if (!1 === this.oE) {
  19340. for (var a = this.aa, b = this.Rl, d, e = c.d(0, 0), f = 0; f < a.width; ++f) for (var g = 0; g < a.height; ++g) e.x = f, e.y = g, d = this.Pg(e), d.I.x += c.Mb() % (2 * b) - b, d.R.x += c.Mb() % (2 * b) - b, d.Q.x += c.Mb() % (2 * b) - b, d.N.x += c.Mb() % (2 * b) - b, d.I.y += c.Mb() % (2 * b) - b, d.R.y += c.Mb() % (2 * b) - b, d.Q.y += c.Mb() % (2 * b) - b, d.N.y += c.Mb() % (2 * b) - b, this.QN && (d.I.z += c.Mb() % (2 * b) - b, d.R.z += c.Mb() % (2 * b) - b, d.Q.z += c.Mb() % (2 * b) - b, d.N.z += c.Mb() % (2 * b) - b), this.Df(e, d);
  19341. this.oE = !0
  19342. }
  19343. }
  19344. });
  19345. c.cK.create = function(a, b, d, e) {
  19346. return new c.cK(a, b, d, e)
  19347. };
  19348. function va() {
  19349. this.position = c.d(0, 0);
  19350. this.E8 = c.d(0, 0);
  19351. this.zu = c.d(0, 0)
  19352. }
  19353. c.dK = c.Ic.extend({
  19354. WE: 0,
  19355. Bk: 0,
  19356. qj: null,
  19357. qf: null,
  19358. ctor: function(a, b, d) {
  19359. c.wc.prototype.ctor.call(this);
  19360. this.qj = [];
  19361. this.qf = [];
  19362. void 0 !== d && this.e(a, b, d)
  19363. },
  19364. e: function(a, b, d) {
  19365. return c.Ic.prototype.e.call(this, a, b) ? (this.WE = d, this.qj.length = 0, this.qf.length = 0, !0) : !1
  19366. },
  19367. DI: function(a, b) {
  19368. for (var d = b - 1; 0 <= d; d--) {
  19369. var e = 0 | c.Mb() % (d + 1),
  19370. f = a[d];
  19371. a[d] = a[e];
  19372. a[e] = f
  19373. }
  19374. },
  19375. RG: function(a) {
  19376. var b = this.aa,
  19377. d = a.width * b.height + a.height;
  19378. return c.size(this.qj[d] / b.height - a.width, this.qj[d] % b.height - a.height)
  19379. },
  19380. l6: function(a, b) {
  19381. var d = this.Pg(a),
  19382. e = this.target.grid.aH(),
  19383. f = b.position;
  19384. d.I.x += f.x * e.x;
  19385. d.I.y += f.y * e.y;
  19386. d.R.x += f.x * e.x;
  19387. d.R.y += f.y * e.y;
  19388. d.Q.x += f.x * e.x;
  19389. d.Q.y += f.y * e.y;
  19390. d.N.x += f.x * e.x;
  19391. d.N.y += f.y * e.y;
  19392. this.Df(a, d)
  19393. },
  19394. B: function(a) {
  19395. c.Ic.prototype.B.call(this, a);
  19396. a = this.aa;
  19397. this.Bk = a.width * a.height;
  19398. for (var b = this.qj, d = b.length = 0; d < this.Bk; ++d) b[d] = d;
  19399. this.DI(b, this.Bk);
  19400. for (var b = this.qf, d = b.length = 0, e = c.size(0, 0), f = 0; f < a.width; ++f) for (var g = 0; g < a.height; ++g) b[d] = new va, b[d].position = c.d(f, g), b[d].E8 = c.d(f, g), e.width = f, e.height = g, b[d].zu = this.RG(e), ++d
  19401. },
  19402. update: function(a) {
  19403. for (var b = 0, d = this.aa, e = this.qf, f, g = c.d(0, 0), h = 0; h < d.width; ++h) for (var k = 0; k < d.height; ++k) g.x = h, g.y = k, f = e[b], f.position.x = f.zu.width * a, f.position.y = f.zu.height * a, this.l6(g, f), ++b
  19404. }
  19405. });
  19406. c.dK.create = function(a, b, d) {
  19407. return new c.dK(a, b, d)
  19408. };
  19409. c.Xr = c.Ic.extend({
  19410. IA: function(a, b) {
  19411. var d = this.aa.width * b,
  19412. e = this.aa.height * b;
  19413. return 0 == d + e ? 1 : Math.pow((a.width + a.height) / (d + e), 6)
  19414. },
  19415. NI: function(a) {
  19416. this.Df(a, this.Pg(a))
  19417. },
  19418. MI: function(a) {
  19419. this.Df(a, new c.uw)
  19420. },
  19421. BS: function(a, b) {
  19422. var d = this.Pg(a),
  19423. e = this.target.grid.aH();
  19424. d.I.x += e.x / 2 * (1 - b);
  19425. d.I.y += e.y / 2 * (1 - b);
  19426. d.R.x -= e.x / 2 * (1 - b);
  19427. d.R.y += e.y / 2 * (1 - b);
  19428. d.Q.x += e.x / 2 * (1 - b);
  19429. d.Q.y -= e.y / 2 * (1 - b);
  19430. d.N.x -= e.x / 2 * (1 - b);
  19431. d.N.y -= e.y / 2 * (1 - b);
  19432. this.Df(a, d)
  19433. },
  19434. update: function(a) {
  19435. for (var b = this.aa, d = c.d(0, 0), e = c.size(0, 0), f, g = 0; g < b.width; ++g) for (var h = 0; h < b.height; ++h) d.x = g, d.y = h, e.width = g, e.height = h, f = this.IA(e, a), 0 == f ? this.MI(d) : 1 > f ? this.BS(d, f) : this.NI(d)
  19436. }
  19437. });
  19438. c.Xr.create = function(a, b) {
  19439. return new c.Xr(a, b)
  19440. };
  19441. c.jB = c.Xr.extend({
  19442. IA: function(a, b) {
  19443. return 0 == a.width + a.height ? 1 : Math.pow((this.aa.width * (1 - b) + this.aa.height * (1 - b)) / (a.width + a.height), 6)
  19444. }
  19445. });
  19446. c.jB.create = function(a, b) {
  19447. return new c.jB(a, b)
  19448. };
  19449. c.mw = c.Xr.extend({
  19450. IA: function(a, b) {
  19451. var d = this.aa.height * b;
  19452. return 0 == d ? 1 : Math.pow(a.height / d, 6)
  19453. },
  19454. BS: function(a, b) {
  19455. var d = this.Pg(a),
  19456. e = this.target.grid.aH();
  19457. d.I.y += e.y / 2 * (1 - b);
  19458. d.R.y += e.y / 2 * (1 - b);
  19459. d.Q.y -= e.y / 2 * (1 - b);
  19460. d.N.y -= e.y / 2 * (1 - b);
  19461. this.Df(a, d)
  19462. }
  19463. });
  19464. c.mw.create = function(a, b) {
  19465. return new c.mw(a, b)
  19466. };
  19467. c.kB = c.mw.extend({
  19468. IA: function(a, b) {
  19469. return 0 == a.height ? 1 : Math.pow(this.aa.height * (1 - b) / a.height, 6)
  19470. }
  19471. });
  19472. c.kB.create = function(a, b) {
  19473. return new c.kB(a, b)
  19474. };
  19475. c.rC = c.Ic.extend({
  19476. WE: null,
  19477. Bk: 0,
  19478. qj: null,
  19479. ctor: function(a, b, d) {
  19480. c.wc.prototype.ctor.call(this);
  19481. this.qj = [];
  19482. void 0 !== b && this.e(a, b, d)
  19483. },
  19484. e: function(a, b, d) {
  19485. return c.Ic.prototype.e.call(this, a, b) ? (this.WE = d || 0, this.qj.length = 0, !0) : !1
  19486. },
  19487. DI: function(a, b) {
  19488. for (var d = b - 1; 0 <= d; d--) {
  19489. var e = 0 | c.Mb() % (d + 1),
  19490. f = a[d];
  19491. a[d] = a[e];
  19492. a[e] = f
  19493. }
  19494. },
  19495. NI: function(a) {
  19496. this.Df(a, this.Pg(a))
  19497. },
  19498. MI: function(a) {
  19499. this.Df(a, new c.uw)
  19500. },
  19501. B: function(a) {
  19502. c.Ic.prototype.B.call(this, a);
  19503. this.Bk = this.aa.width * this.aa.height;
  19504. a = this.qj;
  19505. for (var b = a.length = 0; b < this.Bk; ++b) a[b] = b;
  19506. this.DI(a, this.Bk)
  19507. },
  19508. update: function(a) {
  19509. a = 0 | a * this.Bk;
  19510. for (var b = this.aa, d, e = c.d(0, 0), f = this.qj, g = 0; g < this.Bk; g++) d = f[g], e.x = 0 | d / b.height, e.y = d % (0 | b.height), g < a ? this.MI(e) : this.NI(e)
  19511. }
  19512. });
  19513. c.rC.create = function(a, b, d) {
  19514. return new c.rC(a, b, d)
  19515. };
  19516. c.YK = c.Ic.extend({
  19517. Wf: 0,
  19518. ib: 0,
  19519. jb: 0,
  19520. ctor: function(a, b, d, e) {
  19521. c.wc.prototype.ctor.call(this);
  19522. void 0 !== e && this.e(a, b, d, e)
  19523. },
  19524. xq: function() {
  19525. return this.ib
  19526. },
  19527. cr: function(a) {
  19528. this.ib = a
  19529. },
  19530. Xn: function() {
  19531. return this.jb
  19532. },
  19533. qo: function(a) {
  19534. this.jb = a
  19535. },
  19536. e: function(a, b, d, e) {
  19537. return c.Ic.prototype.e.call(this, a, b) ? (this.Wf = d, this.ib = e, this.jb = 1, !0) : !1
  19538. },
  19539. update: function(a) {
  19540. for (var b = this.aa, d = this.Wf, e = this.ib, f = this.jb, g = c.d(0, 0), h, k = 0; k < b.width; k++) for (var m = 0; m < b.height; m++) g.x = k, g.y = m, h = this.Pg(g), h.I.z = Math.sin(a * Math.PI * d * 2 + 0.01 * (h.I.y + h.I.x)) * e * f, h.R.z = h.I.z, h.Q.z = h.I.z, h.N.z = h.I.z, this.Df(g, h)
  19541. }
  19542. });
  19543. c.YK.create = function(a, b, d, e) {
  19544. return new c.YK(a, b, d, e)
  19545. };
  19546. c.qJ = c.Ic.extend({
  19547. kk: 0,
  19548. ib: 0,
  19549. jb: 0,
  19550. ctor: function(a, b, d, e) {
  19551. c.wc.prototype.ctor.call(this);
  19552. void 0 !== e && this.e(a, b, d, e)
  19553. },
  19554. xq: function() {
  19555. return this.ib
  19556. },
  19557. cr: function(a) {
  19558. this.ib = a
  19559. },
  19560. Xn: function() {
  19561. return this.jb
  19562. },
  19563. qo: function(a) {
  19564. this.jb = a
  19565. },
  19566. e: function(a, b, d, e) {
  19567. return c.Ic.prototype.e.call(this, a, b) ? (this.kk = d, this.ib = e, this.jb = 1, !0) : !1
  19568. },
  19569. update: function(a) {
  19570. var b = Math.sin(Math.PI * a * this.kk * 2) * this.ib * this.jb;
  19571. a = Math.sin(Math.PI * (a * this.kk * 2 + 1)) * this.ib * this.jb;
  19572. for (var d = this.aa, e = this.target.grid, f, g = c.d(0, 0), h = 0; h < d.width; h++) for (var k = 0; k < d.height; k++) g.x = h, g.y = k, f = e.Pg(g), 0 == (h + k) % 2 ? (f.I.z += b, f.R.z += b, f.Q.z += b, f.N.z += b) : (f.I.z += a, f.R.z += a, f.Q.z += a, f.N.z += a), e.Df(g, f)
  19573. }
  19574. });
  19575. c.qJ.create = function(a, b, d, e) {
  19576. return new c.qJ(a, b, d, e)
  19577. };
  19578. c.aC = c.Ic.extend({
  19579. L_: 0,
  19580. lu: null,
  19581. ctor: function(a, b) {
  19582. c.wc.prototype.ctor.call(this);
  19583. void 0 !== b && this.e(a, b)
  19584. },
  19585. e: function(a, b) {
  19586. this.L_ = b;
  19587. return c.Ic.prototype.e.call(this, a, c.size(1, b))
  19588. },
  19589. update: function(a) {
  19590. for (var b = this.aa, d = this.lu.width, e, f, g = c.d(0, 0), h = 0; h < b.height; ++h) g.y = h, e = this.Pg(g), f = 1, 0 == h % 2 && (f = -1), e.I.x += f * d * a, e.R.x += f * d * a, e.Q.x += f * d * a, e.N.x += f * d * a, this.Df(g, e)
  19591. },
  19592. B: function(a) {
  19593. c.Ic.prototype.B.call(this, a);
  19594. this.lu = c.L.Iu()
  19595. }
  19596. });
  19597. c.aC.create = function(a, b) {
  19598. return new c.aC(a, b)
  19599. };
  19600. c.$B = c.Ic.extend({
  19601. sY: 0,
  19602. lu: null,
  19603. ctor: function(a, b) {
  19604. c.wc.prototype.ctor.call(this);
  19605. void 0 !== b && this.e(a, b)
  19606. },
  19607. e: function(a, b) {
  19608. this.sY = b;
  19609. return c.Ic.prototype.e.call(this, a, c.size(b, 1))
  19610. },
  19611. update: function(a) {
  19612. for (var b = this.aa.width, d = this.lu.height, e, f, g = c.d(0, 0), h = 0; h < b; ++h) g.x = h, e = this.Pg(g), f = 1, 0 == h % 2 && (f = -1), e.I.y += f * d * a, e.R.y += f * d * a, e.Q.y += f * d * a, e.N.y += f * d * a, this.Df(g, e)
  19613. },
  19614. B: function(a) {
  19615. c.Ic.prototype.B.call(this, a);
  19616. this.lu = c.L.Iu()
  19617. }
  19618. });
  19619. c.$B.create = function(a, b) {
  19620. return new c.$B(a, b)
  19621. };
  19622. c.sw = c.ld.extend({
  19623. update: function(a) {
  19624. var b = Math.max(0, a - 0.25),
  19625. b = -100 - b * b * 500,
  19626. d = +Math.PI / 2 + -Math.PI / 2 * Math.sqrt(a);
  19627. a = Math.sin(d);
  19628. for (var d = Math.cos(d), e = this.aa, f = c.d(0, 0), g = 0; g <= e.width; ++g) for (var h = 0; h <= e.height; ++h) {
  19629. f.x = g;
  19630. f.y = h;
  19631. var k = this.Zc(f),
  19632. m = Math.sqrt(k.x * k.x + (k.y - b) * (k.y - b)),
  19633. n = m * a,
  19634. q = Math.asin(k.x / m) / a,
  19635. r = Math.cos(q);
  19636. k.x = q <= Math.PI ? n * Math.sin(q) : 0;
  19637. k.y = m + b - n * (1 - r) * a;
  19638. k.z = n * (1 - r) * d / 7;
  19639. 0.5 > k.z && (k.z = 0.5);
  19640. this.fe(f, k)
  19641. }
  19642. }
  19643. });
  19644. c.sw.create = function(a, b) {
  19645. return new c.sw(a, b)
  19646. };
  19647. c.cb = c.la.extend({
  19648. Cc: null,
  19649. jj: 0,
  19650. qc: null,
  19651. ci: null,
  19652. Vm: null,
  19653. Yd: !1,
  19654. ob: "ProgressTimer",
  19655. H3: function() {
  19656. return c.d(this.ci.x, this.ci.y)
  19657. },
  19658. K7: function(a) {
  19659. this.ci = c.aR(a)
  19660. },
  19661. Z2: function() {
  19662. return c.d(this.Vm.x, this.Vm.y)
  19663. },
  19664. l7: function(a) {
  19665. this.Vm = c.aR(a)
  19666. },
  19667. dH: function() {
  19668. return this.Cc
  19669. },
  19670. L3: function() {
  19671. return this.jj
  19672. },
  19673. MP: function() {
  19674. return this.qc
  19675. },
  19676. P7: function(a) {
  19677. this.jj != a && (this.jj = c.gd(a, 0, 100), this.MF())
  19678. },
  19679. ee: function() {},
  19680. Ue: function() {
  19681. return !1
  19682. },
  19683. Q4: function() {
  19684. return this.Yd
  19685. },
  19686. ZC: function(a) {
  19687. if (a < c.cb.fK) {
  19688. var b = c.cb.HW;
  19689. return this.Yd ? c.d(b >> 7 - (a << 1) & 1, b >> 7 - ((a << 1) + 1) & 1) : c.d(b >> (a << 1) + 1 & 1, b >> (a << 1) & 1)
  19690. }
  19691. return c.d(0, 0)
  19692. },
  19693. Ux: null,
  19694. wF: 270,
  19695. tD: 270,
  19696. nf: 0,
  19697. jD: !1,
  19698. UC: null,
  19699. Hd: 0,
  19700. Nc: null,
  19701. Vf: null,
  19702. TF: null,
  19703. hu: !1,
  19704. ctor: null,
  19705. Us: function() {
  19706. c.la.prototype.ctor.call(this);
  19707. this.Cc = c.cb.Ti;
  19708. this.jj = 0;
  19709. this.ci = c.d(0, 0);
  19710. this.Vm = c.d(0, 0);
  19711. this.Yd = !1;
  19712. this.qc = null;
  19713. this.Ux = c.d(0, 0);
  19714. this.tD = this.wF = 270;
  19715. this.nf = 0;
  19716. this.jD = !1;
  19717. this.UC = c.rect(0, 0, 0, 0)
  19718. },
  19719. Vs: function() {
  19720. c.la.prototype.ctor.call(this);
  19721. this.Cc = c.cb.Ti;
  19722. this.jj = 0;
  19723. this.ci = c.d(0, 0);
  19724. this.Vm = c.d(0, 0);
  19725. this.Yd = !1;
  19726. this.qc = null;
  19727. this.TF = c.m.createBuffer();
  19728. this.Hd = 0;
  19729. this.Vf = this.Nc = null;
  19730. this.hu = !1
  19731. },
  19732. Va: function(a) {
  19733. this.qc.color = a;
  19734. this.sc()
  19735. },
  19736. Fa: function(a) {
  19737. this.qc.opacity = a;
  19738. this.sc()
  19739. },
  19740. xf: function() {
  19741. return this.qc.color
  19742. },
  19743. yf: function() {
  19744. return this.qc.opacity
  19745. },
  19746. YR: null,
  19747. f0: function(a) {
  19748. this.Yd !== a && (this.Yd = a)
  19749. },
  19750. g0: function(a) {
  19751. this.Yd !== a && (this.Yd = a, this.Vf = this.Nc = null, this.Hd = 0)
  19752. },
  19753. EA: null,
  19754. l0: function(a) {
  19755. this.qc != a && (this.qc = a, this.width = this.qc.width, this.height = this.qc.height)
  19756. },
  19757. m0: function(a) {
  19758. a && this.qc != a && (this.qc = a, this.width = a.width, this.height = a.height, this.Nc && (this.Vf = this.Nc = null, this.Hd = 0))
  19759. },
  19760. zI: null,
  19761. t0: function(a) {
  19762. a !== this.Cc && (this.Cc = a)
  19763. },
  19764. u0: function(a) {
  19765. a !== this.Cc && (this.Nc && (this.Vf = this.Nc = null, this.Hd = 0), this.Cc = a)
  19766. },
  19767. sI: null,
  19768. d0: function(a) {
  19769. this.Yd !== a && (this.Yd = a)
  19770. },
  19771. e0: function(a) {
  19772. this.Yd !== a && (this.Yd = a, this.Vf = this.Nc = null, this.Hd = 0)
  19773. },
  19774. Oe: function(a) {
  19775. var b = this.qc;
  19776. if (!b) return {
  19777. da: 0,
  19778. G: 0
  19779. };
  19780. var d = b.quad,
  19781. e = c.d(d.I.n.da, d.I.n.G),
  19782. d = c.d(d.N.n.da, d.N.n.G);
  19783. b.textureRectRotated && (b = a.x, a.x = a.y, a.y = b);
  19784. return {
  19785. da: e.x * (1 - a.x) + d.x * a.x,
  19786. G: e.y * (1 - a.y) + d.y * a.y
  19787. }
  19788. },
  19789. Pe: function(a) {
  19790. if (!this.qc) return {
  19791. x: 0,
  19792. y: 0
  19793. };
  19794. var b = this.qc.quad,
  19795. d = c.d(b.I.j.x, b.I.j.y),
  19796. b = c.d(b.N.j.x, b.N.j.y);
  19797. return {
  19798. x: d.x * (1 - a.x) + b.x * a.x,
  19799. y: d.y * (1 - a.y) + b.y * a.y
  19800. }
  19801. },
  19802. pH: null,
  19803. GZ: function(a) {
  19804. this.percentage = 0;
  19805. this.anchorY = this.anchorX = 0.5;
  19806. this.Cc = c.cb.Ti;
  19807. this.Yd = !1;
  19808. this.midPoint = c.d(0.5, 0.5);
  19809. this.barChangeRate = c.d(1, 1);
  19810. this.sprite = a;
  19811. return !0
  19812. },
  19813. HZ: function(a) {
  19814. this.percentage = 0;
  19815. this.Vf = this.Nc = null;
  19816. this.Hd = 0;
  19817. this.anchorY = this.anchorX = 0.5;
  19818. this.Cc = c.cb.Ti;
  19819. this.Yd = !1;
  19820. this.midPoint = c.d(0.5, 0.5);
  19821. this.barChangeRate = c.d(1, 1);
  19822. this.sprite = a;
  19823. this.shaderProgram = c.ge.Dc(c.Zj);
  19824. return !0
  19825. },
  19826. Y: null,
  19827. Zm: function(a) {
  19828. a = a || c.m;
  19829. var b = this.qc;
  19830. b.Gp && (a.globalCompositeOperation = "lighter");
  19831. var d = c.view.ma,
  19832. e = c.view.Na;
  19833. a.globalAlpha = b.Ia / 255;
  19834. var f = b.ba,
  19835. g = b.S,
  19836. h = b.Pb,
  19837. k = b.rD,
  19838. m = 0 | h.x,
  19839. n = -h.y - f.height,
  19840. q = b.Wp;
  19841. k.width = f.width * d;
  19842. k.height = f.height * e;
  19843. a.save();
  19844. b.dc && (m = -h.x - f.width, a.scale(-1, 1));
  19845. b.ec && (n = h.y, a.scale(1, -1));
  19846. m *= d;
  19847. n *= e;
  19848. this.Cc == c.cb.Rm ? (f = this.UC, a.beginPath(), a.rect(f.x * d, f.y * e, f.width * d, f.height * e), a.clip(), a.closePath()) : this.Cc == c.cb.Ti && (f = this.Ux.x * d, h = this.Ux.y * e, a.beginPath(), a.arc(f, h, this.nf * e, Math.PI / 180 * this.wF, Math.PI / 180 * this.tD, this.jD), a.lineTo(f, h), a.clip(), a.closePath());
  19849. b.O && q.vr ? (d = b.O.Ob, this.bx ? a.drawImage(d, 0, 0, q.width, q.height, m, n, k.width, k.height) : a.drawImage(d, q.x, q.y, q.width, q.height, m, n, k.width, k.height)) : 0 !== g.width && (k = this.color, a.fillStyle = "rgba(" + k.r + "," + k.g + "," + k.b + ",1)", a.fillRect(m, n, g.width * d, g.height * e));
  19850. a.restore();
  19851. c.Ng()
  19852. },
  19853. fk: function(a) {
  19854. a = a || c.m;
  19855. if (this.Nc && this.qc) {
  19856. c.av(this);
  19857. var b = this.qc.xi();
  19858. c.Ai(b.src, b.W);
  19859. c.Xc(c.Sm);
  19860. c.Te(this.qc.texture);
  19861. a.bindBuffer(a.ARRAY_BUFFER, this.TF);
  19862. this.hu && (a.bufferData(a.ARRAY_BUFFER, this.Vf, a.DYNAMIC_DRAW), this.hu = !1);
  19863. b = c.Rd.BYTES_PER_ELEMENT;
  19864. a.vertexAttribPointer(c.Ab, 2, a.FLOAT, !1, b, 0);
  19865. a.vertexAttribPointer(c.ef, 4, a.UNSIGNED_BYTE, !0, b, 8);
  19866. a.vertexAttribPointer(c.Sd, 2, a.FLOAT, !1, b, 12);
  19867. this.Cc === c.cb.Ti ? a.drawArrays(a.TRIANGLE_FAN, 0, this.Hd) : this.Cc == c.cb.Rm && (this.Yd ? (a.drawArrays(a.TRIANGLE_STRIP, 0, this.Hd / 2), a.drawArrays(a.TRIANGLE_STRIP, 4, this.Hd / 2), c.Lg++) : a.drawArrays(a.TRIANGLE_STRIP, 0, this.Hd));
  19868. c.Lg++
  19869. }
  19870. },
  19871. U0: function() {
  19872. if (this.qc) {
  19873. var a, b = this.ci;
  19874. a = this.jj / 100;
  19875. var d = 2 * c.PI * (this.Yd ? a : 1 - a),
  19876. e = c.d(b.x, 1),
  19877. f = c.c6(e, b, d),
  19878. d = 0;
  19879. if (0 == a) f = e, d = 0;
  19880. else if (1 == a) f = e, d = 4;
  19881. else {
  19882. var g = c.cU,
  19883. h = c.cb.fK;
  19884. for (a = 0; a <= h; ++a) {
  19885. var k = (a + (h - 1)) % h,
  19886. m = this.ZC(a % h),
  19887. k = this.ZC(k);
  19888. 0 == a ? k = c.dR(m, k, 1 - b.x) : 4 == a && (m = c.dR(m, k, 1 - b.x));
  19889. var n = c.d(0, 0);
  19890. c.QH(m, k, b, f, n) && (0 != a && 4 != a || 0 <= n.x && 1 >= n.x) && 0 <= n.y && n.y < g && (g = n.y, d = a)
  19891. }
  19892. f = c.Ij(b, c.Jj(c.de(f, b), g))
  19893. }
  19894. g = !0;
  19895. this.Hd != d + 3 && (g = !1, this.Vf = this.Nc = null, this.Hd = 0);
  19896. if (!this.Nc) {
  19897. h = this.Hd = d + 3;
  19898. m = c.Rd.BYTES_PER_ELEMENT;
  19899. this.Vf = new ArrayBuffer(h * m);
  19900. k = [];
  19901. for (a = 0; a < h; a++) k[a] = new c.Rd(null, null, null, this.Vf, a * m);
  19902. this.Nc = k;
  19903. if (!this.Nc) {
  19904. c.log("cc.ProgressTimer._updateRadial() : Not enough memory");
  19905. return
  19906. }
  19907. }
  19908. this.sc();
  19909. h = this.Nc;
  19910. if (!g) for (h[0].n = this.Oe(b), h[0].j = this.Pe(b), h[1].n = this.Oe(e), h[1].j = this.Pe(e), a = 0; a < d; a++) b = this.ZC(a), h[a + 2].n = this.Oe(b), h[a + 2].j = this.Pe(b);
  19911. h[this.Hd - 1].n = this.Oe(f);
  19912. h[this.Hd - 1].j = this.Pe(f)
  19913. }
  19914. },
  19915. O0: function() {
  19916. if (this.qc) {
  19917. var a, b = this.jj / 100,
  19918. d = this.Vm,
  19919. d = c.Jj(c.d(1 - d.x + b * d.x, 1 - d.y + b * d.y), 0.5),
  19920. b = c.de(this.ci, d),
  19921. d = c.Ij(this.ci, d);
  19922. 0 > b.x && (d.x += -b.x, b.x = 0);
  19923. 1 < d.x && (b.x -= d.x - 1, d.x = 1);
  19924. 0 > b.y && (d.y += -b.y, b.y = 0);
  19925. 1 < d.y && (b.y -= d.y - 1, d.y = 1);
  19926. if (this.Yd) {
  19927. if (!this.Nc) {
  19928. this.Hd = 8;
  19929. var e = c.Rd.BYTES_PER_ELEMENT;
  19930. this.Vf = new ArrayBuffer(8 * e);
  19931. var f = [];
  19932. for (a = 0; 8 > a; a++) f[a] = new c.Rd(null, null, null, this.Vf, a * e);
  19933. f[0].n = this.Oe(c.d(0, 1));
  19934. f[0].j = this.Pe(c.d(0, 1));
  19935. f[1].n = this.Oe(c.d(0, 0));
  19936. f[1].j = this.Pe(c.d(0, 0));
  19937. f[6].n = this.Oe(c.d(1, 1));
  19938. f[6].j = this.Pe(c.d(1, 1));
  19939. f[7].n = this.Oe(c.d(1, 0));
  19940. f[7].j = this.Pe(c.d(1, 0));
  19941. this.Nc = f
  19942. }
  19943. a = this.Nc;
  19944. a[2].n = this.Oe(c.d(b.x, d.y));
  19945. a[2].j = this.Pe(c.d(b.x, d.y));
  19946. a[3].n = this.Oe(c.d(b.x, b.y));
  19947. a[3].j = this.Pe(c.d(b.x, b.y));
  19948. a[4].n = this.Oe(c.d(d.x, d.y));
  19949. a[4].j = this.Pe(c.d(d.x, d.y));
  19950. a[5].n = this.Oe(c.d(d.x, b.y));
  19951. a[5].j = this.Pe(c.d(d.x, b.y))
  19952. } else {
  19953. if (!this.Nc) for (this.Hd = 4, e = c.Rd.BYTES_PER_ELEMENT, this.Vf = new ArrayBuffer(4 * e), this.Nc = [], a = 0; 4 > a; a++) this.Nc[a] = new c.Rd(null, null, null, this.Vf, a * e);
  19954. a = this.Nc;
  19955. a[0].n = this.Oe(c.d(b.x, d.y));
  19956. a[0].j = this.Pe(c.d(b.x, d.y));
  19957. a[1].n = this.Oe(c.d(b.x, b.y));
  19958. a[1].j = this.Pe(c.d(b.x, b.y));
  19959. a[2].n = this.Oe(c.d(d.x, d.y));
  19960. a[2].j = this.Pe(c.d(d.x, d.y));
  19961. a[3].n = this.Oe(c.d(d.x, b.y));
  19962. a[3].j = this.Pe(c.d(d.x, b.y))
  19963. }
  19964. this.sc()
  19965. }
  19966. },
  19967. sc: function() {
  19968. if (this.qc && this.Nc) {
  19969. for (var a = this.qc.quad.Q.v, b = this.Nc, d = 0, e = this.Hd; d < e; ++d) b[d].v = a;
  19970. this.hu = !0
  19971. }
  19972. },
  19973. MF: null,
  19974. Q0: function() {
  19975. var a = this.qc,
  19976. b = a.width,
  19977. d = a.height,
  19978. e = this.ci;
  19979. if (this.Cc == c.cb.Ti) {
  19980. this.nf = Math.round(Math.sqrt(b * b + d * d));
  19981. var f, g = !1,
  19982. h = this.Ux;
  19983. h.x = b * e.x;
  19984. h.y = -d * e.y;
  19985. this.Yd ? (f = 270, e = 270 - 3.6 * this.jj) : (e = -90, f = -90 + 3.6 * this.jj);
  19986. a.dc && (h.x -= 2 * b * this.ci.x, e = -e - 180, f = -f - 180, g = !g);
  19987. a.ec && (h.y += 2 * d * this.ci.y, g = !g, e = -e, f = -f);
  19988. this.wF = e;
  19989. this.tD = f;
  19990. this.jD = g
  19991. } else {
  19992. f = this.Vm;
  19993. h = this.jj / 100;
  19994. g = this.UC;
  19995. f = c.size(b * (1 - f.x), d * (1 - f.y));
  19996. var h = c.size((b - f.width) * h, (d - f.height) * h),
  19997. h = c.size(f.width + h.width, f.height + h.height),
  19998. k = c.d(b * e.x, d * e.y);
  19999. f = k.x - h.width / 2;
  20000. 0.5 < e.x && h.width / 2 >= b - k.x && (f = b - h.width);
  20001. b = k.y - h.height / 2;
  20002. 0.5 < e.y && h.height / 2 >= d - k.y && (b = d - h.height);
  20003. g.x = 0;
  20004. d = 1;
  20005. a.dc && (g.x -= h.width, d = -1);
  20006. 0 < f && (g.x += f * d);
  20007. g.y = 0;
  20008. d = 1;
  20009. a.ec && (g.y += h.height, d = -1);
  20010. 0 < b && (g.y -= b * d);
  20011. g.width = h.width;
  20012. g.height = -h.height
  20013. }
  20014. },
  20015. R0: function() {
  20016. var a = this.Cc;
  20017. a === c.cb.Ti ? this.U0() : a === c.cb.Rm && this.O0();
  20018. this.hu = !0
  20019. }
  20020. });
  20021. p = c.cb.prototype;
  20022. c.F == c.ea ? (p.ctor = p.Vs, p.YR = p.g0, p.EA = p.m0, p.zI = p.u0, p.sI = p.e0, p.pH = p.HZ, p.Y = p.fk, p.MF = p.R0) : (p.ctor = p.Us, p.YR = p.f0, p.EA = p.l0, p.zI = p.t0, p.sI = p.d0, p.pH = p.GZ, p.Y = p.Zm, p.MF = c.cb.prototype.Q0);
  20023. c.i(p, "midPoint", p.H3, p.K7);
  20024. c.i(p, "barChangeRate", p.Z2, p.l7);
  20025. c.i(p, "type", p.dH, p.zI);
  20026. c.i(p, "percentage", p.L3, p.P7);
  20027. c.i(p, "sprite", p.MP, p.EA);
  20028. c.i(p, "reverseDir", p.Q4, p.sI);
  20029. c.cb.create = function(a) {
  20030. var b = new c.cb;
  20031. return b.pH(a) ? b : null
  20032. };
  20033. c.cb.fK = 4;
  20034. c.cb.HW = 75;
  20035. c.cb.Ti = 0;
  20036. c.cb.Rm = 1;
  20037. c.GB = c.A.extend({
  20038. Gd: 0,
  20039. ed: 0,
  20040. ctor: function(a, b) {
  20041. c.A.prototype.ctor.call(this);
  20042. this.ed = this.Gd = 0;
  20043. void 0 !== b && this.e(a, b)
  20044. },
  20045. e: function(a, b) {
  20046. return c.A.prototype.e.call(this, a) ? (this.Gd = b, !0) : !1
  20047. },
  20048. k: function() {
  20049. var a = new c.GB;
  20050. a.e(this.p, this.Gd);
  20051. return a
  20052. },
  20053. reverse: function() {
  20054. c.log("cc.ProgressTo.reverse(): reverse hasn't been supported.");
  20055. return null
  20056. },
  20057. B: function(a) {
  20058. c.A.prototype.B.call(this, a);
  20059. this.ed = a.percentage;
  20060. 100 == this.ed && (this.ed = 0)
  20061. },
  20062. update: function(a) {
  20063. this.target instanceof c.cb && (this.target.percentage = this.ed + (this.Gd - this.ed) * a)
  20064. }
  20065. });
  20066. c.GB.create = function(a, b) {
  20067. return new c.GB(a, b)
  20068. };
  20069. c.is = c.A.extend({
  20070. Gd: 0,
  20071. ed: 0,
  20072. ctor: function(a, b, d) {
  20073. c.A.prototype.ctor.call(this);
  20074. this.ed = this.Gd = 0;
  20075. void 0 !== d && this.e(a, b, d)
  20076. },
  20077. e: function(a, b, d) {
  20078. return c.A.prototype.e.call(this, a) ? (this.Gd = d, this.ed = b, !0) : !1
  20079. },
  20080. k: function() {
  20081. var a = new c.is;
  20082. a.e(this.p, this.ed, this.Gd);
  20083. return a
  20084. },
  20085. reverse: function() {
  20086. return c.is.create(this.p, this.Gd, this.ed)
  20087. },
  20088. B: function(a) {
  20089. c.A.prototype.B.call(this, a)
  20090. },
  20091. update: function(a) {
  20092. this.target instanceof c.cb && (this.target.percentage = this.ed + (this.Gd - this.ed) * a)
  20093. }
  20094. });
  20095. c.is.create = function(a, b, d) {
  20096. return new c.is(a, b, d)
  20097. };
  20098. c.ms = 4208917214;
  20099. c.mba = c.qa.extend({
  20100. bg: function() {}
  20101. });
  20102. c.eba = 0;
  20103. c.kl = 1;
  20104. c.Dw = 0;
  20105. c.dba = 1;
  20106. c.Aa = c.il.extend({
  20107. ra: null,
  20108. mb: null,
  20109. p: null,
  20110. ai: !1,
  20111. LM: !1,
  20112. ob: "TransitionScene",
  20113. ctor: function(a, b) {
  20114. c.il.prototype.ctor.call(this);
  20115. void 0 !== a && void 0 !== b && this.e(a, b)
  20116. },
  20117. HN: function() {
  20118. this.Kv(this.HN);
  20119. var a = c.L;
  20120. this.LM = a.Tl;
  20121. a.rA(this.ra);
  20122. c.wa.We(!0);
  20123. this.mb.visible = !0
  20124. },
  20125. oj: function() {
  20126. this.ai = !0
  20127. },
  20128. Y: function() {
  20129. this.ai ? (this.mb.U(), this.ra.U()) : (this.ra.U(), this.mb.U())
  20130. },
  20131. ca: function() {
  20132. c.t.prototype.ca.call(this);
  20133. c.wa.We(!1);
  20134. this.mb.Og();
  20135. this.ra.ca()
  20136. },
  20137. xb: function() {
  20138. c.t.prototype.xb.call(this);
  20139. c.wa.We(!0);
  20140. this.mb.xb();
  20141. this.ra.Ki()
  20142. },
  20143. uf: function() {
  20144. c.t.prototype.uf.call(this);
  20145. this.LM && this.mb.uf()
  20146. },
  20147. e: function(a, b) {
  20148. if (!b) throw "cc.TransitionScene.initWithDuration(): Argument scene must be non-nil";
  20149. if (this.K()) {
  20150. this.p = a;
  20151. this.si({
  20152. x: 0,
  20153. y: 0,
  20154. anchorX: 0,
  20155. anchorY: 0
  20156. });
  20157. this.ra = b;
  20158. this.mb = c.L.sd;
  20159. this.mb || (this.mb = c.il.create(), this.mb.K());
  20160. if (this.ra == this.mb) throw "cc.TransitionScene.initWithDuration(): Incoming scene must be different from the outgoing scene";
  20161. this.oj();
  20162. return !0
  20163. }
  20164. return !1
  20165. },
  20166. finish: function() {
  20167. this.ra.si({
  20168. visible: !0,
  20169. x: 0,
  20170. y: 0,
  20171. scale: 1,
  20172. rotation: 0
  20173. });
  20174. c.F === c.ea && this.ra.Yn().restore();
  20175. this.mb.si({
  20176. visible: !1,
  20177. x: 0,
  20178. y: 0,
  20179. scale: 1,
  20180. rotation: 0
  20181. });
  20182. c.F === c.ea && this.mb.Yn().restore();
  20183. this.po(this.HN, 0)
  20184. },
  20185. pz: function() {
  20186. this.ra.visible = !0;
  20187. this.mb.visible = !1
  20188. }
  20189. });
  20190. c.Aa.create = function(a, b) {
  20191. return new c.Aa(a, b)
  20192. };
  20193. c.ol = c.Aa.extend({
  20194. ln: 0,
  20195. e: function(a, b, d) {
  20196. c.Aa.prototype.e.call(this, a, b) && (this.ln = d);
  20197. return !0
  20198. }
  20199. });
  20200. c.ol.create = function(a, b, d) {
  20201. var e = new c.ol;
  20202. e.e(a, b, d);
  20203. return e
  20204. };
  20205. c.HK = c.Aa.extend({
  20206. ca: function() {
  20207. c.Aa.prototype.ca.call(this);
  20208. this.ra.si({
  20209. scale: 0.001,
  20210. anchorX: 0.5,
  20211. anchorY: 0.5
  20212. });
  20213. this.mb.si({
  20214. scale: 1,
  20215. anchorX: 0.5,
  20216. anchorY: 0.5
  20217. });
  20218. var a = c.La.create(c.df.create(c.Qo.create(this.p / 2, 0.001), c.Po.create(this.p / 2, 720)), c.ad.create(this.p / 2));
  20219. this.mb.yb(a);
  20220. this.ra.yb(c.La.create(a.reverse(), c.cc.create(this.finish, this)))
  20221. }
  20222. });
  20223. c.HK.create = function(a, b) {
  20224. var d = new c.HK;
  20225. return null != d && d.e(a, b) ? d : null
  20226. };
  20227. c.wK = c.Aa.extend({
  20228. ca: function() {
  20229. c.Aa.prototype.ca.call(this);
  20230. var a = c.L.V;
  20231. this.ra.si({
  20232. scale: 0.5,
  20233. x: a.width,
  20234. y: 0,
  20235. anchorX: 0.5,
  20236. anchorY: 0.5
  20237. });
  20238. this.mb.anchorX = 0.5;
  20239. this.mb.anchorY = 0.5;
  20240. var b = c.Ri.create(this.p / 4, c.d(-a.width, 0), a.width / 4, 2),
  20241. d = c.Qd.create(this.p / 4, 1),
  20242. a = c.Qd.create(this.p / 4, 0.5),
  20243. a = c.La.create(a, b),
  20244. b = c.La.create(b, d),
  20245. d = c.ad.create(this.p / 2);
  20246. this.mb.yb(a);
  20247. this.ra.yb(c.La.create(d, b, c.cc.create(this.finish, this)))
  20248. }
  20249. });
  20250. c.wK.create = function(a, b) {
  20251. var d = new c.wK;
  20252. return null != d && d.e(a, b) ? d : null
  20253. };
  20254. c.Cs = c.Aa.extend({
  20255. ca: function() {
  20256. c.Aa.prototype.ca.call(this);
  20257. this.Hk();
  20258. var a = this.action();
  20259. this.ra.yb(c.La.create(this.bg(a), c.cc.create(this.finish, this)))
  20260. },
  20261. Hk: function() {
  20262. this.ra.J(-c.L.V.width, 0)
  20263. },
  20264. action: function() {
  20265. return c.ds.create(this.p, c.d(0, 0))
  20266. },
  20267. bg: function(a) {
  20268. return c.Im.create(a, 2)
  20269. }
  20270. });
  20271. c.Cs.create = function(a, b) {
  20272. var d = new c.Cs;
  20273. return null != d && d.e(a, b) ? d : null
  20274. };
  20275. c.yK = c.Cs.extend({
  20276. Hk: function() {
  20277. this.ra.J(c.L.V.width, 0)
  20278. }
  20279. });
  20280. c.yK.create = function(a, b) {
  20281. var d = new c.yK;
  20282. return null != d && d.e(a, b) ? d : null
  20283. };
  20284. c.zK = c.Cs.extend({
  20285. Hk: function() {
  20286. this.ra.J(0, c.L.V.height)
  20287. }
  20288. });
  20289. c.zK.create = function(a, b) {
  20290. var d = new c.zK;
  20291. return null != d && d.e(a, b) ? d : null
  20292. };
  20293. c.xK = c.Cs.extend({
  20294. Hk: function() {
  20295. this.ra.J(0, -c.L.V.height)
  20296. }
  20297. });
  20298. c.xK.create = function(a, b) {
  20299. var d = new c.xK;
  20300. return null != d && d.e(a, b) ? d : null
  20301. };
  20302. c.al = 0.5;
  20303. c.Ds = c.Aa.extend({
  20304. oj: function() {
  20305. this.ai = !1
  20306. },
  20307. ca: function() {
  20308. c.Aa.prototype.ca.call(this);
  20309. this.Hk();
  20310. var a = this.action(),
  20311. b = this.action(),
  20312. a = this.bg(a),
  20313. b = c.La.create(this.bg(b), c.cc.create(this.finish, this));
  20314. this.ra.yb(a);
  20315. this.mb.yb(b)
  20316. },
  20317. Hk: function() {
  20318. this.ra.J(-c.L.V.width + c.al, 0)
  20319. },
  20320. action: function() {
  20321. return c.bf.create(this.p, c.d(c.L.V.width - c.al, 0))
  20322. },
  20323. bg: function(a) {
  20324. return c.Im.create(a, 2)
  20325. }
  20326. });
  20327. c.Ds.create = function(a, b) {
  20328. var d = new c.Ds;
  20329. return null != d && d.e(a, b) ? d : null
  20330. };
  20331. c.KK = c.Ds.extend({
  20332. oj: function() {
  20333. this.ai = !0
  20334. },
  20335. Hk: function() {
  20336. this.ra.J(c.L.V.width - c.al, 0)
  20337. },
  20338. action: function() {
  20339. return c.bf.create(this.p, c.d(-(c.L.V.width - c.al), 0))
  20340. }
  20341. });
  20342. c.KK.create = function(a, b) {
  20343. var d = new c.KK;
  20344. return null != d && d.e(a, b) ? d : null
  20345. };
  20346. c.JK = c.Ds.extend({
  20347. oj: function() {
  20348. this.ai = !1
  20349. },
  20350. Hk: function() {
  20351. this.ra.J(0, c.L.V.height - c.al)
  20352. },
  20353. action: function() {
  20354. return c.bf.create(this.p, c.d(0, -(c.L.V.height - c.al)))
  20355. }
  20356. });
  20357. c.JK.create = function(a, b) {
  20358. var d = new c.JK;
  20359. return null != d && d.e(a, b) ? d : null
  20360. };
  20361. c.LK = c.Ds.extend({
  20362. oj: function() {
  20363. this.ai = !0
  20364. },
  20365. Hk: function() {
  20366. this.ra.J(0, -(c.L.V.height - c.al))
  20367. },
  20368. action: function() {
  20369. return c.bf.create(this.p, c.d(0, c.L.V.height - c.al))
  20370. }
  20371. });
  20372. c.LK.create = function(a, b) {
  20373. var d = new c.LK;
  20374. return null != d && d.e(a, b) ? d : null
  20375. };
  20376. c.IK = c.Aa.extend({
  20377. ca: function() {
  20378. c.Aa.prototype.ca.call(this);
  20379. this.ra.si({
  20380. scale: 0.001,
  20381. anchorX: 2 / 3,
  20382. anchorY: 0.5
  20383. });
  20384. this.mb.si({
  20385. scale: 1,
  20386. anchorX: 1 / 3,
  20387. anchorY: 0.5
  20388. });
  20389. var a = c.Qd.create(this.p, 0.01),
  20390. b = c.Qd.create(this.p, 1);
  20391. this.ra.yb(this.bg(b));
  20392. this.mb.yb(c.La.create(this.bg(a), c.cc.create(this.finish, this)))
  20393. },
  20394. bg: function(a) {
  20395. return c.Im.create(a, 2)
  20396. }
  20397. });
  20398. c.IK.create = function(a, b) {
  20399. var d = new c.IK;
  20400. return null != d && d.e(a, b) ? d : null
  20401. };
  20402. c.uK = c.ol.extend({
  20403. ca: function() {
  20404. c.Aa.prototype.ca.call(this);
  20405. var a, b;
  20406. this.ra.visible = !1;
  20407. var d;
  20408. this.ln === c.kl ? (a = 90, d = 270, b = 90) : (a = -90, d = 90, b = -90);
  20409. a = c.La.create(c.ad.create(this.p / 2), c.mg.create(), c.Ae.create(this.p / 2, 1, 0, d, a, 0, 0), c.cc.create(this.finish, this));
  20410. b = c.La.create(c.Ae.create(this.p / 2, 1, 0, 0, b, 0, 0), c.Rh.create(), c.ad.create(this.p / 2));
  20411. this.ra.yb(a);
  20412. this.mb.yb(b)
  20413. }
  20414. });
  20415. c.uK.create = function(a, b, d) {
  20416. null == d && (d = c.kl);
  20417. var e = new c.uK;
  20418. e.e(a, b, d);
  20419. return e
  20420. };
  20421. c.vK = c.ol.extend({
  20422. ca: function() {
  20423. c.Aa.prototype.ca.call(this);
  20424. var a, b;
  20425. this.ra.visible = !1;
  20426. var d;
  20427. this.ln == c.Dw ? (a = 90, d = 270, b = 90) : (a = -90, d = 90, b = -90);
  20428. a = c.La.create(c.ad.create(this.p / 2), c.mg.create(), c.Ae.create(this.p / 2, 1, 0, d, a, 90, 0), c.cc.create(this.finish, this));
  20429. b = c.La.create(c.Ae.create(this.p / 2, 1, 0, 0, b, 90, 0), c.Rh.create(), c.ad.create(this.p / 2));
  20430. this.ra.yb(a);
  20431. this.mb.yb(b)
  20432. }
  20433. });
  20434. c.vK.create = function(a, b, d) {
  20435. null == d && (d = c.Dw);
  20436. var e = new c.vK;
  20437. e.e(a, b, d);
  20438. return e
  20439. };
  20440. c.tK = c.ol.extend({
  20441. ca: function() {
  20442. c.Aa.prototype.ca.call(this);
  20443. var a, b;
  20444. this.ra.visible = !1;
  20445. var d;
  20446. this.ln === c.kl ? (a = 90, d = 270, b = 90) : (a = -90, d = 90, b = -90);
  20447. a = c.La.create(c.ad.create(this.p / 2), c.mg.create(), c.Ae.create(this.p / 2, 1, 0, d, a, -45, 0), c.cc.create(this.finish, this));
  20448. b = c.La.create(c.Ae.create(this.p / 2, 1, 0, 0, b, 45, 0), c.Rh.create(), c.ad.create(this.p / 2));
  20449. this.ra.yb(a);
  20450. this.mb.yb(b)
  20451. }
  20452. });
  20453. c.tK.create = function(a, b, d) {
  20454. null == d && (d = c.kl);
  20455. var e = new c.tK;
  20456. e.e(a, b, d);
  20457. return e
  20458. };
  20459. c.PK = c.ol.extend({
  20460. ca: function() {
  20461. c.Aa.prototype.ca.call(this);
  20462. var a, b;
  20463. this.ra.visible = !1;
  20464. var d;
  20465. this.ln === c.kl ? (a = 90, d = 270, b = 90) : (a = -90, d = 90, b = -90);
  20466. a = c.La.create(c.ad.create(this.p / 2), c.df.create(c.Ae.create(this.p / 2, 1, 0, d, a, 0, 0), c.Qd.create(this.p / 2, 1), c.mg.create()), c.cc.create(this.finish, this));
  20467. b = c.La.create(c.df.create(c.Ae.create(this.p / 2, 1, 0, 0, b, 0, 0), c.Qd.create(this.p / 2, 0.5)), c.Rh.create(), c.ad.create(this.p / 2));
  20468. this.ra.scale = 0.5;
  20469. this.ra.yb(a);
  20470. this.mb.yb(b)
  20471. }
  20472. });
  20473. c.PK.create = function(a, b, d) {
  20474. null == d && (d = c.kl);
  20475. var e = new c.PK;
  20476. e.e(a, b, d);
  20477. return e
  20478. };
  20479. c.QK = c.ol.extend({
  20480. ca: function() {
  20481. c.Aa.prototype.ca.call(this);
  20482. var a, b;
  20483. this.ra.visible = !1;
  20484. var d;
  20485. this.ln === c.Dw ? (a = 90, d = 270, b = 90) : (a = -90, d = 90, b = -90);
  20486. a = c.La.create(c.ad.create(this.p / 2), c.df.create(c.Ae.create(this.p / 2, 1, 0, d, a, 90, 0), c.Qd.create(this.p / 2, 1), c.mg.create()), c.cc.create(this.finish, this));
  20487. b = c.La.create(c.df.create(c.Ae.create(this.p / 2, 1, 0, 0, b, 90, 0), c.Qd.create(this.p / 2, 0.5)), c.Rh.create(), c.ad.create(this.p / 2));
  20488. this.ra.scale = 0.5;
  20489. this.ra.yb(a);
  20490. this.mb.yb(b)
  20491. }
  20492. });
  20493. c.QK.create = function(a, b, d) {
  20494. null == d && (d = c.Dw);
  20495. var e = new c.QK;
  20496. e.e(a, b, d);
  20497. return e
  20498. };
  20499. c.OK = c.ol.extend({
  20500. ca: function() {
  20501. c.Aa.prototype.ca.call(this);
  20502. var a, b;
  20503. this.ra.visible = !1;
  20504. var d;
  20505. this.ln === c.kl ? (a = 90, d = 270, b = 90) : (a = -90, d = 90, b = -90);
  20506. a = c.La.create(c.ad.create(this.p / 2), c.df.create(c.Ae.create(this.p / 2, 1, 0, d, a, -45, 0), c.Qd.create(this.p / 2, 1), c.mg.create()), c.mg.create(), c.cc.create(this.finish, this));
  20507. b = c.La.create(c.df.create(c.Ae.create(this.p / 2, 1, 0, 0, b, 45, 0), c.Qd.create(this.p / 2, 0.5)), c.Rh.create(), c.ad.create(this.p / 2));
  20508. this.ra.scale = 0.5;
  20509. this.ra.yb(a);
  20510. this.mb.yb(b)
  20511. }
  20512. });
  20513. c.OK.create = function(a, b, d) {
  20514. null == d && (d = c.kl);
  20515. var e = new c.OK;
  20516. e.e(a, b, d);
  20517. return e
  20518. };
  20519. c.pK = c.Aa.extend({
  20520. Ee: null,
  20521. ctor: function() {
  20522. c.Aa.prototype.ctor.call(this);
  20523. this.Ee = c.color()
  20524. },
  20525. ca: function() {
  20526. c.Aa.prototype.ca.call(this);
  20527. var a = c.md.create(this.Ee);
  20528. this.ra.visible = !1;
  20529. this.M(a, 2, c.ms);
  20530. var a = this.cg(c.ms),
  20531. b = c.La.create(c.Eo.create(this.p / 2), c.cc.create(this.pz, this), c.Fo.create(this.p / 2), c.cc.create(this.finish, this));
  20532. a.yb(b)
  20533. },
  20534. xb: function() {
  20535. c.Aa.prototype.xb.call(this);
  20536. this.ZH(c.ms, !1)
  20537. },
  20538. e: function(a, b, d) {
  20539. d = d || c.color.BLACK;
  20540. c.Aa.prototype.e.call(this, a, b) && (this.Ee.r = d.r, this.Ee.g = d.g, this.Ee.b = d.b, this.Ee.a = 0);
  20541. return !0
  20542. }
  20543. });
  20544. c.pK.create = function(a, b, d) {
  20545. var e = new c.pK;
  20546. e.e(a, b, d);
  20547. return e
  20548. };
  20549. c.oK = c.Aa.extend({
  20550. ca: function() {
  20551. c.Aa.prototype.ca.call(this);
  20552. var a = c.color(0, 0, 0, 0),
  20553. b = c.L.V,
  20554. a = c.md.create(a),
  20555. d = c.No.create(b.width, b.height);
  20556. if (null != d) {
  20557. d.sprite.anchorX = 0.5;
  20558. d.sprite.anchorY = 0.5;
  20559. d.si({
  20560. x: b.width / 2,
  20561. y: b.height / 2,
  20562. anchorX: 0.5,
  20563. anchorY: 0.5
  20564. });
  20565. d.Yf();
  20566. this.ra.U();
  20567. d.end();
  20568. var e = c.No.create(b.width, b.height);
  20569. e.J(b.width / 2, b.height / 2);
  20570. e.sprite.anchorX = e.anchorX = 0.5;
  20571. e.sprite.anchorY = e.anchorY = 0.5;
  20572. e.Yf();
  20573. this.mb.U();
  20574. e.end();
  20575. d.sprite.zf(c.ONE, c.ONE);
  20576. e.sprite.zf(c.SRC_ALPHA, c.ONE_MINUS_SRC_ALPHA);
  20577. a.M(d);
  20578. a.M(e);
  20579. d.sprite.opacity = 255;
  20580. e.sprite.opacity = 255;
  20581. b = c.La.create(c.el.create(this.p, 0), c.cc.create(this.pz, this), c.cc.create(this.finish, this));
  20582. e.sprite.yb(b);
  20583. this.M(a, 2, c.ms)
  20584. }
  20585. },
  20586. xb: function() {
  20587. this.ZH(c.ms, !1);
  20588. c.Aa.prototype.xb.call(this)
  20589. },
  20590. Y: function() {}
  20591. });
  20592. c.oK.create = function(a, b) {
  20593. var d = new c.oK;
  20594. d.e(a, b);
  20595. return d
  20596. };
  20597. c.NK = c.Aa.extend({
  20598. oj: function() {
  20599. this.ai = !1
  20600. },
  20601. ca: function() {
  20602. c.Aa.prototype.ca.call(this);
  20603. var a = c.L.V,
  20604. a = c.rC.create(this.p, c.size(0 | a.width / a.height * 12, 12)),
  20605. a = this.bg(a);
  20606. this.mb.yb(c.La.create(a, c.cc.create(this.finish, this), c.Om.create()))
  20607. },
  20608. bg: function(a) {
  20609. return a
  20610. }
  20611. });
  20612. c.NK.create = function(a, b) {
  20613. var d = new c.NK;
  20614. return null != d && d.e(a, b) ? d : null
  20615. };
  20616. c.qC = c.Aa.extend({
  20617. ca: function() {
  20618. c.Aa.prototype.ca.call(this);
  20619. this.ra.visible = !1;
  20620. var a = this.action(),
  20621. a = c.La.create(a, c.cc.create(this.pz, this), a.reverse());
  20622. this.yb(c.La.create(this.bg(a), c.cc.create(this.finish, this), c.Om.create()))
  20623. },
  20624. bg: function(a) {
  20625. return c.Nr.create(a, 3)
  20626. },
  20627. action: function() {
  20628. return c.$B.create(this.p / 2, 3)
  20629. }
  20630. });
  20631. c.qC.create = function(a, b) {
  20632. var d = new c.qC;
  20633. return null != d && d.e(a, b) ? d : null
  20634. };
  20635. c.MK = c.qC.extend({
  20636. action: function() {
  20637. return c.aC.create(this.p / 2, 3)
  20638. }
  20639. });
  20640. c.MK.create = function(a, b) {
  20641. var d = new c.MK;
  20642. return null != d && d.e(a, b) ? d : null
  20643. };
  20644. c.Bs = c.Aa.extend({
  20645. oj: function() {
  20646. this.ai = !1
  20647. },
  20648. ca: function() {
  20649. c.Aa.prototype.ca.call(this);
  20650. var a = c.L.V,
  20651. a = this.cq(c.size(0 | a.width / a.height * 12, 12));
  20652. this.mb.yb(c.La.create(this.bg(a), c.cc.create(this.finish, this), c.Om.create()))
  20653. },
  20654. bg: function(a) {
  20655. return a
  20656. },
  20657. cq: function(a) {
  20658. return c.Xr.create(this.p, a)
  20659. }
  20660. });
  20661. c.Bs.create = function(a, b) {
  20662. var d = new c.Bs;
  20663. return null != d && d.e(a, b) ? d : null
  20664. };
  20665. c.qK = c.Bs.extend({
  20666. cq: function(a) {
  20667. return c.jB.create(this.p, a)
  20668. }
  20669. });
  20670. c.qK.create = function(a, b) {
  20671. var d = new c.qK;
  20672. return null != d && d.e(a, b) ? d : null
  20673. };
  20674. c.sK = c.Bs.extend({
  20675. cq: function(a) {
  20676. return c.mw.create(this.p, a)
  20677. }
  20678. });
  20679. c.sK.create = function(a, b) {
  20680. var d = new c.sK;
  20681. return null != d && d.e(a, b) ? d : null
  20682. };
  20683. c.rK = c.Bs.extend({
  20684. cq: function(a) {
  20685. return c.kB.create(this.p, a)
  20686. }
  20687. });
  20688. c.rK.create = function(a, b) {
  20689. var d = new c.rK;
  20690. return null != d && d.e(a, b) ? d : null
  20691. };
  20692. c.YJ = 49153;
  20693. c.nl = c.Aa.extend({
  20694. Gd: 0,
  20695. ed: 0,
  20696. iy: null,
  20697. ob: "TransitionProgress",
  20698. sn: function(a, b, d) {
  20699. a.si({
  20700. x: b,
  20701. y: d,
  20702. anchorX: 0.5,
  20703. anchorY: 0.5
  20704. })
  20705. },
  20706. ca: function() {
  20707. c.Aa.prototype.ca.call(this);
  20708. this.ON();
  20709. var a = c.L.V,
  20710. b = c.No.create(a.width, a.height);
  20711. b.sprite.anchorX = 0.5;
  20712. b.sprite.anchorY = 0.5;
  20713. this.sn(b, a.width / 2, a.height / 2);
  20714. b.clear(0, 0, 0, 1);
  20715. b.Yf();
  20716. this.iy.U();
  20717. b.end();
  20718. this.iy == this.mb && this.pz();
  20719. a = this.nn(b);
  20720. b = c.La.create(c.is.create(this.p, this.ed, this.Gd), c.cc.create(this.finish, this));
  20721. a.yb(b);
  20722. this.M(a, 2, c.YJ)
  20723. },
  20724. xb: function() {
  20725. this.ZH(c.YJ, !0);
  20726. c.Aa.prototype.xb.call(this)
  20727. },
  20728. ON: function() {
  20729. this.iy = this.mb;
  20730. this.ed = 100;
  20731. this.Gd = 0
  20732. },
  20733. nn: function() {
  20734. c.log("cc.TransitionProgress._progressTimerNodeWithRenderTexture(): should be overridden in subclass");
  20735. return null
  20736. },
  20737. oj: function() {
  20738. this.ai = !1
  20739. }
  20740. });
  20741. c.nl.create = function(a, b) {
  20742. var d = new c.nl;
  20743. return null != d && d.e(a, b) ? d : null
  20744. };
  20745. c.EK = c.nl.extend({
  20746. nn: function(a) {
  20747. var b = c.L.V;
  20748. a = c.cb.create(a.sprite);
  20749. c.F === c.ea && (a.sprite.flippedY = !0);
  20750. a.type = c.cb.Ti;
  20751. a.reverseDir = !1;
  20752. a.percentage = 100;
  20753. this.sn(a, b.width / 2, b.height / 2);
  20754. return a
  20755. }
  20756. });
  20757. c.EK.create = function(a, b) {
  20758. var d = new c.EK;
  20759. return null != d && d.e(a, b) ? d : null
  20760. };
  20761. c.FK = c.nl.extend({
  20762. nn: function(a) {
  20763. var b = c.L.V;
  20764. a = c.cb.create(a.sprite);
  20765. c.F === c.ea && (a.sprite.flippedY = !0);
  20766. a.type = c.cb.Ti;
  20767. a.reverseDir = !0;
  20768. a.percentage = 100;
  20769. this.sn(a, b.width / 2, b.height / 2);
  20770. return a
  20771. }
  20772. });
  20773. c.FK.create = function(a, b) {
  20774. var d = new c.FK;
  20775. return null != d && d.e(a, b) ? d : null
  20776. };
  20777. c.BK = c.nl.extend({
  20778. nn: function(a) {
  20779. var b = c.L.V;
  20780. a = c.cb.create(a.sprite);
  20781. c.F === c.ea && (a.sprite.flippedY = !0);
  20782. a.type = c.cb.Rm;
  20783. a.midPoint = c.d(1, 0);
  20784. a.barChangeRate = c.d(1, 0);
  20785. a.percentage = 100;
  20786. this.sn(a, b.width / 2, b.height / 2);
  20787. return a
  20788. }
  20789. });
  20790. c.BK.create = function(a, b) {
  20791. var d = new c.BK;
  20792. return null != d && d.e(a, b) ? d : null
  20793. };
  20794. c.GK = c.nl.extend({
  20795. nn: function(a) {
  20796. var b = c.L.V;
  20797. a = c.cb.create(a.sprite);
  20798. c.F === c.ea && (a.sprite.flippedY = !0);
  20799. a.type = c.cb.Rm;
  20800. a.midPoint = c.d(0, 0);
  20801. a.barChangeRate = c.d(0, 1);
  20802. a.percentage = 100;
  20803. this.sn(a, b.width / 2, b.height / 2);
  20804. return a
  20805. }
  20806. });
  20807. c.GK.create = function(a, b) {
  20808. var d = new c.GK;
  20809. return null != d && d.e(a, b) ? d : null
  20810. };
  20811. c.CK = c.nl.extend({
  20812. nn: function(a) {
  20813. var b = c.L.V;
  20814. a = c.cb.create(a.sprite);
  20815. c.F === c.ea && (a.sprite.flippedY = !0);
  20816. a.type = c.cb.Rm;
  20817. a.midPoint = c.d(0.5, 0.5);
  20818. a.barChangeRate = c.d(1, 1);
  20819. a.percentage = 0;
  20820. this.sn(a, b.width / 2, b.height / 2);
  20821. return a
  20822. },
  20823. oj: function() {
  20824. this.ai = !1
  20825. },
  20826. ON: function() {
  20827. this.iy = this.ra;
  20828. this.ed = 0;
  20829. this.Gd = 100
  20830. }
  20831. });
  20832. c.CK.create = function(a, b) {
  20833. var d = new c.CK;
  20834. return null != d && d.e(a, b) ? d : null
  20835. };
  20836. c.DK = c.nl.extend({
  20837. nn: function(a) {
  20838. var b = c.L.V;
  20839. a = c.cb.create(a.sprite);
  20840. c.F === c.ea && (a.sprite.flippedY = !0);
  20841. a.type = c.cb.Rm;
  20842. a.midPoint = c.d(0.5, 0.5);
  20843. a.barChangeRate = c.d(1, 1);
  20844. a.percentage = 100;
  20845. this.sn(a, b.width / 2, b.height / 2);
  20846. return a
  20847. }
  20848. });
  20849. c.DK.create = function(a, b) {
  20850. var d = new c.DK;
  20851. return null != d && d.e(a, b) ? d : null
  20852. };
  20853. c.AK = c.Aa.extend({
  20854. Vw: !0,
  20855. ob: "TransitionPageTurn",
  20856. e: function(a, b, d) {
  20857. this.Vw = d;
  20858. c.Aa.prototype.e.call(this, a, b);
  20859. return !0
  20860. },
  20861. cq: function(a) {
  20862. return this.Vw ? c.Nm.create(c.sw.create(this.p, a)) : c.sw.create(this.p, a)
  20863. },
  20864. ca: function() {
  20865. c.Aa.prototype.ca.call(this);
  20866. var a = c.L.V,
  20867. b;
  20868. a.width > a.height ? (a = 16, b = 12) : (a = 12, b = 16);
  20869. a = this.cq(c.size(a, b));
  20870. this.Vw ? (this.ra.visible = !1, this.ra.yb(c.La.create(c.mg.create(), a, c.cc.create(this.finish, this), c.Om.create()))) : this.mb.yb(c.La.create(a, c.cc.create(this.finish, this), c.Om.create()))
  20871. },
  20872. oj: function() {
  20873. this.ai = this.Vw
  20874. }
  20875. });
  20876. c.AK.create = function(a, b, d) {
  20877. var e = new c.AK;
  20878. e.e(a, b, d);
  20879. return e
  20880. };
  20881. c.na = {
  20882. name: "Jacob__Codec"
  20883. };
  20884. c.e9 = function() {
  20885. return c.na.Pa.lz.apply(c.na.Pa, arguments)
  20886. };
  20887. c.f9 = function() {
  20888. var a = c.na.Fm.QO.apply(c.na.Fm, arguments);
  20889. return c.na.Pa.lz.apply(c.na.Pa, [a])
  20890. };
  20891. c.IS = function(a, b) {
  20892. b = b || 1;
  20893. var d = this.f9(a),
  20894. e = [],
  20895. f, g, h;
  20896. f = 0;
  20897. for (h = d.length / b; f < h; f++) for (e[f] = 0, g = b - 1; 0 <= g; --g) e[f] += d.charCodeAt(f * b + g) << 8 * g;
  20898. return e
  20899. };
  20900. c.zpa = function(a, b) {
  20901. b = b || 1;
  20902. var d = this.e9(a),
  20903. e = [],
  20904. f, g, h;
  20905. f = 0;
  20906. for (h = d.length / b; f < h; f++) for (e[f] = 0, g = b - 1; 0 <= g; --g) e[f] += d.charCodeAt(f * b + g) << 8 * g;
  20907. return e
  20908. };
  20909. c.Raa = function(a) {
  20910. a = a.split(",");
  20911. var b = [],
  20912. d;
  20913. for (d = 0; d < a.length; d++) b.push(parseInt(a[d]));
  20914. return b
  20915. };
  20916. c.na.Fm = {
  20917. name: "Jacob__Codec__Base64"
  20918. };
  20919. c.na.Fm.Jx = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
  20920. c.na.Fm.QO = function(a) {
  20921. var b = [],
  20922. d, e, f, g, h, k = 0;
  20923. for (a = a.replace(/[^A-Za-z0-9\+\/\=]/g, ""); k < a.length;) d = this.Jx.indexOf(a.charAt(k++)), e = this.Jx.indexOf(a.charAt(k++)), g = this.Jx.indexOf(a.charAt(k++)), h = this.Jx.indexOf(a.charAt(k++)), d = d << 2 | e >> 4, e = (e & 15) << 4 | g >> 2, f = (g & 3) << 6 | h, b.push(String.fromCharCode(d)), 64 != g && b.push(String.fromCharCode(e)), 64 != h && b.push(String.fromCharCode(f));
  20924. return b = b.join("")
  20925. };
  20926. c.na.Fm.RO = function(a, b) {
  20927. var d = this.QO(a),
  20928. e = [],
  20929. f, g, h;
  20930. f = 0;
  20931. for (h = d.length / b; f < h; f++) for (e[f] = 0, g = b - 1; 0 <= g; --g) e[f] += d.charCodeAt(f * b + g) << 8 * g;
  20932. return e
  20933. };
  20934. c.Z8 = function(a) {
  20935. if (0 != a.length % 4) return null;
  20936. for (var b = a.length / 4, d = window.pba ? new Uint32Array(b) : [], e = 0; e < b; e++) {
  20937. var f = 4 * e;
  20938. d[e] = a[f] + 256 * a[f + 1] + 65536 * a[f + 2] + 16777216 * a[f + 3]
  20939. }
  20940. return d
  20941. };
  20942. c.na.Pa = function(a) {
  20943. this.data = a;
  20944. this.debug = !1;
  20945. this.Gk = void 0;
  20946. this.files = 0;
  20947. this.NA = [];
  20948. this.kG = Array(32768);
  20949. this.ti = 0;
  20950. this.Sz = !1;
  20951. this.AO = 0;
  20952. this.ui = 1;
  20953. this.hq = 0;
  20954. this.Sq = [];
  20955. this.hP = void 0;
  20956. this.Zu = Array(c.na.Pa.FU);
  20957. this.Pn = Array(32);
  20958. this.Jv = 0;
  20959. this.EB = null;
  20960. this.Ch = 0;
  20961. this.uq = Array(17);
  20962. this.uq[0] = 0;
  20963. this.mP = this.kP = void 0
  20964. };
  20965. c.na.Pa.lz = function(a) {
  20966. return (new c.na.Pa(a)).lz()[0][0]
  20967. };
  20968. c.na.Pa.nB = function() {
  20969. this.Ny = this.My = 0;
  20970. this.AH = null;
  20971. this.X4 = -1
  20972. };
  20973. c.na.Pa.FU = 288;
  20974. c.na.Pa.zJ = 256;
  20975. c.na.Pa.iG = [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, 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];
  20976. c.na.Pa.MO = [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];
  20977. c.na.Pa.NO = [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];
  20978. c.na.Pa.LO = [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];
  20979. c.na.Pa.oq = [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];
  20980. c.na.Pa.border = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
  20981. c.na.Pa.prototype.lz = function() {
  20982. this.lv = [];
  20983. xa(this);
  20984. return this.NA
  20985. };
  20986. c.na.Pa.prototype.T = function() {
  20987. this.hq += 8;
  20988. return this.AO < this.data.length ? this.data.charCodeAt(this.AO++) : -1
  20989. };
  20990. function Ba(a) {
  20991. var b;
  20992. a.hq++;
  20993. b = a.ui & 1;
  20994. a.ui >>= 1;
  20995. 0 == a.ui && (a.ui = a.T(), b = a.ui & 1, a.ui = a.ui >> 1 | 128);
  20996. return b
  20997. }
  20998. function C(a, b) {
  20999. for (var d = 0, e = b; e--;) d = d << 1 | Ba(a);
  21000. b && (d = c.na.Pa.iG[d] >> 8 - b);
  21001. return d
  21002. }
  21003. function Ca(a, b) {
  21004. a.kG[a.ti++] = b;
  21005. a.lv.push(String.fromCharCode(b));
  21006. 32768 == a.ti && (a.ti = 0)
  21007. }
  21008. function Da(a) {
  21009. for (;;) {
  21010. if (a.uq[a.Ch] >= a.mP) return -1;
  21011. if (a.kP[a.uq[a.Ch]] == a.Ch) return a.uq[a.Ch]++;
  21012. a.uq[a.Ch]++
  21013. }
  21014. }
  21015. function Ea(a) {
  21016. var b = a.EB[a.Jv],
  21017. d;
  21018. if (17 == a.Ch) return -1;
  21019. a.Jv++;
  21020. a.Ch++;
  21021. d = Da(a);
  21022. if (0 <= d) b.My = d;
  21023. else if (b.My = 32768, Ea(a)) return -1;
  21024. d = Da(a);
  21025. if (0 <= d) b.Ny = d, b.AH = null;
  21026. else if (b.Ny = 32768, b.AH = a.EB[a.Jv], b.X4 = a.Jv, Ea(a)) return -1;
  21027. a.Ch--;
  21028. return 0
  21029. }
  21030. function Ia(a, b, d, e) {
  21031. a.EB = b;
  21032. a.Jv = 0;
  21033. a.kP = e;
  21034. a.mP = d;
  21035. for (b = 0; 17 > b; b++) a.uq[b] = 0;
  21036. a.Ch = 0;
  21037. return Ea(a) ? -1 : 0
  21038. }
  21039. function Ja(a, b) {
  21040. for (var d, e, f = 0, g = b[f];;) if (d = Ba(a)) {
  21041. if (!(g.Ny & 32768)) return g.Ny;
  21042. g = g.AH;
  21043. d = b.length;
  21044. for (e = 0; e < d; e++) if (b[e] === g) {
  21045. f = e;
  21046. break
  21047. }
  21048. } else {
  21049. if (!(g.My & 32768)) return g.My;
  21050. f++;
  21051. g = b[f]
  21052. }
  21053. return -1
  21054. }
  21055. function Ka(a) {
  21056. var b, d, e, f, g;
  21057. do
  21058. if (b = Ba(a), e = C(a, 2), 0 == e) for (a.ui = 1, e = a.T(), e |= a.T() << 8, d = a.T(), d |= a.T() << 8, (e ^ ~d) & 65535 && document.write("BlockLen checksum mismatch\n"); e--;) d = a.T(), Ca(a, d);
  21059. else if (1 == e) for (;;) if (e = c.na.Pa.iG[C(a, 7)] >> 1, 23 < e ? (e = e << 1 | Ba(a), 199 < e ? (e -= 128, e = e << 1 | Ba(a)) : (e -= 48, 143 < e && (e += 136))) : e += 256, 256 > e) Ca(a, e);
  21060. else if (256 == e) break;
  21061. else {
  21062. var h;
  21063. e -= 257;
  21064. g = C(a, c.na.Pa.NO[e]) + c.na.Pa.MO[e];
  21065. e = c.na.Pa.iG[C(a, 5)] >> 3;
  21066. 8 < c.na.Pa.oq[e] ? (h = C(a, 8), h |= C(a, c.na.Pa.oq[e] - 8) << 8) : h = C(a, c.na.Pa.oq[e]);
  21067. h += c.na.Pa.LO[e];
  21068. for (e = 0; e < g; e++) d = a.kG[a.ti - h & 32767], Ca(a, d)
  21069. } else if (2 == e) {
  21070. var k = Array(320);
  21071. d = 257 + C(a, 5);
  21072. h = 1 + C(a, 5);
  21073. f = 4 + C(a, 4);
  21074. for (e = 0; 19 > e; e++) k[e] = 0;
  21075. for (e = 0; e < f; e++) k[c.na.Pa.border[e]] = C(a, 3);
  21076. g = a.Pn.length;
  21077. for (f = 0; f < g; f++) a.Pn[f] = new c.na.Pa.nB;
  21078. if (Ia(a, a.Pn, 19, k)) {
  21079. a.ti = 0;
  21080. return
  21081. }
  21082. g = d + h;
  21083. f = 0;
  21084. for (var m = -1; f < g;) if (m++, e = Ja(a, a.Pn), 16 > e) k[f++] = e;
  21085. else if (16 == e) {
  21086. var n;
  21087. e = 3 + C(a, 2);
  21088. if (f + e > g) {
  21089. a.ti = 0;
  21090. return
  21091. }
  21092. for (n = f ? k[f - 1] : 0; e--;) k[f++] = n
  21093. } else {
  21094. e = 17 == e ? 3 + C(a, 3) : 11 + C(a, 7);
  21095. if (f + e > g) {
  21096. a.ti = 0;
  21097. return
  21098. }
  21099. for (; e--;) k[f++] = 0
  21100. }
  21101. g = a.Zu.length;
  21102. for (f = 0; f < g; f++) a.Zu[f] = new c.na.Pa.nB;
  21103. if (Ia(a, a.Zu, d, k)) {
  21104. a.ti = 0;
  21105. return
  21106. }
  21107. g = a.Zu.length;
  21108. for (f = 0; f < g; f++) a.Pn[f] = new c.na.Pa.nB;
  21109. e = [];
  21110. for (f = d; f < k.length; f++) e[f - d] = k[f];
  21111. if (Ia(a, a.Pn, h, e)) {
  21112. a.ti = 0;
  21113. return
  21114. }
  21115. for (;;) if (e = Ja(a, a.Zu), 256 <= e) {
  21116. e -= 256;
  21117. if (0 == e) break;
  21118. e--;
  21119. g = C(a, c.na.Pa.NO[e]) + c.na.Pa.MO[e];
  21120. e = Ja(a, a.Pn);
  21121. 8 < c.na.Pa.oq[e] ? (h = C(a, 8), h |= C(a, c.na.Pa.oq[e] - 8) << 8) : h = C(a, c.na.Pa.oq[e]);
  21122. for (h += c.na.Pa.LO[e]; g--;) d = a.kG[a.ti - h & 32767], Ca(a, d)
  21123. } else Ca(a, e)
  21124. }
  21125. while (!b);
  21126. a.ti = 0;
  21127. a.ui = 1
  21128. }
  21129. function xa(a) {
  21130. a.lv = [];
  21131. a.Sz = !1;
  21132. var b = [];
  21133. b[0] = a.T();
  21134. b[1] = a.T();
  21135. 120 == b[0] && 218 == b[1] && (Ka(a), a.NA[a.files] = [a.lv.join(""), "geonext.gxt"], a.files++);
  21136. 31 == b[0] && 139 == b[1] && (La(a), a.NA[a.files] = [a.lv.join(""), "file"], a.files++);
  21137. if (80 == b[0] && 75 == b[1] && (a.Sz = !0, b[2] = a.T(), b[3] = a.T(), 3 == b[2] && 4 == b[3])) {
  21138. b[0] = a.T();
  21139. b[1] = a.T();
  21140. a.Gk = a.T();
  21141. a.Gk |= a.T() << 8;
  21142. b = a.T();
  21143. b |= a.T() << 8;
  21144. a.T();
  21145. a.T();
  21146. a.T();
  21147. a.T();
  21148. a.T();
  21149. a.T();
  21150. a.T();
  21151. a.T();
  21152. a.T();
  21153. a.T();
  21154. a.T();
  21155. a.T();
  21156. var d = a.T(),
  21157. d = d | a.T() << 8,
  21158. e = a.T(),
  21159. e = e | a.T() << 8,
  21160. f = 0;
  21161. for (a.Sq = []; d--;) {
  21162. var g = a.T();
  21163. "/" == g | ":" == g ? f = 0 : f < c.na.Pa.zJ - 1 && (a.Sq[f++] = String.fromCharCode(g))
  21164. }
  21165. a.hP || (a.hP = a.Sq);
  21166. for (var f = 0; f < e;) a.T(), f++;
  21167. 8 == b && (Ka(a), a.NA[a.files] = [a.lv.join(""), a.Sq.join("")], a.files++);
  21168. La(a)
  21169. }
  21170. }
  21171. function La(a) {
  21172. var b = [],
  21173. d;
  21174. a.Gk & 8 && (b[0] = a.T(), b[1] = a.T(), b[2] = a.T(), b[3] = a.T(), a.T(), a.T(), a.T(), a.T(), a.T(), a.T(), a.T(), a.T());
  21175. a.Sz && xa(a);
  21176. b[0] = a.T();
  21177. if (8 == b[0]) {
  21178. a.Gk = a.T();
  21179. a.T();
  21180. a.T();
  21181. a.T();
  21182. a.T();
  21183. a.T();
  21184. a.T();
  21185. if (a.Gk & 4) for (b[0] = a.T(), b[2] = a.T(), a.Ch = b[0] + 256 * b[1], b = 0; b < a.Ch; b++) a.T();
  21186. if (a.Gk & 8) for (b = 0, a.Sq = []; d = a.T();) {
  21187. if ("7" == d || ":" == d) b = 0;
  21188. b < c.na.Pa.zJ - 1 && (a.Sq[b++] = d)
  21189. }
  21190. if (a.Gk & 16) for (; a.T(););
  21191. a.Gk & 2 && (a.T(), a.T());
  21192. Ka(a);
  21193. a.T();
  21194. a.T();
  21195. a.T();
  21196. a.T();
  21197. a.Sz && xa(a)
  21198. }
  21199. };
  21200. /*
  21201. zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License */
  21202. (function() {
  21203. function a(a) {
  21204. throw a;
  21205. }
  21206. function b(a, b) {
  21207. var d = a.split("."),
  21208. e = y;
  21209. d[0] in e || !e.execScript || e.execScript("var " + d[0]);
  21210. for (var f; d.length && (f = d.shift());) d.length || b === F ? e = e[f] ? e[f] : e[f] = {} : e[f] = b
  21211. }
  21212. function d(a) {
  21213. if ("string" === typeof a) {
  21214. a = a.split("");
  21215. var b, d;
  21216. b = 0;
  21217. for (d = a.length; b < d; b++) a[b] = (a[b].charCodeAt(0) & 255) >>> 0
  21218. }
  21219. b = 1;
  21220. d = 0;
  21221. for (var e = a.length, f, g = 0; 0 < e;) {
  21222. f = 1024 < e ? 1024 : e;
  21223. e -= f;
  21224. do b += a[g++], d += b;
  21225. while (--f);
  21226. b %= 65521;
  21227. d %= 65521
  21228. }
  21229. return (d << 16 | b) >>> 0
  21230. }
  21231. function e(b, d) {
  21232. this.index = "number" === typeof d ? d : 0;
  21233. this.Bi = 0;
  21234. this.buffer = b instanceof(A ? Uint8Array : Array) ? b : new(A ? Uint8Array : Array)(32768);
  21235. 2 * this.buffer.length <= this.index && a(Error("invalid index"));
  21236. this.buffer.length <= this.index && this.wf()
  21237. }
  21238. function f(a) {
  21239. this.buffer = new(A ? Uint16Array : Array)(2 * a);
  21240. this.length = 0
  21241. }
  21242. function g(a) {
  21243. var b = a.length,
  21244. d = 0,
  21245. e = Number.POSITIVE_INFINITY,
  21246. f, g, h, k, m, n, q, r, s;
  21247. for (r = 0; r < b; ++r) a[r] > d && (d = a[r]), a[r] < e && (e = a[r]);
  21248. f = 1 << d;
  21249. g = new(A ? Uint32Array : Array)(f);
  21250. h = 1;
  21251. k = 0;
  21252. for (m = 2; h <= d;) {
  21253. for (r = 0; r < b; ++r) if (a[r] === h) {
  21254. n = 0;
  21255. q = k;
  21256. for (s = 0; s < h; ++s) n = n << 1 | q & 1, q >>= 1;
  21257. for (s = n; s < f; s += m) g[s] = h << 16 | r;
  21258. ++k
  21259. }++h;
  21260. k <<= 1;
  21261. m <<= 1
  21262. }
  21263. return [g, d, e]
  21264. }
  21265. function h(a, b) {
  21266. this.Fq = Y;
  21267. this.l = 0;
  21268. this.input = a;
  21269. this.b = 0;
  21270. b && (b.z5 && (this.l = b.z5), "number" === typeof b.AG && (this.Fq = b.AG), b.Zz && (this.a = A && b.Zz instanceof Array ? new Uint8Array(b.Zz) : b.Zz), "number" === typeof b.Y5 && (this.b = b.Y5));
  21271. this.a || (this.a = new(A ? Uint8Array : Array)(32768))
  21272. }
  21273. function k(a, b) {
  21274. this.length = a;
  21275. this.eU = b
  21276. }
  21277. function m() {
  21278. var b = da;
  21279. switch (I) {
  21280. case 3 === b:
  21281. return [257, b - 3, 0];
  21282. case 4 === b:
  21283. return [258, b - 4, 0];
  21284. case 5 === b:
  21285. return [259, b - 5, 0];
  21286. case 6 === b:
  21287. return [260, b - 6, 0];
  21288. case 7 === b:
  21289. return [261, b - 7, 0];
  21290. case 8 === b:
  21291. return [262, b - 8, 0];
  21292. case 9 === b:
  21293. return [263, b - 9, 0];
  21294. case 10 === b:
  21295. return [264, b - 10, 0];
  21296. case 12 >= b:
  21297. return [265, b - 11, 1];
  21298. case 14 >= b:
  21299. return [266, b - 13, 1];
  21300. case 16 >= b:
  21301. return [267, b - 15, 1];
  21302. case 18 >= b:
  21303. return [268, b - 17, 1];
  21304. case 22 >= b:
  21305. return [269, b - 19, 2];
  21306. case 26 >= b:
  21307. return [270, b - 23, 2];
  21308. case 30 >= b:
  21309. return [271, b - 27, 2];
  21310. case 34 >= b:
  21311. return [272, b - 31, 2];
  21312. case 42 >= b:
  21313. return [273, b - 35, 3];
  21314. case 50 >= b:
  21315. return [274, b - 43, 3];
  21316. case 58 >= b:
  21317. return [275, b - 51, 3];
  21318. case 66 >= b:
  21319. return [276, b - 59, 3];
  21320. case 82 >= b:
  21321. return [277, b - 67, 4];
  21322. case 98 >= b:
  21323. return [278, b - 83, 4];
  21324. case 114 >= b:
  21325. return [279, b - 99, 4];
  21326. case 130 >= b:
  21327. return [280, b - 115, 4];
  21328. case 162 >= b:
  21329. return [281, b - 131, 5];
  21330. case 194 >= b:
  21331. return [282, b - 163, 5];
  21332. case 226 >= b:
  21333. return [283, b - 195, 5];
  21334. case 257 >= b:
  21335. return [284, b - 227, 5];
  21336. case 258 === b:
  21337. return [285, b - 258, 0];
  21338. default:
  21339. a("invalid length: " + b)
  21340. }
  21341. }
  21342. function n(b, d) {
  21343. function e(b, d) {
  21344. var f = b.eU,
  21345. g = [],
  21346. h = 0,
  21347. k;
  21348. k = ya[b.length];
  21349. g[h++] = k & 65535;
  21350. g[h++] = k >> 16 & 255;
  21351. g[h++] = k >> 24;
  21352. var m;
  21353. switch (I) {
  21354. case 1 === f:
  21355. m = [0, f - 1, 0];
  21356. break;
  21357. case 2 === f:
  21358. m = [1, f - 2, 0];
  21359. break;
  21360. case 3 === f:
  21361. m = [2, f - 3, 0];
  21362. break;
  21363. case 4 === f:
  21364. m = [3, f - 4, 0];
  21365. break;
  21366. case 6 >= f:
  21367. m = [4, f - 5, 1];
  21368. break;
  21369. case 8 >= f:
  21370. m = [5, f - 7, 1];
  21371. break;
  21372. case 12 >= f:
  21373. m = [6, f - 9, 2];
  21374. break;
  21375. case 16 >= f:
  21376. m = [7, f - 13, 2];
  21377. break;
  21378. case 24 >= f:
  21379. m = [8, f - 17, 3];
  21380. break;
  21381. case 32 >= f:
  21382. m = [9, f - 25, 3];
  21383. break;
  21384. case 48 >= f:
  21385. m = [10, f - 33, 4];
  21386. break;
  21387. case 64 >= f:
  21388. m = [11, f - 49, 4];
  21389. break;
  21390. case 96 >= f:
  21391. m = [12, f - 65, 5];
  21392. break;
  21393. case 128 >= f:
  21394. m = [13, f - 97, 5];
  21395. break;
  21396. case 192 >= f:
  21397. m = [14, f - 129, 6];
  21398. break;
  21399. case 256 >= f:
  21400. m = [15, f - 193, 6];
  21401. break;
  21402. case 384 >= f:
  21403. m = [16, f - 257, 7];
  21404. break;
  21405. case 512 >= f:
  21406. m = [17, f - 385, 7];
  21407. break;
  21408. case 768 >= f:
  21409. m = [18, f - 513, 8];
  21410. break;
  21411. case 1024 >= f:
  21412. m = [19, f - 769, 8];
  21413. break;
  21414. case 1536 >= f:
  21415. m = [20, f - 1025, 9];
  21416. break;
  21417. case 2048 >= f:
  21418. m = [21, f - 1537, 9];
  21419. break;
  21420. case 3072 >= f:
  21421. m = [22, f - 2049, 10];
  21422. break;
  21423. case 4096 >= f:
  21424. m = [23, f - 3073, 10];
  21425. break;
  21426. case 6144 >= f:
  21427. m = [24, f - 4097, 11];
  21428. break;
  21429. case 8192 >= f:
  21430. m = [25, f - 6145, 11];
  21431. break;
  21432. case 12288 >= f:
  21433. m = [26, f - 8193, 12];
  21434. break;
  21435. case 16384 >= f:
  21436. m = [27, f - 12289, 12];
  21437. break;
  21438. case 24576 >= f:
  21439. m = [28, f - 16385, 13];
  21440. break;
  21441. case 32768 >= f:
  21442. m = [29, f - 24577, 13];
  21443. break;
  21444. default:
  21445. a("invalid distance")
  21446. }
  21447. k = m;
  21448. g[h++] = k[0];
  21449. g[h++] = k[1];
  21450. g[h++] = k[2];
  21451. f = 0;
  21452. for (h = g.length; f < h; ++f) s[t++] = g[f];
  21453. v[g[0]]++;
  21454. w[g[3]]++;
  21455. u = b.length + d - 1;
  21456. r = null
  21457. }
  21458. var f, g, h, m, n, q = {},
  21459. r, s = A ? new Uint16Array(2 * d.length) : [],
  21460. t = 0,
  21461. u = 0,
  21462. v = new(A ? Uint32Array : Array)(286),
  21463. w = new(A ? Uint32Array : Array)(30),
  21464. z = b.l,
  21465. x;
  21466. if (!A) {
  21467. for (h = 0; 285 >= h;) v[h++] = 0;
  21468. for (h = 0; 29 >= h;) w[h++] = 0
  21469. }
  21470. v[256] = 1;
  21471. f = 0;
  21472. for (g = d.length; f < g; ++f) {
  21473. h = n = 0;
  21474. for (m = 3; h < m && f + h !== g; ++h) n = n << 8 | d[f + h];
  21475. q[n] === F && (q[n] = []);
  21476. h = q[n];
  21477. if (!(0 < u--)) {
  21478. for (; 0 < h.length && 32768 < f - h[0];) h.shift();
  21479. if (f + 3 >= g) {
  21480. r && e(r, -1);
  21481. h = 0;
  21482. for (m = g - f; h < m; ++h) x = d[f + h], s[t++] = x, ++v[x];
  21483. break
  21484. }
  21485. if (0 < h.length) {
  21486. n = m = F;
  21487. var B = 0,
  21488. D = F,
  21489. y = F,
  21490. E = D = F,
  21491. H = d.length,
  21492. y = 0,
  21493. E = h.length;
  21494. a: for (; y < E; y++) {
  21495. m = h[E - y - 1];
  21496. D = 3;
  21497. if (3 < B) {
  21498. for (D = B; 3 < D; D--) if (d[m + D - 1] !== d[f + D - 1]) continue a;
  21499. D = B
  21500. }
  21501. for (; 258 > D && f + D < H && d[m + D] === d[f + D];)++D;
  21502. D > B && (n = m, B = D);
  21503. if (258 === D) break
  21504. }
  21505. m = new k(B, f - n);
  21506. r ? r.length < m.length ? (x = d[f - 1], s[t++] = x, ++v[x], e(m, 0)) : e(r, -1) : m.length < z ? r = m : e(m, 0)
  21507. } else r ? e(r, -1) : (x = d[f], s[t++] = x, ++v[x])
  21508. }
  21509. h.push(f)
  21510. }
  21511. s[t++] = 256;
  21512. v[256]++;
  21513. b.BU = v;
  21514. b.tU = w;
  21515. return A ? s.subarray(0, t) : s
  21516. }
  21517. function q(a, b) {
  21518. function d(a) {
  21519. var b = s[a][t[a]];
  21520. b === q ? (d(a + 1), d(a + 1)) : --r[b];
  21521. ++t[a]
  21522. }
  21523. var e = a.length,
  21524. g = new f(572),
  21525. h = new(A ? Uint8Array : Array)(e),
  21526. k, m, n;
  21527. if (!A) for (m = 0; m < e; m++) h[m] = 0;
  21528. for (m = 0; m < e; ++m) 0 < a[m] && g.push(m, a[m]);
  21529. e = Array(g.length / 2);
  21530. k = new(A ? Uint32Array : Array)(g.length / 2);
  21531. if (1 === e.length) return h[g.pop().index] = 1, h;
  21532. m = 0;
  21533. for (n = g.length / 2; m < n; ++m) e[m] = g.pop(), k[m] = e[m].value;
  21534. var q = k.length;
  21535. m = new(A ? Uint16Array : Array)(b);
  21536. var g = new(A ? Uint8Array : Array)(b),
  21537. r = new(A ? Uint8Array : Array)(q);
  21538. n = Array(b);
  21539. var s = Array(b),
  21540. t = Array(b),
  21541. u = (1 << b) - q,
  21542. v = 1 << b - 1,
  21543. w, x, z;
  21544. m[b - 1] = q;
  21545. for (w = 0; w < b; ++w) u < v ? g[w] = 0 : (g[w] = 1, u -= v), u <<= 1, m[b - 2 - w] = (m[b - 1 - w] / 2 | 0) + q;
  21546. m[0] = g[0];
  21547. n[0] = Array(m[0]);
  21548. s[0] = Array(m[0]);
  21549. for (w = 1; w < b; ++w) m[w] > 2 * m[w - 1] + g[w] && (m[w] = 2 * m[w - 1] + g[w]), n[w] = Array(m[w]), s[w] = Array(m[w]);
  21550. for (u = 0; u < q; ++u) r[u] = b;
  21551. for (v = 0; v < m[b - 1]; ++v) n[b - 1][v] = k[v], s[b - 1][v] = v;
  21552. for (u = 0; u < b; ++u) t[u] = 0;
  21553. 1 === g[b - 1] && (--r[0], ++t[b - 1]);
  21554. for (w = b - 2; 0 <= w; --w) {
  21555. x = u = 0;
  21556. z = t[w + 1];
  21557. for (v = 0; v < m[w]; v++) x = n[w + 1][z] + n[w + 1][z + 1], x > k[u] ? (n[w][v] = x, s[w][v] = q, z += 2) : (n[w][v] = k[u], s[w][v] = u, ++u);
  21558. t[w] = 0;
  21559. 1 === g[w] && d(w)
  21560. }
  21561. k = r;
  21562. m = 0;
  21563. for (n = e.length; m < n; ++m) h[e[m].index] = k[m];
  21564. return h
  21565. }
  21566. function r(b) {
  21567. var d = new(A ? Uint16Array : Array)(b.length),
  21568. e = [],
  21569. f = [],
  21570. g = 0,
  21571. h, k, m;
  21572. h = 0;
  21573. for (k = b.length; h < k; h++) e[b[h]] = (e[b[h]] | 0) + 1;
  21574. h = 1;
  21575. for (k = 16; h <= k; h++) f[h] = g, g += e[h] | 0, g > 1 << h && a("overcommitted"), g <<= 1;
  21576. 65536 > g && a("undercommitted");
  21577. h = 0;
  21578. for (k = b.length; h < k; h++) for (g = f[b[h]], f[b[h]] += 1, e = d[h] = 0, m = b[h]; e < m; e++) d[h] = d[h] << 1 | g & 1, g >>>= 1;
  21579. return d
  21580. }
  21581. function t(a, b) {
  21582. this.input = a;
  21583. this.a = new(A ? Uint8Array : Array)(32768);
  21584. this.Fq = M.Cz;
  21585. var d = {},
  21586. e;
  21587. !b && (b = {}) || "number" !== typeof b.AG || (this.Fq = b.AG);
  21588. for (e in b) d[e] = b[e];
  21589. d.Zz = this.a;
  21590. this.z = new h(this.input, d)
  21591. }
  21592. function s(b, d) {
  21593. this.Dz = [];
  21594. this.Ej = 32768;
  21595. this.Jd = this.g = this.C = this.gA = 0;
  21596. this.input = A ? new Uint8Array(b) : b;
  21597. this.eI = !1;
  21598. this.Mk = Ga;
  21599. this.Gf = !1;
  21600. if (d || !(d = {})) d.index && (this.C = d.index), d.lG && (this.Ej = d.lG), d.mG && (this.Mk = d.mG), d.resize && (this.Gf = d.resize);
  21601. switch (this.Mk) {
  21602. case sa:
  21603. this.b = 32768;
  21604. this.a = new(A ? Uint8Array : Array)(32768 + this.Ej + 258);
  21605. break;
  21606. case Ga:
  21607. this.b = 0;
  21608. this.a = new(A ? Uint8Array : Array)(this.Ej);
  21609. this.wf = this.rU;
  21610. this.jg = this.hU;
  21611. this.Uz = this.lU;
  21612. break;
  21613. default:
  21614. a(Error("invalid inflate mode"))
  21615. }
  21616. }
  21617. function u(b, d) {
  21618. for (var e = b.g, f = b.Jd, g = b.input, h = b.C, k; f < d;) k = g[h++], k === F && a(Error("input buffer is broken")), e |= k << f, f += 8;
  21619. b.g = e >>> d;
  21620. b.Jd = f - d;
  21621. b.C = h;
  21622. return e & (1 << d) - 1
  21623. }
  21624. function v(b, d) {
  21625. for (var e = b.g, f = b.Jd, g = b.input, h = b.C, k = d[0], m = d[1], n; f < m;) n = g[h++], n === F && a(Error("input buffer is broken")), e |= n << f, f += 8;
  21626. g = k[e & (1 << m) - 1];
  21627. k = g >>> 16;
  21628. b.g = e >> k;
  21629. b.Jd = f - k;
  21630. b.C = h;
  21631. return g & 65535
  21632. }
  21633. function B(a) {
  21634. function b(a, d, e) {
  21635. var f, g, h, k;
  21636. for (k = 0; k < a;) switch (f = v(this, d), f) {
  21637. case 16:
  21638. for (h = 3 + u(this, 2); h--;) e[k++] = g;
  21639. break;
  21640. case 17:
  21641. for (h = 3 + u(this, 3); h--;) e[k++] = 0;
  21642. g = 0;
  21643. break;
  21644. case 18:
  21645. for (h = 11 + u(this, 7); h--;) e[k++] = 0;
  21646. g = 0;
  21647. break;
  21648. default:
  21649. g = e[k++] = f
  21650. }
  21651. return e
  21652. }
  21653. var d = u(a, 5) + 257,
  21654. e = u(a, 5) + 1,
  21655. f = u(a, 4) + 4,
  21656. h = new(A ? Uint8Array : Array)(ea.length),
  21657. k;
  21658. for (k = 0; k < f; ++k) h[ea[k]] = u(a, 3);
  21659. f = g(h);
  21660. h = new(A ? Uint8Array : Array)(d);
  21661. k = new(A ? Uint8Array : Array)(e);
  21662. a.Uz(g(b.call(a, d, f, h)), g(b.call(a, e, f, k)))
  21663. }
  21664. function x(b, d) {
  21665. var e, f;
  21666. this.input = b;
  21667. this.C = 0;
  21668. if (d || !(d = {})) d.index && (this.C = d.index), d.RS && (this.KU = d.RS);
  21669. e = b[this.C++];
  21670. f = b[this.C++];
  21671. switch (e & 15) {
  21672. case w:
  21673. this.method = w;
  21674. break;
  21675. default:
  21676. a(Error("unsupported compression method"))
  21677. }
  21678. 0 !== ((e << 8) + f) % 31 && a(Error("invalid fcheck flag:" + ((e << 8) + f) % 31));
  21679. f & 32 && a(Error("fdict flag is not supported"));
  21680. this.ie = new s(b, {
  21681. index: this.C,
  21682. lG: d.lG,
  21683. mG: d.mG,
  21684. resize: d.resize
  21685. })
  21686. }
  21687. var F = void 0,
  21688. I = !0,
  21689. y = this,
  21690. A = "undefined" !== typeof Uint8Array && "undefined" !== typeof Uint16Array && "undefined" !== typeof Uint32Array;
  21691. e.prototype.wf = function() {
  21692. var a = this.buffer,
  21693. b, d = a.length,
  21694. e = new(A ? Uint8Array : Array)(d << 1);
  21695. if (A) e.set(a);
  21696. else for (b = 0; b < d; ++b) e[b] = a[b];
  21697. return this.buffer = e
  21698. };
  21699. e.prototype.D = function(a, b, d) {
  21700. var e = this.buffer,
  21701. f = this.index,
  21702. g = this.Bi,
  21703. h = e[f];
  21704. d && 1 < b && (a = 8 < b ? (K[a & 255] << 24 | K[a >>> 8 & 255] << 16 | K[a >>> 16 & 255] << 8 | K[a >>> 24 & 255]) >> 32 - b : K[a] >> 8 - b);
  21705. if (8 > b + g) h = h << b | a, g += b;
  21706. else for (d = 0; d < b; ++d) h = h << 1 | a >> b - d - 1 & 1, 8 === ++g && (g = 0, e[f++] = K[h], h = 0, f === e.length && (e = this.wf()));
  21707. e[f] = h;
  21708. this.buffer = e;
  21709. this.Bi = g;
  21710. this.index = f
  21711. };
  21712. e.prototype.finish = function() {
  21713. var a = this.buffer,
  21714. b = this.index,
  21715. d;
  21716. 0 < this.Bi && (a[b] <<= 8 - this.Bi, a[b] = K[a[b]], b++);
  21717. A ? d = a.subarray(0, b) : (a.length = b, d = a);
  21718. return d
  21719. };
  21720. var D = new(A ? Uint8Array : Array)(256),
  21721. z;
  21722. for (z = 0; 256 > z; ++z) {
  21723. for (var E = z, J = E, W = 7, E = E >>> 1; E; E >>>= 1) J <<= 1, J |= E & 1, --W;
  21724. D[z] = (J << W & 255) >>> 0
  21725. }
  21726. var K = D,
  21727. D = [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, 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, 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, 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, 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, 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];
  21728. A && new Uint32Array(D);
  21729. f.prototype.getParent = function(a) {
  21730. return 2 * ((a - 2) / 4 | 0)
  21731. };
  21732. f.prototype.push = function(a, b) {
  21733. var d, e, f = this.buffer,
  21734. g;
  21735. d = this.length;
  21736. f[this.length++] = b;
  21737. for (f[this.length++] = a; 0 < d;) 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;
  21738. else break;
  21739. return this.length
  21740. };
  21741. f.prototype.pop = function() {
  21742. var a, b, d = this.buffer,
  21743. e, f, g;
  21744. b = d[0];
  21745. a = d[1];
  21746. this.length -= 2;
  21747. d[0] = d[this.length];
  21748. d[1] = d[this.length + 1];
  21749. for (g = 0;;) {
  21750. f = 2 * g + 2;
  21751. if (f >= this.length) break;
  21752. f + 2 < this.length && d[f + 2] > d[f] && (f += 2);
  21753. if (d[f] > d[g]) e = d[g], d[g] = d[f], d[f] = e, e = d[g + 1], d[g + 1] = d[f + 1], d[f + 1] = e;
  21754. else break;
  21755. g = f
  21756. }
  21757. return {
  21758. index: a,
  21759. value: b,
  21760. length: this.length
  21761. }
  21762. };
  21763. var Y = 2,
  21764. D = {
  21765. NONE: 0,
  21766. r: 1,
  21767. Cz: Y,
  21768. laa: 3
  21769. },
  21770. ha = [];
  21771. for (z = 0; 288 > z; z++) switch (I) {
  21772. case 143 >= z:
  21773. ha.push([z + 48, 8]);
  21774. break;
  21775. case 255 >= z:
  21776. ha.push([z - 144 + 400, 9]);
  21777. break;
  21778. case 279 >= z:
  21779. ha.push([z - 256 + 0, 7]);
  21780. break;
  21781. case 287 >= z:
  21782. ha.push([z - 280 + 192, 8]);
  21783. break;
  21784. default:
  21785. a("invalid literal: " + z)
  21786. }
  21787. h.prototype.ha = function() {
  21788. var b, d, f, g, h = this.input;
  21789. switch (this.Fq) {
  21790. case 0:
  21791. f = 0;
  21792. for (g = h.length; f < g;) {
  21793. d = A ? h.subarray(f, f + 65535) : h.slice(f, f + 65535);
  21794. f += d.length;
  21795. var k = f === g,
  21796. m = F,
  21797. s = m = F,
  21798. s = m = F,
  21799. t = this.a,
  21800. u = this.b;
  21801. if (A) {
  21802. for (t = new Uint8Array(this.a.buffer); t.length <= u + d.length + 5;) t = new Uint8Array(t.length << 1);
  21803. t.set(this.a)
  21804. }
  21805. m = k ? 1 : 0;
  21806. t[u++] = m | 0;
  21807. m = d.length;
  21808. s = ~m + 65536 & 65535;
  21809. t[u++] = m & 255;
  21810. t[u++] = m >>> 8 & 255;
  21811. t[u++] = s & 255;
  21812. t[u++] = s >>> 8 & 255;
  21813. if (A) t.set(d, u), u += d.length, t = t.subarray(0, u);
  21814. else {
  21815. m = 0;
  21816. for (s = d.length; m < s; ++m) t[u++] = d[m];
  21817. t.length = u
  21818. }
  21819. this.b = u;
  21820. this.a = t
  21821. }
  21822. break;
  21823. case 1:
  21824. f = new e(new Uint8Array(this.a.buffer), this.b);
  21825. f.D(1, 1, I);
  21826. f.D(1, 2, I);
  21827. h = n(this, h);
  21828. d = 0;
  21829. for (k = h.length; d < k; d++) if (g = h[d], e.prototype.D.apply(f, ha[g]), 256 < g) f.D(h[++d], h[++d], I), f.D(h[++d], 5), f.D(h[++d], h[++d], I);
  21830. else if (256 === g) break;
  21831. this.a = f.finish();
  21832. this.b = this.a.length;
  21833. break;
  21834. case Y:
  21835. g = new e(new Uint8Array(this.a), this.b);
  21836. var v, w, x, z = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15],
  21837. D, B, m = Array(19),
  21838. y, t = Y;
  21839. g.D(1, 1, I);
  21840. g.D(t, 2, I);
  21841. h = n(this, h);
  21842. s = q(this.BU, 15);
  21843. D = r(s);
  21844. t = q(this.tU, 7);
  21845. u = r(t);
  21846. for (v = 286; 257 < v && 0 === s[v - 1]; v--);
  21847. for (w = 30; 1 < w && 0 === t[w - 1]; w--);
  21848. var E = v,
  21849. H = w;
  21850. b = new(A ? Uint32Array : Array)(E + H);
  21851. var M = new(A ? Uint32Array : Array)(316),
  21852. K, J;
  21853. B = new(A ? Uint8Array : Array)(19);
  21854. for (y = x = 0; y < E; y++) b[x++] = s[y];
  21855. for (y = 0; y < H; y++) b[x++] = t[y];
  21856. if (!A) for (y = 0, H = B.length; y < H; ++y) B[y] = 0;
  21857. y = K = 0;
  21858. for (H = b.length; y < H; y += x) {
  21859. for (x = 1; y + x < H && b[y + x] === b[y]; ++x);
  21860. E = x;
  21861. if (0 === b[y]) if (3 > E) for (; 0 < E--;) M[K++] = 0, B[0]++;
  21862. else for (; 0 < E;) J = 138 > E ? E : 138, J > E - 3 && J < E && (J = E - 3), 10 >= J ? (M[K++] = 17, M[K++] = J - 3, B[17]++) : (M[K++] = 18, M[K++] = J - 11, B[18]++), E -= J;
  21863. else if (M[K++] = b[y], B[b[y]]++, E--, 3 > E) for (; 0 < E--;) M[K++] = b[y], B[b[y]]++;
  21864. else for (; 0 < E;) J = 6 > E ? E : 6, J > E - 3 && J < E && (J = E - 3), M[K++] = 16, M[K++] = J - 3, B[16]++, E -= J
  21865. }
  21866. b = A ? M.subarray(0, K) : M.slice(0, K);
  21867. B = q(B, 7);
  21868. for (y = 0; 19 > y; y++) m[y] = B[z[y]];
  21869. for (x = 19; 4 < x && 0 === m[x - 1]; x--);
  21870. z = r(B);
  21871. g.D(v - 257, 5, I);
  21872. g.D(w - 1, 5, I);
  21873. g.D(x - 4, 4, I);
  21874. for (y = 0; y < x; y++) g.D(m[y], 3, I);
  21875. y = 0;
  21876. for (m = b.length; y < m; y++) if (d = b[y], g.D(z[d], B[d], I), 16 <= d) {
  21877. y++;
  21878. switch (d) {
  21879. case 16:
  21880. k = 2;
  21881. break;
  21882. case 17:
  21883. k = 3;
  21884. break;
  21885. case 18:
  21886. k = 7;
  21887. break;
  21888. default:
  21889. a("invalid code: " + d)
  21890. }
  21891. g.D(b[y], k, I)
  21892. }
  21893. k = [D, s];
  21894. u = [u, t];
  21895. d = k[0];
  21896. k = k[1];
  21897. t = u[0];
  21898. D = u[1];
  21899. u = 0;
  21900. for (m = h.length; u < m; ++u) if (f = h[u], g.D(d[f], k[f], I), 256 < f) g.D(h[++u], h[++u], I), s = h[++u], g.D(t[s], D[s], I), g.D(h[++u], h[++u], I);
  21901. else if (256 === f) break;
  21902. this.a = g.finish();
  21903. this.b = this.a.length;
  21904. break;
  21905. default:
  21906. a("invalid compression type")
  21907. }
  21908. return this.a
  21909. };
  21910. z = [];
  21911. var da;
  21912. for (da = 3; 258 >= da; da++) E = m(), z[da] = E[2] << 24 | E[1] << 16 | E[0];
  21913. var ya = A ? new Uint32Array(z) : z,
  21914. M = D;
  21915. t.prototype.ha = function() {
  21916. var b, e, f, g, h = 0;
  21917. g = this.a;
  21918. b = w;
  21919. switch (b) {
  21920. case w:
  21921. e = Math.LOG2E * Math.log(32768) - 8;
  21922. break;
  21923. default:
  21924. a(Error("invalid compression method"))
  21925. }
  21926. e = e << 4 | b;
  21927. g[h++] = e;
  21928. switch (b) {
  21929. case w:
  21930. switch (this.Fq) {
  21931. case M.NONE:
  21932. f = 0;
  21933. break;
  21934. case M.r:
  21935. f = 1;
  21936. break;
  21937. case M.Cz:
  21938. f = 2;
  21939. break;
  21940. default:
  21941. a(Error("unsupported compression type"))
  21942. }
  21943. break;
  21944. default:
  21945. a(Error("invalid compression method"))
  21946. }
  21947. b = f << 6 | 0;
  21948. g[h++] = b | 31 - (256 * e + b) % 31;
  21949. b = d(this.input);
  21950. this.z.b = h;
  21951. g = this.z.ha();
  21952. h = g.length;
  21953. A && (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));
  21954. g[h++] = b >> 24 & 255;
  21955. g[h++] = b >> 16 & 255;
  21956. g[h++] = b >> 8 & 255;
  21957. g[h++] = b & 255;
  21958. return g
  21959. };
  21960. b("Zlib.Deflate", t);
  21961. b("Zlib.Deflate.compress", function(a, b) {
  21962. return (new t(a, b)).ha()
  21963. });
  21964. b("Zlib.Deflate.CompressionType", M);
  21965. b("Zlib.Deflate.CompressionType.NONE", M.NONE);
  21966. b("Zlib.Deflate.CompressionType.FIXED", M.r);
  21967. b("Zlib.Deflate.CompressionType.DYNAMIC", M.Cz);
  21968. var sa = 0,
  21969. Ga = 1,
  21970. D = {
  21971. CT: sa,
  21972. mT: Ga
  21973. };
  21974. s.prototype.d = function() {
  21975. for (; !this.eI;) {
  21976. var b = u(this, 3);
  21977. b & 1 && (this.eI = I);
  21978. b >>>= 1;
  21979. switch (b) {
  21980. case 0:
  21981. var b = this.input,
  21982. d = this.C,
  21983. e = this.a,
  21984. f = this.b,
  21985. g = F,
  21986. h = F,
  21987. k = F,
  21988. m = e.length,
  21989. g = F;
  21990. this.Jd = this.g = 0;
  21991. g = b[d++];
  21992. g === F && a(Error("invalid uncompressed block header: LEN (first byte)"));
  21993. h = g;
  21994. g = b[d++];
  21995. g === F && a(Error("invalid uncompressed block header: LEN (second byte)"));
  21996. h |= g << 8;
  21997. g = b[d++];
  21998. g === F && a(Error("invalid uncompressed block header: NLEN (first byte)"));
  21999. k = g;
  22000. g = b[d++];
  22001. g === F && a(Error("invalid uncompressed block header: NLEN (second byte)"));
  22002. k |= g << 8;
  22003. h === ~k && a(Error("invalid uncompressed block header: length verify"));
  22004. d + h > b.length && a(Error("input buffer is broken"));
  22005. switch (this.Mk) {
  22006. case sa:
  22007. for (; f + h > e.length;) {
  22008. g = m - f;
  22009. h -= g;
  22010. if (A) e.set(b.subarray(d, d + g), f), f += g, d += g;
  22011. else for (; g--;) e[f++] = b[d++];
  22012. this.b = f;
  22013. e = this.wf();
  22014. f = this.b
  22015. }
  22016. break;
  22017. case Ga:
  22018. for (; f + h > e.length;) e = this.wf({
  22019. G: 2
  22020. });
  22021. break;
  22022. default:
  22023. a(Error("invalid inflate mode"))
  22024. }
  22025. if (A) e.set(b.subarray(d, d + h), f), f += h, d += h;
  22026. else for (; h--;) e[f++] = b[d++];
  22027. this.C = d;
  22028. this.b = f;
  22029. this.a = e;
  22030. break;
  22031. case 1:
  22032. this.Uz(la, H);
  22033. break;
  22034. case 2:
  22035. B(this);
  22036. break;
  22037. default:
  22038. a(Error("unknown BTYPE: " + b))
  22039. }
  22040. }
  22041. return this.jg()
  22042. };
  22043. z = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
  22044. var ea = A ? new Uint16Array(z) : z;
  22045. z = [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];
  22046. var Ha = A ? new Uint16Array(z) : z;
  22047. z = [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];
  22048. var ca = A ? new Uint8Array(z) : z;
  22049. z = [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];
  22050. var jb = A ? new Uint16Array(z) : z;
  22051. z = [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];
  22052. var Ra = A ? new Uint8Array(z) : z;
  22053. z = new(A ? Uint8Array : Array)(288);
  22054. E = 0;
  22055. for (J = z.length; E < J; ++E) z[E] = 143 >= E ? 8 : 255 >= E ? 9 : 279 >= E ? 7 : 8;
  22056. var la = g(z);
  22057. z = new(A ? Uint8Array : Array)(30);
  22058. E = 0;
  22059. for (J = z.length; E < J; ++E) z[E] = 5;
  22060. var H = g(z);
  22061. s.prototype.Uz = function(a, b) {
  22062. var d = this.a,
  22063. e = this.b;
  22064. this.da = a;
  22065. for (var f = d.length - 258, g, h, k; 256 !== (g = v(this, a));) if (256 > g) e >= f && (this.b = e, d = this.wf(), e = this.b), d[e++] = g;
  22066. else for (g -= 257, k = Ha[g], 0 < ca[g] && (k += u(this, ca[g])), g = v(this, b), h = jb[g], 0 < Ra[g] && (h += u(this, Ra[g])), e >= f && (this.b = e, d = this.wf(), e = this.b); k--;) d[e] = d[e++-h];
  22067. for (; 8 <= this.Jd;) this.Jd -= 8, this.C--;
  22068. this.b = e
  22069. };
  22070. s.prototype.lU = function(a, b) {
  22071. var d = this.a,
  22072. e = this.b;
  22073. this.da = a;
  22074. for (var f = d.length, g, h, k; 256 !== (g = v(this, a));) if (256 > g) e >= f && (d = this.wf(), f = d.length), d[e++] = g;
  22075. else for (g -= 257, k = Ha[g], 0 < ca[g] && (k += u(this, ca[g])), g = v(this, b), h = jb[g], 0 < Ra[g] && (h += u(this, Ra[g])), e + k > f && (d = this.wf(), f = d.length); k--;) d[e] = d[e++-h];
  22076. for (; 8 <= this.Jd;) this.Jd -= 8, this.C--;
  22077. this.b = e
  22078. };
  22079. s.prototype.wf = function() {
  22080. var a = new(A ? Uint8Array : Array)(this.b - 32768),
  22081. b = this.b - 32768,
  22082. d, e, f = this.a;
  22083. if (A) a.set(f.subarray(32768, a.length));
  22084. else for (d = 0, e = a.length; d < e; ++d) a[d] = f[d + 32768];
  22085. this.Dz.push(a);
  22086. this.gA += a.length;
  22087. if (A) f.set(f.subarray(b, b + 32768));
  22088. else for (d = 0; 32768 > d; ++d) f[d] = f[b + d];
  22089. this.b = 32768;
  22090. return f
  22091. };
  22092. s.prototype.rU = function(a) {
  22093. var b, d = this.input.length / this.C + 1 | 0,
  22094. e, f, g, h = this.input,
  22095. k = this.a;
  22096. a && ("number" === typeof a.G && (d = a.G), "number" === typeof a.bU && (d += a.bU));
  22097. 2 > d ? (e = (h.length - this.C) / this.da[2], g = e / 2 * 258 | 0, f = g < k.length ? k.length + g : k.length << 1) : f = k.length * d;
  22098. A ? (b = new Uint8Array(f), b.set(k)) : b = k;
  22099. return this.a = b
  22100. };
  22101. s.prototype.jg = function() {
  22102. var a = 0,
  22103. b = this.a,
  22104. d = this.Dz,
  22105. e, f = new(A ? Uint8Array : Array)(this.gA + (this.b - 32768)),
  22106. g, h, k, m;
  22107. if (0 === d.length) return A ? this.a.subarray(32768, this.b) : this.a.slice(32768, this.b);
  22108. g = 0;
  22109. for (h = d.length; g < h; ++g) for (e = d[g], k = 0, m = e.length; k < m; ++k) f[a++] = e[k];
  22110. g = 32768;
  22111. for (h = this.b; g < h; ++g) f[a++] = b[g];
  22112. this.Dz = [];
  22113. return this.buffer = f
  22114. };
  22115. s.prototype.hU = function() {
  22116. var a, b = this.b;
  22117. A ? this.Gf ? (a = new Uint8Array(b), a.set(this.a.subarray(0, b))) : a = this.a.subarray(0, b) : (this.a.length > b && (this.a.length = b), a = this.a);
  22118. return this.buffer = a
  22119. };
  22120. x.prototype.d = function() {
  22121. var b = this.input,
  22122. e, f;
  22123. e = this.ie.d();
  22124. this.C = this.ie.C;
  22125. this.KU && (f = (b[this.C++] << 24 | b[this.C++] << 16 | b[this.C++] << 8 | b[this.C++]) >>> 0, f !== d(e) && a(Error("invalid adler-32 checksum")));
  22126. return e
  22127. };
  22128. b("Zlib.Inflate", x);
  22129. b("Zlib.Inflate.BufferType", D);
  22130. D.w9 = D.mT;
  22131. D.W9 = D.CT;
  22132. b("Zlib.Inflate.prototype.decompress", x.prototype.d);
  22133. D = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
  22134. A && new Uint16Array(D);
  22135. D = [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];
  22136. A && new Uint16Array(D);
  22137. D = [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];
  22138. A && new Uint8Array(D);
  22139. D = [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];
  22140. A && new Uint16Array(D);
  22141. D = [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];
  22142. A && new Uint8Array(D);
  22143. D = new(A ? Uint8Array : Array)(288);
  22144. z = 0;
  22145. for (E = D.length; z < E; ++z) D[z] = 143 >= z ? 8 : 255 >= z ? 9 : 279 >= z ? 7 : 8;
  22146. g(D);
  22147. D = new(A ? Uint8Array : Array)(30);
  22148. z = 0;
  22149. for (E = D.length; z < E; ++z) D[z] = 5;
  22150. g(D);
  22151. var w = 8
  22152. }).call(this);
  22153. p = window;
  22154. p = p.uba = p.Zlib;
  22155. p.hJ = p.Deflate;
  22156. p.hJ.oda = p.hJ.compress;
  22157. p.Ho = p.Inflate;
  22158. p.Ho.n$ = p.Ho.BufferType;
  22159. p.Ho.prototype.SO = p.Ho.prototype.decompress;
  22160. c.oV = c.qa.extend({
  22161. ctor: function(a) {
  22162. var b, d, e, f;
  22163. this.data = a;
  22164. this.hb = 8;
  22165. this.SH = [];
  22166. this.sz = [];
  22167. this.wo = {};
  22168. this.gG = null;
  22169. this.text = {};
  22170. for (e = null;;) {
  22171. b = this.Rk();
  22172. f = a = void 0;
  22173. f = [];
  22174. for (a = 0; 4 > a; ++a) f.push(String.fromCharCode(this.data[this.hb++]));
  22175. a = f.join("");
  22176. switch (a) {
  22177. case "IHDR":
  22178. this.width = this.Rk();
  22179. this.height = this.Rk();
  22180. this.hq = this.data[this.hb++];
  22181. this.yG = this.data[this.hb++];
  22182. this.hb++;
  22183. this.hb++;
  22184. this.hb++;
  22185. break;
  22186. case "acTL":
  22187. this.gG = {
  22188. Tka: this.Rk(),
  22189. Uka: this.Rk() || Infinity,
  22190. frames: []
  22191. };
  22192. break;
  22193. case "PLTE":
  22194. this.SH = this.ov(b);
  22195. break;
  22196. case "fcTL":
  22197. e && this.gG.frames.push(e);
  22198. this.hb += 4;
  22199. e = {
  22200. width: this.Rk(),
  22201. height: this.Rk(),
  22202. VS: this.Rk(),
  22203. WS: this.Rk()
  22204. };
  22205. a = this.lR();
  22206. b = this.lR() || 100;
  22207. e.wda = 1E3 * a / b;
  22208. e.Kda = this.data[this.hb++];
  22209. e.Uca = this.data[this.hb++];
  22210. e.data = [];
  22211. break;
  22212. case "IDAT":
  22213. case "fdAT":
  22214. "fdAT" === a && (this.hb += 4, b -= 4);
  22215. a = (null != e ? e.data : void 0) || this.sz;
  22216. for (f = 0; 0 <= b ? f < b : f > b; 0 <= b ? ++f : --f) a.push(this.data[this.hb++]);
  22217. break;
  22218. case "tRNS":
  22219. this.wo = {};
  22220. switch (this.yG) {
  22221. case 3:
  22222. this.wo.mH = this.ov(b);
  22223. b = 255 - this.wo.mH.length;
  22224. if (0 < b) for (a = 0; 0 <= b ? a < b : a > b; 0 <= b ? ++a : --a) this.wo.mH.push(255);
  22225. break;
  22226. case 0:
  22227. this.wo.Nha = this.ov(b)[0];
  22228. break;
  22229. case 2:
  22230. this.wo.yma = this.ov(b)
  22231. }
  22232. break;
  22233. case "tEXt":
  22234. f = this.ov(b);
  22235. b = f.indexOf(0);
  22236. a = String.fromCharCode.apply(String, f.slice(0, b));
  22237. this.text[a] = String.fromCharCode.apply(String, f.slice(b + 1));
  22238. break;
  22239. case "IEND":
  22240. e && this.gG.frames.push(e);
  22241. a: {
  22242. switch (this.yG) {
  22243. case 0:
  22244. case 3:
  22245. case 4:
  22246. e = 1;
  22247. break a;
  22248. case 2:
  22249. case 6:
  22250. e = 3;
  22251. break a
  22252. }
  22253. e = void 0
  22254. }
  22255. this.v = e;
  22256. this.$P = 4 === (d = this.yG) || 6 === d;
  22257. d = this.v + (this.$P ? 1 : 0);
  22258. this.k6 = this.hq * d;
  22259. Uint8Array != Array && (this.sz = new Uint8Array(this.sz));
  22260. return;
  22261. default:
  22262. this.hb += b
  22263. }
  22264. this.hb += 4;
  22265. if (this.hb > this.data.length) throw Error("Incomplete or corrupt PNG file");
  22266. }
  22267. },
  22268. ov: function(a) {
  22269. var b, d;
  22270. d = [];
  22271. for (b = 0; 0 <= a ? b < a : b > a; 0 <= a ? ++b : --b) d.push(this.data[this.hb++]);
  22272. return d
  22273. },
  22274. Rk: function() {
  22275. var a, b, d, e;
  22276. a = this.data[this.hb++] << 24;
  22277. b = this.data[this.hb++] << 16;
  22278. d = this.data[this.hb++] << 8;
  22279. e = this.data[this.hb++];
  22280. return a | b | d | e
  22281. },
  22282. lR: function() {
  22283. var a, b;
  22284. a = this.data[this.hb++] << 8;
  22285. b = this.data[this.hb++];
  22286. return a | b
  22287. },
  22288. j2: function(a) {
  22289. var b, d, e, f, g, h, k, m, n, q, r, t, s, u, v;
  22290. null == a && (a = this.sz);
  22291. if (0 === a.length) return new Uint8Array(0);
  22292. a = (new Zlib.Ho(a, {
  22293. index: 0,
  22294. RS: !1
  22295. })).SO();
  22296. m = this.k6 / 8;
  22297. t = m * this.width;
  22298. n = new Uint8Array(t * this.height);
  22299. h = a.length;
  22300. for (d = q = r = 0; q < h;) {
  22301. switch (a[q++]) {
  22302. case 0:
  22303. for (b = 0; b < t; b += 1) n[d++] = a[q++];
  22304. break;
  22305. case 1:
  22306. for (f = s = 0; s < t; f = s += 1) b = a[q++], g = f < m ? 0 : n[d - m], n[d++] = (b + g) % 256;
  22307. break;
  22308. case 2:
  22309. for (f = g = 0; g < t; f = g += 1) b = a[q++], e = (f - f % m) / m, s = r && n[(r - 1) * t + e * m + f % m], n[d++] = (s + b) % 256;
  22310. break;
  22311. case 3:
  22312. for (f = v = 0; v < t; f = v += 1) b = a[q++], e = (f - f % m) / m, g = f < m ? 0 : n[d - m], s = r && n[(r - 1) * t + e * m + f % m], n[d++] = (b + Math.floor((g + s) / 2)) % 256;
  22313. break;
  22314. case 4:
  22315. for (f = v = 0; v < t; f = v += 1) b = a[q++], e = (f - f % m) / m, g = f < m ? 0 : n[d - m], 0 === r ? s = u = 0 : (s = n[(r - 1) * t + e * m + f % m], u = e && n[(r - 1) * t + (e - 1) * m + f % m]), k = g + s - u, f = Math.abs(k - g), e = Math.abs(k - s), k = Math.abs(k - u), g = f <= e && f <= k ? g : e <= k ? s : u, n[d++] = (b + g) % 256;
  22316. break;
  22317. default:
  22318. throw Error("Invalid filter algorithm: " + a[q - 1]);
  22319. }
  22320. r++
  22321. }
  22322. return n
  22323. },
  22324. f2: function(a, b) {
  22325. var d, e, f, g, h, k, m, n;
  22326. e = this.v;
  22327. n = null;
  22328. d = this.$P;
  22329. this.SH.length && (n = null != (f = this.zY) ? f : this.zY = this.i2(), e = 4, d = !0);
  22330. f = a.data || a;
  22331. m = f.length;
  22332. h = n || b;
  22333. g = k = 0;
  22334. if (1 === e) for (; g < m;) e = n ? 4 * b[g / 4] : k, k = h[e++], f[g++] = k, f[g++] = k, f[g++] = k, f[g++] = d ? h[e++] : 255, k = e;
  22335. else for (; g < m;) e = n ? 4 * b[g / 4] : k, f[g++] = h[e++], f[g++] = h[e++], f[g++] = h[e++], f[g++] = d ? h[e++] : 255, k = e
  22336. },
  22337. i2: function() {
  22338. var a, b, d, e, f, g, h, k, m;
  22339. d = this.SH;
  22340. g = this.wo.mH || [];
  22341. f = new Uint8Array((g.length || 0) + d.length);
  22342. b = h = a = e = 0;
  22343. for (k = d.length; h < k; b = h += 3) f[e++] = d[b], f[e++] = d[b + 1], f[e++] = d[b + 2], f[e++] = null != (m = g[a++]) ? m : 255;
  22344. return f
  22345. },
  22346. S6: function(a) {
  22347. var b;
  22348. a.width = this.width;
  22349. a.height = this.height;
  22350. a = a.getContext("2d");
  22351. b = a.createImageData(this.width, this.height);
  22352. this.f2(b, this.j2());
  22353. return a.putImageData(b, 0, 0)
  22354. }
  22355. });
  22356. c.V8 = {
  22357. RM: !1,
  22358. xn: null,
  22359. zD: [],
  22360. getUint8: function(a) {
  22361. return this.xn[a]
  22362. },
  22363. getUint16: function(a) {
  22364. return this.RM ? this.xn[a + 1] << 8 | this.xn[a] : this.xn[a] << 8 | this.xn[a + 1]
  22365. },
  22366. getUint32: function(a) {
  22367. var b = this.xn;
  22368. return this.RM ? b[a + 3] << 24 | b[a + 2] << 16 | b[a + 1] << 8 | b[a] : b[a] << 24 | b[a + 1] << 16 | b[a + 2] << 8 | b[a + 3]
  22369. },
  22370. L1: function() {
  22371. var a = this.getUint16(0);
  22372. if (18761 === a) this.KH = !0;
  22373. else if (19789 === a) this.KH = !1;
  22374. else throw console.log(a), TypeError("Invalid byte order value.");
  22375. return this.KH
  22376. },
  22377. p4: function() {
  22378. if (42 !== this.getUint16(2)) throw RangeError("You forgot your towel!");
  22379. return !0
  22380. },
  22381. p3: function(a) {
  22382. var b = this.V2;
  22383. return a in b ? b[a] : null
  22384. },
  22385. n3: function(a) {
  22386. var b = this.U2;
  22387. if (a in b) return b[a];
  22388. console.log("Unknown Field Tag:", a);
  22389. return "Tag" + a
  22390. },
  22391. o3: function(a) {
  22392. 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 : null
  22393. },
  22394. q3: function(a, b, d, e) {
  22395. a = [];
  22396. var f = this.o3(b);
  22397. if (4 >= f * d)!1 === this.KH ? a.push(e >>> 8 * (4 - f)) : a.push(e);
  22398. else for (var g = 0; g < d; g++) {
  22399. var h = f * g;
  22400. 8 <= f ? -1 !== ["RATIONAL", "SRATIONAL"].indexOf(b) ? (a.push(this.getUint32(e + h)), a.push(this.getUint32(e + h + 4))) : c.log("Can't handle this field type or size") : a.push(this.pP(f, e + h))
  22401. }
  22402. "ASCII" === b && a.forEach(function(a, b, d) {
  22403. d[b] = String.fromCharCode(a)
  22404. });
  22405. return a
  22406. },
  22407. pP: function(a, b) {
  22408. if (0 >= a) c.log("No bytes requested");
  22409. else {
  22410. if (1 >= a) return this.getUint8(b);
  22411. if (2 >= a) return this.getUint16(b);
  22412. if (3 >= a) return this.getUint32(b) >>> 8;
  22413. if (4 >= a) return this.getUint32(b);
  22414. c.log("Too many bytes requested")
  22415. }
  22416. },
  22417. a3: function(a, b, d) {
  22418. d = d || 0;
  22419. b += Math.floor(d / 8);
  22420. var e = d + a;
  22421. a = 32 - a;
  22422. var f, g;
  22423. 0 >= e ? console.log("No bits requested") : 8 >= e ? (f = 24 + d, g = this.getUint8(b)) : 16 >= e ? (f = 16 + d, g = this.getUint16(b)) : 32 >= e ? (f = d, g = this.getUint32(b)) : console.log("Too many bits requested");
  22424. return {
  22425. bits: g << f >>> a,
  22426. byteOffset: b + Math.floor(e / 8),
  22427. bitOffset: e % 8
  22428. }
  22429. },
  22430. gR: function(a) {
  22431. var b = this.getUint16(a),
  22432. d = [];
  22433. a += 2;
  22434. for (var e = 0; e < b; a += 12, e++) {
  22435. var f = this.getUint16(a),
  22436. g = this.getUint16(a + 2),
  22437. h = this.getUint32(a + 4),
  22438. k = this.getUint32(a + 8),
  22439. f = this.n3(f),
  22440. g = this.p3(g),
  22441. h = this.q3(f, g, h, k);
  22442. d[f] = {
  22443. type: g,
  22444. Ni: h
  22445. }
  22446. }
  22447. this.zD.push(d);
  22448. b = this.getUint32(a);
  22449. 0 !== b && this.gR(b)
  22450. },
  22451. Kn: function(a, b) {
  22452. var d = Math.pow(2, 8 - b);
  22453. return Math.floor(a * d + (d - 1))
  22454. },
  22455. f6: function(a, b) {
  22456. b = b || c.ac("canvas");
  22457. this.xn = a;
  22458. this.canvas = b;
  22459. this.L1();
  22460. if (this.p4()) {
  22461. var d = this.getUint32(4);
  22462. this.zD.length = 0;
  22463. this.gR(d);
  22464. var e = this.zD[0],
  22465. d = e.ImageWidth.Ni[0],
  22466. f = e.ImageLength.Ni[0];
  22467. this.canvas.width = d;
  22468. this.canvas.height = f;
  22469. var g = [],
  22470. h = e.Compression ? e.Compression.Ni[0] : 1,
  22471. k = e.SamplesPerPixel.Ni[0],
  22472. m = [],
  22473. n = 0,
  22474. q = !1;
  22475. e.BitsPerSample.Ni.forEach(function(a, b) {
  22476. m[b] = {
  22477. iq: a,
  22478. nz: !1,
  22479. su: void 0
  22480. };
  22481. 0 === a % 8 && (m[b].nz = !0, m[b].su = a / 8);
  22482. n += a
  22483. }, this);
  22484. if (0 === n % 8) var q = !0,
  22485. r = n / 8;
  22486. var t = e.StripOffsets.Ni,
  22487. s = t.length;
  22488. if (e.StripByteCounts) var u = e.StripByteCounts.Ni;
  22489. else if (c.log("Missing StripByteCounts!"), 1 === s) u = [Math.ceil(d * f * n / 8)];
  22490. else throw Error("Cannot recover from missing StripByteCounts");
  22491. for (var v = 0; v < s; v++) {
  22492. var B = t[v];
  22493. g[v] = [];
  22494. for (var x = u[v], F = 0, I = 0, y = 1, A = !0, D = [], z = 0, E = 0, J = 0; F < x; F += y) switch (h) {
  22495. case 1:
  22496. y = 0;
  22497. for (D = []; y < k; y++) if (m[y].nz) D.push(this.pP(m[y].su, B + F + m[y].su * y));
  22498. else {
  22499. var W = this.a3(m[y].iq, B + F, I);
  22500. D.push(W.hq);
  22501. F = W.byteOffset - B;
  22502. I = W.Sca;
  22503. throw RangeError("Cannot handle sub-byte bits per sample");
  22504. }
  22505. g[v].push(D);
  22506. if (q) y = r;
  22507. else throw y = 0, RangeError("Cannot handle sub-byte bits per pixel");
  22508. break;
  22509. case 32773:
  22510. if (A) {
  22511. var A = !1,
  22512. K = 1,
  22513. Y = 1,
  22514. y = this.getInt8(B + F);
  22515. 0 <= y && 127 >= y ? K = y + 1 : -127 <= y && -1 >= y ? Y = -y + 1 : A = !0
  22516. } else {
  22517. for (var ha = this.getUint8(B + F), y = 0; y < Y; y++) {
  22518. if (m[E].nz) J = J << 8 * z | ha, z++, z === m[E].su && (D.push(J), J = z = 0, E++);
  22519. else throw RangeError("Cannot handle sub-byte bits per sample");
  22520. E === k && (g[v].push(D), D = [], E = 0)
  22521. }
  22522. K--;
  22523. 0 === K && (A = !0)
  22524. }
  22525. y = 1
  22526. }
  22527. }
  22528. if (b.getContext) {
  22529. r = this.canvas.getContext("2d");
  22530. r.fillStyle = "rgba(255, 255, 255, 0)";
  22531. v = e.RowsPerStrip ? e.RowsPerStrip.Ni[0] : f;
  22532. B = g.length;
  22533. f %= v;
  22534. f = 0 === f ? v : f;
  22535. F = v;
  22536. h = 0;
  22537. D = e.PhotometricInterpretation.Ni[0];
  22538. K = [];
  22539. Y = 0;
  22540. e.ExtraSamples && (K = e.ExtraSamples.Ni, Y = K.length);
  22541. if (e.ColorMap) var W = e.ColorMap.Ni,
  22542. da = Math.pow(2, m[0].iq);
  22543. for (v = 0; v < B; v++) {
  22544. v + 1 === B && (F = f);
  22545. e = g[v].length;
  22546. h *= v;
  22547. for (q = k = 0; k < F, q < e; k++) for (t = 0; t < d; t++, q++) {
  22548. u = g[v][q];
  22549. A = I = x = 0;
  22550. s = 1;
  22551. if (0 < Y) for (x = 0; x < Y; x++) if (1 === K[x] || 2 === K[x]) {
  22552. s = u[3 + x] / 256;
  22553. break
  22554. }
  22555. switch (D) {
  22556. case 0:
  22557. if (m[0].nz) var ya = Math.pow(16, 2 * m[0].su);
  22558. u.forEach(function(a, b, d) {
  22559. d[b] = ya - a
  22560. });
  22561. case 1:
  22562. x = I = A = this.Kn(u[0], m[0].iq);
  22563. break;
  22564. case 2:
  22565. x = this.Kn(u[0], m[0].iq);
  22566. I = this.Kn(u[1], m[1].iq);
  22567. A = this.Kn(u[2], m[2].iq);
  22568. break;
  22569. case 3:
  22570. if (void 0 === W) throw Error("Palette image missing color map");
  22571. u = u[0];
  22572. x = this.Kn(W[u], 16);
  22573. I = this.Kn(W[da + u], 16);
  22574. A = this.Kn(W[2 * da + u], 16);
  22575. break;
  22576. default:
  22577. throw RangeError("Unknown Photometric Interpretation:", D);
  22578. }
  22579. r.fillStyle = "rgba(" + x + ", " + I + ", " + A + ", " + s + ")";
  22580. r.fillRect(t, h + k, 1, 1)
  22581. }
  22582. h = F
  22583. }
  22584. }
  22585. return this.canvas
  22586. }
  22587. },
  22588. U2: {
  22589. 315: "Artist",
  22590. 258: "BitsPerSample",
  22591. 265: "CellLength",
  22592. 264: "CellWidth",
  22593. 320: "ColorMap",
  22594. 259: "Compression",
  22595. 33432: "Copyright",
  22596. 306: "DateTime",
  22597. 338: "ExtraSamples",
  22598. 266: "FillOrder",
  22599. 289: "FreeByteCounts",
  22600. 288: "FreeOffsets",
  22601. 291: "GrayResponseCurve",
  22602. 290: "GrayResponseUnit",
  22603. 316: "HostComputer",
  22604. 270: "ImageDescription",
  22605. 257: "ImageLength",
  22606. 256: "ImageWidth",
  22607. 271: "Make",
  22608. 281: "MaxSampleValue",
  22609. 280: "MinSampleValue",
  22610. 272: "Model",
  22611. 254: "NewSubfileType",
  22612. 274: "Orientation",
  22613. 262: "PhotometricInterpretation",
  22614. 284: "PlanarConfiguration",
  22615. 296: "ResolutionUnit",
  22616. 278: "RowsPerStrip",
  22617. 277: "SamplesPerPixel",
  22618. 305: "Software",
  22619. 279: "StripByteCounts",
  22620. 273: "StripOffsets",
  22621. 255: "SubfileType",
  22622. 263: "Threshholding",
  22623. 282: "XResolution",
  22624. 283: "YResolution",
  22625. 326: "BadFaxLines",
  22626. 327: "CleanFaxData",
  22627. 343: "ClipPath",
  22628. 328: "ConsecutiveBadFaxLines",
  22629. 433: "Decode",
  22630. 434: "DefaultImageColor",
  22631. 269: "DocumentName",
  22632. 336: "DotRange",
  22633. 321: "HalftoneHints",
  22634. 346: "Indexed",
  22635. 347: "JPEGTables",
  22636. 285: "PageName",
  22637. 297: "PageNumber",
  22638. 317: "Predictor",
  22639. 319: "PrimaryChromaticities",
  22640. 532: "ReferenceBlackWhite",
  22641. 339: "SampleFormat",
  22642. 559: "StripRowCounts",
  22643. 330: "SubIFDs",
  22644. 292: "T4Options",
  22645. 293: "T6Options",
  22646. 325: "TileByteCounts",
  22647. 323: "TileLength",
  22648. 324: "TileOffsets",
  22649. 322: "TileWidth",
  22650. 301: "TransferFunction",
  22651. 318: "WhitePoint",
  22652. 344: "XClipPathUnits",
  22653. 286: "XPosition",
  22654. 529: "YCbCrCoefficients",
  22655. 531: "YCbCrPositioning",
  22656. 530: "YCbCrSubSampling",
  22657. 345: "YClipPathUnits",
  22658. 287: "YPosition",
  22659. 37378: "ApertureValue",
  22660. 40961: "ColorSpace",
  22661. 36868: "DateTimeDigitized",
  22662. 36867: "DateTimeOriginal",
  22663. 34665: "Exif IFD",
  22664. 36864: "ExifVersion",
  22665. 33434: "ExposureTime",
  22666. 41728: "FileSource",
  22667. 37385: "Flash",
  22668. 40960: "FlashpixVersion",
  22669. 33437: "FNumber",
  22670. 42016: "ImageUniqueID",
  22671. 37384: "LightSource",
  22672. 37500: "MakerNote",
  22673. 37377: "ShutterSpeedValue",
  22674. 37510: "UserComment",
  22675. 33723: "IPTC",
  22676. 34675: "ICC Profile",
  22677. 700: "XMP",
  22678. 42112: "GDAL_METADATA",
  22679. 42113: "GDAL_NODATA",
  22680. 34377: "Photoshop"
  22681. },
  22682. V2: {
  22683. 1: "BYTE",
  22684. 2: "ASCII",
  22685. 3: "SHORT",
  22686. 4: "LONG",
  22687. 5: "RATIONAL",
  22688. 6: "SBYTE",
  22689. 7: "UNDEFINED",
  22690. 8: "SSHORT",
  22691. 9: "SLONG",
  22692. 10: "SRATIONAL",
  22693. 11: "FLOAT",
  22694. 12: "DOUBLE"
  22695. }
  22696. };
  22697. c.ih = function(a, b, d, e, f, g, h, k, m, n, q, r) {
  22698. this.hb = a ? a : c.d(0, 0);
  22699. this.GA = b ? b : c.d(0, 0);
  22700. this.color = d ? d : {
  22701. r: 0,
  22702. g: 0,
  22703. b: 0,
  22704. a: 255
  22705. };
  22706. this.Au = e ? e : {
  22707. r: 0,
  22708. g: 0,
  22709. b: 0,
  22710. a: 255
  22711. };
  22712. this.size = f || 0;
  22713. this.FG = g || 0;
  22714. this.rotation = h || 0;
  22715. this.YO = k || 0;
  22716. this.zm = m || 0;
  22717. this.atlasIndex = n || 0;
  22718. this.jc = q ? q : new c.ih.xB;
  22719. this.ce = r ? r : new c.ih.yB;
  22720. this.tQ = !1;
  22721. this.Du = c.d(0, 0)
  22722. };
  22723. c.ih.xB = function(a, b, d) {
  22724. this.dir = a ? a : c.d(0, 0);
  22725. this.radialAccel = b || 0;
  22726. this.tangentialAccel = d || 0
  22727. };
  22728. c.ih.yB = function(a, b, d, e) {
  22729. this.Re = a || 0;
  22730. this.UO = b || 0;
  22731. this.nv = d || 0;
  22732. this.XO = e || 0
  22733. };
  22734. c.ih.Fw = [c.d(), c.d(), c.d(), c.d()];
  22735. c.o = c.t.extend({
  22736. vE: "",
  22737. rb: 0,
  22738. EL: !1,
  22739. jc: null,
  22740. ce: null,
  22741. ob: "ParticleSystem",
  22742. BE: c.d(0, 0),
  22743. Pl: null,
  22744. $m: 0,
  22745. Rf: 0,
  22746. $: null,
  22747. atlasIndex: 0,
  22748. zn: !1,
  22749. Sw: 0,
  22750. Zy: null,
  22751. FA: null,
  22752. Ep: !1,
  22753. Od: 0,
  22754. duration: 0,
  22755. Pp: null,
  22756. Ql: null,
  22757. xe: 0,
  22758. Pq: 0,
  22759. Re: 0,
  22760. eq: 0,
  22761. hr: 0,
  22762. ir: 0,
  22763. Tn: 0,
  22764. qq: 0,
  22765. ni: null,
  22766. Yl: null,
  22767. kf: null,
  22768. Cl: null,
  22769. jr: 0,
  22770. kr: 0,
  22771. rq: 0,
  22772. sq: 0,
  22773. Sn: 0,
  22774. vb: 0,
  22775. O: null,
  22776. q: null,
  22777. Xa: !1,
  22778. Kj: null,
  22779. qu: !1,
  22780. Oa: 0,
  22781. Tc: null,
  22782. sb: null,
  22783. Jc: null,
  22784. Gt: null,
  22785. sa: null,
  22786. qd: null,
  22787. ctor: function(a) {
  22788. c.t.prototype.ctor.call(this);
  22789. this.Oa = c.o.nb;
  22790. this.jc = new c.o.xB;
  22791. this.ce = new c.o.yB;
  22792. this.q = {
  22793. src: c.vc,
  22794. W: c.uc
  22795. };
  22796. this.Pl = [];
  22797. this.Pp = c.d(0, 0);
  22798. this.Ql = c.d(0, 0);
  22799. this.ni = c.color(255, 255, 255, 255);
  22800. this.Yl = c.color(255, 255, 255, 255);
  22801. this.kf = c.color(255, 255, 255, 255);
  22802. this.Cl = c.color(255, 255, 255, 255);
  22803. this.vE = "";
  22804. this.rb = 0;
  22805. this.EL = !1;
  22806. this.BE = c.d(0, 0);
  22807. this.Rf = this.$m = 0;
  22808. this.$ = null;
  22809. this.atlasIndex = 0;
  22810. this.zn = !1;
  22811. this.Sw = 0;
  22812. this.Zy = c.o.RV;
  22813. this.FA = c.o.eT;
  22814. this.Ep = !1;
  22815. this.vb = this.Sn = this.sq = this.rq = this.kr = this.jr = this.qq = this.Tn = this.ir = this.hr = this.eq = this.Re = this.Pq = this.xe = this.duration = this.Od = 0;
  22816. this.O = null;
  22817. this.Xa = !1;
  22818. this.Kj = c.o.ys;
  22819. this.qu = !1;
  22820. this.Jc = [0, 0];
  22821. this.Tc = [];
  22822. this.sb = [];
  22823. this.Gt = c.rect(0, 0, 0, 0);
  22824. this.sa = !0;
  22825. c.F === c.ea && (this.qd = null);
  22826. a && "number" !== typeof a ? a && this.mm(a) : (a = a || 100, this.w7(c.o.gK), this.ab(a))
  22827. },
  22828. nH: function() {
  22829. for (var a = this.sb, b = 0, d = this.vb; b < d; ++b) {
  22830. var e = 6 * b,
  22831. f = 4 * b;
  22832. a[e + 0] = f + 0;
  22833. a[e + 1] = f + 1;
  22834. a[e + 2] = f + 2;
  22835. a[e + 5] = f + 1;
  22836. a[e + 4] = f + 2;
  22837. a[e + 3] = f + 3
  22838. }
  22839. },
  22840. fQ: function(a) {
  22841. var b = c.wb(),
  22842. d = c.rect(a.x * b, a.y * b, a.width * b, a.height * b),
  22843. e = a.width,
  22844. f = a.height;
  22845. this.O && (e = this.O.pixelsWidth, f = this.O.pixelsHeight);
  22846. if (c.F !== c.Ha) {
  22847. c.Do ? (a = (2 * d.x + 1) / (2 * e), b = (2 * d.y + 1) / (2 * f), e = a + (2 * d.width - 2) / (2 * e), d = b + (2 * d.height - 2) / (2 * f)) : (a = d.x / e, b = d.y / f, e = a + d.width / e, d = b + d.height / f);
  22848. var f = d,
  22849. d = b,
  22850. b = f,
  22851. g = 0,
  22852. h = 0;
  22853. this.$ ? (f = this.$.textureAtlas.quads, g = this.atlasIndex, h = this.atlasIndex + this.vb) : (f = this.Tc, g = 0, h = this.vb);
  22854. for (; g < h; g++) {
  22855. f[g] || (f[g] = c.UK());
  22856. var k = f[g];
  22857. k.I.n.da = a;
  22858. k.I.n.G = b;
  22859. k.R.n.da = e;
  22860. k.R.n.G = b;
  22861. k.Q.n.da = a;
  22862. k.Q.n.G = d;
  22863. k.N.n.da = e;
  22864. k.N.n.G = d
  22865. }
  22866. }
  22867. },
  22868. PG: function() {
  22869. return this.$
  22870. },
  22871. wm: function(a) {
  22872. if (this.$ != a) {
  22873. var b = this.$;
  22874. if (this.$ = a) for (var d = this.Pl, e = 0; e < this.vb; e++) d[e].atlasIndex = e;
  22875. a ? b || (this.$.textureAtlas.wY(this.Tc, this.atlasIndex), c.m.deleteBuffer(this.Jc[1])) : (this.iL(), this.nH(), this.zb(b.Ua()), this.tn())
  22876. }
  22877. },
  22878. yq: function() {
  22879. return this.atlasIndex
  22880. },
  22881. iI: function(a) {
  22882. this.atlasIndex = a
  22883. },
  22884. Cfa: function() {
  22885. return this.Zy
  22886. },
  22887. w7: function(a) {
  22888. this.Zy = a
  22889. },
  22890. Zga: function() {
  22891. return this.FA
  22892. },
  22893. goa: function(a) {
  22894. this.FA = a
  22895. },
  22896. fg: function() {
  22897. return this.Ep
  22898. },
  22899. Fga: function() {
  22900. return this.Od
  22901. },
  22902. Wna: function(a) {
  22903. this.Od = a
  22904. },
  22905. zq: function() {
  22906. return this.duration
  22907. },
  22908. Tg: function(a) {
  22909. this.duration = a
  22910. },
  22911. Y3: function() {
  22912. return {
  22913. x: this.Pp.x,
  22914. y: this.Pp.y
  22915. }
  22916. },
  22917. c8: function(a) {
  22918. this.Pp = a
  22919. },
  22920. XG: function() {
  22921. return {
  22922. x: this.Ql.x,
  22923. y: this.Ql.y
  22924. }
  22925. },
  22926. Kh: function(a) {
  22927. this.Ql = a
  22928. },
  22929. gga: function() {
  22930. return this.xe
  22931. },
  22932. Ih: function(a) {
  22933. this.xe = a
  22934. },
  22935. hga: function() {
  22936. return this.Pq
  22937. },
  22938. Jh: function(a) {
  22939. this.Pq = a
  22940. },
  22941. afa: function() {
  22942. return this.Re
  22943. },
  22944. ig: function(a) {
  22945. this.Re = a
  22946. },
  22947. bfa: function() {
  22948. return this.eq
  22949. },
  22950. Eh: function(a) {
  22951. this.eq = a
  22952. },
  22953. xP: function() {
  22954. this.Oa !== c.o.nb && c.log("cc.ParticleBatchNode.getGravity() : Particle Mode should be Gravity");
  22955. var a = this.jc.gravity;
  22956. return c.d(a.x, a.y)
  22957. },
  22958. Vg: function(a) {
  22959. this.Oa !== c.o.nb && c.log("cc.ParticleBatchNode.setGravity() : Particle Mode should be Gravity");
  22960. this.jc.gravity = a
  22961. },
  22962. gz: function() {
  22963. this.Oa !== c.o.nb && c.log("cc.ParticleBatchNode.getSpeed() : Particle Mode should be Gravity");
  22964. return this.jc.speed
  22965. },
  22966. Bf: function(a) {
  22967. this.Oa !== c.o.nb && c.log("cc.ParticleBatchNode.setSpeed() : Particle Mode should be Gravity");
  22968. this.jc.speed = a
  22969. },
  22970. LP: function() {
  22971. this.Oa !== c.o.nb && c.log("cc.ParticleBatchNode.getSpeedVar() : Particle Mode should be Gravity");
  22972. return this.jc.speedVar
  22973. },
  22974. Yg: function(a) {
  22975. this.Oa !== c.o.nb && c.log("cc.ParticleBatchNode.setSpeedVar() : Particle Mode should be Gravity");
  22976. this.jc.speedVar = a
  22977. },
  22978. QP: function() {
  22979. this.Oa !== c.o.nb && c.log("cc.ParticleBatchNode.getTangentialAccel() : Particle Mode should be Gravity");
  22980. return this.jc.tangentialAccel
  22981. },
  22982. Xk: function(a) {
  22983. this.Oa !== c.o.nb && c.log("cc.ParticleBatchNode.setTangentialAccel() : Particle Mode should be Gravity");
  22984. this.jc.tangentialAccel = a
  22985. },
  22986. RP: function() {
  22987. this.Oa !== c.o.nb && c.log("cc.ParticleBatchNode.getTangentialAccelVar() : Particle Mode should be Gravity");
  22988. return this.jc.tangentialAccelVar
  22989. },
  22990. Yk: function(a) {
  22991. this.Oa !== c.o.nb && c.log("cc.ParticleBatchNode.setTangentialAccelVar() : Particle Mode should be Gravity");
  22992. this.jc.tangentialAccelVar = a
  22993. },
  22994. EP: function() {
  22995. this.Oa !== c.o.nb && c.log("cc.ParticleBatchNode.getRadialAccel() : Particle Mode should be Gravity");
  22996. return this.jc.radialAccel
  22997. },
  22998. Wg: function(a) {
  22999. this.Oa !== c.o.nb && c.log("cc.ParticleBatchNode.setRadialAccel() : Particle Mode should be Gravity");
  23000. this.jc.radialAccel = a
  23001. },
  23002. FP: function() {
  23003. this.Oa !== c.o.nb && c.log("cc.ParticleBatchNode.getRadialAccelVar() : Particle Mode should be Gravity");
  23004. return this.jc.radialAccelVar
  23005. },
  23006. Xg: function(a) {
  23007. this.Oa !== c.o.nb && c.log("cc.ParticleBatchNode.setRadialAccelVar() : Particle Mode should be Gravity");
  23008. this.jc.radialAccelVar = a
  23009. },
  23010. Q3: function() {
  23011. this.Oa !== c.o.nb && c.log("cc.ParticleBatchNode.getRotationIsDir() : Particle Mode should be Gravity");
  23012. return this.jc.rotationIsDir
  23013. },
  23014. X7: function(a) {
  23015. this.Oa !== c.o.nb && c.log("cc.ParticleBatchNode.setRotationIsDir() : Particle Mode should be Gravity");
  23016. this.jc.rotationIsDir = a
  23017. },
  23018. OP: function() {
  23019. this.Oa !== c.o.Hf && c.log("cc.ParticleBatchNode.getStartRadius() : Particle Mode should be Radius");
  23020. return this.ce.startRadius
  23021. },
  23022. cS: function(a) {
  23023. this.Oa !== c.o.Hf && c.log("cc.ParticleBatchNode.setStartRadius() : Particle Mode should be Radius");
  23024. this.ce.startRadius = a
  23025. },
  23026. PP: function() {
  23027. this.Oa !== c.o.Hf && c.log("cc.ParticleBatchNode.getStartRadiusVar() : Particle Mode should be Radius");
  23028. return this.ce.startRadiusVar
  23029. },
  23030. dS: function(a) {
  23031. this.Oa !== c.o.Hf && c.log("cc.ParticleBatchNode.setStartRadiusVar() : Particle Mode should be Radius");
  23032. this.ce.startRadiusVar = a
  23033. },
  23034. uP: function() {
  23035. this.Oa !== c.o.Hf && c.log("cc.ParticleBatchNode.getEndRadius() : Particle Mode should be Radius");
  23036. return this.ce.endRadius
  23037. },
  23038. LR: function(a) {
  23039. this.Oa !== c.o.Hf && c.log("cc.ParticleBatchNode.setEndRadius() : Particle Mode should be Radius");
  23040. this.ce.endRadius = a
  23041. },
  23042. vP: function() {
  23043. this.Oa !== c.o.Hf && c.log("cc.ParticleBatchNode.getEndRadiusVar() : Particle Mode should be Radius");
  23044. return this.ce.endRadiusVar
  23045. },
  23046. MR: function(a) {
  23047. this.Oa !== c.o.Hf && c.log("cc.ParticleBatchNode.setEndRadiusVar() : Particle Mode should be Radius");
  23048. this.ce.endRadiusVar = a
  23049. },
  23050. GP: function() {
  23051. this.Oa !== c.o.Hf && c.log("cc.ParticleBatchNode.getRotatePerSecond() : Particle Mode should be Radius");
  23052. return this.ce.oA
  23053. },
  23054. ZR: function(a) {
  23055. this.Oa !== c.o.Hf && c.log("cc.ParticleBatchNode.setRotatePerSecond() : Particle Mode should be Radius");
  23056. this.ce.oA = a
  23057. },
  23058. HP: function() {
  23059. this.Oa !== c.o.Hf && c.log("cc.ParticleBatchNode.getRotatePerSecondVar() : Particle Mode should be Radius");
  23060. return this.ce.pA
  23061. },
  23062. $R: function(a) {
  23063. this.Oa !== c.o.Hf && c.log("cc.ParticleBatchNode.setRotatePerSecondVar() : Particle Mode should be Radius");
  23064. this.ce.pA = a
  23065. },
  23066. Wk: function(a, b) {
  23067. this.zn = !0;
  23068. c.t.prototype.Wk.call(this, a, b)
  23069. },
  23070. Xb: function(a) {
  23071. this.zn = !0;
  23072. c.t.prototype.Xb.call(this, a)
  23073. },
  23074. uv: function(a) {
  23075. this.zn = !0;
  23076. c.t.prototype.uv.call(this, a)
  23077. },
  23078. vv: function(a) {
  23079. this.zn = !0;
  23080. c.t.prototype.vv.call(this, a)
  23081. },
  23082. cha: function() {
  23083. return this.hr
  23084. },
  23085. Lh: function(a) {
  23086. this.hr = a
  23087. },
  23088. dha: function() {
  23089. return this.ir
  23090. },
  23091. Mh: function(a) {
  23092. this.ir = a
  23093. },
  23094. Hfa: function() {
  23095. return this.Tn
  23096. },
  23097. Hh: function(a) {
  23098. this.Tn = a
  23099. },
  23100. Ifa: function() {
  23101. return this.qq
  23102. },
  23103. z7: function(a) {
  23104. this.qq = a
  23105. },
  23106. hz: function() {
  23107. return c.color(this.ni.r, this.ni.g, this.ni.b, this.ni.a)
  23108. },
  23109. Cf: function(a) {
  23110. this.ni = c.color(a)
  23111. },
  23112. NP: function() {
  23113. return c.color(this.Yl.r, this.Yl.g, this.Yl.b, this.Yl.a)
  23114. },
  23115. Zg: function(a) {
  23116. this.Yl = c.color(a)
  23117. },
  23118. dz: function() {
  23119. return c.color(this.kf.r, this.kf.g, this.kf.b, this.kf.a)
  23120. },
  23121. Af: function(a) {
  23122. this.kf = c.color(a)
  23123. },
  23124. tP: function() {
  23125. return c.color(this.Cl.r, this.Cl.g, this.Cl.b, this.Cl.a)
  23126. },
  23127. Ug: function(a) {
  23128. this.Cl = c.color(a)
  23129. },
  23130. eha: function() {
  23131. return this.jr
  23132. },
  23133. e8: function(a) {
  23134. this.jr = a
  23135. },
  23136. fha: function() {
  23137. return this.kr
  23138. },
  23139. f8: function(a) {
  23140. this.kr = a
  23141. },
  23142. Jfa: function() {
  23143. return this.rq
  23144. },
  23145. A7: function(a) {
  23146. this.rq = a
  23147. },
  23148. Kfa: function() {
  23149. return this.sq
  23150. },
  23151. B7: function(a) {
  23152. this.sq = a
  23153. },
  23154. Ffa: function() {
  23155. return this.Sn
  23156. },
  23157. Fh: function(a) {
  23158. this.Sn = a
  23159. },
  23160. c4: function() {
  23161. return this.vb
  23162. },
  23163. i8: function(a) {
  23164. if (c.F === c.Ha) this.vb = 200 > a ? a : 200;
  23165. else {
  23166. if (a > this.Sw) {
  23167. var b = c.Nb.BYTES_PER_ELEMENT;
  23168. this.sb = new Uint16Array(6 * a);
  23169. var d = new ArrayBuffer(a * b),
  23170. e = this.Pl;
  23171. e.length = 0;
  23172. for (var f = this.Tc, g = f.length = 0; g < a; g++) e[g] = new c.ih, f[g] = new c.Nb(null, null, null, null, d, g * b);
  23173. this.vb = this.Sw = a;
  23174. if (this.$) for (b = 0; b < a; b++) e[b].atlasIndex = b;
  23175. this.qd = d;
  23176. this.nH();
  23177. this.tn();
  23178. this.O && this.fQ(c.rect(0, 0, this.O.width, this.O.height))
  23179. } else this.vb = a;
  23180. this.U6()
  23181. }
  23182. },
  23183. Ua: function() {
  23184. return this.O
  23185. },
  23186. zb: function(a) {
  23187. a.Kc ? this.yI(a, c.rect(0, 0, a.width, a.height)) : (this.sa = !1, a.ue(function(a) {
  23188. this.sa = !0;
  23189. this.yI(a, c.rect(0, 0, a.width, a.height))
  23190. }, this))
  23191. },
  23192. xi: function() {
  23193. return this.q
  23194. },
  23195. zf: function(a, b) {
  23196. if (void 0 === b) this.q != a && (this.q = a, this.Gg());
  23197. else if (this.q.src != a || this.q.W != b) this.q = {
  23198. src: a,
  23199. W: b
  23200. }, this.Gg()
  23201. },
  23202. Ue: function() {
  23203. return this.Xa
  23204. },
  23205. ee: function(a) {
  23206. this.Xa = a
  23207. },
  23208. J4: function() {
  23209. return this.q.src == c.SRC_ALPHA && this.q.W == c.ONE || this.q.src == c.ONE && this.q.W == c.ONE
  23210. },
  23211. Li: function(a) {
  23212. var b = this.q;
  23213. a ? (b.src = c.SRC_ALPHA, b.W = c.ONE) : c.F === c.ea ? this.O && !this.O.xj() ? (b.src = c.SRC_ALPHA, b.W = c.ONE_MINUS_SRC_ALPHA) : (b.src = c.vc, b.W = c.uc) : (b.src = c.vc, b.W = c.uc)
  23214. },
  23215. Jga: function() {
  23216. return this.Kj
  23217. },
  23218. Yna: function(a) {
  23219. this.Kj = a
  23220. },
  23221. Zha: function() {
  23222. return this.qu
  23223. },
  23224. Pma: function(a) {
  23225. this.qu = a
  23226. },
  23227. Gfa: function() {
  23228. return this.Oa
  23229. },
  23230. Gh: function(a) {
  23231. this.Oa = a
  23232. },
  23233. K: function() {
  23234. return this.ab(150)
  23235. },
  23236. mm: function(a) {
  23237. this.vE = a;
  23238. a = c.X.be(a);
  23239. return a ? this.v4(a, "") : (c.log("cc.ParticleSystem.initWithFile(): Particles: file not found"), !1)
  23240. },
  23241. b3: function() {
  23242. return c.rect(0, 0, c.eb.width, c.eb.height)
  23243. },
  23244. v4: function(a) {
  23245. var b = !1,
  23246. d = null,
  23247. d = this.W0,
  23248. e = parseInt(d("maxParticles", a));
  23249. if (this.ab(e)) {
  23250. this.Re = parseFloat(d("angle", a));
  23251. this.eq = parseFloat(d("angleVariance", a));
  23252. this.duration = parseFloat(d("duration", a));
  23253. this.q.src = parseInt(d("blendFuncSource", a));
  23254. this.q.W = parseInt(d("blendFuncDestination", a));
  23255. b = this.ni;
  23256. b.r = 255 * parseFloat(d("startColorRed", a));
  23257. b.g = 255 * parseFloat(d("startColorGreen", a));
  23258. b.b = 255 * parseFloat(d("startColorBlue", a));
  23259. b.a = 255 * parseFloat(d("startColorAlpha", a));
  23260. b = this.Yl;
  23261. b.r = 255 * parseFloat(d("startColorVarianceRed", a));
  23262. b.g = 255 * parseFloat(d("startColorVarianceGreen", a));
  23263. b.b = 255 * parseFloat(d("startColorVarianceBlue", a));
  23264. b.a = 255 * parseFloat(d("startColorVarianceAlpha", a));
  23265. b = this.kf;
  23266. b.r = 255 * parseFloat(d("finishColorRed", a));
  23267. b.g = 255 * parseFloat(d("finishColorGreen", a));
  23268. b.b = 255 * parseFloat(d("finishColorBlue", a));
  23269. b.a = 255 * parseFloat(d("finishColorAlpha", a));
  23270. b = this.Cl;
  23271. b.r = 255 * parseFloat(d("finishColorVarianceRed", a));
  23272. b.g = 255 * parseFloat(d("finishColorVarianceGreen", a));
  23273. b.b = 255 * parseFloat(d("finishColorVarianceBlue", a));
  23274. b.a = 255 * parseFloat(d("finishColorVarianceAlpha", a));
  23275. this.hr = parseFloat(d("startParticleSize", a));
  23276. this.ir = parseFloat(d("startParticleSizeVariance", a));
  23277. this.Tn = parseFloat(d("finishParticleSize", a));
  23278. this.qq = parseFloat(d("finishParticleSizeVariance", a));
  23279. this.J(parseFloat(d("sourcePositionx", a)), parseFloat(d("sourcePositiony", a)));
  23280. this.Ql.x = parseFloat(d("sourcePositionVariancex", a));
  23281. this.Ql.y = parseFloat(d("sourcePositionVariancey", a));
  23282. this.jr = parseFloat(d("rotationStart", a));
  23283. this.kr = parseFloat(d("rotationStartVariance", a));
  23284. this.rq = parseFloat(d("rotationEnd", a));
  23285. this.sq = parseFloat(d("rotationEndVariance", a));
  23286. this.Oa = parseInt(d("emitterType", a));
  23287. if (this.Oa == c.o.nb) b = this.jc, b.gravity.x = parseFloat(d("gravityx", a)), b.gravity.y = parseFloat(d("gravityy", a)), b.speed = parseFloat(d("speed", a)), b.speedVar = parseFloat(d("speedVariance", a)), e = d("radialAcceleration", a), b.radialAccel = e ? parseFloat(e) : 0, e = d("radialAccelVariance", a), b.radialAccelVar = e ? parseFloat(e) : 0, e = d("tangentialAcceleration", a), b.tangentialAccel = e ? parseFloat(e) : 0, e = d("tangentialAccelVariance", a), b.tangentialAccelVar = e ? parseFloat(e) : 0, e = d("rotationIsDir", a).toLowerCase(), b.rotationIsDir = null != e && ("true" === e || "1" === e);
  23288. else if (this.Oa == c.o.Hf) b = this.ce, b.startRadius = parseFloat(d("maxRadius", a)), b.startRadiusVar = parseFloat(d("maxRadiusVariance", a)), b.endRadius = parseFloat(d("minRadius", a)), b.endRadiusVar = 0, b.oA = parseFloat(d("rotatePerSecond", a)), b.pA = parseFloat(d("rotatePerSecondVariance", a));
  23289. else return c.log("cc.ParticleSystem.initWithDictionary(): Invalid emitterType in config file"), !1;
  23290. this.xe = parseFloat(d("particleLifespan", a));
  23291. this.Pq = parseFloat(d("particleLifespanVariance", a));
  23292. this.Sn = this.vb / this.xe;
  23293. if (!this.$) if (this.Xa = !1, b = d("textureFileName", a), b = c.path.kq(this.vE, b), e = c.Ka.uo(b)) this.zb(e);
  23294. else if ((a = d("textureImageData", a)) && 0 == a.length) {
  23295. e = c.Ka.Qc(b);
  23296. if (!e) return !1;
  23297. this.zb(e)
  23298. } else {
  23299. d = c.IS(a, 1);
  23300. if (!d) return c.log("cc.ParticleSystem: error decoding or ungzipping textureImageData"), !1;
  23301. a = c.w3(d);
  23302. if (a !== c.lJ && a !== c.iB) return c.log("cc.ParticleSystem: unknown image format with Data"), !1;
  23303. e = c.ac("canvas");
  23304. a === c.iB ? (new c.oV(d)).S6(e) : c.V8.f6(d, e);
  23305. c.Ka.I1(b, e);
  23306. (a = c.Ka.uo(b)) || c.log("cc.ParticleSystem.initWithDictionary() : error loading the texture");
  23307. this.zb(a)
  23308. }
  23309. b = !0
  23310. }
  23311. return b
  23312. },
  23313. ab: function(a) {
  23314. this.vb = a;
  23315. var b, d = this.Pl;
  23316. for (b = d.length = 0; b < a; b++) d[b] = new c.ih;
  23317. if (!d) return c.log("Particle system: not enough memory"), !1;
  23318. this.Sw = a;
  23319. if (this.$) for (b = 0; b < this.vb; b++) d[b].atlasIndex = b;
  23320. this.Ep = !0;
  23321. this.q.src = c.vc;
  23322. this.q.W = c.uc;
  23323. this.Kj = c.o.ys;
  23324. this.Oa = c.o.nb;
  23325. this.zn = this.qu = !1;
  23326. this.AR(1);
  23327. if (c.F === c.ea) {
  23328. if (!this.iL()) return !1;
  23329. this.nH();
  23330. this.tn();
  23331. this.shaderProgram = c.ge.Dc(c.Zj)
  23332. }
  23333. return !0
  23334. },
  23335. Ada: function() {
  23336. this.HS()
  23337. },
  23338. e1: function() {
  23339. if (this.N4()) return !1;
  23340. var a, b = this.Pl;
  23341. c.F === c.Ha ? this.Od < b.length ? a = b[this.Od] : (a = new c.ih, b.push(a)) : a = b[this.Od];
  23342. this.t4(a);
  23343. ++this.Od;
  23344. return !0
  23345. },
  23346. t4: function(a) {
  23347. var b = c.B6;
  23348. a.zm = this.xe + this.Pq * b();
  23349. a.zm = Math.max(0, a.zm);
  23350. a.hb.x = this.Pp.x + this.Ql.x * b();
  23351. a.hb.y = this.Pp.y + this.Ql.y * b();
  23352. var d, e;
  23353. d = this.ni;
  23354. var f = this.Yl,
  23355. g = this.kf;
  23356. e = this.Cl;
  23357. c.F === c.Ha ? (d = c.color(c.gd(d.r + f.r * b(), 0, 255), c.gd(d.g + f.g * b(), 0, 255), c.gd(d.b + f.b * b(), 0, 255), c.gd(d.a + f.a * b(), 0, 255)), e = c.color(c.gd(g.r + e.r * b(), 0, 255), c.gd(g.g + e.g * b(), 0, 255), c.gd(g.b + e.b * b(), 0, 255), c.gd(g.a + e.a * b(), 0, 255))) : (d = {
  23358. r: c.gd(d.r + f.r * b(), 0, 255),
  23359. g: c.gd(d.g + f.g * b(), 0, 255),
  23360. b: c.gd(d.b + f.b * b(), 0, 255),
  23361. a: c.gd(d.a + f.a * b(), 0, 255)
  23362. }, e = {
  23363. r: c.gd(g.r + e.r * b(), 0, 255),
  23364. g: c.gd(g.g + e.g * b(), 0, 255),
  23365. b: c.gd(g.b + e.b * b(), 0, 255),
  23366. a: c.gd(g.a + e.a * b(), 0, 255)
  23367. });
  23368. a.color = d;
  23369. f = a.Au;
  23370. g = a.zm;
  23371. f.r = (e.r - d.r) / g;
  23372. f.g = (e.g - d.g) / g;
  23373. f.b = (e.b - d.b) / g;
  23374. f.a = (e.a - d.a) / g;
  23375. d = this.hr + this.ir * b();
  23376. d = Math.max(0, d);
  23377. a.size = d;
  23378. this.Tn === c.o.jh ? a.FG = 0 : (e = this.Tn + this.qq * b(), e = Math.max(0, e), a.FG = (e - d) / g);
  23379. d = this.jr + this.kr * b();
  23380. e = this.rq + this.sq * b();
  23381. a.rotation = d;
  23382. a.YO = (e - d) / g;
  23383. this.Kj == c.o.ys ? a.GA = this.hm(this.BE) : this.Kj == c.o.mC && (a.GA.x = this.va.x, a.GA.y = this.va.y);
  23384. d = c.ag(this.Re + this.eq * b());
  23385. if (this.Oa === c.o.nb) g = this.jc, e = a.jc, f = g.speed + g.speedVar * b(), e.dir.x = Math.cos(d), e.dir.y = Math.sin(d), c.Wq(e.dir, f), e.radialAccel = g.radialAccel + g.radialAccelVar * b(), e.tangentialAccel = g.tangentialAccel + g.tangentialAccelVar * b(), g.rotationIsDir && (a.rotation = -c.Yq(c.d6(e.dir)));
  23386. else {
  23387. e = this.ce;
  23388. a = a.ce;
  23389. var f = e.startRadius + e.startRadiusVar * b(),
  23390. h = e.endRadius + e.endRadiusVar * b();
  23391. a.nv = f;
  23392. a.XO = e.endRadius === c.o.SV ? 0 : (h - f) / g;
  23393. a.Re = d;
  23394. a.UO = c.ag(e.oA + e.pA * b())
  23395. }
  23396. },
  23397. J8: function() {
  23398. this.Ep = !1;
  23399. this.rb = this.duration;
  23400. this.$m = 0
  23401. },
  23402. U6: function() {
  23403. this.Ep = !0;
  23404. this.rb = 0;
  23405. var a = this.Pl;
  23406. for (this.Rf = 0; this.Rf < this.Od; ++this.Rf) a[this.Rf].zm = 0
  23407. },
  23408. N4: function() {
  23409. return this.Od >= this.vb
  23410. },
  23411. h9: function(a, b) {
  23412. var d = null;
  23413. this.$ ? (d = this.$.textureAtlas.quads[this.atlasIndex + a.atlasIndex], this.$.textureAtlas.dirty = !0) : d = this.Tc[this.Rf];
  23414. var e, f, g, h;
  23415. this.Xa ? (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);
  23416. h = 0 | a.color.a;
  23417. var k = d.I.v;
  23418. k.r = e;
  23419. k.g = f;
  23420. k.b = g;
  23421. k.a = h;
  23422. k = d.R.v;
  23423. k.r = e;
  23424. k.g = f;
  23425. k.b = g;
  23426. k.a = h;
  23427. k = d.Q.v;
  23428. k.r = e;
  23429. k.g = f;
  23430. k.b = g;
  23431. k.a = h;
  23432. k = d.N.v;
  23433. k.r = e;
  23434. k.g = f;
  23435. k.b = g;
  23436. k.a = h;
  23437. e = a.size / 2;
  23438. if (a.rotation) {
  23439. f = -e;
  23440. g = -e;
  23441. h = b.x;
  23442. var k = b.y,
  23443. m = -c.ag(a.rotation),
  23444. n = Math.cos(m),
  23445. m = Math.sin(m);
  23446. d.I.j.x = f * n - g * m + h;
  23447. d.I.j.y = f * m + g * n + k;
  23448. d.R.j.x = e * n - g * m + h;
  23449. d.R.j.y = e * m + g * n + k;
  23450. d.Q.j.x = f * n - e * m + h;
  23451. d.Q.j.y = f * m + e * n + k;
  23452. d.N.j.x = e * n - e * m + h;
  23453. d.N.j.y = e * m + e * n + k
  23454. } else d.I.j.x = b.x - e, d.I.j.y = b.y - e, d.R.j.x = b.x + e, d.R.j.y = b.y - e, d.Q.j.x = b.x - e, d.Q.j.y = b.y + e, d.N.j.x = b.x + e, d.N.j.y = b.y + e
  23455. },
  23456. r6: function() {
  23457. if (c.F === c.ea) {
  23458. var a = c.m;
  23459. a.bindBuffer(a.ARRAY_BUFFER, this.Jc[0]);
  23460. a.bufferData(a.ARRAY_BUFFER, this.qd, a.DYNAMIC_DRAW)
  23461. }
  23462. },
  23463. update: function(a) {
  23464. if (this.Ep && this.Sn) {
  23465. var b = 1 / this.Sn;
  23466. this.Od < this.vb && (this.$m += a);
  23467. for (; this.Od < this.vb && this.$m > b;) this.e1(), this.$m -= b;
  23468. this.rb += a; - 1 != this.duration && this.duration < this.rb && this.J8()
  23469. }
  23470. this.Rf = 0;
  23471. b = c.ih.Fw[0];
  23472. this.Kj == c.o.ys ? c.Qk(b, this.hm(this.BE)) : this.Kj == c.o.mC && (b.x = this.va.x, b.y = this.va.y);
  23473. if (this.Ja) {
  23474. for (var d = c.ih.Fw[1], e = c.ih.Fw[2], f = c.ih.Fw[3], g = this.Pl; this.Rf < this.Od;) {
  23475. c.bA(d);
  23476. c.bA(e);
  23477. c.bA(f);
  23478. var h = g[this.Rf];
  23479. h.zm -= a;
  23480. if (0 < h.zm) {
  23481. if (this.Oa == c.o.nb) {
  23482. var k = f,
  23483. m = d,
  23484. n = e;
  23485. h.hb.x || h.hb.y ? (c.Qk(m, h.hb), c.b6(m)) : c.bA(m);
  23486. c.Qk(n, m);
  23487. c.Wq(m, h.jc.radialAccel);
  23488. var q = n.x;
  23489. n.x = -n.y;
  23490. n.y = q;
  23491. c.Wq(n, h.jc.tangentialAccel);
  23492. c.Qk(k, m);
  23493. c.$z(k, n);
  23494. c.$z(k, this.jc.gravity);
  23495. c.Wq(k, a);
  23496. c.$z(h.jc.dir, k);
  23497. c.Qk(k, h.jc.dir);
  23498. c.Wq(k, a);
  23499. c.$z(h.hb, k)
  23500. } else k = h.ce, k.Re += k.UO * a, k.nv += k.XO * a, h.hb.x = -Math.cos(k.Re) * k.nv, h.hb.y = -Math.sin(k.Re) * k.nv;
  23501. this.EL && c.F !== c.Ha || (h.color.r += h.Au.r * a, h.color.g += h.Au.g * a, h.color.b += h.Au.b * a, h.color.a += h.Au.a * a, h.tQ = !0);
  23502. h.size += h.FG * a;
  23503. h.size = Math.max(0, h.size);
  23504. h.rotation += h.YO * a;
  23505. k = d;
  23506. this.Kj == c.o.ys || this.Kj == c.o.mC ? (m = e, c.Qk(m, b), c.fR(m, h.GA), c.Qk(k, h.hb), c.fR(k, m)) : c.Qk(k, h.hb);
  23507. this.$ && (k.x += this.va.x, k.y += this.va.y);
  23508. c.F == c.ea ? this.h9(h, k) : c.Qk(h.Du, k);
  23509. ++this.Rf
  23510. } else if (h = h.atlasIndex, this.Rf !== this.Od - 1 && (k = g[this.Rf], g[this.Rf] = g[this.Od - 1], g[this.Od - 1] = k), this.$ && (this.$.p2(this.atlasIndex + h), g[this.Od - 1].atlasIndex = h), --this.Od, 0 == this.Od && this.qu) {
  23511. this.HS();
  23512. this.gc.removeChild(this, !0);
  23513. return
  23514. }
  23515. }
  23516. this.zn = !1
  23517. }
  23518. this.$ || this.r6()
  23519. },
  23520. l9: function() {
  23521. this.update(0)
  23522. },
  23523. W0: function(a, b) {
  23524. if (b) {
  23525. var d = b[a];
  23526. return null != d ? d : ""
  23527. }
  23528. return ""
  23529. },
  23530. Gg: function() {
  23531. if (this.$) c.log("Can't change blending functions when the particle is being batched");
  23532. else {
  23533. var a = this.O;
  23534. if (a && a instanceof c.ia) {
  23535. this.Xa = !1;
  23536. var b = this.q;
  23537. b.src == c.vc && b.W == c.uc && (a.xj() ? this.Xa = !0 : (b.src = c.SRC_ALPHA, b.W = c.ONE_MINUS_SRC_ALPHA))
  23538. }
  23539. }
  23540. },
  23541. k: function() {
  23542. var a = new c.o;
  23543. if (a.ab(this.vb)) {
  23544. a.ig(this.Re);
  23545. a.Eh(this.eq);
  23546. a.Tg(this.zq());
  23547. var b = this.xi();
  23548. a.zf(b.src, b.W);
  23549. a.Cf(this.hz());
  23550. a.Zg(this.NP());
  23551. a.Af(this.dz());
  23552. a.Ug(this.tP());
  23553. a.Lh(this.hr);
  23554. a.Mh(this.ir);
  23555. a.Hh(this.Tn);
  23556. a.z7(this.qq);
  23557. a.J(c.d(this.x, this.y));
  23558. a.Kh(c.d(this.XG().x, this.XG().y));
  23559. a.e8(this.jr || 0);
  23560. a.f8(this.kr || 0);
  23561. a.A7(this.rq || 0);
  23562. a.B7(this.sq || 0);
  23563. a.Gh(this.Oa);
  23564. this.Oa == c.o.nb ? (b = this.xP(), a.Vg(c.d(b.x, b.y)), a.Bf(this.gz()), a.Yg(this.LP()), a.Wg(this.EP()), a.Xg(this.FP()), a.Xk(this.QP()), a.Yk(this.RP())) : this.Oa == c.o.Hf && (a.cS(this.OP()), a.dS(this.PP()), a.LR(this.uP()), a.MR(this.vP()), a.ZR(this.GP()), a.$R(this.HP()));
  23565. a.Ih(this.xe);
  23566. a.Jh(this.Pq);
  23567. a.Fh(this.Sn);
  23568. if (!this.$ && (a.ee(this.Ue()), b = this.Ua())) {
  23569. var d = b.ve();
  23570. a.yI(b, c.rect(0, 0, d.width, d.height))
  23571. }
  23572. }
  23573. return a
  23574. },
  23575. u7: function(a) {
  23576. var b = a.zg;
  23577. 0 == b.x && 0 == b.y || c.log("cc.ParticleSystem.setDisplayFrame(): QuadParticle only supports SpriteFrames with no offsets");
  23578. c.F === c.ea && (this.O && a.Ua().te == this.O.te || this.zb(a.Ua()))
  23579. },
  23580. yI: function(a, b) {
  23581. var d = this.O;
  23582. c.F === c.ea ? d && a.te == d.te || d == a || (this.O = a, this.Gg()) : d && a == d || d == a || (this.O = a, this.Gg());
  23583. this.Gt = b;
  23584. this.fQ(b)
  23585. },
  23586. Y: function(a) {
  23587. this.sa && !this.$ && (c.F === c.Ha ? this.Zm(a) : this.fk(a), c.Lg++)
  23588. },
  23589. Zm: function(a) {
  23590. a = a || c.m;
  23591. a.save();
  23592. a.globalCompositeOperation = this.J4() ? "lighter" : "source-over";
  23593. for (var b = 0; b < this.Od; b++) {
  23594. var d = this.Pl[b],
  23595. e = 0 | 0.5 * d.size;
  23596. if (this.Zy == c.o.gK) {
  23597. if (e = this.O.Ob, e.width && e.height) {
  23598. a.save();
  23599. a.globalAlpha = d.color.a / 255;
  23600. a.translate(0 | d.Du.x, -(0 | d.Du.y));
  23601. var f = 4 * Math.floor(d.size / 4),
  23602. g = this.Gt.width,
  23603. h = this.Gt.height;
  23604. a.scale(Math.max(1 / g * f, 1E-6), Math.max(1 / h * f, 1E-6));
  23605. d.rotation && a.rotate(c.ag(d.rotation));
  23606. a.translate(-(0 | g / 2), -(0 | h / 2));
  23607. d.tQ && (f = c.Ka.iz(e)) && (f.Hv || (f.Hv = c.ac("canvas"), f.Hv.width = e.width, f.Hv.height = e.height), c.wq(e, f, d.color, this.Gt, f.Hv), e = f.Hv);
  23608. a.drawImage(e, 0, 0);
  23609. a.restore()
  23610. }
  23611. } else a.save(), a.globalAlpha = d.color.a / 255, a.translate(0 | d.Du.x, -(0 | d.Du.y)), this.FA == c.o.TV ? (d.rotation && a.rotate(c.ag(d.rotation)), c.jf.A2(a, e, d.color)) : c.jf.t2(a, e, d.color), a.restore()
  23612. }
  23613. a.restore()
  23614. },
  23615. fk: function(a) {
  23616. this.O && (a = a || c.m, this.Sb.$c(), this.Sb.Ef(), c.Te(this.O), c.UP(this.q.src, this.q.W), c.Xc(c.Sm), a.bindBuffer(a.ARRAY_BUFFER, this.Jc[0]), a.vertexAttribPointer(c.Ab, 3, a.FLOAT, !1, 24, 0), a.vertexAttribPointer(c.ef, 4, a.UNSIGNED_BYTE, !0, 24, 12), a.vertexAttribPointer(c.Sd, 2, a.FLOAT, !1, 24, 16), a.bindBuffer(a.ELEMENT_ARRAY_BUFFER, this.Jc[1]), a.drawElements(a.TRIANGLES, 6 * this.Rf, a.UNSIGNED_SHORT, 0))
  23617. },
  23618. oka: function() {
  23619. c.bC || this.tn()
  23620. },
  23621. gca: function() {},
  23622. tn: function() {
  23623. if (c.F != c.Ha) {
  23624. var a = c.m;
  23625. this.Jc[0] = a.createBuffer();
  23626. a.bindBuffer(a.ARRAY_BUFFER, this.Jc[0]);
  23627. a.bufferData(a.ARRAY_BUFFER, this.qd, a.DYNAMIC_DRAW);
  23628. this.Jc[1] = a.createBuffer();
  23629. a.bindBuffer(a.ELEMENT_ARRAY_BUFFER, this.Jc[1]);
  23630. a.bufferData(a.ELEMENT_ARRAY_BUFFER, this.sb, a.STATIC_DRAW)
  23631. }
  23632. },
  23633. iL: function() {
  23634. if (c.F === c.Ha) return !0;
  23635. if (this.$) return c.log("cc.ParticleSystem._allocMemory(): Memory should not be allocated when not using batchNode"), !1;
  23636. var a = c.Nb.BYTES_PER_ELEMENT,
  23637. b = this.vb,
  23638. d = this.Tc;
  23639. d.length = 0;
  23640. this.sb = new Uint16Array(6 * b);
  23641. for (var e = new ArrayBuffer(a * b), f = 0; f < b; f++) d[f] = new c.Nb(null, null, null, null, e, f * a);
  23642. if (!d || !this.sb) return c.log("cocos2d: Particle system: not enough memory"), !1;
  23643. this.qd = e;
  23644. return !0
  23645. }
  23646. });
  23647. p = c.o.prototype;
  23648. c.i(p, "opacityModifyRGB", p.Ue, p.ee);
  23649. c.i(p, "batchNode", p.PG, p.wm);
  23650. c.i(p, "active", p.fg);
  23651. c.i(p, "sourcePos", p.Y3, p.c8);
  23652. c.i(p, "posVar", p.XG, p.Kh);
  23653. c.i(p, "gravity", p.xP, p.Vg);
  23654. c.i(p, "speed", p.gz, p.Bf);
  23655. c.i(p, "speedVar", p.LP, p.Yg);
  23656. c.i(p, "tangentialAccel", p.QP, p.Xk);
  23657. c.i(p, "tangentialAccelVar", p.RP, p.Yk);
  23658. c.i(p, "radialAccel", p.EP, p.Wg);
  23659. c.i(p, "radialAccelVar", p.FP, p.Xg);
  23660. c.i(p, "rotationIsDir", p.Q3, p.X7);
  23661. c.i(p, "startRadius", p.OP, p.cS);
  23662. c.i(p, "startRadiusVar", p.PP, p.dS);
  23663. c.i(p, "endRadius", p.uP, p.LR);
  23664. c.i(p, "endRadiusVar", p.vP, p.MR);
  23665. c.i(p, "rotatePerS", p.GP, p.ZR);
  23666. c.i(p, "rotatePerSVar", p.HP, p.$R);
  23667. c.i(p, "startColor", p.hz, p.Cf);
  23668. c.i(p, "startColorVar", p.NP, p.Zg);
  23669. c.i(p, "endColor", p.dz, p.Af);
  23670. c.i(p, "endColorVar", p.tP, p.Ug);
  23671. c.i(p, "totalParticles", p.c4, p.i8);
  23672. c.i(p, "texture", p.Ua, p.zb);
  23673. c.o.create = function(a) {
  23674. return new c.o(a)
  23675. };
  23676. c.o.xB = function(a, b, d, e, f, g, h, k) {
  23677. this.gravity = a ? a : c.d(0, 0);
  23678. this.speed = b || 0;
  23679. this.speedVar = d || 0;
  23680. this.tangentialAccel = e || 0;
  23681. this.tangentialAccelVar = f || 0;
  23682. this.radialAccel = g || 0;
  23683. this.radialAccelVar = h || 0;
  23684. this.rotationIsDir = k || !1
  23685. };
  23686. c.o.yB = function(a, b, d, e, f, g) {
  23687. this.startRadius = a || 0;
  23688. this.startRadiusVar = b || 0;
  23689. this.endRadius = d || 0;
  23690. this.endRadiusVar = e || 0;
  23691. this.oA = f || 0;
  23692. this.pA = g || 0
  23693. };
  23694. c.o.RV = 0;
  23695. c.o.gK = 1;
  23696. c.o.TV = 0;
  23697. c.o.eT = 1;
  23698. c.o.Pi = -1;
  23699. c.o.jh = -1;
  23700. c.o.SV = -1;
  23701. c.o.nb = 0;
  23702. c.o.Hf = 1;
  23703. c.o.ys = 0;
  23704. c.o.mC = 1;
  23705. c.o.fba = 2;
  23706. c.KJ = c.o.extend({
  23707. K: function() {
  23708. return this.ab(c.F === c.ea ? 300 : 150)
  23709. },
  23710. ab: function(a) {
  23711. return c.o.prototype.ab.call(this, a) ? (this.Tg(c.o.Pi), this.Gh(c.o.nb), this.Vg(c.d(0, 0)), this.Wg(0), this.Xg(0), this.Bf(60), this.Yg(20), this.ig(90), this.Eh(10), this.J(c.L.V.width / 2, 60), this.Kh(c.d(40, 20)), this.Ih(3), this.Jh(0.25), this.Lh(54), this.Mh(10), this.Hh(c.o.jh), this.Fh(this.vb / this.xe), this.Cf(c.color(194, 64, 31, 255)), this.Zg(c.color(0, 0, 0, 0)), this.Af(c.color(0, 0, 0, 255)), this.Ug(c.color(0, 0, 0, 0)), this.Li(!0), !0) : !1
  23712. }
  23713. });
  23714. c.KJ.create = function() {
  23715. var a = new c.KJ;
  23716. return a.K() ? a : null
  23717. };
  23718. c.LJ = c.o.extend({
  23719. K: function() {
  23720. return this.ab(c.F === c.ea ? 1500 : 150)
  23721. },
  23722. ab: function(a) {
  23723. return c.o.prototype.ab.call(this, a) ? (this.Tg(c.o.Pi), this.Gh(c.o.nb), this.Vg(c.d(0, -90)), this.Wg(0), this.Xg(0), this.Bf(180), this.Yg(50), a = c.L.V, this.J(a.width / 2, a.height / 2), this.ig(90), this.Eh(20), this.Ih(3.5), this.Jh(1), this.Fh(this.vb / this.xe), this.Cf(c.color(128, 128, 128, 255)), this.Zg(c.color(128, 128, 128, 255)), this.Af(c.color(26, 26, 26, 51)), this.Ug(c.color(26, 26, 26, 51)), this.Lh(8), this.Mh(2), this.Hh(c.o.jh), this.Li(!1), !0) : !1
  23724. }
  23725. });
  23726. c.LJ.create = function() {
  23727. var a = new c.LJ;
  23728. return a.K() ? a : null
  23729. };
  23730. c.TJ = c.o.extend({
  23731. K: function() {
  23732. return this.ab(c.F === c.ea ? 350 : 150)
  23733. },
  23734. ab: function(a) {
  23735. return c.o.prototype.ab.call(this, a) ? (this.Li(!0), this.Tg(c.o.Pi), this.Gh(c.o.nb), this.Vg(c.d(0, 0)), this.Wg(0), this.Xg(0), this.Bf(20), this.Yg(5), this.ig(90), this.Eh(360), a = c.L.V, this.J(a.width / 2, a.height / 2), this.Kh(c.d(0, 0)), this.Ih(1), this.Jh(0.5), this.Lh(30), this.Mh(10), this.Hh(c.o.jh), this.Fh(this.vb / this.xe), this.Cf(c.color(194, 64, 31, 255)), this.Zg(c.color(0, 0, 0, 0)), this.Af(c.color(0, 0, 0, 255)), this.Ug(c.color(0, 0, 0, 0)), !0) : !1
  23736. }
  23737. });
  23738. c.TJ.create = function() {
  23739. var a = new c.TJ;
  23740. return a.K() ? a : null
  23741. };
  23742. c.NJ = c.o.extend({
  23743. K: function() {
  23744. return this.ab(c.F === c.ea ? 200 : 100)
  23745. },
  23746. ab: function(a) {
  23747. return c.o.prototype.ab.call(this, a) ? (this.Tg(c.o.Pi), this.Gh(c.o.nb), this.Vg(c.d(0, 0)), this.Bf(60), this.Yg(10), this.Wg(-80), this.Xg(0), this.Xk(80), this.Yk(0), this.ig(90), this.Eh(360), a = c.L.V, this.J(a.width / 2, a.height / 2), this.Kh(c.d(0, 0)), this.Ih(4), this.Jh(1), this.Lh(37), this.Mh(10), this.Hh(c.o.jh), this.Fh(this.vb / this.xe), this.Cf(c.color(31, 64, 194, 255)), this.Zg(c.color(0, 0, 0, 0)), this.Af(c.color(0, 0, 0, 255)), this.Ug(c.color(0, 0, 0, 0)), this.Li(!0), !0) : !1
  23748. }
  23749. });
  23750. c.NJ.create = function() {
  23751. var a = new c.NJ;
  23752. return a.K() ? a : null
  23753. };
  23754. c.MJ = c.o.extend({
  23755. K: function() {
  23756. return this.ab(c.F === c.ea ? 250 : 100)
  23757. },
  23758. ab: function(a) {
  23759. return c.o.prototype.ab.call(this, a) ? (this.Tg(c.o.Pi), this.Gh(c.o.nb), this.Vg(c.d(0, 0)), this.Bf(80), this.Yg(10), this.Wg(-60), this.Xg(0), this.Xk(15), this.Yk(0), this.ig(90), this.Eh(360), a = c.L.V, this.J(a.width / 2, a.height / 2), this.Kh(c.d(0, 0)), this.Ih(4), this.Jh(1), this.Lh(30), this.Mh(10), this.Hh(c.o.jh), this.Fh(this.vb / this.xe), this.Cf(c.color(128, 128, 128, 255)), this.Zg(c.color(128, 128, 128, 128)), this.Af(c.color(0, 0, 0, 255)), this.Ug(c.color(0, 0, 0, 0)), this.Li(!0), !0) : !1
  23760. }
  23761. });
  23762. c.MJ.create = function() {
  23763. var a = new c.MJ;
  23764. return a.K() ? a : null
  23765. };
  23766. c.OJ = c.o.extend({
  23767. K: function() {
  23768. return this.ab(c.F === c.ea ? 150 : 100)
  23769. },
  23770. ab: function(a) {
  23771. return c.o.prototype.ab.call(this, a) ? (this.Tg(c.o.Pi), this.Gh(c.o.nb), this.Vg(c.d(-200, 200)), this.Bf(15), this.Yg(5), this.Wg(0), this.Xg(0), this.Xk(0), this.Yk(0), this.ig(90), this.Eh(360), a = c.L.V, this.J(a.width / 2, a.height / 2), this.Kh(c.d(0, 0)), this.Ih(2), this.Jh(1), this.Lh(60), this.Mh(10), this.Hh(c.o.jh), this.Fh(this.vb / this.xe), this.Cf(c.color(51, 102, 179)), this.Zg(c.color(0, 0, 51, 26)), this.Af(c.color(0, 0, 0, 255)), this.Ug(c.color(0, 0, 0, 0)), this.Li(!0), !0) : !1
  23772. }
  23773. });
  23774. c.OJ.create = function() {
  23775. var a = new c.OJ;
  23776. return a.K() ? a : null
  23777. };
  23778. c.SJ = c.o.extend({
  23779. K: function() {
  23780. return this.ab(c.F === c.ea ? 500 : 100)
  23781. },
  23782. ab: function(a) {
  23783. return c.o.prototype.ab.call(this, a) ? (this.Tg(c.o.Pi), this.Gh(c.o.nb), this.Vg(c.d(0, 0)), this.Bf(150), this.Yg(0), this.Wg(-380), this.Xg(0), this.Xk(45), this.Yk(0), this.ig(90), this.Eh(0), a = c.L.V, this.J(a.width / 2, a.height / 2), this.Kh(c.d(0, 0)), this.Ih(12), this.Jh(0), this.Lh(20), this.Mh(0), this.Hh(c.o.jh), this.Fh(this.vb / this.xe), this.Cf(c.color(128, 128, 128, 255)), this.Zg(c.color(128, 128, 128, 0)), this.Af(c.color(128, 128, 128, 255)), this.Ug(c.color(128, 128, 128, 0)), this.Li(!1), !0) : !1
  23784. }
  23785. });
  23786. c.SJ.create = function() {
  23787. var a = new c.SJ;
  23788. return a.K() ? a : null
  23789. };
  23790. c.JJ = c.o.extend({
  23791. K: function() {
  23792. return this.ab(c.F === c.ea ? 700 : 300)
  23793. },
  23794. ab: function(a) {
  23795. return c.o.prototype.ab.call(this, a) ? (this.Tg(0.1), this.Gh(c.o.nb), this.Vg(c.d(0, 0)), this.Bf(70), this.Yg(40), this.Wg(0), this.Xg(0), this.Xk(0), this.Yk(0), this.ig(90), this.Eh(360), a = c.L.V, this.J(a.width / 2, a.height / 2), this.Kh(c.d(0, 0)), this.Ih(5), this.Jh(2), this.Lh(15), this.Mh(10), this.Hh(c.o.jh), this.Fh(this.vb / this.zq()), this.Cf(c.color(179, 26, 51, 255)), this.Zg(c.color(128, 128, 128, 0)), this.Af(c.color(128, 128, 128, 0)), this.Ug(c.color(128, 128, 128, 0)), this.Li(!1), !0) : !1
  23796. }
  23797. });
  23798. c.JJ.create = function() {
  23799. var a = new c.JJ;
  23800. return a.K() ? a : null
  23801. };
  23802. c.QJ = c.o.extend({
  23803. K: function() {
  23804. return this.ab(c.F === c.ea ? 200 : 100)
  23805. },
  23806. ab: function(a) {
  23807. return c.o.prototype.ab.call(this, a) ? (this.Tg(c.o.Pi), this.Gh(c.o.nb), this.Vg(c.d(0, 0)), this.Wg(0), this.Xg(0), this.Bf(25), this.Yg(10), this.ig(90), this.Eh(5), this.J(c.L.V.width / 2, 0), this.Kh(c.d(20, 0)), this.Ih(4), this.Jh(1), this.Lh(60), this.Mh(10), this.Hh(c.o.jh), this.Fh(this.vb / this.xe), this.Cf(c.color(204, 204, 204, 255)), this.Zg(c.color(5, 5, 5, 0)), this.Af(c.color(0, 0, 0, 255)), this.Ug(c.color(0, 0, 0, 0)), this.Li(!1), !0) : !1
  23808. }
  23809. });
  23810. c.QJ.create = function() {
  23811. var a = new c.QJ;
  23812. return a.K() ? a : null
  23813. };
  23814. c.RJ = c.o.extend({
  23815. K: function() {
  23816. return this.ab(c.F === c.ea ? 700 : 250)
  23817. },
  23818. ab: function(a) {
  23819. return c.o.prototype.ab.call(this, a) ? (this.Tg(c.o.Pi), this.Gh(c.o.nb), this.Vg(c.d(0, -1)), this.Bf(5), this.Yg(1), this.Wg(0), this.Xg(1), this.Xk(0), this.Yk(1), a = c.L.V, this.J(a.width / 2, a.height + 10), this.Kh(c.d(a.width / 2, 0)), this.ig(-90), this.Eh(5), this.Ih(45), this.Jh(15), this.Lh(10), this.Mh(5), this.Hh(c.o.jh), this.Fh(10), this.Cf(c.color(255, 255, 255, 255)), this.Zg(c.color(0, 0, 0, 0)), this.Af(c.color(255, 255, 255, 0)), this.Ug(c.color(0, 0, 0, 0)), this.Li(!1), !0) : !1
  23820. }
  23821. });
  23822. c.RJ.create = function() {
  23823. var a = new c.RJ;
  23824. return a.K() ? a : null
  23825. };
  23826. c.PJ = c.o.extend({
  23827. K: function() {
  23828. return this.ab(c.F === c.ea ? 1E3 : 300)
  23829. },
  23830. ab: function(a) {
  23831. return c.o.prototype.ab.call(this, a) ? (this.Tg(c.o.Pi), this.Gh(c.o.nb), this.Vg(c.d(10, -10)), this.Wg(0), this.Xg(1), this.Xk(0), this.Yk(1), this.Bf(130), this.Yg(30), this.ig(-90), this.Eh(5), a = c.L.V, this.J(a.width / 2, a.height), this.Kh(c.d(a.width / 2, 0)), this.Ih(4.5), this.Jh(0), this.Lh(4), this.Mh(2), this.Hh(c.o.jh), this.Fh(20), this.Cf(c.color(179, 204, 255, 255)), this.Zg(c.color(0, 0, 0, 0)), this.Af(c.color(179, 204, 255, 128)), this.Ug(c.color(0, 0, 0, 0)), this.Li(!1), !0) : !1
  23832. }
  23833. });
  23834. c.PJ.create = function() {
  23835. var a = new c.PJ;
  23836. return a.K() ? a : null
  23837. };
  23838. c.yaa = 500;
  23839. c.DB = c.t.extend({
  23840. textureAtlas: null,
  23841. jba: !0,
  23842. q: null,
  23843. ob: "ParticleBatchNode",
  23844. ctor: function(a, b) {
  23845. c.t.prototype.ctor.call(this);
  23846. this.q = {
  23847. src: c.vc,
  23848. W: c.uc
  23849. };
  23850. "string" == typeof a ? this.K(a, b) : a instanceof c.ia && this.pa(a, b)
  23851. },
  23852. pa: function(a, b) {
  23853. this.textureAtlas = new c.ml;
  23854. this.textureAtlas.pa(a, b);
  23855. this.u.length = 0;
  23856. c.F === c.ea && (this.shaderProgram = c.ge.Dc(c.Zj));
  23857. return !0
  23858. },
  23859. mm: function(a, b) {
  23860. var d = c.Ka.Qc(a);
  23861. return this.pa(d, b)
  23862. },
  23863. K: function(a, b) {
  23864. var d = c.iba.Yfa().Qc(a);
  23865. return this.pa(d, b)
  23866. },
  23867. M: function(a, b, d) {
  23868. if (!a) throw "cc.ParticleBatchNode.addChild() : child should be non-null";
  23869. if (!(a instanceof
  23870. c.o)) throw "cc.ParticleBatchNode.addChild() : only supports cc.ParticleSystem as children";
  23871. b = null == b ? a.zIndex : b;
  23872. d = null == d ? a.tag : d;
  23873. if (a.Ua() != this.textureAtlas.texture) throw "cc.ParticleSystem.addChild() : the child is not using the same texture id";
  23874. var e = a.xi();
  23875. if (0 === this.u.length) this.zf(e);
  23876. else if (e.src != this.q.src || e.W != this.q.W) {
  23877. c.log("cc.ParticleSystem.addChild() : Can't add a ParticleSystem that uses a different blending function");
  23878. return
  23879. }
  23880. b = this.RX(a, b, d);
  23881. d = 0;
  23882. 0 != b ? (b = this.u[b - 1], d = b.yq() + b.vb) : d = 0;
  23883. this.uH(a, d);
  23884. a.wm(this)
  23885. },
  23886. uH: function(a, b) {
  23887. var d = a.vb,
  23888. e = this.textureAtlas,
  23889. f = e.totalQuads;
  23890. a.iI(b);
  23891. f + d > e.Td && (this.AZ(f + d), e.iP(e.Td - d, d));
  23892. a.yq() + d != f && e.OQ(b, b + d);
  23893. e.cQ(d);
  23894. this.LF()
  23895. },
  23896. removeChild: function(a, b) {
  23897. if (null != a) {
  23898. if (!(a instanceof c.o)) throw "cc.ParticleBatchNode.removeChild(): only supports cc.ParticleSystem as children";
  23899. if (-1 == this.u.indexOf(a)) c.log("cc.ParticleBatchNode.removeChild(): doesn't contain the sprite. Can't remove it");
  23900. else {
  23901. c.t.prototype.removeChild.call(this, a, b);
  23902. var d = this.textureAtlas;
  23903. d.Q6(a.yq(), a.vb);
  23904. d.iP(d.totalQuads, a.vb);
  23905. a.wm(null);
  23906. this.LF()
  23907. }
  23908. }
  23909. },
  23910. ar: function(a, b) {
  23911. if (!a) throw "cc.ParticleBatchNode.reorderChild(): child should be non-null";
  23912. if (!(a instanceof c.o)) throw "cc.ParticleBatchNode.reorderChild(): only supports cc.QuadParticleSystems as children";
  23913. if (-1 === this.u.indexOf(a)) c.log("cc.ParticleBatchNode.reorderChild(): Child doesn't belong to batch");
  23914. else if (b != a.zIndex) {
  23915. if (1 < this.u.length) {
  23916. var d = this.YY(a, b);
  23917. if (d.WQ != d.PQ) {
  23918. this.u.splice(d.WQ, 1);
  23919. this.u.splice(d.PQ, 0, a);
  23920. d = a.yq();
  23921. this.LF();
  23922. for (var e = 0, f = this.u, g = 0; g < f.length; g++) if (f[g] == a) {
  23923. e = a.yq();
  23924. break
  23925. }
  23926. this.textureAtlas.OQ(d, a.vb, e);
  23927. a.l9()
  23928. }
  23929. }
  23930. a.ky(b)
  23931. }
  23932. },
  23933. L6: function(a, b) {
  23934. this.removeChild(this.u[ua], b)
  23935. },
  23936. Sg: function(a) {
  23937. for (var b = this.u, d = 0; d < b.length; d++) b[d].wm(null);
  23938. c.t.prototype.Sg.call(this, a);
  23939. this.textureAtlas.qR()
  23940. },
  23941. p2: function(a) {
  23942. a = this.textureAtlas.quads[a];
  23943. a.R.j.x = a.R.j.y = a.N.j.x = a.N.j.y = a.Q.j.x = a.Q.j.y = a.I.j.x = a.I.j.y = 0;
  23944. this.textureAtlas.Vl(!0)
  23945. },
  23946. Y: function() {
  23947. c.F !== c.Ha && 0 != this.textureAtlas.totalQuads && (c.av(this), c.UP(this.q.src, this.q.W), this.textureAtlas.cP())
  23948. },
  23949. Ua: function() {
  23950. return this.textureAtlas.texture
  23951. },
  23952. zb: function(a) {
  23953. this.textureAtlas.texture = a;
  23954. var b = this.q;
  23955. a && !a.xj() && b.src == c.vc && b.W == c.uc && (b.src = c.SRC_ALPHA, b.W = c.ONE_MINUS_SRC_ALPHA)
  23956. },
  23957. zf: function(a, b) {
  23958. void 0 === b ? (this.q.src = a.src, this.q.W = a.W) : (this.q.src = a, this.q.src = b)
  23959. },
  23960. xi: function() {
  23961. return {
  23962. src: this.q.src,
  23963. W: this.q.W
  23964. }
  23965. },
  23966. U: function(a) {
  23967. c.F !== c.Ha && this.Ja && (c.eo(), this.grid && this.grid.fg() && (this.grid.ru(), this.KA()), this.transform(a), this.Y(a), this.grid && this.grid.fg() && this.grid.nu(this), c.co())
  23968. },
  23969. LF: function() {
  23970. for (var a = 0, b = this.u, d = 0; d < b.length; d++) {
  23971. var e = b[d];
  23972. e.iI(a);
  23973. a += e.vb
  23974. }
  23975. },
  23976. AZ: function(a) {
  23977. c.log("cocos2d: cc.ParticleBatchNode: resizing TextureAtlas capacity from [" + this.textureAtlas.Td + "] to [" + a + "].");
  23978. this.textureAtlas.aI(a) || c.log("cc.ParticleBatchNode._increaseAtlasCapacityTo() : WARNING: Not enough memory to resize the atlas")
  23979. },
  23980. M_: function(a) {
  23981. for (var b = this.u, d = b.length, e = 0; e < d; e++) if (b[e].zIndex > a) return e;
  23982. return d
  23983. },
  23984. YY: function(a, b) {
  23985. for (var d = !1, e = !1, f = 0, g = 0, h = 0, k = this.u, m = k.length, n = 0; n < m; n++) {
  23986. var q = k[n];
  23987. if (q.zIndex > b && !e && (f = n, e = !0, d && e)) break;
  23988. if (a == q && (g = n, d = !0, e || (h = -1), d && e)) break
  23989. }
  23990. e || (f = m);
  23991. return {
  23992. PQ: f + h,
  23993. WQ: g
  23994. }
  23995. },
  23996. RX: function(a, b, d) {
  23997. if (!a) throw "cc.ParticleBatchNode._addChildHelper(): child should be non-null";
  23998. if (a.parent) return c.log("cc.ParticleBatchNode._addChildHelper(): child already added. It can't be added again"), null;
  23999. this.u || (this.u = []);
  24000. var e = this.M_(b);
  24001. this.u.splice(e, 0, a);
  24002. a.tag = d;
  24003. a.ky(b);
  24004. a.parent = this;
  24005. this.ii && (a.ca(), a.Ki());
  24006. return e
  24007. },
  24008. Gg: function() {
  24009. this.textureAtlas.texture.xj() || (this.q.src = c.SRC_ALPHA, this.q.W = c.ONE_MINUS_SRC_ALPHA)
  24010. },
  24011. bH: function() {
  24012. return this.textureAtlas
  24013. },
  24014. xI: function(a) {
  24015. this.textureAtlas = a
  24016. }
  24017. });
  24018. p = c.DB.prototype;
  24019. c.i(p, "texture", p.Ua, p.zb);
  24020. c.DB.create = function(a, b) {
  24021. return new c.DB(a, b)
  24022. };
  24023. c.T$ = function(a, b, d) {
  24024. this.Yf = a || c.rect(0, 0, 0, 0);
  24025. this.end = b || c.rect(0, 0, 0, 0);
  24026. this.duration = d || 0
  24027. };
  24028. c.S$ = c.qa.extend({
  24029. ctor: function() {
  24030. c.yj.nO(this)
  24031. },
  24032. kA: function() {
  24033. c.yj.kA(this)
  24034. },
  24035. z1: function() {
  24036. return c.yj.sO(this)
  24037. },
  24038. $O: function() {
  24039. return c.yj.ZO(this)
  24040. },
  24041. qG: function() {
  24042. return !1
  24043. },
  24044. n2: function() {},
  24045. rG: function() {
  24046. return !1
  24047. },
  24048. o2: function() {},
  24049. rQ: function() {},
  24050. WO: function() {},
  24051. QG: function() {
  24052. return ""
  24053. },
  24054. e5: function() {},
  24055. c5: function() {},
  24056. d5: function() {},
  24057. b5: function() {}
  24058. });
  24059. c.oB = c.qa.extend({
  24060. zc: null,
  24061. $a: null,
  24062. ek: "",
  24063. fn: null,
  24064. ctor: function() {
  24065. this.$a = new c.oB.qU;
  24066. this.fn = c.d(0, 0)
  24067. },
  24068. K: function() {
  24069. if (!c.Yb.Aj) {
  24070. this.zc = c.Fb("#imeDispatcherInput");
  24071. this.zc || (this.zc = c.XS(), this.zc.setAttribute("type", "text"), this.zc.setAttribute("id", "imeDispatcherInput"), this.zc.resize(0, 0), this.zc.CS(0, 0), this.zc.style.opacity = "0", this.zc.style.fontSize = "1px", this.zc.setAttribute("tabindex", 2), this.zc.style.position = "absolute", this.zc.style.top = 0, this.zc.style.left = 0, document.body.appendChild(this.zc));
  24072. var a = this;
  24073. c.Ra(this.zc, "input", function() {
  24074. a.IE(a.zc.value)
  24075. }, !1);
  24076. c.Ra(this.zc, "keydown", function(b) {
  24077. b.keyCode === c.$r.N8 ? (b.stopPropagation(), b.preventDefault()) : b.keyCode == c.$r.gP && (a.Bu("\n", 1), b.stopPropagation(), b.preventDefault())
  24078. }, !1);
  24079. /msie/i.test(navigator.userAgent) && c.Ra(this.zc, "keyup", function(b) {
  24080. b.keyCode == c.$r.vO && a.IE(a.zc.value)
  24081. }, !1);
  24082. c.Ra(window, "mousedown", function(b) {
  24083. var d = b.pageY || 0;
  24084. a.fn.x = b.pageX || 0;
  24085. a.fn.y = d
  24086. }, !1)
  24087. }
  24088. },
  24089. IE: function(a) {
  24090. var b, d;
  24091. b = this.ek.length < a.length ? this.ek.length : a.length;
  24092. for (d = 0; d < b && a[d] === this.ek[d]; d++);
  24093. var e = this.ek.length - d,
  24094. f = a.length - d;
  24095. for (b = 0; b < e; b++) this.aP();
  24096. for (b = 0; b < f; b++) this.Bu(a[d + b], 1);
  24097. this.ek = a
  24098. },
  24099. Bu: function(a, b) {
  24100. !this.$a || !a || 0 >= b || this.$a.Fe && this.$a.Fe.rQ(a, b)
  24101. },
  24102. aP: function() {
  24103. this.$a && this.$a.Fe && this.$a.Fe.WO()
  24104. },
  24105. QG: function() {
  24106. if (this.$a && this.$a.Fe) {
  24107. var a = this.$a.Fe.QG();
  24108. return a ? a : ""
  24109. }
  24110. return ""
  24111. },
  24112. Jda: function() {
  24113. if (this.$a) for (var a = 0; a < this.$a.oh.length; a++);
  24114. },
  24115. Hda: function() {
  24116. if (this.$a) for (var a = 0; a < this.$a.oh.length; a++);
  24117. },
  24118. Ida: function() {
  24119. if (this.$a) for (var a = 0; a < this.$a.oh.length; a++);
  24120. },
  24121. Gda: function() {
  24122. if (this.$a) for (var a = 0; a < this.$a.oh.length; a++);
  24123. },
  24124. nO: function(a) {
  24125. a && this.$a && (-1 < this.$a.oh.indexOf(a) || this.$a.oh.splice(0, 0, a))
  24126. },
  24127. sO: function(a) {
  24128. if (!this.$a || !a || -1 == this.$a.oh.indexOf(a)) return !1;
  24129. if (this.$a.Fe) {
  24130. if (!this.$a.Fe.rG() || !a.qG()) return !1;
  24131. this.$a.Fe = null;
  24132. this.nM(a);
  24133. return !0
  24134. }
  24135. if (!a.qG()) return !1;
  24136. this.nM(a);
  24137. return !0
  24138. },
  24139. nM: function(a) {
  24140. c.Yb.Aj ? (this.$a.Fe = a, this.ek = a.string || "", a = prompt("please enter your word:", this.ek), null != a && this.IE(a), this.Bu("\n", 1)) : (this.$a.Fe = a, this.ek = a.string || "", this.zc.focus(), this.zc.value = this.ek, this.CY())
  24141. },
  24142. CY: function() {
  24143. /msie/i.test(navigator.userAgent) ? (this.zc.style.left = this.fn.x + "px", this.zc.style.top = this.fn.y + "px") : this.zc.CS(this.fn.x, this.fn.y)
  24144. },
  24145. ZO: function(a) {
  24146. if (!this.$a || !a || this.$a.Fe != a || !a.rG()) return !1;
  24147. this.$a.Fe = null;
  24148. c.eb.focus();
  24149. return !0
  24150. },
  24151. kA: function(a) {
  24152. this.$a && a && -1 != this.$a.oh.indexOf(a) && (this.$a.Fe && a == this.$a.Fe && (this.$a.Fe = null), c.tf(this.$a.oh, a))
  24153. },
  24154. Fla: function(a) {
  24155. 32 > a ? a == c.$r.vO ? this.aP() : a == c.$r.gP && this.Bu("\n", 1) : 255 > a && this.Bu(String.fromCharCode(a), 1)
  24156. }
  24157. });
  24158. c.oB.qU = c.qa.extend({
  24159. Fe: null,
  24160. oh: null,
  24161. ctor: function() {
  24162. this.oh = []
  24163. },
  24164. Nea: function(a) {
  24165. for (var b = 0; b < this.oh.length; b++) if (this.oh[b] == a) return b;
  24166. return null
  24167. }
  24168. });
  24169. c.yj = new c.oB;
  24170. document.body ? c.yj.K() : c.Ra(window, "load", function() {
  24171. c.yj.K()
  24172. }, !1);
  24173. c.hba = c.qa.extend({
  24174. Zka: function() {
  24175. return !1
  24176. },
  24177. ala: function() {
  24178. return !1
  24179. },
  24180. bla: function() {
  24181. return !1
  24182. },
  24183. $ka: function() {
  24184. return !1
  24185. },
  24186. Xka: function() {
  24187. return !1
  24188. }
  24189. });
  24190. c.nC = c.Z.extend({
  24191. VO: null,
  24192. Ty: null,
  24193. Vba: null,
  24194. yg: "",
  24195. mn: "",
  24196. ax: 0,
  24197. ob: "TextFieldTTF",
  24198. ctor: function(a, b, d, e, f) {
  24199. this.Ty = c.color(127, 127, 127);
  24200. c.yj.nO(this);
  24201. c.Z.prototype.ctor.call(this);
  24202. void 0 !== f ? (this.B4("", b, d, e, f), a && this.tv(a)) : void 0 === e && void 0 !== d && (this.Md("", b, d), a && this.tv(a))
  24203. },
  24204. i3: function() {
  24205. return this.VO
  24206. },
  24207. s7: function(a) {
  24208. this.VO = a
  24209. },
  24210. c3: function() {
  24211. return this.ax
  24212. },
  24213. qfa: function() {
  24214. return this.Ty
  24215. },
  24216. Yma: function(a) {
  24217. this.Ty = a
  24218. },
  24219. B4: function(a, b, d, e, f) {
  24220. switch (arguments.length) {
  24221. case 5:
  24222. return a && this.tv(a), this.Md(this.mn, e, f, b, d);
  24223. case 3:
  24224. return a && this.tv(a), this.Md(this.mn, arguments[1], arguments[2]);
  24225. default:
  24226. throw "Argument must be non-nil ";
  24227. }
  24228. },
  24229. tc: function(a) {
  24230. this.yg = (a = String(a)) || "";
  24231. this.yg.length ? c.Z.prototype.tc.call(this, this.yg) : c.Z.prototype.tc.call(this, this.mn);
  24232. this.ax = this.yg.length
  24233. },
  24234. lm: function() {
  24235. return this.yg
  24236. },
  24237. tv: function(a) {
  24238. this.mn = a || "";
  24239. this.yg.length || c.Z.prototype.tc.call(this, this.mn)
  24240. },
  24241. M3: function() {
  24242. return this.mn
  24243. },
  24244. Y: function(a) {
  24245. a = a || c.m;
  24246. if (this.yg && 0 < this.yg.length) c.Z.prototype.Y.call(this, a);
  24247. else {
  24248. var b = this.color;
  24249. this.color = this.Ty;
  24250. c.F === c.Ha && this.Hy();
  24251. c.Z.prototype.Y.call(this, a);
  24252. this.color = b
  24253. }
  24254. },
  24255. U: function(a) {
  24256. this._super(a)
  24257. },
  24258. z1: function() {
  24259. return c.yj.sO(this)
  24260. },
  24261. $O: function() {
  24262. return c.yj.ZO(this)
  24263. },
  24264. qG: function() {
  24265. return !0
  24266. },
  24267. n2: function() {},
  24268. rG: function() {
  24269. return !0
  24270. },
  24271. o2: function() {},
  24272. WO: function() {
  24273. var a = this.yg.length;
  24274. 0 != a && (1 >= a ? (this.yg = "", this.ax = 0, c.Z.prototype.tc.call(this, this.mn)) : this.string = this.yg.substring(0, a - 1))
  24275. },
  24276. kA: function() {
  24277. c.yj.kA(this)
  24278. },
  24279. rQ: function(a) {
  24280. var b = a;
  24281. a = b.indexOf("\n"); - 1 < a && (b = b.substring(0, a));
  24282. 0 < b.length && (b = this.yg + b, this.ax = b.length, this.string = b); - 1 != a && this.$O()
  24283. },
  24284. QG: function() {
  24285. return this.yg
  24286. },
  24287. e5: function() {},
  24288. c5: function() {},
  24289. d5: function() {},
  24290. b5: function() {}
  24291. });
  24292. p = c.nC.prototype;
  24293. c.i(p, "charCount", p.c3);
  24294. c.i(p, "placeHolder", p.M3, p.tv);
  24295. c.nC.create = function(a, b, d, e, f) {
  24296. return new c.nC(a, b, d, e, f)
  24297. };
  24298. c.Bx = c.pU;
  24299. c.mt = "Arial";
  24300. c.wM = !1;
  24301. c.Rc = c.la.extend({
  24302. Nf: !1,
  24303. Ne: null,
  24304. Ce: null,
  24305. qt: !1,
  24306. ob: "MenuItem",
  24307. ctor: function(a, b) {
  24308. var d = c.la.prototype;
  24309. d.ctor.call(this);
  24310. this.Ce = this.Ne = null;
  24311. this.Nf = this.qt = !1;
  24312. d.Vk.call(this, 0.5, 0.5);
  24313. this.Ne = b || null;
  24314. if (this.Ce = a || null) this.Nf = !0
  24315. },
  24316. pia: function() {
  24317. return this.qt
  24318. },
  24319. ee: function() {},
  24320. Ue: function() {
  24321. return !1
  24322. },
  24323. wI: function(a, b) {
  24324. this.Ne = b;
  24325. this.Ce = a
  24326. },
  24327. isEnabled: function() {
  24328. return this.Nf
  24329. },
  24330. We: function(a) {
  24331. this.Nf = a
  24332. },
  24333. Lu: function(a, b) {
  24334. this.anchorY = this.anchorX = 0.5;
  24335. this.Ne = b;
  24336. this.Ce = a;
  24337. this.Nf = !0;
  24338. this.qt = !1;
  24339. return !0
  24340. },
  24341. rect: function() {
  24342. var a = this.va,
  24343. b = this.S,
  24344. d = this.dd;
  24345. return c.rect(a.x - b.width * d.x, a.y - b.height * d.y, b.width, b.height)
  24346. },
  24347. selected: function() {
  24348. this.qt = !0
  24349. },
  24350. Mi: function() {
  24351. this.qt = !1
  24352. },
  24353. Tma: function(a, b) {
  24354. this.Ne = b;
  24355. this.Ce = a
  24356. },
  24357. Pc: function() {
  24358. if (this.Nf) {
  24359. var a = this.Ne,
  24360. b = this.Ce;
  24361. if (b) if (a && "string" == typeof b) a[b](this);
  24362. else a && "function" == typeof b ? b.call(a, this) : b(this)
  24363. }
  24364. }
  24365. });
  24366. p = c.Rc.prototype;
  24367. c.i(p, "enabled", p.isEnabled, p.We);
  24368. c.Rc.create = function(a, b) {
  24369. return new c.Rc(a, b)
  24370. };
  24371. c.Lm = c.Rc.extend({
  24372. mp: null,
  24373. nc: null,
  24374. p_: 0,
  24375. Rs: null,
  24376. ctor: function(a, b, d) {
  24377. c.Rc.prototype.ctor.call(this, b, d);
  24378. this.nc = this.mp = null;
  24379. this.p_ = 0;
  24380. this.Rs = null;
  24381. a && (this.Ct = 1, this.Rs = c.color.WHITE, this.mp = c.color(126, 126, 126), this.AA(a), this.cascadeOpacity = this.cascadeColor = !0)
  24382. },
  24383. k3: function() {
  24384. return this.mp
  24385. },
  24386. t7: function(a) {
  24387. this.mp = a
  24388. },
  24389. y3: function() {
  24390. return this.nc
  24391. },
  24392. AA: function(a) {
  24393. a && (this.M(a), a.anchorX = 0, a.anchorY = 0, this.width = a.width, this.height = a.height);
  24394. this.nc && this.removeChild(this.nc, !0);
  24395. this.nc = a
  24396. },
  24397. We: function(a) {
  24398. if (this.Nf != a) {
  24399. var b = this.nc;
  24400. a ? b.color = this.Rs : (this.Rs = b.color, b.color = this.mp)
  24401. }
  24402. c.Rc.prototype.We.call(this, a)
  24403. },
  24404. Fa: function(a) {
  24405. this.nc.opacity = a
  24406. },
  24407. yf: function() {
  24408. return this.nc.opacity
  24409. },
  24410. Va: function(a) {
  24411. this.nc.color = a
  24412. },
  24413. xf: function() {
  24414. return this.nc.color
  24415. },
  24416. mQ: function(a, b, d) {
  24417. this.Lu(b, d);
  24418. this.Ct = 1;
  24419. this.Rs = c.color.WHITE;
  24420. this.mp = c.color(126, 126, 126);
  24421. this.AA(a);
  24422. return this.cascadeOpacity = this.cascadeColor = !0
  24423. },
  24424. tc: function(a) {
  24425. this.nc.string = a;
  24426. this.width = this.nc.width;
  24427. this.height = this.nc.height
  24428. },
  24429. lm: function() {
  24430. return this.nc.string
  24431. },
  24432. Pc: function() {
  24433. this.Nf && (this.Dv(), this.scale = this.Ct, c.Rc.prototype.Pc.call(this))
  24434. },
  24435. selected: function() {
  24436. if (this.Nf) {
  24437. c.Rc.prototype.selected.call(this);
  24438. var a = this.NG(c.Iw);
  24439. a ? this.F8(a) : this.Ct = this.scale;
  24440. a = c.Qd.create(0.1, 1.2 * this.Ct);
  24441. a.to(c.Iw);
  24442. this.yb(a)
  24443. }
  24444. },
  24445. Mi: function() {
  24446. if (this.Nf) {
  24447. c.Rc.prototype.Mi.call(this);
  24448. this.G8(c.Iw);
  24449. var a = c.Qd.create(0.1, this.Ct);
  24450. a.to(c.Iw);
  24451. this.yb(a)
  24452. }
  24453. }
  24454. });
  24455. p = c.Lm.prototype;
  24456. c.i(p, "string", p.lm, p.tc);
  24457. c.i(p, "disabledColor", p.k3, p.t7);
  24458. c.i(p, "label", p.y3, p.AA);
  24459. c.Lm.create = function(a, b, d) {
  24460. return new c.Lm(a, b, d)
  24461. };
  24462. c.xJ = c.Lm.extend({
  24463. ctor: function(a, b, d, e, f, g, h) {
  24464. var k;
  24465. a && 0 < a.length && (k = c.Si.create(a, b, d, e, f));
  24466. c.Lm.prototype.ctor.call(this, k, g, h)
  24467. },
  24468. Md: function(a, b, d, e, f, g, h) {
  24469. if (!a || 0 == a.length) throw "cc.MenuItemAtlasFont.initWithString(): value should be non-null and its length should be greater than 0";
  24470. var k = new c.Si;
  24471. k.Md(a, b, d, e, f);
  24472. this.mQ(k, g, h);
  24473. return !0
  24474. }
  24475. });
  24476. c.xJ.create = function(a, b, d, e, f, g, h) {
  24477. return new c.xJ(a, b, d, e, f, g, h)
  24478. };
  24479. c.Xj = c.Lm.extend({
  24480. fc: null,
  24481. mc: null,
  24482. ctor: function(a, b, d) {
  24483. var e;
  24484. a && 0 < a.length ? (this.mc = c.mt, this.fc = c.Bx, e = c.Z.create(a, this.mc, this.fc)) : (this.fc = 0, this.mc = "");
  24485. c.Lm.prototype.ctor.call(this, e, b, d)
  24486. },
  24487. Md: function(a, b, d) {
  24488. if (!a || 0 == a.length) throw "Value should be non-null and its length should be greater than 0";
  24489. this.mc = c.mt;
  24490. this.fc = c.Bx;
  24491. a = c.Z.create(a, this.mc, this.fc);
  24492. this.mQ(a, b, d);
  24493. return !0
  24494. },
  24495. zA: function(a) {
  24496. this.fc = a;
  24497. this.oN()
  24498. },
  24499. UG: function() {
  24500. return this.fc
  24501. },
  24502. yA: function(a) {
  24503. this.mc = a;
  24504. this.oN()
  24505. },
  24506. TG: function() {
  24507. return this.mc
  24508. },
  24509. oN: function() {
  24510. var a = c.Z.create(this.nc.string, this.mc, this.fc);
  24511. this.AA(a)
  24512. }
  24513. });
  24514. c.Xj.zA = function(a) {
  24515. c.Bx = a
  24516. };
  24517. c.Xj.fontSize = function() {
  24518. return c.Bx
  24519. };
  24520. c.Xj.yA = function(a) {
  24521. c.wM && (c.mt = "");
  24522. c.mt = a;
  24523. c.wM = !0
  24524. };
  24525. p = c.Xj.prototype;
  24526. c.i(p, "fontSize", p.UG, p.zA);
  24527. c.i(p, "fontName", p.TG, p.yA);
  24528. c.Xj.fontName = function() {
  24529. return c.mt
  24530. };
  24531. c.Xj.create = function(a, b, d) {
  24532. return new c.Xj(a, b, d)
  24533. };
  24534. c.Mo = c.Rc.extend({
  24535. Cd: null,
  24536. pf: null,
  24537. hf: null,
  24538. ctor: function(a, b, d, e, f) {
  24539. c.Rc.prototype.ctor.call(this);
  24540. this.hf = this.pf = this.Cd = null;
  24541. if (void 0 !== b) {
  24542. var g, h, k;
  24543. void 0 !== f ? (g = d, k = e, h = f) : void 0 !== e && "function" === typeof e ? (g = d, k = e) : void 0 !== e && "function" === typeof d ? (h = e, k = d, g = b) : void 0 === d && (g = b);
  24544. this.nQ(a, b, g, k, h)
  24545. }
  24546. },
  24547. K3: function() {
  24548. return this.Cd
  24549. },
  24550. oI: function(a) {
  24551. this.Cd != a && (a && (this.M(a, 0, c.MU), a.anchorX = 0, a.anchorY = 0), this.Cd && this.removeChild(this.Cd, !0), this.Cd = a, this.width = this.Cd.width, this.height = this.Cd.height, this.Dy(), a.Fv && !a.sa && a.ue(function(a) {
  24552. this.width = a.width;
  24553. this.height = a.height
  24554. }, this))
  24555. },
  24556. U3: function() {
  24557. return this.pf
  24558. },
  24559. tI: function(a) {
  24560. this.pf != a && (a && (this.M(a, 0, c.CV), a.anchorX = 0, a.anchorY = 0), this.pf && this.removeChild(this.pf, !0), this.pf = a, this.Dy())
  24561. },
  24562. l3: function() {
  24563. return this.hf
  24564. },
  24565. lI: function(a) {
  24566. this.hf != a && (a && (this.M(a, 0, c.GT), a.anchorX = 0, a.anchorY = 0), this.hf && this.removeChild(this.hf, !0), this.hf = a, this.Dy())
  24567. },
  24568. nQ: function(a, b, d, e, f) {
  24569. this.Lu(e, f);
  24570. this.oI(a);
  24571. this.tI(b);
  24572. this.lI(d);
  24573. if (a = this.Cd) this.width = a.width, this.height = a.height, a.Fv && !a.sa && a.ue(function(a) {
  24574. this.width = a.width;
  24575. this.height = a.height;
  24576. this.cascadeOpacity = this.cascadeColor = !0
  24577. }, this);
  24578. return this.cascadeOpacity = this.cascadeColor = !0
  24579. },
  24580. Va: function(a) {
  24581. this.Cd.color = a;
  24582. this.pf && (this.pf.color = a);
  24583. this.hf && (this.hf.color = a)
  24584. },
  24585. xf: function() {
  24586. return this.Cd.color
  24587. },
  24588. Fa: function(a) {
  24589. this.Cd.opacity = a;
  24590. this.pf && (this.pf.opacity = a);
  24591. this.hf && (this.hf.opacity = a)
  24592. },
  24593. yf: function() {
  24594. return this.Cd.opacity
  24595. },
  24596. selected: function() {
  24597. c.Rc.prototype.selected.call(this);
  24598. this.Cd && (this.hf && (this.hf.visible = !1), this.pf ? (this.Cd.visible = !1, this.pf.visible = !0) : this.Cd.visible = !0)
  24599. },
  24600. Mi: function() {
  24601. c.Rc.prototype.Mi.call(this);
  24602. this.Cd && (this.Cd.visible = !0, this.pf && (this.pf.visible = !1), this.hf && (this.hf.visible = !1))
  24603. },
  24604. We: function(a) {
  24605. this.Nf != a && (c.Rc.prototype.We.call(this, a), this.Dy())
  24606. },
  24607. Dy: function() {
  24608. var a = this.Cd,
  24609. b = this.pf,
  24610. d = this.hf;
  24611. this.Nf ? (a && (a.visible = !0), b && (b.visible = !1), d && (d.visible = !1)) : d ? (a && (a.visible = !1), b && (b.visible = !1), d && (d.visible = !0)) : (a && (a.visible = !0), b && (b.visible = !1))
  24612. }
  24613. });
  24614. p = c.Mo.prototype;
  24615. c.i(p, "normalImage", p.K3, p.oI);
  24616. c.i(p, "selectedImage", p.U3, p.tI);
  24617. c.i(p, "disabledImage", p.l3, p.lI);
  24618. c.Mo.create = function(a, b, d, e, f) {
  24619. return new c.Mo(a, b, d, e, f || void 0)
  24620. };
  24621. c.Sh = c.Mo.extend({
  24622. ctor: function(a, b, d, e, f) {
  24623. var g = null,
  24624. h = null,
  24625. k = null,
  24626. m = null,
  24627. n = null;
  24628. void 0 === a ? c.Mo.prototype.ctor.call(this) : (g = c.P.create(a), b && (h = c.P.create(b)), void 0 === e ? m = d : void 0 === f ? (m = d, n = e) : f && (k = c.P.create(d), m = e, n = f), c.Mo.prototype.ctor.call(this, g, h, k, m, n))
  24629. },
  24630. Kna: function(a) {
  24631. this.oI(c.P.create(a))
  24632. },
  24633. foa: function(a) {
  24634. this.tI(c.P.create(a))
  24635. },
  24636. hna: function(a) {
  24637. this.lI(c.P.create(a))
  24638. },
  24639. Tha: function(a, b, d, e, f) {
  24640. var g = null,
  24641. h = null,
  24642. k = null;
  24643. a && (g = c.P.create(a));
  24644. b && (h = c.P.create(b));
  24645. d && (k = c.P.create(d));
  24646. return this.nQ(g, h, k, e, f)
  24647. }
  24648. });
  24649. c.Sh.create = function(a, b, d, e, f) {
  24650. return new c.Sh(a, b, d, e, f)
  24651. };
  24652. c.wB = c.Rc.extend({
  24653. xd: null,
  24654. uh: 0,
  24655. qe: null,
  24656. Ee: null,
  24657. ctor: function() {
  24658. var a = arguments.length,
  24659. b, d;
  24660. "function" === typeof arguments[a - 2] ? (b = arguments[a - 2], d = arguments[a - 1], a -= 2) : "function" === typeof arguments[a - 1] && (b = arguments[a - 1], a -= 1);
  24661. c.Rc.prototype.ctor.call(this, b, d);
  24662. this.uh = 0;
  24663. this.xd = [];
  24664. this.qe = 0;
  24665. this.Ee = c.color.WHITE;
  24666. if (0 < a) {
  24667. b = this.xd;
  24668. for (d = b.length = 0; d < a; d++) arguments[d] && b.push(arguments[d]);
  24669. this.uh = c.sC;
  24670. this.wv(0);
  24671. this.dr(!0);
  24672. this.er(!0)
  24673. }
  24674. },
  24675. yf: function() {
  24676. return this.qe
  24677. },
  24678. Fa: function(a) {
  24679. this.qe = a;
  24680. if (this.xd && 0 < this.xd.length) for (var b = 0; b < this.xd.length; b++) this.xd[b].opacity = a;
  24681. this.Ee.a = a
  24682. },
  24683. xf: function() {
  24684. var a = this.Ee;
  24685. return c.color(a.r, a.g, a.b, a.a)
  24686. },
  24687. Va: function(a) {
  24688. var b = this.Ee;
  24689. b.r = a.r;
  24690. b.g = a.g;
  24691. b.b = a.b;
  24692. if (this.xd && 0 < this.xd.length) for (b = 0; b < this.xd.length; b++) this.xd[b].Va(a);
  24693. void 0 === a.a || a.mu || this.Fa(a.a)
  24694. },
  24695. V3: function() {
  24696. return this.uh
  24697. },
  24698. wv: function(a) {
  24699. if (a != this.uh) {
  24700. this.uh = a;
  24701. (a = this.cg(c.aJ)) && a.vm(!1);
  24702. a = this.xd[this.uh];
  24703. this.M(a, 0, c.aJ);
  24704. var b = a.width,
  24705. d = a.height;
  24706. this.width = b;
  24707. this.height = d;
  24708. a.J(b / 2, d / 2)
  24709. }
  24710. },
  24711. hha: function() {
  24712. return this.xd
  24713. },
  24714. moa: function(a) {
  24715. this.xd = a
  24716. },
  24717. lQ: function(a) {
  24718. var b = a.length;
  24719. "function" === typeof a[a.length - 2] ? (this.Lu(a[a.length - 2], a[a.length - 1]), b -= 2) : "function" === typeof a[a.length - 1] ? (this.Lu(a[a.length - 1], null), b -= 1) : this.Lu(null, null);
  24720. for (var d = this.xd, e = d.length = 0; e < b; e++) a[e] && d.push(a[e]);
  24721. this.uh = c.sC;
  24722. this.wv(0);
  24723. return this.cascadeOpacity = this.cascadeColor = !0
  24724. },
  24725. zca: function(a) {
  24726. this.xd.push(a)
  24727. },
  24728. Pc: function() {
  24729. this.Nf && this.wv((this.uh + 1) % this.xd.length);
  24730. c.Rc.prototype.Pc.call(this)
  24731. },
  24732. selected: function() {
  24733. c.Rc.prototype.selected.call(this);
  24734. this.xd[this.uh].selected()
  24735. },
  24736. Mi: function() {
  24737. c.Rc.prototype.Mi.call(this);
  24738. this.xd[this.uh].Mi()
  24739. },
  24740. We: function(a) {
  24741. if (this.Nf != a) {
  24742. c.Rc.prototype.We.call(this, a);
  24743. var b = this.xd;
  24744. if (b && 0 < b.length) for (var d = 0; d < b.length; d++) b[d].enabled = a
  24745. }
  24746. },
  24747. Hma: function() {
  24748. return this.xd[this.uh]
  24749. },
  24750. ca: function() {
  24751. c.t.prototype.ca.call(this);
  24752. this.wv(this.uh)
  24753. }
  24754. });
  24755. p = c.wB.prototype;
  24756. c.i(p, "selectedIndex", p.V3, p.wv);
  24757. c.wB.create = function() {
  24758. 0 < arguments.length && null == arguments[arguments.length - 1] && c.log("parameters should not be ending with null in Javascript");
  24759. var a = new c.wB;
  24760. a.lQ(Array.prototype.slice.apply(arguments));
  24761. return a
  24762. };
  24763. c.cs = 0;
  24764. c.bs = 1;
  24765. c.kaa = -128;
  24766. c.eJ = 5;
  24767. c.hh = c.lg.extend({
  24768. enabled: !1,
  24769. Ee: null,
  24770. qe: 0,
  24771. Bc: null,
  24772. oi: -1,
  24773. WN: null,
  24774. ob: "Menu",
  24775. ctor: function(a) {
  24776. c.lg.prototype.ctor.call(this);
  24777. this.Ee = c.color.WHITE;
  24778. this.enabled = !1;
  24779. this.qe = 255;
  24780. this.Bc = null;
  24781. this.oi = -1;
  24782. this.WN = c.za.create({
  24783. event: c.za.xs,
  24784. Ev: !0,
  24785. jo: this.j_,
  24786. gv: this.n_,
  24787. fv: this.l_,
  24788. ev: this.k_
  24789. });
  24790. 0 < arguments.length && null == arguments[arguments.length - 1] && c.log("parameters should not be ending with null in Javascript");
  24791. var b = arguments.length,
  24792. d;
  24793. if (0 == b) d = [];
  24794. else if (1 == b) d = a instanceof Array ? a : [a];
  24795. else if (1 < b) {
  24796. d = [];
  24797. for (var e = 0; e < b; e++) arguments[e] && d.push(arguments[e])
  24798. }
  24799. this.hQ(d)
  24800. },
  24801. ca: function() {
  24802. var a = this.WN;
  24803. a.Sf || c.wa.addListener(a, this);
  24804. c.t.prototype.ca.call(this)
  24805. },
  24806. xf: function() {
  24807. var a = this.Ee;
  24808. return c.color(a.r, a.g, a.b, a.a)
  24809. },
  24810. Va: function(a) {
  24811. var b = this.Ee;
  24812. b.r = a.r;
  24813. b.g = a.g;
  24814. b.b = a.b;
  24815. if ((b = this.u) && 0 < b.length) for (var d = 0; d < b.length; d++) b[d].Va(a);
  24816. void 0 === a.a || a.mu || this.Fa(a.a)
  24817. },
  24818. yf: function() {
  24819. return this.qe
  24820. },
  24821. Fa: function(a) {
  24822. this.qe = a;
  24823. var b = this.u;
  24824. if (b && 0 < b.length) for (var d = 0; d < b.length; d++) b[d].Fa(a);
  24825. this.Ee.a = a
  24826. },
  24827. isEnabled: function() {
  24828. return this.enabled
  24829. },
  24830. We: function(a) {
  24831. this.enabled = a
  24832. },
  24833. lQ: function(a) {
  24834. var b = [];
  24835. if (a) for (var d = 0; d < a.length; d++) a[d] && b.push(a[d]);
  24836. return this.hQ(b)
  24837. },
  24838. hQ: function(a) {
  24839. if (c.lg.prototype.K.call(this)) {
  24840. this.enabled = !0;
  24841. var b = c.ja;
  24842. this.J(b.width / 2, b.height / 2);
  24843. this.ye(b);
  24844. this.Vk(0.5, 0.5);
  24845. this.qz(!0);
  24846. if (a) for (b = 0; b < a.length; b++) this.M(a[b], b);
  24847. this.Bc = null;
  24848. this.oi = c.cs;
  24849. return this.cascadeOpacity = this.cascadeColor = !0
  24850. }
  24851. return !1
  24852. },
  24853. M: function(a, b, d) {
  24854. if (!(a instanceof c.Rc)) throw "cc.Menu.addChild() : Menu only supports MenuItem objects as children";
  24855. c.je.prototype.M.call(this, a, b, d)
  24856. },
  24857. Eca: function() {
  24858. this.Jy(c.eJ)
  24859. },
  24860. Jy: function(a) {
  24861. var b = -a,
  24862. d = this.u,
  24863. e, f, g, h;
  24864. if (d && 0 < d.length) {
  24865. f = 0;
  24866. for (e = d.length; f < e; f++) b += d[f].height * d[f].scaleY + a;
  24867. var k = b / 2;
  24868. f = 0;
  24869. for (e = d.length; f < e; f++) h = d[f], g = h.height, b = h.scaleY, h.J(0, k - g * b / 2), k -= g * b + a
  24870. }
  24871. },
  24872. Bca: function() {
  24873. this.fG(c.eJ)
  24874. },
  24875. fG: function(a) {
  24876. var b = -a,
  24877. d = this.u,
  24878. e, f, g, h;
  24879. if (d && 0 < d.length) {
  24880. e = 0;
  24881. for (f = d.length; e < f; e++) b += d[e].width * d[e].scaleX + a;
  24882. var k = -b / 2;
  24883. e = 0;
  24884. for (f = d.length; e < f; e++) h = d[e], b = h.scaleX, g = d[e].width, h.J(k + g * b / 2, 0), k += g * b + a
  24885. }
  24886. },
  24887. Cca: function() {
  24888. 0 < arguments.length && null == arguments[arguments.length - 1] && c.log("parameters should not be ending with null in Javascript");
  24889. for (var a = [], b = 0; b < arguments.length; b++) a.push(arguments[b]);
  24890. var d = -5,
  24891. e = 0,
  24892. f = 0,
  24893. g = 0,
  24894. h, k, m, n = this.u;
  24895. if (n && 0 < n.length) for (b = 0, m = n.length; b < m; b++) e >= a.length || !(h = a[e]) || (k = n[b].height, f = f >= k || isNaN(k) ? f : k, ++g, g >= h && (d += f + 5, f = g = 0, ++e));
  24896. var q = c.L.V,
  24897. r = h = f = e = 0,
  24898. t = 0,
  24899. d = d / 2;
  24900. if (n && 0 < n.length) for (b = 0, m = n.length; b < m; b++) {
  24901. var s = n[b];
  24902. 0 == h && (h = a[e], t = r = q.width / (1 + h));
  24903. k = s.Jl();
  24904. f = f >= k || isNaN(k) ? f : k;
  24905. s.J(t - q.width / 2, d - k / 2);
  24906. t += r;
  24907. ++g;
  24908. g >= h && (d -= f + 5, f = h = g = 0, ++e)
  24909. }
  24910. },
  24911. Dca: function() {
  24912. 0 < arguments.length && null == arguments[arguments.length - 1] && c.log("parameters should not be ending with null in Javascript");
  24913. var a = [],
  24914. b;
  24915. for (b = 0; b < arguments.length; b++) a.push(arguments[b]);
  24916. var d = [],
  24917. e = [],
  24918. f = -10,
  24919. g = -5,
  24920. h = 0,
  24921. k = 0,
  24922. m = 0,
  24923. n, q, r, t, s = this.u;
  24924. if (s && 0 < s.length) for (b = 0, r = s.length; b < r; b++)(q = s[b], h >= a.length || !(n = a[h])) || (t = q.width, k = k >= t || isNaN(t) ? k : t, g += q.height + 5, ++m, m >= n && (d.push(k), e.push(g), f += k + 10, k = m = 0, g = -5, ++h));
  24925. g = c.L.V;
  24926. n = k = h = 0;
  24927. var f = -f / 2,
  24928. u = 0;
  24929. if (s && 0 < s.length) for (b = 0, r = s.length; b < r; b++) q = s[b], 0 == n && (n = a[h], u = e[h]), t = q.Wh(), k = k >= t || isNaN(t) ? k : t, q.J(f + d[h] / 2, u - g.height / 2), u -= q.height + 10, ++m, m >= n && (f += k + 5, k = n = m = 0, ++h)
  24930. },
  24931. removeChild: function(a, b) {
  24932. null != a && (a instanceof c.Rc ? (this.Bc == a && (this.Bc = null), c.t.prototype.removeChild.call(this, a, b)) : c.log("cc.Menu.removeChild():Menu only supports MenuItem objects as children"))
  24933. },
  24934. j_: function(a, b) {
  24935. var d = b.Vd;
  24936. if (d.oi != c.cs || !d.Ja || !d.enabled) return !1;
  24937. for (var e = d.parent; null != e; e = e.parent) if (!e.Ja) return !1;
  24938. d.Bc = d.MM(a);
  24939. return d.Bc ? (Ma.T5(d.Bc.Dq()), d.oi = c.bs, d.Bc.selected(), !0) : !1
  24940. },
  24941. l_: function(a, b) {
  24942. var d = b.Vd;
  24943. d.oi !== c.bs ? c.log("cc.Menu.onTouchEnded(): invalid state") : (d.Bc && (Ma.XQ(d.Bc.Dq()), d.Bc.Mi(), d.Bc.Pc()), d.oi = c.cs)
  24944. },
  24945. k_: function(a, b) {
  24946. var d = b.Vd;
  24947. d.oi !== c.bs ? c.log("cc.Menu.onTouchCancelled(): invalid state") : (this.Bc && (Ma.XQ(d.Bc.Dq()), d.Bc.Mi()), d.oi = c.cs)
  24948. },
  24949. n_: function(a, b) {
  24950. var d = b.Vd;
  24951. if (d.oi !== c.bs) c.log("cc.Menu.onTouchMoved(): invalid state");
  24952. else {
  24953. var e = d.MM(a);
  24954. e != d.Bc && (d.Bc && d.Bc.Mi(), d.Bc = e, d.Bc && d.Bc.selected())
  24955. }
  24956. },
  24957. xb: function() {
  24958. this.oi == c.bs && (this.Bc && (this.Bc.Mi(), this.Bc = null), this.oi = c.cs);
  24959. c.t.prototype.xb.call(this)
  24960. },
  24961. ee: function() {},
  24962. Ue: function() {
  24963. return !1
  24964. },
  24965. MM: function(a) {
  24966. a = a.Aq();
  24967. var b = this.u,
  24968. d;
  24969. if (b && 0 < b.length) for (var e = 0; e < b.length; e++) if (d = b[e], d.Ja && d.isEnabled()) {
  24970. var f = d.CG(a),
  24971. g = d.rect();
  24972. g.x = 0;
  24973. g.y = 0;
  24974. if (c.Rg(g, f)) return d
  24975. }
  24976. return null
  24977. }
  24978. });
  24979. p = c.hh.prototype;
  24980. c.hh.create = function(a) {
  24981. var b = arguments.length;
  24982. 0 < b && null == arguments[b - 1] && c.log("parameters should not be ending with null in Javascript");
  24983. return 0 == b ? new c.hh : 1 == b ? new c.hh(a) : new c.hh(Array.prototype.slice.call(arguments, 0))
  24984. };
  24985. c.Yaa = 0;
  24986. c.Uaa = 1;
  24987. c.Xaa = 2;
  24988. c.Vaa = 3;
  24989. c.Waa = 4;
  24990. c.Taa = 5;
  24991. c.opa = function(a, b, d) {
  24992. var e = 2;
  24993. if (e + 1 > b) return !1;
  24994. a = new c.lT(a);
  24995. a.BA(e);
  24996. d.type = a.T();
  24997. e += 10;
  24998. if (e + 4 + 1 > b) return !1;
  24999. a.BA(e);
  25000. d.width = a.E6();
  25001. d.height = a.D6();
  25002. d.pixelDepth = a.T();
  25003. if (e + 5 + 1 > b) return !1;
  25004. b = a.T();
  25005. d.lP = 0;
  25006. b & 32 && (d.lP = 1);
  25007. return !0
  25008. };
  25009. c.ppa = function(a, b, d) {
  25010. var e, f;
  25011. e = 0 | d.pixelDepth / 2;
  25012. f = d.height * d.width * e;
  25013. if (18 + f > b) return !1;
  25014. d.eg = c.Mw(a, 18, 18 + f);
  25015. if (3 <= e) for (a = 0; a < f; a += e) b = d.eg[a], d.eg[a] = d.eg[a + 2], d.eg[a + 2] = b;
  25016. return !0
  25017. };
  25018. c.rpa = function(a) {
  25019. var b, d;
  25020. if (8 !== a.pixelDepth) {
  25021. var e = a.pixelDepth / 8,
  25022. f = new Uint8Array(a.height * a.width);
  25023. if (null !== f) {
  25024. for (d = b = 0; d < a.width * a.height; b += e, d++) f[d] = 0.3 * a.eg[b] + 0.59 * a.eg[b + 1] + 0.11 * a.eg[b + 2];
  25025. a.pixelDepth = 8;
  25026. a.type = 3;
  25027. a.eg = f
  25028. }
  25029. }
  25030. };
  25031. c.mpa = function(a) {
  25032. a && (a.eg = null)
  25033. };
  25034. c.qpa = function(a, b, d) {
  25035. var e, f, g, h = 0,
  25036. k = 0,
  25037. m = 0,
  25038. n = [],
  25039. q = 0,
  25040. r = 18;
  25041. e = d.pixelDepth / 8;
  25042. f = d.height * d.width;
  25043. for (g = 0; g < f; g++) {
  25044. if (0 != q) q--, k = 0 != m;
  25045. else {
  25046. if (r + 1 > b) break;
  25047. q = a[r];
  25048. r += 1;
  25049. (m = q & 128) && (q -= 128);
  25050. k = 0
  25051. }
  25052. if (!k) {
  25053. if (r + e > b) break;
  25054. n = c.Mw(a, r, r + e);
  25055. r += e;
  25056. 3 <= e && (k = n[0], n[0] = n[2], n[2] = k)
  25057. }
  25058. for (k = 0; k < e; k++) d.eg[h + k] = n[k];
  25059. h += e
  25060. }
  25061. return !0
  25062. };
  25063. c.npa = function(a) {
  25064. for (var b = a.pixelDepth / 8 * a.width, d = 0; d < a.height / 2; d++) {
  25065. var e = c.Mw(a.eg, d * b, d * b + b);
  25066. c.bL(c.Mw(a.eg, (a.height - (d + 1)) * b, b), a.eg, d * b);
  25067. c.bL(e, a.eg, (a.height - (d + 1)) * b)
  25068. }
  25069. a.lP = 0
  25070. };
  25071. c.Mw = function(a, b, d) {
  25072. return a instanceof Array ? a.slice(b, d) : a.subarray(b, d)
  25073. };
  25074. c.bL = function(a, b, d) {
  25075. for (var e = 0; e < a.length; e++) b[d + e] = a[e]
  25076. };
  25077. c.lT = c.qa.extend({
  25078. Vo: null,
  25079. oa: 0,
  25080. ctor: function(a) {
  25081. this.Vo = a
  25082. },
  25083. Qma: function(a) {
  25084. this.Vo = a;
  25085. this.oa = 0
  25086. },
  25087. dfa: function() {
  25088. return this.Vo
  25089. },
  25090. jY: function(a) {
  25091. if (!(this.oa + Math.ceil(a / 8) < this.kp.length)) throw Error("Index out of bound");
  25092. },
  25093. yY: function(a, b) {
  25094. var d = a + b + 1,
  25095. e = d >> 3;
  25096. this.jY(d);
  25097. var d = Math.pow(2, b - 1) - 1,
  25098. f = this.LE(a + b, 1, e),
  25099. g = this.LE(a, b, e),
  25100. h = 0,
  25101. k = 2,
  25102. m = 0;
  25103. do
  25104. for (var n = this.cy(++m, e), q = a % 8 || 8, r = 1 << q; r >>= 1;) n & r && (h += 1 / k), k *= 2;
  25105. while (a -= q);
  25106. this.oa += e;
  25107. return g == (d << 1) + 1 ? h ? NaN : f ? -Infinity : Infinity : (1 + -2 * f) * (g || h ? g ? Math.pow(2, g - d) * (1 + h) : Math.pow(2, -d + 1) * h : 0)
  25108. },
  25109. cy: function(a, b) {
  25110. return this.kp[this.oa + b - a - 1]
  25111. },
  25112. hx: function(a, b) {
  25113. var d = this.LE(0, a, a / 8),
  25114. e = Math.pow(2, a);
  25115. this.oa += a / 8;
  25116. return b && d >= e / 2 ? d - e : d
  25117. },
  25118. w0: function(a, b) {
  25119. for (++b; --b; a = 1073741824 == ((a %= 2147483648) & 1073741824) ? 2 * a : 2 * (a - 1073741824) + 2147483648);
  25120. return a
  25121. },
  25122. LE: function(a, b, d) {
  25123. var e = (a + b) % 8,
  25124. f = a % 8,
  25125. g = d - (a >> 3) - 1;
  25126. a = d + (-(a + b) >> 3);
  25127. var h = g - a;
  25128. b = this.cy(g, d) >> f & (1 << (h ? 8 - f : b)) - 1;
  25129. for (h && e && (b += (this.cy(a++, d) & (1 << e) - 1) << (h-- << 3) - f); h;) b += this.w0(this.cy(a++, d), (h-- << 3) - f);
  25130. return b
  25131. },
  25132. Pla: function() {
  25133. return this.hx(32, !0)
  25134. },
  25135. D6: function() {
  25136. return this.hx(32, !1)
  25137. },
  25138. Rla: function() {
  25139. return this.yY(23, 8)
  25140. },
  25141. Qla: function() {
  25142. return this.hx(16, !0)
  25143. },
  25144. E6: function() {
  25145. return this.hx(16, !1)
  25146. },
  25147. T: function() {
  25148. var a = this.kp[this.oa];
  25149. this.oa += 1;
  25150. return a
  25151. },
  25152. Mla: function(a, b) {
  25153. return this.Vo instanceof Array ? this.Vo.slice(a, b) : this.Vo.subarray(a, b)
  25154. },
  25155. BA: function(a) {
  25156. this.oa = a
  25157. },
  25158. zP: function() {
  25159. return this.oa
  25160. }
  25161. });
  25162. c.Bw = 0;
  25163. c.zw = 1;
  25164. c.Aw = 2;
  25165. c.cC = c.la.extend({
  25166. Wb: null,
  25167. MH: null,
  25168. Uq: null,
  25169. pd: null,
  25170. Ub: null,
  25171. Ak: null,
  25172. ob: "TMXTiledMap",
  25173. ctor: function(a, b) {
  25174. c.t.prototype.ctor.call(this);
  25175. this.pd = c.size(0, 0);
  25176. this.Ub = c.size(0, 0);
  25177. void 0 !== b ? this.sH(a, b) : void 0 !== a && this.rH(a)
  25178. },
  25179. WG: function() {
  25180. return c.size(this.pd.width, this.pd.height)
  25181. },
  25182. SR: function(a) {
  25183. this.pd.width = a.width;
  25184. this.pd.height = a.height
  25185. },
  25186. MD: function() {
  25187. return this.pd.width
  25188. },
  25189. dF: function(a) {
  25190. this.pd.width = a
  25191. },
  25192. LD: function() {
  25193. return this.pd.height
  25194. },
  25195. cF: function(a) {
  25196. this.pd.height = a
  25197. },
  25198. Eq: function() {
  25199. return c.size(this.Ub.width, this.Ub.height)
  25200. },
  25201. eS: function(a) {
  25202. this.Ub.width = a.width;
  25203. this.Ub.height = a.height
  25204. },
  25205. lt: function() {
  25206. return this.Ub.width
  25207. },
  25208. Ot: function(a) {
  25209. this.Ub.width = a
  25210. },
  25211. kt: function() {
  25212. return this.Ub.height
  25213. },
  25214. Nt: function(a) {
  25215. this.Ub.height = a
  25216. },
  25217. jga: function() {
  25218. return this.MH
  25219. },
  25220. Fna: function(a) {
  25221. this.MH = a
  25222. },
  25223. yP: function() {
  25224. return this.Uq
  25225. },
  25226. TR: function(a) {
  25227. this.Uq = a
  25228. },
  25229. fz: function() {
  25230. return this.Wb
  25231. },
  25232. CA: function(a) {
  25233. this.Wb = a
  25234. },
  25235. rH: function(a) {
  25236. if (!a || 0 == a.length) throw "cc.TMXTiledMap.initWithTMXFile(): tmxFile should be non-null or non-empty string.";
  25237. this.height = this.width = 0;
  25238. a = c.us.create(a);
  25239. if (!a) return !1;
  25240. var b = a.yn;
  25241. b && 0 !== b.length || c.log("cc.TMXTiledMap.initWithTMXFile(): Map not found. Please check the filename.");
  25242. this.mL(a);
  25243. return !0
  25244. },
  25245. sH: function(a, b) {
  25246. this.height = this.width = 0;
  25247. var d = c.us.create(a, b),
  25248. e = d.yn;
  25249. e && 0 !== e.length || c.log("cc.TMXTiledMap.initWithXML(): Map not found. Please check the filename.");
  25250. this.mL(d);
  25251. return !0
  25252. },
  25253. mL: function(a) {
  25254. this.pd = a.WG();
  25255. this.Ub = a.Eq();
  25256. this.MH = a.orientation;
  25257. this.Uq = a.yP();
  25258. this.Wb = a.Wb;
  25259. this.Ak = a.Ak;
  25260. var b = 0,
  25261. d = a.Ie;
  25262. if (d) for (var e = null, f = 0, g = d.length; f < g; f++)(e = d[f]) && e.visible && (e = this.t_(e, a), this.M(e, b, b), this.width = Math.max(this.width, e.width), this.height = Math.max(this.height, e.height), b++)
  25263. },
  25264. Fca: function() {
  25265. for (var a = [], b = this.u, d = 0, e = b.length; d < e; d++) {
  25266. var f = b[d];
  25267. f && f instanceof c.ts && a.push(f)
  25268. }
  25269. return a
  25270. },
  25271. $fa: function(a) {
  25272. if (!a || 0 === a.length) throw "cc.TMXTiledMap.getLayer(): layerName should be non-null or non-empty string.";
  25273. for (var b = this.u, d = 0; d < b.length; d++) {
  25274. var e = b[d];
  25275. if (e && e.Oz == a) return e
  25276. }
  25277. return null
  25278. },
  25279. sga: function(a) {
  25280. if (!a || 0 === a.length) throw "cc.TMXTiledMap.getObjectGroup(): groupName should be non-null or non-empty string.";
  25281. if (this.Uq) for (var b = 0; b < this.Uq.length; b++) {
  25282. var d = this.Uq[b];
  25283. if (d && d.Ku == a) return d
  25284. }
  25285. return null
  25286. },
  25287. YG: function(a) {
  25288. return this.Wb[a.toString()]
  25289. },
  25290. Hla: function(a) {
  25291. return this.Ak[a]
  25292. },
  25293. t_: function(a, b) {
  25294. var d = this.J0(a, b),
  25295. d = c.ts.create(d, a, b);
  25296. a.$Q = !1;
  25297. d.r8();
  25298. return d
  25299. },
  25300. J0: function(a, b) {
  25301. var d = a.ua,
  25302. e = b.yn;
  25303. if (e) for (var f = e.length - 1; 0 <= f; f--) {
  25304. var g = e[f];
  25305. if (g) for (var h = 0; h < d.height; h++) for (var k = 0; k < d.width; k++) {
  25306. var m = a.qf[k + d.width * h];
  25307. if (0 != m && (m & c.dC) >>> 0 >= g.Wn) return g
  25308. }
  25309. }
  25310. c.log("cocos2d: Warning: TMX Layer " + a.name + " has no tiles");
  25311. return null
  25312. }
  25313. });
  25314. p = c.cC.prototype;
  25315. c.i(p, "mapWidth", p.MD, p.dF);
  25316. c.i(p, "mapHeight", p.LD, p.cF);
  25317. c.i(p, "tileWidth", p.lt, p.Ot);
  25318. c.i(p, "tileHeight", p.kt, p.Nt);
  25319. c.cC.create = function(a, b) {
  25320. return new c.cC(a, b)
  25321. };
  25322. c.KW = 0;
  25323. c.$aa = 1;
  25324. c.Zaa = 2;
  25325. c.bba = 3;
  25326. c.aba = 4;
  25327. c.cba = 5;
  25328. c.vs = 2147483648;
  25329. c.ws = 1073741824;
  25330. c.iK = 536870912;
  25331. c.jK = (c.vs | c.ws | c.iK) >>> 0;
  25332. c.dC = ~c.jK >>> 0;
  25333. c.Qm = c.qa.extend({
  25334. Wb: null,
  25335. name: "",
  25336. ua: null,
  25337. qf: null,
  25338. visible: null,
  25339. qe: null,
  25340. $Q: !0,
  25341. hn: 1E5,
  25342. gn: 0,
  25343. offset: null,
  25344. ctor: function() {
  25345. this.Wb = [];
  25346. this.name = "";
  25347. this.ua = null;
  25348. this.qf = [];
  25349. this.visible = !0;
  25350. this.qe = 0;
  25351. this.$Q = !0;
  25352. this.hn = 1E5;
  25353. this.gn = 0;
  25354. this.offset = c.d(0, 0)
  25355. },
  25356. fz: function() {
  25357. return this.Wb
  25358. },
  25359. CA: function(a) {
  25360. this.Wb = a
  25361. }
  25362. });
  25363. c.JW = c.qa.extend({
  25364. name: "",
  25365. Wn: 0,
  25366. Ub: null,
  25367. Av: 0,
  25368. margin: 0,
  25369. lS: "",
  25370. rz: null,
  25371. ctor: function() {
  25372. this.Ub = c.size(0, 0);
  25373. this.rz = c.size(0, 0)
  25374. },
  25375. pv: function(a) {
  25376. var b = c.rect(0, 0, 0, 0);
  25377. b.width = this.Ub.width;
  25378. b.height = this.Ub.height;
  25379. a &= c.dC;
  25380. a -= parseInt(this.Wn, 10);
  25381. var d = parseInt((this.rz.width - 2 * this.margin + this.Av) / (this.Ub.width + this.Av), 10);
  25382. b.x = parseInt(a % d * (this.Ub.width + this.Av) + this.margin, 10);
  25383. b.y = parseInt(parseInt(a / d, 10) * (this.Ub.height + this.Av) + this.margin, 10);
  25384. return b
  25385. }
  25386. });
  25387. c.us = c.ww.extend({
  25388. Wb: null,
  25389. orientation: null,
  25390. parentElement: null,
  25391. cA: null,
  25392. Nz: 0,
  25393. GI: !1,
  25394. qr: null,
  25395. DG: null,
  25396. Sx: null,
  25397. pd: null,
  25398. Ub: null,
  25399. Ie: null,
  25400. yn: null,
  25401. Ak: null,
  25402. gy: "",
  25403. vL: 0,
  25404. ctor: function(a, b) {
  25405. c.ww.prototype.ctor.apply(this);
  25406. this.pd = c.size(0, 0);
  25407. this.Ub = c.size(0, 0);
  25408. this.Ie = [];
  25409. this.yn = [];
  25410. this.Sx = [];
  25411. this.Wb = [];
  25412. this.Ak = {};
  25413. this.vL = 0;
  25414. void 0 !== b ? this.sH(a, b) : void 0 !== a && this.rH(a)
  25415. },
  25416. yga: function() {
  25417. return this.orientation
  25418. },
  25419. Pna: function(a) {
  25420. this.orientation = a
  25421. },
  25422. WG: function() {
  25423. return c.size(this.pd.width, this.pd.height)
  25424. },
  25425. SR: function(a) {
  25426. this.pd.width = a.width;
  25427. this.pd.height = a.height
  25428. },
  25429. MD: function() {
  25430. return this.pd.width
  25431. },
  25432. dF: function(a) {
  25433. this.pd.width = a
  25434. },
  25435. LD: function() {
  25436. return this.pd.height
  25437. },
  25438. cF: function(a) {
  25439. this.pd.height = a
  25440. },
  25441. Eq: function() {
  25442. return c.size(this.Ub.width, this.Ub.height)
  25443. },
  25444. eS: function(a) {
  25445. this.Ub.width = a.width;
  25446. this.Ub.height = a.height
  25447. },
  25448. lt: function() {
  25449. return this.Ub.width
  25450. },
  25451. Ot: function(a) {
  25452. this.Ub.width = a
  25453. },
  25454. kt: function() {
  25455. return this.Ub.height
  25456. },
  25457. Nt: function(a) {
  25458. this.Ub.height = a
  25459. },
  25460. ega: function() {
  25461. return this.Ie
  25462. },
  25463. QR: function(a) {
  25464. this.Ie.push(a)
  25465. },
  25466. qha: function() {
  25467. return this.yn
  25468. },
  25469. h8: function(a) {
  25470. this.yn.push(a)
  25471. },
  25472. yP: function() {
  25473. return this.Sx
  25474. },
  25475. TR: function(a) {
  25476. this.Sx.push(a)
  25477. },
  25478. Dga: function() {
  25479. return this.parentElement
  25480. },
  25481. Una: function(a) {
  25482. this.parentElement = a
  25483. },
  25484. Ega: function() {
  25485. return this.cA
  25486. },
  25487. Vna: function(a) {
  25488. this.cA = a
  25489. },
  25490. aga: function() {
  25491. return this.Nz
  25492. },
  25493. yna: function(a) {
  25494. this.Nz = a
  25495. },
  25496. gha: function() {
  25497. return this.GI
  25498. },
  25499. loa: function(a) {
  25500. this.GI = a
  25501. },
  25502. fz: function() {
  25503. return this.Wb
  25504. },
  25505. CA: function(a) {
  25506. this.Wb = a
  25507. },
  25508. rH: function(a) {
  25509. this.EM(a, null);
  25510. return this.TH(a)
  25511. },
  25512. sH: function(a, b) {
  25513. this.EM(null, b);
  25514. return this.g6(a)
  25515. },
  25516. TH: function(a, b) {
  25517. var d = (b = b || !1) ? a : c.X.be(a);
  25518. if (!d) throw "Please load the resource first : " + a;
  25519. var e, f, d = this.sE(d).documentElement;
  25520. e = d.getAttribute("version");
  25521. f = d.getAttribute("orientation");
  25522. if ("map" == d.nodeName && ("1.0" != e && null !== e && c.log("cocos2d: TMXFormat: Unsupported TMX version:" + e), "orthogonal" == f ? this.orientation = c.Bw : "isometric" == f ? this.orientation = c.Aw : "hexagonal" == f ? this.orientation = c.zw : null !== f && c.log("cocos2d: TMXFomat: Unsupported orientation:" + f), e = c.size(0, 0), e.width = parseFloat(d.getAttribute("width")), e.height = parseFloat(d.getAttribute("height")), this.SR(e), e = c.size(0, 0), e.width = parseFloat(d.getAttribute("tilewidth")), e.height = parseFloat(d.getAttribute("tileheight")), this.eS(e), f = d.querySelectorAll("map > properties > property"))) {
  25523. var g = {};
  25524. for (e = 0; e < f.length; e++) g[f[e].getAttribute("name")] = f[e].getAttribute("value");
  25525. this.Wb = g
  25526. }
  25527. g = d.getElementsByTagName("tileset");
  25528. "map" !== d.nodeName && (g = [], g.push(d));
  25529. for (e = 0; e < g.length; e++) {
  25530. f = g[e];
  25531. var h = f.getAttribute("source");
  25532. if (h) f = b ? c.path.join(this.gy, h) : c.path.kq(a, h), this.TH(f);
  25533. else {
  25534. h = new c.JW;
  25535. h.name = f.getAttribute("name") || "";
  25536. h.Wn = parseInt(f.getAttribute("firstgid")) || 0;
  25537. h.Av = parseInt(f.getAttribute("spacing")) || 0;
  25538. h.margin = parseInt(f.getAttribute("margin")) || 0;
  25539. var k = c.size(0, 0);
  25540. k.width = parseFloat(f.getAttribute("tilewidth"));
  25541. k.height = parseFloat(f.getAttribute("tileheight"));
  25542. h.Ub = k;
  25543. var k = f.getElementsByTagName("image")[0].getAttribute("source"),
  25544. m = -1;
  25545. this.qr && (m = this.qr.lastIndexOf("/"));
  25546. h.lS = -1 !== m ? this.qr.substr(0, m + 1) + k : this.gy + (this.gy ? "/" : "") + k;
  25547. this.h8(h);
  25548. if (k = f.getElementsByTagName("tile")) for (m = 0; m < k.length; m++) {
  25549. f = k[m];
  25550. this.cA = parseInt(h.Wn) + parseInt(f.getAttribute("id") || 0);
  25551. var n = f.querySelectorAll("properties > property");
  25552. if (n) {
  25553. var q = {};
  25554. for (f = 0; f < n.length; f++) {
  25555. var r = n[f].getAttribute("name");
  25556. q[r] = n[f].getAttribute("value")
  25557. }
  25558. this.Ak[this.cA] = q
  25559. }
  25560. }
  25561. }
  25562. }
  25563. if (g = d.getElementsByTagName("layer")) for (e = 0; e < g.length; e++) {
  25564. k = g[e];
  25565. m = k.getElementsByTagName("data")[0];
  25566. h = new c.Qm;
  25567. h.name = k.getAttribute("name");
  25568. f = c.size(0, 0);
  25569. f.width = parseFloat(k.getAttribute("width"));
  25570. f.height = parseFloat(k.getAttribute("height"));
  25571. h.ua = f;
  25572. f = k.getAttribute("visible");
  25573. h.visible = "0" != f;
  25574. f = k.getAttribute("opacity") || 1;
  25575. h.qe = f ? parseInt(255 * parseFloat(f)) : 255;
  25576. h.offset = c.d(parseFloat(k.getAttribute("x")) || 0, parseFloat(k.getAttribute("y")) || 0);
  25577. n = "";
  25578. for (f = 0; f < m.childNodes.length; f++) n += m.childNodes[f].nodeValue;
  25579. n = n.trim();
  25580. f = m.getAttribute("compression");
  25581. q = m.getAttribute("encoding");
  25582. if (f && "gzip" !== f && "zlib" !== f) return c.log("cc.TMXMapInfo.parseXMLFile(): unsupported compression method"), null;
  25583. switch (f) {
  25584. case "gzip":
  25585. h.qf = c.IS(n, 4);
  25586. break;
  25587. case "zlib":
  25588. f = new Zlib.Ho(c.na.Fm.RO(n, 1));
  25589. h.qf = c.Z8(f.SO());
  25590. break;
  25591. case null:
  25592. case "":
  25593. if ("base64" == q) h.qf = c.na.Fm.RO(n, 4);
  25594. else if ("csv" === q) for (h.qf = [], f = n.split(","), m = 0; m < f.length; m++) h.qf.push(parseInt(f[m]));
  25595. else for (f = m.getElementsByTagName("tile"), h.qf = [], m = 0; m < f.length; m++) h.qf.push(parseInt(f[m].getAttribute("gid")));
  25596. break;
  25597. default:
  25598. this.Nz == c.Qm.SI && c.log("cc.TMXMapInfo.parseXMLFile(): Only base64 and/or gzip/zlib maps are supported")
  25599. }
  25600. if (k = k.querySelectorAll("properties > property")) {
  25601. m = {};
  25602. for (f = 0; f < k.length; f++) m[k[f].getAttribute("name")] = k[f].getAttribute("value");
  25603. h.Wb = m
  25604. }
  25605. this.QR(h)
  25606. }
  25607. if (g = d.getElementsByTagName("objectgroup")) for (e = 0; e < g.length; e++) {
  25608. k = g[e];
  25609. h = new c.IW;
  25610. h.Ku = k.getAttribute("name");
  25611. h.S7(c.d(parseFloat(k.getAttribute("x")) * this.Eq().width || 0, parseFloat(k.getAttribute("y")) * this.Eq().height || 0));
  25612. if (m = k.querySelectorAll("objectgroup > properties > property")) for (f = 0; f < m.length; f++) n = {}, n[m[f].getAttribute("name")] = m[f].getAttribute("value"), h.Wb = n;
  25613. if (k = k.querySelectorAll("object")) for (f = 0; f < k.length; f++) {
  25614. n = k[f];
  25615. m = {};
  25616. m.name = n.getAttribute("name") || "";
  25617. m.type = n.getAttribute("type") || "";
  25618. m.x = parseInt(n.getAttribute("x") || 0) + h.Mp.x;
  25619. q = parseInt(n.getAttribute("y") || 0) + h.Mp.y;
  25620. m.width = parseInt(n.getAttribute("width")) || 0;
  25621. m.height = parseInt(n.getAttribute("height")) || 0;
  25622. m.y = parseInt(this.WG().height * this.Eq().height) - q - m.height;
  25623. if (q = n.querySelectorAll("properties > property")) for (r = 0; r < q.length; r++) m[q[r].getAttribute("name")] = q[r].getAttribute("value");
  25624. (q = n.querySelectorAll("polygon")) && 0 < q.length && (q = q[0].getAttribute("points")) && (m.polygonPoints = this.cN(q));
  25625. (n = n.querySelectorAll("polyline")) && 0 < n.length && (n = n[0].getAttribute("points")) && (m.polylinePoints = this.cN(n));
  25626. h.N7(m)
  25627. }
  25628. this.TR(h)
  25629. }
  25630. return d
  25631. },
  25632. cN: function(a) {
  25633. if (!a) return null;
  25634. var b = [];
  25635. a = a.split(" ");
  25636. for (var d = 0; d < a.length; d++) {
  25637. var e = a[d].split(",");
  25638. b.push({
  25639. x: e[0],
  25640. y: e[1]
  25641. })
  25642. }
  25643. return b
  25644. },
  25645. g6: function(a) {
  25646. return this.TH(a, !0)
  25647. },
  25648. nha: function() {
  25649. return this.Ak
  25650. },
  25651. toa: function(a) {
  25652. this.Ak.push(a)
  25653. },
  25654. tfa: function() {
  25655. return this.DG
  25656. },
  25657. cna: function(a) {
  25658. this.DG = a
  25659. },
  25660. iha: function() {
  25661. return this.qr
  25662. },
  25663. ooa: function(a) {
  25664. this.qr = a
  25665. },
  25666. EM: function(a, b) {
  25667. this.yn.length = 0;
  25668. this.Ie.length = 0;
  25669. this.qr = a;
  25670. b && (this.gy = b);
  25671. this.Sx.length = 0;
  25672. this.Wb.length = 0;
  25673. this.Ak.length = 0;
  25674. this.DG = "";
  25675. this.GI = !1;
  25676. this.Nz = c.Qm.SI;
  25677. this.parentElement = c.KW;
  25678. this.vL = 0
  25679. }
  25680. });
  25681. p = c.us.prototype;
  25682. c.i(p, "mapWidth", p.MD, p.dF);
  25683. c.i(p, "mapHeight", p.LD, p.cF);
  25684. c.i(p, "tileWidth", p.lt, p.Ot);
  25685. c.i(p, "tileHeight", p.kt, p.Nt);
  25686. c.us.create = function(a, b) {
  25687. return new c.us(a, b)
  25688. };
  25689. c.X.Tk(["tmx", "tsx"], c.$N);
  25690. c.Qm.SI = 1;
  25691. c.Qm.H9 = 2;
  25692. c.Qm.I9 = 4;
  25693. c.Qm.J9 = 8;
  25694. c.IW = c.qa.extend({
  25695. Wb: null,
  25696. Ku: "",
  25697. Mp: null,
  25698. Lp: null,
  25699. ctor: function() {
  25700. this.Ku = "";
  25701. this.Mp = c.d(0, 0);
  25702. this.Wb = [];
  25703. this.Lp = []
  25704. },
  25705. Iga: function() {
  25706. return this.Mp
  25707. },
  25708. S7: function(a) {
  25709. this.Mp.x = a.x;
  25710. this.Mp.y = a.y
  25711. },
  25712. fz: function() {
  25713. return this.Wb
  25714. },
  25715. CA: function(a) {
  25716. this.Wb.push(a)
  25717. },
  25718. Vfa: function() {
  25719. return this.Ku.toString()
  25720. },
  25721. una: function(a) {
  25722. this.Ku = a
  25723. },
  25724. Ila: function(a) {
  25725. return this.Wb[a]
  25726. },
  25727. Wka: function(a) {
  25728. if (this.Lp && 0 < this.Lp.length) for (var b = this.Lp, d = 0, e = b.length; d < e; d++) {
  25729. var f = b[d].name;
  25730. if (f && f == a) return b[d]
  25731. }
  25732. return null
  25733. },
  25734. tga: function() {
  25735. return this.Lp
  25736. },
  25737. N7: function(a) {
  25738. this.Lp.push(a)
  25739. }
  25740. });
  25741. c.ts = c.ng.extend({
  25742. he: null,
  25743. ah: null,
  25744. Nq: null,
  25745. Wb: null,
  25746. Oz: "",
  25747. ua: null,
  25748. Lc: null,
  25749. qe: 255,
  25750. hn: null,
  25751. gn: null,
  25752. UF: null,
  25753. OF: null,
  25754. zba: null,
  25755. hi: null,
  25756. le: null,
  25757. Uh: null,
  25758. Be: null,
  25759. gf: null,
  25760. aD: null,
  25761. ty: null,
  25762. uy: null,
  25763. $l: 0,
  25764. AF: 0,
  25765. XM: 1E7,
  25766. ob: "TMXLayer",
  25767. ctor: function(a, b, d) {
  25768. c.ng.prototype.ctor.call(this);
  25769. this.Wd = [];
  25770. this.ua = c.size(0, 0);
  25771. this.Lc = c.size(0, 0);
  25772. if (c.F === c.Ha) {
  25773. var e = c.eb,
  25774. f = c.ac("canvas");
  25775. f.width = e.width;
  25776. f.height = e.height;
  25777. this.Be = f;
  25778. this.gf = this.Be.getContext("2d");
  25779. var g = new c.ia;
  25780. g.Ld(f);
  25781. g.$b();
  25782. this.aD = g;
  25783. this.width = e.width;
  25784. this.height = e.height;
  25785. this.bk = this
  25786. }
  25787. void 0 !== d && this.D4(a, b, d)
  25788. },
  25789. ye: function(a, b) {
  25790. var d = this.S;
  25791. c.t.prototype.ye.call(this, a, b);
  25792. if (c.F === c.Ha) {
  25793. var e = this.Be,
  25794. f = c.wb();
  25795. e.width = 0 | 1.5 * d.width * f;
  25796. e.height = 0 | 1.5 * d.height * f;
  25797. this.gf.translate(0, e.height);
  25798. d = this.aD.S;
  25799. d.width = e.width;
  25800. d.height = e.height;
  25801. d = e.width * e.height;
  25802. if (d > this.XM) {
  25803. this.ty || (this.ty = []);
  25804. this.uy || (this.uy = []);
  25805. this.$l = Math.ceil(d / this.XM);
  25806. d = this.ty;
  25807. for (f = 0; f < this.$l; f++) {
  25808. d[f] || (d[f] = document.createElement("canvas"), this.uy[f] = d[f].getContext("2d"));
  25809. var g = d[f];
  25810. g.width = this.AF = Math.round(e.width / this.$l);
  25811. g.height = e.height
  25812. }
  25813. for (f = this.$l; f < d.length; f++) g.width = 0, g.height = 0
  25814. } else this.$l = 0
  25815. }
  25816. },
  25817. Ua: null,
  25818. jt: function() {
  25819. return this.aD
  25820. },
  25821. U: null,
  25822. Cn: function(a) {
  25823. var b = a || c.m;
  25824. if (this.Ja) {
  25825. b.save();
  25826. this.transform(a);
  25827. var d, e = this.u;
  25828. if (this.nh) {
  25829. var f = c.view;
  25830. f.IN();
  25831. var g = this.gf,
  25832. h = this.Be;
  25833. g.clearRect(0, 0, h.width, -h.height);
  25834. g.save();
  25835. g.translate(this.lb.x, -this.lb.y);
  25836. if (e) for (this.jd(), d = 0; d < e.length; d++) e[d] && e[d].U(g);
  25837. g.restore();
  25838. if (0 < this.$l) for (e = this.AF, g = h.height, d = 0; d < this.$l; d++) this.uy[d].drawImage(h, d * e, 0, e, g, 0, 0, e, g);
  25839. f.vN();
  25840. this.nh = !1
  25841. }
  25842. this.Y(a);
  25843. b.restore()
  25844. }
  25845. },
  25846. Y: null,
  25847. Zm: function(a) {
  25848. a = a || c.m;
  25849. var b = 0 | -this.lb.x,
  25850. d = 0 | -this.lb.y,
  25851. e = c.view,
  25852. f = this.Be;
  25853. if (f) {
  25854. var g = this.$l,
  25855. h = f.height * e.Na;
  25856. if (0 < g) for (var f = this.ty, k = 0; k < g; k++) {
  25857. var m = f[k];
  25858. a.drawImage(f[k], 0, 0, m.width, m.height, b + k * this.AF, -(d + h), m.width * e.ma, h)
  25859. } else a.drawImage(f, 0, 0, f.width, f.height, b, -(d + h), f.width * e.ma, h)
  25860. }
  25861. },
  25862. dga: function() {
  25863. return c.size(this.ua.width, this.ua.height)
  25864. },
  25865. Bna: function(a) {
  25866. this.ua.width = a.width;
  25867. this.ua.height = a.height
  25868. },
  25869. fZ: function() {
  25870. return this.ua.width
  25871. },
  25872. $_: function(a) {
  25873. this.ua.width = a
  25874. },
  25875. eZ: function() {
  25876. return this.ua.height
  25877. },
  25878. Z_: function(a) {
  25879. this.ua.height = a
  25880. },
  25881. kga: function() {
  25882. return c.size(this.Lc.width, this.Lc.height)
  25883. },
  25884. Gna: function(a) {
  25885. this.Lc.width = a.width;
  25886. this.Lc.height = a.height
  25887. },
  25888. lt: function() {
  25889. return this.Lc.width
  25890. },
  25891. Ot: function(a) {
  25892. this.Lc.width = a
  25893. },
  25894. kt: function() {
  25895. return this.Lc.height
  25896. },
  25897. Nt: function(a) {
  25898. this.Lc.height = a
  25899. },
  25900. oha: function() {
  25901. return this.he
  25902. },
  25903. uoa: function(a) {
  25904. this.he = a
  25905. },
  25906. pha: function() {
  25907. return this.ah
  25908. },
  25909. voa: function(a) {
  25910. this.ah = a
  25911. },
  25912. cga: function() {
  25913. return this.Nq
  25914. },
  25915. Ana: function(a) {
  25916. this.Nq = a
  25917. },
  25918. fz: function() {
  25919. return this.Wb
  25920. },
  25921. CA: function(a) {
  25922. this.Wb = a
  25923. },
  25924. D4: function(a, b, d) {
  25925. var e = b.ua,
  25926. f = 0.35 * parseInt(e.width * e.height) + 1,
  25927. g;
  25928. a && (g = c.Ka.Qc(a.lS));
  25929. return this.pa(g, f) ? (this.Oz = b.name, this.ua = e, this.he = b.qf, this.hn = b.hn, this.gn = b.gn, this.qe = b.qe, this.Wb = b.Wb, this.Uh = c.L.Uh, this.ah = a, this.Lc = d.Eq(), this.Nq = d.orientation, a = this.bY(b.offset), this.J(c.WH(a)), this.le = [], this.ye(c.jS(c.size(this.ua.width * this.Lc.width, this.ua.height * this.Lc.height))), this.OF = !1, this.UF = 0, !0) : !1
  25930. },
  25931. Zla: function() {
  25932. this.he && (this.he = null);
  25933. this.le && (this.le = null)
  25934. },
  25935. mha: function(a, b) {
  25936. if (!a) throw "cc.TMXLayer.getTileAt(): pos should be non-null";
  25937. void 0 !== b && (a = c.d(a, b));
  25938. if (a.x >= this.ua.width || a.y >= this.ua.height || 0 > a.x || 0 > a.y) throw "cc.TMXLayer.getTileAt(): invalid position";
  25939. if (!this.he || !this.le) return c.log("cc.TMXLayer.getTileAt(): TMXLayer: the tiles map has been released"), null;
  25940. var d = null,
  25941. e = this.cH(a);
  25942. if (0 === e) return d;
  25943. var f = 0 | a.x + a.y * this.ua.width,
  25944. d = this.cg(f);
  25945. d || (e = this.ah.pv(e), e = c.Sk(e), d = new c.P, d.pa(this.texture, e), d.batchNode = this, d.J(this.ez(a)), d.vertexZ = this.iO(a), d.anchorX = 0, d.anchorY = 0, d.opacity = this.qe, e = this.QC(f), this.g1(d, e, f));
  25946. return d
  25947. },
  25948. cH: function(a, b) {
  25949. if (!a) throw "cc.TMXLayer.getTileGIDAt(): pos should be non-null";
  25950. void 0 !== b && (a = c.d(a, b));
  25951. if (a.x >= this.ua.width || a.y >= this.ua.height || 0 > a.x || 0 > a.y) throw "cc.TMXLayer.getTileGIDAt(): invalid position";
  25952. return this.he && this.le ? (this.he[0 | a.x + a.y * this.ua.width] & c.dC) >>> 0 : (c.log("cc.TMXLayer.getTileGIDAt(): TMXLayer: the tiles map has been released"), null)
  25953. },
  25954. b4: function(a, b) {
  25955. if (!a) throw "cc.TMXLayer.getTileFlagsAt(): pos should be non-null";
  25956. void 0 !== b && (a = c.d(a, b));
  25957. if (a.x >= this.ua.width || a.y >= this.ua.height || 0 > a.x || 0 > a.y) throw "cc.TMXLayer.getTileFlagsAt(): invalid position";
  25958. return this.he && this.le ? (this.he[0 | a.x + a.y * this.ua.width] & c.jK) >>> 0 : (c.log("cc.TMXLayer.getTileFlagsAt(): TMXLayer: the tiles map has been released"), null)
  25959. },
  25960. soa: function(a, b, d, e) {
  25961. if (!b) throw "cc.TMXLayer.setTileGID(): pos should be non-null";
  25962. void 0 !== e ? b = c.d(b, d) : e = d;
  25963. if (b.x >= this.ua.width || b.y >= this.ua.height || 0 > b.x || 0 > b.y) throw "cc.TMXLayer.setTileGID(): invalid position";
  25964. if (this.he && this.le) if (0 !== a && a < this.ah.Wn) c.log("cc.TMXLayer.setTileGID(): invalid gid:" + a);
  25965. else {
  25966. e = e || 0;
  25967. this.ji();
  25968. d = this.b4(b);
  25969. var f = this.cH(b);
  25970. if (f != a || d != e) if (d = (a | e) >>> 0, 0 === a) this.R6(b);
  25971. else if (0 === f) this.OZ(d, b);
  25972. else {
  25973. var f = b.x + b.y * this.ua.width,
  25974. g = this.cg(f);
  25975. g ? (a = this.ah.pv(a), a = c.Sk(a), g.Hb(a, !1), null != e && this.my(g, b, d), this.he[f] = d) : this.V0(d, b)
  25976. }
  25977. } else c.log("cc.TMXLayer.setTileGID(): TMXLayer: the tiles map has been released")
  25978. },
  25979. R6: function(a, b) {
  25980. if (!a) throw "cc.TMXLayer.removeTileAt(): pos should be non-null";
  25981. void 0 !== b && (a = c.d(a, b));
  25982. if (a.x >= this.ua.width || a.y >= this.ua.height || 0 > a.x || 0 > a.y) throw "cc.TMXLayer.removeTileAt(): invalid position";
  25983. if (!this.he || !this.le) c.log("cc.TMXLayer.removeTileAt(): TMXLayer: the tiles map has been released");
  25984. else if (0 !== this.cH(a)) {
  25985. c.F === c.Ha && this.ji();
  25986. var d = 0 | a.x + a.y * this.ua.width,
  25987. e = this.QC(d);
  25988. this.he[d] = 0;
  25989. this.le.splice(e, 1);
  25990. if (d = this.cg(d)) c.ng.prototype.removeChild.call(this, d, !0);
  25991. else if (c.F === c.ea && this.textureAtlas.sR(e), this.u) for (var d = this.u, f = 0, g = d.length; f < g; f++) {
  25992. var h = d[f];
  25993. if (h) {
  25994. var k = h.atlasIndex;
  25995. k >= e && (h.atlasIndex = k - 1)
  25996. }
  25997. }
  25998. }
  25999. },
  26000. ez: function(a, b) {
  26001. void 0 !== b && (a = c.d(a, b));
  26002. var d = c.d(0, 0);
  26003. switch (this.Nq) {
  26004. case c.Bw:
  26005. d = this.z_(a);
  26006. break;
  26007. case c.Aw:
  26008. d = this.y_(a);
  26009. break;
  26010. case c.zw:
  26011. d = this.x_(a)
  26012. }
  26013. return c.WH(d)
  26014. },
  26015. YG: function(a) {
  26016. return this.Wb[a]
  26017. },
  26018. r8: function() {
  26019. c.F === c.Ha ? this.ah.rz = this.Je.S : (this.ah.rz = this.textureAtlas.texture.S, this.textureAtlas.texture.hI());
  26020. this.s_();
  26021. c.F === c.Ha && this.ji();
  26022. for (var a = this.ua.height, b = this.ua.width, d = 0; d < a; d++) for (var e = 0; e < b; e++) {
  26023. var f = this.he[e + b * d];
  26024. 0 !== f && (this.VX(f, c.d(e, d)), this.hn = Math.min(f, this.hn), this.gn = Math.max(f, this.gn))
  26025. }
  26026. this.gn >= this.ah.Wn && this.hn >= this.ah.Wn || c.log("cocos2d:TMX: Only 1 tileset per layer is supported")
  26027. },
  26028. M: function() {
  26029. c.log("addChild: is not supported on cc.TMXLayer. Instead use setTileGID or tileAt.")
  26030. },
  26031. removeChild: function(a, b) {
  26032. if (a) if (-1 === this.u.indexOf(a)) c.log("cc.TMXLayer.removeChild(): Tile does not belong to TMXLayer");
  26033. else {
  26034. c.F === c.Ha && this.ji();
  26035. var d = a.atlasIndex;
  26036. this.he[this.le[d]] = 0;
  26037. this.le.splice(d, 1);
  26038. c.ng.prototype.removeChild.call(this, a, b)
  26039. }
  26040. },
  26041. bga: function() {
  26042. return this.Oz
  26043. },
  26044. zna: function(a) {
  26045. this.Oz = a
  26046. },
  26047. y_: function(a) {
  26048. return c.d(this.Lc.width / 2 * (this.ua.width + a.x - a.y - 1), this.Lc.height / 2 * (2 * this.ua.height - a.x - a.y - 2))
  26049. },
  26050. z_: function(a) {
  26051. return c.d(a.x * this.Lc.width, (this.ua.height - a.y - 1) * this.Lc.height)
  26052. },
  26053. x_: function(a) {
  26054. return c.d(a.x * this.Lc.width * 3 / 4, (this.ua.height - a.y - 1) * this.Lc.height + (1 == a.x % 2 ? -this.Lc.height / 2 : 0))
  26055. },
  26056. bY: function(a) {
  26057. var b = c.d(0, 0);
  26058. switch (this.Nq) {
  26059. case c.Bw:
  26060. b = c.d(a.x * this.Lc.width, -a.y * this.Lc.height);
  26061. break;
  26062. case c.Aw:
  26063. b = c.d(this.Lc.width / 2 * (a.x - a.y), this.Lc.height / 2 * (-a.x - a.y));
  26064. break;
  26065. case c.zw:
  26066. 0 === a.x && 0 === a.y || c.log("offset for hexagonal map not implemented yet")
  26067. }
  26068. return b
  26069. },
  26070. VX: function(a, b) {
  26071. var d = this.ah.pv(a),
  26072. d = c.Sk(d),
  26073. e = 0 | b.x + b.y * this.ua.width,
  26074. d = this.SE(d);
  26075. this.my(d, b, a);
  26076. var f = this.le.length;
  26077. this.yz(d, f);
  26078. this.le.splice(f, 0, e);
  26079. return d
  26080. },
  26081. OZ: function(a, b) {
  26082. var d = this.ah.pv(a),
  26083. d = c.Sk(d),
  26084. e = 0 | b.x + b.y * this.ua.width,
  26085. d = this.SE(d);
  26086. this.my(d, b, a);
  26087. var f = this.XX(e);
  26088. this.yz(d, f);
  26089. this.le.splice(f, 0, e);
  26090. if (this.u) for (var g = this.u, h = 0, k = g.length; h < k; h++) {
  26091. var m = g[h];
  26092. if (m) {
  26093. var n = m.atlasIndex;
  26094. n >= f && (m.atlasIndex = n + 1)
  26095. }
  26096. }
  26097. this.he[e] = a;
  26098. return d
  26099. },
  26100. V0: function(a, b) {
  26101. var d = this.ah.pv(a),
  26102. e = this.Uh,
  26103. d = c.rect(d.x / e, d.y / e, d.width / e, d.height / e),
  26104. e = b.x + b.y * this.ua.width,
  26105. d = this.SE(d);
  26106. this.my(d, b, a);
  26107. d.atlasIndex = this.QC(e);
  26108. d.dirty = !0;
  26109. d.Ff();
  26110. this.he[e] = a;
  26111. return d
  26112. },
  26113. s_: function() {
  26114. var a = this.YG("cc_vertexz");
  26115. if (a) if ("automatic" == a) {
  26116. this.OF = !0;
  26117. var b = this.YG("cc_alpha_func"),
  26118. a = 0;
  26119. b && (a = parseFloat(b));
  26120. c.F === c.ea && (this.shaderProgram = c.ge.Dc(c.yw), b = c.m.getUniformLocation(this.shaderProgram.$n(), c.SK), this.shaderProgram.$c(), this.shaderProgram.xv(b, a))
  26121. } else this.UF = parseInt(a, 10)
  26122. },
  26123. my: function(a, b, d) {
  26124. var e = b.x + b.y * this.ua.width;
  26125. a.J(this.ez(b));
  26126. c.F === c.ea ? a.vertexZ = this.iO(b) : a.tag = e;
  26127. a.anchorX = 0;
  26128. a.anchorY = 0;
  26129. a.opacity = this.qe;
  26130. c.F === c.ea && (a.rotation = 0);
  26131. a.wA(!1);
  26132. a.mI(!1);
  26133. (d & c.iK) >>> 0 ? (a.anchorX = 0.5, a.anchorY = 0.5, a.x = this.ez(b).x + a.width / 2, a.y = this.ez(b).y + a.height / 2, b = (d & (c.vs | c.ws) >>> 0) >>> 0, b == c.vs ? a.rotation = 90 : b == c.ws ? a.rotation = 270 : (a.rotation = b == (c.ws | c.vs) >>> 0 ? 90 : 270, a.wA(!0))) : ((d & c.vs) >>> 0 && a.wA(!0), (d & c.ws) >>> 0 && a.mI(!0))
  26134. },
  26135. SE: function(a) {
  26136. c.F === c.ea ? (this.hi ? (this.hi.batchNode = null, this.hi.Hb(a, !1)) : (this.hi = new c.P, this.hi.pa(this.texture, a, !1)), this.hi.batchNode = this) : (this.hi = new c.P, this.hi.pa(this.bm, a, !1), this.hi.batchNode = this, this.hi.parent = this);
  26137. return this.hi
  26138. },
  26139. iO: function(a) {
  26140. var b = 0,
  26141. d = 0;
  26142. if (this.OF) switch (this.Nq) {
  26143. case c.Aw:
  26144. d = this.ua.width + this.ua.height;
  26145. b = -(d - (a.x + a.y));
  26146. break;
  26147. case c.Bw:
  26148. b = -(this.ua.height - a.y);
  26149. break;
  26150. case c.zw:
  26151. c.log("TMX Hexa zOrder not supported");
  26152. break;
  26153. default:
  26154. c.log("TMX invalid value")
  26155. } else b = this.UF;
  26156. return b
  26157. },
  26158. QC: function(a) {
  26159. var b;
  26160. if (this.le) for (var d = this.le, e = 0, f = d.length; e < f && (b = d[e], b != a); e++);
  26161. "number" != typeof b && c.log("cc.TMXLayer._atlasIndexForExistantZ(): TMX atlas index not found. Shall not happen");
  26162. return e
  26163. },
  26164. XX: function(a) {
  26165. for (var b = this.le, d = 0, e = b.length; d < e && !(a < b[d]); d++);
  26166. return d
  26167. }
  26168. });
  26169. p = c.ts.prototype;
  26170. c.F == c.ea ? (p.Y = c.ng.prototype.Y, p.U = c.ng.prototype.U, p.Ua = c.ng.prototype.Ua) : (p.Y = p.Zm, p.U = p.Cn, p.Ua = p.jt);
  26171. c.i(p, "texture", p.Ua, p.zb);
  26172. c.i(p, "layerWidth", p.fZ, p.$_);
  26173. c.i(p, "layerHeight", p.eZ, p.Z_);
  26174. c.i(p, "tileWidth", p.lt, p.Ot);
  26175. c.i(p, "tileHeight", p.kt, p.Nt);
  26176. c.ts.create = function(a, b, d) {
  26177. return new c.ts(a, b, d)
  26178. };
  26179. c.FB = c.qa.extend({
  26180. Jt: null,
  26181. oa: null,
  26182. Qs: null,
  26183. Pga: function() {
  26184. return this.Jt
  26185. },
  26186. U7: function(a) {
  26187. this.Jt = a
  26188. },
  26189. zP: function() {
  26190. return this.oa
  26191. },
  26192. BA: function(a) {
  26193. this.oa = a
  26194. },
  26195. lfa: function() {
  26196. return this.Qs
  26197. },
  26198. o7: function(a) {
  26199. this.Qs = a
  26200. },
  26201. u4: function(a, b) {
  26202. this.Jt = a;
  26203. this.oa = b;
  26204. this.Qs = null;
  26205. return !0
  26206. }
  26207. });
  26208. c.FB.create = function(a, b) {
  26209. var d = new c.FB;
  26210. d.u4(a, b);
  26211. return d
  26212. };
  26213. c.IJ = c.la.extend({
  26214. ko: null,
  26215. bE: null,
  26216. ob: "ParallaxNode",
  26217. Cga: function() {
  26218. return this.ko
  26219. },
  26220. Tna: function(a) {
  26221. this.ko = a
  26222. },
  26223. ctor: function() {
  26224. c.la.prototype.ctor.call(this);
  26225. this.ko = [];
  26226. this.bE = c.d(-100, -100)
  26227. },
  26228. M: function(a, b, d, e) {
  26229. if (3 === arguments.length) c.log("ParallaxNode: use addChild(child, z, ratio, offset) instead");
  26230. else {
  26231. if (!a) throw "cc.ParallaxNode.addChild(): child should be non-null";
  26232. var f = c.FB.create(d, e);
  26233. f.o7(a);
  26234. this.ko.push(f);
  26235. a.J(this.va.x * d.x + e.x, this.va.y * d.y + e.y);
  26236. c.la.prototype.M.call(this, a, b, a.tag)
  26237. }
  26238. },
  26239. removeChild: function(a, b) {
  26240. for (var d = this.ko, e = 0; e < d.length; e++) if (d[e].Qs == a) {
  26241. d.splice(e, 1);
  26242. break
  26243. }
  26244. c.la.prototype.removeChild.call(this, a, b)
  26245. },
  26246. Sg: function(a) {
  26247. this.ko.length = 0;
  26248. c.la.prototype.Sg.call(this, a)
  26249. },
  26250. U: function() {
  26251. var a = this.NX();
  26252. if (!c.VH(a, this.bE)) {
  26253. for (var b = this.ko, d = 0, e = b.length; d < e; d++) {
  26254. var f = b[d];
  26255. f.Qs.J(-a.x + a.x * f.Jt.x + f.oa.x, -a.y + a.y * f.Jt.y + f.oa.y)
  26256. }
  26257. this.bE = a
  26258. }
  26259. c.la.prototype.U.call(this)
  26260. },
  26261. NX: function() {
  26262. for (var a = this.va, b = this; null != b.parent;) b = b.parent, a = c.Ij(a, b.we());
  26263. return a
  26264. }
  26265. });
  26266. c.IJ.create = function() {
  26267. return new c.IJ
  26268. };
  26269. if (c.Yb.vy) {
  26270. var Na = c.Npa = new(window.AudioContext || window.webkitAudioContext || window.mozAudioContext);
  26271. c.BC = c.qa.extend({
  26272. qp: null,
  26273. kb: null,
  26274. un: null,
  26275. $F: null,
  26276. src: null,
  26277. fA: null,
  26278. autoplay: null,
  26279. controls: null,
  26280. wka: null,
  26281. currentTime: 0,
  26282. startTime: 0,
  26283. duration: 0,
  26284. dE: null,
  26285. ZF: 1,
  26286. Zx: 0,
  26287. Ac: !1,
  26288. Wt: !0,
  26289. sh: -1,
  26290. ctor: function(a) {
  26291. this.qp = {};
  26292. this.src = a;
  26293. this.$F = Na.createGain ? Na.createGain() : Na.createGainNode();
  26294. this.i_ = this.h_.bind(this);
  26295. this.f_ = this.e_.bind(this)
  26296. },
  26297. tE: function(a) {
  26298. var b = this.un = Na.createBufferSource(),
  26299. d = this.$F;
  26300. a = a || 0;
  26301. b.buffer = this.kb;
  26302. d.gain.value = this.ZF;
  26303. b.connect(d);
  26304. d.connect(Na.destination);
  26305. b.loop = this.dE;
  26306. this.Wt = this.Ac = !1;
  26307. b.start ? b.start(0, a) : b.noteGrainOn ? (d = b.buffer.duration, this.loop ? b.noteGrainOn(0, a, d) : b.noteGrainOn(0, a, d - a)) : b.noteOn(0);
  26308. this.Zx = 0
  26309. },
  26310. VN: function() {
  26311. var a = this.un;
  26312. this.Wt || (a.stop ? a.stop(0) : a.Ika(0), this.Wt = !0)
  26313. },
  26314. play: function() {
  26315. if (-1 == this.sh) this.sh = 0;
  26316. else if (1 == this.sh) {
  26317. var a = this.un;
  26318. if (this.Wt || !a || 2 != a.playbackState) this.startTime = Na.currentTime, this.tE(0)
  26319. }
  26320. },
  26321. pause: function() {
  26322. this.Zx = Na.currentTime;
  26323. this.Ac = !0;
  26324. this.VN()
  26325. },
  26326. br: function() {
  26327. this.Ac && this.tE(this.kb ? (this.Zx - this.startTime) % this.kb.duration : 0)
  26328. },
  26329. stop: function() {
  26330. this.Zx = 0;
  26331. this.Ac = !1;
  26332. this.VN()
  26333. },
  26334. load: function() {
  26335. var a = this;
  26336. if (1 != a.sh) {
  26337. a.sh = -1;
  26338. a.played = !1;
  26339. a.ended = !0;
  26340. var b = new XMLHttpRequest;
  26341. b.open("GET", a.src, !0);
  26342. b.responseType = "arraybuffer";
  26343. b.onload = function() {
  26344. Na.decodeAudioData(b.response, a.i_, a.f_)
  26345. };
  26346. b.send()
  26347. }
  26348. },
  26349. addEventListener: function(a, b) {
  26350. this.qp[a] = b.bind(this)
  26351. },
  26352. removeEventListener: function(a) {
  26353. delete this.qp[a]
  26354. },
  26355. Xca: function() {
  26356. return c.Yb.vy
  26357. },
  26358. h_: function(a) {
  26359. this.kb = a;
  26360. a = this.qp.success;
  26361. var b = this.qp.canplaythrough;
  26362. a && a();
  26363. b && b();
  26364. 0 != this.sh && "autoplay" != this.autoplay && !0 != this.autoplay || this.tE();
  26365. this.sh = 1
  26366. },
  26367. e_: function() {
  26368. var a = this.qp.error;
  26369. a && a();
  26370. this.sh = -2
  26371. },
  26372. cloneNode: function() {
  26373. var a = new c.BC(this.src);
  26374. a.volume = this.volume;
  26375. a.sh = this.sh;
  26376. a.kb = this.kb;
  26377. 0 != a.sh && -1 != a.sh || a.load();
  26378. return a
  26379. }
  26380. });
  26381. p = c.BC.prototype;
  26382. c.i(p, "loop", function() {
  26383. return this.dE
  26384. }, function(a) {
  26385. this.dE = a;
  26386. this.un && (this.un.loop = a)
  26387. });
  26388. c.i(p, "volume", function() {
  26389. return this.ZF
  26390. }, function(a) {
  26391. this.ZF = a;
  26392. this.$F.gain.value = a
  26393. });
  26394. c.i(p, "paused", function() {
  26395. return this.Ac
  26396. });
  26397. c.i(p, "ended", function() {
  26398. var a = this.un;
  26399. return !this.Ac && (this.Wt || !a || 3 == a.playbackState)
  26400. });
  26401. c.i(p, "played", function() {
  26402. var a = this.un;
  26403. return a && 2 == a.playbackState
  26404. })
  26405. }
  26406. c.XI = c.qa.extend({
  26407. pF: !1,
  26408. ne: null,
  26409. gx: null,
  26410. Of: 0,
  26411. jL: 0,
  26412. Ge: {},
  26413. Os: {},
  26414. px: 1,
  26415. fE: 5,
  26416. Bl: null,
  26417. Ft: [],
  26418. ctor: function() {
  26419. this.pF = 0 < c.RC.wy.length;
  26420. this.Bl && (this.Bl = this.Bl.bind(this))
  26421. },
  26422. Ppa: function() {
  26423. return !1
  26424. },
  26425. Dfa: function() {
  26426. return this.px
  26427. },
  26428. Cla: function(a, b) {
  26429. if (this.pF) {
  26430. var d = this.ne;
  26431. d && this.Zl(d);
  26432. a != this.gx && (this.ne = d = this.DD(a), this.gx = a);
  26433. d && (d.loop = b || !1, this.uE(d))
  26434. }
  26435. },
  26436. DD: function(a) {
  26437. var b = c.X,
  26438. d = b.be(a);
  26439. d || (b.load(a), d = b.be(a));
  26440. return d
  26441. },
  26442. uE: function(a) {
  26443. a.ended || (a.stop ? a.stop() : (a.pause(), a.currentTime = 0));
  26444. this.Of = 2;
  26445. a.play()
  26446. },
  26447. I8: function(a) {
  26448. if (0 < this.Of) {
  26449. var b = this.ne;
  26450. b && this.Zl(b) && (a && c.X.Lj(this.gx), this.gx = this.ne = null, this.Of = 0)
  26451. }
  26452. },
  26453. Zl: function(a) {
  26454. return a && !a.ended ? (a.stop ? a.stop() : a.duration && Infinity != a.duration ? a.currentTime = a.duration : a.pause(), !0) : !1
  26455. },
  26456. hR: function() {
  26457. 2 == this.Of && (this.ne.pause(), this.Of = 1)
  26458. },
  26459. a7: function() {
  26460. 1 == this.Of && (this.rk(this.ne), this.Of = 2)
  26461. },
  26462. rk: function(a) {
  26463. a && !a.ended && (a.br ? a.br() : a.play())
  26464. },
  26465. xma: function() {
  26466. this.ne && this.uE(this.ne)
  26467. },
  26468. pga: function() {
  26469. return 0 == this.Of ? 0 : this.ne.volume
  26470. },
  26471. Hna: function(a) {
  26472. 0 < this.Of && (this.ne.volume = Math.min(Math.max(a, 0), 1))
  26473. },
  26474. xH: function() {
  26475. return 2 == this.Of && this.ne && !this.ne.ended
  26476. },
  26477. GD: function(a) {
  26478. var b = this.Os[a];
  26479. b || (b = this.Os[a] = []);
  26480. return b
  26481. },
  26482. uM: function(a) {
  26483. var b;
  26484. if (!this.pF) return null;
  26485. for (var d = this.GD(a), e = 0, f = d.length; e < f; e++) {
  26486. var g = d[e];
  26487. if (g.ended) {
  26488. b = g;
  26489. b.currentTime = 0;
  26490. window.chrome && b.load();
  26491. break
  26492. }
  26493. }
  26494. if (!b) {
  26495. if (d.length >= this.fE) return c.log("Error: " + a + " greater than " + this.fE), null;
  26496. b = this.DD(a);
  26497. if (!b) return null;
  26498. b = b.cloneNode(!0);
  26499. this.Bl && c.Ra(b, "pause", this.Bl);
  26500. b.volume = this.px;
  26501. d.push(b)
  26502. }
  26503. return b
  26504. },
  26505. m6: function(a, b) {
  26506. var d = this.uM(a);
  26507. if (!d) return null;
  26508. d.loop = b || !1;
  26509. d.play();
  26510. var e = this.jL++;
  26511. this.Ge[e] = d;
  26512. return e
  26513. },
  26514. jna: function(a) {
  26515. a = this.px = Math.min(Math.max(a, 0), 1);
  26516. var b = this.Ge,
  26517. d;
  26518. for (d in b) b[d].volume = a
  26519. },
  26520. j6: function(a) {
  26521. (a = this.Ge[a]) && !a.ended && a.pause()
  26522. },
  26523. h6: function() {
  26524. var a = this.Ge,
  26525. b;
  26526. for (b in a) {
  26527. var d = a[b];
  26528. d.ended || d.pause()
  26529. }
  26530. },
  26531. Z6: function(a) {
  26532. this.rk(this.Ge[a])
  26533. },
  26534. Y6: function() {
  26535. var a = this.Ge,
  26536. b;
  26537. for (b in a) this.rk(a[b])
  26538. },
  26539. H8: function(a) {
  26540. this.Zl(this.Ge[a]);
  26541. delete this.Ge[a]
  26542. },
  26543. qS: function() {
  26544. var a = this.Ge,
  26545. b;
  26546. for (b in a) this.Zl(a[b]), delete a[b]
  26547. },
  26548. b9: function(a) {
  26549. var b = c.X,
  26550. d = this.Ge,
  26551. e = this.GD(a);
  26552. b.Lj(a);
  26553. if (0 != e.length) {
  26554. b = e[0].src;
  26555. delete this.Os[a];
  26556. for (var f in d) d[f].src == b && (this.Zl(d[f]), delete d[f])
  26557. }
  26558. },
  26559. end: function() {
  26560. this.I8();
  26561. this.qS()
  26562. },
  26563. eN: function() {
  26564. var a = this.Ge,
  26565. b, d;
  26566. for (d in a)!(b = a[d]) || b.ended || b.paused || (this.Ft.push(b), b.pause());
  26567. this.xH() && (this.Ft.push(this.ne), this.ne.pause())
  26568. },
  26569. wN: function() {
  26570. for (var a = this.Ft, b = 0, d = a.length; b < d; b++) this.rk(a[b]);
  26571. a.length = 0
  26572. }
  26573. });
  26574. !c.Yb.vy && 0 > c.Yb.G0 && (c.YI = c.XI.extend({
  26575. fm: [],
  26576. Et: [],
  26577. sg: null,
  26578. fE: 2,
  26579. ox: {},
  26580. kn: !1,
  26581. rp: 0,
  26582. YD: !1,
  26583. uE: function(a) {
  26584. this.xF();
  26585. this._super(a)
  26586. },
  26587. a7: function() {
  26588. 1 == this.Of && (this.xF(), this.kn = !1, this.rp = 0, this._super())
  26589. },
  26590. m6: function(a, b) {
  26591. var d = this.sg,
  26592. e = b ? this.uM(a) : this.tZ(a);
  26593. if (!e) return null;
  26594. e.loop = b || !1;
  26595. var f = this.jL++;
  26596. this.Ge[f] = e;
  26597. this.xH() && (this.hR(), this.kn = !0);
  26598. d ? (d != e && this.fm.push(this.jp), this.fm.push(f), d.pause()) : (this.sg = e, this.jp = f, e.play());
  26599. return f
  26600. },
  26601. j6: function() {
  26602. c.log("pauseEffect not supported in single audio mode!")
  26603. },
  26604. h6: function() {
  26605. var a = this.fm,
  26606. b = this.Et,
  26607. d = this.sg;
  26608. if (d) {
  26609. for (var e = 0, f = a.length; e < f; e++) b.push(a[e]);
  26610. a.length = 0;
  26611. b.push(this.jp);
  26612. d.pause()
  26613. }
  26614. },
  26615. Z6: function() {
  26616. c.log("resumeEffect not supported in single audio mode!")
  26617. },
  26618. Y6: function() {
  26619. var a = this.fm,
  26620. b = this.Et;
  26621. this.xH() && (this.hR(), this.kn = !0);
  26622. for (var d = 0, e = b.length; d < e; d++) a.push(b[d]);
  26623. b.length = 0;
  26624. !this.sg && 0 <= a.length && (a = a.pop(), b = this.Ge[a]) && (this.jp = a, this.sg = b, this.rk(b))
  26625. },
  26626. H8: function(a) {
  26627. var b = this.sg,
  26628. d = this.fm,
  26629. e = this.Et;
  26630. b && this.jp == a ? this.Zl(b) : (b = d.indexOf(a), 0 <= b ? d.splice(b, 1) : (b = e.indexOf(a), 0 <= b && e.splice(b, 1)))
  26631. },
  26632. qS: function() {
  26633. this.xF();
  26634. !this.sg && this.kn && (this.rk(this.ne), this.Of = 2, this.kn = !1, this.rp = 0)
  26635. },
  26636. b9: function(a) {
  26637. var b = c.X,
  26638. d = this.Ge,
  26639. e = this.ox,
  26640. f = this.GD(a),
  26641. g = this.sg;
  26642. b.Lj(a);
  26643. if (0 != f.length || e[a]) {
  26644. b = 0 < f.length ? f[0].src : e[a].src;
  26645. delete this.Os[a];
  26646. delete e[a];
  26647. for (var h in d) d[h].src == b && delete d[h];
  26648. g && g.src == b && this.Zl(g)
  26649. }
  26650. },
  26651. tZ: function(a) {
  26652. var b = this.ox[a],
  26653. d = this.fm,
  26654. e = this.Et,
  26655. f = this.Ge;
  26656. if (b) b.currentTime = 0;
  26657. else {
  26658. b = this.DD(a);
  26659. if (!b) return null;
  26660. b = b.cloneNode(!0);
  26661. this.Bl && c.Ra(b, "pause", this.Bl);
  26662. b.volume = this.px;
  26663. this.ox[a] = b
  26664. }
  26665. a = 0;
  26666. for (var g = d.length; a < g;) f[d[a]] == b ? d.splice(a, 1) : a++;
  26667. a = 0;
  26668. for (g = e.length; a < g;) f[e[a]] == b ? e.splice(a, 1) : a++;
  26669. b.rt = !0;
  26670. return b
  26671. },
  26672. xF: function() {
  26673. var a = this.sg,
  26674. b = this.Os,
  26675. d = this.ox,
  26676. e = this.fm,
  26677. f = this.Et;
  26678. if (a || 0 != e.length || 0 != f.length) {
  26679. for (var g in d) {
  26680. var h = d[g];
  26681. h.duration && Infinity != h.duration && (h.currentTime = h.duration)
  26682. }
  26683. e.length = 0;
  26684. f.length = 0;
  26685. for (g in b) for (d = b[g], e = 0, f = d.length; e < f; e++) h = d[e], h.loop = !1, h.duration && Infinity != h.duration && (h.currentTime = h.duration);
  26686. a && this.Zl(a)
  26687. }
  26688. },
  26689. Bl: function() {
  26690. if (!this.YD) {
  26691. var a = this.wZ();
  26692. if (a) a.rt ? (delete a.rt, a.play()) : this.rk(a);
  26693. else if (this.kn) {
  26694. a = this.ne;
  26695. if (a.duration && Infinity != a.duration) {
  26696. var b = a.currentTime + this.rp,
  26697. b = b - a.duration * (b / a.duration | 0);
  26698. a.currentTime = b
  26699. }
  26700. this.rp = 0;
  26701. this.rk(a);
  26702. this.Of = 2;
  26703. this.kn = !1
  26704. }
  26705. }
  26706. },
  26707. wZ: function() {
  26708. var a = this.fm,
  26709. b = this.Ge,
  26710. d = this.sg,
  26711. e = d ? d.currentTime - (d.startTime || 0) : 0;
  26712. for (this.rp += e; 0 != a.length;) {
  26713. var f = a.pop();
  26714. if (d = b[f]) {
  26715. if (d.rt || d.loop || d.duration && d.currentTime + e < d.duration) return this.jp = f, this.sg = d, !d.rt && d.duration && Infinity != d.duration && (a = d.currentTime + e, a -= d.duration * (a / d.duration | 0), d.currentTime = a), d.rt = !1, d;
  26716. d.duration && Infinity != d.duration && (d.currentTime = d.duration)
  26717. }
  26718. }
  26719. return this.sg = this.jp = null
  26720. },
  26721. eN: function() {
  26722. var a = this.sg;
  26723. this.YD = !0;
  26724. if (a = 2 == this.Of ? this.ne : a) this.Ft.push(a), a.pause()
  26725. },
  26726. wN: function() {
  26727. var a = this.Ft;
  26728. this.YD = !1;
  26729. 0 < a.length && (this.rk(a[0]), a.length = 0)
  26730. }
  26731. }));
  26732. c.RC = {
  26733. wy: null,
  26734. cz: function() {
  26735. return c.X.A1
  26736. },
  26737. cE: function(a, b, d, e, f, g, h) {
  26738. var k = this,
  26739. m = c.X,
  26740. n = c.path,
  26741. q = this.wy,
  26742. r = "";
  26743. if (0 == q.length) return h("can not support audio!");
  26744. if (-1 == e) r = (n.jm(a) || "").toLowerCase(), k.B1(r) || (r = q[0], e = 0);
  26745. else if (e < q.length) r = q[e];
  26746. else return h("can not found the resource of audio! Last match url is : " + a);
  26747. if (0 <= f.indexOf(r)) return k.cE(a, b, d, e + 1, f, g, h);
  26748. a = n.DO(a, r);
  26749. f.push(r);
  26750. g = k.VZ(a, g, function(m) {
  26751. if (m) return k.cE(a, b, d, e + 1, f, g, h);
  26752. h(null, g)
  26753. }, e == q.length - 1);
  26754. m.Ig[b] = g
  26755. },
  26756. B1: function(a) {
  26757. return a ? 0 <= this.wy.indexOf(a.toLowerCase()) : !1
  26758. },
  26759. VZ: function(a, b, d, e) {
  26760. var f = "file://" == location.origin ? Audio : c.BC || Audio;
  26761. 2 == arguments.length ? (d = b, b = new f) : 3 < arguments.length && !b && (b = new f);
  26762. b.src = a;
  26763. b.fA = "auto";
  26764. f = navigator.userAgent;
  26765. /Mobile/.test(f) && (/iPhone OS/.test(f) || /iPad/.test(f) || /Firefox/.test(f)) || /MSIE/.test(f) ? (b.load(), d(null, b)) : (c.Ra(b, "canplaythrough", function() {
  26766. d(null, b);
  26767. this.removeEventListener("canplaythrough", arguments.callee, !1);
  26768. this.removeEventListener("error", arguments.callee, !1)
  26769. }, !1), c.Ra(b, "error", function() {
  26770. d("load " + a + " failed");
  26771. e && (this.removeEventListener("canplaythrough", arguments.callee, !1), this.removeEventListener("error", arguments.callee, !1))
  26772. }, !1), b.load());
  26773. return b
  26774. },
  26775. load: function(a, b, d, e) {
  26776. this.cE(a, b, d, -1, [], null, e)
  26777. }
  26778. };
  26779. c.RC.wy = function() {
  26780. var a = c.ac("audio"),
  26781. b = [];
  26782. if (a.canPlayType) {
  26783. var d = function(b) {
  26784. b = a.canPlayType(b);
  26785. return "no" != b && "" != b
  26786. };
  26787. d('audio/ogg; codecs="vorbis"') && b.push(".ogg");
  26788. d("audio/mpeg") && b.push(".mp3");
  26789. d('audio/wav; codecs="1"') && b.push(".wav");
  26790. d("audio/mp4") && b.push(".mp4");
  26791. (d("audio/x-m4a") || d("audio/aac")) && b.push(".m4a")
  26792. }
  26793. return b
  26794. }();
  26795. c.X.Tk(["mp3", "ogg", "wav", "mp4", "m4a"], c.RC);
  26796. c.tO = c.YI ? new c.YI : new c.XI;
  26797. c.wa.cG(c.Wc.Uv, function() {
  26798. c.tO.eN()
  26799. });
  26800. c.wa.cG(c.Wc.Fr, function() {
  26801. c.tO.wN()
  26802. });
  26803. (function() {
  26804. c.hs = c.P.extend({
  26805. QD: !1,
  26806. Ad: null,
  26807. K_: 1,
  26808. ctor: function(a, d) {
  26809. c.P.prototype.ctor.call(this);
  26810. if (void 0 === a) c.hs.prototype.K.call(this);
  26811. else if ("string" === typeof a) if ("#" === a[0]) {
  26812. var e = c.Zk.wj(a.substr(1, a.length - 1));
  26813. this.Ah(e)
  26814. } else this.K(a, d);
  26815. else "object" === typeof a && (a instanceof c.ia ? this.pa(a, d) : a instanceof c.If && this.Ah(a))
  26816. },
  26817. IR: function(a) {
  26818. this.Ad = a
  26819. },
  26820. oP: function() {
  26821. return this.Ad
  26822. },
  26823. we: function() {
  26824. var a = this.Ad;
  26825. return {
  26826. x: a.d.x,
  26827. y: a.d.y
  26828. }
  26829. },
  26830. Se: function() {
  26831. return this.Ad.d.x
  26832. },
  26833. Mg: function() {
  26834. return this.Ad.d.y
  26835. },
  26836. J: function(a, d) {
  26837. void 0 === d ? (this.Ad.d.x = a.x, this.Ad.d.y = a.y) : (this.Ad.d.x = a, this.Ad.d.y = d)
  26838. },
  26839. qI: function(a) {
  26840. this.Ad.d.x = a
  26841. },
  26842. rI: function(a) {
  26843. this.Ad.d.y = a
  26844. },
  26845. jca: function() {
  26846. var a = this.va,
  26847. d = this.Ad;
  26848. a.x == d.d.x && a.y == d.d.y || c.P.prototype.J.call(this, d.d.x, d.d.y)
  26849. },
  26850. Lb: function() {
  26851. return this.QD ? c.Yq(this.Sl) : -c.Yq(this.Ad.a)
  26852. },
  26853. Xb: function(a) {
  26854. this.QD ? c.P.prototype.Xb.call(this, a) : this.Ad.a = -c.ag(a)
  26855. },
  26856. kca: function() {
  26857. this.Sl != -this.Ad.a && c.P.prototype.Xb.call(this, -c.Yq(this.Ad.a))
  26858. },
  26859. Ve: function() {
  26860. if (c.F === c.Ha) return this.c_();
  26861. var a = this.Ad,
  26862. d = this.lb,
  26863. e = this.ma,
  26864. f = this.Na,
  26865. g = a.d.x,
  26866. h = a.d.y;
  26867. this.$h && (g += d.x, h += d.y);
  26868. var k = a.a,
  26869. a = Math.cos(k),
  26870. k = Math.sin(k);
  26871. c.dy(d) || (g += a * -d.x * e + -k * -d.y * f, h += k * -d.x * e + a * -d.y * f);
  26872. return this.pi = c.bT(a * e, k * e, -k * f, a * f, g, h)
  26873. },
  26874. c_: function() {
  26875. if (this.dirty) {
  26876. var a = this.pi,
  26877. d = this.Ad,
  26878. e = this.ma,
  26879. f = this.Na,
  26880. g = this.lb;
  26881. a.xa = d.d.x;
  26882. a.ya = d.d.y;
  26883. var d = -d.a,
  26884. h = 1,
  26885. k = 0;
  26886. d && (h = Math.cos(d), k = Math.sin(d));
  26887. a.a = a.D = h;
  26888. a.b = -k;
  26889. a.C = k;
  26890. if (1 !== e || 1 !== f) a.a *= e, a.C *= e, a.b *= f, a.D *= f;
  26891. a.xa += h * -g.x * e + -k * g.y * f;
  26892. a.ya -= k * -g.x * e + h * g.y * f;
  26893. this.$h && (a.xa += g.x, a.ya += g.y);
  26894. this.sj = !1
  26895. }
  26896. return this.pi
  26897. },
  26898. Qu: function() {
  26899. return !this.Ad.Ik()
  26900. },
  26901. vA: function() {},
  26902. wna: function(a) {
  26903. this.QD = a
  26904. }
  26905. });
  26906. c.hs.ob = "PhysicsSprite";
  26907. var a = c.hs.prototype;
  26908. c.i(a, "body", a.oP, a.IR);
  26909. c.i(a, "dirty", a.Qu, a.vA);
  26910. c.hs.create = function(a, d) {
  26911. return new c.hs(a, d)
  26912. }
  26913. })();
  26914. c.LX = function(a) {
  26915. for (var b = [], d = 0; d < a.length / 2; d++) b[d] = {
  26916. x: a[2 * d],
  26917. y: a[2 * d + 1]
  26918. };
  26919. return b
  26920. };
  26921. c.AT = function(a) {
  26922. return a.Bj() || a.Ik() ? c.color(128, 128, 128, 128) : a.Ok > a.Ec.EI ? c.color(84, 84, 84, 128) : c.color(255, 0, 0, 128)
  26923. };
  26924. c.QT = function(a) {
  26925. var b = a.body,
  26926. d = c.AT(b);
  26927. switch (a.Jg) {
  26928. case cp.zT.prototype.Jg:
  26929. this.vi(a.$g, Math.max(a.r, 1), d);
  26930. this.im(a.$g, cp.G.add(a.$g, cp.G.NH(b.hd, a.r)), 1, d);
  26931. break;
  26932. case cp.ps.prototype.Jg:
  26933. this.im(a.Xe, a.kg, Math.max(a.r, 2), d);
  26934. break;
  26935. case cp.AV.prototype.Jg:
  26936. b = c.color(d.r, d.g, d.b, c.KQ(d.a, 255, 0.5));
  26937. this.$d(c.LX(a.Oj), d, 1, b);
  26938. break;
  26939. default:
  26940. c.log("cc.DrawShape(): Bad assertion in DrawShape()")
  26941. }
  26942. };
  26943. c.NT = function(a) {
  26944. var b = a.a,
  26945. d = a.b,
  26946. e;
  26947. a instanceof cp.xV ? (e = b.Gi(a.uj), b = d.Gi(a.Hg), this.vi(e, 3, c.Oi), this.vi(b, 3, c.Oi), this.im(e, b, 1, c.Oi)) : a instanceof cp.$V ? (e = b.Gi(a.uj), b = d.Gi(a.Hg), this.vi(e, 3, c.Oi), this.vi(b, 3, c.Oi), this.im(e, b, 1, c.Oi)) : a instanceof cp.yV ? (e = b.Gi(a.uj), b = d.Gi(a.Hg), this.vi(e, 3, c.Oi), this.vi(b, 3, c.Oi)) : a instanceof cp.gU && (e = b.Gi(a.VP), b = b.Gi(a.WP), a = d.Gi(a.Hg), this.vi(a, 3, c.Oi), this.im(e, b, 1, c.Oi))
  26948. };
  26949. c.Oi = c.color(0, 255, 0, 128);
  26950. c.Mm = c.zd.extend({
  26951. Ec: null,
  26952. F0: null,
  26953. ob: "PhysicsDebugNode",
  26954. $ga: function() {
  26955. return this.Ec
  26956. },
  26957. ioa: function(a) {
  26958. this.Ec = a
  26959. },
  26960. Y: function() {
  26961. this.Ec && (this.Ec.fP(c.QT.bind(this)), this.Ec.eP(c.NT.bind(this)), c.zd.prototype.Y.call(this), this.clear())
  26962. }
  26963. });
  26964. c.Mm.vda = function(a) {
  26965. var b = new c.Mm;
  26966. return b.K() ? (b.F0 = a, b.Ec = a.Ec, b) : null
  26967. };
  26968. c.Mm.h2 = function(a) {
  26969. var b = new c.Mm;
  26970. return b.K() ? (b.Ec = a, b) : null
  26971. };
  26972. c.Mm.create = c.Mm.h2;
  26973. (function() {
  26974. function a(a, b) {
  26975. return (b - a.W6) * a.FI
  26976. }
  26977. function b(a, b) {
  26978. return (a.X6 - b) * a.FI
  26979. }
  26980. function d(a, b, d, e, f, g) {
  26981. var h;
  26982. h = a.Hi + b.Hi;
  26983. var k = a.fb,
  26984. m = d.x * d.x * k;
  26985. a = -d.x * d.y * k;
  26986. d = h + d.y * d.y * k;
  26987. h += m;
  26988. k = b.fb;
  26989. b = e.x * e.x * k;
  26990. m = -e.x * e.y * k;
  26991. d += e.y * e.y * k;
  26992. e = 0 + a + m;
  26993. a = 0 + a + m;
  26994. h += b;
  26995. b = d * h - e * a;
  26996. la(0 !== b, "Unsolvable constraint.");
  26997. b = 1 / b;
  26998. f.x = h * b;
  26999. f.y = -e * b;
  27000. g.x = -a * b;
  27001. g.y = d * b
  27002. }
  27003. function e(a, b, d, e, g) {
  27004. a = f(a, d, g) + f(b, e, g);
  27005. la(0 !== a, "Unsolvable collision or constraint.");
  27006. return a
  27007. }
  27008. function f(a, b, d) {
  27009. b = za(b, d);
  27010. return a.Hi + a.fb * b * b
  27011. }
  27012. function g(a, b, d, e) {
  27013. a.tr += b * a.Hi;
  27014. a.ur += d * a.Hi;
  27015. a.Bm += a.fb * (e.x * d - e.y * b)
  27016. }
  27017. function h(a, b, d, e, f, g) {
  27018. k(a, -f, -g, d);
  27019. k(b, f, g, e)
  27020. }
  27021. function k(a, b, d, e) {
  27022. a.Ze += b * a.Hi;
  27023. a.$e += d * a.Hi;
  27024. a.l += a.fb * (e.x * d - e.y * b)
  27025. }
  27026. function m(a, b, d, e, f) {
  27027. return (b.Ze + -e.y * b.l - (a.Ze + -d.y * a.l)) * f.x + (b.$e + e.x * b.l - (a.$e + d.x * a.l)) * f.y
  27028. }
  27029. function n(a, b, d, e) {
  27030. return new G(b.Ze + -e.y * b.l - (a.Ze + -d.y * a.l), b.$e + e.x * b.l - (a.$e + d.x * a.l))
  27031. }
  27032. function q(a) {
  27033. var b = a.body;
  27034. a.update(b.d, b.hd)
  27035. }
  27036. function r(a, b) {
  27037. if (!b.Bj()) {
  27038. var d = b ? b.qm : null;
  27039. if (null == d) {
  27040. b.qm = a;
  27041. b !== a && (b.Ji = a.Ji, a.Ji = b);
  27042. for (d = b.fq; d; d = d.next(b)) r(a, b == d.ud ? d.Ek : d.ud);
  27043. for (d = b.Uy; d; d = d.next(b)) r(a, b == d.a ? d.b : d.a)
  27044. } else la(d === a, "Internal Error: Inconsistency detected in the contact graph.")
  27045. }
  27046. }
  27047. function t(a) {
  27048. H(!a.Rq, "This addition/removal cannot be done safely during a call to cpSpaceStep() or during a query. Put these calls into a post-step callback.")
  27049. }
  27050. function s(a, b, d, e, f) {
  27051. for (var g = za(b.Qj, b.Xe), h = za(b.Qj, b.kg), k = R(b.Qj, f), m = d.Oj, n = 0; n < m.length; n += 2) {
  27052. var q = m[n],
  27053. r = m[n + 1];
  27054. if (q * k.x + r * k.y < T(b.Qj, b.Xe) * f + b.r) {
  27055. var s = b.Qj.x * r - b.Qj.y * q;
  27056. g >= s && s >= h && a.push(new F(new G(q, r), k, e, ca(d.Kd, n)))
  27057. }
  27058. }
  27059. }
  27060. function u(a, b, d) {
  27061. var e = T(b, a.Xe) - a.r;
  27062. a = T(b, a.kg) - a.r;
  27063. return X(e, a) - d
  27064. }
  27065. function v(a, b, d, e) {
  27066. for (var f = [], g = a.Oj, h = 0; h < g.length; h += 2) {
  27067. var k = g[h],
  27068. m = g[h + 1];
  27069. b.Vy(k, m) && f.push(new F(new G(k, m), d, e, ca(a.Kd, h >> 1)))
  27070. }
  27071. g = b.Oj;
  27072. for (h = 0; h < g.length; h += 2) k = g[h], m = g[h + 1], a.Vy(k, m) && f.push(new F(new G(k, m), d, e, ca(b.Kd, h >> 1)));
  27073. if (!f.length) {
  27074. f = [];
  27075. g = a.Oj;
  27076. for (h = 0; h < g.length; h += 2) k = g[h], m = g[h + 1], b.IO(k, m, Qa(d)) && f.push(new F(new G(k, m), d, e, ca(a.Kd, h)));
  27077. g = b.Oj;
  27078. for (h = 0; h < g.length; h += 2) k = g[h], m = g[h + 1], a.IO(k, m, d) && f.push(new F(new G(k, m), d, e, ca(b.Kd, h)))
  27079. }
  27080. return a = f
  27081. }
  27082. function B(a, b) {
  27083. var d = 0,
  27084. e = a.PA(b[0].ha, b[0].D);
  27085. if (0 < e) return -1;
  27086. for (var f = 1; f < b.length; f++) {
  27087. var g = a.PA(b[f].ha, b[f].D);
  27088. if (0 < g) return -1;
  27089. g > e && (e = g, d = f)
  27090. }
  27091. Gb = e;
  27092. return d
  27093. }
  27094. function x(a, b, d, e) {
  27095. e = d + e;
  27096. b = S(b, a);
  27097. var f = Aa(b);
  27098. if (!(f >= e * e)) return f = Math.sqrt(f), new F(N(a, R(b, 0.5 + (d - 0.5 * e) / (f ? f : Infinity))), f ? R(b, 1 / f) : new G(1, 0), f - e, 0)
  27099. }
  27100. function F(a, b, d, e) {
  27101. this.d = a;
  27102. this.ha = b;
  27103. this.Cu = d;
  27104. this.Ea = this.Ga = ka;
  27105. this.Nd = this.bo = this.Tu = this.Ii = this.vS = this.zO = this.Vb = 0;
  27106. this.hash = e;
  27107. oc++
  27108. }
  27109. function I(a, b, d) {
  27110. b ? b.ud === a ? b.lr = d : b.nr = d : a.fq = d;
  27111. d && (d.ud === a ? d.mr = b : d.or = b)
  27112. }
  27113. function y(a, b) {
  27114. this.da = this.Jd = 0;
  27115. this.tS = ka;
  27116. this.a = a;
  27117. this.ud = a.body;
  27118. this.b = b;
  27119. this.Ek = b.body;
  27120. this.zh = this.nr = this.or = this.lr = this.mr = null;
  27121. this.kd = 0;
  27122. this.jH = null;
  27123. this.state = "first coll"
  27124. }
  27125. function A(a, b, d, e) {
  27126. a.Ru ? D(a, b, d, e) : (A(a.ie, b, d, e), A(a.Gf, b, d, e))
  27127. }
  27128. function D(a, b, d, e) {
  27129. if (a.kd == b.$G()) for (d && z(d, a, !1, b, e), d = a; d.parent; d = d.parent) d == d.parent.ie ? z(d.parent.Gf, a, !0, b, e) : z(d.parent.ie, a, !1, b, e);
  27130. else for (b = a.sm; b;) a == b.b.Fj ? (e && e(b.a.Fj.Pk, a.Pk), b = b.b.next) : b = b.a.next
  27131. }
  27132. function z(a, b, d, e, f) {
  27133. b.Cb <= a.Db && a.Cb <= b.Db && b.Bb <= a.Eb && a.Bb <= b.Eb && (a.Ru ? d ? ha(b, a) : (a.kd < b.kd && ha(a, b), f && f(b.Pk, a.Pk)) : (z(a.ie, b, d, e, f), z(a.Gf, b, d, e, f)))
  27134. }
  27135. function E(a, b, d) {
  27136. if (b == a) return null;
  27137. var e = b.parent;
  27138. if (e == a) return b = a.ZQ(b), b.parent = a.parent, b;
  27139. e.parent.replaceChild(e, e.ZQ(b), d);
  27140. return a
  27141. }
  27142. function J(a, b, d) {
  27143. a.sQ(b) && (a.Ru ? d(a.Pk) : (J(a.ie, b, d), J(a.Gf, b, d)))
  27144. }
  27145. function W(a, b, d) {
  27146. if (null == a) return b;
  27147. if (a.Ru) return new sa(0, b, a);
  27148. var e = a.Gf.hG() + Y(a.ie, b),
  27149. f = a.ie.hG() + Y(a.Gf, b);
  27150. e === f && (e = K(a.ie, b), f = K(a.Gf, b));
  27151. f < e ? a.jI(W(a.Gf, b, d)) : a.gI(W(a.ie, b, d));
  27152. a.Cb = X(a.Cb, b.Cb);
  27153. a.Bb = X(a.Bb, b.Bb);
  27154. a.Db = aa(a.Db, b.Db);
  27155. a.Eb = aa(a.Eb, b.Eb);
  27156. return a
  27157. }
  27158. function K(a, b) {
  27159. return Math.abs(a.Cb + a.Db - b.Cb - b.Db) + Math.abs(a.Bb + b.Eb - b.Bb - b.Eb)
  27160. }
  27161. function Y(a, b) {
  27162. return (aa(a.Db, b.Db) - X(a.Cb, b.Cb)) * (aa(a.Eb, b.Eb) - X(a.Bb, b.Bb))
  27163. }
  27164. function ha(a, b) {
  27165. var d = a.sm,
  27166. e = b.sm,
  27167. f = new ya(new da(a, d), new da(b, e));
  27168. a.sm = b.sm = f;
  27169. d && (d.a.Fj == a ? d.a.tm = f : d.b.tm = f);
  27170. e && (e.a.Fj == b ? e.a.tm = f : e.b.tm = f)
  27171. }
  27172. function da(a, b) {
  27173. this.tm = null;
  27174. this.next = b;
  27175. this.Fj = a
  27176. }
  27177. function ya(a, b) {
  27178. this.a = a;
  27179. this.b = b
  27180. }
  27181. function M(a, b) {
  27182. this.Pk = b;
  27183. a.OG(b, this);
  27184. this.parent = null;
  27185. this.kd = 1;
  27186. this.sm = null;
  27187. pc++
  27188. }
  27189. function sa(a, b, d) {
  27190. this.Pk = null;
  27191. this.Cb = X(b.Cb, d.Cb);
  27192. this.Bb = X(b.Bb, d.Bb);
  27193. this.Db = aa(b.Db, d.Db);
  27194. this.Eb = aa(b.Eb, d.Eb);
  27195. this.parent = null;
  27196. this.gI(b);
  27197. this.jI(d);
  27198. qc++
  27199. }
  27200. function Ga(a, b) {
  27201. this.ha = a;
  27202. this.D = b
  27203. }
  27204. function ea(a, b, d) {
  27205. return X(aa(a, b), d)
  27206. }
  27207. function Ha(a, b) {
  27208. for (var d = 0; d < a.length; d++) if (a[d] === b) {
  27209. a[d] = a[a.length - 1];
  27210. a.length--;
  27211. break
  27212. }
  27213. }
  27214. function ca(a, b) {
  27215. return a < b ? a + " " + b : b + " " + a
  27216. }
  27217. function jb(a, b) {
  27218. return a > b ? a : b
  27219. }
  27220. function Ra(a, b) {
  27221. return a < b ? a : b
  27222. }
  27223. function la(a, b) {
  27224. !a && console && console.warn && (console.warn("ASSERTION FAILED: " + b), console.trace && console.trace())
  27225. }
  27226. function H(a, b) {
  27227. if (!a) throw Error("Assertion failed: " + b);
  27228. }
  27229. Object.create = Object.create ||
  27230. function(a) {
  27231. function b() {}
  27232. b.prototype = a;
  27233. return new b
  27234. };
  27235. var w;
  27236. "undefined" === typeof exports ? (w = {}, "object" === typeof window && (window.cp = w)) : w = exports;
  27237. var X, aa;
  27238. "object" === typeof window && -1 < window.navigator.userAgent.indexOf("Firefox") ? (X = Math.min, aa = Math.max) : (X = Ra, aa = jb);
  27239. w.Aka = function(a, b, d, e) {
  27240. return a * (0.5 * (b * b + d * d) + Aa(e))
  27241. };
  27242. w.Ica = function(a, b) {
  27243. return Math.PI * Math.abs(a * a - b * b)
  27244. };
  27245. w.Cka = function(a, b, d) {
  27246. var e = Fa(S(d, b));
  27247. b = R(N(b, d), 0.5);
  27248. return a * (e * e / 12 + Aa(b))
  27249. };
  27250. w.Kca = function(a, b, d) {
  27251. return d * (Math.PI * d + 2 * ic(a, b))
  27252. };
  27253. w.Bka = function(a, b, d) {
  27254. for (var e = 0, f = 0, g = b.length, h = 0; h < g; h += 2) var k = b[h] + d.x,
  27255. m = b[h + 1] + d.y,
  27256. n = b[(h + 2) % g] + d.x,
  27257. q = b[(h + 3) % g] + d.y,
  27258. r = n * m - q * k,
  27259. e = e + r * (k * k + m * m + (k * n + m * q) + (n * n + q * q)),
  27260. f = f + r;
  27261. return a * e / (6 * f)
  27262. };
  27263. w.Jca = function(a) {
  27264. for (var b = 0, d = 0, e = a.length; d < e; d += 2) b += za(new G(a[d], a[d + 1]), new G(a[(d + 2) % e], a[(d + 3) % e]));
  27265. return -b / 2
  27266. };
  27267. var ec = w.eda = function(a) {
  27268. for (var b = 0, d = new G(0, 0), e = 0, f = a.length; e < f; e += 2) var g = new G(a[e], a[e + 1]),
  27269. h = new G(a[(e + 2) % f], a[(e + 3) % f]),
  27270. k = za(g, h),
  27271. b = b + k,
  27272. d = N(d, R(N(g, h), k));
  27273. return R(d, 1 / (3 * b))
  27274. };
  27275. w.Sla = function(a) {
  27276. for (var b = ec(a), d = 0; d < a.length; d += 2) a[d] -= b.x, a[d + 1] -= b.y
  27277. };
  27278. var fc = w.yka = function(a, b, d) {
  27279. return a * (b * b + d * d) / 12
  27280. };
  27281. w.zka = function(a, b) {
  27282. width = b.r - b.Ej;
  27283. height = b.jg - b.b;
  27284. offset = R([b.Ej + b.r, b.b + b.jg], 0.5);
  27285. return fc(a, width, height) + a * Aa(offset)
  27286. };
  27287. var gc = w.ida = function(a) {
  27288. return aa(0, X(a, 1))
  27289. },
  27290. hc = 0,
  27291. G = w.tba = function(a, b) {
  27292. this.x = a;
  27293. this.y = b;
  27294. hc++
  27295. };
  27296. w.G = function(a, b) {
  27297. return new G(a, b)
  27298. };
  27299. var ka = w.Mpa = new G(0, 0),
  27300. T = w.G.Mda = function(a, b) {
  27301. return a.x * b.x + a.y * b.y
  27302. },
  27303. Fa = w.G.Ch = function(a) {
  27304. return Math.sqrt(T(a, a))
  27305. };
  27306. w.G.uea = function(a, b) {
  27307. return a.x === b.x && a.y === b.y
  27308. };
  27309. var N = w.G.add = function(a, b) {
  27310. return new G(a.x + b.x, a.y + b.y)
  27311. };
  27312. G.prototype.add = function(a) {
  27313. this.x += a.x;
  27314. this.y += a.y;
  27315. return this
  27316. };
  27317. var S = w.G.sub = function(a, b) {
  27318. return new G(a.x - b.x, a.y - b.y)
  27319. };
  27320. G.prototype.sub = function(a) {
  27321. this.x -= a.x;
  27322. this.y -= a.y;
  27323. return this
  27324. };
  27325. var Qa = w.G.J5 = function(a) {
  27326. return new G(-a.x, -a.y)
  27327. };
  27328. G.prototype.J5 = function() {
  27329. this.x = -this.x;
  27330. this.y = -this.y;
  27331. return this
  27332. };
  27333. var R = w.G.NH = function(a, b) {
  27334. return new G(a.x * b, a.y * b)
  27335. };
  27336. G.prototype.NH = function(a) {
  27337. this.x *= a;
  27338. this.y *= a;
  27339. return this
  27340. };
  27341. var za = w.G.sda = function(a, b) {
  27342. return a.x * b.y - a.y * b.x
  27343. },
  27344. Za = w.G.Ala = function(a) {
  27345. return new G(-a.y, a.x)
  27346. };
  27347. w.G.Kla = function(a) {
  27348. return new G(a.y, -a.x)
  27349. };
  27350. var mc = w.G.w6 = function(a, b) {
  27351. return R(b, T(a, b) / Aa(b))
  27352. };
  27353. G.prototype.w6 = function(a) {
  27354. this.NH(T(this, a) / Aa(a));
  27355. return this
  27356. };
  27357. var ba = w.G.rotate = function(a, b) {
  27358. return new G(a.x * b.x - a.y * b.y, a.x * b.y + a.y * b.x)
  27359. };
  27360. G.prototype.rotate = function(a) {
  27361. this.x = this.x * a.x - this.y * a.y;
  27362. this.y = this.x * a.y + this.y * a.x;
  27363. return this
  27364. };
  27365. var nc = w.G.ypa = function(a, b) {
  27366. return new G(a.x * b.x + a.y * b.y, a.y * b.x - a.x * b.y)
  27367. },
  27368. Aa = w.G.mka = function(a) {
  27369. return T(a, a)
  27370. };
  27371. w.G.KQ = function(a, b, d) {
  27372. return N(R(a, 1 - d), R(b, d))
  27373. };
  27374. var $a = w.G.normalize = function(a) {
  27375. return R(a, 1 / Fa(a))
  27376. },
  27377. Tb = w.G.Hka = function(a) {
  27378. return 0 === a.x && 0 === a.y ? ka : $a(a)
  27379. },
  27380. Ya = w.G.tu = function(a, b) {
  27381. return T(a, a) > b * b ? R($a(a), b) : a
  27382. };
  27383. w.G.nka = function(a, b, d) {
  27384. return N(a, Ya(S(b, a), d))
  27385. };
  27386. var ic = w.G.Cu = function(a, b) {
  27387. return Fa(S(a, b))
  27388. },
  27389. jc = w.G.Lda = function(a, b) {
  27390. return Aa(S(a, b))
  27391. };
  27392. w.G.Dka = function(a, b, d) {
  27393. return jc(a, b) < d * d
  27394. };
  27395. var kc = w.G.Voa = function(a, b, d) {
  27396. var e = Math.acos(T(a, b));
  27397. if (e) {
  27398. var f = 1 / Math.sin(e);
  27399. return N(R(a, Math.sin((1 - d) * e) * f), R(b, Math.sin(d * e) * f))
  27400. }
  27401. return a
  27402. };
  27403. w.G.Woa = function(a, b, d) {
  27404. var e = Math.acos(T(a, b));
  27405. return kc(a, b, X(d, e) / e)
  27406. };
  27407. w.G.Tea = function(a) {
  27408. return new G(Math.cos(a), Math.sin(a))
  27409. };
  27410. w.G.vpa = function(a) {
  27411. return Math.atan2(a.y, a.x)
  27412. };
  27413. w.G.Zoa = function(a) {
  27414. return "(" + a.x.toFixed(3) + ", " + a.y.toFixed(3) + ")"
  27415. };
  27416. var lc = 0,
  27417. ib = w.U9 = function(a, b, d, e) {
  27418. this.Ej = a;
  27419. this.b = b;
  27420. this.r = d;
  27421. this.jg = e;
  27422. lc++
  27423. };
  27424. w.ui = function(a, b, d, e) {
  27425. return new ib(a, b, d, e)
  27426. };
  27427. var Sb = 0;
  27428. w.maa = 0;
  27429. var rc = w.G9 = -1;
  27430. w.sma = function() {
  27431. Sb = 0
  27432. };
  27433. var ia = w.Jaa = function(a) {
  27434. this.body = a;
  27435. this.Cb = this.Bb = this.Db = this.Eb = 0;
  27436. this.Kd = Sb++;
  27437. this.CR = !1;
  27438. this.da = this.Jd = 0;
  27439. this.sS = ka;
  27440. this.group = this.Ln = 0;
  27441. this.JH = rc;
  27442. this.Ec = null;
  27443. this.Jg = this.Jg
  27444. };
  27445. ia.prototype.x7 = function() {
  27446. this.Jd = 1
  27447. };
  27448. ia.prototype.C7 = function() {
  27449. this.body.Pc();
  27450. this.da = 0
  27451. };
  27452. ia.prototype.QR = function(a) {
  27453. this.body.Pc();
  27454. this.JH = a
  27455. };
  27456. ia.prototype.p7 = function() {
  27457. this.body.Pc();
  27458. this.Ln = 1
  27459. };
  27460. ia.prototype.oP = function() {
  27461. return this.body
  27462. };
  27463. ia.prototype.active = function() {
  27464. return this.body && -1 !== this.body.ym.indexOf(this)
  27465. };
  27466. ia.prototype.IR = function(a) {
  27467. H(!this.active(), "You cannot change the body on an active shape. You must remove the shape, then ");
  27468. this.body = a
  27469. };
  27470. ia.prototype.update = function(a, b) {
  27471. H(!isNaN(b.x), "Rotation is NaN");
  27472. H(!isNaN(a.x), "Position is NaN");
  27473. this.nG(a, b)
  27474. };
  27475. ia.prototype.OG = function() {
  27476. return new ib(this.Cb, this.Bb, this.Db, this.Eb)
  27477. };
  27478. var kb = w.zT = function(a, b, d) {
  27479. this.C = this.$g = d;
  27480. this.r = b;
  27481. this.type = "circle";
  27482. ia.call(this, a)
  27483. };
  27484. kb.prototype = Object.create(ia.prototype);
  27485. kb.prototype.nG = function(a, b) {
  27486. var d = this.$g = ba(this.C, b).add(a),
  27487. e = this.r;
  27488. this.Cb = d.x - e;
  27489. this.Bb = d.y - e;
  27490. this.Db = d.x + e;
  27491. this.Eb = d.y + e
  27492. };
  27493. var lb = w.ps = function(a, b, d, e) {
  27494. this.a = b;
  27495. this.b = d;
  27496. this.ha = Za($a(S(d, b)));
  27497. this.Xe = this.kg = this.Qj = null;
  27498. this.r = e;
  27499. this.D1 = this.X0 = ka;
  27500. this.type = "segment";
  27501. ia.call(this, a)
  27502. };
  27503. lb.prototype = Object.create(ia.prototype);
  27504. lb.prototype.nG = function(a, b) {
  27505. this.Xe = N(a, ba(this.a, b));
  27506. this.kg = N(a, ba(this.b, b));
  27507. this.Qj = ba(this.ha, b);
  27508. var d, e, f, g;
  27509. this.Xe.x < this.kg.x ? (d = this.Xe.x, e = this.kg.x) : (d = this.kg.x, e = this.Xe.x);
  27510. this.Xe.y < this.kg.y ? (f = this.Xe.y, g = this.kg.y) : (f = this.kg.y, g = this.Xe.y);
  27511. var h = this.r;
  27512. this.Cb = d - h;
  27513. this.Bb = f - h;
  27514. this.Db = e + h;
  27515. this.Eb = g + h
  27516. };
  27517. var wa = w.AV = function(a, b, d) {
  27518. H(4 <= b.length, "Polygons require some verts");
  27519. H("number" === typeof b[0], "Polygon verticies should be specified in a flattened list");
  27520. var e;
  27521. a: {
  27522. e = b.length;
  27523. for (var f = 0; f < e; f += 2) {
  27524. var g = b[(f + 2) % e],
  27525. h = b[(f + 3) % e];
  27526. if (0 < (g - b[f]) * (b[(f + 5) % e] - h) - (h - b[f + 1]) * (b[(f + 4) % e] - g)) {
  27527. e = !1;
  27528. break a
  27529. }
  27530. }
  27531. e = !0
  27532. }
  27533. H(e, "Polygon is concave or has a reversed winding.");
  27534. this.p8(b, d);
  27535. this.type = "poly";
  27536. ia.call(this, a)
  27537. };
  27538. wa.prototype = Object.create(ia.prototype);
  27539. wa.prototype.p8 = function(a, b) {
  27540. var d = a.length,
  27541. e = d >> 1;
  27542. this.ze = Array(d);
  27543. this.Oj = Array(d);
  27544. this.uO = Array(e);
  27545. this.Nj = Array(e);
  27546. for (e = 0; e < d; e += 2) {
  27547. var f = a[e] + b.x,
  27548. g = a[e + 1] + b.y,
  27549. h = $a(Za(new G(a[(e + 2) % d] + b.x - f, a[(e + 3) % d] + b.y - g)));
  27550. this.ze[e] = f;
  27551. this.ze[e + 1] = g;
  27552. this.uO[e >> 1] = new Ga(h, h.x * f + h.y * g);
  27553. this.Nj[e >> 1] = new Ga(new G(0, 0), 0)
  27554. }
  27555. };
  27556. w.l$ = function(a, b, d) {
  27557. b /= 2;
  27558. d /= 2;
  27559. return sc(a, new ib(-b, -d, b, d))
  27560. };
  27561. var sc = w.m$ = function(a, b) {
  27562. return new wa(a, [b.Ej, b.b, b.Ej, b.jg, b.r, b.jg, b.r, b.b], ka)
  27563. };
  27564. wa.prototype.Y8 = function(a, b) {
  27565. for (var d = this.ze, e = this.Oj, f = Infinity, g = -Infinity, h = Infinity, k = -Infinity, m = 0; m < d.length; m += 2) {
  27566. var n = d[m],
  27567. q = d[m + 1],
  27568. r = a.x + n * b.x - q * b.y,
  27569. n = a.y + n * b.y + q * b.x;
  27570. e[m] = r;
  27571. e[m + 1] = n;
  27572. f = X(f, r);
  27573. g = aa(g, r);
  27574. h = X(h, n);
  27575. k = aa(k, n)
  27576. }
  27577. this.Cb = f;
  27578. this.Bb = h;
  27579. this.Db = g;
  27580. this.Eb = k
  27581. };
  27582. wa.prototype.X8 = function(a, b) {
  27583. for (var d = this.uO, e = this.Nj, f = 0; f < d.length; f++) {
  27584. var g = ba(d[f].ha, b);
  27585. e[f].ha = g;
  27586. e[f].D = T(a, g) + d[f].D
  27587. }
  27588. };
  27589. wa.prototype.nG = function(a, b) {
  27590. this.X8(a, b);
  27591. this.Y8(a, b)
  27592. };
  27593. wa.prototype.PA = function(a, b) {
  27594. for (var d = this.Oj, e = a.x * d[0] + a.y * d[1], f = 2; f < d.length; f += 2) e = X(e, a.x * d[f] + a.y * d[f + 1]);
  27595. return e - b
  27596. };
  27597. wa.prototype.Vy = function(a, b) {
  27598. for (var d = this.Nj, e = 0; e < d.length; e++) {
  27599. var f = d[e].ha;
  27600. if (0 < f.x * a + f.y * b - d[e].D) return !1
  27601. }
  27602. return !0
  27603. };
  27604. wa.prototype.IO = function(a, b, d) {
  27605. for (var e = this.Nj, f = 0; f < e.length; f++) if (d = e[f].ha, !(0 > T(d, d)) && 0 < d.x * a + d.y * b - e[f].D) return !1;
  27606. return !0
  27607. };
  27608. var U = w.k$ = function(a, b) {
  27609. this.d = new G(0, 0);
  27610. this.Ze = this.$e = 0;
  27611. this.wf = new G(0, 0);
  27612. this.jg = this.l = 0;
  27613. this.RI = this.OI = Infinity;
  27614. this.Bm = this.tr = this.ur = 0;
  27615. this.Ec = null;
  27616. this.ym = [];
  27617. this.Ji = this.qm = this.Uy = this.fq = null;
  27618. this.Ok = 0;
  27619. this.H7(a);
  27620. this.L7(b);
  27621. this.hd = new G(0, 0);
  27622. this.ig(0)
  27623. };
  27624. w.Qaa = function() {
  27625. body = new U(Infinity, Infinity);
  27626. body.Ok = Infinity;
  27627. return body
  27628. };
  27629. if ("undefined" !== typeof DEBUG && DEBUG) {
  27630. var Hb = function(a, b) {
  27631. H(a.x == a.x && a.y == a.y, b)
  27632. },
  27633. Ib = function(a, b) {
  27634. H(Infinity !== Math.abs(a.x) && Infinity !== Math.abs(a.y), b)
  27635. };
  27636. U.prototype.sA = function() {
  27637. H(this.Mk === this.Mk && this.Hi === this.Hi, "Body's mass is invalid.");
  27638. H(this.Bi === this.Bi && this.fb === this.fb, "Body's moment is invalid.");
  27639. var a = this.d;
  27640. Hb(a, "Body's position is invalid.");
  27641. Ib(a, "Body's position is invalid.");
  27642. a = this.wf;
  27643. Hb(a, "Body's force is invalid.");
  27644. Ib(a, "Body's force is invalid.");
  27645. H(this.Ze === this.Ze && Infinity !== Math.abs(this.Ze), "Body's velocity is invalid.");
  27646. H(this.$e === this.$e && Infinity !== Math.abs(this.$e), "Body's velocity is invalid.");
  27647. H(this.a === this.a && Infinity !== Math.abs(this.a), "Body's angle is invalid.");
  27648. H(this.l === this.l && Infinity !== Math.abs(this.l), "Body's angular velocity is invalid.");
  27649. H(this.jg === this.jg && Infinity !== Math.abs(this.jg), "Body's torque is invalid.");
  27650. a = this.hd;
  27651. Hb(a, "Internal error: Body's rotation vector is invalid.");
  27652. Ib(a, "Internal error: Body's rotation vector is invalid.");
  27653. H(this.OI === this.OI, "Body's velocity limit is invalid.");
  27654. H(this.RI === this.RI, "Body's angular velocity limit is invalid.")
  27655. }
  27656. } else U.prototype.sA = function() {};
  27657. U.prototype.Ik = function() {
  27658. return null !== this.qm
  27659. };
  27660. U.prototype.Di = function() {
  27661. return Infinity === this.Ok
  27662. };
  27663. U.prototype.Bj = function() {
  27664. return null === this.Ec
  27665. };
  27666. U.prototype.H7 = function(a) {
  27667. H(0 < a, "Mass must be positive and non-zero.");
  27668. this.Pc();
  27669. this.Mk = a;
  27670. this.Hi = 1 / a
  27671. };
  27672. U.prototype.L7 = function(a) {
  27673. H(0 < a, "Moment of Inertia must be positive and non-zero.");
  27674. this.Pc();
  27675. this.Bi = a;
  27676. this.fb = 1 / a
  27677. };
  27678. U.prototype.dG = function(a) {
  27679. this.ym.push(a)
  27680. };
  27681. U.prototype.FR = function(a) {
  27682. H(!isNaN(a), "Internal Error: Attempting to set body's angle to NaN");
  27683. this.a = a;
  27684. this.hd.x = Math.cos(a);
  27685. this.hd.y = Math.sin(a)
  27686. };
  27687. U.prototype.ig = function(a) {
  27688. this.Pc();
  27689. this.sA();
  27690. this.FR(a)
  27691. };
  27692. U.prototype.o9 = function(a, b, d) {
  27693. var e = this.Ze * b + (a.x + this.wf.x * this.Hi) * d;
  27694. a = this.$e * b + (a.y + this.wf.y * this.Hi) * d;
  27695. var f = this.OI,
  27696. g = e * e + a * a,
  27697. f = g > f * f ? f / Math.sqrt(g) : 1;
  27698. this.Ze = e * f;
  27699. this.$e = a * f;
  27700. e = this.RI;
  27701. this.l = ea(this.l * b + this.jg * this.fb * d, -e, e);
  27702. this.sA()
  27703. };
  27704. U.prototype.q6 = function(a) {
  27705. this.d.x += (this.Ze + this.tr) * a;
  27706. this.d.y += (this.$e + this.ur) * a;
  27707. this.FR(this.a + (this.l + this.Bm) * a);
  27708. this.Bm = this.tr = this.ur = 0;
  27709. this.sA()
  27710. };
  27711. U.prototype.Xf = function(a, b) {
  27712. this.Pc();
  27713. k(this, a.x, a.y, b)
  27714. };
  27715. U.prototype.fP = function(a) {
  27716. for (var b = 0, d = this.ym.length; b < d; b++) a(this.ym[b])
  27717. };
  27718. U.prototype.eP = function(a) {
  27719. for (var b = this.Uy; b;) {
  27720. var d = b.next(this);
  27721. a(b);
  27722. b = d
  27723. }
  27724. };
  27725. U.prototype.Gi = function(a) {
  27726. return N(this.d, ba(a, this.hd))
  27727. };
  27728. U.prototype.US = function(a) {
  27729. return nc(S(a, this.d), this.hd)
  27730. };
  27731. U.prototype.f5 = function() {
  27732. var a = this.Ze * this.Ze + this.$e * this.$e,
  27733. b = this.l * this.l;
  27734. return (a ? a * this.Mk : 0) + (b ? b * this.Bi : 0)
  27735. };
  27736. var Jb = w.Naa = function(a) {
  27737. if (this.pS = a) H(!a.pq, "This static index is already associated with a dynamic index."), a.pq = this
  27738. };
  27739. Jb.prototype.P1 = function(a, b) {
  27740. if (0 < a.count) {
  27741. var d = a.A6;
  27742. this.Rn(function(a) {
  27743. d(a, new ib(a.Cb, a.Bb, a.Db, a.Eb), b)
  27744. })
  27745. }
  27746. };
  27747. var qa = w.V9 = function(a) {
  27748. Jb.call(this, a);
  27749. this.n9 = null;
  27750. this.Oq = {};
  27751. this.count = 0;
  27752. this.root = null;
  27753. this.kd = 0
  27754. };
  27755. qa.prototype = Object.create(Jb.prototype);
  27756. var qc = 0,
  27757. pc = 0;
  27758. qa.prototype.OG = function(a, b) {
  27759. var d = this.n9;
  27760. if (d) {
  27761. var e = 0.1 * (a.Db - a.Cb),
  27762. f = 0.1 * (a.Eb - a.Bb),
  27763. d = R(d(a), 0.1);
  27764. b.Cb = a.Cb + X(-e, d.x);
  27765. b.Bb = a.Bb + X(-f, d.y);
  27766. b.Db = a.Db + aa(e, d.x);
  27767. b.Eb = a.Eb + aa(f, d.y)
  27768. } else b.Cb = a.Cb, b.Bb = a.Bb, b.Db = a.Db, b.Eb = a.Eb
  27769. };
  27770. qa.prototype.$G = function() {
  27771. var a = this.pq;
  27772. return a && a.kd ? a.kd : this.kd
  27773. };
  27774. qa.prototype.dQ = function() {
  27775. this.pq && this.pq.kd ? this.pq.kd++ : this.kd++
  27776. };
  27777. da.prototype.ES = function() {
  27778. var a = this.next,
  27779. b = this.tm;
  27780. a && (a.a.Fj == this.Fj ? a.a.tm = b : a.b.tm = b);
  27781. b ? b.a.Fj == this.Fj ? b.a.next = a : b.b.next = a : this.Fj.sm = a
  27782. };
  27783. M.prototype.FO = function() {
  27784. var a = this.sm,
  27785. b;
  27786. for (this.sm = null; a;) a.a.Fj == this ? (b = a.a.next, a.b.ES()) : (b = a.b.next, a.a.ES()), a = b
  27787. };
  27788. sa.prototype.gI = function(a) {
  27789. this.ie = a;
  27790. a.parent = this
  27791. };
  27792. sa.prototype.jI = function(a) {
  27793. this.Gf = a;
  27794. a.parent = this
  27795. };
  27796. M.prototype.Ru = !0;
  27797. sa.prototype.Ru = !1;
  27798. sa.prototype.ZQ = function(a) {
  27799. return this.ie == a ? this.Gf : this.ie
  27800. };
  27801. sa.prototype.replaceChild = function(a, b) {
  27802. la(a == this.ie || a == this.Gf, "Node is not a child of parent.");
  27803. this.ie == a ? this.gI(b) : this.jI(b);
  27804. for (var d = this; d; d = d.parent) {
  27805. var e = d.ie,
  27806. f = d.Gf;
  27807. d.Cb = X(e.Cb, f.Cb);
  27808. d.Bb = X(e.Bb, f.Bb);
  27809. d.Db = aa(e.Db, f.Db);
  27810. d.Eb = aa(e.Eb, f.Eb)
  27811. }
  27812. };
  27813. sa.prototype.hG = M.prototype.hG = function() {
  27814. return (this.Db - this.Cb) * (this.Eb - this.Bb)
  27815. };
  27816. sa.prototype.sQ = M.prototype.sQ = function(a) {
  27817. return this.Cb <= a.r && a.Ej <= this.Db && this.Bb <= a.jg && a.b <= this.Eb
  27818. };
  27819. M.prototype.b2 = function(a) {
  27820. return this.Cb <= a.Cb && this.Db >= a.Db && this.Bb <= a.Bb && this.Eb >= a.Eb
  27821. };
  27822. M.prototype.update = function(a) {
  27823. var b = a.root;
  27824. return this.b2(this.Pk) ? !1 : (a.OG(this.Pk, this), b = E(b, this, a), a.root = W(b, this, a), this.FO(), this.kd = a.$G(), !0)
  27825. };
  27826. M.prototype.d1 = function(a) {
  27827. var b = a.pq;
  27828. b ? (a = b.root) && z(a, this, !0, b, null) : D(this, a, a.pS.root, null)
  27829. };
  27830. qa.prototype.Nu = function(a, b) {
  27831. var d = new M(this, a);
  27832. this.Oq[b] = d;
  27833. this.root = W(this.root, d, this);
  27834. this.count++;
  27835. d.kd = this.$G();
  27836. d.d1(this);
  27837. this.dQ()
  27838. };
  27839. qa.prototype.remove = function(a, b) {
  27840. var d = this.Oq[b];
  27841. delete this.Oq[b];
  27842. this.root = E(this.root, d, this);
  27843. this.count--;
  27844. d.FO()
  27845. };
  27846. qa.prototype.H6 = function(a) {
  27847. if (this.root) {
  27848. var b, d = this.Oq;
  27849. for (b in d) d[b].update(this);
  27850. d = (b = this.pS) && b.root;
  27851. A(this.root, this, d, a);
  27852. b && !d && this.P1(this, b);
  27853. this.dQ()
  27854. }
  27855. };
  27856. qa.prototype.A6 = function(a, b) {
  27857. this.root && J(this.root, a, b)
  27858. };
  27859. qa.prototype.count = function() {
  27860. return this.count
  27861. };
  27862. qa.prototype.Rn = function(a) {
  27863. for (var b in this.Oq) a(this.Oq[b].Pk)
  27864. };
  27865. qa.prototype.log = function() {};
  27866. var Sa = w.r$ = function() {
  27867. this.a = this.b = 0
  27868. };
  27869. Sa.prototype.Yf = function() {
  27870. return !0
  27871. };
  27872. Sa.prototype.eA = function() {
  27873. return !0
  27874. };
  27875. Sa.prototype.dA = function() {};
  27876. Sa.prototype.DR = function() {};
  27877. y.prototype.r4 = function() {
  27878. this.state = "ignore"
  27879. };
  27880. y.prototype.K4 = function() {
  27881. return "first coll" === this.state
  27882. };
  27883. y.prototype.d9 = function() {
  27884. I(this.ud, this.mr, this.lr);
  27885. I(this.Ek, this.or, this.nr);
  27886. this.or = this.nr = this.mr = this.lr = null
  27887. };
  27888. y.prototype.update = function(a, b, d, e) {
  27889. if (this.zh) for (var f = 0; f < this.zh.length; f++) for (var g = this.zh[f], h = 0; h < a.length; h++) {
  27890. var k = a[h];
  27891. k.hash === g.hash && (k.Nd = g.Nd, k.bo = g.bo)
  27892. }
  27893. this.zh = a;
  27894. this.jH = b;
  27895. this.Jd = d.Jd * e.Jd;
  27896. this.da = d.da * e.da;
  27897. this.tS = S(d.sS, e.sS);
  27898. this.a = d;
  27899. this.ud = d.body;
  27900. this.b = e;
  27901. this.Ek = e.body;
  27902. "cached" == this.state && (this.state = "first coll")
  27903. };
  27904. y.prototype.Qg = function(a, b, d) {
  27905. for (var f = this.ud, g = this.Ek, h = 0; h < this.zh.length; h++) {
  27906. var k = this.zh[h];
  27907. k.Ea = S(k.d, f.d);
  27908. k.Ga = S(k.d, g.d);
  27909. k.Ii = 1 / e(f, g, k.Ea, k.Ga, k.ha);
  27910. k.vS = 1 / e(f, g, k.Ea, k.Ga, Za(k.ha));
  27911. k.Vb = -d * X(0, k.Cu + b) / a;
  27912. k.Tu = 0;
  27913. k.zO = m(f, g, k.Ea, k.Ga, k.ha) * this.Jd
  27914. }
  27915. };
  27916. y.prototype.yh = function(a) {
  27917. if (!this.K4()) for (var b = this.ud, d = this.Ek, e = 0; e < this.zh.length; e++) {
  27918. var f = this.zh[e],
  27919. g = f.ha.x,
  27920. k = f.ha.y;
  27921. h(b, d, f.Ea, f.Ga, (g * f.Nd - k * f.bo) * a, (g * f.bo + k * f.Nd) * a)
  27922. }
  27923. };
  27924. var tc = 0,
  27925. uc = 0;
  27926. y.prototype.Xf = function() {
  27927. tc++;
  27928. for (var a = this.ud, b = this.Ek, d = this.tS, e = this.da, f = 0; f < this.zh.length; f++) {
  27929. uc++;
  27930. var k = this.zh[f],
  27931. m = k.Ii,
  27932. n = k.ha,
  27933. q = k.Ea,
  27934. r = k.Ga,
  27935. s = b.Ze - r.y * b.l - (a.Ze - q.y * a.l),
  27936. t = b.$e + r.x * b.l - (a.$e + q.x * a.l),
  27937. u = s * n.x + t * n.y,
  27938. v = (s + d.x) * -n.y + (t + d.y) * n.x,
  27939. t = k.Tu;
  27940. k.Tu = aa(t + (k.Vb - (n.x * (b.tr - r.y * b.Bm - a.tr + q.y * a.Bm) + n.y * (r.x * b.Bm + b.ur - q.x * a.Bm - a.ur))) * m, 0);
  27941. s = k.Nd;
  27942. k.Nd = aa(s + -(k.zO + u) * m, 0);
  27943. u = e * k.Nd;
  27944. m = k.bo;
  27945. k.bo = ea(m + -v * k.vS, -u, u);
  27946. u = n.x * (k.Tu - t);
  27947. t = n.y * (k.Tu - t);
  27948. g(a, -u, -t, q);
  27949. g(b, u, t, r);
  27950. s = k.Nd - s;
  27951. k = k.bo - m;
  27952. h(a, b, q, r, n.x * s - n.y * k, n.x * k + n.y * s)
  27953. }
  27954. };
  27955. y.prototype.K1 = function(a) {
  27956. a.LH(this.a.Ln, this.b.Ln).DR(this, a)
  27957. };
  27958. y.prototype.next = function(a) {
  27959. return this.ud == a ? this.lr : this.nr
  27960. };
  27961. var oc = 0,
  27962. ta = [],
  27963. Gb = 0;
  27964. kb.prototype.Jg = 0;
  27965. lb.prototype.Jg = 1;
  27966. wa.prototype.Jg = 2;
  27967. kb.prototype.xG = [function(a, b) {
  27968. var d = x(a.$g, b.$g, a.r, b.r);
  27969. return d ? [d] : ta
  27970. }, function(a, b) {
  27971. var d = b.Xe,
  27972. e = a.$g,
  27973. f = S(b.kg, d),
  27974. g = gc(T(f, S(e, d)) / Aa(f)),
  27975. d = N(d, R(f, g));
  27976. return (e = x(e, d, a.r, b.r)) ? (d = e.ha, 0 === g && 0 > T(d, b.X0) || 1 === g && 0 > T(d, b.D1) ? ta : [e]) : ta
  27977. }, function(a, b) {
  27978. for (var d = b.Nj, e = 0, f = T(d[0].ha, a.$g) - d[0].D - a.r, g = 0; g < d.length; g++) {
  27979. var h = T(d[g].ha, a.$g) - d[g].D - a.r;
  27980. if (0 < h) return ta;
  27981. h > f && (f = h, e = g)
  27982. }
  27983. var d = d[e].ha,
  27984. k = b.Oj,
  27985. m = k.length,
  27986. n = e << 1,
  27987. e = k[n],
  27988. g = k[n + 1],
  27989. h = k[(n + 2) % m],
  27990. k = k[(n + 3) % m],
  27991. m = d.x * g - d.y * e,
  27992. n = d.x * k - d.y * h,
  27993. q = za(d, a.$g);
  27994. return q < n ? (f = x(a.$g, new G(h, k), a.r, 0)) ? [f] : ta : q < m ? [new F(S(a.$g, R(d, a.r + f / 2)), Qa(d), f, 0)] : (f = x(a.$g, new G(e, g), a.r, 0)) ? [f] : ta
  27995. }];
  27996. lb.prototype.xG = [null, function() {
  27997. return ta
  27998. }, function(a, b) {
  27999. var d = [],
  28000. e = b.Nj,
  28001. f = e.length,
  28002. g = T(a.Qj, a.Xe),
  28003. h = b.PA(a.Qj, g) - a.r,
  28004. g = b.PA(Qa(a.Qj), -g) - a.r;
  28005. if (0 < g || 0 < h) return ta;
  28006. var k = 0,
  28007. m = u(a, e[0].ha, e[0].D);
  28008. if (0 < m) return ta;
  28009. for (var n = 0; n < f; n++) {
  28010. var q = u(a, e[n].ha, e[n].D);
  28011. if (0 < q) return ta;
  28012. q > m && (m = q, k = n)
  28013. }
  28014. e = Qa(e[k].ha);
  28015. n = N(a.Xe, R(e, a.r));
  28016. q = N(a.kg, R(e, a.r));
  28017. b.Vy(n.x, n.y) && d.push(new F(n, e, m, ca(a.Kd, 0)));
  28018. b.Vy(q.x, q.y) && d.push(new F(q, e, m, ca(a.Kd, 1)));
  28019. if (h >= m || g >= m) h > g ? s(d, a, b, h, 1) : s(d, a, b, g, -1);
  28020. if (0 === d.length) {
  28021. h = 2 * k;
  28022. g = b.Oj;
  28023. m = new G(g[h], g[h + 1]);
  28024. if ((k = x(a.Xe, m, a.r, 0)) || (k = x(a.kg, m, a.r, 0))) return [k];
  28025. f *= 2;
  28026. f = new G(g[(h + 2) % f], g[(h + 3) % f]);
  28027. if ((k = x(a.Xe, f, a.r, 0)) || (k = x(a.kg, f, a.r, 0))) return [k]
  28028. }
  28029. return d
  28030. }];
  28031. wa.prototype.xG = [null, null, function(a, b) {
  28032. var d = B(b, a.Nj);
  28033. if (-1 == d) return ta;
  28034. var e = Gb,
  28035. f = B(a, b.Nj);
  28036. if (-1 == f) return ta;
  28037. var g = Gb;
  28038. return e > g ? v(a, b, a.Nj[d].ha, e) : v(a, b, Qa(b.Nj[f].ha), g)
  28039. }];
  28040. var vc = w.GO = function(a, b) {
  28041. H(a.Jg <= b.Jg, "Collided shapes must be sorted by type");
  28042. return a.xG[b.Jg](a, b)
  28043. },
  28044. Ub = new Sa,
  28045. fa = w.aW = function() {
  28046. this.PO = this.kd = 0;
  28047. this.Oy = [];
  28048. this.dI = [];
  28049. this.kS = [];
  28050. this.Bv = new qa(null);
  28051. this.dq = new qa(this.Bv);
  28052. this.ou = [];
  28053. this.Jn = {};
  28054. this.uu = [];
  28055. this.Rq = 0;
  28056. this.wG = {};
  28057. this.l2 = Ub;
  28058. this.XH = [];
  28059. this.vQ = 10;
  28060. this.gravity = ka;
  28061. this.xu = 1;
  28062. this.q4 = 0;
  28063. this.EI = Infinity;
  28064. this.X1 = 0.1;
  28065. this.S1 = Math.pow(0.9, 60);
  28066. this.T1 = 3;
  28067. this.oS = new U(Infinity, Infinity);
  28068. this.oS.Ok = Infinity;
  28069. this.GO = this.G5()
  28070. };
  28071. fa.prototype.$0 = function(a, b, d, e) {
  28072. t(this);
  28073. this.N6();
  28074. var f = new Sa;
  28075. f.a = 1;
  28076. f.b = 2;
  28077. a && (f.Yf = a);
  28078. b && (f.eA = b);
  28079. d && (f.dA = d);
  28080. e && (f.DR = e);
  28081. this.wG[ca(1, 2)] = f
  28082. };
  28083. fa.prototype.N6 = function() {
  28084. t(this);
  28085. delete this.wG[ca(1, 2)]
  28086. };
  28087. fa.prototype.LH = function(a, b) {
  28088. return this.wG[ca(a, b)] || this.l2
  28089. };
  28090. fa.prototype.dG = function(a) {
  28091. var b = a.body;
  28092. if (b.Di()) return this.oO(a);
  28093. H(!a.Ec, "This shape is already added to a space and cannot be added to another.");
  28094. t(this);
  28095. b.Pc();
  28096. b.dG(a);
  28097. a.update(b.d, b.hd);
  28098. this.dq.Nu(a, a.Kd);
  28099. a.Ec = this;
  28100. return a
  28101. };
  28102. fa.prototype.oO = function(a) {
  28103. H(!a.Ec, "This shape is already added to a space and cannot be added to another.");
  28104. t(this);
  28105. var b = a.body;
  28106. b.dG(a);
  28107. a.update(b.d, b.hd);
  28108. this.Bv.Nu(a, a.Kd);
  28109. a.Ec = this;
  28110. return a
  28111. };
  28112. fa.prototype.a9 = function(a) {
  28113. delete this.Jn[ca(a.a.Kd, a.b.Kd)];
  28114. Ha(this.ou, a)
  28115. };
  28116. fa.prototype.fP = function(a) {
  28117. this.Qz();
  28118. this.dq.Rn(a);
  28119. this.Bv.Rn(a);
  28120. this.LA(!0)
  28121. };
  28122. fa.prototype.eP = function(a) {
  28123. this.Qz();
  28124. for (var b = this.uu, d = 0; d < b.length; d++) a(b[d]);
  28125. this.LA(!0)
  28126. };
  28127. fa.prototype.kO = function(a) {
  28128. H(!a.Bj(), "Internal error: Attempting to activate a rogue body.");
  28129. if (this.Rq) - 1 === this.dI.indexOf(a) && this.dI.push(a);
  28130. else {
  28131. this.Oy.push(a);
  28132. for (var b = 0; b < a.ym.length; b++) {
  28133. var d = a.ym[b];
  28134. this.Bv.remove(d, d.Kd);
  28135. this.dq.Nu(d, d.Kd)
  28136. }
  28137. for (b = a.fq; b; b = b.next(a)) if (d = b.ud, a === d || d.Di()) {
  28138. var d = b.a,
  28139. e = b.b;
  28140. this.Jn[ca(d.Kd, e.Kd)] = b;
  28141. b.kd = this.kd;
  28142. b.jH = this.LH(d.Ln, e.Ln);
  28143. this.ou.push(b)
  28144. }
  28145. for (b = a.Uy; b; b = b.Ji) d = b.a, (a === d || d.Di()) && this.uu.push(b)
  28146. }
  28147. };
  28148. fa.prototype.g2 = function(a) {
  28149. H(!a.Bj(), "Internal error: Attempting to deactivate a rogue body.");
  28150. Ha(this.Oy, a);
  28151. for (var b = 0; b < a.ym.length; b++) {
  28152. var d = a.ym[b];
  28153. this.dq.remove(d, d.Kd);
  28154. this.Bv.Nu(d, d.Kd)
  28155. }
  28156. for (d = a.fq; d; d = d.next(a)) b = d.ud, (a === b || b.Di()) && this.a9(d);
  28157. for (d = a.Uy; d; d = d.Ji) b = d.a, (a === b || b.Di()) && Ha(this.uu, d)
  28158. };
  28159. U.prototype.Pc = function() {
  28160. if (!this.Bj()) {
  28161. this.Ok = 0;
  28162. var a = this ? this.qm : null;
  28163. if (a && a.Ik()) {
  28164. H(!a.Bj(), "Internal Error: componentActivate() called on a rogue body.");
  28165. for (var b = a.Ec, d = a; d;) {
  28166. var e = d.Ji;
  28167. d.Ok = 0;
  28168. d.qm = null;
  28169. d.Ji = null;
  28170. b.kO(d);
  28171. d = e
  28172. }
  28173. Ha(b.kS, a)
  28174. }
  28175. }
  28176. };
  28177. U.prototype.iR = function(a) {
  28178. la(null === (a.ud === this ? a.lr : a.nr), "Internal Error: Dangling contact graph pointers detected. (A)");
  28179. la(null === (a.ud === this ? a.mr : a.or), "Internal Error: Dangling contact graph pointers detected. (B)");
  28180. var b = this.fq;
  28181. la(null === b || null === (b.ud === this ? b.mr : b.or), "Internal Error: Dangling contact graph pointers detected. (C)");
  28182. a.ud === this ? a.lr = b : a.nr = b;
  28183. b && (b.ud === this ? b.mr = a : b.or = a);
  28184. this.fq = a
  28185. };
  28186. fa.prototype.v6 = function(a) {
  28187. for (var b = Infinity !== this.EI, d = this.Oy, e = 0; e < d.length; e++) {
  28188. var f = d[e];
  28189. la(null === f.Ji, "Internal Error: Dangling next pointer detected in contact graph.");
  28190. la(null === f.qm, "Internal Error: Dangling root pointer detected in contact graph.")
  28191. }
  28192. if (b) for (var g = (e = this.q4) ? e * e : Aa(this.gravity) * a * a, e = 0; e < d.length; e++) f = d[e], f.Ok = f.f5() > (g ? f.Mk * g : 0) ? 0 : f.Ok + a;
  28193. for (var g = this.ou, e = 0, h = g.length; e < h; e++) {
  28194. var k = g[e],
  28195. f = k.ud;
  28196. a = k.Ek;
  28197. b && ((a.Bj() && !a.Di() || f.Ik()) && f.Pc(), (f.Bj() && !f.Di() || a.Ik()) && a.Pc());
  28198. f.iR(k);
  28199. a.iR(k)
  28200. }
  28201. if (b) {
  28202. b = this.uu;
  28203. for (e = 0; e < b.length; e++) a = b[e], f = a.a, a = a.b, a.Bj() && !a.Di() && f.Pc(), f.Bj() && !f.Di() && a.Pc();
  28204. for (e = 0; e < d.length;) {
  28205. f = d[e];
  28206. if (null === (f ? f.qm : null)) {
  28207. r(f, f);
  28208. a: {
  28209. for (b = f; b; b = b.Ji) if (b.Ok < this.EI) {
  28210. b = !0;
  28211. break a
  28212. }
  28213. b = !1
  28214. }
  28215. if (!b) {
  28216. this.kS.push(f);
  28217. for (b = f; b; b = b.Ji) this.g2(b);
  28218. continue
  28219. }
  28220. }
  28221. e++;
  28222. f.qm = null;
  28223. f.Ji = null
  28224. }
  28225. }
  28226. };
  28227. fa.prototype.e7 = function() {
  28228. for (var a = 0; a < this.XH.length; a++) this.XH[a]();
  28229. this.XH = []
  28230. };
  28231. fa.prototype.Qz = function() {
  28232. this.Rq++
  28233. };
  28234. fa.prototype.LA = function(a) {
  28235. this.Rq--;
  28236. H(0 <= this.Rq, "Internal Error: Space lock underflow.");
  28237. if (!this.Rq && a) {
  28238. a = this.dI;
  28239. for (var b = 0; b < a.length; b++) this.kO(a[b]);
  28240. a.length = 0;
  28241. this.e7()
  28242. }
  28243. };
  28244. fa.prototype.G5 = function() {
  28245. var a = this;
  28246. return function(b, d) {
  28247. if (b.Cb <= d.Db && d.Cb <= b.Db && b.Bb <= d.Eb && d.Bb <= b.Eb && b.body !== d.body && (!b.group || b.group !== d.group) && b.JH & d.JH) {
  28248. var e = a.LH(b.Ln, d.Ln),
  28249. f = b.CR || d.CR;
  28250. if (!f || e !== Ub) {
  28251. if (b.Jg > d.Jg) {
  28252. var g = b;
  28253. b = d;
  28254. d = g
  28255. }
  28256. g = vc(b, d);
  28257. if (0 !== g.length) {
  28258. var h = ca(b.Kd, d.Kd),
  28259. k = a.Jn[h];
  28260. k || (k = a.Jn[h] = new y(b, d));
  28261. k.update(g, e, b, d);
  28262. "first coll" != k.state || e.Yf(k, a) || k.r4();
  28263. "ignore" !== k.state && e.eA(k, a) && !f ? a.ou.push(k) : (k.zh = null, "ignore" !== k.state && (k.state = "normal"));
  28264. k.kd = a.kd
  28265. }
  28266. }
  28267. }
  28268. }
  28269. };
  28270. fa.prototype.w1 = function(a) {
  28271. var b = this.kd - a.kd,
  28272. d = a.ud,
  28273. e = a.Ek;
  28274. if ((d.Di() || d.Ik()) && (e.Di() || e.Ik())) return !0;
  28275. 1 <= b && "cached" != a.state && (a.K1(this), a.state = "cached");
  28276. return b >= this.T1 ? (a.zh = null, !1) : !0
  28277. };
  28278. fa.prototype.step = function(a) {
  28279. if (0 !== a) {
  28280. H(0 === ka.x && 0 === ka.y, "vzero is invalid");
  28281. this.kd++;
  28282. var b = this.PO;
  28283. this.PO = a;
  28284. for (var d = this.Oy, e = this.uu, f = this.ou, g = 0; g < f.length; g++) {
  28285. var h = f[g];
  28286. h.state = "normal";
  28287. h.ud.Ik() || h.Ek.Ik() || h.d9()
  28288. }
  28289. f.length = 0;
  28290. this.Qz();
  28291. for (g = 0; g < d.length; g++) h = d[g], h.q6(a);
  28292. this.dq.Rn(q);
  28293. this.dq.H6(this.GO);
  28294. this.LA(!1);
  28295. this.v6(a);
  28296. this.Qz();
  28297. for (var k in this.Jn) this.w1(this.Jn[k]) || delete this.Jn[k];
  28298. h = this.X1;
  28299. k = 1 - Math.pow(this.S1, a);
  28300. Oa = L.we();
  28301. for (g = 0; g < f.length; g++) f[g].Qg(a, h, k);
  28302. for (g = 0; g < e.length; g++) h = e[g], h.eA(this), h.Qg(a);
  28303. k = Math.pow(this.xu, a);
  28304. for (var m = this.gravity, g = 0; g < d.length; g++) h = d[g], h.o9(m, k, a);
  28305. a = 0 === b ? 0 : a / b;
  28306. for (g = 0; g < f.length; g++) f[g].yh(a);
  28307. for (g = 0; g < e.length; g++) h = e[g], h.yh(a);
  28308. for (g = 0; g < this.vQ; g++) {
  28309. for (a = 0; a < f.length; a++) f[a].Xf();
  28310. for (a = 0; a < e.length; a++) e[a].Xf()
  28311. }
  28312. for (g = 0; g < e.length; g++) e[g].dA(this);
  28313. for (g = 0; g < f.length; g++) h = f[g], h.jH.dA(h, this);
  28314. this.LA(!0)
  28315. }
  28316. };
  28317. var Q = w.s$ = function(a, b) {
  28318. this.a = a;
  28319. this.b = b;
  28320. this.N5 = this.M5 = this.Ec = null;
  28321. this.pm = Infinity;
  28322. this.Vn = Math.pow(0.9, 60);
  28323. this.io = Infinity
  28324. };
  28325. Q.prototype.Y0 = function() {
  28326. this.a && this.a.Pc();
  28327. this.b && this.b.Pc()
  28328. };
  28329. Q.prototype.Qg = function() {};
  28330. Q.prototype.yh = function() {};
  28331. Q.prototype.Xf = function() {};
  28332. Q.prototype.eA = function() {};
  28333. Q.prototype.dA = function() {};
  28334. Q.prototype.next = function(a) {
  28335. return this.a === a ? this.M5 : this.N5
  28336. };
  28337. var mb = w.xV = function(a, b, d, e) {
  28338. Q.call(this, a, b);
  28339. this.uj = d;
  28340. this.Hg = e;
  28341. a = a ? N(a.d, ba(d, a.hd)) : d;
  28342. b = b ? N(b.d, ba(e, b.hd)) : e;
  28343. this.Cu = Fa(S(b, a));
  28344. la(0 < this.Cu, "You created a 0 length pin joint. A pivot joint will be much more stable.");
  28345. this.ha = this.Ea = this.Ga = null;
  28346. this.Vb = this.Nd = this.Iq = this.Ii = 0
  28347. };
  28348. mb.prototype = Object.create(Q.prototype);
  28349. mb.prototype.Qg = function(a) {
  28350. var b = this.a,
  28351. d = this.b;
  28352. this.Ea = ba(this.uj, b.hd);
  28353. this.Ga = ba(this.Hg, d.hd);
  28354. var f = S(N(d.d, this.Ga), N(b.d, this.Ea)),
  28355. g = Fa(f);
  28356. this.ha = R(f, 1 / (g ? g : Infinity));
  28357. this.Ii = 1 / e(b, d, this.Ea, this.Ga, this.ha);
  28358. b = this.io;
  28359. this.Vb = ea(-(1 - Math.pow(this.Vn, a)) * (g - this.Cu) / a, -b, b);
  28360. this.Iq = this.pm * a
  28361. };
  28362. mb.prototype.yh = function(a) {
  28363. a = R(this.ha, this.Nd * a);
  28364. h(this.a, this.b, this.Ea, this.Ga, a.x, a.y)
  28365. };
  28366. mb.prototype.Xf = function() {
  28367. var a = this.a,
  28368. b = this.b,
  28369. d = this.ha,
  28370. e = (this.Vb - m(a, b, this.Ea, this.Ga, d)) * this.Ii,
  28371. f = this.Nd;
  28372. this.Nd = ea(f + e, -this.Iq, this.Iq);
  28373. e = this.Nd - f;
  28374. h(a, b, this.Ea, this.Ga, d.x * e, d.y * e)
  28375. };
  28376. var nb = w.$V = function(a, b, d, e, f, g) {
  28377. Q.call(this, a, b);
  28378. this.uj = d;
  28379. this.Hg = e;
  28380. this.min = f;
  28381. this.max = g;
  28382. this.Ea = this.Ga = this.ha = null;
  28383. this.Vb = this.Nd = this.Iq = this.Ii = 0
  28384. };
  28385. nb.prototype = Object.create(Q.prototype);
  28386. nb.prototype.Qg = function(a) {
  28387. var b = this.a,
  28388. d = this.b;
  28389. this.Ea = ba(this.uj, b.hd);
  28390. this.Ga = ba(this.Hg, d.hd);
  28391. var f = S(N(d.d, this.Ga), N(b.d, this.Ea)),
  28392. g = Fa(f),
  28393. h = 0;
  28394. g > this.max ? (h = g - this.max, this.ha = Tb(f)) : g < this.min ? (h = this.min - g, this.ha = Qa(Tb(f))) : (this.ha = ka, this.Nd = 0);
  28395. this.Ii = 1 / e(b, d, this.Ea, this.Ga, this.ha);
  28396. b = this.io;
  28397. this.Vb = ea(-(1 - Math.pow(this.Vn, a)) * h / a, -b, b);
  28398. this.Iq = this.pm * a
  28399. };
  28400. nb.prototype.yh = function(a) {
  28401. a *= this.Nd;
  28402. h(this.a, this.b, this.Ea, this.Ga, this.ha.x * a, this.ha.y * a)
  28403. };
  28404. nb.prototype.Xf = function() {
  28405. if (0 !== this.ha.x || 0 !== this.ha.y) {
  28406. var a = this.a,
  28407. b = this.b,
  28408. d = this.ha,
  28409. e = n(a, b, this.Ea, this.Ga),
  28410. e = T(e, d),
  28411. e = (this.Vb - e) * this.Ii,
  28412. f = this.Nd;
  28413. this.Nd = ea(f + e, -this.Iq, 0);
  28414. e = this.Nd - f;
  28415. h(a, b, this.Ea, this.Ga, d.x * e, d.y * e)
  28416. }
  28417. };
  28418. var ob = w.yV = function(a, b, d, e) {
  28419. Q.call(this, a, b);
  28420. "undefined" === typeof e && (e = d, d = a ? a.US(e) : e, e = b ? b.US(e) : e);
  28421. this.uj = d;
  28422. this.Hg = e;
  28423. this.Ea = this.Ga = ka;
  28424. this.Vu = new G(0, 0);
  28425. this.Wu = new G(0, 0);
  28426. this.gb = ka;
  28427. this.Uu = 0;
  28428. this.Vb = ka
  28429. };
  28430. ob.prototype = Object.create(Q.prototype);
  28431. ob.prototype.Qg = function(a) {
  28432. var b = this.a,
  28433. e = this.b;
  28434. this.Ea = ba(this.uj, b.hd);
  28435. this.Ga = ba(this.Hg, e.hd);
  28436. d(b, e, this.Ea, this.Ga, this.Vu, this.Wu);
  28437. this.Uu = this.pm * a;
  28438. b = S(N(e.d, this.Ga), N(b.d, this.Ea));
  28439. this.Vb = Ya(R(b, -(1 - Math.pow(this.Vn, a)) / a), this.io)
  28440. };
  28441. ob.prototype.yh = function(a) {
  28442. h(this.a, this.b, this.Ea, this.Ga, this.gb.x * a, this.gb.y * a)
  28443. };
  28444. ob.prototype.Xf = function() {
  28445. var a = this.a,
  28446. b = this.b,
  28447. d = n(a, b, this.Ea, this.Ga),
  28448. d = S(this.Vb, d),
  28449. e = this.Wu,
  28450. d = new G(T(d, this.Vu), T(d, e)),
  28451. e = this.gb;
  28452. this.gb = Ya(N(this.gb, d), this.Uu);
  28453. h(a, b, this.Ea, this.Ga, this.gb.x - e.x, this.gb.y - e.y)
  28454. };
  28455. var ab = w.gU = function(a, b, d, e, f) {
  28456. Q.call(this, a, b);
  28457. this.VP = d;
  28458. this.WP = e;
  28459. this.n4 = Za($a(S(e, d)));
  28460. this.Hg = f;
  28461. this.XP = null;
  28462. this.tu = 0;
  28463. this.Ea = this.Ga = null;
  28464. this.Vu = new G(0, 0);
  28465. this.Wu = new G(0, 0);
  28466. this.gb = ka;
  28467. this.Uu = 0;
  28468. this.Vb = null
  28469. };
  28470. ab.prototype = Object.create(Q.prototype);
  28471. ab.prototype.Qg = function(a) {
  28472. var b = this.a,
  28473. e = this.b,
  28474. f = b.Gi(this.VP),
  28475. g = b.Gi(this.WP),
  28476. h = ba(this.n4, b.hd),
  28477. k = T(f, h);
  28478. this.XP = h;
  28479. this.Ga = ba(this.Hg, e.hd);
  28480. var m = za(N(e.d, this.Ga), h);
  28481. m <= za(f, h) ? (this.tu = 1, this.Ea = S(f, b.d)) : m >= za(g, h) ? (this.tu = -1, this.Ea = S(g, b.d)) : (this.tu = 0, this.Ea = S(N(R(Za(h), -m), R(h, k)), b.d));
  28482. d(b, e, this.Ea, this.Ga, this.Vu, this.Wu);
  28483. this.Uu = this.pm * a;
  28484. b = S(N(e.d, this.Ga), N(b.d, this.Ea));
  28485. this.Vb = Ya(R(b, -(1 - Math.pow(this.Vn, a)) / a), this.io)
  28486. };
  28487. ab.prototype.yh = function(a) {
  28488. h(this.a, this.b, this.Ea, this.Ga, this.gb.x * a, this.gb.y * a)
  28489. };
  28490. ab.prototype.m4 = function(a) {
  28491. var b = this.XP;
  28492. a = 0 < this.tu * za(a, b) ? a : mc(a, b);
  28493. return Ya(a, this.Uu)
  28494. };
  28495. ab.prototype.Xf = function() {
  28496. var a = this.a,
  28497. b = this.b,
  28498. d = n(a, b, this.Ea, this.Ga),
  28499. d = S(this.Vb, d),
  28500. e = this.Wu,
  28501. d = new G(T(d, this.Vu), T(d, e)),
  28502. e = this.gb;
  28503. this.gb = this.m4(N(e, d));
  28504. h(a, b, this.Ea, this.Ga, this.gb.x - e.x, this.gb.y - e.y)
  28505. };
  28506. var pb = w.D$ = function(a, d, e, f, g, h, k) {
  28507. Q.call(this, a, d);
  28508. this.uj = e;
  28509. this.Hg = f;
  28510. this.X6 = g;
  28511. this.FI = h;
  28512. this.xu = k;
  28513. this.v8 = b;
  28514. this.II = this.QS = 0;
  28515. this.Ea = this.Ga = null;
  28516. this.Ii = 0;
  28517. this.ha = null
  28518. };
  28519. pb.prototype = Object.create(Q.prototype);
  28520. pb.prototype.Qg = function(a) {
  28521. var b = this.a,
  28522. d = this.b;
  28523. this.Ea = ba(this.uj, b.hd);
  28524. this.Ga = ba(this.Hg, d.hd);
  28525. var f = S(N(d.d, this.Ga), N(b.d, this.Ea)),
  28526. g = Fa(f);
  28527. this.ha = R(f, 1 / (g ? g : Infinity));
  28528. f = e(b, d, this.Ea, this.Ga, this.ha);
  28529. la(0 !== f, "Unsolvable this.");
  28530. this.Ii = 1 / f;
  28531. this.II = 0;
  28532. this.QS = 1 - Math.exp(-this.xu * a * f);
  28533. g = this.v8(this, g);
  28534. h(b, d, this.Ea, this.Ga, this.ha.x * g * a, this.ha.y * g * a)
  28535. };
  28536. pb.prototype.yh = function() {};
  28537. pb.prototype.Xf = function() {
  28538. var a = this.a,
  28539. b = this.b,
  28540. d = m(a, b, this.Ea, this.Ga, this.ha),
  28541. e = (this.II - d) * this.QS;
  28542. this.II = d + e;
  28543. e *= this.Ii;
  28544. h(a, b, this.Ea, this.Ga, this.ha.x * e, this.ha.y * e)
  28545. };
  28546. var Kb = w.C$ = function(b, d, e, f, g) {
  28547. Q.call(this, b, d);
  28548. this.W6 = e;
  28549. this.FI = f;
  28550. this.xu = g;
  28551. this.w8 = a;
  28552. this.dg = this.SS = this.JI = 0
  28553. };
  28554. Kb.prototype = Object.create(Q.prototype);
  28555. Kb.prototype.Qg = function(a) {
  28556. var b = this.a,
  28557. d = this.b,
  28558. e = b.fb + d.fb;
  28559. la(0 !== e, "Unsolvable spring.");
  28560. this.dg = 1 / e;
  28561. this.SS = 1 - Math.exp(-this.xu * a * e);
  28562. this.JI = 0;
  28563. a *= this.w8(this, b.a - d.a);
  28564. b.l -= a * b.fb;
  28565. d.l += a * d.fb
  28566. };
  28567. Kb.prototype.Xf = function() {
  28568. var a = this.a,
  28569. b = this.b,
  28570. d = a.l - b.l,
  28571. e = (this.JI - d) * this.SS;
  28572. this.JI = d + e;
  28573. d = e * this.dg;
  28574. a.l += d * a.fb;
  28575. b.l -= d * b.fb
  28576. };
  28577. var qb = w.Faa = function(a, b, d, e) {
  28578. Q.call(this, a, b);
  28579. this.min = d;
  28580. this.max = e;
  28581. this.dg = this.Vb = this.gg = this.gb = 0
  28582. };
  28583. qb.prototype = Object.create(Q.prototype);
  28584. qb.prototype.Qg = function(a) {
  28585. var b = this.a,
  28586. d = this.b,
  28587. e = d.a - b.a,
  28588. f = 0;
  28589. e > this.max ? f = this.max - e : e < this.min && (f = this.min - e);
  28590. this.dg = 1 / (1 / b.Bi + 1 / d.Bi);
  28591. b = this.io;
  28592. this.Vb = ea(-(1 - Math.pow(this.Vn, a)) * f / a, -b, b);
  28593. this.gg = this.pm * a;
  28594. this.Vb || (this.gb = 0)
  28595. };
  28596. qb.prototype.yh = function(a) {
  28597. var b = this.a,
  28598. d = this.b;
  28599. a *= this.gb;
  28600. b.l -= a * b.fb;
  28601. d.l += a * d.fb
  28602. };
  28603. qb.prototype.Xf = function() {
  28604. if (this.Vb) {
  28605. var a = this.a,
  28606. b = this.b,
  28607. d = -(this.Vb + (b.l - a.l)) * this.dg,
  28608. e = this.gb;
  28609. this.gb = 0 > this.Vb ? ea(e + d, 0, this.gg) : ea(e + d, -this.gg, 0);
  28610. d = this.gb - e;
  28611. a.l -= d * a.fb;
  28612. b.l += d * b.fb
  28613. }
  28614. };
  28615. var rb = w.Eaa = function(a, b, d, e) {
  28616. Q.call(this, a, b);
  28617. this.Re = 0;
  28618. this.UH = d;
  28619. this.kR = e;
  28620. this.Re = (b ? b.a : 0) - (a ? a.a : 0);
  28621. this.dg = this.Vb = this.gb = this.gg = 0
  28622. };
  28623. rb.prototype = Object.create(Q.prototype);
  28624. rb.prototype.Qg = function(a) {
  28625. var b = this.a,
  28626. d = this.b,
  28627. e = this.UH,
  28628. f = this.kR,
  28629. g = d.a - b.a,
  28630. h = this.Re - g,
  28631. k = 0;
  28632. 0 < h * f ? k = h : this.Re = Math.floor((g - e) / f) * f + e;
  28633. this.dg = 1 / (b.fb + d.fb);
  28634. b = this.io;
  28635. this.Vb = ea(-(1 - Math.pow(this.Vn, a)) * k / a, -b, b);
  28636. this.gg = this.pm * a;
  28637. this.Vb || (this.gb = 0)
  28638. };
  28639. rb.prototype.yh = function(a) {
  28640. var b = this.a,
  28641. d = this.b;
  28642. a *= this.gb;
  28643. b.l -= a * b.fb;
  28644. d.l += a * d.fb
  28645. };
  28646. rb.prototype.Xf = function() {
  28647. if (this.Vb) {
  28648. var a = this.a,
  28649. b = this.b,
  28650. d = this.kR,
  28651. e = -(this.Vb + (b.l - a.l)) * this.dg,
  28652. f = this.gb;
  28653. this.gb = ea((f + e) * d, 0, this.gg * Math.abs(d)) / d;
  28654. e = this.gb - f;
  28655. a.l -= e * a.fb;
  28656. b.l += e * b.fb
  28657. }
  28658. };
  28659. var bb = w.O$ = function(a, b, d, e) {
  28660. Q.call(this, a, b);
  28661. this.UH = d;
  28662. this.hA = e;
  28663. this.iA = 1 / e;
  28664. this.dg = this.Vb = this.gg = this.gb = 0
  28665. };
  28666. bb.prototype = Object.create(Q.prototype);
  28667. bb.prototype.Qg = function(a) {
  28668. var b = this.a,
  28669. d = this.b;
  28670. this.dg = 1 / (b.fb * this.iA + this.hA * d.fb);
  28671. var e = this.io;
  28672. this.Vb = ea(-(1 - Math.pow(this.Vn, a)) * (d.a * this.hA - b.a - this.UH) / a, -e, e);
  28673. this.gg = this.pm * a
  28674. };
  28675. bb.prototype.yh = function(a) {
  28676. var b = this.a,
  28677. d = this.b;
  28678. a *= this.gb;
  28679. b.l -= a * b.fb * this.iA;
  28680. d.l += a * d.fb
  28681. };
  28682. bb.prototype.Xf = function() {
  28683. var a = this.a,
  28684. b = this.b,
  28685. d = (this.Vb - (b.l * this.hA - a.l)) * this.dg,
  28686. e = this.gb;
  28687. this.gb = ea(e + d, -this.gg, this.gg);
  28688. d = this.gb - e;
  28689. a.l -= d * a.fb * this.iA;
  28690. b.l += d * b.fb
  28691. };
  28692. bb.prototype.U7 = function(a) {
  28693. this.hA = a;
  28694. this.iA = 1 / a;
  28695. this.Y0()
  28696. };
  28697. var sb = w.Kaa = function(a, b, d) {
  28698. Q.call(this, a, b);
  28699. this.C6 = d;
  28700. this.dg = this.gg = this.gb = 0
  28701. };
  28702. sb.prototype = Object.create(Q.prototype);
  28703. sb.prototype.Qg = function(a) {
  28704. this.dg = 1 / (this.a.fb + this.b.fb);
  28705. this.gg = this.pm * a
  28706. };
  28707. sb.prototype.yh = function(a) {
  28708. var b = this.a,
  28709. d = this.b;
  28710. a *= this.gb;
  28711. b.l -= a * b.fb;
  28712. d.l += a * d.fb
  28713. };
  28714. sb.prototype.Xf = function() {
  28715. var a = this.a,
  28716. b = this.b,
  28717. d = -(b.l - a.l + this.C6) * this.dg,
  28718. e = this.gb;
  28719. this.gb = ea(e + d, -this.gg, this.gg);
  28720. d = this.gb - e;
  28721. a.l -= d * a.fb;
  28722. b.l += d * b.fb
  28723. }
  28724. })();
  28725. c.uB = c.il.extend({
  28726. jk: null,
  28727. ut: 0,
  28728. Xm: 0,
  28729. nc: null,
  28730. ob: "Loading",
  28731. K: function() {
  28732. var a = this,
  28733. b = 200,
  28734. d = a.XC = c.md.create(c.color(32, 32, 32, 255));
  28735. d.J(c.Rj.Py);
  28736. a.M(d, 0);
  28737. var e = -b / 2 + 100;
  28738. c.X.Qq("res/loading.png", {
  28739. Bz: !1
  28740. }, function(d, e) {
  28741. // b = e.height;
  28742. a.TD(e, c.Rj.jq)
  28743. });
  28744. var e = -b / 2 - 10,
  28745. f = a.nc = c.Z.create("Loading... 0%", "Arial", 14);
  28746. f.J(c.Ij(c.Rj.jq, c.d(0, e)));
  28747. f.Va(c.color(180, 180, 180));
  28748. d.M(this.nc, 10);
  28749. return !0
  28750. },
  28751. TD: function(a, b) {
  28752. var d = new c.ia;
  28753. d.Ld(a);
  28754. d.$b();
  28755. d = c.P.create(d);
  28756. d.Wk(c.wb());
  28757. d.x = b.x;
  28758. d.y = b.y;
  28759. this.XC.M(d, 10)
  28760. },
  28761. ca: function() {
  28762. c.t.prototype.ca.call(this);
  28763. this.po(this.St, 0.3)
  28764. },
  28765. xb: function() {
  28766. c.t.prototype.xb.call(this);
  28767. this.nc.tc("Loading... 0%")
  28768. },
  28769. oH: function(a, b) {
  28770. "string" == typeof a && (a = [a]);
  28771. this.bI = a || [];
  28772. this.vd = b
  28773. },
  28774. St: function() {
  28775. var a = this;
  28776. a.Kv(a.St);
  28777. var b = a.bI;
  28778. a.ut = b.length;
  28779. a.Xm = 0;
  28780. c.X.load(b, function(b, e) {
  28781. a.Xm = e
  28782. }, function() {
  28783. a.vd && a.vd()
  28784. });
  28785. a.po(a.eu)
  28786. },
  28787. eu: function() {
  28788. var a = this.Xm,
  28789. b = this.ut,
  28790. d;
  28791. d = Math.min(a / b * 100 | 0, 100);
  28792. this.nc.tc("Loading... " + d + "%");
  28793. a >= b && this.Kv(this.eu)
  28794. }
  28795. });
  28796. c.uB.fA = function(a, b) {
  28797. var d = c;
  28798. d.Fi || (d.Fi = new c.uB, d.Fi.K());
  28799. d.Fi.oH(a, b);
  28800. c.L.rA(d.Fi);
  28801. return d.Fi
  28802. };
  28803. var Pa = Pa || {},
  28804. Ta = 0,
  28805. Ua = 0;
  28806. var O = {
  28807. start: "res/start.jpg",
  28808. background: "res/background.jpg",
  28809. M8: "res/succeed.png",
  28810. Mea: "res/failed.png",
  28811. OH: "res/notify.png",
  28812. x1: "res/arrow.png",
  28813. TS: "res/wheel.png",
  28814. BO: "res/car.png",
  28815. bQ: "res/huo.png",
  28816. Q1: "res/collision.png",
  28817. Tz: "res/notclick.png",
  28818. mS: "res/start.png",
  28819. pO: "res/again.png",
  28820. r2: "res/down0.png",
  28821. B5: "res/left0.png",
  28822. c7: "res/right0.png",
  28823. g9: "res/up0.png",
  28824. OH: "res/notify.png",
  28825. V4: "res/jt.png"
  28826. },
  28827. Va = [],
  28828. ua;
  28829. for (ua in O) Va.push(O[ua]);
  28830. var Wa, Xa, cb, db, eb, Ma = null,
  28831. fb = null,
  28832. L = null,
  28833. gb = null,
  28834. P = null,
  28835. hb = null,
  28836. tb = !1,
  28837. ub = !1,
  28838. vb = !1,
  28839. wb = !1,
  28840. xb = null,
  28841. yb = null,
  28842. V = 0,
  28843. Z = 5,
  28844. $ = 0,
  28845. zb = 1,
  28846. Ab = 0,
  28847. Bb = 0,
  28848. Cb = 90,
  28849. Db = !1,
  28850. Eb = 0,
  28851. Fb = !0,
  28852. Lb = !0,
  28853. Mb = 0,
  28854. Nb = null,
  28855. Ob = !1,
  28856. Pb = 1,
  28857. Oa = _onRight = _onLeft = _onDown = _onUp = null,
  28858. Qb = null,
  28859. Zb = c.je.extend({
  28860. Ec: null,
  28861. ctor: function() {
  28862. this._super();
  28863. this.a1();
  28864. this.b1();
  28865. Ma = this
  28866. },
  28867. b1: function() {
  28868. /* var a = new c.P(O.V4);
  28869. a.J(c.d(50, 115));
  28870. this.M(a);
  28871. a.yb(new c.Oo(new c.La(new c.bf(0.4, c.d(0, -20)), new c.bf(0.1, c.d(0, 20)))));
  28872. */
  28873. a = c.Xj.create("更多游戏", function() {
  28874. clickMore();
  28875. }, this);
  28876. a.Va(c.color.RED);
  28877. a.Wk(0.6);
  28878. a.J(c.d(90, 40));
  28879. a = c.hh.create(a);
  28880. this.M(a);
  28881. a.J(c.d(0, 0))
  28882. },
  28883. a1: function() {
  28884. var a = new c.P(O.background);
  28885. a.si({
  28886. anchorX: 0.5,
  28887. anchorY: 0.5,
  28888. x: c.ja.width / 2,
  28889. y: c.ja.height / 2
  28890. });
  28891. this.M(a);
  28892. this.h1();
  28893. fb = new c.t;
  28894. fb.Vk(c.d(0.5, 0.5));
  28895. this.M(fb);
  28896. xb = Rb.create(O.bQ);
  28897. xb.x = c.ja.width - 95;
  28898. xb.y = c.ja.height - 80;
  28899. this.M(xb, 0);
  28900. yb = Rb.create(O.bQ);
  28901. yb.x = c.ja.width - 95;
  28902. yb.y = 330;
  28903. this.M(yb, 0);
  28904. a = c.Ka.Qc(O.BO);
  28905. L = Vb.sU(a);
  28906. fb.M(L, 0);
  28907. L.x = c.ja.width / 2;
  28908. L.y = c.ja.height / 2;
  28909. P = new c.P(O.TS);
  28910. P.J(c.d(5, 115));
  28911. L.M(P, 1);
  28912. hb = new c.P(O.TS);
  28913. hb.J(c.d(61, 115));
  28914. L.M(hb, 1);
  28915. gb = new c.P(O.BO);
  28916. gb.x = 0.5 * L.ve.width;
  28917. gb.y = 0.5 * L.ve.height;
  28918. L.M(gb, 2);
  28919. Qb = new c.P(O.Q1);
  28920. Qb.J(c.d(c.ja.width - 40, 0.5 * c.ja.height + 120));
  28921. fb.M(Qb, 1);
  28922. Nb = c.Z.create("时间:0:0秒", "Arial", 30, 100, c.ss);
  28923. Nb.x = 90;
  28924. Nb.y = 0.5 * c.ja.height - 140;
  28925. this.M(Nb, 25)
  28926. },
  28927. eQ: function() {
  28928. Db = !1;
  28929. V = 0;
  28930. Z = 5;
  28931. $ = 0;
  28932. zb = 1;
  28933. Bb = Ab = 0;
  28934. Cb = 90;
  28935. Ua = Ta = 0;
  28936. Lb = Fb = !0;
  28937. Mb = 0;
  28938. Ob = !1;
  28939. Pb = 1;
  28940. P.Xb(0);
  28941. hb.Xb(0);
  28942. L.Xb(0);
  28943. L.x = c.ja.width / 2;
  28944. L.y = c.ja.height / 2;
  28945. this.zR();
  28946. this.po(this.i9, 0.1)
  28947. },
  28948. Roa: function() {
  28949. this.xL = new c.Mm(this.Ec);
  28950. this.xL.visible = !1;
  28951. this.M(this.xL)
  28952. },
  28953. Sha: function() {
  28954. var a = this.Ec = new cp.aW;
  28955. a.vQ = 5;
  28956. for (var b = a.oS, d = c.ja, b = [new cp.ps(b, cp.G(0, 250), cp.G(d.width, 250), 0), new cp.ps(b, cp.G(0, d.height), cp.G(d.width, d.height), 0), new cp.ps(b, cp.G(0, 0), cp.G(0, d.height), 0), new cp.ps(b, cp.G(d.width - 55, 0), cp.G(d.width - 55, d.height), 0)], d = 0; d < b.length; d++) {
  28957. var e = b[d];
  28958. e.x7();
  28959. e.C7();
  28960. e.p7();
  28961. a.oO(e)
  28962. }
  28963. a.gravity = cp.G(0, 0);
  28964. this.Ec.$0(this.R1.bind(this), this.V1.bind(this), this.U1.bind(this), this.W1.bind(this))
  28965. },
  28966. R1: function() {
  28967. return !0
  28968. },
  28969. V1: function() {
  28970. L.J(Oa);
  28971. 120 > Eb++ ? (this.L8(0), 0 == Mb ? tb = Fb = !1 : 1 == Mb && (ub = Lb = !1)) : Eb = 0;
  28972. return !0
  28973. },
  28974. U1: function() {},
  28975. W1: function() {
  28976. $ = 0
  28977. },
  28978. h1: function() {
  28979. _onUp = c.Sh.create(O.g9, "res/up1.png", this.X5, this);
  28980. _onUp.to(0);
  28981. _onUp.height = _onUp.width = 98;
  28982. _onDown = c.Sh.create(O.r2, "res/down1.png", this.U5, this);
  28983. _onDown.to(1);
  28984. _onDown.height = _onDown.width = 98;
  28985. _onLeft = c.Sh.create(O.B5, "res/left1.png", this.V5, this);
  28986. _onLeft.to(2);
  28987. _onLeft.height = _onLeft.width = 98;
  28988. _onRight = c.Sh.create(O.c7, "res/right1.png", this.W5, this);
  28989. _onRight.to(3);
  28990. _onRight.height = _onRight.width = 98;
  28991. var a = c.hh.create(_onUp, _onDown);
  28992. a.Jy(50);
  28993. this.M(a, 12);
  28994. a.x = 0.5 * c.ja.width;
  28995. a.y = 120;
  28996. menu1 = c.hh.create(_onLeft, _onRight);
  28997. menu1.fG(50);
  28998. this.M(menu1, 12);
  28999. menu1.x = 0.5 * c.ja.width;
  29000. menu1.y = 120;
  29001. _onUp.Ja = !1;
  29002. _onDown.Ja = !1;
  29003. _onLeft.Ja = !1;
  29004. _onRight.Ja = !1
  29005. },
  29006. T5: function(a) {
  29007. switch (a) {
  29008. case 0:
  29009. Mb = 0;
  29010. Fb && (tb = !0);
  29011. Lb || (Lb = !0);
  29012. Ob = !1;
  29013. break;
  29014. case 1:
  29015. Mb = 1;
  29016. Lb && (ub = !0);
  29017. Fb || (Fb = !0);
  29018. Ob = !1;
  29019. break;
  29020. case 2:
  29021. vb = !0;
  29022. break;
  29023. case 3:
  29024. wb = !0
  29025. }
  29026. },
  29027. XQ: function(a) {
  29028. switch (a) {
  29029. case 0:
  29030. $ = 0;
  29031. tb = !1;
  29032. break;
  29033. case 1:
  29034. $ = 0;
  29035. ub = !1;
  29036. break;
  29037. case 2:
  29038. vb = !1;
  29039. break;
  29040. case 3:
  29041. wb = !1
  29042. }
  29043. },
  29044. X5: function() {
  29045. $ = 0;
  29046. tb = !1
  29047. },
  29048. U5: function() {
  29049. $ = 0;
  29050. ub = !1
  29051. },
  29052. V5: function() {
  29053. vb = !1
  29054. },
  29055. W5: function() {
  29056. wb = !1
  29057. },
  29058. update: function(a) {
  29059. this.Q5(a);
  29060. this.R5(a);
  29061. !Db && 390 < L.we().x && 390 < c.d(50 * Math.sin(0.0175 * L.Lb()) + L.x, L.y + 50 * Math.cos(0.0175 * L.Lb())).x && (Db = !0, Wb.M(Wa), Nb.Ja = !1, _onUp.Ja = !1, _onDown.Ja = !1, _onLeft.Ja = !1, _onRight.Ja = !1, share_friend())
  29062. },
  29063. Fpa: function() {
  29064. vb && -38 < P.Lb() && (P.Xb(P.Lb() - Z), hb.Xb(hb.Lb() - Z), this.MS(-Z));
  29065. wb && 38 > P.Lb() && (P.Xb(P.Lb() + Z), hb.Xb(hb.Lb() + Z), this.MS(Z))
  29066. },
  29067. Bpa: function(a) {
  29068. tb && (this.NS(zb), this.JS(a));
  29069. ub && (this.NS(-zb), this.JS(a))
  29070. },
  29071. NS: function(a) {
  29072. $ += a;
  29073. 5 < $ ? $ = 5 : -5 > $ && ($ = -5)
  29074. },
  29075. MS: function(a) {
  29076. V += a;
  29077. 38 < V ? V = 38 : -38 > V && (V = -38)
  29078. },
  29079. JS: function() {
  29080. Pb = -$;
  29081. Ab = Math.sin(0.0175 * V) * $;
  29082. var a = L.Lb() + 180 * Math.atan(Ab / Cb) / 3.1416;
  29083. L.Xb(a);
  29084. Bb = Math.cos(0.0175 * V) * $;
  29085. var b = Math.sin(0.0175 * (a + 0)) * Bb;
  29086. L.y += Math.cos(0.0175 * (a + 0)) * Bb;
  29087. L.x += b
  29088. },
  29089. L8: function() {
  29090. if (!Ob) {
  29091. Ob = !0;
  29092. if (0 != $) {
  29093. Ab = Math.sin(0.0175 * V) * $;
  29094. var a = L.Lb() - 180 * Math.atan(Ab / Cb) / 3.1416;
  29095. L.Xb(a);
  29096. Bb = Math.cos(0.0175 * V) * $
  29097. } else 0 == Pb && (Pb = 1), Ab = Math.sin(0.0175 * V) * Pb, a = L.Lb() - 180 * Math.atan(Ab / Cb) / 3.1416, L.Xb(a), Bb = Math.cos(0.0175 * V) * Pb;
  29098. L.y -= Math.cos(0.0175 * (a + 0)) * Bb;
  29099. L.x -= Math.sin(0.0175 * (a + 0)) * Bb
  29100. }
  29101. },
  29102. Zca: function() {
  29103. var a = L.y;
  29104. if (a > c.ja.height - 150 || a < 0.5 * c.ja.height + 20) {
  29105. var b = L.x;
  29106. 280 < b && (L.x = 280)
  29107. }
  29108. a < c.ja.height - 150 && a > 0.5 * c.ja.height + 20 && (b = L.x, 350 < b && (a = L.y, a > c.ja.height - 150 ? L.y = c.ja.height - 150 : a < 0.5 * c.ja.height + 20 && (L.y = 0.5 * c.ja.height + 20)));
  29109. return !1
  29110. },
  29111. kda: function() {
  29112. var a = L.x,
  29113. b = L.y;
  29114. a > c.ja.width - 150 ? L.x = c.ja.width - 150 : 0 > a && (L.x = 0);
  29115. b > c.ja.height ? L.y = c.ja.height : 300 > b && (L.y = 300);
  29116. return !1
  29117. },
  29118. i9: function() {
  29119. Db || (8 < Ua++ && (Ua = 0, 3600 < Ta++ && (Ta = 3600)), Nb.tc("时间:" + Ta + ":" + Ua + "秒"))
  29120. },
  29121. Gka: function() {
  29122. vb && -38 < P.Lb() && (P.Xb(P.Lb() - Z), hb.Xb(hb.Lb() - Z), this.RQ(-Z));
  29123. wb && 38 > P.Lb() && (P.Xb(P.Lb() + Z), hb.Xb(hb.Lb() + Z), this.RQ(Z))
  29124. },
  29125. L5: function(a) {
  29126. tb && (this.SQ(zb), this.QQ(a));
  29127. ub && (this.SQ(-zb), this.QQ(a))
  29128. },
  29129. SQ: function(a) {
  29130. $ += a;
  29131. 5 < $ ? $ = 5 : -5 > $ && ($ = -5)
  29132. },
  29133. RQ: function(a) {
  29134. V += a;
  29135. 38 < V ? V = 38 : -38 > V && (V = -38)
  29136. },
  29137. QQ: function() {
  29138. Ab = Math.sin(0.0175 * V) * $;
  29139. var a = L.Lb() + 180 * Math.atan(Ab / Cb) / 3.1416;
  29140. Bb = Math.cos(0.0175 * V) * $;
  29141. var b = L.we();
  29142. b.x += Math.sin(0.0175 * (a + 0)) * Bb;
  29143. b.y += Math.cos(0.0175 * (a + 0)) * Bb;
  29144. var d = xb.x,
  29145. e = xb.y,
  29146. f = yb.x,
  29147. g = yb.y,
  29148. h = c.d(null.we().x + b.x, null.we().y + b.y);
  29149. c.log("x:" + h.x);
  29150. c.log("y:" + h.y);
  29151. c.Rg(xb.Zf(d, e), h) || c.Rg(xb.Zf(d, e), Ma.Nn(null.we())) || c.Rg(xb.Zf(d, e), Ma.Nn(null.we())) || c.Rg(xb.Zf(d, e), Ma.Nn(null.we())) || c.Rg(yb.Zf(f, g), Ma.Nn(null.we())) || c.Rg(yb.Zf(f, g), Ma.Nn(null.we())) || c.Rg(yb.Zf(f, g), Ma.Nn(null.we())) || c.Rg(yb.Zf(f, g), Ma.Nn(null.we())) ? (c.log("collision!"), a = L.Lb() - 180 * Math.atan(Ab / Cb) / 3.1416, L.J(b), L.Xb(a)) : b.x < c.ja.width - 150 && 0 < b.x && b.y < c.ja.height && 300 < b.y && (L.J(b), L.Xb(a))
  29152. },
  29153. Fka: function(a) {
  29154. var b = L.x,
  29155. d = L.y;
  29156. b > c.ja.width - 150 ? L.x = c.ja.width - 150 : 0 > b && (L.x = 1);
  29157. d > c.ja.height ? L.y = c.ja.height - 1 : 300 > d && (L.y = 301);
  29158. b = c.Rg(xb.Zf(), xb);
  29159. d = c.Rg(xb.Zf(), xb);
  29160. b ? c.log("collision Down!") : d && c.log("collision up!");
  29161. this.L5(a)
  29162. },
  29163. bia: function(a, b) {
  29164. var d = b.x,
  29165. e = b.y,
  29166. f = a.Zf(a.x, a.y),
  29167. d = b.Zf(d, e);
  29168. return c.F6(f, d)
  29169. },
  29170. R5: function() {
  29171. vb && -38 < P.Lb() && (P.Xb(P.Lb() - Z), hb.Xb(hb.Lb() - Z), this.UQ(-Z));
  29172. wb && 38 > P.Lb() && (P.Xb(P.Lb() + Z), hb.Xb(hb.Lb() + Z), this.UQ(Z))
  29173. },
  29174. UQ: function(a) {
  29175. V += a;
  29176. 38 < V ? V = 38 : -38 > V && (V = -38)
  29177. },
  29178. Q5: function(a) {
  29179. tb && (this.VQ(zb), this.TQ(a));
  29180. ub && (this.VQ(-zb), this.TQ(a))
  29181. },
  29182. VQ: function(a) {
  29183. $ += a;
  29184. 5 < $ ? $ = 5 : -5 > $ && ($ = -5)
  29185. },
  29186. TQ: function() {
  29187. var a = L.x,
  29188. b = L.y,
  29189. d = L.Lb();
  29190. Pb = -$;
  29191. Ab = Math.sin(0.0175 * V) * $;
  29192. var e = L.Lb() + 180 * Math.atan(Ab / Cb) / 3.1416;
  29193. L.Xb(e);
  29194. Bb = Math.cos(0.0175 * V) * $;
  29195. var f = Math.sin(0.0175 * (e + 0)) * Bb;
  29196. L.y += Math.cos(0.0175 * (e + 0)) * Bb;
  29197. L.x += f;
  29198. var e = Xb(L),
  29199. f = Xb(xb),
  29200. g = Xb(yb),
  29201. h = Xb(Qb);
  29202. if (Yb(e, f) || Yb(e, g) || Yb(e, h) || this.P5()) L.x = a, L.y = b, L.Xb(d)
  29203. },
  29204. P5: function() {
  29205. var a = L.x,
  29206. b = L.y;
  29207. return a > c.ja.width || 0 > a || b > c.ja.height || 300 > b ? !0 : !1
  29208. }
  29209. }),
  29210. $b = c.je.extend({
  29211. ctor: function() {
  29212. this._super();
  29213. this.c1();
  29214. var a = new c.P(O.start);
  29215. a.J(c.d(250, 400));
  29216. this.M(a, 1)
  29217. },
  29218. c1: function() {
  29219. var a = c.Sh.create(O.mS, O.mS, this.dv, this);
  29220. a.height = 59;
  29221. var b = c.Sh.create(O.Tz, O.Tz, function() {
  29222. clickMore();
  29223. }, this);
  29224. b.height = 59;
  29225. a = c.hh.create(a, b);
  29226. a.Jy(50);
  29227. this.M(a, 12, 3);
  29228. a.x = 0.5 * c.ja.width;
  29229. a.y = 120
  29230. },
  29231. dv: function() {
  29232. Xa.eQ();
  29233. cb.vm();
  29234. _onUp.Ja = !0;
  29235. _onDown.Ja = !0;
  29236. _onLeft.Ja = !0;
  29237. _onRight.Ja = !0
  29238. }
  29239. }),
  29240. ac = c.je.extend({
  29241. Pc: !1,
  29242. Qpa: !0,
  29243. $k: null,
  29244. ctor: function() {
  29245. this._super();
  29246. this.$k = new c.P(O.M8);
  29247. this.$k.x = c.ja.width / 2;
  29248. this.$k.anchorY = 0.2;
  29249. this.$k.y = c.ja.height / 2;
  29250. this.M(this.$k)
  29251. },
  29252. ca: function() {
  29253. this._super();
  29254. this.$k.Sg();
  29255. var a = this.$k.width,
  29256. b = this.$k.height,
  29257. d = new c.Z("打败50%朋友圈的人!\n你能超过我吗?", "宋体", 35, c.size(450, 350), c.Pm),
  29258. e = Ta;
  29259. 45 > e ? d.tc("你用了" + Ta + "." + Ua + "秒停车入位\n获得称号\n老司机\n快邀请小伙伴来试试!") : 150 > e ? d.tc("你用了" + Ta + "." + Ua + "秒停车入位\n获得称号\n新手上路\n快邀请小伙伴来试试!") : d.tc("你用了" + Ta + "." + Ua + "秒停车入位\n获得称号\n马路杀手\n快邀请小伙伴来试试!");
  29260. d.x = a / 2;
  29261. d.y = b / 7;
  29262. d.width = a;
  29263. d.color = c.color(0, 0, 0);
  29264. this.$k.M(d);
  29265. var stitle = 45 > Ta ? "我停车入位用了" + Ta + "." + Ua + "秒,教练夸我是老师傅,不服来挑战!" : 150 > Ta ? "我停车入位用了" + Ta + "." + Ua + "秒,终于过了科目3,累死~~~" : "我停车入位用了" + Ta + "." + Ua + "秒,难道传说的马路杀手就是我?";
  29266. dp_submitScore(Ta*10+Ua,stitle);
  29267. this.cg(50) || (a = c.Sh.create(O.OH, O.OH, function() {
  29268. // Wb.M(db, 100);
  29269. share_friend()
  29270. }, this), a.height = 59, a.width = 180, b = c.Sh.create(O.pO, O.pO, function() {
  29271. Xa.eQ();
  29272. Wa.vm();
  29273. _onUp.Ja = !0;
  29274. _onDown.Ja = !0;
  29275. _onLeft.Ja = !0;
  29276. _onRight.Ja = !0;
  29277. Nb.Ja = !0
  29278. }, this), b.height = 59, b.width = 180, a = c.hh.create(a, b), a.fG(60), this.M(a, 0, 50), a.x = 0.5 * c.ja.width, a.y = 270, b = c.Sh.create(O.Tz, O.Tz, function() {
  29279. clickMore();
  29280. }, this), b.height = 126, b.width = 416, b.Wk(0.4), a = c.hh.create(b), this.M(a, 0, 50), a.x = c.ja.width - 80, a.y = 20);
  29281. this.Pc = !0
  29282. },
  29283. xb: function() {
  29284. this._super();
  29285. this.Pc = !1
  29286. }
  29287. }),
  29288. bc = c.md.extend({
  29289. ctor: function() {
  29290. this._super(c.color(0, 0, 0, 188), c.ja.width, c.ja.height);
  29291. var a = new c.P(O.x1);
  29292. a.anchorX = 1;
  29293. a.anchorY = 1;
  29294. a.x = c.ja.width - 15;
  29295. a.y = c.ja.height - 5;
  29296. this.M(a);
  29297. a = new c.Z('请点击右上角的菜单按钮\n再点"分享到朋友圈"\n让好友们挑战你的分数!', "宋体", 20, c.size(0.7 * c.ja.width, 250), c.Pm);
  29298. a.x = c.ja.width / 2;
  29299. a.y = c.ja.height - 100;
  29300. a.anchorY = 1;
  29301. this.M(a)
  29302. },
  29303. ca: function() {
  29304. clickMore();
  29305. }
  29306. }),
  29307. cc = c.je.extend({
  29308. ctor: function() {
  29309. this._super();
  29310. var a = c.L.V,
  29311. b = c.Xj.create(" ", function() {
  29312. clickMore();
  29313. }, this);
  29314. b.Va(c.color.BLACK);
  29315. b.Na = 0.7;
  29316. b.ma = 0.7;
  29317. b = c.hh.create(b);
  29318. b.Jy(10);
  29319. this.M(b);
  29320. b.x = 0.5 * a.width;
  29321. b.y = a.height - 17
  29322. }
  29323. }),
  29324. Wb = null,
  29325. dc = c.il.extend({
  29326. ca: function() {
  29327. this._super();
  29328. Xa = new Zb;
  29329. this.M(Xa);
  29330. cb = new $b;
  29331. this.M(cb);
  29332. eb = new cc;
  29333. this.M(eb, 99);
  29334. Wa = new ac(!0);
  29335. db = new bc
  29336. }
  29337. });
  29338. share_friend = function() {
  29339. dp_share();
  29340. /*var a = Ta,
  29341. b = Ua,
  29342. d = null,
  29343. d = 45 > a ? "我停车入位用了" + a + "." + b + "秒,教练夸我是老师傅,不服来挑战!" : 150 > a ? "我停车入位用了" + a + "." + b + "秒,终于过了科目3,累死~~~" : "我停车入位用了" + a + "." + b + "秒,难道传说的马路杀手就是我?";
  29344. /* qqlShare({desc:"我停车入位用了" + a + "." + b + "秒,教练夸我是老师傅,不服来挑战!" : 150 > a ? "我停车入位用了" + a + "." + b + "秒,终于过了科目3,累死~~~" : "我停车入位用了" + a + "." + b + "秒,难道传说的马路杀手就是我?"});*/
  29345. /* window.shareData.tTitle = d;
  29346. window.wxData.desc = d;
  29347. window.wxFriend.desc = d*/
  29348. };
  29349. var Rb = c.P.extend({
  29350. xe: !0,
  29351. ctor: function(a) {
  29352. this._super(a)
  29353. },
  29354. Zf: function(a, b) {
  29355. return c.rect(a - 40, b - 85, 80, 170)
  29356. }
  29357. });
  29358. Rb.create = function(a) {
  29359. return new Rb(a)
  29360. };
  29361. RemoveAllBuffer = function() {
  29362. for (var a, b = 0; b < Pa.Oh.zr.length; b++)(a = Pa.Oh.zr[b]) && a.vm(!0);
  29363. Pa.Oh.zr.splice(0, Pa.Oh.zr.length);
  29364. for (b = 0; b < Pa.Oh.as.length; b++)(a = Pa.Oh.as[b]) && a.vm(!0);
  29365. Pa.Oh.as.splice(0, Pa.Oh.as.length)
  29366. };
  29367. DisableAllRol = function() {
  29368. for (var a, b = 0; b < Pa.Oh.zr.length; b++)(a = Pa.Oh.zr[b]) && a.Dv();
  29369. for (b = 0; b < Pa.Oh.as.length; b++)(a = Pa.Oh.as[b]) && a.Dv()
  29370. };
  29371. var wc = c.P.extend({
  29372. xe: !0,
  29373. ba: null,
  29374. ctor: function(a) {
  29375. this._super(a)
  29376. },
  29377. Zf: function(a, b) {
  29378. var d = this.ba;
  29379. Ma.cg(520).Eu(c.d(a - 0.5 * d.width, b - 0.5 * d.height), c.d(0.5 * d.width, 0.5 * d.height), null, 2, c.color(255, 0, 255, 255));
  29380. return c.rect(a - 40, b - 75, 80, 150)
  29381. }
  29382. });
  29383. wc.create = function(a) {
  29384. return new wc(a)
  29385. };
  29386. var Vb = c.P.extend({
  29387. ba: null,
  29388. ctor: function() {
  29389. this._super()
  29390. },
  29391. pa: function(a, b) {
  29392. this._super(a, b);
  29393. if (a instanceof c.ia) this.ba = b;
  29394. else if (a instanceof HTMLImageElement || a instanceof HTMLCanvasElement) this.ba = b;
  29395. return !0
  29396. },
  29397. rect: function() {
  29398. return c.rect(0.5 * -this.ba.width - 0, 0.5 * -this.ba.height - 0, this.ba.width + 0, this.ba.height + 0)
  29399. },
  29400. pda: function(a) {
  29401. a = a.Aq();
  29402. var b = this.rect();
  29403. b.x += this.x;
  29404. b.y += this.y;
  29405. return c.Rg(b, a)
  29406. },
  29407. Zf: function() {
  29408. var a = this.rect();
  29409. a.x += this.x;
  29410. a.y += this.y;
  29411. Ma.cg(520).Eu(c.d(-a.x, -a.x), c.d(0.5 * a.width, 0.5 * a.height), null, 2, c.color(255, 0, 255, 255));
  29412. return c.rect(0.5 * -a.width, 0.5 * -a.height, a.width, a.height)
  29413. }
  29414. });
  29415. Vb.sU = function(a) {
  29416. var b = c.rect(0, 0, 66, 151),
  29417. d = new Vb;
  29418. d.pa(a, b);
  29419. return d
  29420. };
  29421. function xc(a, b) {
  29422. this.x = a;
  29423. this.y = b
  29424. }
  29425. function yc(a, b) {
  29426. this.min = a;
  29427. this.max = b
  29428. }
  29429. yc.prototype = {};
  29430. function zc(a) {
  29431. this.xo = a
  29432. }
  29433. zc.prototype = {
  29434. vj: function(a) {
  29435. for (var b = 0, d = b = Ac(this.xo[0], a), e = 1; 4 > e; e++) {
  29436. var f = 0,
  29437. f = Ac(this.xo[e], a);
  29438. f > d ? d = f : f < b && (b = f)
  29439. }
  29440. return new yc(b, d)
  29441. }
  29442. };
  29443. function Yb(a, b) {
  29444. var d = Bc(a),
  29445. e = Bc(b),
  29446. f, g, h;
  29447. for (f = 0; 4 > f; f++) if (g = a.vj(d[f]), h = b.vj(d[f]), g.min > h.max || g.max < h.min) return !1;
  29448. for (f = 0; 4 > f; f++) if (g = a.vj(e[f]), h = b.vj(e[f]), g.min > h.max || g.max < h.min) return !1;
  29449. return !0
  29450. }
  29451. function Bc(a) {
  29452. for (var b = [], d = 0; 4 > d; d++) {
  29453. var e;
  29454. e = a.xo[d];
  29455. var f = a.xo[(d + 1) % 4],
  29456. g = new xc(0, 0);
  29457. g.x = e.x - f.x;
  29458. g.y = e.y - f.y;
  29459. e = g;
  29460. f = Math.sqrt(e.x * e.x + e.y * e.y);
  29461. e = new xc(e.x / f, e.y / f);
  29462. b.push(new xc(-e.y, e.x))
  29463. }
  29464. return b
  29465. }
  29466. function Ac(a, b) {
  29467. return a.x * b.x + a.y * b.y
  29468. }
  29469. function Xb(a) {
  29470. var b = [],
  29471. d = a.hm(c.d(0, 0));
  29472. b.push(new xc(d.x + 0, d.y + 0));
  29473. d = a.hm(c.d(a.ve().width, 0));
  29474. b.push(new xc(d.x - 0, d.y + 0));
  29475. d = a.hm(c.d(a.ve().width, a.ve().height));
  29476. b.push(new xc(d.x - 0, d.y - 0));
  29477. d = a.hm(c.d(0, a.ve().height));
  29478. b.push(new xc(d.x + 0, d.y - 0));
  29479. return new zc(b)
  29480. };
  29481. c.Wc.dv = function() {
  29482. c.view.i1(!0);
  29483. c.Yb.Aj ? c.view.uA(500, 800, c.cf.Vv) : c.view.uA(500, 800, c.cf.SHOW_ALL);
  29484. c.view.V6(!0);
  29485. c.uB.fA(Va, function() {
  29486. Wb = new dc;
  29487. c.L.rA(Wb)
  29488. }, this)
  29489. };
  29490. c.Wc.d7();