game.min.js 835 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844
  1. var b = b || {};
  2. b.F = b.F || {};
  3. b.e = {};
  4. n = window;
  5. n = Object.prototype;
  6. delete window._p;
  7. b.Sb = function(a) {
  8. return document.createElement(a)
  9. };
  10. b.Ga = function(a, c, d, e) {
  11. a.addEventListener(c, d, e)
  12. };
  13. b.pK = "undefined" !== typeof require && require("fs");
  14. b.KM = function(a, c) {
  15. if (a)
  16. if (a instanceof Array)
  17. for (var d = 0, e = a.length; d < e && !1 !== c.call(void 0, a[d], d); d++);
  18. else
  19. for (d in a)
  20. if (!1 === c.call(void 0, a[d], d)) break
  21. };
  22. b.gF = function(a) {
  23. if (!a) return b.log("invalid URL"), !1;
  24. var c = a.indexOf("://");
  25. if (-1 == c) return !1;
  26. c = a.indexOf("/", c + 3);
  27. return (-1 == c ? a : a.substring(0, c)) != location.origin
  28. };
  29. b.async = {
  30. XI: function(a) {
  31. var c = this.qM;
  32. if (!c.wE) {
  33. var d = c.length,
  34. e = c.PO,
  35. f = c.pO,
  36. g = f.ed,
  37. h = f.lM,
  38. k = f.pG,
  39. f = f.Fka;
  40. if (a) {
  41. if (c.wE = a, g) return g.call(h, a)
  42. } else {
  43. var m = Array.apply(null, arguments).slice(1),
  44. p = m.length;
  45. 0 == p ? m = null : 1 == p && (m = m[0]);
  46. e[this.index] = m;
  47. c.count--;
  48. k && k.call(f, m, d - c.count, d);
  49. 0 == c.count && g && g.apply(h, [null, e])
  50. }
  51. }
  52. },
  53. KJ: function() {},
  54. $ga: function(a, c, d) {
  55. var e = b.async;
  56. if (void 0 !== d) "function" == typeof c && (c = {
  57. pG: c
  58. }), c.ed = d || c.ed;
  59. else if (void 0 !== c) "function" == typeof c && (c = {
  60. ed: c
  61. });
  62. else if (void 0 !== a) c = {};
  63. else throw "arguments error!";
  64. var f = (d = a instanceof Array) ? a.length : Object.keys(a).length;
  65. if (0 == f) c.ed && c.ed.call(c.lM, null);
  66. else {
  67. var g = {
  68. length: f,
  69. count: f,
  70. pO: c,
  71. PO: d ? [] : {}
  72. };
  73. b.KM(a, function(a, d) {
  74. if (g.wE) return !1;
  75. var f = c.ed || c.pG ? e.XI.bind({
  76. qM: g,
  77. index: d
  78. }) : e.KJ;
  79. a(f, d)
  80. })
  81. }
  82. },
  83. map: function(a, c, d) {
  84. var e = this,
  85. f = arguments.length;
  86. "function" == typeof c && (c = {
  87. lF: c
  88. });
  89. if (3 === f) c.ed = d || c.ed;
  90. else if (2 > f) throw "arguments error!";
  91. "function" == typeof c && (c = {
  92. lF: c
  93. });
  94. if (void 0 !== d) c.ed = d || c.ed;
  95. else if (void 0 === a) throw "arguments error!";
  96. var g = (f = a instanceof Array) ? a.length : Object.keys(a).length;
  97. if (0 === g) c.ed && c.ed.call(c.lM, null);
  98. else {
  99. var h = {
  100. length: g,
  101. count: g,
  102. pO: c,
  103. PO: f ? [] : {}
  104. };
  105. b.KM(a, function(a, d) {
  106. if (h.wE) return !1;
  107. var f = c.ed ? e.XI.bind({
  108. qM: h,
  109. index: d
  110. }) : e.KJ;
  111. c.lF.call(c.M1, a, d, f)
  112. })
  113. }
  114. }
  115. };
  116. b.path = {
  117. join: function() {
  118. for (var a = arguments.length, c = "", d = 0; d < a; d++) c = (c + ("" == c ? "" : "/") + arguments[d]).replace(/(\/|\\\\)$/, "");
  119. return c
  120. },
  121. Zk: function(a) {
  122. return (a = /(\.[^\.\/\?\\]*)(\?.*)?$/.exec(a)) ? a[1] : null
  123. },
  124. jga: function(a) {
  125. if (a) {
  126. var c = a.lastIndexOf(".");
  127. if (-1 !== c) return a.substring(0, c)
  128. }
  129. return a
  130. },
  131. vZ: function(a, c) {
  132. var d = a.indexOf("?");
  133. 0 < d && (a = a.substring(0, d));
  134. d = /(\/|\\\\)([^(\/|\\\\)]+)$/g.exec(a.replace(/(\/|\\\\)$/, ""));
  135. if (!d) return null;
  136. d = d[2];
  137. return c && a.substring(a.length - c.length).toLowerCase() ==
  138. c.toLowerCase() ? d.substring(0, d.length - c.length) : d
  139. },
  140. dirname: function(a) {
  141. return a.replace(/((.*)(\/|\\|\\\\))?(.*?\..*$)?/, "$2")
  142. },
  143. mM: function(a, c) {
  144. c = c || "";
  145. var d = a.indexOf("?"),
  146. e = "";
  147. 0 < d && (e = a.substring(d), a = a.substring(0, d));
  148. d = a.lastIndexOf(".");
  149. return 0 > d ? a + c + e : a.substring(0, d) + c + e
  150. },
  151. Oo: function(a, c, d) {
  152. if (0 == c.indexOf(".")) return this.mM(a, c);
  153. var e = a.indexOf("?"),
  154. f = "";
  155. d = d ? this.Zk(a) : "";
  156. 0 < e && (f = a.substring(e), a = a.substring(0, e));
  157. e = a.lastIndexOf("/");
  158. return a.substring(0, 0 >= e ? 0 : e + 1) + c + d + f
  159. }
  160. };
  161. b.T = {
  162. vK: {},
  163. Nv: {},
  164. RW: {},
  165. Gl: {},
  166. Zx: "",
  167. sZ: "",
  168. Rf: {},
  169. Yw: function() {
  170. return window.XMLHttpRequest ? new window.XMLHttpRequest : new ActiveXObject("MSXML2.XMLHTTP")
  171. },
  172. YJ: function(a) {
  173. var c = a[0],
  174. d = a[1],
  175. e = a[2],
  176. f = ["", null, null];
  177. if (1 === a.length) f[1] = c instanceof Array ? c : [c];
  178. else if (2 === a.length) "function" == typeof d ? (f[1] = c instanceof Array ? c : [c], f[2] = d) : (f[0] = c || "", f[1] = d instanceof Array ? d : [d]);
  179. else if (3 === a.length) f[0] = c || "", f[1] = d instanceof Array ? d : [d], f[2] = e;
  180. else throw "arguments error to load js!";
  181. return f
  182. },
  183. x2: function(a,
  184. c, d) {
  185. var e = this,
  186. f = e.vK,
  187. g = e.YJ(arguments); - 1 < navigator.userAgent.indexOf("Trident/5") ? e.AK(g[0], g[1], 0, g[2]) : b.async.map(g[1], function(a, c, d) {
  188. a = b.path.join(g[0], a);
  189. if (f[a]) return d(null);
  190. e.YI(a, !1, d)
  191. }, g[2])
  192. },
  193. jO: function(a, c, d) {
  194. var e = this.WW(),
  195. f = this.YJ(arguments);
  196. this.x2(f[0], f[1], function(a) {
  197. if (a) throw a;
  198. e.parentNode.removeChild(e);
  199. if (f[2]) f[2]()
  200. })
  201. },
  202. YI: function(a, c, d) {
  203. var e = document,
  204. f = b.Sb("script");
  205. f.async = c;
  206. f.src = a;
  207. this.vK[a] = !0;
  208. b.Ga(f, "load", function() {
  209. this.removeEventListener("load", arguments.callee, !1);
  210. d()
  211. }, !1);
  212. b.Ga(f, "error", function() {
  213. d("Load " + a + " failed!")
  214. }, !1);
  215. e.body.appendChild(f)
  216. },
  217. AK: function(a, c, d, e) {
  218. if (d >= c.length) e && e();
  219. else {
  220. var f = this;
  221. f.YI(b.path.join(a, c[d]), !1, function(g) {
  222. if (g) return e(g);
  223. f.AK(a, c, d + 1, e)
  224. })
  225. }
  226. },
  227. WW: function() {
  228. var a = document,
  229. c = a.getElementById("cocos2d_loadJsImg");
  230. if (!c) {
  231. c = b.Sb("img");
  232. b.DK && (c.src = b.DK);
  233. a = a.getElementById(b.Jb.re.id);
  234. a.style.backgroundColor = "black";
  235. a.parentNode.appendChild(c);
  236. var d = getComputedStyle ? getComputedStyle(a) : a.currentStyle;
  237. d || (d = {
  238. width: a.width,
  239. height: a.height
  240. });
  241. c.style.left = a.offsetLeft + (parseFloat(d.width) - c.width) / 2 + "px";
  242. c.style.top = a.offsetTop + (parseFloat(d.height) - c.height) / 2 + "px";
  243. c.style.position = "absolute"
  244. }
  245. return c
  246. },
  247. Cx: function(a, c) {
  248. if (b.pK) require("fs").pha(a, function(a, d) {
  249. a ? c(a) : c(null, d.toString())
  250. });
  251. else {
  252. var d = this.Yw(),
  253. e = "load " + a + " failed!";
  254. d.open("GET", a, !0);
  255. /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent) ? (d.setRequestHeader("Accept-Charset", "utf-8"), d.onreadystatechange = function() {
  256. 4 == d.readyState && 200 ==
  257. d.status ? c(null, d.responseText) : c(e)
  258. }) : (d.overrideMimeType && d.overrideMimeType("text/plain; charset\x3dutf-8"), d.onload = function() {
  259. 4 == d.readyState && 200 == d.status ? c(null, d.responseText) : c(e)
  260. });
  261. d.send(null)
  262. }
  263. },
  264. BK: function(a) {
  265. if (b.pK) return require("fs").qha(a).toString();
  266. var c = this.Yw();
  267. c.open("GET", a, !1);
  268. /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent) ? c.setRequestHeader("Accept-Charset", "utf-8") : c.overrideMimeType && c.overrideMimeType("text/plain; charset\x3dutf-8");
  269. c.send(null);
  270. return 4 == !c.readyState || 200 != c.status ? null : c.responseText
  271. },
  272. kO: function(a, c) {
  273. this.Cx(a, function(d, e) {
  274. try {
  275. d ? c(d) : c(null, JSON.parse(e))
  276. } catch (f) {
  277. throw "load json [" + a + "] failed : " + f;
  278. }
  279. })
  280. },
  281. TI: function(a) {
  282. return null != /(\.png)|(\.jpg)|(\.bmp)|(\.jpeg)|(\.gif)/.exec(a)
  283. },
  284. Gs: function(a, c, d) {
  285. var e = !0;
  286. void 0 !== d ? e = null == c.gF ? e : c.gF : void 0 !== c && (d = c);
  287. var f = new Image;
  288. e && "file://" != location.origin && (f.crossOrigin = "Anonymous");
  289. b.Ga(f, "load", function() {
  290. this.removeEventListener("load", arguments.callee, !1);
  291. this.removeEventListener("error",
  292. arguments.callee, !1);
  293. d && d(null, f)
  294. });
  295. b.Ga(f, "error", function() {
  296. this.removeEventListener("error", arguments.callee, !1);
  297. d && d("load image failed")
  298. });
  299. f.src = a;
  300. return f
  301. },
  302. XW: function(a, c, d) {
  303. var e = this,
  304. f = null;
  305. (c = a.type) ? (c = "." + c.toLowerCase(), f = a.src ? a.src : a.name + c) : (f = a, c = b.path.Zk(f));
  306. var g = e.Rf[f];
  307. if (g) return d(null, g);
  308. g = e.Nv[c.toLowerCase()];
  309. if (!g) return b.error("loader for [" + c + "] not exists!"), d();
  310. c = e.$0(g.Ow ? g.Ow() : e.Zx, f);
  311. g.load(c, f, a, function(a, c) {
  312. a ? (b.log(a), e.Rf[f] = null, delete e.Rf[f], d()) : (e.Rf[f] =
  313. c, d(null, c))
  314. })
  315. },
  316. $0: function(a, c) {
  317. var d = this.RW,
  318. e = b.path;
  319. if (void 0 !== a && void 0 === c) {
  320. c = a;
  321. var f = e.Zk(c),
  322. f = f ? f.toLowerCase() : "";
  323. a = (f = this.Nv[f]) ? f.Ow ? f.Ow() : this.Zx : this.Zx
  324. }
  325. c = b.path.join(a || "", c);
  326. if (c.match(/[\/(\\\\)]lang[\/(\\\\)]/i)) {
  327. if (d[c]) return d[c];
  328. e = e.Zk(c) || "";
  329. c = d[c] = c.substring(0, c.length - e.length) + "_" + b.hb.language + e
  330. }
  331. return c
  332. },
  333. load: function(a, c, d) {
  334. if (void 0 !== d) "function" == typeof c && (c = {
  335. pG: c
  336. });
  337. else if (void 0 !== c) "function" == typeof c && (d = c, c = {});
  338. else if (void 0 !== a) c = {};
  339. else throw "arguments error!";
  340. c.ed = function(a, c) {
  341. a && b.log(a);
  342. d && d(c)
  343. };
  344. a instanceof Array || (a = [a]);
  345. c.lF = this.XW;
  346. c.M1 = this;
  347. b.async.map(a, c)
  348. },
  349. fK: function(a, c) {
  350. var d = this.Gl,
  351. e = [],
  352. f;
  353. for (f in a) {
  354. var g = a[f];
  355. d[f] = g;
  356. e.push(g)
  357. }
  358. this.load(e, c)
  359. },
  360. fga: function(a, c) {
  361. var d = this,
  362. e = d.Hd(a);
  363. e ? d.fK(e.filenames, c) : d.load(a, function(a) {
  364. d.fK(a[0].filenames, c)
  365. })
  366. },
  367. Nj: function(a, c) {
  368. if (a && c) {
  369. if ("string" == typeof a) return this.Nv[a.trim().toLowerCase()] = c;
  370. for (var d = 0, e = a.length; d < e; d++) this.Nv["." + a[d].trim().toLowerCase()] = c
  371. }
  372. },
  373. Hd: function(a) {
  374. return this.Rf[a] ||
  375. this.Rf[this.Gl[a]]
  376. },
  377. Ki: function(a) {
  378. var c = this.Rf,
  379. d = this.Gl;
  380. delete c[a];
  381. delete c[d[a]];
  382. delete d[a]
  383. },
  384. Aha: function() {
  385. var a = this.Rf,
  386. c = this.Gl,
  387. d;
  388. for (d in a) delete a[d];
  389. for (d in c) delete c[d]
  390. }
  391. };
  392. (function() {
  393. function a() {
  394. b.ra && b.Jb.uk && b.ra.dispatchEvent(b.Jb.uk);
  395. b.Jb.lr && (window.cancelAnimationFrame(b.Jb.lr), b.Jb.Sv())
  396. }
  397. function c() {
  398. b.ra && b.Jb.tk && b.ra.dispatchEvent(b.Jb.tk)
  399. }
  400. var d = window,
  401. e, f;
  402. "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");
  403. e ? b.Ga(document, f, function() {
  404. document[e] ? c() : a()
  405. }, !1) : (b.Ga(d, "blur", c, !1), b.Ga(d, "focus", a, !1)); - 1 < navigator.userAgent.indexOf("MicroMessenger") && (d.onfocus = function() {
  406. a()
  407. });
  408. "onpageshow" in window && "onpagehide" in window && (b.Ga(d, "pagehide", c, !1), b.Ga(d, "pageshow", a, !1));
  409. f = d = null
  410. })();
  411. b.log = b.warn = b.error = b.assert = function() {};
  412. b.uM = function(a, c) {
  413. for (var d = ["webgl", "experimental-webgl", "webkit-3d", "moz-webgl"], e = null, f = 0; f < d.length; ++f) {
  414. try {
  415. e = a.getContext(d[f], c)
  416. } catch (g) {}
  417. if (e) break
  418. }
  419. return e
  420. };
  421. b.FW = function(a, c) {
  422. b.Ba = 0;
  423. b.U = 1;
  424. b.hb = {};
  425. var d = b.hb;
  426. d.ER = "en";
  427. d.q7 = "zh";
  428. d.r7 = "fr";
  429. d.u7 = "it";
  430. d.s7 = "de";
  431. d.B7 = "es";
  432. d.A7 = "ru";
  433. d.w7 = "ko";
  434. d.v7 = "ja";
  435. d.t7 = "hu";
  436. d.z7 = "pt";
  437. d.p7 = "ar";
  438. d.x7 = "no";
  439. d.y7 = "pl";
  440. d.lS = "Windows";
  441. d.eH = "iOS";
  442. d.fH = "OS X";
  443. d.jS = "UNIX";
  444. d.iS = "Linux";
  445. d.hS = "Android";
  446. d.kS = "Unknown";
  447. d.K8 = 0;
  448. d.C7 = 1;
  449. d.D7 = 2;
  450. d.i6 = 3;
  451. d.n7 = 4;
  452. d.m7 = 5;
  453. d.r6 = 6;
  454. d.H7 = 7;
  455. d.X6 = 8;
  456. d.p8 = 9;
  457. d.L8 = 10;
  458. d.M8 = 11;
  459. d.MR = 100;
  460. d.IQ = 101;
  461. d.nQ = "wechat";
  462. d.jQ = "androidbrowser";
  463. d.Gy = "ie";
  464. d.kQ = "qqbrowser";
  465. d.DG = "mqqbrowser";
  466. d.lQ = "ucbrowser";
  467. d.u6 = "360browser";
  468. d.v6 = "baiduboxapp";
  469. d.CG = "baidubrowser";
  470. d.w6 = "maxthon";
  471. d.Hy = "opera";
  472. d.x6 = "miuibrowser";
  473. d.Jp = "firefox";
  474. d.Iy = "safari";
  475. d.Fy = "chrome";
  476. d.mQ = "unknown";
  477. d.Zda = !1;
  478. var e = [d.CG, d.Hy, d.Jp, d.Fy, d.Iy],
  479. f = [d.CG, d.Hy, d.Jp, d.Fy, d.Iy, d.lQ, d.kQ, d.DG, d.Gy],
  480. g = window,
  481. h = g.navigator,
  482. k = document.documentElement,
  483. m = h.userAgent.toLowerCase();
  484. d.Jh = -1 != m.indexOf("mobile") || -1 != m.indexOf("android");
  485. d.platform = d.Jh ? d.MR : d.IQ;
  486. var p = h.language,
  487. p = (p = p ? p : h.browserLanguage) ? p.split("-")[0] : d.ER;
  488. d.language = p;
  489. var p = d.mQ,
  490. r = m.match(/micromessenger|qqbrowser|mqqbrowser|ucbrowser|360browser|baiduboxapp|baidubrowser|maxthon|trident|opera|miuibrowser|firefox/i) ||
  491. m.match(/chrome|safari/i);
  492. r && 0 < r.length && (p = r[0].toLowerCase(), "micromessenger" == p ? p = d.nQ : "safari" === p && m.match(/android.*applewebkit/) ? p = d.jQ : "trident" == p && (p = d.Gy));
  493. d.wm = p;
  494. d.CY = -1 < f.indexOf(d.wm);
  495. f = parseInt(a[c.$s]);
  496. p = b.U;
  497. r = b.Sb("Canvas");
  498. b.Pr = !0;
  499. e = -1 == e.indexOf(d.wm);
  500. if (1 === f || 0 === f && (d.Jh || e) || "file://" == location.origin) p = b.Ba;
  501. d.aV = function() {
  502. var a = document.createElement("canvas");
  503. a.width = 1;
  504. a.height = 1;
  505. a = a.getContext("2d");
  506. a.fillStyle = "#000";
  507. a.fillRect(0, 0, 1, 1);
  508. a.globalCompositeOperation = "multiply";
  509. a.fillStyle = "#fff";
  510. a.fillRect(0, 0, 1, 1);
  511. return 0 === a.getImageData(0, 0, 1, 1).data[0]
  512. };
  513. d.hw = d.aV();
  514. p != b.U || g.WebGLRenderingContext && b.uM(r, {
  515. stencil: !0,
  516. preserveDrawingBuffer: !0
  517. }) || (0 == f ? p = b.Ba : b.Pr = !1);
  518. if (p == b.Ba) try {
  519. r.getContext("2d")
  520. } catch (s) {
  521. b.Pr = !1
  522. }
  523. b.A = p;
  524. try {
  525. d.iw = !!new(g.AudioContext || g.webkitAudioContext || g.mozAudioContext)
  526. } catch (u) {
  527. d.iw = !1
  528. }
  529. try {
  530. var t = d.localStorage = g.localStorage;
  531. t.setItem("storage", "");
  532. t.removeItem("storage");
  533. t = null
  534. } catch (v) {
  535. "SECURITY_ERR" !== v.name && "QuotaExceededError" !== v.name ||
  536. b.warn("Warning: localStorage isn't enabled. Please confirm browser cookie or privacy option"), d.localStorage = function() {}
  537. }
  538. t = d.aE = {
  539. canvas: !0
  540. };
  541. b.A == b.U && (t.opengl = !0);
  542. void 0 !== k.ontouchstart || h.msPointerEnabled ? t.touches = !0 : void 0 !== k.onmouseup && (t.mouse = !0);
  543. void 0 !== k.onkeyup && (t.keyboard = !0);
  544. if (g.DeviceMotionEvent || g.DeviceOrientationEvent) t.accelerometer = !0;
  545. g = m.match(/(iPad|iPhone|iPod)/i) ? !0 : !1;
  546. m = m.match(/android/i) || h.platform.match(/android/i) ? !0 : !1;
  547. k = d.kS; - 1 != h.appVersion.indexOf("Win") ? k = d.lS :
  548. g ? k = d.eH : -1 != h.appVersion.indexOf("Mac") ? k = d.fH : -1 != h.appVersion.indexOf("X11") ? k = d.jS : -1 != h.appVersion.indexOf("Linux") ? k = d.iS : m && (k = d.hS);
  549. d.yF = k;
  550. d.Yaa = function() {};
  551. d.baa = function() {};
  552. d.Vha = function() {};
  553. d.$$ = function() {
  554. var a;
  555. a = "" + ("isMobile : " + this.Jh + "\r\n");
  556. a += "language : " + this.language + "\r\n";
  557. a += "browserType : " + this.wm + "\r\n";
  558. a += "capabilities : " + JSON.stringify(this.aE) + "\r\n";
  559. a += "os : " + this.yF + "\r\n";
  560. a += "platform : " + this.platform + "\r\n";
  561. b.log(a)
  562. }
  563. };
  564. b.S7 = 0;
  565. b.T7 = 1;
  566. b.Q7 = 2;
  567. b.R7 = 3;
  568. b.Fe = null;
  569. b.l = null;
  570. b.Va = null;
  571. b.LV = null;
  572. b.Ov = !1;
  573. b.sL = !1;
  574. b.rL = function(a) {
  575. var c, d;
  576. if (!b.sL) {
  577. b.sL = !0;
  578. var e = window,
  579. f = new Date,
  580. g = 1E3 / b.Jb.re[b.Jb.kg.Kw];
  581. e.MO = e.requestAnimationFrame || e.webkitRequestAnimationFrame || e.mozRequestAnimationFrame || e.oRequestAnimationFrame || e.msRequestAnimationFrame || function(a) {
  582. var c = (new Date).getTime(),
  583. d = Math.max(0, g - (c - f)),
  584. e = window.setTimeout(function() {
  585. a()
  586. }, d);
  587. f = c + d;
  588. return e
  589. };
  590. e.cancelAnimationFrame = window.cancelAnimationFrame || window.cancelRequestAnimationFrame || window.msCancelRequestAnimationFrame || window.mozCancelRequestAnimationFrame ||
  591. window.oCancelRequestAnimationFrame || window.webkitCancelRequestAnimationFrame || window.msCancelAnimationFrame || window.mozCancelAnimationFrame || window.webkitCancelAnimationFrame || window.oCancelAnimationFrame || function(a) {
  592. clearTimeout(a)
  593. };
  594. var h = b.ub(a) || b.ub("#" + a),
  595. k;
  596. "CANVAS" == h.tagName ? (c = c || h.width, d = d || h.height, k = b.ym = b.Sb("DIV"), a = b.Va = h, a.parentNode.insertBefore(k, a), a.$L(k), k.setAttribute("id", "Cocos2dGameContainer")) : ("DIV" != h.tagName && b.log("Warning: target element is not a DIV or CANVAS"), c =
  597. c || h.clientWidth, d = d || h.clientHeight, k = b.ym = h, a = b.Va = b.ub(b.Sb("CANVAS")), h.appendChild(a));
  598. a.UL("gameCanvas");
  599. a.setAttribute("width", c || 480);
  600. a.setAttribute("height", d || 320);
  601. a.setAttribute("tabindex", 99);
  602. a.style.outline = "none";
  603. h = k.style;
  604. h.width = (c || 480) + "px";
  605. h.height = (d || 320) + "px";
  606. h.margin = "0 auto";
  607. h.position = "relative";
  608. h.overflow = "hidden";
  609. k.top = "100%";
  610. b.A == b.U && (b.l = b.Rka = b.uM(a, {
  611. stencil: !0,
  612. preserveDrawingBuffer: !0,
  613. antialias: !b.hb.Jh,
  614. alpha: !1
  615. }));
  616. b.l ? (e.gl = b.l, b.Fe = new b.TQ(b.l), b.Ov = !0, b.Da.IW(),
  617. b.Md.jr()) : (b.l = a.getContext("2d"), b.ZW = b.l, b.l.translate(0, a.height), b.Fe = b.NG ? new b.NG(b.l) : null);
  618. b.LV = k;
  619. b.log(b.Wy);
  620. b.TX();
  621. b.hb.Jh && (c = b.Sb("style"), c.type = "text/css", document.body.appendChild(c), c.textContent = "body,canvas,div{ -moz-user-select: none;-webkit-user-select: none;-ms-user-select: none;-khtml-user-select: none;-webkit-tap-highlight-color:rgba(0,0,0,0);}");
  622. b.view = b.Uy.yB();
  623. b.PN.l3(b.Va);
  624. b.I = b.Ta.yB();
  625. b.I.YF && b.I.YF(b.view);
  626. b.Tj = b.I.Aa();
  627. b.aia = new b.$t;
  628. b.X2 = new b.xS
  629. }
  630. };
  631. b.ZA = function() {
  632. if (b.A !== b.U) throw "This feature supports WebGL render mode only.";
  633. };
  634. b.oK = !1;
  635. b.TX = function() {
  636. b.oK = !1;
  637. b.Va.oncontextmenu = function() {
  638. if (!b.oK) return !1
  639. }
  640. };
  641. b.Jb = {
  642. GG: 0,
  643. HQ: 1,
  644. L6: 2,
  645. GQ: 3,
  646. Py: 4,
  647. HG: 5,
  648. FG: 6,
  649. ut: "game_on_hide",
  650. Op: "game_on_show",
  651. tk: null,
  652. uk: null,
  653. s9: [],
  654. kg: {
  655. vE: "engineDir",
  656. L$: "dependencies",
  657. ns: "debugMode",
  658. R4: "showFPS",
  659. Kw: "frameRate",
  660. id: "id",
  661. $s: "renderMode",
  662. N1: "jsList",
  663. FZ: "classReleaseMode"
  664. },
  665. RK: !1,
  666. rC: !1,
  667. jc: !0,
  668. lr: null,
  669. re: null,
  670. xF: null,
  671. Dga: null,
  672. Kia: function(a) {
  673. this.re[this.kg.Kw] = a;
  674. this.lr && window.cancelAnimationFrame(this.lr);
  675. this.jc = !0;
  676. this.Sv()
  677. },
  678. Sv: function() {
  679. var a = this,
  680. c, d = b.I;
  681. d.W3(a.re[a.kg.R4]);
  682. c = function() {
  683. a.jc || (d.z2(), a.lr = window.MO(c))
  684. };
  685. window.MO(c);
  686. a.jc = !1
  687. },
  688. F3: function(a) {
  689. function c() {
  690. a && (d.re[d.kg.id] = a);
  691. d.RK ? b.Pr && (d.bV = setInterval(function() {
  692. d.rC && (b.rL(d.re[d.kg.id]), d.Sv(), d.tk = d.tk || new b.Si(d.ut), d.tk.setUserData(d), d.uk = d.uk || new b.Si(d.Op), d.uk.setUserData(d), d.xF(), clearInterval(d.bV))
  693. }, 10)) : d.b3(function() {
  694. b.Pr && (b.rL(d.re[d.kg.id]), d.Sv(), d.tk = d.tk || new b.Si(d.ut), d.tk.setUserData(d), d.uk = d.uk || new b.Si(d.Op), d.uk.setUserData(d), d.xF())
  695. })
  696. }
  697. var d = this;
  698. document.body ? c() : b.Ga(window, "load", function() {
  699. this.removeEventListener("load",
  700. arguments.callee, !1);
  701. c()
  702. }, !1)
  703. },
  704. AW: function() {
  705. function a(a) {
  706. a[c.vE] = a[c.vE] || "frameworks/cocos2d-html5";
  707. null == a[c.ns] && (a[c.ns] = 0);
  708. a[c.Kw] = a[c.Kw] || 60;
  709. null == a[c.$s] && (a[c.$s] = 1);
  710. return a
  711. }
  712. var c = this.kg;
  713. if (document.ccConfig) this.re = a(document.ccConfig);
  714. else try {
  715. for (var d = document.getElementsByTagName("script"), e = 0; e < d.length; e++) {
  716. var f = d[e].getAttribute("cocos");
  717. if ("" == f || f) break
  718. }
  719. var g, h, k;
  720. if (e < d.length) {
  721. if (g = d[e].src) k = /(.*)\//.exec(g)[0], b.T.Zx = k, g = b.path.join(k, "project.js");
  722. h = b.T.BK(g)
  723. }
  724. h || (h = b.T.BK("project.js"));
  725. var m = JSON.parse(h);
  726. this.re = a(m || {})
  727. } catch (p) {
  728. b.log("Failed to read or parse project.js"), this.re = a({})
  729. }
  730. b.FW(this.re, c)
  731. },
  732. PW: {},
  733. $J: function(a, c, d) {
  734. var e = this.PW;
  735. if (e[c]) return null;
  736. d = d || "";
  737. var f = [],
  738. g = a[c];
  739. if (!g) throw "can not find module [" + c + "]";
  740. c = b.path;
  741. for (var h = 0, k = g.length; h < k; h++) {
  742. var m = g[h];
  743. if (!e[m]) {
  744. var p = c.Zk(m);
  745. p ? ".js" == p.toLowerCase() && f.push(c.join(d, m)) : (p = this.$J(a, m, d)) && (f = f.concat(p));
  746. e[m] = 1
  747. }
  748. }
  749. return f
  750. },
  751. b3: function(a) {
  752. var c = this,
  753. d = c.re,
  754. e = c.kg,
  755. f = d[e.vE],
  756. g = b.T;
  757. if (!b.Pr) throw "The renderer doesn't support the renderMode " +
  758. d[e.$s];
  759. c.RK = !0;
  760. var h = d[e.N1] || [];
  761. b.oa ? g.jO("", h, function(d) {
  762. if (d) throw d;
  763. c.rC = !0;
  764. a && a()
  765. }) : (e = b.path.join(f, "moduleConfig.json"), g.kO(e, function(e, g) {
  766. if (e) throw e;
  767. var p = d.modules || [],
  768. r = g.module,
  769. s = [];
  770. b.A == b.U ? p.splice(0, 0, "shaders") : 0 > p.indexOf("core") && p.splice(0, 0, "core");
  771. for (var u = 0, t = p.length; u < t; u++) {
  772. var v = c.$J(r, p[u], f);
  773. v && (s = s.concat(v))
  774. }
  775. s = s.concat(h);
  776. b.T.jO(s, function(d) {
  777. if (d) throw d;
  778. c.rC = !0;
  779. a && a()
  780. })
  781. }))
  782. }
  783. };
  784. b.Jb.AW();
  785. Function.prototype.bind = Function.prototype.bind || function(a) {
  786. var c = this;
  787. return function() {
  788. var d = Array.prototype.slice.call(arguments);
  789. return c.apply(a || null, d)
  790. }
  791. };
  792. b.e = {
  793. xG: "cc.ActionManager.addAction(): action must be non-null",
  794. gQ: "cocos2d: removeAction: Target not found",
  795. m6: "cc.ActionManager.removeActionByTag(): an invalid tag",
  796. n6: "cc.ActionManager.removeActionByTag(): target must be non-null",
  797. eQ: "cc.ActionManager.getActionByTag(): an invalid tag",
  798. fQ: "cocos2d : getActionByTag(tag \x3d %s): Action not found",
  799. IZ: "cocos2d: **** WARNING **** CC_ENABLE_PROFILERS is defined. Disable it when you finish profiling (from ccConfig.js)",
  800. JZ: "Expected 'data' dict, but not found. Config file: %s",
  801. KZ: "Please load the resource first : %s",
  802. OQ: "cocos2d: Director: Error in gettimeofday",
  803. PQ: "cocos2d: Director: unrecognized projection",
  804. W6: "cocos2d: Director: unrecognized projection",
  805. NQ: "cocos2d: Director: Error in gettimeofday",
  806. MQ: "running scene should not null",
  807. MG: "the scene should not null",
  808. Lo: "element type is wrong!",
  809. US: "CCSheduler#scheduleCallback. Callback already scheduled. Updating interval from:%s to %s",
  810. VS: "cc.scheduler.scheduleCallbackForTarget(): callback_fn should be non-null.",
  811. WS: "cc.scheduler.scheduleCallbackForTarget(): target should be non-null.",
  812. SS: "cc.Scheduler.pauseTarget():target should be non-null",
  813. TS: "cc.Scheduler.resumeTarget():target should be non-null",
  814. RS: "cc.Scheduler.isTargetPaused():target should be non-null",
  815. UR: "getZOrder is deprecated. Please use getLocalZOrder instead.",
  816. eS: "setZOrder is deprecated. Please use setLocalZOrder instead.",
  817. SR: "RotationX !\x3d RotationY. Don't know which one to return",
  818. TR: "ScaleX !\x3d ScaleY. Don't know which one to return",
  819. I7: "An Node can't be added as a child of itself.",
  820. J7: "child already added. It can't be added again",
  821. PR: "child must be non-null",
  822. ZR: "removeFromParentAndCleanup is deprecated. Use removeFromParent instead",
  823. QR: "boundingBox is deprecated. Use getBoundingBox instead",
  824. XR: "argument tag is an invalid tag",
  825. YR: "cocos2d: removeChildByTag(tag \x3d %s): child not found!",
  826. WR: "removeAllChildrenWithCleanup is deprecated. Use removeAllChildren instead",
  827. fS: "cc.Node.stopActionBy(): argument tag an invalid tag",
  828. RR: "cc.Node.getActionByTag(): argument tag is an invalid tag",
  829. aS: "resumeSchedulerAndActions is deprecated, please use resume instead.",
  830. VR: "pauseSchedulerAndActions is deprecated, please use pause instead.",
  831. OR: "Unknown callback function",
  832. $R: "child must be non-null",
  833. bS: "cc.Node.runAction(): action must be non-null",
  834. cS: "callback function must be non-null",
  835. dS: "interval must be positive",
  836. K7: "cocos2d: Could not initialize cc.AtlasNode. Invalid Texture.",
  837. hQ: "cc.AtlasNode.updateAtlasValues(): Shall be overridden in subclasses",
  838. q6: "",
  839. yG: "cocos2d: Could not initialize cc.AtlasNode. Invalid Texture.",
  840. xU: "cc._EventListenerKeyboard.checkAvailable(): Invalid EventListenerKeyboard!",
  841. zU: "cc._EventListenerTouchOneByOne.checkAvailable(): Invalid EventListenerTouchOneByOne!",
  842. yU: "cc._EventListenerTouchAllAtOnce.checkAvailable(): Invalid EventListenerTouchAllAtOnce!",
  843. wU: "cc._EventListenerAcceleration.checkAvailable(): _onAccelerationEvent must be non-nil",
  844. aR: "Invalid parameter.",
  845. su: "Don't call this method if the event is for touch.",
  846. r_: "Invalid scene graph priority!",
  847. s_: "0 priority is forbidden for fixed priority since it's used for scene graph based priority.",
  848. w_: "Invalid listener type!",
  849. x_: "Can't set fixed priority with scene graph based listener.",
  850. t_: "Invalid parameters.",
  851. u_: "listener must be a cc.EventListener object when adding a fixed priority listener",
  852. v_: "The listener has been registered, please don't register it again.",
  853. HR: "parameters should not be ending with null in Javascript",
  854. IR: "Invalid index in MultiplexLayer switchTo message",
  855. JR: "Invalid index in MultiplexLayer switchTo message",
  856. GR: "cc.Layer.addLayer(): layer should be non-null",
  857. UQ: "Resolution not valid",
  858. VQ: "should set resolutionPolicy",
  859. A1: "The touches is more than MAX_TOUCHES, nUnusedIndex \x3d %s",
  860. HP: "cc.swap is being modified from original macro, please check usage",
  861. Qo: "WebGL error %s",
  862. gZ: "cocos2d: cc.AnimationCache: No animations were found in provided dictionary.",
  863. hZ: "cc.AnimationCache. Invalid animation format",
  864. oZ: "cc.AnimationCache.addAnimations(): File could not be found",
  865. iZ: "cocos2d: cc.AnimationCache: Animation '%s' found in dictionary without any frames - cannot add to animation cache.",
  866. jZ: "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.",
  867. kZ: "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.",
  868. lZ: "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.",
  869. mZ: "cocos2d: CCAnimationCache: Animation '%s' found in dictionary without any frames - cannot add to animation cache.",
  870. nZ: "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.",
  871. pZ: "cc.AnimationCache.addAnimations(): Invalid texture file name",
  872. sT: "cc.Sprite.reorderChild(): this child is not in children list",
  873. kT: "cc.Sprite.ignoreAnchorPointForPosition(): it is invalid in cc.Sprite when using SpriteBatchNode",
  874. vT: "cc.Sprite.setDisplayFrameWithAnimationName(): Frame not found",
  875. wT: "cc.Sprite.setDisplayFrameWithAnimationName(): Invalid frame index",
  876. uT: "setDisplayFrame is deprecated, please use setSpriteFrame instead.",
  877. dT: "cc.Sprite._updateBlendFunc(): _updateBlendFunc doesn't work when the sprite is rendered using a cc.CCSpriteBatchNode",
  878. mT: "cc.Sprite.initWithSpriteFrame(): spriteFrame should be non-null",
  879. nT: "cc.Sprite.initWithSpriteFrameName(): spriteFrameName should be non-null",
  880. oT: " is null, please check.",
  881. lT: "cc.Sprite.initWithFile(): filename should be non-null",
  882. xT: "cc.Sprite.setDisplayFrameWithAnimationName(): animationName must be non-null",
  883. tT: "cc.Sprite.reorderChild(): child should be non-null",
  884. eT: "cc.Sprite.addChild(): cc.Sprite only supports cc.Sprites as children when using cc.SpriteBatchNode",
  885. fT: "cc.Sprite.addChild(): cc.Sprite only supports a sprite using same texture as children when using cc.SpriteBatchNode",
  886. gT: "cc.Sprite.addChild(): child should be non-null",
  887. zT: "cc.Sprite.texture setter: Batched sprites should use the same texture as the batchnode",
  888. f8: "cc.SpriteBatchNode.updateQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",
  889. qT: "cc.SpriteBatchNode.insertQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",
  890. hT: "cc.SpriteBatchNode.addChild(): cc.SpriteBatchNode only supports cc.Sprites as children",
  891. iT: "cc.SpriteBatchNode.addChild(): cc.Sprite is not using the same texture",
  892. pT: "Sprite.initWithTexture(): Argument must be non-nil ",
  893. yT: "Invalid spriteFrameName",
  894. AT: "Invalid argument: cc.Sprite.texture setter expects a CCTexture2D.",
  895. g8: "cc.SpriteBatchNode.updateQuadFromSprite(): sprite should be non-null",
  896. rT: "cc.SpriteBatchNode.insertQuadFromSprite(): sprite should be non-null",
  897. jT: "cc.SpriteBatchNode.addChild(): child should be non-null",
  898. XS: "cc.SpriteBatchNode.addQuadFromSprite(): SpriteBatchNode only supports cc.Sprites as children",
  899. ZS: "cocos2d: CCSpriteBatchNode: resizing TextureAtlas capacity from %s to %s.",
  900. $S: "cocos2d: WARNING: Not enough memory to resize the atlas",
  901. bT: "cc.SpriteBatchNode.addChild(): Child doesn't belong to Sprite",
  902. aT: "cc.SpriteBatchNode.addChild(): sprite batch node should contain the child",
  903. YS: "cc.SpriteBatchNode.addQuadFromSprite(): child should be non-null",
  904. cT: "cc.SpriteBatchNode.addChild():child should be non-null",
  905. a5: "cocos2d: WARNING: originalWidth/Height not found on the cc.SpriteFrame. AnchorPoint won't work as expected. Regenrate the .plist",
  906. c5: "cocos2d: WARNING: an alias with name %s already exists",
  907. Z4: "cocos2d: WARNING: Sprite frame: %s has already been added by another source, please fix name conflit",
  908. f5: "cocos2d: cc.SpriteFrameCahce: Frame %s not found",
  909. b5: "Please load the resource first : %s",
  910. d5: "cc.SpriteFrameCache.addSpriteFrames(): plist should be non-null",
  911. e5: "Argument must be non-nil",
  912. My: "cc.SpriteBatchNode.updateQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",
  913. wQ: "cc.SpriteBatchNode.insertQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",
  914. sQ: "cc.SpriteBatchNode.addChild(): cc.SpriteBatchNode only supports cc.Sprites as children",
  915. vQ: "Sprite.initWithTexture(): Argument must be non-nil ",
  916. tQ: "cc.Sprite.addChild(): child should be non-null",
  917. yQ: "Invalid spriteFrameName",
  918. zQ: "Invalid argument: cc.Sprite texture setter expects a CCTexture2D.",
  919. AQ: "cc.SpriteBatchNode.updateQuadFromSprite(): sprite should be non-null",
  920. xQ: "cc.SpriteBatchNode.insertQuadFromSprite(): sprite should be non-null",
  921. uQ: "cc.SpriteBatchNode.addChild(): child should be non-null",
  922. VT: "cocos2d: Could not open file: %s",
  923. PH: "cc.TextureAtlas.insertQuad(): invalid totalQuads",
  924. WT: "cc.TextureAtlas.initWithTexture():texture should be non-null",
  925. fU: "cc.TextureAtlas.updateQuad(): quad should be non-null",
  926. gU: "cc.TextureAtlas.updateQuad(): Invalid index",
  927. ZT: "cc.TextureAtlas.insertQuad(): Invalid index",
  928. $T: "cc.TextureAtlas.insertQuad(): Invalid index + amount",
  929. XT: "cc.TextureAtlas.insertQuadFromIndex(): Invalid newIndex",
  930. YT: "cc.TextureAtlas.insertQuadFromIndex(): Invalid fromIndex",
  931. dU: "cc.TextureAtlas.removeQuadAtIndex(): Invalid index",
  932. eU: "cc.TextureAtlas.removeQuadsAtIndex(): index + amount out of bounds",
  933. aU: "cc.TextureAtlas.moveQuadsFromIndex(): move is out of bounds",
  934. bU: "cc.TextureAtlas.moveQuadsFromIndex(): Invalid newIndex",
  935. cU: "cc.TextureAtlas.moveQuadsFromIndex(): Invalid oldIndex",
  936. s5: "TextureCache:addPVRTCImage does not support on HTML5",
  937. q5: "TextureCache:addPVRTCImage does not support on HTML5",
  938. r5: "addPVRImage does not support on HTML5",
  939. t5: "cocos2d: Couldn't add UIImage in TextureCache",
  940. v5: "cocos2d: '%s' id\x3d%s %s x %s",
  941. JP: "cocos2d: '%s' id\x3d HTMLCanvasElement %s x %s",
  942. w5: "cocos2d: TextureCache dumpDebugInfo: %s textures, HTMLCanvasElement for %s KB (%s MB)",
  943. u5: "cc.Texture.addUIImage(): image should be non-null",
  944. MT: "initWithETCFile does not support on HTML5",
  945. QT: "initWithPVRFile does not support on HTML5",
  946. ST: "initWithPVRTCData does not support on HTML5",
  947. IT: "cc.Texture.addImage(): path should be non-null",
  948. OT: "cocos2d: cc.Texture2D. Can't create Texture. UIImage is nil",
  949. PT: "cocos2d: WARNING: Image (%s x %s) is bigger than the supported %s x %s",
  950. UT: "initWithString isn't supported on cocos2d-html5",
  951. NT: "initWithETCFile does not support on HTML5",
  952. RT: "initWithPVRFile does not support on HTML5",
  953. TT: "initWithPVRTCData does not support on HTML5",
  954. KT: "bitsPerPixelForFormat: %s, cannot give useful result, it's a illegal pixel format",
  955. HT: "cocos2d: cc.Texture2D: Using RGB565 texture since image has no alpha",
  956. JT: "cc.Texture.addImage(): path should be non-null",
  957. LT: "NSInternalInconsistencyException",
  958. jd: "Missing file: %s",
  959. BO: "cc.radiansToDegress() should be called cc.radiansToDegrees()",
  960. Iz: "Rect width exceeds maximum margin: %s",
  961. Hz: "Rect height exceeds maximum margin: %s",
  962. bR: "If program goes here, there should be event in dispatch.",
  963. cR: "_inDispatch should be 1 here."
  964. };
  965. b.uv = function(a) {
  966. if (b.Va) {
  967. var c = b.YW,
  968. d = document;
  969. if (!c) {
  970. var e = d.createElement("Div"),
  971. c = e.style;
  972. e.setAttribute("id", "logInfoDiv");
  973. b.Va.parentNode.appendChild(e);
  974. e.setAttribute("width", "200");
  975. e.setAttribute("height", b.Va.height);
  976. c.zIndex = "99999";
  977. c.position = "absolute";
  978. c.top = "0";
  979. c.left = "0";
  980. c = b.YW = d.createElement("textarea");
  981. d = c.style;
  982. c.setAttribute("rows", "20");
  983. c.setAttribute("cols", "30");
  984. c.setAttribute("disabled", !0);
  985. e.appendChild(c);
  986. d.backgroundColor = "transparent";
  987. d.borderBottom = "1px solid #cccccc";
  988. d.borderRightWidth = "0px";
  989. d.borderLeftWidth = "0px";
  990. d.borderTopWidth = "0px";
  991. d.borderTopStyle = "none";
  992. d.borderRightStyle = "none";
  993. d.borderLeftStyle = "none";
  994. d.padding = "0px";
  995. d.margin = 0
  996. }
  997. a = "string" == typeof a ? a : JSON.stringify(a);
  998. c.value = c.value + a + "\r\n";
  999. c.scrollTop = c.scrollHeight
  1000. }
  1001. };
  1002. b.fv = function(a) {
  1003. if ("object" === typeof a) try {
  1004. return JSON.stringify(a)
  1005. } catch (c) {
  1006. return ""
  1007. } else return a
  1008. };
  1009. console.log && (b.log = function(a) {
  1010. for (var c = 1; c < arguments.length; c++) a = a.replace(/(%s)|(%d)/, b.fv(arguments[c]));
  1011. console.log(a)
  1012. }, b.warn = console.warn ? function(a) {
  1013. for (var c = 1; c < arguments.length; c++) a = a.replace(/(%s)|(%d)/, b.fv(arguments[c]));
  1014. console.warn(a)
  1015. } : b.log, b.error = console.error ? function(a) {
  1016. for (var c = 1; c < arguments.length; c++) a = a.replace(/(%s)|(%d)/, b.fv(arguments[c]));
  1017. console.error(a)
  1018. } : b.log, b.assert = function(a, c) {
  1019. if (!a && c) {
  1020. for (var d = 2; d < arguments.length; d++) c = c.replace(/(%s)|(%d)/, b.fv(arguments[d]));
  1021. throw c;
  1022. }
  1023. });
  1024. var q = b.Jb.re[b.Jb.kg.ns],
  1025. z = b.Jb;
  1026. console.log && q === z.HQ || (b.log = q == z.Py ? b.uv.bind(b) : function() {});
  1027. q && q != z.GG && q != z.GQ && q != z.FG || (b.warn = function() {});
  1028. q != z.Py && q != z.HG && console.warn || (b.warn = b.uv.bind(b));
  1029. q && q != z.GG ? q != z.Py && q != z.HG && q != z.FG && console.error || (b.error = b.uv.bind(b), b.assert = function(a, c) {
  1030. if (!a && c) {
  1031. for (var d = 2; d < arguments.length; d++) c = c.replace("%s", arguments[d]);
  1032. b.uv(c)
  1033. }
  1034. }) : (b.error = function() {}, b.assert = function() {});
  1035. b.T.v2 = function(a, c) {
  1036. var d = this,
  1037. e = this.Yw(),
  1038. f = "load " + a + " failed!";
  1039. e.open("GET", a, !0);
  1040. /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent) ? (e.setRequestHeader("Accept-Charset", "x-user-defined"), e.onreadystatechange = function() {
  1041. if (4 == e.readyState && 200 == e.status) {
  1042. var a = b.VI(e.responseBody);
  1043. c(null, d.cw(a))
  1044. } else c(f)
  1045. }) : (e.overrideMimeType && e.overrideMimeType("text/plain; charset\x3dx-user-defined"), e.onload = function() {
  1046. 4 == e.readyState && 200 == e.status ? c(null, d.cw(e.responseText)) : c(f)
  1047. });
  1048. e.send(null)
  1049. };
  1050. b.T.cw = function(a) {
  1051. if (!a) return null;
  1052. for (var c = new Uint8Array(a.length), d = 0; d < a.length; d++) c[d] = a.charCodeAt(d) & 255;
  1053. return c
  1054. };
  1055. b.T.gga = function(a) {
  1056. var c = this.Yw(),
  1057. d = "load " + a + " failed!";
  1058. c.open("GET", a, !1);
  1059. a = null;
  1060. if (/msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent)) {
  1061. c.setRequestHeader("Accept-Charset", "x-user-defined");
  1062. c.send(null);
  1063. if (200 != c.status) return b.log(d), null;
  1064. (c = b.VI(c.responseBody)) && (a = this.cw(c))
  1065. } else {
  1066. c.overrideMimeType && c.overrideMimeType("text/plain; charset\x3dx-user-defined");
  1067. c.send(null);
  1068. if (200 != c.status) return b.log(d), null;
  1069. a = this.cw(c.responseText)
  1070. }
  1071. return a
  1072. };
  1073. var Uint8Array = Uint8Array || Array;
  1074. if (/msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent)) {
  1075. var aa = b.Sb("script");
  1076. aa.type = "text/vbscript";
  1077. aa.textContent = '\x3c!-- IEBinaryToArray_ByteStr --\x3e\r\nFunction IEBinaryToArray_ByteStr(Binary)\r\n IEBinaryToArray_ByteStr \x3d CStr(Binary)\r\nEnd Function\r\nFunction IEBinaryToArray_ByteStr_Last(Binary)\r\n Dim lastIndex\r\n lastIndex \x3d LenB(Binary)\r\n if lastIndex mod 2 Then\r\n IEBinaryToArray_ByteStr_Last \x3d Chr( AscB( MidB( Binary, lastIndex, 1 ) ) )\r\n Else\r\n IEBinaryToArray_ByteStr_Last \x3d ""\r\n End If\r\nEnd Function\r\n';
  1078. document.body.appendChild(aa);
  1079. b.VI = function(a) {
  1080. for (var c = {}, d = 0; 256 > d; d++)
  1081. for (var e = 0; 256 > e; e++) c[String.fromCharCode(d + 256 * e)] = String.fromCharCode(d) + String.fromCharCode(e);
  1082. d = IEBinaryToArray_ByteStr(a);
  1083. a = IEBinaryToArray_ByteStr_Last(a);
  1084. return d.replace(/[\s\S]/g, function(a) {
  1085. return c[a]
  1086. }) + a
  1087. }
  1088. };
  1089. b = b || {};
  1090. b.DK = "data:image/gif;base64,R0lGODlhEAAQALMNAD8/P7+/vyoqKlVVVX9/fxUVFUBAQGBgYMDAwC8vL5CQkP///wAAAP///wAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFAAANACwAAAAAEAAQAAAEO5DJSau9OOvNex0IMnDIsiCkiW6g6BmKYlBFkhSUEgQKlQCARG6nEBwOgl+QApMdCIRD7YZ5RjlGpCUCACH5BAUAAA0ALAAAAgAOAA4AAAQ6kLGB0JA4M7QW0hrngRllkYyhKAYqKUGguAws0ypLS8JxCLQDgXAIDg+FRKIA6v0SAECCBpXSkstMBAAh+QQFAAANACwAAAAACgAQAAAEOJDJORAac6K1kDSKYmydpASBUl0mqmRfaGTCcQgwcxDEke+9XO2WkxQSiUIuAQAkls0n7JgsWq8RACH5BAUAAA0ALAAAAAAOAA4AAAQ6kMlplDIzTxWC0oxwHALnDQgySAdBHNWFLAvCukc215JIZihVIZEogDIJACBxnCSXTcmwGK1ar1hrBAAh+QQFAAANACwAAAAAEAAKAAAEN5DJKc4RM+tDyNFTkSQF5xmKYmQJACTVpQSBwrpJNteZSGYoFWjIGCAQA2IGsVgglBOmEyoxIiMAIfkEBQAADQAsAgAAAA4ADgAABDmQSVZSKjPPBEDSGucJxyGA1XUQxAFma/tOpDlnhqIYN6MEAUXvF+zldrMBAjHoIRYLhBMqvSmZkggAIfkEBQAADQAsBgAAAAoAEAAABDeQyUmrnSWlYhMASfeFVbZdjHAcgnUQxOHCcqWylKEohqUEAYVkgEAMfkEJYrFA6HhKJsJCNFoiACH5BAUAAA0ALAIAAgAOAA4AAAQ3kMlJq704611SKloCAEk4lln3DQgyUMJxCBKyLAh1EMRR3wiDQmHY9SQslyIQUMRmlmVTIyRaIgA7";
  1091. b.Xn = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAAgCAYAAAD9qabkAAAKQ2lDQ1BJQ0MgcHJvZmlsZQAAeNqdU3dYk/cWPt/3ZQ9WQtjwsZdsgQAiI6wIyBBZohCSAGGEEBJAxYWIClYUFRGcSFXEgtUKSJ2I4qAouGdBiohai1VcOO4f3Ke1fXrv7e371/u855zn/M55zw+AERImkeaiagA5UoU8Otgfj09IxMm9gAIVSOAEIBDmy8JnBcUAAPADeXh+dLA//AGvbwACAHDVLiQSx+H/g7pQJlcAIJEA4CIS5wsBkFIAyC5UyBQAyBgAsFOzZAoAlAAAbHl8QiIAqg0A7PRJPgUA2KmT3BcA2KIcqQgAjQEAmShHJAJAuwBgVYFSLALAwgCgrEAiLgTArgGAWbYyRwKAvQUAdo5YkA9AYACAmUIszAAgOAIAQx4TzQMgTAOgMNK/4KlfcIW4SAEAwMuVzZdL0jMUuJXQGnfy8ODiIeLCbLFCYRcpEGYJ5CKcl5sjE0jnA0zODAAAGvnRwf44P5Dn5uTh5mbnbO/0xaL+a/BvIj4h8d/+vIwCBAAQTs/v2l/l5dYDcMcBsHW/a6lbANpWAGjf+V0z2wmgWgrQevmLeTj8QB6eoVDIPB0cCgsL7SViob0w44s+/zPhb+CLfvb8QB7+23rwAHGaQJmtwKOD/XFhbnauUo7nywRCMW735yP+x4V//Y4p0eI0sVwsFYrxWIm4UCJNx3m5UpFEIcmV4hLpfzLxH5b9CZN3DQCshk/ATrYHtctswH7uAQKLDljSdgBAfvMtjBoLkQAQZzQyefcAAJO/+Y9AKwEAzZek4wAAvOgYXKiUF0zGCAAARKCBKrBBBwzBFKzADpzBHbzAFwJhBkRADCTAPBBCBuSAHAqhGJZBGVTAOtgEtbADGqARmuEQtMExOA3n4BJcgetwFwZgGJ7CGLyGCQRByAgTYSE6iBFijtgizggXmY4EImFINJKApCDpiBRRIsXIcqQCqUJqkV1II/ItchQ5jVxA+pDbyCAyivyKvEcxlIGyUQPUAnVAuagfGorGoHPRdDQPXYCWomvRGrQePYC2oqfRS+h1dAB9io5jgNExDmaM2WFcjIdFYIlYGibHFmPlWDVWjzVjHVg3dhUbwJ5h7wgkAouAE+wIXoQQwmyCkJBHWExYQ6gl7CO0EroIVwmDhDHCJyKTqE+0JXoS+cR4YjqxkFhGrCbuIR4hniVeJw4TX5NIJA7JkuROCiElkDJJC0lrSNtILaRTpD7SEGmcTCbrkG3J3uQIsoCsIJeRt5APkE+S+8nD5LcUOsWI4kwJoiRSpJQSSjVlP+UEpZ8yQpmgqlHNqZ7UCKqIOp9aSW2gdlAvU4epEzR1miXNmxZDy6Qto9XQmmlnafdoL+l0ugndgx5Fl9CX0mvoB+nn6YP0dwwNhg2Dx0hiKBlrGXsZpxi3GS+ZTKYF05eZyFQw1zIbmWeYD5hvVVgq9ip8FZHKEpU6lVaVfpXnqlRVc1U/1XmqC1SrVQ+rXlZ9pkZVs1DjqQnUFqvVqR1Vu6k2rs5Sd1KPUM9RX6O+X/2C+mMNsoaFRqCGSKNUY7fGGY0hFsYyZfFYQtZyVgPrLGuYTWJbsvnsTHYF+xt2L3tMU0NzqmasZpFmneZxzQEOxrHg8DnZnErOIc4NznstAy0/LbHWaq1mrX6tN9p62r7aYu1y7Rbt69rvdXCdQJ0snfU6bTr3dQm6NrpRuoW623XP6j7TY+t56Qn1yvUO6d3RR/Vt9KP1F+rv1u/RHzcwNAg2kBlsMThj8MyQY+hrmGm40fCE4agRy2i6kcRoo9FJoye4Ju6HZ+M1eBc+ZqxvHGKsNN5l3Gs8YWJpMtukxKTF5L4pzZRrmma60bTTdMzMyCzcrNisyeyOOdWca55hvtm82/yNhaVFnMVKizaLx5balnzLBZZNlvesmFY+VnlW9VbXrEnWXOss623WV2xQG1ebDJs6m8u2qK2brcR2m23fFOIUjynSKfVTbtox7PzsCuya7AbtOfZh9iX2bfbPHcwcEh3WO3Q7fHJ0dcx2bHC866ThNMOpxKnD6VdnG2ehc53zNRemS5DLEpd2lxdTbaeKp26fesuV5RruutK10/Wjm7ub3K3ZbdTdzD3Ffav7TS6bG8ldwz3vQfTw91jicczjnaebp8LzkOcvXnZeWV77vR5Ps5wmntYwbcjbxFvgvct7YDo+PWX6zukDPsY+Ap96n4e+pr4i3z2+I37Wfpl+B/ye+zv6y/2P+L/hefIW8U4FYAHBAeUBvYEagbMDawMfBJkEpQc1BY0FuwYvDD4VQgwJDVkfcpNvwBfyG/ljM9xnLJrRFcoInRVaG/owzCZMHtYRjobPCN8Qfm+m+UzpzLYIiOBHbIi4H2kZmRf5fRQpKjKqLupRtFN0cXT3LNas5Fn7Z72O8Y+pjLk722q2cnZnrGpsUmxj7Ju4gLiquIF4h/hF8ZcSdBMkCe2J5MTYxD2J43MC52yaM5zkmlSWdGOu5dyiuRfm6c7Lnnc8WTVZkHw4hZgSl7I/5YMgQlAvGE/lp25NHRPyhJuFT0W+oo2iUbG3uEo8kuadVpX2ON07fUP6aIZPRnXGMwlPUit5kRmSuSPzTVZE1t6sz9lx2S05lJyUnKNSDWmWtCvXMLcot09mKyuTDeR55m3KG5OHyvfkI/lz89sVbIVM0aO0Uq5QDhZML6greFsYW3i4SL1IWtQz32b+6vkjC4IWfL2QsFC4sLPYuHhZ8eAiv0W7FiOLUxd3LjFdUrpkeGnw0n3LaMuylv1Q4lhSVfJqedzyjlKD0qWlQyuCVzSVqZTJy26u9Fq5YxVhlWRV72qX1VtWfyoXlV+scKyorviwRrjm4ldOX9V89Xlt2treSrfK7etI66Trbqz3Wb+vSr1qQdXQhvANrRvxjeUbX21K3nShemr1js20zcrNAzVhNe1bzLas2/KhNqP2ep1/XctW/a2rt77ZJtrWv913e/MOgx0VO97vlOy8tSt4V2u9RX31btLugt2PGmIbur/mft24R3dPxZ6Pe6V7B/ZF7+tqdG9s3K+/v7IJbVI2jR5IOnDlm4Bv2pvtmne1cFoqDsJB5cEn36Z8e+NQ6KHOw9zDzd+Zf7f1COtIeSvSOr91rC2jbaA9ob3v6IyjnR1eHUe+t/9+7zHjY3XHNY9XnqCdKD3x+eSCk+OnZKeenU4/PdSZ3Hn3TPyZa11RXb1nQ8+ePxd07ky3X/fJ897nj13wvHD0Ivdi2yW3S609rj1HfnD94UivW2/rZffL7Vc8rnT0Tes70e/Tf/pqwNVz1/jXLl2feb3vxuwbt24m3Ry4Jbr1+Hb27Rd3Cu5M3F16j3iv/L7a/eoH+g/qf7T+sWXAbeD4YMBgz8NZD+8OCYee/pT/04fh0kfMR9UjRiONj50fHxsNGr3yZM6T4aeypxPPyn5W/3nrc6vn3/3i+0vPWPzY8Av5i8+/rnmp83Lvq6mvOscjxx+8znk98ab8rc7bfe+477rfx70fmSj8QP5Q89H6Y8en0E/3Pud8/vwv94Tz+4A5JREAAAAGYktHRAD/AP8A/6C9p5MAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfcAgcQLxxUBNp/AAAQZ0lEQVR42u2be3QVVZbGv1N17829eRLyIKAEOiISEtPhJTJAYuyBDmhWjAEx4iAGBhxA4wABbVAMWUAeykMCM+HRTcBRWkNH2l5moS0LCCrQTkYeQWBQSCAIgYRXEpKbW/XNH5zS4noR7faPEeu31l0h4dSpvc+t/Z199jkFWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhY/H9D/MR9qfKnLj/00U71aqfJn9+HCkCR/Wk36ddsgyJ/1wF4fkDfqqm9/gPsUeTnVr6a2xlQfnxdI7zs0W7irzD17Ytb2WT7EeNv/r4ox1O3Quf2QP2pgt9utwfout4FQE8AVBSlnaRmfvAURQkg2RlAbwB9AThlW5L0GaiKojhJhgOIBqDa7XaPrusdPtr5kQwF0BVAAoBIABRCKDd5aFUhRDAAw57eAOwAhKIoupft3zoqhB1AqLwuHIBut9uFt02qqvqRDJR2dAEQJj/BAOjn56dqmma+xiaECAEQAWAggLsB6A6HQ2iaZggBhBAqgEAAnQB0kzaEmT4hAITT6VQ8Ho/HJAKKECJQtr8LwD1y/A1/vcdfEUIEyfZ9AcQbYvZ942Px88L2UwlJR0dH0EMPPbRj5syZPUeNGrXR7Xb/641xIwJ1XY9NSUlZm52dfW+XLl1w8uRJzJ8//+OGhoYJqqqe1TSt1Wsm9NN1PSIqKmr12rVrR5WUlHy1bdu2AQCumWc3IYRD1/UwVVXnFRQUTIuNjUVzczN2797dWFJSkq8oymZd15sAGAEnFEUJ1nX9nzIzM1dnZmZGh4SE4OTJk5g5c+Zf29vbp9pstrMej6fVOyhIhgAYU1hY+B+hoaGoqKg4XVlZea+XTULTNFdCQsLGiRMnPuR2u3UhBOV9eeDAAWXTpk095DUe6WsoyRE5OTlr0tLSAux2O/bs2cO5c+e+pijKUpIXSHaQVAGkvPLKK++6XK4OksJLCFlXV2cvKSlJBFAjhU+x2WwhHo9nUHp6+urMzMy7wsLCUF9fjxdffPHjxsbGiTab7WuPx9NiEutOuq4PyMjI+M+srKyYqKgoHD58GDNmzNjq8XhyVFU9b/q+LH7hBAEYu3PnTlZVVRFAGgCX6f/tAHoOHDjwa0p27txp/JO9e/f+QM7cipw9nfL3kQBKt2zZQpJ87rnn6mQmoHilw2EACs+cOUOSrK+vZ1NTE0nyo48+IoBpxswoBcMJ4Ndjx471kOTFixe5d+9ekqTH42H//v13A4jyzpAURfEH0H/OnDnthu1z5sw558MmFUCPWbNmnaMP3nrrLZoyDmP8Hl68eDFJ8siRI9/Yc+zYMQKYKdtAztrTrl27xptRXV1NAKMAOAyBBBA/Y8aMdpLs6Ojgxx9//E37+++//29yvFXppwvAwMcee8xjtDHsuXLlCqOjo//ia3wsfpkoALqFhoZuIckJEyackimm3dQmEMDUmpoakmRISMhhAHOHDx/eQJIbN24kgKEyMAHAFRMTs2XXrl1saWkhSZ0kp0+ffhrAr3wEW/S8efOukORLL72kA1gKYMPWrVtJkk899dRJAHeYrgsEsIQkjx8/TgDvAPjd448/3kaSb7zxBmUa7vC6z53BwcFbSHL9+vU6Sc6aNes8gF5ewWAH0PfVV18lSQL4DMBGIcQ6AKtcLleBFC2jXtFt8ODBe0iyoqKCAJYByC8qKmJDQwOzsrK+MAmqo1OnTveHhoa+GRkZ+XZkZOSWiIiIvzgcjk9mzpypkWRmZuZpmbYbGV4AgPnNzc1sa2sjgN0A5iQmJtaSZHl5OQHcb/K3s81mW0uSTU1NBFAFYFbfvn1Pk+Tbb79NAA8IIVzW42/hByA+Pz/fLR/2ZXIda05NI/z9/TeR5J49ewhgqlxTrtI0jY2NjQQw3zTLuWJiYjaUlJToS5Ys6fjkk080kwDEeAmADcA9GzZsIElGRUW9CyAWwLApU6Y0kOSKFSsog9QICGdERMTGsrIyZmVlEcC9AB4IDw/fTpLbtm0jgN94CUAnAJmVlZVcs2aNZ/LkyRdJcvbs2b4EwAkgZfPmzTxw4AABFAN4BkC6vFeUSewcAO5duXIlSTIhIaEawGMAxgKYAmAGgCS73e5vrKVk/yGythANYEhCQsIhkly+fDkBpKqqGmL6DgIALDKN/3yZpVWQZGVlJQE8aPI3KiMjo5okV61aRQAjAPQBMPfIkSN0u90EUCBtsPiFEwpgbn19PdetW2fM5N4zQ9ekpKQqkty0aRMBpMjiWM6JEydIkoqirJUFJ6iq6pAPVy8A6cZMehMBUACEuVyuFwG8HBwcPEIWx367ZMkSjSQXLVrUJouTRorrkAHdA8BdQogsAOsKCwtJkmPGjDkvMw2bDDo/ADEjRoz4XylyFbm5uY0mAbjLyyZ/AOOrq6tZVlbWsWDBgo69e/eyoqKCgwcPPg4gSQaoIRbp27dvN7KF+tLSUr28vJwFBQXtMpvpYRIM7+wrAkDeqVOnePbsWQIoNKfzpiXPg8uXLydJJicnNwF4f+nSpW6STEtLq5fjYwhk1wkTJtSQ5Ouvv04AqTKj+N2xY8dIkgEBAW/Ie1v8wncRegwZMmQvSfbr12+3Ua33WqPfOWbMmP0kWVpaSgCDZAqcfejQIWNZsEGKgvnh9gfQb9myZd8nAEJVVZtMkUNk8CcNHTq0liR1XWdYWNhmH1mJIme80OnTp18x1rp5eXkEsNJms92Fb7e/IgEsvHz5Mp999tkmAI/l5uZeMC0B7vEqqAYAyL106RJJsra2lpWVld+sucePH38ZQG+5NncBeOrgwYMkqbe3t/Po0aOsra011wAWyl0H7x0JJ4DE+fPnu0kyPT29DsDdUrBuyNKEEAkAdpw/f/6GeoEM8GUmfwEgPCIiopwkGxsbabPZPgOw6L777vvm4p49e26VGYjFLxUhhD+ApLKyMp44ccIoVnXybgbgzkcfffRzklyzZg0BDJYCMMmoCwQFBXkLgLGWvvcWAgBToSsKwNPTp09vMR7UuLi4rwH0lgU8c/Db5ezbeeTIkRWzZ8++aMxu+fn5BPCADBwHgP4LFy701NXVEUAJgAnPP/98kyxMNgHo53A4zH77BQQETMvPz7+Um5vbBuAlAFMSExPPmdbVL0qh8Acw8fDhw5SCchVAEYAVb775JknyhRdeaJYztHfxMwLAaqNwCGC2FArv8x0hAHKNLGPKlCme5OTk/Zs3bzb7O0wKiiG8KXl5ed8IxenTp0mSR48e1UmyW7duWywBuD2xyQcgFECgoih+8H1gyJgZV5Lkyy+/3CbTRIePtl2HDBmyw1QBHyGDdXZdXR1JUghRKkXBjOMHCoBdpr0L3nvvPZLkF198wejo6O0A4lVVDTb74HQ6AwD8Wq7Jh8rgGgDgQ13XjVR8qaxJuADMbmlpYXl5uV5UVNRWUFDgfv/993Vj/ZydnU1c37eHXML4S3viAcQqitJD2l104cIFY8lTKsXSBWBMVVWVcd9yed2A1NTUQ6Zl00CvLMMOoHdubm6zFIlWOf5+PsY/Kj09vdrU11QAwwGsv3jxIk21m2DZr10I0RXAuAcffPBgaWkpV69eTYfDcdiwUxY0w6xw+flX8L1xApjevXv3lREREaW6rofB93aPDUDQpEmTMgHgtddeqwBwEd/utZvpqK6uPgEAcXFxkA94NwB9unfvjrNnz4LklwDcf08iIqv66Zs2bXrl4YcfxooVKxAbG7uqrq5uAYA2TdOEqqpGYIi2tjbl6aeffu/YsWPv5uTk7JaC1wHg4Pnz542MwoVvTx+21dbWYvjw4WLixIl+2dnZ9lGjRgmSTE1NRUpKCkwFTGiaxtTU1OXTpk3707Bhw/6g67pDipnT4biuj7qut+Lbk3Vf1tTUXI9qu91Pjq1QFEUBgJaWFgBo8yGOQ8eNGxcAAOvXr/8QwBUfYygAKL169eoCABcuXACAWtn2hOGv0+kMNO1KiPDw8F4A4rZv3/7R1KlTR0+bNu1ht9u9r1+/fqitrQXJgwDarRC6/QjPzs4+QJIffPCB9/aQmSAA43ft2mW0e1QGoi8CAPyLsZccExNTC2BlRkbGRdOyYJCP2csBIN6UAZzCd7cBbQCijYp/dXU1ExMTz6SmptaMHj36f9LS0vYlJCRsl6mxIWSdu3fv/g5J7t+/nwC2AShMTk6+SJKff/45AWRLYbD7+fndAeDf5BJnLoCCyZMnt5JkdnZ2C4B/F0KEm1Pu+Pj4rST55ZdfEsBWAK+mpaVdMo3raDn7KwDuSEpK+m+S3LBhAwG8DuCtHTt2UBbpjgC408vvcFVV15HkuXPnjMp+p5uMf0RcXNyHJNnQ0EBVVfcCWBQXF3fG+Jv0yxABPwB5LS0tRmFxN4BlTzzxxGWSXLx4sS5F3GGFy+1Hp5SUlJq6ujoWFxdTpsZ2H+0iIyMj/0iSWVlZX5mr5jfJFroPGzasxlhTnjp1iiTZ3NxMl8tlrCd9pfa9SkpKSJI5OTmnZOageLUZZqxvfVFWVkZcPwdgNwnSCKPqb17jkmR8fPzfZMDZ5CRsFBmNI7h95s2b1yhT7/MAYmStwCx4vy0uLqa3v5qmEcCfvSr1QQAeXb16NY3Cm3HQ55133iGAp+SxZTNhKSkpfzUddkrFjYevzAQCeGjp0qXfsYckY2NjTwD4leGDLCL2HTdunNtoY+zWSHFcIHdsFCtcfuZ1vO9Eqs3m7/F47sb1k2qX/f3997W2tl7BjWfpBYDOzzzzzIVJkyZh0KBBCwEsB3AJvl9AETabLcDj8dwRFRW1ctasWb8JCgpSzp07d62wsPC/Wltb8xRFadR1/ZqPXYbgAQMGbI2Pjw/+6quv9ldVVT0r01ezuPRJSUn5Y9euXXVd11WzDaqq6kePHm3+7LPPRgO4KlNuxWazhXo8nuTk5OSXMjIyEl0uFxoaGtqKior+dPXq1VdUVT0jj7r68ieoT58+vx8yZMjdx48fP1JVVTVF9m20VW02WyfZf97YsWPjXS4X6urqWvPy8jYCWCyEuEDS8FdVFKWzruv//OSTTy5OTk7uqWkaPv3007qysrJ8RVH+LI8ym8/rB3Tu3HnRI488knLo0KG2ffv2ZQI4C98vP6mqqoZqmpaclpa2cOTIkX39/f3R0NDQUVxc/G5TU9PLqqrWa5rWLH1QVFUN0TStX1JSUvH48eP7BwYG4uDBg1cKCgpeBbBe2u+2Qug2EwD5N5sMPuNtMe8XP4TT6Qxoa2sbIGeXvUKIK7d4IISiKC5d1wPljOfA9bPwzYqiXNV13dd6Uqiq6qdpml2mpe02m63d4/G4vcTF5fF47LJf71nJA6BZVVW3pmntuPHlmAD5wk6Q9NnbHp9vHaqq6tA0zU/64PZhk1FfCZB9G/23ALiqKEqzD39tpvbGUqoFwFUhRLP3yzpCCDtJpxyXDulfG27+pqRR3DXsUWVd4Yq0x/taVQjhIhksC8L+ABpM9ljBf5sKwI8pIBr75L5E4vvu+UNeG/a+hv+AL7yFH8qPtOfHjtOP6V/Bja8D6z/B2Nys/1u9Xv33tLf4GfF/LC4GCJwByWIAAAAASUVORK5CYII\x3d";
  1092. b.CK = "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\x3d";
  1093. var b = b || {},
  1094. ba = {
  1095. id: 0 | 998 * Math.random(),
  1096. B1: 0 | 998 * Math.random(),
  1097. oM: function(a, c, d) {
  1098. a = a.toString();
  1099. var e = a.substring(a.indexOf("(") + 1, a.indexOf(")")),
  1100. e = e.trim();
  1101. for (a = a.substring(a.indexOf("{") + 1, a.lastIndexOf("}")); - 1 != a.indexOf("this._super");) {
  1102. var f = a.indexOf("this._super"),
  1103. g = a.indexOf("(", f),
  1104. h = a.substring(g + 1, a.indexOf(")", g)),
  1105. h = h.trim();
  1106. a = a.substring(0, f) + "ClassManager[" + d + "]." + c + ".call(this" + (h ? "," : "") + a.substring(g + 1)
  1107. }
  1108. return Function(e, a)
  1109. },
  1110. A0: function() {
  1111. return this.id++
  1112. },
  1113. B0: function() {
  1114. return this.B1++
  1115. }
  1116. };
  1117. ba.oM.K6 = ba;
  1118. (function() {
  1119. var a = /\b_super\b/,
  1120. c = b.Jb.re[b.Jb.kg.FZ];
  1121. c && console.log("release Mode");
  1122. b.oa = function() {};
  1123. b.oa.extend = function(d) {
  1124. function e() {
  1125. this.ta = ba.B0();
  1126. this.ctor && this.ctor.apply(this, arguments)
  1127. }
  1128. var f = this.prototype,
  1129. g = Object.create(f),
  1130. h = ba.A0();
  1131. ba[h] = f;
  1132. var k = {
  1133. writable: !0,
  1134. enumerable: !1,
  1135. configurable: !0
  1136. };
  1137. g.ta = null;
  1138. e.id = h;
  1139. k.value = h;
  1140. Object.defineProperty(g, "__pid", k);
  1141. e.prototype = g;
  1142. k.value = e;
  1143. Object.defineProperty(e.prototype, "constructor", k);
  1144. this.Yh && (e.Yh = b.j(this.Yh));
  1145. this.Zh && (e.Zh = b.j(this.Zh));
  1146. for (var m =
  1147. 0, p = arguments.length; m < p; ++m) {
  1148. var r = arguments[m],
  1149. s;
  1150. for (s in r) {
  1151. var u = "function" === typeof r[s],
  1152. t = "function" === typeof f[s],
  1153. v = a.test(r[s]);
  1154. c && u && t && v ? (k.value = ba.oM(r[s], s, h), Object.defineProperty(g, s, k)) : u && t && v ? (k.value = function(a, c) {
  1155. return function() {
  1156. var d = this._super;
  1157. this._super = f[a];
  1158. var e = c.apply(this, arguments);
  1159. this._super = d;
  1160. return e
  1161. }
  1162. }(s, r[s]), Object.defineProperty(g, s, k)) : u ? (k.value = r[s], Object.defineProperty(g, s, k)) : g[s] = r[s];
  1163. if (u) {
  1164. var w, y;
  1165. if (this.Yh && this.Yh[s]) {
  1166. var u = this.Yh[s],
  1167. B;
  1168. for (B in this.Zh)
  1169. if (this.Zh[B] ==
  1170. u) {
  1171. y = B;
  1172. break
  1173. }
  1174. b.i(g, u, r[s], r[y] ? r[y] : g[y], s, y)
  1175. }
  1176. if (this.Zh && this.Zh[s]) {
  1177. u = this.Zh[s];
  1178. for (B in this.Yh)
  1179. if (this.Yh[B] == u) {
  1180. w = B;
  1181. break
  1182. }
  1183. b.i(g, u, r[w] ? r[w] : g[w], r[s], w, s)
  1184. }
  1185. }
  1186. }
  1187. }
  1188. e.extend = b.oa.extend;
  1189. e.Jda = function(a) {
  1190. for (var c in a) g[c] = a[c]
  1191. };
  1192. return e
  1193. }
  1194. })();
  1195. b.i = function(a, c, d, e, f, g) {
  1196. if (a.__defineGetter__) d && a.__defineGetter__(c, d), e && a.__defineSetter__(c, e);
  1197. else if (Object.defineProperty) {
  1198. var h = {
  1199. enumerable: !1,
  1200. configurable: !0
  1201. };
  1202. d && (h.get = d);
  1203. e && (h.set = e);
  1204. Object.defineProperty(a, c, h)
  1205. } else throw Error("browser does not support getters"); if (!f && !g)
  1206. for (var h = null != d, k = void 0 != e, m = Object.getOwnPropertyNames(a), p = 0; p < m.length; p++) {
  1207. var r = m[p];
  1208. if ((a.__lookupGetter__ ? !a.__lookupGetter__(r) : !Object.getOwnPropertyDescriptor(a, r)) && "function" === typeof a[r]) {
  1209. var s = a[r];
  1210. if (h && s === d && (f = r, !k || g)) break;
  1211. if (k && s === e && (g = r, !h || f)) break
  1212. }
  1213. }
  1214. a = a.constructor;
  1215. f && (a.Yh || (a.Yh = {}), a.Yh[f] = c);
  1216. g && (a.Zh || (a.Zh = {}), a.Zh[g] = c)
  1217. };
  1218. b.j = function(a) {
  1219. var c = a.constructor ? new a.constructor : {},
  1220. d;
  1221. for (d in a) {
  1222. var e = a[d];
  1223. c[d] = "object" != typeof e || !e || e instanceof b.k || e instanceof HTMLElement ? e : b.j(e)
  1224. }
  1225. return c
  1226. };
  1227. b = b || {};
  1228. b.F = b.F || {};
  1229. b.h$ = function() {};
  1230. b.iq = {
  1231. dM: 8,
  1232. o5: 9,
  1233. LM: 13,
  1234. shift: 16,
  1235. I$: 17,
  1236. alt: 18,
  1237. pause: 19,
  1238. q$: 20,
  1239. escape: 27,
  1240. Zga: 33,
  1241. Yga: 34,
  1242. end: 35,
  1243. home: 36,
  1244. left: 37,
  1245. Hka: 38,
  1246. right: 39,
  1247. Y$: 40,
  1248. Mda: 45,
  1249. U6: 46,
  1250. 0: 48,
  1251. 1: 49,
  1252. 2: 50,
  1253. 3: 51,
  1254. 4: 52,
  1255. 5: 53,
  1256. 6: 54,
  1257. 7: 55,
  1258. 8: 56,
  1259. 9: 57,
  1260. a: 65,
  1261. b: 66,
  1262. B: 67,
  1263. H: 68,
  1264. Gg: 69,
  1265. Ch: 70,
  1266. g: 71,
  1267. fp: 72,
  1268. zs: 73,
  1269. ox: 74,
  1270. px: 75,
  1271. zx: 76,
  1272. Dx: 77,
  1273. fl: 78,
  1274. Hx: 79,
  1275. Ox: 80,
  1276. Ux: 81,
  1277. r: 82,
  1278. MF: 83,
  1279. nG: 84,
  1280. fa: 85,
  1281. ga: 86,
  1282. D: 87,
  1283. x: 88,
  1284. y: 89,
  1285. z: 90,
  1286. oga: 96,
  1287. pga: 97,
  1288. qga: 98,
  1289. rga: 99,
  1290. sga: 100,
  1291. tga: 101,
  1292. uga: 102,
  1293. vga: 103,
  1294. wga: 104,
  1295. xga: 105,
  1296. "*": 106,
  1297. "+": 107,
  1298. "-": 109,
  1299. numdel: 110,
  1300. "/": 111,
  1301. Haa: 112,
  1302. Laa: 113,
  1303. Maa: 114,
  1304. Naa: 115,
  1305. Oaa: 116,
  1306. Paa: 117,
  1307. Qaa: 118,
  1308. Raa: 119,
  1309. Saa: 120,
  1310. Iaa: 121,
  1311. Jaa: 122,
  1312. Kaa: 123,
  1313. Aga: 144,
  1314. cia: 145,
  1315. eia: 186,
  1316. ",": 186,
  1317. Faa: 187,
  1318. "\x3d": 187,
  1319. ";": 188,
  1320. y$: 188,
  1321. J$: 189,
  1322. ".": 190,
  1323. eha: 190,
  1324. Waa: 191,
  1325. Gda: 192,
  1326. "[": 219,
  1327. Iga: 219,
  1328. "]": 221,
  1329. v$: 221,
  1330. i$: 220,
  1331. quote: 222,
  1332. lka: 32
  1333. };
  1334. b.a7 = 0;
  1335. b.Zy = 1;
  1336. b.PG = 2;
  1337. b.b7 = 3;
  1338. b.c7 = 4;
  1339. b.fR = 5;
  1340. b.o0 = function(a) {
  1341. 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] ? b.Zy : 2 < a.length && (73 == a[0] && 73 == a[1] || 77 == a[0] && 77 == a[1] || 255 == a[0] && 216 == a[1]) ? b.PG : b.fR
  1342. };
  1343. b.Kda = function(a, c) {
  1344. function d() {}
  1345. d.prototype = c.prototype;
  1346. a.uy = c.prototype;
  1347. a.prototype = new d;
  1348. a.prototype.constructor = a
  1349. };
  1350. b.j$ = function(a, c, d) {
  1351. var e = arguments.callee.caller;
  1352. if (e.uy) return ret = e.uy.constructor.apply(a, Array.prototype.slice.call(arguments, 1));
  1353. for (var f = Array.prototype.slice.call(arguments, 2), g = !1, h = a.constructor; h; h = h.uy && h.uy.constructor)
  1354. if (h.prototype[c] === e) g = !0;
  1355. else if (g) return h.prototype[c].apply(a, f);
  1356. if (a[c] === e) return a.constructor.prototype[c].apply(a, f);
  1357. throw Error("cc.base called from a method of one name to a method of a different name");
  1358. };
  1359. b.Y7 = function(a, c) {
  1360. this.x = a || 0;
  1361. this.y = c || 0
  1362. };
  1363. function C(a, c) {
  1364. return void 0 == a ? {
  1365. x: 0,
  1366. y: 0
  1367. } : void 0 == c ? {
  1368. x: a.x,
  1369. y: a.y
  1370. } : {
  1371. x: a,
  1372. y: c
  1373. }
  1374. }
  1375. b.DF = function(a, c) {
  1376. return a && c && a.x === c.x && a.y === c.y
  1377. };
  1378. b.e8 = function(a, c) {
  1379. this.width = a || 0;
  1380. this.height = c || 0
  1381. };
  1382. function N(a, c) {
  1383. return void 0 === a ? {
  1384. width: 0,
  1385. height: 0
  1386. } : void 0 === c ? {
  1387. width: a.width,
  1388. height: a.height
  1389. } : {
  1390. width: a,
  1391. height: c
  1392. }
  1393. }
  1394. b.kka = function(a, c) {
  1395. return a && c && a.width == c.width && a.height == c.height
  1396. };
  1397. b.xH = function(a, c, d, e) {
  1398. this.x = a || 0;
  1399. this.y = c || 0;
  1400. this.width = d || 0;
  1401. this.height = e || 0
  1402. };
  1403. function O(a, c, d, e) {
  1404. return void 0 === a ? {
  1405. x: 0,
  1406. y: 0,
  1407. width: 0,
  1408. height: 0
  1409. } : void 0 === c ? {
  1410. x: a.x,
  1411. y: a.y,
  1412. width: a.width,
  1413. height: a.height
  1414. } : {
  1415. x: a,
  1416. y: c,
  1417. width: d,
  1418. height: e
  1419. }
  1420. }
  1421. b.FO = function(a, c) {
  1422. return a && c && a.x === c.x && a.y === c.y && a.width === c.width && a.height === c.height
  1423. };
  1424. b.zC = function(a) {
  1425. return a && 0 === a.x && 0 === a.y && 0 === a.width && 0 === a.height
  1426. };
  1427. b.uha = function(a, c) {
  1428. return a && c ? !(a.x >= c.x || a.y >= c.y || a.x + a.width <= c.x + c.width || a.y + a.height <= c.y + c.height) : !1
  1429. };
  1430. b.Xs = function(a) {
  1431. return a.x + a.width
  1432. };
  1433. b.vha = function(a) {
  1434. return a.x + a.width / 2
  1435. };
  1436. b.tp = function(a) {
  1437. return a.x
  1438. };
  1439. b.Ys = function(a) {
  1440. return a.y + a.height
  1441. };
  1442. b.wha = function(a) {
  1443. return a.y + a.height / 2
  1444. };
  1445. b.up = function(a) {
  1446. return a.y
  1447. };
  1448. b.EO = function(a, c) {
  1449. return c.x >= b.tp(a) && c.x <= b.Xs(a) && c.y >= b.up(a) && c.y <= b.Ys(a)
  1450. };
  1451. b.yha = function(a, c) {
  1452. var d = a.y + a.height,
  1453. e = c.x + c.width,
  1454. f = c.y + c.height;
  1455. return !(a.x + a.width < c.x || e < a.x || d < c.y || f < a.y)
  1456. };
  1457. b.zha = function(a, c) {
  1458. return !(a.x + a.width < c.x || c.x + c.width < a.x || a.y + a.height < c.y || c.y + c.height < a.y)
  1459. };
  1460. b.Vx = function(a, c) {
  1461. var d = O(0, 0, 0, 0);
  1462. d.x = Math.min(a.x, c.x);
  1463. d.y = Math.min(a.y, c.y);
  1464. d.width = Math.max(a.x + a.width, c.x + c.width) - d.x;
  1465. d.height = Math.max(a.y + a.height, c.y + c.height) - d.y;
  1466. return d
  1467. };
  1468. b.xha = function(a, c) {
  1469. var d = O(Math.max(b.tp(a), b.tp(c)), Math.max(b.up(a), b.up(c)), 0, 0);
  1470. d.width = Math.min(b.Xs(a), b.Xs(c)) - b.tp(d);
  1471. d.height = Math.min(b.Ys(a), b.Ys(c)) - b.up(d);
  1472. return d
  1473. };
  1474. b.$t = b.oa.extend({
  1475. MK: null,
  1476. NB: null,
  1477. ctor: function() {
  1478. window.DOMParser ? (this.NB = !0, this.MK = new DOMParser) : this.NB = !1
  1479. },
  1480. parse: function(a) {
  1481. return this.fC(a)
  1482. },
  1483. fC: function(a) {
  1484. var c;
  1485. this.NB ? c = this.MK.parseFromString(a, "text/xml") : (c = new ActiveXObject("Microsoft.XMLDOM"), c.async = "false", c.loadXML(a));
  1486. return c
  1487. }
  1488. });
  1489. b.xS = b.$t.extend({
  1490. parse: function(a) {
  1491. a = this.fC(a).documentElement;
  1492. if ("plist" != a.tagName) throw "Not a plist file!";
  1493. for (var c = null, d = 0, e = a.childNodes.length; d < e && (c = a.childNodes[d], 1 != c.nodeType); d++);
  1494. return this.eC(c)
  1495. },
  1496. eC: function(a) {
  1497. var c = null,
  1498. d = a.tagName;
  1499. if ("dict" == d) c = this.pX(a);
  1500. else if ("array" == d) c = this.oX(a);
  1501. else if ("string" == d)
  1502. if (1 == a.childNodes.length) c = a.firstChild.nodeValue;
  1503. else
  1504. for (c = "", d = 0; d < a.childNodes.length; d++) c += a.childNodes[d].nodeValue;
  1505. else "false" == d ? c = !1 : "true" == d ? c = !0 : "real" == d ?
  1506. c = parseFloat(a.firstChild.nodeValue) : "integer" == d && (c = parseInt(a.firstChild.nodeValue, 10));
  1507. return c
  1508. },
  1509. oX: function(a) {
  1510. for (var c = [], d = 0, e = a.childNodes.length; d < e; d++) {
  1511. var f = a.childNodes[d];
  1512. 1 == f.nodeType && c.push(this.eC(f))
  1513. }
  1514. return c
  1515. },
  1516. pX: function(a) {
  1517. for (var c = {}, d = null, e = 0, f = a.childNodes.length; e < f; e++) {
  1518. var g = a.childNodes[e];
  1519. 1 == g.nodeType && ("key" == g.tagName ? d = g.firstChild.nodeValue : c[d] = this.eC(g))
  1520. }
  1521. return c
  1522. }
  1523. });
  1524. b.GL = {
  1525. load: function(a, c, d, e) {
  1526. b.T.Cx(a, e)
  1527. }
  1528. };
  1529. b.T.Nj(["txt", "xml", "vsh", "fsh", "atlas"], b.GL);
  1530. b.QW = {
  1531. load: function(a, c, d, e) {
  1532. b.T.kO(a, e)
  1533. }
  1534. };
  1535. b.T.Nj(["json", "ExportJson"], b.QW);
  1536. b.yW = {
  1537. load: function(a, c, d, e) {
  1538. b.T.Rf[c] = b.T.Gs(a, function(a, d) {
  1539. if (a) return e(a);
  1540. b.Da.rb(c);
  1541. e(null, d)
  1542. })
  1543. }
  1544. };
  1545. b.T.Nj("png jpg bmp jpeg gif ico".split(" "), b.yW);
  1546. b.KX = {
  1547. load: function(a, c, d, e) {
  1548. b.T.Rf[c] = b.T.Gs(d.src, function(a, d) {
  1549. if (a) return e(a);
  1550. b.Da.rb(c);
  1551. e(null, d)
  1552. })
  1553. }
  1554. };
  1555. b.T.Nj(["serverImg"], b.KX);
  1556. b.uX = {
  1557. load: function(a, c, d, e) {
  1558. b.T.Cx(a, function(a, c) {
  1559. if (a) return e(a);
  1560. e(null, b.X2.parse(c))
  1561. })
  1562. }
  1563. };
  1564. b.T.Nj(["plist"], b.uX);
  1565. b.JV = {
  1566. FT: {
  1567. ".eot": "embedded-opentype",
  1568. ".ttf": "truetype",
  1569. ".woff": "woff",
  1570. ".svg": "svg"
  1571. },
  1572. zK: function(a, c, d) {
  1573. var e = document,
  1574. f = b.path,
  1575. g = this.FT,
  1576. h = b.Sb("style");
  1577. h.type = "text/css";
  1578. e.body.appendChild(h);
  1579. var k = "@font-face { font-family:" + a + "; src:";
  1580. if (c instanceof Array)
  1581. for (var m = 0, p = c.length; m < p; m++) d = f.Zk(c[m]).toLowerCase(), k += "url('" + c[m] + "') format('" + g[d] + "')", k += m == p - 1 ? ";" : ",";
  1582. else k += "url('" + c + "') format('" + g[d] + "');";
  1583. h.textContent += k + "};";
  1584. c = b.Sb("div");
  1585. d = c.style;
  1586. d.fontFamily = a;
  1587. c.innerHTML = ".";
  1588. d.position =
  1589. "absolute";
  1590. d.left = "-100px";
  1591. d.top = "-100px";
  1592. e.body.appendChild(c)
  1593. },
  1594. load: function(a, c, d, e) {
  1595. c = d.type;
  1596. a = d.name;
  1597. c = d.mka;
  1598. "string" == typeof d ? (c = b.path.Zk(d), a = b.path.vZ(d, c), this.zK(a, d, c)) : this.zK(a, c);
  1599. e(null, !0)
  1600. }
  1601. };
  1602. b.T.Nj(["font", "eot", "ttf", "woff", "svg"], b.JV);
  1603. b.V8 = {
  1604. load: function(a, c, d, e) {
  1605. b.T.v2(a, e)
  1606. }
  1607. };
  1608. window.CocosEngine = b.Wy = "Cocos2d-JS v3.0 RC2";
  1609. b.jn = 0;
  1610. b.Ry = C(0, 0);
  1611. b.JQ = 0.5;
  1612. b.J6 = 1;
  1613. b.Qz = 1;
  1614. b.gS = 0;
  1615. b.HH = 0;
  1616. b.Uz = 0;
  1617. b.i8 = 0;
  1618. b.a8 = 1;
  1619. b.Z7 = "-hd";
  1620. b.tU = 1;
  1621. b.Yj = 0;
  1622. b.c8 = 0;
  1623. b.DR = 0;
  1624. b.CR = 0;
  1625. b.hz = 1;
  1626. b.M6 = b.Wy + "-canvas";
  1627. b.st = 1;
  1628. b.Wg = 1;
  1629. b.ub = function(a) {
  1630. var c = this == b ? document : this;
  1631. if (a = a instanceof HTMLElement ? a : c.querySelector(a)) a.find = a.find || b.ub, a.UE = a.UE || function(a) {
  1632. return this.className.match(RegExp("(\\s|^)" + a + "(\\s|$)"))
  1633. }, a.UL = a.UL || function(a) {
  1634. this.UE(a) || (this.className && (this.className += " "), this.className += a);
  1635. return this
  1636. }, a.p3 = a.p3 || function(a) {
  1637. this.UE(a) && (this.className = this.className.replace(a, ""));
  1638. return this
  1639. }, a.remove = a.remove || function() {
  1640. this.parentNode && this.parentNode.removeChild(this);
  1641. return this
  1642. }, a.$L = a.$L ||
  1643. function(a) {
  1644. a.appendChild(this);
  1645. return this
  1646. }, a.c3 = a.c3 || function(a) {
  1647. a.childNodes[0] ? a.insertBefore(this, a.childNodes[0]) : a.appendChild(this);
  1648. return this
  1649. }, a.mt = a.mt || function() {
  1650. this.style[b.ub.B5] = b.ub.translate(this.position) + b.ub.rotate(this.rotation) + b.ub.scale(this.scale) + b.ub.zp(this.zp);
  1651. return this
  1652. }, a.position = a.position || {
  1653. x: 0,
  1654. y: 0
  1655. }, a.rotation = a.rotation || 0, a.scale = a.scale || {
  1656. x: 1,
  1657. y: 1
  1658. }, a.zp = a.zp || {
  1659. x: 0,
  1660. y: 0
  1661. }, a.PP = function(a, c) {
  1662. this.position.x = a;
  1663. this.position.y = c;
  1664. this.mt()
  1665. }, a.rotate = function(a) {
  1666. this.rotation =
  1667. a;
  1668. this.mt();
  1669. return this
  1670. }, a.resize = function(a, c) {
  1671. this.scale.x = a;
  1672. this.scale.y = c;
  1673. this.mt();
  1674. return this
  1675. }, a.Bja = function(a, c) {
  1676. this.zp.x = a;
  1677. this.zp.y = c;
  1678. this.mt();
  1679. return this
  1680. };
  1681. return a
  1682. };
  1683. switch (b.hb.wm) {
  1684. case b.hb.Jp:
  1685. b.ub.Ts = "Moz";
  1686. b.ub.gp = !0;
  1687. break;
  1688. case b.hb.Fy:
  1689. case b.hb.Iy:
  1690. b.ub.Ts = "webkit";
  1691. b.ub.gp = !0;
  1692. break;
  1693. case b.hb.Hy:
  1694. b.ub.Ts = "O";
  1695. b.ub.gp = !1;
  1696. break;
  1697. case b.hb.Gy:
  1698. b.ub.Ts = "ms";
  1699. b.ub.gp = !1;
  1700. break;
  1701. default:
  1702. b.ub.Ts = "webkit", b.ub.gp = !0
  1703. }
  1704. b.ub.B5 = b.ub.Ts + "Transform";
  1705. b.ub.translate = b.ub.gp ? function(a) {
  1706. return "translate3d(" + a.x + "px, " + a.y + "px, 0) "
  1707. } : function(a) {
  1708. return "translate(" + a.x + "px, " + a.y + "px) "
  1709. };
  1710. b.ub.rotate = b.ub.gp ? function(a) {
  1711. return "rotateZ(" + a + "deg) "
  1712. } : function(a) {
  1713. return "rotate(" + a + "deg) "
  1714. };
  1715. b.ub.scale = function(a) {
  1716. return "scale(" + a.x + ", " + a.y + ") "
  1717. };
  1718. b.ub.zp = function(a) {
  1719. return "skewX(" + -a.x + "deg) skewY(" + a.y + "deg)"
  1720. };
  1721. b.cQ = function() {
  1722. return b.ub(document.createElement("input"))
  1723. };
  1724. b.ub.Uaa = function(a) {
  1725. var c = 0,
  1726. d = 0;
  1727. do c += a.offsetLeft, d += a.offsetTop; while (a = a.offsetParent);
  1728. return {
  1729. x: c,
  1730. y: d
  1731. }
  1732. };
  1733. b.l7 = -1;
  1734. b.PI = Math.PI;
  1735. b.eR = parseFloat("3.402823466e+38F");
  1736. b.Z6 = parseFloat("1.175494351e-38F");
  1737. b.yS = b.PI / 180;
  1738. b.JG = 180 / b.PI;
  1739. b.tI = 4294967295;
  1740. b.HP = function(a, c, d) {
  1741. if ("object" == typeof d && "undefined" != typeof d.x && "undefined" != typeof d.y) {
  1742. var e = d[a];
  1743. d[a] = d[c];
  1744. d[c] = e
  1745. } else b.log(b.e.HP)
  1746. };
  1747. b.bga = function(a, c, d) {
  1748. return a + (c - a) * d
  1749. };
  1750. b.yb = function() {
  1751. return 16777215 * Math.random()
  1752. };
  1753. b.i3 = function() {
  1754. return 2 * (Math.random() - 0.5)
  1755. };
  1756. b.nha = Math.random;
  1757. b.Sf = function(a) {
  1758. return a * b.yS
  1759. };
  1760. b.FF = function(a) {
  1761. return a * b.JG
  1762. };
  1763. b.BO = function(a) {
  1764. b.log(b.e.BO);
  1765. return a * b.JG
  1766. };
  1767. b.qq = Number.MAX_VALUE - 1;
  1768. b.dc = b.gS ? 1 : 770;
  1769. b.cc = 771;
  1770. b.Js = function(a) {
  1771. a.Eb && (a.Eb.Oc(), a.Eb.Ye())
  1772. };
  1773. b.Eaa = function() {};
  1774. b.P$ = function() {};
  1775. b.Vf = function() {
  1776. b.sf += 1
  1777. };
  1778. b.Mt = 1.192092896E-7;
  1779. b.pb = b.hz ? function() {
  1780. return b.I.bh
  1781. } : function() {
  1782. return 1
  1783. };
  1784. b.Y2 = function(a) {
  1785. var c = b.pb();
  1786. return C(a.x * c, a.y * c)
  1787. };
  1788. b.EF = function(a) {
  1789. var c = b.pb();
  1790. return C(a.x / c, a.y / c)
  1791. };
  1792. b.jC = function(a, c) {
  1793. var d = b.pb();
  1794. c.x = a.x / d;
  1795. c.y = a.y / d
  1796. };
  1797. b.T4 = function(a) {
  1798. var c = b.pb();
  1799. return N(a.width * c, a.height * c)
  1800. };
  1801. b.BP = function(a) {
  1802. var c = b.pb();
  1803. return N(a.width / c, a.height / c)
  1804. };
  1805. b.xL = function(a, c) {
  1806. var d = b.pb();
  1807. c.width = a.width / d;
  1808. c.height = a.height / d
  1809. };
  1810. b.kl = b.hz ? function(a) {
  1811. var c = b.pb();
  1812. return O(a.x / c, a.y / c, a.width / c, a.height / c)
  1813. } : function(a) {
  1814. return a
  1815. };
  1816. b.Zs = b.hz ? function(a) {
  1817. var c = b.pb();
  1818. return O(a.x * c, a.y * c, a.width * c, a.height * c)
  1819. } : function(a) {
  1820. return a
  1821. };
  1822. b.ONE = 1;
  1823. b.ZERO = 0;
  1824. b.SRC_ALPHA = 770;
  1825. b.SRC_ALPHA_SATURATE = 776;
  1826. b.SRC_COLOR = 768;
  1827. b.DST_ALPHA = 772;
  1828. b.DST_COLOR = 774;
  1829. b.ONE_MINUS_SRC_ALPHA = 771;
  1830. b.ONE_MINUS_SRC_COLOR = 769;
  1831. b.ONE_MINUS_DST_ALPHA = 773;
  1832. b.DST_COLOR = 775;
  1833. b.ONE_MINUS_DST_COLOR = 775;
  1834. b.ONE_MINUS_CONSTANT_ALPHA = 32772;
  1835. b.ONE_MINUS_CONSTANT_COLOR = 32770;
  1836. b.Qo = function() {
  1837. if (b.$s == b.U) {
  1838. var a = b.l.getError();
  1839. a && b.log(b.e.Qo, a)
  1840. }
  1841. };
  1842. b.Q6 = 0;
  1843. b.O6 = 1;
  1844. b.R6 = 2;
  1845. b.P6 = 3;
  1846. b.N6 = 2;
  1847. b.I8 = 0;
  1848. b.Qd = 1;
  1849. b.ou = 2;
  1850. b.tn = 4;
  1851. b.El = b.Qd | b.ou | b.tn;
  1852. b.e7 = 0;
  1853. b.qb = 0;
  1854. b.Ce = 1;
  1855. b.zd = 2;
  1856. b.J8 = 3;
  1857. b.oA = 0;
  1858. b.nA = 1;
  1859. b.Aq = 2;
  1860. b.sA = 3;
  1861. b.rA = 4;
  1862. b.mA = 5;
  1863. b.pA = 6;
  1864. b.qA = 7;
  1865. b.F8 = 8;
  1866. b.Wi = "ShaderPositionTextureColor";
  1867. b.bu = "ShaderPositionTextureColorAlphaTest";
  1868. b.au = "ShaderPositionColor";
  1869. b.tq = "ShaderPositionTexture";
  1870. b.Oz = "ShaderPositionTexture_uColor";
  1871. b.Nz = "ShaderPositionTextureA8Color";
  1872. b.Pz = "ShaderPosition_uColor";
  1873. b.BH = "ShaderPositionLengthTextureColor";
  1874. b.nU = "CC_PMatrix";
  1875. b.lU = "CC_MVMatrix";
  1876. b.mU = "CC_MVPMatrix";
  1877. b.rU = "CC_Time";
  1878. b.qU = "CC_SinTime";
  1879. b.kU = "CC_CosTime";
  1880. b.oU = "CC_Random01";
  1881. b.pU = "CC_Texture0";
  1882. b.uI = "CC_alpha_value";
  1883. b.Ip = "a_color";
  1884. b.ql = "a_position";
  1885. b.en = "a_texCoord";
  1886. b.qR = 32;
  1887. b.EG = 3233828865;
  1888. b.pu = 3233828866;
  1889. b.NR = 8801;
  1890. b.zS = 8802;
  1891. b.KQ = 8803;
  1892. b = b || {};
  1893. b.F = b.F || {};
  1894. b.F.wA = function() {
  1895. b.color = function(a, d, e, f, g, h) {
  1896. return void 0 === a ? new b.yf(0, 0, 0, 255, g, h) : "string" === typeof a ? (a = b.BN(a), new b.yf(a.r, a.g, a.b, a.a)) : "object" === typeof a ? new b.yf(a.r, a.g, a.b, a.a, a.xw, a.offset) : new b.yf(a, d, e, f, g, h)
  1897. };
  1898. b.yf = function(a, d, e, f, g, h) {
  1899. this.Zc = g || new ArrayBuffer(b.yf.BYTES_PER_ELEMENT);
  1900. this.va = h || 0;
  1901. g = this.Zc;
  1902. h = this.va;
  1903. var k = Uint8Array.BYTES_PER_ELEMENT;
  1904. this.xC = new Uint8Array(g, h, 1);
  1905. this.tB = new Uint8Array(g, h + k, 1);
  1906. this.MA = new Uint8Array(g, h + 2 * k, 1);
  1907. this.FA = new Uint8Array(g, h + 3 *
  1908. k, 1);
  1909. this.xC[0] = a || 0;
  1910. this.tB[0] = d || 0;
  1911. this.MA[0] = e || 0;
  1912. this.FA[0] = f || 255;
  1913. void 0 === f && (this.RL = !0)
  1914. };
  1915. b.yf.BYTES_PER_ELEMENT = 4;
  1916. var a = b.yf.prototype;
  1917. a.lW = function() {
  1918. return this.xC[0]
  1919. };
  1920. a.$X = function(a) {
  1921. this.xC[0] = 0 > a ? 0 : a
  1922. };
  1923. a.$V = function() {
  1924. return this.tB[0]
  1925. };
  1926. a.VX = function(a) {
  1927. this.tB[0] = 0 > a ? 0 : a
  1928. };
  1929. a.SV = function() {
  1930. return this.MA[0]
  1931. };
  1932. a.MX = function(a) {
  1933. this.MA[0] = 0 > a ? 0 : a
  1934. };
  1935. a.OV = function() {
  1936. return this.FA[0]
  1937. };
  1938. a.LX = function(a) {
  1939. this.FA[0] = 0 > a ? 0 : a
  1940. };
  1941. b.i(a, "r", a.lW, a.$X);
  1942. b.i(a, "g", a.$V, a.VX);
  1943. b.i(a, "b", a.SV, a.MX);
  1944. b.i(a, "a",
  1945. a.OV, a.LX);
  1946. b.Vb = function(a, d, e, f) {
  1947. this.Zc = e || new ArrayBuffer(b.Vb.BYTES_PER_ELEMENT);
  1948. this.va = f || 0;
  1949. this.qm = new Float32Array(this.Zc, this.va, 1);
  1950. this.rm = new Float32Array(this.Zc, this.va + 4, 1);
  1951. this.qm[0] = a || 0;
  1952. this.rm[0] = d || 0
  1953. };
  1954. b.Vb.BYTES_PER_ELEMENT = 8;
  1955. Object.defineProperties(b.Vb.prototype, {
  1956. x: {
  1957. get: function() {
  1958. return this.qm[0]
  1959. },
  1960. set: function(a) {
  1961. this.qm[0] = a
  1962. },
  1963. enumerable: !0
  1964. },
  1965. y: {
  1966. get: function() {
  1967. return this.rm[0]
  1968. },
  1969. set: function(a) {
  1970. this.rm[0] = a
  1971. },
  1972. enumerable: !0
  1973. }
  1974. });
  1975. b.uc = function(a, d, e, f, g) {
  1976. this.Zc = f || new ArrayBuffer(b.uc.BYTES_PER_ELEMENT);
  1977. this.va = g || 0;
  1978. f = this.Zc;
  1979. g = this.va;
  1980. this.qm = new Float32Array(f, g, 1);
  1981. this.qm[0] = a || 0;
  1982. this.rm = new Float32Array(f, g + Float32Array.BYTES_PER_ELEMENT, 1);
  1983. this.rm[0] = d || 0;
  1984. this.OD = new Float32Array(f, g + 2 * Float32Array.BYTES_PER_ELEMENT, 1);
  1985. this.OD[0] = e || 0
  1986. };
  1987. b.uc.BYTES_PER_ELEMENT = 12;
  1988. Object.defineProperties(b.uc.prototype, {
  1989. x: {
  1990. get: function() {
  1991. return this.qm[0]
  1992. },
  1993. set: function(a) {
  1994. this.qm[0] = a
  1995. },
  1996. enumerable: !0
  1997. },
  1998. y: {
  1999. get: function() {
  2000. return this.rm[0]
  2001. },
  2002. set: function(a) {
  2003. this.rm[0] = a
  2004. },
  2005. enumerable: !0
  2006. },
  2007. z: {
  2008. get: function() {
  2009. return this.OD[0]
  2010. },
  2011. set: function(a) {
  2012. this.OD[0] = a
  2013. },
  2014. enumerable: !0
  2015. }
  2016. });
  2017. b.bk = function(a, d, e, f) {
  2018. this.Zc = e || new ArrayBuffer(b.bk.BYTES_PER_ELEMENT);
  2019. this.va = f || 0;
  2020. this.vD = new Float32Array(this.Zc, this.va, 1);
  2021. this.BD = new Float32Array(this.Zc, this.va + 4, 1);
  2022. this.vD[0] = a || 0;
  2023. this.BD[0] = d || 0
  2024. };
  2025. b.bk.BYTES_PER_ELEMENT = 8;
  2026. Object.defineProperties(b.bk.prototype, {
  2027. fa: {
  2028. get: function() {
  2029. return this.vD[0]
  2030. },
  2031. set: function(a) {
  2032. this.vD[0] = a
  2033. },
  2034. enumerable: !0
  2035. },
  2036. ga: {
  2037. get: function() {
  2038. return this.BD[0]
  2039. },
  2040. set: function(a) {
  2041. this.BD[0] = a
  2042. },
  2043. enumerable: !0
  2044. }
  2045. });
  2046. b.Gz = function(a,
  2047. d, e, f, g, h) {
  2048. this.Zc = g || new ArrayBuffer(b.Gz.BYTES_PER_ELEMENT);
  2049. this.va = h || 0;
  2050. g = this.Zc;
  2051. h = b.Vb.BYTES_PER_ELEMENT;
  2052. this.Eo = a ? new b.Vb(a.x, a.y, g, 0) : new b.Vb(0, 0, g, 0);
  2053. this.Ho = d ? new b.Vb(d.x, d.y, g, h) : new b.Vb(0, 0, g, h);
  2054. this.yn = e ? new b.Vb(e.x, e.y, g, 2 * h) : new b.Vb(0, 0, g, 2 * h);
  2055. this.Cn = f ? new b.Vb(f.x, f.y, g, 3 * h) : new b.Vb(0, 0, g, 3 * h)
  2056. };
  2057. b.Gz.BYTES_PER_ELEMENT = 32;
  2058. b.Xt = function(a, d, e, f) {
  2059. this.C = a || new b.uc(0, 0, 0);
  2060. this.L = d || new b.uc(0, 0, 0);
  2061. this.K = e || new b.uc(0, 0, 0);
  2062. this.J = f || new b.uc(0, 0, 0)
  2063. };
  2064. Object.defineProperties(b.Gz.prototype, {
  2065. K: {
  2066. get: function() {
  2067. return this.Eo
  2068. },
  2069. set: function(a) {
  2070. this.Eo.x = a.x;
  2071. this.Eo.y = a.y
  2072. },
  2073. enumerable: !0
  2074. },
  2075. J: {
  2076. get: function() {
  2077. return this.Ho
  2078. },
  2079. set: function(a) {
  2080. this.Ho.x = a.x;
  2081. this.Ho.y = a.y
  2082. },
  2083. enumerable: !0
  2084. },
  2085. C: {
  2086. get: function() {
  2087. return this.yn
  2088. },
  2089. set: function(a) {
  2090. this.yn.x = a.x;
  2091. this.yn.y = a.y
  2092. },
  2093. enumerable: !0
  2094. },
  2095. L: {
  2096. get: function() {
  2097. return this.Cn
  2098. },
  2099. set: function(a) {
  2100. this.Cn.x = a.x;
  2101. this.Cn.y = a.y
  2102. },
  2103. enumerable: !0
  2104. }
  2105. });
  2106. b.qg = function(a, d, e, f, g) {
  2107. this.Zc = f || new ArrayBuffer(b.qg.BYTES_PER_ELEMENT);
  2108. this.va = g || 0;
  2109. f = this.Zc;
  2110. g = this.va;
  2111. var h = b.uc.BYTES_PER_ELEMENT;
  2112. this.Pa = a ? new b.uc(a.x, a.y, a.z, f, g) : new b.uc(0, 0, 0, f, g);
  2113. this.Qq = d ? b.color(d.r, d.g, d.b, d.a, f, g + h) : b.color(0, 0, 0, 0, f, g + h);
  2114. this.Pf = e ? new b.bk(e.fa, e.ga, f, g + h + b.yf.BYTES_PER_ELEMENT) : new b.bk(0, 0, f, g + h + b.yf.BYTES_PER_ELEMENT)
  2115. };
  2116. b.qg.BYTES_PER_ELEMENT = 24;
  2117. Object.defineProperties(b.qg.prototype, {
  2118. f: {
  2119. get: function() {
  2120. return this.Pa
  2121. },
  2122. set: function(a) {
  2123. var d = this.Pa;
  2124. d.x = a.x;
  2125. d.y = a.y;
  2126. d.z = a.z
  2127. },
  2128. enumerable: !0
  2129. },
  2130. s: {
  2131. get: function() {
  2132. return this.Qq
  2133. },
  2134. set: function(a) {
  2135. var d = this.Qq;
  2136. d.r = a.r;
  2137. d.g = a.g;
  2138. d.b = a.b;
  2139. d.a = a.a
  2140. },
  2141. enumerable: !0
  2142. },
  2143. m: {
  2144. get: function() {
  2145. return this.Pf
  2146. },
  2147. set: function(a) {
  2148. this.Pf.fa = a.fa;
  2149. this.Pf.ga = a.ga
  2150. },
  2151. enumerable: !0
  2152. }
  2153. });
  2154. b.zb = function(a, d, e, f, g, h) {
  2155. this.Zc = g || new ArrayBuffer(b.zb.BYTES_PER_ELEMENT);
  2156. this.va = h || 0;
  2157. g = this.Zc;
  2158. h = this.va;
  2159. var k = b.qg.BYTES_PER_ELEMENT;
  2160. this.Eo = a ? new b.qg(a.f, a.s, a.m, g, h) : new b.qg(null, null, null, g, h);
  2161. this.yn = d ? new b.qg(d.f, d.s, d.m, g, h + k) : new b.qg(null, null, null, g, h + k);
  2162. this.Ho = e ? new b.qg(e.f, e.s, e.m, g, h + 2 * k) : new b.qg(null, null, null, g, h + 2 * k);
  2163. this.Cn = f ? new b.qg(f.f, f.s, f.m, g, h + 3 * k) : new b.qg(null,
  2164. null, null, g, h + 3 * k)
  2165. };
  2166. b.zb.BYTES_PER_ELEMENT = 96;
  2167. Object.defineProperties(b.zb.prototype, {
  2168. K: {
  2169. get: function() {
  2170. return this.Eo
  2171. },
  2172. set: function(a) {
  2173. var d = this.Eo;
  2174. d.f = a.f;
  2175. d.s = a.s;
  2176. d.m = a.m
  2177. },
  2178. enumerable: !0
  2179. },
  2180. C: {
  2181. get: function() {
  2182. return this.yn
  2183. },
  2184. set: function(a) {
  2185. var d = this.yn;
  2186. d.f = a.f;
  2187. d.s = a.s;
  2188. d.m = a.m
  2189. },
  2190. enumerable: !0
  2191. },
  2192. J: {
  2193. get: function() {
  2194. return this.Ho
  2195. },
  2196. set: function(a) {
  2197. var d = this.Ho;
  2198. d.f = a.f;
  2199. d.s = a.s;
  2200. d.m = a.m
  2201. },
  2202. enumerable: !0
  2203. },
  2204. L: {
  2205. get: function() {
  2206. return this.Cn
  2207. },
  2208. set: function(a) {
  2209. var d = this.Cn;
  2210. d.f = a.f;
  2211. d.s = a.s;
  2212. d.m = a.m
  2213. },
  2214. enumerable: !0
  2215. },
  2216. xw: {
  2217. get: function() {
  2218. return this.Zc
  2219. },
  2220. enumerable: !0
  2221. }
  2222. });
  2223. b.wI = function() {
  2224. return new b.zb
  2225. };
  2226. b.vI = function(a) {
  2227. if (!a) return b.wI();
  2228. var d = a.K,
  2229. e = a.C,
  2230. f = a.J;
  2231. a = a.L;
  2232. return {
  2233. K: {
  2234. f: {
  2235. x: d.f.x,
  2236. y: d.f.y,
  2237. z: d.f.z
  2238. },
  2239. s: {
  2240. r: d.s.r,
  2241. g: d.s.g,
  2242. b: d.s.b,
  2243. a: d.s.a
  2244. },
  2245. m: {
  2246. fa: d.m.fa,
  2247. ga: d.m.ga
  2248. }
  2249. },
  2250. C: {
  2251. f: {
  2252. x: e.f.x,
  2253. y: e.f.y,
  2254. z: e.f.z
  2255. },
  2256. s: {
  2257. r: e.s.r,
  2258. g: e.s.g,
  2259. b: e.s.b,
  2260. a: e.s.a
  2261. },
  2262. m: {
  2263. fa: e.m.fa,
  2264. ga: e.m.ga
  2265. }
  2266. },
  2267. J: {
  2268. f: {
  2269. x: f.f.x,
  2270. y: f.f.y,
  2271. z: f.f.z
  2272. },
  2273. s: {
  2274. r: f.s.r,
  2275. g: f.s.g,
  2276. b: f.s.b,
  2277. a: f.s.a
  2278. },
  2279. m: {
  2280. fa: f.m.fa,
  2281. ga: f.m.ga
  2282. }
  2283. },
  2284. L: {
  2285. f: {
  2286. x: a.f.x,
  2287. y: a.f.y,
  2288. z: a.f.z
  2289. },
  2290. s: {
  2291. r: a.s.r,
  2292. g: a.s.g,
  2293. b: a.s.b,
  2294. a: a.s.a
  2295. },
  2296. m: {
  2297. fa: a.m.fa,
  2298. ga: a.m.ga
  2299. }
  2300. }
  2301. }
  2302. };
  2303. b.H8 = function(a) {
  2304. if (!a) return [];
  2305. for (var d = [], e = 0; e < a.length; e++) d.push(b.vI(a[e]));
  2306. return d
  2307. };
  2308. b.yd = function(a, d, e, f, g) {
  2309. this.Zc = f || new ArrayBuffer(b.yd.BYTES_PER_ELEMENT);
  2310. this.va = g || 0;
  2311. f = this.Zc;
  2312. g = this.va;
  2313. var h = b.Vb.BYTES_PER_ELEMENT;
  2314. this.Pa = a ? new b.Vb(a.x, a.y, f, g) : new b.Vb(0, 0, f, g);
  2315. this.Qq = d ? b.color(d.r, d.g, d.b, d.a, f, g + h) : b.color(0, 0, 0, 0, f, g + h);
  2316. this.Pf = e ? new b.bk(e.fa, e.ga, f, g + h + b.yf.BYTES_PER_ELEMENT) : new b.bk(0, 0, f, g + h + b.yf.BYTES_PER_ELEMENT)
  2317. };
  2318. b.yd.BYTES_PER_ELEMENT = 20;
  2319. Object.defineProperties(b.yd.prototype, {
  2320. f: {
  2321. get: function() {
  2322. return this.Pa
  2323. },
  2324. set: function(a) {
  2325. this.Pa.x = a.x;
  2326. this.Pa.y = a.y
  2327. },
  2328. enumerable: !0
  2329. },
  2330. s: {
  2331. get: function() {
  2332. return this.Qq
  2333. },
  2334. set: function(a) {
  2335. var d = this.Qq;
  2336. d.r = a.r;
  2337. d.g = a.g;
  2338. d.b = a.b;
  2339. d.a = a.a
  2340. },
  2341. enumerable: !0
  2342. },
  2343. m: {
  2344. get: function() {
  2345. return this.Pf
  2346. },
  2347. set: function(a) {
  2348. this.Pf.fa = a.fa;
  2349. this.Pf.ga = a.ga
  2350. },
  2351. enumerable: !0
  2352. }
  2353. });
  2354. b.Ub = function(a, d, e, f, g) {
  2355. this.Zc = f || new ArrayBuffer(b.Ub.BYTES_PER_ELEMENT);
  2356. this.va = g || 0;
  2357. f = this.Zc;
  2358. g = this.va;
  2359. var h = b.yd.BYTES_PER_ELEMENT;
  2360. this.FI = a ? new b.yd(a.f, a.s, a.m, f, g) : new b.yd(null, null, null,
  2361. f, g);
  2362. this.NI = d ? new b.yd(d.f, d.s, d.m, f, g + h) : new b.yd(null, null, null, f, g + h);
  2363. this.SI = e ? new b.yd(e.f, e.s, e.m, f, g + 2 * h) : new b.yd(null, null, null, f, g + 2 * h)
  2364. };
  2365. b.Ub.BYTES_PER_ELEMENT = 60;
  2366. Object.defineProperties(b.Ub.prototype, {
  2367. a: {
  2368. get: function() {
  2369. return this.FI
  2370. },
  2371. set: function(a) {
  2372. var d = this.FI;
  2373. d.f = a.f;
  2374. d.s = a.s;
  2375. d.m = a.m
  2376. },
  2377. enumerable: !0
  2378. },
  2379. b: {
  2380. get: function() {
  2381. return this.NI
  2382. },
  2383. set: function(a) {
  2384. var d = this.NI;
  2385. d.f = a.f;
  2386. d.s = a.s;
  2387. d.m = a.m
  2388. },
  2389. enumerable: !0
  2390. },
  2391. B: {
  2392. get: function() {
  2393. return this.SI
  2394. },
  2395. set: function(a) {
  2396. var d = this.SI;
  2397. d.f = a.f;
  2398. d.s = a.s;
  2399. d.m = a.m
  2400. },
  2401. enumerable: !0
  2402. }
  2403. })
  2404. };
  2405. b.F.zz = function() {
  2406. var a = b.color;
  2407. a.wW = function() {
  2408. return a(255, 255, 255)
  2409. };
  2410. a.xW = function() {
  2411. return a(255, 255, 0)
  2412. };
  2413. a.UV = function() {
  2414. return a(0, 0, 255)
  2415. };
  2416. a.bW = function() {
  2417. return a(0, 255, 0)
  2418. };
  2419. a.mW = function() {
  2420. return a(255, 0, 0)
  2421. };
  2422. a.gW = function() {
  2423. return a(255, 0, 255)
  2424. };
  2425. a.TV = function() {
  2426. return a(0, 0, 0)
  2427. };
  2428. a.kW = function() {
  2429. return a(255, 127, 0)
  2430. };
  2431. a.aW = function() {
  2432. return a(166, 166, 166)
  2433. };
  2434. b.i(a, "WHITE", a.wW);
  2435. b.i(a, "YELLOW", a.xW);
  2436. b.i(a, "BLUE", a.UV);
  2437. b.i(a, "GREEN", a.bW);
  2438. b.i(a, "RED", a.mW);
  2439. b.i(a, "MAGENTA", a.gW);
  2440. b.i(a, "BLACK", a.TV);
  2441. b.i(a,
  2442. "ORANGE", a.kW);
  2443. b.i(a, "GRAY", a.aW);
  2444. b.ec.vV = function() {
  2445. return new b.ec(b.ONE, b.ZERO)
  2446. };
  2447. b.ec.MU = function() {
  2448. return new b.ec(b.ONE, b.ONE_MINUS_SRC_ALPHA)
  2449. };
  2450. b.ec.LU = function() {
  2451. return new b.ec(b.SRC_ALPHA, b.ONE_MINUS_SRC_ALPHA)
  2452. };
  2453. b.ec.KU = function() {
  2454. return new b.ec(b.SRC_ALPHA, b.ONE)
  2455. };
  2456. b.i(b.ec, "DISABLE", b.ec.vV);
  2457. b.i(b.ec, "ALPHA_PREMULTIPLIED", b.ec.MU);
  2458. b.i(b.ec, "ALPHA_NON_PREMULTIPLIED", b.ec.LU);
  2459. b.i(b.ec, "ADDITIVE", b.ec.KU)
  2460. };
  2461. b.yf = function(a, c, d, e) {
  2462. this.r = a || 0;
  2463. this.g = c || 0;
  2464. this.b = d || 0;
  2465. this.a = e || 255
  2466. };
  2467. b.color = function(a, c, d, e) {
  2468. return void 0 === a ? {
  2469. r: 0,
  2470. g: 0,
  2471. b: 0,
  2472. a: 255
  2473. } : "string" === typeof a ? b.BN(a) : "object" === typeof a ? {
  2474. r: a.r,
  2475. g: a.g,
  2476. b: a.b,
  2477. a: a.a || 255
  2478. } : {
  2479. r: a,
  2480. g: c,
  2481. b: d,
  2482. a: e || 255
  2483. }
  2484. };
  2485. b.w$ = function(a, c) {
  2486. return a.r === c.r && a.g === c.g && a.b === c.b
  2487. };
  2488. b.dQ = function() {
  2489. this.timestamp = this.z = this.y = this.x = 0
  2490. };
  2491. b.Vb = function(a, c) {
  2492. this.x = a || 0;
  2493. this.y = c || 0
  2494. };
  2495. b.uc = function(a, c, d) {
  2496. this.x = a || 0;
  2497. this.y = c || 0;
  2498. this.z = d || 0
  2499. };
  2500. b.bk = function(a, c) {
  2501. this.fa = a || 0;
  2502. this.ga = c || 0
  2503. };
  2504. b.ec = function(a, c) {
  2505. this.src = a;
  2506. this.S = c
  2507. };
  2508. b.l$ = function() {
  2509. return new b.ec(b.ONE, b.ZERO)
  2510. };
  2511. b.BN = function(a) {
  2512. a = a.replace(/^#?/, "0x");
  2513. a = parseInt(a);
  2514. return b.color(a >> 16, (a >> 8) % 256, a % 256)
  2515. };
  2516. b.x$ = function(a) {
  2517. var c = a.r.toString(16),
  2518. d = a.g.toString(16),
  2519. e = a.b.toString(16);
  2520. return "#" + (16 > a.r ? "0" + c : c) + (16 > a.g ? "0" + d : d) + (16 > a.b ? "0" + e : e)
  2521. };
  2522. b.eu = 0;
  2523. b.Al = 1;
  2524. b.KH = 2;
  2525. b.Bq = 0;
  2526. b.uU = 1;
  2527. b.xI = 2;
  2528. b.P8 = b.oa.extend({
  2529. no: null,
  2530. Yr: null,
  2531. EA: 0,
  2532. ctor: function() {
  2533. this.no = {};
  2534. this.Yr = {};
  2535. this.EA = 2 << (0 | 10 * Math.random())
  2536. },
  2537. EU: function() {
  2538. this.EA++;
  2539. return "key_" + this.EA
  2540. },
  2541. fja: function(a, c) {
  2542. if (null != c) {
  2543. var d = this.EU();
  2544. this.no[d] = c;
  2545. this.Yr[d] = a
  2546. }
  2547. },
  2548. F2: function(a) {
  2549. if (null == a) return null;
  2550. var c = this.no,
  2551. d;
  2552. for (d in c)
  2553. if (c[d] === a) return this.Yr[d];
  2554. return null
  2555. },
  2556. Oka: function(a) {
  2557. return this.F2(a)
  2558. },
  2559. r3: function(a) {
  2560. if (null != a) {
  2561. var c = this.no,
  2562. d;
  2563. for (d in c)
  2564. if (c[d] === a) {
  2565. delete this.Yr[d];
  2566. delete c[d];
  2567. break
  2568. }
  2569. }
  2570. },
  2571. Oha: function(a) {
  2572. if (null !=
  2573. a)
  2574. for (var c = 0; c < a.length; c++) this.r3(a[c])
  2575. },
  2576. fZ: function() {
  2577. var a = [],
  2578. c = this.no,
  2579. d;
  2580. for (d in c) a.push(c[d]);
  2581. return a
  2582. },
  2583. Iha: function() {
  2584. this.no = {};
  2585. this.Yr = {}
  2586. },
  2587. count: function() {
  2588. return this.fZ().length
  2589. }
  2590. });
  2591. b.RG = function() {
  2592. this.fontName = "Arial";
  2593. this.fontSize = 12;
  2594. this.textAlign = b.Al;
  2595. this.verticalAlign = b.Bq;
  2596. this.fillStyle = b.color(255, 255, 255, 255);
  2597. this.boundingHeight = this.boundingWidth = 0;
  2598. this.mG = !1;
  2599. this.strokeStyle = b.color(255, 255, 255, 255);
  2600. this.lineWidth = 1;
  2601. this.AP = !1;
  2602. this.shadowBlur = this.shadowOffsetY = this.shadowOffsetX = 0;
  2603. this.shadowOpacity = 1
  2604. };
  2605. b.A === b.U && (b.assert("function" === typeof b.F.wA, b.e.jd, "CCTypesWebGL.js"), b.F.wA(), delete b.F.wA);
  2606. b.assert("function" === typeof b.F.zz, b.e.jd, "CCTypesPropertyDefine.js");
  2607. b.F.zz();
  2608. delete b.F.zz;
  2609. b.C8 = [];
  2610. b.D8 = {};
  2611. b.Uy = b.oa.extend({
  2612. Z8: null,
  2613. ie: null,
  2614. On: null,
  2615. Dk: null,
  2616. qe: null,
  2617. xi: null,
  2618. FC: !1,
  2619. LA: !0,
  2620. Kl: 1,
  2621. ID: "",
  2622. CC: null,
  2623. ka: 1,
  2624. IK: 1,
  2625. La: 1,
  2626. JK: 1,
  2627. eo: 0,
  2628. XB: 5,
  2629. oh: null,
  2630. fL: null,
  2631. jL: null,
  2632. iL: null,
  2633. gL: null,
  2634. hL: null,
  2635. kr: !1,
  2636. W8: !1,
  2637. H9: null,
  2638. dK: null,
  2639. eK: null,
  2640. D9: !1,
  2641. bB: null,
  2642. xk: null,
  2643. sB: 1,
  2644. uu: !1,
  2645. nK: !0,
  2646. ctor: function() {
  2647. var a = document,
  2648. c = b.Vj,
  2649. d = b.lg;
  2650. this.xk = b.ym.parentNode === a.body ? a.documentElement : b.ym.parentNode;
  2651. this.ie = N(0, 0);
  2652. this.HB();
  2653. var a = b.Va.width,
  2654. e = b.Va.height;
  2655. this.On = N(a, e);
  2656. this.Dk = N(a, e);
  2657. this.qe = O(0, 0, a, e);
  2658. this.xi = O(0, 0, a, e);
  2659. this.bB = {
  2660. left: 0,
  2661. top: 0
  2662. };
  2663. this.ID = "Cocos2dHTML5";
  2664. a = b.hb;
  2665. this.o_(a.yF == a.eH || a.yF == a.fH);
  2666. b.Sj && b.Sj.da(this.xi);
  2667. this.fL = new b.ze(c.tt, d.Xy);
  2668. this.jL = new b.ze(c.vS, d.SHOW_ALL);
  2669. this.iL = new b.ze(c.tt, d.pz);
  2670. this.gL = new b.ze(c.tt, d.Yy);
  2671. this.hL = new b.ze(c.tt, d.Lt);
  2672. this.dK = b.Va;
  2673. this.eK = b.l
  2674. },
  2675. DC: function() {
  2676. var a = this.Dk.width,
  2677. c = this.Dk.height;
  2678. this.CC && (this.HB(), this.CC.call());
  2679. 0 < a && this.fy(a, c, this.oh)
  2680. },
  2681. x3: function(a) {
  2682. a ? this.uu || (this.uu = !0, a = this.DC.bind(this), b.Ga(window, "resize", a, !1)) : this.uu && (this.uu = !0, a = this.DC.bind(this),
  2683. window.removeEventListener("resize", a, !1))
  2684. },
  2685. wja: function(a) {
  2686. if ("function" == typeof a || null == a) this.CC = a
  2687. },
  2688. HB: function() {
  2689. var a = this.ie;
  2690. a.width = this.xk.clientWidth;
  2691. a.height = this.xk.clientHeight
  2692. },
  2693. Q8: function() {
  2694. var a = this.Dk.width,
  2695. c = this.Dk.height;
  2696. 0 < a && this.fy(a, c, this.oh)
  2697. },
  2698. sY: function() {
  2699. if (this.nK) {
  2700. var a = {
  2701. "user-scalable": "no",
  2702. "maximum-scale": "1.0",
  2703. "initial-scale": "1.0"
  2704. },
  2705. c = document.getElementsByName("viewport"),
  2706. d;
  2707. 0 == c.length ? (c = b.Sb("meta"), c.name = "viewport", c.content = "", document.head.appendChild(c)) : c =
  2708. c[0];
  2709. if (b.hb.Jh && b.hb.wm == b.hb.Jp) c.content = "initial-scale:1";
  2710. else {
  2711. d = c.content;
  2712. for (var e in a) RegExp(e).test(d) || (d += ("" == d ? "" : ",") + e + "\x3d" + a[e]);
  2713. c.content = d
  2714. }
  2715. }
  2716. },
  2717. Xv: function() {
  2718. var a = b.pb();
  2719. this.La = this.ka = a
  2720. },
  2721. Pv: function() {
  2722. this.ka = this.IK;
  2723. this.La = this.JK
  2724. },
  2725. R8: function() {},
  2726. z1: function() {
  2727. this.kr = !0
  2728. },
  2729. aZ: function(a) {
  2730. this.nK = a
  2731. },
  2732. o_: function(a) {
  2733. this.FC = a ? !0 : !1
  2734. },
  2735. dea: function() {
  2736. return this.FC
  2737. },
  2738. Daa: function(a) {
  2739. this.LA = a ? !0 : !1
  2740. },
  2741. Qda: function() {
  2742. return this.LA
  2743. },
  2744. end: function() {},
  2745. aea: function() {
  2746. return null != this.dK &&
  2747. null != this.eK
  2748. },
  2749. Mia: function(a) {
  2750. this.sB = a;
  2751. b.I.Xm(b.I.pi)
  2752. },
  2753. vka: function() {},
  2754. Ria: function() {},
  2755. xia: function(a, c) {
  2756. this.bB = {
  2757. left: a,
  2758. top: c
  2759. }
  2760. },
  2761. rba: function() {
  2762. return this.bB
  2763. },
  2764. Rba: function() {
  2765. return N(this.ie.width, this.ie.height)
  2766. },
  2767. Lia: function(a, c) {
  2768. this.ie.width = a;
  2769. this.ie.height = c;
  2770. this.xk.style.width = a + "px";
  2771. this.xk.style.height = c + "px";
  2772. this.DC();
  2773. b.I.Xm(b.I.pi)
  2774. },
  2775. r$: function() {},
  2776. vs: function() {
  2777. return N(this.xi.width, this.xi.height)
  2778. },
  2779. PE: function() {
  2780. return C(this.xi.x, this.xi.y)
  2781. },
  2782. o$: function() {
  2783. return !0
  2784. },
  2785. Mca: function() {
  2786. return this.oh
  2787. },
  2788. s4: function(a) {
  2789. if (a instanceof b.ze) this.oh = a;
  2790. else {
  2791. var c = b.ze;
  2792. a === c.Xy && (this.oh = this.fL);
  2793. a === c.SHOW_ALL && (this.oh = this.jL);
  2794. a === c.pz && (this.oh = this.iL);
  2795. a === c.Yy && (this.oh = this.gL);
  2796. a === c.Lt && (this.oh = this.hL)
  2797. }
  2798. },
  2799. fy: function(a, c, d) {
  2800. if (isNaN(a) || 0 == a || isNaN(c) || 0 == c) b.log(b.e.UQ);
  2801. else {
  2802. this.s4(d);
  2803. var e = this.oh;
  2804. if (e) {
  2805. e.Rm(this);
  2806. var f = this.ie.width,
  2807. g = this.ie.height;
  2808. b.hb.Jh && this.sY(this.ie.width, this.ie.height);
  2809. this.HB();
  2810. if (d != this.oh || a != this.Dk.width || c != this.Dk.height || f != this.ie.width || g != this.ie.height) this.On =
  2811. N(a, c), this.Dk = N(a, c), a = e.apply(this, this.On), a.scale && 2 == a.scale.length && (this.ka = a.scale[0], this.La = a.scale[1]), a.viewport && (a = this.qe = a.viewport, c = this.xi, c.width = b.Va.width / this.ka, c.height = b.Va.height / this.La, c.x = -a.x / this.ka, c.y = -a.y / this.La), a = b.I, b.Tj.width = a.mc.width = this.xi.width, b.Tj.height = a.mc.height = this.xi.height, e.Qm(this), b.A == b.U && (a.Ln(), a.fP()), this.IK = this.ka, this.JK = this.La, b.LQ && b.LQ.v9(), b.Sj && b.Sj.da(this.xi)
  2812. } else b.log(b.e.VQ)
  2813. }
  2814. },
  2815. BE: function() {
  2816. return N(this.On.width, this.On.height)
  2817. },
  2818. M4: function(a, c, d, e) {
  2819. var f = this.sB,
  2820. g = this.ka,
  2821. h = this.La;
  2822. b.l.viewport(a * g * f + this.qe.x * f, c * h * f + this.qe.y * f, d * g * f, e * h * f)
  2823. },
  2824. yja: function(a, c, d, e) {
  2825. var f = this.sB,
  2826. g = this.ka,
  2827. h = this.La;
  2828. b.l.scissor(a * g * f + this.qe.x * f, c * h * f + this.qe.y * f, d * g * f, e * h * f)
  2829. },
  2830. fea: function() {
  2831. var a = b.l;
  2832. return a.isEnabled(a.SCISSOR_TEST)
  2833. },
  2834. Rca: function() {
  2835. var a = b.l,
  2836. c = this.ka,
  2837. d = this.La,
  2838. a = a.getParameter(a.SCISSOR_BOX);
  2839. return O((a[0] - this.qe.x) / c, (a[1] - this.qe.y) / d, a[2] / c, a[3] / d)
  2840. },
  2841. hka: function(a) {
  2842. null != a && 0 < a.length && (this.ID = a)
  2843. },
  2844. yda: function() {
  2845. return this.ID
  2846. },
  2847. zda: function() {
  2848. return this.qe
  2849. },
  2850. kN: function() {
  2851. return this.ka
  2852. },
  2853. lN: function() {
  2854. return this.La
  2855. },
  2856. zba: function() {
  2857. return this.Kl
  2858. },
  2859. hE: function(a, c, d) {
  2860. return {
  2861. x: this.Kl * (a - d.left),
  2862. y: this.Kl * (d.top + d.height - c)
  2863. }
  2864. },
  2865. pV: function(a, c) {
  2866. var d = this.qe;
  2867. a.x = (this.Kl * (a.x - c.left) - d.x) / this.ka;
  2868. a.y = (this.Kl * (c.top + c.height - a.y) - d.y) / this.La
  2869. },
  2870. Mu: function(a) {
  2871. for (var c = this.qe, d = this.ka, e = this.La, f, g, h, k = 0; k < a.length; k++) f = a[k], g = f.Cd, h = f.oi, f.VC((g.x - c.x) / d, (g.y - c.y) / e), f.uo((h.x - c.x) / d, (h.y - c.y) / e)
  2872. }
  2873. });
  2874. b.Uy.yB = function() {
  2875. this.mv || (this.mv = this.mv || new b.Uy, this.mv.z1());
  2876. return this.mv
  2877. };
  2878. b.Vj = b.oa.extend({
  2879. Rm: function() {},
  2880. apply: function() {},
  2881. Qm: function() {},
  2882. ZC: function(a, c, d) {
  2883. var e = a.xk;
  2884. b.view.LA && b.hb.Jh && e == document.documentElement && b.screen.uZ(e);
  2885. var e = b.Va,
  2886. f = b.ym;
  2887. f.style.width = e.style.width = c + "px";
  2888. f.style.height = e.style.height = d + "px";
  2889. f = a.Kl = 1;
  2890. a.FC && (f = a.Kl = window.devicePixelRatio || 1);
  2891. e.width = c * f;
  2892. e.height = d * f;
  2893. a = document.body;
  2894. var g;
  2895. a && (g = a.style) && (g.paddingTop = g.paddingTop || "0px", g.paddingRight = g.paddingRight || "0px", g.paddingBottom = g.paddingBottom || "0px", g.paddingLeft = g.paddingLeft ||
  2896. "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")
  2897. },
  2898. RJ: function() {
  2899. document.body.insertBefore(b.ym, document.body.firstChild);
  2900. var a = document.body.style;
  2901. a.width = window.innerWidth + "px";
  2902. a.height = window.innerHeight + "px";
  2903. a.overflow = "hidden";
  2904. a = b.ym.style;
  2905. a.position = "fixed";
  2906. a.left =
  2907. a.top = "0px";
  2908. document.body.scrollTop = 0
  2909. }
  2910. });
  2911. b.lg = b.oa.extend({
  2912. EC: {
  2913. scale: [1, 1],
  2914. viewport: null
  2915. },
  2916. Lq: function(a, c, d, e, f, g) {
  2917. 2 > Math.abs(a - d) && (d = a);
  2918. 2 > Math.abs(c - e) && (e = c);
  2919. a = O(Math.round((a - d) / 2), Math.round((c - e) / 2), d, e);
  2920. b.A == b.Ba && b.l.translate(a.x, a.y + e);
  2921. this.EC.scale = [f, g];
  2922. this.EC.viewport = a;
  2923. return this.EC
  2924. },
  2925. Rm: function() {},
  2926. apply: function() {
  2927. return {
  2928. scale: [1, 1]
  2929. }
  2930. },
  2931. Qm: function() {}
  2932. });
  2933. (function() {
  2934. var a = b.Vj.extend({
  2935. apply: function(a) {
  2936. this.ZC(a, a.ie.width, a.ie.height)
  2937. }
  2938. }),
  2939. c = b.Vj.extend({
  2940. apply: function(a, c) {
  2941. var d = a.ie.width,
  2942. e = a.ie.height,
  2943. f = b.ym.style,
  2944. r = c.width,
  2945. s = c.height,
  2946. u = d / r,
  2947. t = e / s,
  2948. v, w;
  2949. u < t ? (v = d, w = s * u) : (v = r * t, w = e);
  2950. r = Math.round((d - v) / 2);
  2951. w = Math.round((e - w) / 2);
  2952. this.ZC(a, d - 2 * r, e - 2 * w);
  2953. f.marginLeft = r + "px";
  2954. f.marginRight = r + "px";
  2955. f.marginTop = w + "px";
  2956. f.marginBottom = w + "px"
  2957. }
  2958. });
  2959. a.extend({
  2960. Rm: function(a) {
  2961. this._super(a);
  2962. a.xk = document.documentElement
  2963. },
  2964. apply: function(a) {
  2965. this._super(a);
  2966. this.RJ()
  2967. }
  2968. });
  2969. c.extend({
  2970. Rm: function(a) {
  2971. this._super(a);
  2972. a.xk = document.documentElement
  2973. },
  2974. apply: function(a, c) {
  2975. this._super(a, c);
  2976. this.RJ()
  2977. }
  2978. });
  2979. var d = b.Vj.extend({
  2980. apply: function(a) {
  2981. this.ZC(a, b.Va.width, b.Va.height)
  2982. }
  2983. });
  2984. b.Vj.tt = new a;
  2985. b.Vj.vS = new c;
  2986. b.Vj.U7 = new d;
  2987. var a = b.lg.extend({
  2988. apply: function(a, c) {
  2989. var d = b.Va.width,
  2990. e = b.Va.height;
  2991. return this.Lq(d, e, d, e, d / c.width, e / c.height)
  2992. }
  2993. }),
  2994. c = b.lg.extend({
  2995. apply: function(a, c) {
  2996. var d = b.Va.width,
  2997. e = b.Va.height,
  2998. f = c.width,
  2999. r = c.height,
  3000. s = d / f,
  3001. u = e / r,
  3002. t = 0,
  3003. v, w;
  3004. s < u ? (t = s, v = d, w = r * t) : (t = u, v = f * t, w = e);
  3005. return this.Lq(d, e, v, w, t, t)
  3006. }
  3007. }),
  3008. d = b.lg.extend({
  3009. apply: function(a,
  3010. c) {
  3011. var d = b.Va.width,
  3012. e = b.Va.height,
  3013. f = c.width,
  3014. r = c.height,
  3015. s = d / f,
  3016. u = e / r,
  3017. t, v, w;
  3018. s < u ? (t = u, v = f * t, w = e) : (t = s, v = d, w = r * t);
  3019. return this.Lq(d, e, v, w, t, t)
  3020. }
  3021. }),
  3022. e = b.lg.extend({
  3023. apply: function(a, c) {
  3024. var d = b.Va.width,
  3025. e = b.Va.height,
  3026. f = e / c.height;
  3027. return this.Lq(d, e, d, e, f, f)
  3028. },
  3029. Qm: function(a) {
  3030. b.I.mc = a.vs()
  3031. }
  3032. }),
  3033. f = b.lg.extend({
  3034. apply: function(a, c) {
  3035. var d = b.Va.width,
  3036. e = b.Va.height,
  3037. f = d / c.width;
  3038. return this.Lq(d, e, d, e, f, f)
  3039. },
  3040. Qm: function(a) {
  3041. b.I.mc = a.vs()
  3042. }
  3043. });
  3044. b.lg.Xy = new a;
  3045. b.lg.SHOW_ALL = new c;
  3046. b.lg.pz = new d;
  3047. b.lg.Yy = new e;
  3048. b.lg.Lt = new f
  3049. })();
  3050. b.ze = b.oa.extend({
  3051. Ku: null,
  3052. Lu: null,
  3053. ctor: function(a, c) {
  3054. this.R3(a);
  3055. this.S3(c)
  3056. },
  3057. Rm: function(a) {
  3058. this.Ku.Rm(a);
  3059. this.Lu.Rm(a)
  3060. },
  3061. apply: function(a, c) {
  3062. this.Ku.apply(a, c);
  3063. return this.Lu.apply(a, c)
  3064. },
  3065. Qm: function(a) {
  3066. this.Ku.Qm(a);
  3067. this.Lu.Qm(a)
  3068. },
  3069. R3: function(a) {
  3070. a instanceof b.Vj && (this.Ku = a)
  3071. },
  3072. S3: function(a) {
  3073. a instanceof b.lg && (this.Lu = a)
  3074. }
  3075. });
  3076. b.ze.Xy = 0;
  3077. b.ze.pz = 1;
  3078. b.ze.SHOW_ALL = 2;
  3079. b.ze.Yy = 3;
  3080. b.ze.Lt = 4;
  3081. b.ze.sU = 5;
  3082. b.screen = {
  3083. kw: !1,
  3084. pC: null,
  3085. sD: "",
  3086. wk: null,
  3087. HV: [
  3088. ["requestFullscreen", "exitFullscreen", "fullscreenchange", "fullscreenEnabled", "fullscreenElement"],
  3089. ["requestFullScreen", "exitFullScreen", "fullScreenchange", "fullScreenEnabled", "fullScreenElement"],
  3090. ["webkitRequestFullScreen", "webkitCancelFullScreen", "webkitfullscreenchange", "webkitIsFullScreen", "webkitCurrentFullScreenElement"],
  3091. ["mozRequestFullScreen", "mozCancelFullScreen", "mozfullscreenchange", "mozFullScreen", "mozFullScreenElement"],
  3092. ["msRequestFullscreen",
  3093. "msExitFullscreen", "MSFullscreenChange", "msFullscreenEnabled", "msFullscreenElement"
  3094. ]
  3095. ],
  3096. da: function() {
  3097. this.wk = {};
  3098. var a, c, d = this.HV,
  3099. e;
  3100. a = 0;
  3101. for (l = d.length; a < l; a++)
  3102. if ((c = d[a]) && c[1] in document) {
  3103. a = 0;
  3104. for (e = c.length; a < e; a++) this.wk[d[0][a]] = c[a];
  3105. break
  3106. }
  3107. this.kw = void 0 != this.wk.requestFullscreen;
  3108. this.sD = "ontouchstart" in window ? "touchstart" : "mousedown"
  3109. },
  3110. fullScreen: function() {
  3111. return this.kw && document[this.wk.fullscreenEnabled]
  3112. },
  3113. NO: function(a, c) {
  3114. if (this.kw) {
  3115. a = a || document.documentElement;
  3116. a[this.wk.requestFullscreen]();
  3117. if (c) {
  3118. var d = this.wk.Xaa;
  3119. this.pC && document.removeEventListener(d, this.pC);
  3120. this.pC = c;
  3121. b.Ga(document, d, c, !1)
  3122. }
  3123. return a[this.wk.requestFullscreen]()
  3124. }
  3125. },
  3126. Gaa: function() {
  3127. return this.kw ? document[this.wk.exitFullscreen]() : !0
  3128. },
  3129. uZ: function(a, c) {
  3130. function d() {
  3131. f.NO(a, c);
  3132. e.removeEventListener(f.sD, d)
  3133. }
  3134. a = a || document.body;
  3135. var e = b.Va || a,
  3136. f = this;
  3137. this.NO(a, c);
  3138. b.Ga(e, this.sD, d)
  3139. }
  3140. };
  3141. b.screen.da();
  3142. b.Sj = {
  3143. MP: C(0, 0),
  3144. NP: C(0, 0),
  3145. top: C(0, 0),
  3146. Aw: C(0, 0),
  3147. hM: C(0, 0),
  3148. bottom: C(0, 0),
  3149. ks: C(0, 0),
  3150. left: C(0, 0),
  3151. right: C(0, 0),
  3152. width: 0,
  3153. height: 0,
  3154. da: function(a) {
  3155. var c = this.width = a.width,
  3156. d = this.height = a.height,
  3157. e = a.x;
  3158. a = a.y;
  3159. var f = a + d,
  3160. g = e + c;
  3161. this.MP.x = e;
  3162. this.MP.y = f;
  3163. this.NP.x = g;
  3164. this.NP.y = f;
  3165. this.top.x = e + c / 2;
  3166. this.top.y = f;
  3167. this.Aw.x = e;
  3168. this.Aw.y = a;
  3169. this.hM.x = g;
  3170. this.hM.y = a;
  3171. this.bottom.x = e + c / 2;
  3172. this.bottom.y = a;
  3173. this.ks.x = e + c / 2;
  3174. this.ks.y = a + d / 2;
  3175. this.left.x = e;
  3176. this.left.y = a + d / 2;
  3177. this.right.x = g;
  3178. this.right.y = a + d / 2
  3179. }
  3180. };
  3181. b.hU = -90;
  3182. b.iU = 90;
  3183. b.jU = 180;
  3184. b.E8 = 0;
  3185. b.PN = {
  3186. po: !1,
  3187. rK: !1,
  3188. PK: C(0, 0),
  3189. zX: C(0, 0),
  3190. QK: [],
  3191. qC: 0,
  3192. Uk: [],
  3193. tD: {},
  3194. eo: 0,
  3195. XB: 5,
  3196. wu: !1,
  3197. xu: 1 / 30,
  3198. HI: 1,
  3199. Fl: 0,
  3200. GA: null,
  3201. vu: null,
  3202. uW: function() {
  3203. for (var a = this.eo, c = 0; c < this.XB; c++) {
  3204. if (!(a & 1)) return this.eo |= 1 << c, c;
  3205. a >>= 1
  3206. }
  3207. return -1
  3208. },
  3209. GX: function(a) {
  3210. 0 > a || a >= this.XB || (a = ~(1 << a), this.eo &= a)
  3211. },
  3212. zk: null,
  3213. SE: function(a) {
  3214. for (var c, d, e, f = [], g = this.tD, h = 0, k = a.length; h < k; h++) c = a[h], e = c.hh, d = g[e], null == d && (d = this.uW(), -1 == d ? b.log(b.e.A1, d) : (c = this.Uk[d] = c, g[e] = d, f.push(c)));
  3215. 0 < f.length && (this.zk.Mu(f), a = new b.mg(f), a.sk = b.mg.hn.Ey, b.ra.dispatchEvent(a))
  3216. },
  3217. TE: function(a) {
  3218. for (var c, d, e = [], f = this.Uk, g = 0, h = a.length; g < h; g++) c = a[g], d = c.hh, d = this.tD[d], null != d && f[d] && (f[d].VC(c.Cd), f[d].uo(c.oi), e.push(f[d]));
  3219. 0 < e.length && (this.zk.Mu(e), a = new b.mg(e), a.sk = b.mg.hn.lz, b.ra.dispatchEvent(a))
  3220. },
  3221. $w: function(a) {
  3222. a = this.mN(a);
  3223. 0 < a.length && (this.zk.Mu(a), a = new b.mg(a), a.sk = b.mg.hn.Vy, b.ra.dispatchEvent(a))
  3224. },
  3225. zN: function(a) {
  3226. a = this.mN(a);
  3227. 0 < a.length && (this.zk.Mu(a), a = new b.mg(a), a.sk = b.mg.hn.Ly, b.ra.dispatchEvent(a))
  3228. },
  3229. mN: function(a) {
  3230. for (var c, d, e, f = [], g = this.Uk, h = this.tD,
  3231. k = 0, m = a.length; k < m; k++) c = a[k], e = c.hh, d = h[e], null != d && g[d] && (g[d].VC(c.Cd), g[d].uo(c.oi), f.push(g[d]), this.GX(d), delete h[e]);
  3232. return f
  3233. },
  3234. Fh: function(a) {
  3235. var c = document.documentElement,
  3236. d = window,
  3237. e = null,
  3238. e = "function" === typeof a.getBoundingClientRect ? a.getBoundingClientRect() : a instanceof HTMLCanvasElement ? {
  3239. left: 0,
  3240. top: 0,
  3241. width: a.width,
  3242. height: a.height
  3243. } : {
  3244. left: 0,
  3245. top: 0,
  3246. width: parseInt(a.style.width),
  3247. height: parseInt(a.style.height)
  3248. };
  3249. return {
  3250. left: e.left + d.pageXOffset - c.clientLeft,
  3251. top: e.top + d.pageYOffset - c.clientTop,
  3252. width: e.width,
  3253. height: e.height
  3254. }
  3255. },
  3256. I0: function(a) {
  3257. for (var c = null, d = this.QK, e = a.hh, f = d.length - 1; 0 <= f; f--)
  3258. if (d[f].hh == e) {
  3259. c = d[f];
  3260. break
  3261. }
  3262. c || (c = a);
  3263. return c
  3264. },
  3265. r4: function(a) {
  3266. for (var c = !1, d = this.QK, e = a.hh, f = d.length - 1; 0 <= f; f--)
  3267. if (d[f].hh == e) {
  3268. d[f] = a;
  3269. c = !0;
  3270. break
  3271. }
  3272. c || (50 >= d.length ? d.push(a) : (d[this.qC] = a, this.qC = (this.qC + 1) % 50))
  3273. },
  3274. us: function(a, c, d) {
  3275. var e = this.PK;
  3276. a = this.zk.hE(a, c, d);
  3277. c = new b.jA(a.x, a.y);
  3278. c.uo(e.x, e.y);
  3279. e.x = a.x;
  3280. e.y = a.y;
  3281. return c
  3282. },
  3283. bp: function(a, c, d) {
  3284. var e = this.zX;
  3285. this.zk.pV(a, c);
  3286. c = new b.Pc(d);
  3287. c.f4(a.x, a.y);
  3288. c.ZX(e.x, e.y);
  3289. e.x = a.x;
  3290. e.y = a.y;
  3291. return c
  3292. },
  3293. dp: function(a, c) {
  3294. if (null != a.pageX) return {
  3295. x: a.pageX,
  3296. y: a.pageY
  3297. };
  3298. c.left -= document.body.scrollLeft;
  3299. c.top -= document.body.scrollTop;
  3300. return {
  3301. x: a.clientX,
  3302. y: a.clientY
  3303. }
  3304. },
  3305. Xw: function(a, c) {
  3306. for (var d = [], e = this.zk, f, g, h = this.PK, k = a.changedTouches.length, m = 0; m < k; m++)
  3307. if (f = a.changedTouches[m]) {
  3308. var p;
  3309. p = b.hb.Jp === b.hb.wm ? e.hE(f.pageX, f.pageY, c) : e.hE(f.clientX, f.clientY, c);
  3310. null != f.identifier ? (f = new b.jA(p.x, p.y, f.identifier), g = this.I0(f).ts(), f.uo(g.x, g.y), this.r4(f)) : (f = new b.jA(p.x,
  3311. p.y), f.uo(h.x, h.y));
  3312. h.x = p.x;
  3313. h.y = p.y;
  3314. d.push(f)
  3315. }
  3316. return d
  3317. },
  3318. l3: function(a) {
  3319. if (!this.rK) {
  3320. var c = this.zk = b.view,
  3321. d = this,
  3322. e = "touches" in b.hb.aE;
  3323. "mouse" in b.hb.aE && (b.Ga(window, "mousedown", function() {
  3324. d.po = !0
  3325. }, !1), b.Ga(window, "mouseup", function(c) {
  3326. var f = d.po;
  3327. d.po = !1;
  3328. if (f) {
  3329. var f = d.Fh(a),
  3330. g = d.dp(c, f);
  3331. b.EO(new b.xH(f.left, f.top, f.width, f.height), g) || (e || d.$w([d.us(g.x, g.y, f)]), f = d.bp(g, f, b.Pc.tA), f.Wm(c.button), b.ra.dispatchEvent(f))
  3332. }
  3333. }, !1), b.Ga(a, "mousedown", function(c) {
  3334. d.po = !0;
  3335. var f = d.Fh(a),
  3336. g = d.dp(c, f);
  3337. e || d.SE([d.us(g.x,
  3338. g.y, f)]);
  3339. f = d.bp(g, f, b.Pc.KG);
  3340. f.Wm(c.button);
  3341. b.ra.dispatchEvent(f);
  3342. c.stopPropagation();
  3343. c.preventDefault();
  3344. a.focus()
  3345. }, !1), b.Ga(a, "mouseup", function(c) {
  3346. d.po = !1;
  3347. var f = d.Fh(a),
  3348. g = d.dp(c, f);
  3349. e || d.$w([d.us(g.x, g.y, f)]);
  3350. f = d.bp(g, f, b.Pc.tA);
  3351. f.Wm(c.button);
  3352. b.ra.dispatchEvent(f);
  3353. c.stopPropagation();
  3354. c.preventDefault()
  3355. }, !1), b.Ga(a, "mousemove", function(c) {
  3356. var f = d.Fh(a),
  3357. g = d.dp(c, f);
  3358. e || d.TE([d.us(g.x, g.y, f)]);
  3359. f = d.bp(g, f, b.Pc.$G);
  3360. d.po ? f.Wm(c.button) : f.Wm(null);
  3361. b.ra.dispatchEvent(f);
  3362. c.stopPropagation();
  3363. c.preventDefault()
  3364. }, !1), b.Ga(a, "mousewheel", function(c) {
  3365. var e = d.Fh(a),
  3366. f = d.dp(c, e),
  3367. e = d.bp(f, e, b.Pc.Mz);
  3368. e.Wm(c.button);
  3369. e.uP(0, c.wheelDelta);
  3370. b.ra.dispatchEvent(e);
  3371. c.stopPropagation();
  3372. c.preventDefault()
  3373. }, !1), b.Ga(a, "DOMMouseScroll", function(c) {
  3374. var e = d.Fh(a),
  3375. f = d.dp(c, e),
  3376. e = d.bp(f, e, b.Pc.Mz);
  3377. e.Wm(c.button);
  3378. e.uP(0, -120 * c.detail);
  3379. b.ra.dispatchEvent(e);
  3380. c.stopPropagation();
  3381. c.preventDefault()
  3382. }, !1));
  3383. if (window.navigator.msPointerEnabled) {
  3384. var f = {
  3385. MSPointerDown: d.SE,
  3386. MSPointerMove: d.TE,
  3387. MSPointerUp: d.$w,
  3388. MSPointerCancel: d.zN
  3389. },
  3390. g;
  3391. for (g in f)(function(c,
  3392. e) {
  3393. b.Ga(a, c, function(c) {
  3394. var f = d.Fh(a);
  3395. f.left -= document.documentElement.scrollLeft;
  3396. f.top -= document.documentElement.scrollTop;
  3397. e.call(d, [d.us(c.clientX, c.clientY, f)]);
  3398. c.stopPropagation()
  3399. }, !1)
  3400. })(g, f[g])
  3401. }
  3402. e && (b.Ga(a, "touchstart", function(c) {
  3403. if (c.changedTouches) {
  3404. var e = d.Fh(a);
  3405. e.left -= document.body.scrollLeft;
  3406. e.top -= document.body.scrollTop;
  3407. d.SE(d.Xw(c, e));
  3408. c.stopPropagation();
  3409. c.preventDefault();
  3410. a.focus()
  3411. }
  3412. }, !1), b.Ga(a, "touchmove", function(c) {
  3413. if (c.changedTouches) {
  3414. var e = d.Fh(a);
  3415. e.left -= document.body.scrollLeft;
  3416. e.top -= document.body.scrollTop;
  3417. d.TE(d.Xw(c, e));
  3418. c.stopPropagation();
  3419. c.preventDefault()
  3420. }
  3421. }, !1), b.Ga(a, "touchend", function(c) {
  3422. if (c.changedTouches) {
  3423. var e = d.Fh(a);
  3424. e.left -= document.body.scrollLeft;
  3425. e.top -= document.body.scrollTop;
  3426. d.$w(d.Xw(c, e));
  3427. c.stopPropagation();
  3428. c.preventDefault()
  3429. }
  3430. }, !1), b.Ga(a, "touchcancel", function(e) {
  3431. if (e.changedTouches) {
  3432. var f = d.Fh(a);
  3433. f.left -= document.body.scrollLeft;
  3434. f.top -= document.body.scrollTop;
  3435. c.zN(d.Xw(e, f));
  3436. e.stopPropagation();
  3437. e.preventDefault()
  3438. }
  3439. }, !1));
  3440. this.$K();
  3441. this.ZK();
  3442. this.rK = !0
  3443. }
  3444. },
  3445. $K: function() {},
  3446. ZK: function() {},
  3447. update: function(a) {
  3448. this.Fl > this.xu && (this.Fl -= this.xu, b.ra.dispatchEvent(new b.$Q(this.GA)));
  3449. this.Fl += a
  3450. }
  3451. };
  3452. var n = b.PN;
  3453. n.fia = function(a) {
  3454. this.wu !== a && (this.wu = a, a = b.I.$k(), this.wu ? (this.Fl = 0, a.OF(this)) : (this.Fl = 0, a.ot(this)))
  3455. };
  3456. n.gia = function(a) {
  3457. this.xu !== a && (this.xu = a)
  3458. };
  3459. n.$K = function() {
  3460. b.Ga(b.Va, "keydown", function(a) {
  3461. b.ra.dispatchEvent(new b.OG(a.keyCode, !0));
  3462. a.stopPropagation();
  3463. a.preventDefault()
  3464. }, !1);
  3465. b.Ga(b.Va, "keyup", function(a) {
  3466. b.ra.dispatchEvent(new b.OG(a.keyCode, !1));
  3467. a.stopPropagation();
  3468. a.preventDefault()
  3469. }, !1)
  3470. };
  3471. n.ZK = function() {
  3472. var a = window;
  3473. this.GA = new b.dQ;
  3474. this.vu = a.DeviceMotionEvent || a.DeviceOrientationEvent;
  3475. b.hb.wm == b.hb.DG && (this.vu = window.DeviceOrientationEvent);
  3476. b.Ga(a, this.vu == a.DeviceMotionEvent ? "devicemotion" : "deviceorientation", this.SZ.bind(this), !1)
  3477. };
  3478. n.SZ = function(a) {
  3479. var c = window;
  3480. if (this.wu) {
  3481. var d = this.GA;
  3482. if (this.vu == window.DeviceMotionEvent) {
  3483. var e = a.accelerationIncludingGravity;
  3484. d.x = this.HI * e.x * 0.1;
  3485. d.y = this.HI * e.y * 0.1;
  3486. d.z = 0.1 * e.z
  3487. } else d.x = a.gamma / 90 * 0.981, d.y = 0.981 * -(a.beta / 90), d.z = a.alpha / 90 * 0.981;
  3488. d.timestamp = a.timeStamp || Date.now();
  3489. a = d.x;
  3490. c.orientation === b.iU ? (d.x = -d.y, d.y = a) : c.orientation === b.hU ? (d.x = d.y, d.y = -a) : c.orientation === b.jU && (d.x = -d.x, d.y = -d.y)
  3491. }
  3492. };
  3493. delete n;
  3494. b.p6 = function(a, c, d, e, f, g) {
  3495. this.a = a;
  3496. this.b = c;
  3497. this.B = d;
  3498. this.H = e;
  3499. this.Ia = f;
  3500. this.Ja = g
  3501. };
  3502. b.V9 = function(a, c, d, e, f, g) {
  3503. return {
  3504. a: a,
  3505. b: c,
  3506. B: d,
  3507. H: e,
  3508. Ia: f,
  3509. Ja: g
  3510. }
  3511. };
  3512. b.zO = function(a, c) {
  3513. return {
  3514. x: c.a * a.x + c.B * a.y + c.Ia,
  3515. y: c.b * a.x + c.H * a.y + c.Ja
  3516. }
  3517. };
  3518. b.Gk = function(a, c, d) {
  3519. return {
  3520. x: d.a * a + d.B * c + d.Ia,
  3521. y: d.b * a + d.H * c + d.Ja
  3522. }
  3523. };
  3524. b.jka = function(a, c) {
  3525. return {
  3526. width: c.a * a.width + c.B * a.height,
  3527. height: c.b * a.width + c.H * a.height
  3528. }
  3529. };
  3530. b.W9 = function() {
  3531. return {
  3532. a: 1,
  3533. b: 0,
  3534. B: 0,
  3535. H: 1,
  3536. Ia: 0,
  3537. Ja: 0
  3538. }
  3539. };
  3540. b.U9 = function() {
  3541. return {
  3542. a: 1,
  3543. b: 0,
  3544. B: 0,
  3545. H: 1,
  3546. Ia: 0,
  3547. Ja: 0
  3548. }
  3549. };
  3550. b.GF = function(a, c) {
  3551. var d = b.up(a),
  3552. e = b.tp(a),
  3553. f = b.Xs(a),
  3554. g = b.Ys(a),
  3555. h = b.Gk(e, d, c),
  3556. d = b.Gk(f, d, c),
  3557. e = b.Gk(e, g, c),
  3558. k = b.Gk(f, g, c),
  3559. f = Math.min(h.x, d.x, e.x, k.x),
  3560. g = Math.max(h.x, d.x, e.x, k.x),
  3561. m = Math.min(h.y, d.y, e.y, k.y),
  3562. h = Math.max(h.y, d.y, e.y, k.y);
  3563. return O(f, m, g - f, h - m)
  3564. };
  3565. b.AX = function(a, c) {
  3566. var d = b.up(a),
  3567. e = b.tp(a),
  3568. f = b.Xs(a),
  3569. g = b.Ys(a),
  3570. h = b.Gk(e, d, c),
  3571. d = b.Gk(f, d, c),
  3572. e = b.Gk(e, g, c),
  3573. k = b.Gk(f, g, c),
  3574. f = Math.min(h.x, d.x, e.x, k.x),
  3575. g = Math.max(h.x, d.x, e.x, k.x),
  3576. m = Math.min(h.y, d.y, e.y, k.y),
  3577. h = Math.max(h.y, d.y, e.y, k.y);
  3578. a.x = f;
  3579. a.y = m;
  3580. a.width = g - f;
  3581. a.height = h - m;
  3582. return a
  3583. };
  3584. b.bZ = function(a, c, d) {
  3585. return {
  3586. a: a.a,
  3587. b: a.b,
  3588. B: a.B,
  3589. H: a.H,
  3590. Ia: a.Ia + a.a * c + a.B * d,
  3591. Ja: a.Ja + a.b * c + a.H * d
  3592. }
  3593. };
  3594. b.Y9 = function(a, c, d) {
  3595. return {
  3596. a: a.a * c,
  3597. b: a.b * c,
  3598. B: a.B * d,
  3599. H: a.H * d,
  3600. Ia: a.Ia,
  3601. Ja: a.Ja
  3602. }
  3603. };
  3604. b.X9 = function(a, c) {
  3605. var d = Math.sin(c),
  3606. e = Math.cos(c);
  3607. return {
  3608. a: a.a * e + a.B * d,
  3609. b: a.b * e + a.H * d,
  3610. B: a.B * e - a.a * d,
  3611. H: a.H * e - a.b * d,
  3612. Ia: a.Ia,
  3613. Ja: a.Ja
  3614. }
  3615. };
  3616. b.tm = function(a, c) {
  3617. return {
  3618. a: a.a * c.a + a.b * c.B,
  3619. b: a.a * c.b + a.b * c.H,
  3620. B: a.B * c.a + a.H * c.B,
  3621. H: a.B * c.b + a.H * c.H,
  3622. Ia: a.Ia * c.a + a.Ja * c.B + c.Ia,
  3623. Ja: a.Ia * c.b + a.Ja * c.H + c.Ja
  3624. }
  3625. };
  3626. b.T9 = function(a, c) {
  3627. return a.a === c.a && a.b === c.b && a.B === c.B && a.H === c.H && a.Ia === c.Ia && a.Ja === c.Ja
  3628. };
  3629. b.XL = function(a) {
  3630. var c = 1 / (a.a * a.H - a.b * a.B);
  3631. return {
  3632. a: c * a.H,
  3633. b: -c * a.b,
  3634. B: -c * a.B,
  3635. H: c * a.a,
  3636. Ia: c * (a.B * a.Ja - a.H * a.Ia),
  3637. Ja: c * (a.b * a.Ia - a.a * a.Ja)
  3638. }
  3639. };
  3640. b.jH = parseFloat("1.192092896e-07F");
  3641. b.AF = function(a) {
  3642. return C(-a.x, -a.y)
  3643. };
  3644. b.Hi = function(a, c) {
  3645. return C(a.x + c.x, a.y + c.y)
  3646. };
  3647. b.Jd = function(a, c) {
  3648. return C(a.x - c.x, a.y - c.y)
  3649. };
  3650. b.Ii = function(a, c) {
  3651. return C(a.x * c, a.y * c)
  3652. };
  3653. b.vO = function(a, c) {
  3654. return b.Ii(b.Hi(a, c), 0.5)
  3655. };
  3656. b.qp = function(a, c) {
  3657. return a.x * c.x + a.y * c.y
  3658. };
  3659. b.I2 = function(a, c) {
  3660. return a.x * c.y - a.y * c.x
  3661. };
  3662. b.Qx = function(a) {
  3663. return C(-a.y, a.x)
  3664. };
  3665. b.Tga = function(a) {
  3666. return C(a.y, -a.x)
  3667. };
  3668. b.Sga = function(a, c) {
  3669. return b.Ii(c, b.qp(a, c) / b.qp(c, c))
  3670. };
  3671. b.Uga = function(a, c) {
  3672. return C(a.x * c.x - a.y * c.y, a.x * c.y + a.y * c.x)
  3673. };
  3674. b.Xga = function(a, c) {
  3675. return C(a.x * c.x + a.y * c.y, a.y * c.x - a.x * c.y)
  3676. };
  3677. b.tO = function(a) {
  3678. return b.qp(a, a)
  3679. };
  3680. b.sO = function(a, c) {
  3681. return b.tO(b.Jd(a, c))
  3682. };
  3683. b.il = function(a) {
  3684. return Math.sqrt(b.tO(a))
  3685. };
  3686. b.Nga = function(a, c) {
  3687. return b.il(b.Jd(a, c))
  3688. };
  3689. b.Kg = function(a) {
  3690. return b.Ii(a, 1 / b.il(a))
  3691. };
  3692. b.Oga = function(a) {
  3693. return C(Math.cos(a), Math.sin(a))
  3694. };
  3695. b.L2 = function(a) {
  3696. return Math.atan2(a.y, a.x)
  3697. };
  3698. b.Vc = function(a, c, d) {
  3699. if (c > d) {
  3700. var e = c;
  3701. c = d;
  3702. d = e
  3703. }
  3704. return a < c ? c : a < d ? a : d
  3705. };
  3706. b.rO = function(a) {
  3707. var c = C(0, 0),
  3708. d = C(1, 1);
  3709. return C(b.Vc(a.x, c.x, d.x), b.Vc(a.y, c.y, d.y))
  3710. };
  3711. b.Pga = function(a) {
  3712. return C(a.width, a.height)
  3713. };
  3714. b.Mga = function(a, c) {
  3715. return C(c(a.x), c(a.y))
  3716. };
  3717. b.uO = function(a, c, d) {
  3718. return b.Hi(b.Ii(a, 1 - d), b.Ii(c, d))
  3719. };
  3720. b.Qga = function(a, c, d) {
  3721. return a.x - d <= c.x && c.x <= a.x + d && a.y - d <= c.y && c.y <= a.y + d ? !0 : !1
  3722. };
  3723. b.Lga = function(a, c) {
  3724. return C(a.x * c.x, a.y * c.y)
  3725. };
  3726. b.Kga = function(a, c) {
  3727. var d = b.Kg(a),
  3728. e = b.Kg(c),
  3729. d = Math.atan2(d.x * e.y - d.y * e.x, b.qp(d, e));
  3730. return Math.abs(d) < b.jH ? 0 : d
  3731. };
  3732. b.Jga = function(a, c) {
  3733. var d = Math.acos(b.qp(b.Kg(a), b.Kg(c)));
  3734. return Math.abs(d) < b.jH ? 0 : d
  3735. };
  3736. b.K2 = function(a, c, d) {
  3737. a = b.Jd(a, c);
  3738. var e = Math.cos(d);
  3739. d = Math.sin(d);
  3740. var f = a.x;
  3741. a.x = f * e - a.y * d + c.x;
  3742. a.y = f * d + a.y * e + c.y;
  3743. return a
  3744. };
  3745. b.zF = function(a, c, d, e, f) {
  3746. if (a.x == c.x && a.y == c.y || d.x == e.x && d.y == e.y) return !1;
  3747. var g = c.x - a.x;
  3748. c = c.y - a.y;
  3749. var h = e.x - d.x;
  3750. e = e.y - d.y;
  3751. var k = a.x - d.x;
  3752. a = a.y - d.y;
  3753. d = e * g - h * c;
  3754. f.x = h * a - e * k;
  3755. f.y = g * a - c * k;
  3756. if (0 == d) return 0 == f.x || 0 == f.y ? !0 : !1;
  3757. f.x /= d;
  3758. f.y /= d;
  3759. return !0
  3760. };
  3761. b.Wga = function(a, c, d, e) {
  3762. var f = C(0, 0);
  3763. return b.zF(a, c, d, e, f) && 0 <= f.x && 1 >= f.x && 0 <= f.y && 1 >= f.y ? !0 : !1
  3764. };
  3765. b.Rga = function(a, c, d, e) {
  3766. var f = C(0, 0);
  3767. return b.zF(a, c, d, e, f) ? (d = C(0, 0), d.x = a.x + f.x * (c.x - a.x), d.y = a.y + f.x * (c.y - a.y), d) : C(0, 0)
  3768. };
  3769. b.Vga = function(a, c) {
  3770. return null != a && null != c ? a.x == c.x && a.y == c.y : !1
  3771. };
  3772. b.Rx = function(a) {
  3773. a.x = 0;
  3774. a.y = 0
  3775. };
  3776. b.Lj = function(a, c) {
  3777. a.x = c.x;
  3778. a.y = c.y
  3779. };
  3780. b.rp = function(a, c) {
  3781. a.x *= c;
  3782. a.y *= c
  3783. };
  3784. b.wO = function(a, c) {
  3785. a.x -= c.x;
  3786. a.y -= c.y
  3787. };
  3788. b.Px = function(a, c) {
  3789. a.x += c.x;
  3790. a.y += c.y
  3791. };
  3792. b.J2 = function(a) {
  3793. b.rp(a, 1 / Math.sqrt(a.x * a.x + a.y * a.y))
  3794. };
  3795. b.tG = function(a, c, d, e, f) {
  3796. f += e;
  3797. if (!(1 >= f)) {
  3798. c *= 0.5;
  3799. for (var g, h = f - 1, k = e; k < f; k++) {
  3800. g = 2 * k;
  3801. var m = C(a[2 * k], a[2 * k + 1]),
  3802. p;
  3803. if (0 === k) p = b.Qx(b.Kg(b.Jd(m, C(a[2 * (k + 1)], a[2 * (k + 1) + 1]))));
  3804. else if (k === h) p = b.Qx(b.Kg(b.Jd(C(a[2 * (k - 1)], a[2 * (k - 1) + 1]), m)));
  3805. else {
  3806. p = C(a[2 * (k - 1)], a[2 * (k - 1) + 1]);
  3807. var r = C(a[2 * (k + 1)], a[2 * (k + 1) + 1]),
  3808. s = b.Kg(b.Jd(r, m)),
  3809. u = b.Kg(b.Jd(p, m)),
  3810. t = Math.acos(b.qp(s, u));
  3811. p = t < b.Sf(70) ? b.Qx(b.Kg(b.vO(s, u))) : t < b.Sf(170) ? b.Kg(b.vO(s, u)) : b.Qx(b.Kg(b.Jd(r, p)))
  3812. }
  3813. p = b.Ii(p, c);
  3814. d[2 * g] = m.x + p.x;
  3815. d[2 * g + 1] = m.y + p.y;
  3816. d[2 * (g + 1)] = m.x -
  3817. p.x;
  3818. d[2 * (g + 1) + 1] = m.y - p.y
  3819. }
  3820. for (k = 0 == e ? 0 : e - 1; k < h; k++) g = 2 * k, a = g + 2, c = new b.Vb(d[2 * g], d[2 * g + 1]), f = new b.Vb(d[2 * (g + 1)], d[2 * (g + 1) + 1]), g = new b.Vb(d[2 * a], d[2 * a]), e = new b.Vb(d[2 * (a + 1)], d[2 * (a + 1) + 1]), c = !b.O5(c.x, c.y, e.x, e.y, f.x, f.y, g.x, g.y), !c.Cs && (0 > c.value || 1 < c.value) && (c.Cs = !0), c.Cs && (d[2 * a] = e.x, d[2 * a + 1] = e.y, d[2 * (a + 1)] = g.x, d[2 * (a + 1) + 1] = g.y)
  3821. }
  3822. };
  3823. b.O5 = function(a, c, d, e, f, g, h, k) {
  3824. if (a == d && c == e || f == h && g == k) return {
  3825. Cs: !1,
  3826. value: 0
  3827. };
  3828. d -= a;
  3829. e -= c;
  3830. f -= a;
  3831. g -= c;
  3832. h -= a;
  3833. k -= c;
  3834. a = Math.sqrt(d * d + e * e);
  3835. d /= a;
  3836. e /= a;
  3837. c = f * d + g * e;
  3838. g = g * d - f * e;
  3839. f = c;
  3840. c = h * d + k * e;
  3841. k = k * d - h * e;
  3842. h = c;
  3843. return g == k ? {
  3844. Cs: !1,
  3845. value: 0
  3846. } : {
  3847. Cs: !0,
  3848. value: (h + (f - h) * k / (k - g)) / a
  3849. }
  3850. };
  3851. b.Pka = function(a) {
  3852. for (var c = 0, d = a.length; c < d; c++) {
  3853. var e = a[(c + 1) % d];
  3854. if (0 < b.I2(b.Jd(e, a[c]), b.Jd(a[(c + 2) % d], e))) return !1
  3855. }
  3856. return !0
  3857. };
  3858. b.I6 = function(a, c) {
  3859. c[2] = c[3] = c[6] = c[7] = c[8] = c[9] = c[11] = c[14] = 0;
  3860. c[10] = c[15] = 1;
  3861. c[0] = a.a;
  3862. c[4] = a.B;
  3863. c[12] = a.Ia;
  3864. c[1] = a.b;
  3865. c[5] = a.H;
  3866. c[13] = a.Ja
  3867. };
  3868. b.d7 = function(a, c) {
  3869. c.a = a[0];
  3870. c.B = a[4];
  3871. c.Ia = a[12];
  3872. c.b = a[1];
  3873. c.H = a[5];
  3874. c.Ja = a[13]
  3875. };
  3876. b.jA = b.oa.extend({
  3877. Cd: null,
  3878. oi: null,
  3879. hh: 0,
  3880. AL: !1,
  3881. Lr: null,
  3882. ctor: function(a, c, d) {
  3883. this.Cd = C(a || 0, c || 0);
  3884. this.hh = d || 0
  3885. },
  3886. ts: function() {
  3887. return {
  3888. x: this.Cd.x,
  3889. y: this.Cd.y
  3890. }
  3891. },
  3892. u0: function() {
  3893. return this.Cd.x
  3894. },
  3895. v0: function() {
  3896. return this.Cd.y
  3897. },
  3898. Fca: function() {
  3899. return {
  3900. x: this.oi.x,
  3901. y: this.oi.y
  3902. }
  3903. },
  3904. Wca: function() {
  3905. return {
  3906. x: this.Lr.x,
  3907. y: this.Lr.y
  3908. }
  3909. },
  3910. AE: function() {
  3911. return b.Jd(this.Cd, this.oi)
  3912. },
  3913. t0: function() {
  3914. return {
  3915. x: this.Cd.x,
  3916. y: this.Cd.y
  3917. }
  3918. },
  3919. Gca: function() {
  3920. return {
  3921. x: this.oi.x,
  3922. y: this.oi.y
  3923. }
  3924. },
  3925. Xca: function() {
  3926. return {
  3927. x: this.Lr.x,
  3928. y: this.Lr.y
  3929. }
  3930. },
  3931. Vba: function() {
  3932. return this.hh
  3933. },
  3934. Wba: function() {
  3935. return this.hh
  3936. },
  3937. Qja: function(a, c, d) {
  3938. this.oi = this.Cd;
  3939. this.Cd = C(c || 0, d || 0);
  3940. this.hh = a;
  3941. this.AL || (this.Lr = C(this.Cd), this.AL = !0)
  3942. },
  3943. VC: function(a, c) {
  3944. void 0 === c ? (this.Cd.x = a.x, this.Cd.y = a.y) : (this.Cd.x = a, this.Cd.y = c)
  3945. },
  3946. uo: function(a, c) {
  3947. this.oi = void 0 === c ? C(a.x, a.y) : C(a || 0, c || 0)
  3948. }
  3949. });
  3950. b.qc = b.oa.extend({
  3951. kc: 0,
  3952. Ql: !1,
  3953. ib: null,
  3954. NC: function(a) {
  3955. this.ib = a
  3956. },
  3957. ctor: function(a) {
  3958. this.kc = a
  3959. },
  3960. OE: function() {
  3961. return this.kc
  3962. },
  3963. stopPropagation: function() {
  3964. this.Ql = !0
  3965. },
  3966. jea: function() {
  3967. return this.Ql
  3968. },
  3969. tba: function() {
  3970. return this.ib
  3971. }
  3972. });
  3973. b.qc.hu = 0;
  3974. b.qc.mn = 1;
  3975. b.qc.cn = 2;
  3976. b.qc.pn = 3;
  3977. b.qc.Kp = 4;
  3978. b.Si = b.qc.extend({
  3979. oB: null,
  3980. NL: null,
  3981. ctor: function(a) {
  3982. b.qc.prototype.ctor.call(this, b.qc.Kp);
  3983. this.oB = a
  3984. },
  3985. setUserData: function(a) {
  3986. this.NL = a
  3987. },
  3988. getUserData: function() {
  3989. return this.NL
  3990. },
  3991. Lba: function() {
  3992. return this.oB
  3993. }
  3994. });
  3995. b.Pc = b.qc.extend({
  3996. NJ: 0,
  3997. RI: 0,
  3998. yh: 0,
  3999. Oe: 0,
  4000. sC: 0,
  4001. tC: 0,
  4002. lL: 0,
  4003. mL: 0,
  4004. ctor: function(a) {
  4005. b.qc.prototype.ctor.call(this, b.qc.pn);
  4006. this.NJ = a
  4007. },
  4008. uP: function(a, c) {
  4009. this.lL = a;
  4010. this.mL = c
  4011. },
  4012. Sca: function() {
  4013. return this.lL
  4014. },
  4015. Tca: function() {
  4016. return this.mL
  4017. },
  4018. f4: function(a, c) {
  4019. this.yh = a;
  4020. this.Oe = c
  4021. },
  4022. ts: function() {
  4023. return {
  4024. x: this.yh,
  4025. y: this.Oe
  4026. }
  4027. },
  4028. t0: function() {
  4029. return {
  4030. x: this.yh,
  4031. y: b.view.On.height - this.Oe
  4032. }
  4033. },
  4034. ZX: function(a, c) {
  4035. this.sC = a;
  4036. this.tC = c
  4037. },
  4038. AE: function() {
  4039. return {
  4040. x: this.yh - this.sC,
  4041. y: this.Oe - this.tC
  4042. }
  4043. },
  4044. xba: function() {
  4045. return this.yh - this.sC
  4046. },
  4047. yba: function() {
  4048. return this.Oe - this.tC
  4049. },
  4050. Wm: function(a) {
  4051. this.RI = a
  4052. },
  4053. fba: function() {
  4054. return this.RI
  4055. },
  4056. u0: function() {
  4057. return this.yh
  4058. },
  4059. v0: function() {
  4060. return this.Oe
  4061. }
  4062. });
  4063. b.Pc.NONE = 0;
  4064. b.Pc.KG = 1;
  4065. b.Pc.tA = 2;
  4066. b.Pc.$G = 3;
  4067. b.Pc.Mz = 4;
  4068. b.Pc.D6 = 0;
  4069. b.Pc.F6 = 2;
  4070. b.Pc.E6 = 1;
  4071. b.Pc.y6 = 3;
  4072. b.Pc.z6 = 4;
  4073. b.Pc.A6 = 5;
  4074. b.Pc.B6 = 6;
  4075. b.Pc.C6 = 7;
  4076. b.mg = b.qc.extend({
  4077. sk: 0,
  4078. Uk: null,
  4079. ctor: function(a) {
  4080. b.qc.prototype.ctor.call(this, b.qc.hu);
  4081. this.Uk = a || []
  4082. },
  4083. Kba: function() {
  4084. return this.sk
  4085. },
  4086. pda: function() {
  4087. return this.Uk
  4088. },
  4089. z9: function(a) {
  4090. this.sk = a
  4091. },
  4092. B9: function(a) {
  4093. this.Uk = a
  4094. }
  4095. });
  4096. b.mg.E7 = 5;
  4097. b.mg.hn = {
  4098. Ey: 0,
  4099. lz: 1,
  4100. Vy: 2,
  4101. Ly: 3
  4102. };
  4103. b.sa = b.oa.extend({
  4104. $B: null,
  4105. kc: 0,
  4106. hi: null,
  4107. mf: !1,
  4108. vk: 0,
  4109. kf: null,
  4110. jc: !1,
  4111. jo: !0,
  4112. ctor: function(a, c, d) {
  4113. this.$B = d;
  4114. this.kc = a || 0;
  4115. this.hi = c || ""
  4116. },
  4117. UC: function(a) {
  4118. this.jc = a
  4119. },
  4120. m9: function() {
  4121. return this.jc
  4122. },
  4123. Dr: function(a) {
  4124. this.mf = a
  4125. },
  4126. OW: function() {
  4127. return this.mf
  4128. },
  4129. k9: function() {
  4130. return this.kc
  4131. },
  4132. h9: function() {
  4133. return this.hi
  4134. },
  4135. OC: function(a) {
  4136. this.vk = a
  4137. },
  4138. g9: function() {
  4139. return this.vk
  4140. },
  4141. Er: function(a) {
  4142. this.kf = a
  4143. },
  4144. i9: function() {
  4145. return this.kf
  4146. },
  4147. Yk: function() {
  4148. return null != this.$B
  4149. },
  4150. j: function() {
  4151. return null
  4152. },
  4153. ve: function(a) {
  4154. this.jo = a
  4155. },
  4156. isEnabled: function() {
  4157. return this.jo
  4158. },
  4159. $x: function() {},
  4160. Ki: function() {}
  4161. });
  4162. b.sa.sU = 0;
  4163. b.sa.ju = 1;
  4164. b.sa.iu = 2;
  4165. b.sa.mn = 3;
  4166. b.sa.pn = 4;
  4167. b.sa.cn = 5;
  4168. b.sa.Kp = 6;
  4169. b.Cq = b.sa.extend({
  4170. ur: null,
  4171. ctor: function(a, c) {
  4172. this.ur = c;
  4173. var d = this;
  4174. b.sa.prototype.ctor.call(this, b.sa.Kp, a, function(a) {
  4175. null != d.ur && d.ur(a)
  4176. })
  4177. },
  4178. Yk: function() {
  4179. return b.sa.prototype.Yk.call(this) && null != this.ur
  4180. },
  4181. j: function() {
  4182. return new b.Cq(this.hi, this.ur)
  4183. }
  4184. });
  4185. b.Cq.create = function(a, c) {
  4186. return new b.Cq(a, c)
  4187. };
  4188. b.ik = b.sa.extend({
  4189. Jx: null,
  4190. Mx: null,
  4191. Kx: null,
  4192. Lx: null,
  4193. ctor: function() {
  4194. var a = this;
  4195. b.sa.prototype.ctor.call(this, b.sa.pn, b.ik.rc, function(c) {
  4196. var d = b.Pc;
  4197. switch (c.NJ) {
  4198. case d.KG:
  4199. a.Jx && a.Jx(c);
  4200. break;
  4201. case d.tA:
  4202. a.Mx && a.Mx(c);
  4203. break;
  4204. case d.$G:
  4205. a.Kx && a.Kx(c);
  4206. break;
  4207. case d.Mz:
  4208. a.Lx && a.Lx(c)
  4209. }
  4210. })
  4211. },
  4212. j: function() {
  4213. var a = new b.ik;
  4214. a.Jx = this.Jx;
  4215. a.Mx = this.Mx;
  4216. a.Kx = this.Kx;
  4217. a.Lx = this.Lx;
  4218. return a
  4219. },
  4220. Yk: function() {
  4221. return !0
  4222. }
  4223. });
  4224. b.ik.rc = "__cc_mouse";
  4225. b.ik.create = function() {
  4226. return new b.ik
  4227. };
  4228. b.Xh = b.sa.extend({
  4229. In: null,
  4230. jt: !1,
  4231. hl: null,
  4232. Os: null,
  4233. Ns: null,
  4234. Ms: null,
  4235. ctor: function() {
  4236. b.sa.prototype.ctor.call(this, b.sa.ju, b.Xh.rc, null);
  4237. this.In = []
  4238. },
  4239. Gja: function(a) {
  4240. this.jt = a
  4241. },
  4242. j: function() {
  4243. var a = new b.Xh;
  4244. a.hl = this.hl;
  4245. a.Os = this.Os;
  4246. a.Ns = this.Ns;
  4247. a.Ms = this.Ms;
  4248. a.jt = this.jt;
  4249. return a
  4250. },
  4251. Yk: function() {
  4252. return this.hl ? !0 : (b.log(b.e.zU), !1)
  4253. }
  4254. });
  4255. b.Xh.rc = "__cc_touch_one_by_one";
  4256. b.Xh.create = function() {
  4257. return new b.Xh
  4258. };
  4259. b.Wh = b.sa.extend({
  4260. pp: null,
  4261. Rs: null,
  4262. Qs: null,
  4263. Ps: null,
  4264. ctor: function() {
  4265. b.sa.prototype.ctor.call(this, b.sa.iu, b.Wh.rc, null)
  4266. },
  4267. j: function() {
  4268. var a = new b.Wh;
  4269. a.pp = this.pp;
  4270. a.Rs = this.Rs;
  4271. a.Qs = this.Qs;
  4272. a.Ps = this.Ps;
  4273. return a
  4274. },
  4275. Yk: function() {
  4276. return null == this.pp && null == this.Rs && null == this.Qs && null == this.Ps ? (b.log(b.e.yU), !1) : !0
  4277. }
  4278. });
  4279. b.Wh.rc = "__cc_touch_all_at_once";
  4280. b.Wh.create = function() {
  4281. return new b.Wh
  4282. };
  4283. b.sa.create = function(a) {
  4284. b.assert(a && a.event, b.e.aR);
  4285. var c = a.event;
  4286. delete a.event;
  4287. var d = null;
  4288. c === b.sa.ju ? d = new b.Xh : c === b.sa.iu ? d = new b.Wh : c === b.sa.pn ? d = new b.ik : c === b.sa.Kp ? (d = new b.Cq(a.y_, a.YD), delete a.y_, delete a.YD) : c === b.sa.mn ? d = new b.hk : c === b.sa.cn && (d = new b.gk(a.YD), delete a.YD);
  4289. for (var e in a) d[e] = a[e];
  4290. return d
  4291. };
  4292. b.pM = function(a) {
  4293. var c, d = a.length,
  4294. e = Array(d);
  4295. for (c = 0; c < d; c += 1) e[c] = a[c];
  4296. return e
  4297. };
  4298. b.AU = b.oa.extend({
  4299. Gf: null,
  4300. Mf: null,
  4301. yN: 0,
  4302. ctor: function() {
  4303. this.Gf = [];
  4304. this.Mf = []
  4305. },
  4306. size: function() {
  4307. return this.Gf.length + this.Mf.length
  4308. },
  4309. empty: function() {
  4310. return 0 === this.Gf.length && 0 === this.Mf.length
  4311. },
  4312. push: function(a) {
  4313. 0 == a.vk ? this.Mf.push(a) : this.Gf.push(a)
  4314. },
  4315. HZ: function() {
  4316. this.Mf.length = 0
  4317. },
  4318. GZ: function() {
  4319. this.Gf.length = 0
  4320. },
  4321. clear: function() {
  4322. this.Mf.length = 0;
  4323. this.Gf.length = 0
  4324. },
  4325. Nba: function() {
  4326. return this.Gf
  4327. },
  4328. Qca: function() {
  4329. return this.Mf
  4330. }
  4331. });
  4332. b.su = function(a) {
  4333. var c = b.qc,
  4334. d = a.kc;
  4335. if (d === c.cn) return b.gk.rc;
  4336. if (d === c.Kp) return a.oB;
  4337. if (d === c.mn) return b.hk.rc;
  4338. if (d === c.pn) return b.ik.rc;
  4339. d === c.hu && b.log(b.e.su);
  4340. return ""
  4341. };
  4342. b.ra = {
  4343. Sy: 0,
  4344. rt: 1,
  4345. Np: 2,
  4346. S6: 3,
  4347. xg: {},
  4348. Ar: {},
  4349. ji: {},
  4350. yv: {},
  4351. bK: {},
  4352. Fo: [],
  4353. Wq: [],
  4354. Ol: 0,
  4355. jo: !1,
  4356. FK: 0,
  4357. NW: [b.Jb.ut, b.Jb.Op],
  4358. Uv: function(a) {
  4359. null != this.ji[a.ta] && this.Wq.push(a);
  4360. a = a.t;
  4361. for (var c = 0, d = a.length; c < d; c++) this.Uv(a[c])
  4362. },
  4363. sp: function(a, c) {
  4364. var d = this.ji[a.ta],
  4365. e, f;
  4366. if (d)
  4367. for (e = 0, f = d.length; e < f; e++) d[e].UC(!0);
  4368. if (!0 === c)
  4369. for (d = a.t, e = 0, f = d.length; e < f; e++) this.sp(d[e], !0)
  4370. },
  4371. Oj: function(a, c) {
  4372. var d = this.ji[a.ta],
  4373. e, f;
  4374. if (d)
  4375. for (e = 0, f = d.length; e < f; e++) d[e].UC(!1);
  4376. this.Uv(a);
  4377. if (!0 === c)
  4378. for (d = a.t, e = 0, f = d.length; e < f; e++) this.Oj(d[e], !0)
  4379. },
  4380. KI: function(a) {
  4381. 0 === this.Ol ? this.TJ(a) : this.Fo.push(a)
  4382. },
  4383. TJ: function(a) {
  4384. var c = a.hi,
  4385. d = this.xg[c];
  4386. d || (d = new b.AU, this.xg[c] = d);
  4387. d.push(a);
  4388. 0 == a.vk ? (this.Lk(c, this.Np), c = a.kf, null == c && b.log(b.e.r_), this.RU(c, a), c.qh && this.Oj(c)) : this.Lk(c, this.rt)
  4389. },
  4390. BB: function(a) {
  4391. return this.xg[a]
  4392. },
  4393. MY: function() {
  4394. if (0 != this.Wq.length) {
  4395. for (var a = this.Wq, c, d, e = this.ji, f = 0, g = a.length; f < g; f++)
  4396. if (c = e[a[f].ta])
  4397. for (var h = 0, k = c.length; h < k; h++)(d = c[h]) && this.Lk(d.hi, this.Np);
  4398. this.Wq.length = 0
  4399. }
  4400. },
  4401. aL: function(a) {
  4402. if (a)
  4403. for (var c, d =
  4404. 0; d < a.length;) c = a[d], c.Dr(!1), null != c.kf && (this.fJ(c.kf, c), c.Er(null)), 0 === this.Ol ? b.Pe(a, c) : ++d
  4405. },
  4406. am: function(a) {
  4407. var c = this.xg[a];
  4408. if (c) {
  4409. var d = c.Gf;
  4410. this.aL(c.Mf);
  4411. this.aL(d);
  4412. delete this.Ar[a];
  4413. this.Ol || (c.clear(), delete this.xg[a])
  4414. }
  4415. for (var d = this.Fo, e, c = 0; c < d.length;)(e = d[c]) && e.hi == a ? b.Pe(d, e) : ++c
  4416. },
  4417. bD: function(a) {
  4418. var c = this.Sy,
  4419. d = this.Ar;
  4420. d[a] && (c = d[a]);
  4421. c != this.Sy && (d[a] = this.Sy, c & this.rt && this.yY(a), c & this.Np && ((c = b.I.cd) ? this.AY(a, c) : d[a] = this.Np))
  4422. },
  4423. AY: function(a, c) {
  4424. var d = this.BB(a);
  4425. if (d) {
  4426. var e = d.Mf;
  4427. e && 0 !== e.length && (this.FK = 0, this.yv = {}, this.JD(c, !0), d.Mf.sort(this.xY))
  4428. }
  4429. },
  4430. xY: function(a, c) {
  4431. var d = b.ra.yv;
  4432. return d[c.kf.ta] - d[a.kf.ta]
  4433. },
  4434. yY: function(a) {
  4435. if (a = this.xg[a]) {
  4436. var c = a.Gf;
  4437. if (c && 0 !== c.length) {
  4438. c.sort(this.zY);
  4439. for (var d = 0, e = c.length; d < e && !(0 <= c[d].vk);)++d;
  4440. a.yN = d
  4441. }
  4442. }
  4443. },
  4444. zY: function(a, c) {
  4445. return a.vk - c.vk
  4446. },
  4447. aC: function(a) {
  4448. if (a = this.xg[a]) {
  4449. var c = a.Gf,
  4450. d = a.Mf,
  4451. e, f;
  4452. if (d)
  4453. for (e = 0; e < d.length;) f = d[e], f.mf ? ++e : b.Pe(d, f);
  4454. if (c)
  4455. for (e = 0; e < c.length;) f = c[e], f.mf ? ++e : b.Pe(c, f);
  4456. d && 0 === d.length && a.HZ();
  4457. c && 0 === c.length &&
  4458. a.GZ()
  4459. }
  4460. },
  4461. rw: function(a) {
  4462. var c = this.Ol;
  4463. b.assert(0 < c, b.e.bR);
  4464. a.kc == b.qc.hu ? (this.aC(b.Xh.rc), this.aC(b.Wh.rc)) : this.aC(b.su(a));
  4465. if (!(1 < c)) {
  4466. b.assert(1 == c, b.e.cR);
  4467. a = this.xg;
  4468. var c = this.Ar,
  4469. d;
  4470. for (d in a) a[d].empty() && (delete c[d], delete a[d]);
  4471. d = this.Fo;
  4472. if (0 !== d.length) {
  4473. a = 0;
  4474. for (c = d.length; a < c; a++) this.TJ(d[a]);
  4475. this.Fo.length = 0
  4476. }
  4477. }
  4478. },
  4479. kX: function(a, c) {
  4480. if (!a.OW) return !1;
  4481. var d = c.event,
  4482. e = c.VO;
  4483. d.NC(a.kf);
  4484. var f = !1,
  4485. g, h = d.sk,
  4486. k = b.mg.hn;
  4487. h == k.Ey ? a.hl && (f = a.hl(e, d)) && a.mf && a.In.push(e) : 0 < a.In.length && -1 != (g = a.In.indexOf(e)) &&
  4488. (f = !0, h === k.lz && a.Os ? a.Os(e, d) : h === k.Vy ? (a.Ns && a.Ns(e, d), a.mf && a.In.splice(g, 1)) : h === k.Ly && (a.Ms && a.Ms(e, d), a.mf && a.In.splice(g, 1)));
  4489. return d.Ql ? (b.ra.rw(d), !0) : f && a.mf && a.jt ? (c.C2 && c.touches.splice(e, 1), !0) : !1
  4490. },
  4491. yV: function(a) {
  4492. this.bD(b.Xh.rc);
  4493. this.bD(b.Wh.rc);
  4494. var c = this.BB(b.Xh.rc),
  4495. d = this.BB(b.Wh.rc);
  4496. if (null != c || null != d) {
  4497. var e = a.Uk,
  4498. f = b.pM(e),
  4499. g = {
  4500. event: a,
  4501. C2: c && d,
  4502. touches: f,
  4503. VO: null
  4504. };
  4505. if (c)
  4506. for (var h = 0; h < e.length; h++)
  4507. if (g.VO = e[h], this.gB(c, this.kX, g), a.Ql) return;
  4508. if (d && 0 < f.length && (this.gB(d, this.mX, {
  4509. event: a,
  4510. touches: f
  4511. }), a.Ql)) return;
  4512. this.rw(a)
  4513. }
  4514. },
  4515. mX: function(a, c) {
  4516. if (!a.mf) return !1;
  4517. var d = b.mg.hn,
  4518. e = c.event,
  4519. f = c.touches,
  4520. g = e.sk;
  4521. e.NC(a.kf);
  4522. g == d.Ey && a.pp ? a.pp(f, e) : g == d.lz && a.Rs ? a.Rs(f, e) : g == d.Vy && a.Qs ? a.Qs(f, e) : g == d.Ly && a.Ps && a.Ps(f, e);
  4523. return e.Ql ? (b.ra.rw(e), !0) : !1
  4524. },
  4525. RU: function(a, c) {
  4526. var d = this.ji[a.ta];
  4527. d || (d = [], this.ji[a.ta] = d);
  4528. d.push(c)
  4529. },
  4530. fJ: function(a, c) {
  4531. var d = this.ji[a.ta];
  4532. d && (b.Pe(d, c), 0 === d.length && delete this.ji[a.ta])
  4533. },
  4534. gB: function(a, c, d) {
  4535. var e = !1,
  4536. f = a.Gf,
  4537. g = a.Mf,
  4538. h = 0,
  4539. k;
  4540. if (f && 0 !== f.length)
  4541. for (; h < a.yN; ++h)
  4542. if (k =
  4543. f[h], k.isEnabled() && !k.jc && k.mf && c(k, d)) {
  4544. e = !0;
  4545. break
  4546. }
  4547. if (g && !e)
  4548. for (a = 0; a < g.length; a++)
  4549. if (k = g[a], k.isEnabled() && !k.jc && k.mf && c(k, d)) {
  4550. e = !0;
  4551. break
  4552. }
  4553. if (f && !e)
  4554. for (; h < f.length && (k = f[h], !k.isEnabled() || k.jc || !k.mf || !c(k, d)); ++h);
  4555. },
  4556. Lk: function(a, c) {
  4557. var d = this.Ar;
  4558. d[a] = null == d[a] ? c : c | d[a]
  4559. },
  4560. JD: function(a, c) {
  4561. var d = a.t,
  4562. e = 0,
  4563. f = d.length,
  4564. g = this.bK,
  4565. h = this.ji;
  4566. if (0 < f) {
  4567. for (var k; e < f; e++)
  4568. if ((k = d[e]) && 0 > k.Bb) this.JD(k, !1);
  4569. else break;
  4570. null != h[a.ta] && (g[a.bj] || (g[a.bj] = []), g[a.bj].push(a.ta));
  4571. for (; e < f; e++)(k = d[e]) && this.JD(k, !1)
  4572. } else null != h[a.ta] && (g[a.bj] || (g[a.bj] = []), g[a.bj].push(a.ta)); if (c) {
  4573. var d = [],
  4574. m;
  4575. for (m in g) d.push(m);
  4576. d.sort(this.BY);
  4577. m = d.length;
  4578. k = this.yv;
  4579. for (e = 0; e < m; e++)
  4580. for (f = g[d[e]], h = 0; h < f.length; h++) k[f[h]] = ++this.FK;
  4581. this.bK = {}
  4582. }
  4583. },
  4584. BY: function(a, c) {
  4585. return a - c
  4586. },
  4587. addListener: function(a, c) {
  4588. b.assert(a && c, b.e.t_);
  4589. if (!(a instanceof b.sa)) b.assert("number" !== typeof c, b.e.u_), a = b.sa.create(a);
  4590. else if (a.mf) {
  4591. b.log(b.e.v_);
  4592. return
  4593. }
  4594. a.Yk() && ("number" == typeof c ? 0 == c ? b.log(b.e.s_) : (a.Er(null), a.OC(c), a.Dr(!0), a.UC(!1), this.KI(a)) :
  4595. (a.Er(c), a.OC(0), a.Dr(!0), this.KI(a)))
  4596. },
  4597. PD: function(a, c) {
  4598. var d = b.Cq.create(a, c);
  4599. this.addListener(d, 1);
  4600. return d
  4601. },
  4602. removeListener: function(a) {
  4603. if (null != a) {
  4604. var c, d = this.xg,
  4605. e;
  4606. for (e in d) {
  4607. var f = d[e],
  4608. g = f.Gf;
  4609. (c = this.bL(f.Mf, a)) ? this.Lk(a.hi, this.Np): (c = this.bL(g, a)) && this.Lk(a.hi, this.rt);
  4610. f.empty() && (delete this.Ar[a.hi], delete d[e]);
  4611. if (c) break
  4612. }
  4613. if (!c)
  4614. for (c = this.Fo, d = 0, e = c.length; d < e; d++)
  4615. if (f = c[d], f == a) {
  4616. b.Pe(c, f);
  4617. break
  4618. }
  4619. }
  4620. },
  4621. bL: function(a, c) {
  4622. if (null == a) return !1;
  4623. for (var d = 0, e = a.length; d < e; d++) {
  4624. var f = a[d];
  4625. if (f ==
  4626. c) return f.Dr(!1), null != f.kf && (this.fJ(f.kf, f), f.Er(null)), 0 == this.Ol && b.Pe(a, f), !0
  4627. }
  4628. return !1
  4629. },
  4630. JO: function(a, c) {
  4631. if (a instanceof b.k) {
  4632. delete this.yv[a.ta];
  4633. b.Pe(this.Wq, a);
  4634. var d = this.ji[a.ta];
  4635. if (d) {
  4636. for (var e = b.pM(d), d = 0; d < e.length; d++) this.removeListener(e[d]);
  4637. e.length = 0;
  4638. e = this.Fo;
  4639. for (d = 0; d < e.length;) {
  4640. var f = e[d];
  4641. f.kf == a ? (f.Er(null), f.Dr(!1), e.splice(d, 1)) : ++d
  4642. }
  4643. if (!0 === c)
  4644. for (e = a.t, d = 0, f = e.length; d < f; d++) this.JO(e[d], !0)
  4645. }
  4646. } else a == b.sa.ju ? this.am(b.Xh.rc) : a == b.sa.iu ? this.am(b.Wh.rc) : a == b.sa.pn ? this.am(b.ik.rc) :
  4647. a == b.sa.cn ? this.am(b.gk.rc) : a == b.sa.mn ? this.am(b.hk.rc) : b.log(b.e.w_)
  4648. },
  4649. Mha: function(a) {
  4650. this.am(a)
  4651. },
  4652. Hha: function() {
  4653. var a = this.xg,
  4654. c = this.NW,
  4655. d;
  4656. for (d in a) - 1 === c.indexOf(d) && this.am(d)
  4657. },
  4658. rja: function(a, c) {
  4659. if (null != a) {
  4660. var d = this.xg,
  4661. e;
  4662. for (e in d) {
  4663. var f = d[e].Gf;
  4664. if (f && -1 != f.indexOf(a)) {
  4665. null != a.kf && b.log(b.e.x_);
  4666. a.vk !== c && (a.OC(c), this.Lk(a.hi, this.rt));
  4667. break
  4668. }
  4669. }
  4670. }
  4671. },
  4672. ve: function(a) {
  4673. this.jo = a
  4674. },
  4675. isEnabled: function() {
  4676. return this.jo
  4677. },
  4678. dispatchEvent: function(a) {
  4679. if (this.jo) {
  4680. this.MY();
  4681. this.Ol++;
  4682. if (!a || !a.OE) throw "event is undefined";
  4683. if (a.kc == b.qc.hu) this.yV(a);
  4684. else {
  4685. var c = b.su(a);
  4686. this.bD(c);
  4687. c = this.xg[c];
  4688. null != c && this.gB(c, this.eX, a);
  4689. this.rw(a)
  4690. }
  4691. this.Ol--
  4692. }
  4693. },
  4694. eX: function(a, c) {
  4695. c.NC(a.kf);
  4696. a.$B(c);
  4697. return c.Ql
  4698. },
  4699. S$: function(a, c) {
  4700. var d = new b.Si(a);
  4701. d.setUserData(c);
  4702. this.dispatchEvent(d)
  4703. }
  4704. };
  4705. b.$Q = b.qc.extend({
  4706. GI: null,
  4707. ctor: function(a) {
  4708. b.qc.prototype.ctor.call(this, b.qc.cn);
  4709. this.GI = a
  4710. }
  4711. });
  4712. b.OG = b.qc.extend({
  4713. PB: 0,
  4714. qK: !1,
  4715. ctor: function(a, c) {
  4716. b.qc.prototype.ctor.call(this, b.qc.mn);
  4717. this.PB = a;
  4718. this.qK = c
  4719. }
  4720. });
  4721. b.gk = b.sa.extend({
  4722. Bv: null,
  4723. ctor: function(a) {
  4724. this.Bv = a;
  4725. var c = this;
  4726. b.sa.prototype.ctor.call(this, b.sa.cn, b.gk.rc, function(a) {
  4727. c.Bv(a.GI, a)
  4728. })
  4729. },
  4730. Yk: function() {
  4731. b.assert(this.Bv, b.e.wU);
  4732. return !0
  4733. },
  4734. j: function() {
  4735. return new b.gk(this.Bv)
  4736. }
  4737. });
  4738. b.gk.rc = "__cc_acceleration";
  4739. b.gk.create = function(a) {
  4740. return new b.gk(a)
  4741. };
  4742. b.hk = b.sa.extend({
  4743. Ks: null,
  4744. Ls: null,
  4745. ctor: function() {
  4746. var a = this;
  4747. b.sa.prototype.ctor.call(this, b.sa.mn, b.hk.rc, function(c) {
  4748. c.qK ? a.Ks && a.Ks(c.PB, c) : a.Ls && a.Ls(c.PB, c)
  4749. })
  4750. },
  4751. j: function() {
  4752. var a = new b.hk;
  4753. a.Ks = this.Ks;
  4754. a.Ls = this.Ls;
  4755. return a
  4756. },
  4757. Yk: function() {
  4758. return null == this.Ks && null == this.Ls ? (b.log(b.e.xU), !1) : !0
  4759. }
  4760. });
  4761. b.hk.rc = "__cc_keyboard";
  4762. b.hk.create = function() {
  4763. return new b.hk
  4764. };
  4765. b.F.vA = function() {
  4766. var a = b.k.prototype;
  4767. a.uD = null;
  4768. a.iD = null;
  4769. a.FB = null;
  4770. a.Yi = null;
  4771. a.ctor = function() {
  4772. this.IB();
  4773. var a = new b.ba;
  4774. 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;
  4775. a.c[10] = a.c[15] = 1;
  4776. this.uD = a;
  4777. this.FB = 0;
  4778. this.iD = new b.ba
  4779. };
  4780. a.Ha = function() {
  4781. !1 === this.xj && (this.xj = this.nv = !0)
  4782. };
  4783. a.R = function() {
  4784. if (this.lc) {
  4785. var a = b.l,
  4786. d, e = b.Pb;
  4787. e.stack.push(e.top);
  4788. b.Gj(this.iD, e.top);
  4789. e.top = this.iD;
  4790. var f = this.grid;
  4791. f && f.kk && f.is();
  4792. this.transform();
  4793. var g = this.t;
  4794. if (g && 0 < g.length) {
  4795. var h = g.length;
  4796. this.Wc();
  4797. for (d = 0; d <
  4798. h; d++)
  4799. if (g[d] && 0 > g[d].Bb) g[d].R();
  4800. else break;
  4801. for (this.Y(a); d < h; d++) g[d] && g[d].R()
  4802. } else this.Y(a);
  4803. this.arrivalOrder = 0;
  4804. f && f.kk && f.fs(this);
  4805. e.top = e.stack.pop()
  4806. }
  4807. };
  4808. a.transform = function() {
  4809. var a = this.uD,
  4810. d = b.Pb.top,
  4811. e = this.np(),
  4812. f = a.c;
  4813. f[0] = e.a;
  4814. f[4] = e.B;
  4815. f[12] = e.Ia;
  4816. f[1] = e.b;
  4817. f[5] = e.H;
  4818. f[13] = e.Ja;
  4819. f[14] = this.$r;
  4820. b.Ei(d, d, a);
  4821. null == this.Yi || null != this.grid && this.grid.vf() || (a = this.Ab.x, d = this.Ab.y, 0 !== a || 0 !== d ? (b.Qz || (a |= 0, d |= 0), b.jp(a, d), this.Yi.Is(), b.jp(-a, -d)) : this.Yi.Is())
  4822. };
  4823. a.zi = a.hW
  4824. };
  4825. b.F.yz = function() {
  4826. var a = b.k.prototype;
  4827. b.i(a, "x", a.Gd, a.kP);
  4828. b.i(a, "y", a.tf, a.lP);
  4829. b.i(a, "width", a.eh, a.rj);
  4830. b.i(a, "height", a.yk, a.qj);
  4831. b.i(a, "anchorX", a.QV, a.KC);
  4832. b.i(a, "anchorY", a.RV, a.LC);
  4833. b.i(a, "skewX", a.S0, a.x4);
  4834. b.i(a, "skewY", a.T0, a.y4);
  4835. b.i(a, "zIndex", a.s0, a.hd);
  4836. b.i(a, "vertexZ", a.b1, a.K4);
  4837. b.i(a, "rotation", a.L0, a.$F);
  4838. b.i(a, "rotationX", a.N0, a.v4);
  4839. b.i(a, "rotationY", a.O0, a.w4);
  4840. b.i(a, "scale", a.P0, a.Li);
  4841. b.i(a, "scaleX", a.kN, a.bt);
  4842. b.i(a, "scaleY", a.lN, a.ct);
  4843. b.i(a, "children", a.V_);
  4844. b.i(a, "childrenCount", a.W_);
  4845. b.i(a, "parent", a.getParent, a.jP);
  4846. b.i(a, "visible", a.L1, a.ry);
  4847. b.i(a, "running", a.J1);
  4848. b.i(a, "ignoreAnchor", a.G1, a.dx);
  4849. b.i(a, "actionManager", a.Mw, a.WO);
  4850. b.i(a, "scheduler", a.$k, a.tP);
  4851. b.i(a, "shaderProgram", a.JE, a.bG);
  4852. b.i(a, "glServerState", a.j0, a.c4);
  4853. b.i(a, "opacity", a.Ig, a.Sa);
  4854. b.i(a, "opacityModifyRGB", a.Wf, a.Ue);
  4855. b.i(a, "cascadeOpacity", a.SN, a.$O);
  4856. b.i(a, "color", a.Hg, a.cb);
  4857. b.i(a, "cascadeColor", a.RN, a.ZO)
  4858. };
  4859. b.dH = -1;
  4860. b.NF = 1;
  4861. b.k = b.oa.extend({
  4862. Bb: 0,
  4863. bj: 0,
  4864. $r: 0,
  4865. oj: 0,
  4866. cm: 0,
  4867. ka: 1,
  4868. La: 1,
  4869. wa: null,
  4870. sh: 0,
  4871. th: 0,
  4872. t: null,
  4873. lc: !0,
  4874. Qc: null,
  4875. Ab: null,
  4876. O: null,
  4877. qh: !1,
  4878. Sc: null,
  4879. ej: !1,
  4880. tag: b.dH,
  4881. userData: null,
  4882. userObject: null,
  4883. xj: !0,
  4884. nv: !0,
  4885. tg: !0,
  4886. En: null,
  4887. E9: null,
  4888. lm: null,
  4889. mK: null,
  4890. Yd: !1,
  4891. Eb: null,
  4892. arrivalOrder: 0,
  4893. rg: null,
  4894. Nf: null,
  4895. d9: null,
  4896. kK: !1,
  4897. Fq: !1,
  4898. yu: null,
  4899. ok: null,
  4900. OB: !1,
  4901. to: 0,
  4902. Rv: 0,
  4903. vb: "Node",
  4904. $C: !1,
  4905. qo: "",
  4906. fb: 255,
  4907. Bg: 255,
  4908. ya: null,
  4909. Xd: null,
  4910. ah: !1,
  4911. ai: !1,
  4912. G9: !1,
  4913. l9: 0,
  4914. IB: function() {
  4915. this.Qc = C(0, 0);
  4916. this.Ab = C(0, 0);
  4917. this.O = N(0, 0);
  4918. this.wa = C(0, 0);
  4919. this.t = [];
  4920. this.lm = {
  4921. a: 1,
  4922. b: 0,
  4923. B: 0,
  4924. H: 1,
  4925. Ia: 0,
  4926. Ja: 0
  4927. };
  4928. var a = b.I;
  4929. this.rg = a.Mw();
  4930. this.Nf = a.$k();
  4931. this.kK = !0;
  4932. this.yu = {
  4933. a: 1,
  4934. b: 0,
  4935. B: 0,
  4936. H: 1,
  4937. Ia: 0,
  4938. Ja: 0
  4939. };
  4940. b.EQ && (this.ok = new b.EQ(this));
  4941. this.Bg = this.fb = 255;
  4942. this.ya = b.color(255, 255, 255, 255);
  4943. this.Xd = b.color(255, 255, 255, 255);
  4944. this.ai = this.ah = !1
  4945. },
  4946. da: function() {
  4947. !1 === this.kK && this.IB();
  4948. return !0
  4949. },
  4950. sg: function(a, c) {
  4951. if (a && 0 !== a.length) {
  4952. var d, e = a.length,
  4953. f;
  4954. d = b.k.zf;
  4955. switch (c) {
  4956. case d.Z:
  4957. for (d = 0; d < e; d++)(f = a[d]) && f.Z();
  4958. break;
  4959. case d.sb:
  4960. for (d = 0; d < e; d++)(f = a[d]) && f.sb();
  4961. break;
  4962. case d.Mh:
  4963. for (d = 0; d < e; d++)(f = a[d]) && f.Mh();
  4964. break;
  4965. case d.Qe:
  4966. for (d =
  4967. 0; d < e; d++)(f = a[d]) && f.Qe();
  4968. break;
  4969. case d.Ze:
  4970. for (d = 0; d < e; d++)(f = a[d]) && f.Ze();
  4971. break;
  4972. case d.Xf:
  4973. for (d = 0; d < e; d++)(f = a[d]) && f.Xf();
  4974. break;
  4975. case d.Wc:
  4976. for (d = 0; d < e; d++)(f = a[d]) && f.Wc();
  4977. break;
  4978. default:
  4979. b.assert(0, b.e.OR)
  4980. }
  4981. }
  4982. },
  4983. Ha: null,
  4984. Ic: function(a) {
  4985. for (var c in a) this[c] = a[c]
  4986. },
  4987. S0: function() {
  4988. return this.sh
  4989. },
  4990. x4: function(a) {
  4991. this.sh = a;
  4992. this.Ha()
  4993. },
  4994. T0: function() {
  4995. return this.th
  4996. },
  4997. y4: function(a) {
  4998. this.th = a;
  4999. this.Ha()
  5000. },
  5001. hd: function(a) {
  5002. this.Bb = a;
  5003. this.Sc && this.Sc.vp(this, a);
  5004. b.ra.Uv(this)
  5005. },
  5006. Vv: function(a) {
  5007. this.Bb = a
  5008. },
  5009. s0: function() {
  5010. return this.Bb
  5011. },
  5012. Ada: function() {
  5013. b.log(b.e.UR);
  5014. return this.Bb
  5015. },
  5016. ika: function(a) {
  5017. b.log(b.e.eS);
  5018. this.hd(a)
  5019. },
  5020. Oia: function(a) {
  5021. this.bj != a && (this.bj = a, b.ra.Uv(this))
  5022. },
  5023. Tba: function() {
  5024. return this.bj
  5025. },
  5026. b1: function() {
  5027. return this.$r
  5028. },
  5029. K4: function(a) {
  5030. this.$r = a
  5031. },
  5032. L0: function() {
  5033. this.oj !== this.cm && b.log(b.e.SR);
  5034. return this.oj
  5035. },
  5036. $F: function(a) {
  5037. this.oj = this.cm = a;
  5038. this.to = 0.017453292519943295 * this.oj;
  5039. this.Rv = 0.017453292519943295 * this.cm;
  5040. this.Ha()
  5041. },
  5042. N0: function() {
  5043. return this.oj
  5044. },
  5045. v4: function(a) {
  5046. this.oj = a;
  5047. this.to = 0.017453292519943295 * this.oj;
  5048. this.Ha()
  5049. },
  5050. O0: function() {
  5051. return this.cm
  5052. },
  5053. w4: function(a) {
  5054. this.cm = a;
  5055. this.Rv = 0.017453292519943295 * this.cm;
  5056. this.Ha()
  5057. },
  5058. P0: function() {
  5059. this.ka !== this.La && b.log(b.e.TR);
  5060. return this.ka
  5061. },
  5062. Li: function(a, c) {
  5063. this.ka = a;
  5064. this.La = c || 0 === c ? c : a;
  5065. this.Ha()
  5066. },
  5067. kN: function() {
  5068. return this.ka
  5069. },
  5070. bt: function(a) {
  5071. this.ka = a;
  5072. this.Ha()
  5073. },
  5074. lN: function() {
  5075. return this.La
  5076. },
  5077. ct: function(a) {
  5078. this.La = a;
  5079. this.Ha()
  5080. },
  5081. P: function(a, c) {
  5082. var d = this.wa;
  5083. void 0 === c ? (d.x = a.x, d.y = a.y) : (d.x = a, d.y = c);
  5084. this.Ha()
  5085. },
  5086. Rw: function() {
  5087. return C(this.wa)
  5088. },
  5089. Gd: function() {
  5090. return this.wa.x
  5091. },
  5092. kP: function(a) {
  5093. this.wa.x = a;
  5094. this.Ha()
  5095. },
  5096. tf: function() {
  5097. return this.wa.y
  5098. },
  5099. lP: function(a) {
  5100. this.wa.y = a;
  5101. this.Ha()
  5102. },
  5103. W_: function() {
  5104. return this.t.length
  5105. },
  5106. V_: function() {
  5107. return this.t
  5108. },
  5109. L1: function() {
  5110. return this.lc
  5111. },
  5112. ry: function(a) {
  5113. this.lc != a && (this.lc = a) && this.Ha()
  5114. },
  5115. $aa: function() {
  5116. return C(this.Qc)
  5117. },
  5118. ll: function(a, c) {
  5119. var d = this.Qc;
  5120. if (void 0 === c) {
  5121. if (a.x === d.x && a.y === d.y) return;
  5122. d.x = a.x;
  5123. d.y = a.y
  5124. } else {
  5125. if (a === d.x && c === d.y) return;
  5126. d.x = a;
  5127. d.y = c
  5128. }
  5129. var e = this.Ab,
  5130. f = this.O;
  5131. e.x = f.width * d.x;
  5132. e.y = f.height * d.y;
  5133. this.Ha()
  5134. },
  5135. f9: function() {
  5136. return this.Qc
  5137. },
  5138. nL: function(a) {
  5139. var c = a.x;
  5140. a = a.y;
  5141. this.Qc.x !== c && (this.Qc.x = c, this.Ab.x = this.O.width * c);
  5142. this.Qc.y !== a && (this.Qc.y = a, this.Ab.y = this.O.height * a);
  5143. this.Ha()
  5144. },
  5145. QV: function() {
  5146. return this.Qc.x
  5147. },
  5148. KC: function(a) {
  5149. this.Qc.x !== a && (this.Qc.x = a, this.Ab.x = this.O.width * a, this.Ha())
  5150. },
  5151. RV: function() {
  5152. return this.Qc.y
  5153. },
  5154. LC: function(a) {
  5155. this.Qc.y !== a && (this.Qc.y = a, this.Ab.y = this.O.height * a, this.Ha())
  5156. },
  5157. Nw: function() {
  5158. return C(this.Ab)
  5159. },
  5160. eh: function() {
  5161. return this.O.width
  5162. },
  5163. rj: function(a) {
  5164. this.O.width = a;
  5165. this.Ab.x = a * this.Qc.x;
  5166. this.Ha()
  5167. },
  5168. yk: function() {
  5169. return this.O.height
  5170. },
  5171. qj: function(a) {
  5172. this.O.height = a;
  5173. this.Ab.y = a * this.Qc.y;
  5174. this.Ha()
  5175. },
  5176. se: function() {
  5177. return N(this.O)
  5178. },
  5179. Kd: function(a, c) {
  5180. var d = this.O;
  5181. if (void 0 === c) {
  5182. if (a.width === d.width && a.height === d.height) return;
  5183. d.width = a.width;
  5184. d.height = a.height
  5185. } else {
  5186. if (a === d.width && c === d.height) return;
  5187. d.width = a;
  5188. d.height = c
  5189. }
  5190. var e = this.Ab,
  5191. f = this.Qc;
  5192. e.x = d.width * f.x;
  5193. e.y = d.height * f.y;
  5194. this.Ha()
  5195. },
  5196. J1: function() {
  5197. return this.qh
  5198. },
  5199. getParent: function() {
  5200. return this.Sc
  5201. },
  5202. jP: function(a) {
  5203. this.Sc = a
  5204. },
  5205. G1: function() {
  5206. return this.ej
  5207. },
  5208. dx: function(a) {
  5209. a != this.ej && (this.ej = a, this.Ha())
  5210. },
  5211. LE: function() {
  5212. return this.tag
  5213. },
  5214. qy: function(a) {
  5215. this.tag = a
  5216. },
  5217. j4: function(a) {
  5218. this.qo = a
  5219. },
  5220. getName: function() {
  5221. return this.qo
  5222. },
  5223. getUserData: function() {
  5224. return this.userData
  5225. },
  5226. setUserData: function(a) {
  5227. this.userData = a
  5228. },
  5229. vda: function() {
  5230. return this.userObject
  5231. },
  5232. fka: function(a) {
  5233. this.userObject != a && (this.userObject = a)
  5234. },
  5235. uca: function() {
  5236. return this.arrivalOrder
  5237. },
  5238. m4: function(a) {
  5239. if (NaN == this.arrivalOrder) debugger;
  5240. this.arrivalOrder = a
  5241. },
  5242. Mw: function() {
  5243. this.rg || (this.rg = b.I.Mw());
  5244. return this.rg
  5245. },
  5246. WO: function(a) {
  5247. this.rg != a && (this.it(), this.rg = a)
  5248. },
  5249. $k: function() {
  5250. this.Nf || (this.Nf = b.I.$k());
  5251. return this.Nf
  5252. },
  5253. tP: function(a) {
  5254. this.Nf != a && (this.yy(), this.Nf = a)
  5255. },
  5256. n$: function() {
  5257. b.log(b.e.QR);
  5258. return this.S_()
  5259. },
  5260. S_: function() {
  5261. return b.AX(O(0, 0, this.O.width, this.O.height), this.zi())
  5262. },
  5263. Qe: function() {
  5264. this.it();
  5265. this.yy();
  5266. b.ra.JO(this);
  5267. this.sg(this.t, b.k.zf.Qe)
  5268. },
  5269. Eh: function(a) {
  5270. var c = this.t;
  5271. if (null != c)
  5272. for (var d = 0; d < c.length; d++) {
  5273. var e = c[d];
  5274. if (e && e.tag == a) return e
  5275. }
  5276. return null
  5277. },
  5278. lba: function(a) {
  5279. if (!a) return b.log("Invalid name"),
  5280. null;
  5281. for (var c = this.t, d = 0, e = c.length; d < e; d++)
  5282. if (c[d].qo == a) return c[d];
  5283. return null
  5284. },
  5285. X: function(a, c, d) {
  5286. c = void 0 === c ? a.Bb : c;
  5287. var e, f = !1;
  5288. switch (typeof d) {
  5289. case "undefined":
  5290. d = void 0;
  5291. e = a.qo;
  5292. break;
  5293. case "string":
  5294. e = d;
  5295. d = void 0;
  5296. break;
  5297. case "number":
  5298. f = !0, e = ""
  5299. }
  5300. b.assert(a, b.e.PR);
  5301. b.assert(null === a.Sc, "child already added. It can't be added again");
  5302. this.YY(a, c, d, e, f)
  5303. },
  5304. YY: function(a, c, d, e, f) {
  5305. this.t || (this.t = []);
  5306. this.JW(a, c);
  5307. f ? a.qy(d) : a.j4(e);
  5308. a.jP(this);
  5309. a.m4(b.NF++);
  5310. this.qh && (a.Z(), this.OB && a.Mh());
  5311. this.ah && this.LJ();
  5312. this.ai && this.MJ()
  5313. },
  5314. IF: function(a) {
  5315. this.Sc && (null == a && (a = !0), this.Sc.removeChild(this, a))
  5316. },
  5317. Nha: function(a) {
  5318. b.log(b.e.ZR);
  5319. this.IF(a)
  5320. },
  5321. removeChild: function(a, c) {
  5322. 0 !== this.t.length && (null == c && (c = !0), -1 < this.t.indexOf(a) && this.uV(a, c), this.Ha())
  5323. },
  5324. Wx: function(a, c) {
  5325. a === b.dH && b.log(b.e.XR);
  5326. var d = this.Eh(a);
  5327. null == d ? b.log(b.e.YR, a) : this.removeChild(d, c)
  5328. },
  5329. Fha: function(a) {
  5330. b.log(b.e.WR);
  5331. this.Lg(a)
  5332. },
  5333. Lg: function(a) {
  5334. var c = this.t;
  5335. if (null != c) {
  5336. null == a && (a = !0);
  5337. for (var d = 0; d < c.length; d++) {
  5338. var e = c[d];
  5339. e && (this.qh && (e.Xf(),
  5340. e.sb()), a && e.Qe(), e.parent = null)
  5341. }
  5342. this.t.length = 0
  5343. }
  5344. },
  5345. uV: function(a, c) {
  5346. this.qh && (a.Xf(), a.sb());
  5347. c && a.Qe();
  5348. a.parent = null;
  5349. b.Pe(this.t, a)
  5350. },
  5351. JW: function(a, c) {
  5352. this.Yd = !0;
  5353. this.t.push(a);
  5354. a.Vv(c)
  5355. },
  5356. vp: function(a, c) {
  5357. b.assert(a, b.e.$R);
  5358. this.Yd = !0;
  5359. a.arrivalOrder = b.NF;
  5360. b.NF++;
  5361. a.Vv(c);
  5362. this.Ha()
  5363. },
  5364. Wc: function() {
  5365. if (this.Yd) {
  5366. var a = this.t,
  5367. c = a.length,
  5368. d, e, f;
  5369. for (d = 1; d < c; d++) {
  5370. f = a[d];
  5371. for (e = d - 1; 0 <= e;) {
  5372. if (f.Bb < a[e].Bb) a[e + 1] = a[e];
  5373. else if (f.Bb === a[e].Bb && f.arrivalOrder < a[e].arrivalOrder) a[e + 1] = a[e];
  5374. else break;
  5375. e--
  5376. }
  5377. a[e + 1] = f
  5378. }
  5379. this.Yd = !1
  5380. }
  5381. },
  5382. Y: function() {},
  5383. xy: function() {
  5384. null != this.Sc && (this.Sc.xy(), this.Sc.transform())
  5385. },
  5386. Z: function() {
  5387. this.OB = !1;
  5388. this.qh = !0;
  5389. this.sg(this.t, b.k.zf.Z);
  5390. this.wp()
  5391. },
  5392. Mh: function() {
  5393. this.OB = !0;
  5394. this.sg(this.t, b.k.zf.Mh)
  5395. },
  5396. Xf: function() {
  5397. this.sg(this.t, b.k.zf.Xf)
  5398. },
  5399. sb: function() {
  5400. this.qh = !1;
  5401. this.pause();
  5402. this.sg(this.t, b.k.zf.sb)
  5403. },
  5404. ea: function(a) {
  5405. b.assert(a, b.e.bS);
  5406. this.actionManager.XY(a, this, !this.qh);
  5407. return a
  5408. },
  5409. it: function() {
  5410. this.actionManager && this.actionManager.HO(this)
  5411. },
  5412. h5: function(a) {
  5413. this.actionManager.GO(a)
  5414. },
  5415. i5: function(a) {
  5416. a === b.dn ? b.log(b.e.fS) : this.actionManager.n3(a, this)
  5417. },
  5418. xE: function(a) {
  5419. return a === b.dn ? (b.log(b.e.RR), null) : this.actionManager.xE(a, this)
  5420. },
  5421. qca: function() {
  5422. return this.actionManager.E2(this)
  5423. },
  5424. H3: function() {
  5425. this.UO(0)
  5426. },
  5427. UO: function(a) {
  5428. this.scheduler.OF(this, a, !this.qh)
  5429. },
  5430. TP: function() {
  5431. this.scheduler.ot(this)
  5432. },
  5433. Um: function(a, c, d, e) {
  5434. c = c || 0;
  5435. b.assert(a, b.e.cS);
  5436. b.assert(0 <= c, b.e.dS);
  5437. d = null == d ? b.qq : d;
  5438. this.scheduler.G3(this, a, c, d, e || 0, !this.qh)
  5439. },
  5440. bia: function(a, c) {
  5441. this.Um(a, 0, 0, c)
  5442. },
  5443. an: function(a) {
  5444. a &&
  5445. this.scheduler.SP(this, a)
  5446. },
  5447. yy: function() {
  5448. this.scheduler.RP(this)
  5449. },
  5450. Wha: function() {
  5451. b.log(b.e.aS);
  5452. this.wp()
  5453. },
  5454. wp: function() {
  5455. this.scheduler.Oj(this);
  5456. this.actionManager && this.actionManager.Oj(this);
  5457. b.ra.Oj(this)
  5458. },
  5459. dha: function() {
  5460. b.log(b.e.VR);
  5461. this.pause()
  5462. },
  5463. pause: function() {
  5464. this.scheduler.sp(this);
  5465. this.actionManager && this.actionManager.sp(this);
  5466. b.ra.sp(this)
  5467. },
  5468. hia: function(a) {
  5469. this.yu = a;
  5470. this.Fq = this.xj = !0
  5471. },
  5472. F0: function() {
  5473. this.nv && (this.mK = b.XL(this.zi()), this.nv = !1);
  5474. return this.mK
  5475. },
  5476. aha: function() {
  5477. return this.F0()
  5478. },
  5479. GE: function() {
  5480. for (var a = this.zi(), c = this.Sc; null != c; c = c.parent) a = b.tm(a, c.zi());
  5481. return a
  5482. },
  5483. Gx: function() {
  5484. return this.GE()
  5485. },
  5486. wN: function() {
  5487. return b.XL(this.GE())
  5488. },
  5489. Tka: function() {
  5490. return this.wN()
  5491. },
  5492. iE: function(a) {
  5493. return b.zO(a, this.wN())
  5494. },
  5495. Fw: function(a) {
  5496. a = a || C(0, 0);
  5497. return b.zO(a, this.GE())
  5498. },
  5499. MZ: function(a) {
  5500. return b.Jd(this.iE(a), this.Ab)
  5501. },
  5502. A$: function(a) {
  5503. a = a || C(0, 0);
  5504. return this.Fw(b.Hi(a, this.Ab))
  5505. },
  5506. Y8: function(a) {
  5507. a = this.Fw(a);
  5508. return b.I.NZ(a)
  5509. },
  5510. B$: function(a) {
  5511. return this.iE(a.ts())
  5512. },
  5513. C$: function(a) {
  5514. a = a.ts();
  5515. a = b.I.LZ(a);
  5516. return this.MZ(a)
  5517. },
  5518. update: function(a) {
  5519. this.ok && !this.ok.Wda() && this.ok.R(a)
  5520. },
  5521. Ze: function() {
  5522. this.sg(this.t, b.k.zf.Ze)
  5523. },
  5524. $x: function() {},
  5525. Ki: function() {},
  5526. Y_: function(a) {
  5527. return this.ok.Y_(a)
  5528. },
  5529. J9: function(a) {
  5530. this.ok.add(a)
  5531. },
  5532. Lha: function(a) {
  5533. return this.ok.remove(a)
  5534. },
  5535. Gha: function() {
  5536. this.ok.Dha()
  5537. },
  5538. grid: null,
  5539. ctor: null,
  5540. R: null,
  5541. transform: null,
  5542. np: function() {
  5543. return this.zi()
  5544. },
  5545. zi: null,
  5546. ti: function() {
  5547. if (!1 === this.tg) {
  5548. this.tg = !0;
  5549. var a = this.En;
  5550. a && a != this && a.ti()
  5551. }
  5552. },
  5553. MC: function(a) {
  5554. if (this.En != a) {
  5555. this.En = a;
  5556. for (var c = this.t, d = 0, e = c.length; d < e; d++) c[d].MC(a)
  5557. }
  5558. },
  5559. Jm: function() {
  5560. this.Yi || (this.Yi = new b.Lp);
  5561. return this.Yi
  5562. },
  5563. ss: function() {
  5564. return this.grid
  5565. },
  5566. d4: function(a) {
  5567. this.grid = a
  5568. },
  5569. JE: function() {
  5570. return this.Eb
  5571. },
  5572. bG: function(a) {
  5573. this.Eb = a
  5574. },
  5575. j0: function() {
  5576. return this.FB
  5577. },
  5578. c4: function(a) {
  5579. this.FB = a
  5580. },
  5581. T_: function() {
  5582. var a = O(0, 0, this.O.width, this.O.height),
  5583. c = this.Gx(),
  5584. a = b.GF(a, this.Gx());
  5585. if (!this.t) return a;
  5586. for (var d = this.t, e = 0; e < d.length; e++) {
  5587. var f = d[e];
  5588. f && f.lc && (f = f.dr(c)) && (a = b.Vx(a, f))
  5589. }
  5590. return a
  5591. },
  5592. dr: function(a) {
  5593. var c =
  5594. O(0, 0, this.O.width, this.O.height);
  5595. a = null == a ? this.zi() : b.tm(this.zi(), a);
  5596. c = b.GF(c, a);
  5597. if (!this.t) return c;
  5598. for (var d = this.t, e = 0; e < d.length; e++) {
  5599. var f = d[e];
  5600. f && f.lc && (f = f.dr(a)) && (c = b.Vx(c, f))
  5601. }
  5602. return c
  5603. },
  5604. hW: function() {
  5605. if (this.xj) {
  5606. var a = this.wa.x,
  5607. c = this.wa.y,
  5608. d = this.Ab.x,
  5609. e = -d,
  5610. f = this.Ab.y,
  5611. g = -f,
  5612. h = this.ka,
  5613. k = this.La;
  5614. this.ej && (a += d, c += f);
  5615. var m = 1,
  5616. p = 0,
  5617. r = 1,
  5618. s = 0;
  5619. if (0 !== this.oj || 0 !== this.cm) m = Math.cos(-this.to), p = Math.sin(-this.to), r = Math.cos(-this.Rv), s = Math.sin(-this.Rv);
  5620. var u = this.sh || this.th;
  5621. u || 0 === d && 0 === f || (a +=
  5622. r * e * h + -p * g * k, c += s * e * h + m * g * k);
  5623. var t = this.lm;
  5624. t.a = r * h;
  5625. t.b = s * h;
  5626. t.B = -p * k;
  5627. t.H = m * k;
  5628. t.Ia = a;
  5629. t.Ja = c;
  5630. u && (t = b.tm({
  5631. a: 1,
  5632. b: Math.tan(b.Sf(this.th)),
  5633. B: Math.tan(b.Sf(this.sh)),
  5634. H: 1,
  5635. Ia: 0,
  5636. Ja: 0
  5637. }, t), 0 !== d || 0 !== f) && (t = b.bZ(t, e, g));
  5638. this.Fq && (t = b.tm(t, this.yu), this.Fq = !1);
  5639. this.lm = t;
  5640. this.xj = !1
  5641. }
  5642. return this.lm
  5643. },
  5644. bc: function() {},
  5645. Ig: function() {
  5646. return this.Bg
  5647. },
  5648. d0: function() {
  5649. return this.fb
  5650. },
  5651. Sa: function(a) {
  5652. this.fb = this.Bg = a;
  5653. var c = 255,
  5654. d = this.Sc;
  5655. d && d.cascadeOpacity && (c = d.fb);
  5656. this.Bc(c);
  5657. this.ya.a = this.Xd.a = a
  5658. },
  5659. Bc: function(a) {
  5660. this.fb = this.Bg *
  5661. a / 255;
  5662. if (this.ai) {
  5663. a = this.t;
  5664. for (var c = 0; c < a.length; c++) {
  5665. var d = a[c];
  5666. d && d.Bc(this.fb)
  5667. }
  5668. }
  5669. },
  5670. SN: function() {
  5671. return this.ai
  5672. },
  5673. $O: function(a) {
  5674. this.ai !== a && ((this.ai = a) ? this.MJ() : this.xV())
  5675. },
  5676. MJ: function() {
  5677. var a = 255,
  5678. c = this.Sc;
  5679. c && c.cascadeOpacity && (a = c.fb);
  5680. this.Bc(a)
  5681. },
  5682. xV: function() {
  5683. this.fb = this.Bg;
  5684. for (var a = this.t, c = 0; c < a.length; c++) {
  5685. var d = a[c];
  5686. d && d.Bc(255)
  5687. }
  5688. },
  5689. Hg: function() {
  5690. var a = this.Xd;
  5691. return b.color(a.r, a.g, a.b, a.a)
  5692. },
  5693. Pw: function() {
  5694. var a = this.ya;
  5695. return b.color(a.r, a.g, a.b, a.a)
  5696. },
  5697. cb: function(a) {
  5698. var c = this.ya,
  5699. d =
  5700. this.Xd;
  5701. c.r = d.r = a.r;
  5702. c.g = d.g = a.g;
  5703. c.b = d.b = a.b;
  5704. a = (a = this.Sc) && a.cascadeColor ? a.Pw() : b.color.WHITE;
  5705. this.Nc(a)
  5706. },
  5707. Nc: function(a) {
  5708. var c = this.ya,
  5709. d = this.Xd;
  5710. c.r = 0 | d.r * a.r / 255;
  5711. c.g = 0 | d.g * a.g / 255;
  5712. c.b = 0 | d.b * a.b / 255;
  5713. if (this.ah)
  5714. for (a = this.t, d = 0; d < a.length; d++) {
  5715. var e = a[d];
  5716. e && e.Nc(c)
  5717. }
  5718. },
  5719. RN: function() {
  5720. return this.ah
  5721. },
  5722. ZO: function(a) {
  5723. this.ah !== a && ((this.ah = a) ? this.LJ() : this.wV())
  5724. },
  5725. LJ: function() {
  5726. var a;
  5727. a = (a = this.Sc) && a.cascadeColor ? a.Pw() : b.color.WHITE;
  5728. this.Nc(a)
  5729. },
  5730. wV: function() {
  5731. var a = this.ya,
  5732. c = this.Xd;
  5733. a.r = c.r;
  5734. a.g = c.g;
  5735. a.b =
  5736. c.b;
  5737. for (var a = this.t, c = b.color.WHITE, d = 0; d < a.length; d++) {
  5738. var e = a[d];
  5739. e && e.Nc(c)
  5740. }
  5741. },
  5742. Ue: function() {},
  5743. Wf: function() {
  5744. return !1
  5745. }
  5746. });
  5747. b.k.create = function() {
  5748. return new b.k
  5749. };
  5750. b.k.zf = {
  5751. Z: 1,
  5752. sb: 2,
  5753. Qe: 3,
  5754. Mh: 4,
  5755. Ze: 5,
  5756. Xf: 6,
  5757. Wc: 7
  5758. };
  5759. b.A === b.Ba ? (n = b.k.prototype, n.ctor = function() {
  5760. this.IB()
  5761. }, n.Ha = function() {
  5762. this.ti();
  5763. !1 === this.xj && (this.xj = this.nv = !0)
  5764. }, n.R = function(a) {
  5765. if (this.lc) {
  5766. a = a || b.l;
  5767. var c, d = this.t,
  5768. e;
  5769. a.save();
  5770. this.transform(a);
  5771. var f = d.length;
  5772. if (0 < f) {
  5773. this.Wc();
  5774. for (c = 0; c < f; c++)
  5775. if (e = d[c], 0 > e.Bb) e.R(a);
  5776. else break;
  5777. for (this.Y(a); c < f; c++) d[c].R(a)
  5778. } else this.Y(a);
  5779. this.tg = !1;
  5780. this.arrivalOrder = 0;
  5781. a.restore()
  5782. }
  5783. }, n.transform = function(a) {
  5784. a = a || b.l;
  5785. var c = b.view,
  5786. d = this.zi();
  5787. a.transform(d.a, d.B, d.b, d.H, d.Ia * c.ka, -d.Ja * c.La)
  5788. }, n.zi = function() {
  5789. if (this.xj) {
  5790. var a =
  5791. this.lm;
  5792. a.Ia = this.wa.x;
  5793. a.Ja = this.wa.y;
  5794. var c = 1,
  5795. d = 0;
  5796. this.oj && (c = Math.cos(this.to), d = Math.sin(this.to));
  5797. a.a = a.H = c;
  5798. a.b = -d;
  5799. a.B = d;
  5800. var e = this.ka,
  5801. f = this.La,
  5802. g = this.Ab.x,
  5803. h = this.Ab.y,
  5804. k = 1E-6 > e && -1E-6 < e ? 1E-6 : e,
  5805. m = 1E-6 > f && -1E-6 < f ? 1E-6 : f;
  5806. if (this.sh || this.th) {
  5807. var p = Math.tan(-this.sh * Math.PI / 180),
  5808. r = Math.tan(-this.th * Math.PI / 180);
  5809. Infinity === p && (p = 99999999);
  5810. Infinity === r && (r = 99999999);
  5811. var s = h * p * k,
  5812. u = g * r * m;
  5813. a.a = c + -d * r;
  5814. a.b = c * p + -d;
  5815. a.B = d + c * r;
  5816. a.H = d * p + c;
  5817. a.Ia += c * s + -d * u;
  5818. a.Ja += d * s + c * u
  5819. }
  5820. if (1 !== e || 1 !== f) a.a *= k, a.B *= k, a.b *= m, a.H *= m;
  5821. a.Ia += c * -g * k + -d * h * m;
  5822. a.Ja -= d * -g * k + c * h * m;
  5823. this.ej && (a.Ia += g, a.Ja += h);
  5824. this.Fq && (this.lm = b.tm(a, this.yu), this.Fq = !1);
  5825. this.xj = !1
  5826. }
  5827. return this.lm
  5828. }, n = null) : (b.assert("function" === typeof b.F.vA, b.e.jd, "BaseNodesWebGL.js"), b.F.vA(), delete b.F.vA);
  5829. b.assert("function" === typeof b.F.yz, b.e.jd, "BaseNodesPropertyDefine.js");
  5830. b.F.yz();
  5831. delete b.F.yz;
  5832. b.k.M7 = 0;
  5833. b.k.O7 = 1;
  5834. b.k.N7 = 2;
  5835. b.k.P7 = 3;
  5836. b.k.L7 = 4;
  5837. b.Qi = b.k.extend({
  5838. textureAtlas: null,
  5839. quadsToDraw: 0,
  5840. mo: 0,
  5841. uK: 0,
  5842. gi: 0,
  5843. jh: 0,
  5844. Il: null,
  5845. Oa: !1,
  5846. p: null,
  5847. kv: !1,
  5848. vb: "AtlasNode",
  5849. ctor: function(a, c, d, e) {
  5850. b.k.prototype.ctor.call(this);
  5851. this.Il = b.color.WHITE;
  5852. this.p = {
  5853. src: b.dc,
  5854. S: b.cc
  5855. };
  5856. this.kv = !1;
  5857. void 0 !== e && this.v1(a, c, d, e)
  5858. },
  5859. Gp: function() {
  5860. b.log(b.e.hQ)
  5861. },
  5862. Hg: function() {
  5863. return this.Oa ? this.Il : b.k.prototype.Hg.call(this)
  5864. },
  5865. Ue: function(a) {
  5866. var c = this.color;
  5867. this.Oa = a;
  5868. this.color = c
  5869. },
  5870. Wf: function() {
  5871. return this.Oa
  5872. },
  5873. Dh: function() {
  5874. return this.p
  5875. },
  5876. Se: function(a, c) {
  5877. this.p = void 0 === c ? a : {
  5878. src: a,
  5879. S: c
  5880. }
  5881. },
  5882. eG: function(a) {
  5883. this.textureAtlas = a
  5884. },
  5885. ME: function() {
  5886. return this.textureAtlas
  5887. },
  5888. Jca: function() {
  5889. return this.quadsToDraw
  5890. },
  5891. sja: function(a) {
  5892. this.quadsToDraw = a
  5893. },
  5894. Sk: null,
  5895. xc: null,
  5896. wD: null,
  5897. Oq: null,
  5898. v1: function(a, c, d, e) {
  5899. if (!a) throw "cc.AtlasNode.initWithTileFile(): title should not be null";
  5900. a = b.Da.Hc(a);
  5901. return this.qa(a, c, d, e)
  5902. },
  5903. qa: null,
  5904. JB: function(a, c, d, e) {
  5905. this.gi = c;
  5906. this.jh = d;
  5907. this.Oa = !0;
  5908. this.xc = a;
  5909. if (!this.xc) return b.log(b.e.yG), !1;
  5910. this.Sk = this.xc;
  5911. this.Gu();
  5912. this.quadsToDraw = e;
  5913. return !0
  5914. },
  5915. KB: function(a, c, d, e) {
  5916. this.gi =
  5917. c;
  5918. this.jh = d;
  5919. this.Il = b.color.WHITE;
  5920. this.Oa = !0;
  5921. this.p.src = b.dc;
  5922. this.p.S = b.cc;
  5923. c = this.Xd;
  5924. this.Oq = new Float32Array([c.r / 255, c.g / 255, c.b / 255, this.Bg / 255]);
  5925. this.textureAtlas = new b.Vh;
  5926. this.textureAtlas.qa(a, e);
  5927. if (!this.textureAtlas) return b.log(b.e.yG), !1;
  5928. this.Qf();
  5929. this.ML();
  5930. this.Gu();
  5931. this.quadsToDraw = e;
  5932. this.shaderProgram = b.Md.nc(b.Oz);
  5933. this.wD = b.l.getUniformLocation(this.shaderProgram.Lm(), "u_color");
  5934. return !0
  5935. },
  5936. Y: null,
  5937. aj: function(a) {
  5938. a = a || b.l;
  5939. b.Js(this);
  5940. b.Hh(this.p.src, this.p.S);
  5941. this.wD && this.Oq && (a.uniform4fv(this.wD,
  5942. this.Oq), this.textureAtlas.HM(this.quadsToDraw))
  5943. },
  5944. cb: null,
  5945. RX: function(a) {
  5946. var c = this.Xd;
  5947. if (c.r != a.r || c.g != a.g || c.b != a.b) {
  5948. c = b.color(a.r, a.g, a.b);
  5949. this.Il = a;
  5950. if (this.Oa) {
  5951. var d = this.fb;
  5952. c.r = c.r * d / 255;
  5953. c.g = c.g * d / 255;
  5954. c.b = c.b * d / 255
  5955. }
  5956. b.k.prototype.cb.call(this, a);
  5957. this.ee()
  5958. }
  5959. },
  5960. ee: function() {
  5961. var a = this.za();
  5962. if (a && this.xc) {
  5963. var c = this.xc.Wa;
  5964. if (c) {
  5965. var d = a.Wa,
  5966. a = O(0, 0, c.width, c.height);
  5967. d instanceof HTMLCanvasElement ? b.Hm(c, this.ya, a, d) : (d = b.Hm(c, this.ya, a), a = new b.aa, a.Kc(d), a.rb(), this.Ya(a))
  5968. }
  5969. }
  5970. },
  5971. SX: function(a) {
  5972. var c =
  5973. b.color(a.r, a.g, a.b);
  5974. this.Il = a;
  5975. var d = this.fb;
  5976. this.Oa && (c.r = c.r * d / 255, c.g = c.g * d / 255, c.b = c.b * d / 255);
  5977. b.k.prototype.cb.call(this, a);
  5978. a = this.ya;
  5979. this.Oq = new Float32Array([a.r / 255, a.g / 255, a.b / 255, d / 255])
  5980. },
  5981. Sa: function() {},
  5982. SC: function(a) {
  5983. b.k.prototype.Sa.call(this, a);
  5984. this.Oa && (this.color = this.Il)
  5985. },
  5986. TC: function(a) {
  5987. b.k.prototype.Sa.call(this, a);
  5988. this.Oa ? this.color = this.Il : (a = this.ya, this.Oq = new Float32Array([a.r / 255, a.g / 255, a.b / 255, this.fb / 255]))
  5989. },
  5990. za: null,
  5991. er: function() {
  5992. return this.Sk
  5993. },
  5994. EB: function() {
  5995. return this.textureAtlas.texture
  5996. },
  5997. Ya: null,
  5998. XC: function(a) {
  5999. this.Sk = a
  6000. },
  6001. YC: function(a) {
  6002. this.textureAtlas.texture = a;
  6003. this.Qf();
  6004. this.ML()
  6005. },
  6006. Gu: null,
  6007. ZU: function() {
  6008. var a = this.texture.se();
  6009. this.uK = 0 | a.height / this.jh;
  6010. this.mo = 0 | a.width / this.gi
  6011. },
  6012. $U: function() {
  6013. var a = this.texture,
  6014. c = a.se();
  6015. this.kv && (c = a.O);
  6016. this.uK = 0 | c.height / this.jh;
  6017. this.mo = 0 | c.width / this.gi
  6018. },
  6019. Qf: function() {
  6020. this.textureAtlas.texture.Ai() || (this.p.src = b.SRC_ALPHA, this.p.S = b.ONE_MINUS_SRC_ALPHA)
  6021. },
  6022. ML: function() {
  6023. this.Oa = this.textureAtlas.texture.Ai()
  6024. },
  6025. PC: function(a) {
  6026. this.kv = a
  6027. }
  6028. });
  6029. n = b.Qi.prototype;
  6030. b.A === b.U ? (n.qa = n.KB, n.Y = n.aj, n.cb = n.SX, n.Sa = n.TC, n.za = n.EB, n.Ya = n.YC, n.Gu = n.$U) : (n.qa = n.JB, n.Y = b.k.prototype.Y, n.cb = n.RX, n.Sa = n.SC, n.za = n.er, n.Ya = n.XC, n.Gu = n.ZU, b.hb.hw || (n.ee = function() {
  6031. var a, c = this.za();
  6032. if (c && this.xc && (a = c.Wa)) {
  6033. var d = this.xc.Wa;
  6034. if (c = b.Da.Ww(d)) d = O(0, 0, d.width, d.height), a instanceof HTMLCanvasElement ? b.Gm(a, c, this.ya, d, a) : (a = b.Gm(a, c, this.ya, d), c = new b.aa, c.Kc(a), c.rb(), this.Ya(c))
  6035. }
  6036. }));
  6037. b.i(n, "opacity", n.Ig, n.Sa);
  6038. b.i(n, "color", n.Hg, n.cb);
  6039. b.i(n, "texture", n.za, n.Ya);
  6040. b.Qi.create = function(a, c, d, e) {
  6041. return new b.Qi(a, c, d, e)
  6042. };
  6043. b.F.BA = function() {
  6044. b.aa = b.oa.extend({
  6045. t9: !0,
  6046. mi: null,
  6047. mj: 0,
  6048. lj: 0,
  6049. qo: "",
  6050. O: null,
  6051. Fi: 0,
  6052. Gi: 0,
  6053. jv: !1,
  6054. co: !1,
  6055. shaderProgram: null,
  6056. wc: !1,
  6057. Wa: null,
  6058. Zd: null,
  6059. url: null,
  6060. gb: null,
  6061. ctor: function() {
  6062. this.O = N(0, 0);
  6063. this.mi = b.aa.yM
  6064. },
  6065. HF: function() {
  6066. this.Zd && b.l.deleteTexture(this.Zd);
  6067. b.T.Ki(this.url)
  6068. },
  6069. bN: function() {
  6070. return this.mi
  6071. },
  6072. dN: function() {
  6073. return this.mj
  6074. },
  6075. cN: function() {
  6076. return this.lj
  6077. },
  6078. getName: function() {
  6079. return this.Zd
  6080. },
  6081. se: function() {
  6082. return N(this.O.width / b.pb(), this.O.height / b.pb())
  6083. },
  6084. eh: function() {
  6085. return this.O.width / b.pb()
  6086. },
  6087. yk: function() {
  6088. return this.O.height / b.pb()
  6089. },
  6090. Z_: function() {
  6091. return this.O
  6092. },
  6093. x0: function() {
  6094. return this.Fi
  6095. },
  6096. g4: function(a) {
  6097. this.Fi = a
  6098. },
  6099. y0: function() {
  6100. return this.Gi
  6101. },
  6102. h4: function(a) {
  6103. this.Gi = a
  6104. },
  6105. JE: function() {
  6106. return this.shaderProgram
  6107. },
  6108. bG: function(a) {
  6109. this.shaderProgram = a
  6110. },
  6111. Ai: function() {
  6112. return this.jv
  6113. },
  6114. j1: function() {
  6115. return this.co
  6116. },
  6117. description: function() {
  6118. return "\x3ccc.Texture2D | Name \x3d " + this.qo + " | Dimensions \x3d " + this.mj + " x " + this.lj + " | Coordinates \x3d (" + this.Fi + ", " + this.Gi + ")\x3e"
  6119. },
  6120. m3: function() {},
  6121. R1: function(a) {
  6122. return a
  6123. },
  6124. Bs: function(a, c, d, e, f) {
  6125. var g = b.aa,
  6126. h = b.l,
  6127. k = h.RGBA,
  6128. m = h.UNSIGNED_BYTE,
  6129. p = d * b.aa.BI[c] / 8;
  6130. 0 === p % 8 ? h.pixelStorei(h.UNPACK_ALIGNMENT, 8) : 0 === p % 4 ? h.pixelStorei(h.UNPACK_ALIGNMENT, 4) : 0 === p % 2 ? h.pixelStorei(h.UNPACK_ALIGNMENT, 2) : h.pixelStorei(h.UNPACK_ALIGNMENT, 1);
  6131. this.Zd = h.createTexture();
  6132. b.te(this);
  6133. h.texParameteri(h.TEXTURE_2D, h.TEXTURE_MIN_FILTER, h.LINEAR);
  6134. h.texParameteri(h.TEXTURE_2D, h.TEXTURE_MAG_FILTER, h.LINEAR);
  6135. h.texParameteri(h.TEXTURE_2D, h.TEXTURE_WRAP_S, h.CLAMP_TO_EDGE);
  6136. h.texParameteri(h.TEXTURE_2D,
  6137. h.TEXTURE_WRAP_T, h.CLAMP_TO_EDGE);
  6138. switch (c) {
  6139. case g.Vi:
  6140. k = h.RGBA;
  6141. break;
  6142. case g.pq:
  6143. k = h.RGB;
  6144. break;
  6145. case g.Tt:
  6146. m = h.UNSIGNED_SHORT_4_4_4_4;
  6147. break;
  6148. case g.St:
  6149. m = h.UNSIGNED_SHORT_5_5_5_1;
  6150. break;
  6151. case g.oq:
  6152. m = h.UNSIGNED_SHORT_5_6_5;
  6153. break;
  6154. case g.rz:
  6155. k = h.LUMINANCE_ALPHA;
  6156. break;
  6157. case g.nq:
  6158. k = h.ALPHA;
  6159. break;
  6160. case g.sz:
  6161. k = h.LUMINANCE;
  6162. break;
  6163. default:
  6164. b.assert(0, b.e.LT)
  6165. }
  6166. h.texImage2D(h.TEXTURE_2D, 0, k, d, e, 0, k, m, a);
  6167. this.O.width = f.width;
  6168. this.O.height = f.height;
  6169. this.mj = d;
  6170. this.lj = e;
  6171. this.mi = c;
  6172. this.Fi = f.width / d;
  6173. this.Gi = f.height / e;
  6174. this.co =
  6175. this.jv = !1;
  6176. this.shaderProgram = b.Md.nc(b.tq);
  6177. return this.wc = !0
  6178. },
  6179. XZ: function(a) {
  6180. var c = [0, this.Gi, this.Fi, this.Gi, 0, 0, this.Fi, 0],
  6181. d = this.mj * this.Fi,
  6182. e = this.lj * this.Gi;
  6183. 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];
  6184. b.Jc(b.Qd | b.tn);
  6185. this.Eb.Oc();
  6186. this.Eb.ft();
  6187. b.te(this);
  6188. d = b.l;
  6189. d.vertexAttribPointer(b.qb, 2, d.FLOAT, !1, 0, a);
  6190. d.vertexAttribPointer(b.zd, 2, d.FLOAT, !1, 0, c);
  6191. d.drawArrays(d.TRIANGLE_STRIP, 0, 4)
  6192. },
  6193. $Z: function(a) {
  6194. var c = [0, this.Gi, this.Fi, this.Gi, 0, 0, this.Fi, 0];
  6195. a = [a.x, a.y, a.x + a.width, a.y, a.x, a.y + a.height,
  6196. a.x + a.width, a.y + a.height
  6197. ];
  6198. b.Jc(b.Qd | b.tn);
  6199. this.Eb.Oc();
  6200. this.Eb.ft();
  6201. b.te(this);
  6202. var d = b.l;
  6203. d.vertexAttribPointer(b.qb, 2, d.FLOAT, !1, 0, a);
  6204. d.vertexAttribPointer(b.zd, 2, d.FLOAT, !1, 0, c);
  6205. d.drawArrays(d.TRIANGLE_STRIP, 0, 4)
  6206. },
  6207. IN: function(a) {
  6208. if (null == a) return b.log(b.e.OT), !1;
  6209. var c = a.d1(),
  6210. d = a.l0(),
  6211. e = b.Ro.rr;
  6212. if (c > e || d > e) return b.log(b.e.PT, c, d, e, e), !1;
  6213. this.wc = !0;
  6214. return this.EW(a, c, d)
  6215. },
  6216. Kc: function(a) {
  6217. a && (this.Zd = b.l.createTexture(), this.Wa = a)
  6218. },
  6219. n0: function() {
  6220. return this.Wa
  6221. },
  6222. H1: function() {
  6223. return this.wc
  6224. },
  6225. rb: function() {
  6226. if (b.Ov) {
  6227. if (!this.Wa) {
  6228. var a =
  6229. b.T.Hd(this.url);
  6230. if (!a) return;
  6231. this.Kc(a)
  6232. }
  6233. this.Wa.width && this.Wa.height && (this.wc = !0, a = b.l, b.te(this), a.pixelStorei(a.UNPACK_ALIGNMENT, 4), a.texImage2D(a.TEXTURE_2D, 0, a.RGBA, a.RGBA, a.UNSIGNED_BYTE, this.Wa), 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 = b.Md.nc(b.tq), b.te(null), a = this.Wa.height,
  6234. this.mj = this.O.width = this.Wa.width, this.lj = this.O.height = a, this.mi = b.aa.Vi, this.Gi = this.Fi = 1, this.co = this.jv = !1, this.Sd())
  6235. }
  6236. },
  6237. sd: function() {
  6238. b.log(b.e.UT);
  6239. return null
  6240. },
  6241. q1: function() {
  6242. b.log(b.e.NT);
  6243. return !1
  6244. },
  6245. s1: function() {
  6246. b.log(b.e.RT);
  6247. return !1
  6248. },
  6249. t1: function() {
  6250. b.log(b.e.TT);
  6251. return !1
  6252. },
  6253. D4: function(a) {
  6254. var c = b.l;
  6255. b.assert(this.mj == b.Xj(this.mj) && this.lj == b.Xj(this.lj) || a.U5 == c.CLAMP_TO_EDGE && a.V5 == c.CLAMP_TO_EDGE, "WebGLRenderingContext.CLAMP_TO_EDGE should be used in NPOT textures");
  6256. b.te(this);
  6257. c.texParameteri(c.TEXTURE_2D,
  6258. c.TEXTURE_MIN_FILTER, a.lga);
  6259. c.texParameteri(c.TEXTURE_2D, c.TEXTURE_MAG_FILTER, a.iga);
  6260. c.texParameteri(c.TEXTURE_2D, c.TEXTURE_WRAP_S, a.U5);
  6261. c.texParameteri(c.TEXTURE_2D, c.TEXTURE_WRAP_T, a.V5)
  6262. },
  6263. M3: function() {
  6264. var a = b.l;
  6265. b.te(this);
  6266. this.co ? a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MIN_FILTER, a.LINEAR_MIPMAP_NEAREST) : a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MIN_FILTER, a.LINEAR);
  6267. a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MAG_FILTER, a.NEAREST)
  6268. },
  6269. PF: function() {
  6270. var a = b.l;
  6271. b.te(this);
  6272. this.co ? a.texParameteri(a.TEXTURE_2D,
  6273. a.TEXTURE_MIN_FILTER, a.NEAREST_MIPMAP_NEAREST) : a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MIN_FILTER, a.NEAREST);
  6274. a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MAG_FILTER, a.NEAREST)
  6275. },
  6276. generateMipmap: function() {
  6277. b.assert(this.mj == b.Xj(this.mj) && this.lj == b.Xj(this.lj), "Mimpap texture only works in POT textures");
  6278. b.te(this);
  6279. b.l.generateMipmap(b.l.TEXTURE_2D);
  6280. this.co = !0
  6281. },
  6282. n5: function() {
  6283. return b.aa.CU[this.mi]
  6284. },
  6285. zZ: function(a) {
  6286. a = a || this.mi;
  6287. var c = b.aa.BI[a];
  6288. if (null != c) return c;
  6289. b.log(b.e.KT, a);
  6290. return -1
  6291. },
  6292. EW: function(a, c,
  6293. d) {
  6294. var e = b.aa,
  6295. f = a.getData(),
  6296. g = null,
  6297. g = null,
  6298. h = a.Ida(),
  6299. k = N(a.d1(), a.l0()),
  6300. m = e.yM,
  6301. p = a.eba();
  6302. h || (8 <= p ? m = e.pq : (b.log(b.e.HT), m = e.oq));
  6303. var r = c * d;
  6304. if (m == e.oq)
  6305. if (h)
  6306. for (f = new Uint16Array(c * d), g = a.getData(), p = 0; p < r; ++p) f[p] = (g[p] >> 0 & 255) >> 3 << 11 | (g[p] >> 8 & 255) >> 2 << 5 | (g[p] >> 16 & 255) >> 3 << 0;
  6307. else
  6308. for (f = new Uint16Array(c * d), g = a.getData(), p = 0; p < r; ++p) f[p] = (g[p] & 255) >> 3 << 11 | (g[p] & 255) >> 2 << 5 | (g[p] & 255) >> 3 << 0;
  6309. else if (m == e.Tt)
  6310. for (f = new Uint16Array(c * d), g = a.getData(), p = 0; p < r; ++p) f[p] = (g[p] >> 0 & 255) >> 4 << 12 | (g[p] >> 8 & 255) >> 4 <<
  6311. 8 | (g[p] >> 16 & 255) >> 4 << 4 | (g[p] >> 24 & 255) >> 4 << 0;
  6312. else if (m == e.St)
  6313. for (f = new Uint16Array(c * d), g = a.getData(), p = 0; p < r; ++p) f[p] = (g[p] >> 0 & 255) >> 3 << 11 | (g[p] >> 8 & 255) >> 3 << 6 | (g[p] >> 16 & 255) >> 3 << 1 | (g[p] >> 24 & 255) >> 7 << 0;
  6314. else if (m == e.nq)
  6315. for (f = new Uint8Array(c * d), g = a.getData(), p = 0; p < r; ++p) f[p] = g >> 24 & 255;
  6316. if (h && m == e.pq)
  6317. for (g = a.getData(), f = new Uint8Array(c * d * 3), p = 0; p < r; ++p) f[3 * p] = g >> 0 & 255, f[3 * p + 1] = g >> 8 & 255, f[3 * p + 2] = g >> 16 & 255;
  6318. this.Bs(f, m, c, d, k);
  6319. a.getData();
  6320. this.jv = a.cea();
  6321. return !0
  6322. },
  6323. $d: function(a, c) {
  6324. this.gb || (this.gb = []);
  6325. this.gb.push({
  6326. Bh: a,
  6327. Uf: c
  6328. })
  6329. },
  6330. q3: function(a) {
  6331. if (this.gb)
  6332. for (var c = this.gb, d = 0; d < c.length; d++) c[d].Uf == a && c.splice(d, 1)
  6333. },
  6334. Sd: function() {
  6335. if (this.gb) {
  6336. for (var a = this.gb, c = 0, d = a.length; c < d; c++) {
  6337. var e = a[c];
  6338. e.Bh.call(e.Uf, this)
  6339. }
  6340. a.length = 0
  6341. }
  6342. }
  6343. })
  6344. };
  6345. b.F.CA = function() {
  6346. var a = b.Vh.prototype;
  6347. a.em = function() {
  6348. var a = b.l;
  6349. this.vc[0] = a.createBuffer();
  6350. this.vc[1] = a.createBuffer();
  6351. this.$l = a.createBuffer();
  6352. this.wv()
  6353. };
  6354. a.wv = function() {
  6355. var a = b.l;
  6356. a.bindBuffer(a.ARRAY_BUFFER, this.$l);
  6357. a.bufferData(a.ARRAY_BUFFER, this.bd, a.DYNAMIC_DRAW);
  6358. a.bindBuffer(a.ELEMENT_ARRAY_BUFFER, this.vc[1]);
  6359. a.bufferData(a.ELEMENT_ARRAY_BUFFER, this.lb, a.STATIC_DRAW)
  6360. };
  6361. a.HM = function(a) {
  6362. var d;
  6363. d = 0;
  6364. if (0 !== a && this.texture && this.texture.wc) {
  6365. var e = b.l;
  6366. b.te(this.texture);
  6367. b.Jc(b.El);
  6368. e.bindBuffer(e.ARRAY_BUFFER,
  6369. this.$l);
  6370. this.dirty && e.bufferData(e.ARRAY_BUFFER, this.bd, e.DYNAMIC_DRAW);
  6371. e.vertexAttribPointer(b.qb, 3, e.FLOAT, !1, 24, 0);
  6372. e.vertexAttribPointer(b.Ce, 4, e.UNSIGNED_BYTE, !0, 24, 12);
  6373. e.vertexAttribPointer(b.zd, 2, e.FLOAT, !1, 24, 16);
  6374. this.dirty && (this.dirty = !1);
  6375. e.bindBuffer(e.ELEMENT_ARRAY_BUFFER, this.vc[1]);
  6376. b.HH ? e.drawElements(e.TRIANGLE_STRIP, 6 * a, e.UNSIGNED_SHORT, 6 * d * this.lb.BYTES_PER_ELEMENT) : e.drawElements(e.TRIANGLES, 6 * a, e.UNSIGNED_SHORT, 6 * d * this.lb.BYTES_PER_ELEMENT);
  6377. b.sf++
  6378. }
  6379. }
  6380. };
  6381. b.F.DA = function() {
  6382. var a = b.Da;
  6383. a.rb = function(a) {
  6384. var d = this.Gc;
  6385. b.Ov || (d = this.qr);
  6386. var e = d[a];
  6387. e || (e = d[a] = new b.aa, e.url = a);
  6388. e.rb()
  6389. };
  6390. a.Hc = function(a, d, e) {
  6391. b.assert(a, b.e.JT);
  6392. var f = this.Gc;
  6393. b.Ov || (f = this.qr);
  6394. var g = f[a] || f[b.T.Gl[a]];
  6395. if (g) return d && d.call(e), g;
  6396. b.T.Hd(a) || (b.T.TI(a) ? b.T.load(a, function() {
  6397. d && d.call(e)
  6398. }) : b.T.Rf[a] = b.T.Gs(a, function(e, f) {
  6399. if (e) return d ? d(e) : e;
  6400. b.Da.rb(a);
  6401. d && d(null, f)
  6402. }));
  6403. g = f[a] = new b.aa;
  6404. g.url = a;
  6405. return g
  6406. };
  6407. delete a
  6408. };
  6409. b.F.Ez = function() {
  6410. var a = b.aa;
  6411. a.X7 = function(a) {
  6412. b.wS = a
  6413. };
  6414. a.Vi = 2;
  6415. a.pq = 3;
  6416. a.oq = 4;
  6417. a.nq = 5;
  6418. a.sz = 6;
  6419. a.rz = 7;
  6420. a.Tt = 8;
  6421. a.St = 7;
  6422. a.iH = 9;
  6423. a.hH = 10;
  6424. a.nS = a.Vi;
  6425. var c = b.aa.CU = {};
  6426. c[a.Vi] = "RGBA8888";
  6427. c[a.pq] = "RGB888";
  6428. c[a.oq] = "RGB565";
  6429. c[a.nq] = "A8";
  6430. c[a.sz] = "I8";
  6431. c[a.rz] = "AI88";
  6432. c[a.Tt] = "RGBA4444";
  6433. c[a.St] = "RGB5A1";
  6434. c[a.iH] = "PVRTC4";
  6435. c[a.hH] = "PVRTC2";
  6436. c = b.aa.BI = {};
  6437. c[a.Vi] = 32;
  6438. c[a.pq] = 24;
  6439. c[a.oq] = 16;
  6440. c[a.nq] = 8;
  6441. c[a.sz] = 8;
  6442. c[a.rz] = 16;
  6443. c[a.Tt] = 16;
  6444. c[a.St] = 16;
  6445. c[a.iH] = 4;
  6446. c[a.hH] = 3;
  6447. c = b.aa.prototype;
  6448. b.i(c, "name", c.getName);
  6449. b.i(c, "pixelFormat", c.bN);
  6450. b.i(c, "pixelsWidth", c.dN);
  6451. b.i(c, "pixelsHeight", c.cN);
  6452. b.i(c, "width", c.eh);
  6453. b.i(c, "height", c.yk);
  6454. a.yM = a.nS
  6455. };
  6456. b.F.Fz = function() {
  6457. var a = b.Vh.prototype;
  6458. b.i(a, "totalQuads", a.vN);
  6459. b.i(a, "capacity", a.UM);
  6460. b.i(a, "quads", a.fN, a.oP)
  6461. };
  6462. b.c6 = 51;
  6463. b.f6 = 19;
  6464. b.h6 = 18;
  6465. b.e6 = 50;
  6466. b.b6 = 34;
  6467. b.Z5 = 35;
  6468. b.a6 = 33;
  6469. b.d6 = 49;
  6470. b.g6 = 17;
  6471. b.wS = !1;
  6472. b.A === b.Ba ? b.aa = b.oa.extend({
  6473. O: null,
  6474. wc: !1,
  6475. Wa: null,
  6476. gb: null,
  6477. url: null,
  6478. ctor: function() {
  6479. this.O = N(0, 0);
  6480. this.wc = !1;
  6481. this.Wa = null
  6482. },
  6483. dN: function() {
  6484. return this.O.width
  6485. },
  6486. cN: function() {
  6487. return this.O.height
  6488. },
  6489. se: function() {
  6490. var a = b.pb();
  6491. return N(this.O.width / a, this.O.height / a)
  6492. },
  6493. eh: function() {
  6494. return this.O.width / b.pb()
  6495. },
  6496. yk: function() {
  6497. return this.O.height / b.pb()
  6498. },
  6499. Z_: function() {
  6500. return this.O
  6501. },
  6502. Kc: function(a) {
  6503. a && (this.Wa = a)
  6504. },
  6505. n0: function() {
  6506. return this.Wa
  6507. },
  6508. H1: function() {
  6509. return this.wc
  6510. },
  6511. rb: function() {
  6512. if (!this.wc) {
  6513. if (!this.Wa) {
  6514. var a =
  6515. b.T.Hd(this.url);
  6516. if (!a) return;
  6517. this.Kc(a)
  6518. }
  6519. this.wc = !0;
  6520. a = this.Wa;
  6521. this.O.width = a.width;
  6522. this.O.height = a.height;
  6523. this.Sd()
  6524. }
  6525. },
  6526. description: function() {
  6527. return "\x3ccc.Texture2D | width \x3d " + this.O.width + " height " + this.O.height + "\x3e"
  6528. },
  6529. Bs: function() {
  6530. return !1
  6531. },
  6532. IN: function() {
  6533. return !1
  6534. },
  6535. sd: function() {
  6536. return !1
  6537. },
  6538. HF: function() {},
  6539. getName: function() {
  6540. return null
  6541. },
  6542. x0: function() {
  6543. return 1
  6544. },
  6545. g4: function() {},
  6546. y0: function() {
  6547. return 1
  6548. },
  6549. h4: function() {},
  6550. bN: function() {
  6551. return null
  6552. },
  6553. JE: function() {
  6554. return null
  6555. },
  6556. bG: function() {},
  6557. Ai: function() {
  6558. return !1
  6559. },
  6560. j1: function() {
  6561. return !1
  6562. },
  6563. m3: function() {},
  6564. R1: function(a) {
  6565. return a
  6566. },
  6567. XZ: function() {},
  6568. $Z: function() {},
  6569. q1: function() {
  6570. b.log(b.e.MT);
  6571. return !1
  6572. },
  6573. s1: function() {
  6574. b.log(b.e.QT);
  6575. return !1
  6576. },
  6577. t1: function() {
  6578. b.log(b.e.ST);
  6579. return !1
  6580. },
  6581. D4: function() {},
  6582. M3: function() {},
  6583. PF: function() {},
  6584. generateMipmap: function() {},
  6585. n5: function() {
  6586. return ""
  6587. },
  6588. zZ: function() {
  6589. return -1
  6590. },
  6591. $d: function(a, c) {
  6592. this.gb || (this.gb = []);
  6593. this.gb.push({
  6594. Bh: a,
  6595. Uf: c
  6596. })
  6597. },
  6598. q3: function(a) {
  6599. if (this.gb)
  6600. for (var c = this.gb, d = 0; d < c.length; d++) c[d].Uf == a && c.splice(d, 1)
  6601. },
  6602. Sd: function() {
  6603. if (this.gb) {
  6604. for (var a =
  6605. this.gb, c = 0, d = a.length; c < d; c++) {
  6606. var e = a[c];
  6607. e.Bh.call(e.Uf, this)
  6608. }
  6609. a.length = 0
  6610. }
  6611. }
  6612. }) : (b.assert("function" === typeof b.F.BA, b.e.jd, "TexturesWebGL.js"), b.F.BA(), delete b.F.BA);
  6613. b.assert("function" === typeof b.F.Ez, b.e.jd, "TexturesPropertyDefine.js");
  6614. b.F.Ez();
  6615. delete b.F.Ez;
  6616. b.Da = {
  6617. Gc: {},
  6618. Qr: {},
  6619. rD: 0 | 1E3 * Math.random(),
  6620. qr: {},
  6621. IW: function() {
  6622. var a, c = this.qr,
  6623. d = this.Gc;
  6624. for (a in c) {
  6625. var e = c[a];
  6626. e.rb();
  6627. d[a] = e
  6628. }
  6629. this.qr = {}
  6630. },
  6631. N9: function() {
  6632. b.log(b.e.s5)
  6633. },
  6634. K9: function() {
  6635. b.log(b.e.q5)
  6636. },
  6637. description: function() {
  6638. return "\x3cTextureCache | Number of textures \x3d " + this.Gc.length + "\x3e"
  6639. },
  6640. Ym: function(a) {
  6641. return this.Gc[a] || this.Gc[b.T.Gl[a]]
  6642. },
  6643. p0: function(a) {
  6644. for (var c in this.Gc)
  6645. if (this.Gc[c] == a) return c;
  6646. return null
  6647. },
  6648. NV: function() {
  6649. this.rD++;
  6650. return "_textureKey_" + this.rD
  6651. },
  6652. Ww: function(a) {
  6653. var c = this.p0(a);
  6654. c || (c = a instanceof HTMLImageElement ? a.src : this.NV());
  6655. this.Qr[c] || (this.Qr[c] = b.Yo(a));
  6656. return this.Qr[c]
  6657. },
  6658. M9: function() {
  6659. b.log(b.e.r5)
  6660. },
  6661. Jha: function() {
  6662. var a = this.Gc,
  6663. c;
  6664. for (c in a) a[c] && a[c].HF();
  6665. this.Gc = {}
  6666. },
  6667. Tha: function(a) {
  6668. if (a) {
  6669. var c = this.Gc,
  6670. d;
  6671. for (d in c) c[d] == a && (c[d].HF(), delete c[d])
  6672. }
  6673. },
  6674. Uha: function(a) {
  6675. null != a && this.Gc[a] && delete this.Gc[a]
  6676. },
  6677. AZ: function(a, c) {
  6678. if (c instanceof b.aa) this.Gc[a] = c;
  6679. else {
  6680. var d = new b.aa;
  6681. d.Kc(c);
  6682. d.rb();
  6683. this.Gc[a] = d
  6684. }
  6685. },
  6686. S9: function(a, c) {
  6687. b.assert(a, b.e.u5);
  6688. if (c && this.Gc[c]) return this.Gc[c];
  6689. var d = new b.aa;
  6690. d.IN(a);
  6691. null != c && null != d ? this.Gc[c] = d : b.log(b.e.t5);
  6692. return d
  6693. },
  6694. aaa: function() {
  6695. var a = 0,
  6696. c = 0,
  6697. d = this.Gc,
  6698. e;
  6699. for (e in d) {
  6700. var f = d[e];
  6701. a++;
  6702. f.Wa instanceof HTMLImageElement ? b.log(b.e.v5, e, f.Wa.src, f.pixelsWidth, f.pixelsHeight) : b.log(b.e.JP, e, f.pixelsWidth, f.pixelsHeight);
  6703. c += f.pixelsWidth * f.pixelsHeight * 4
  6704. }
  6705. d = this.Qr;
  6706. for (e in d) {
  6707. var f = d[e],
  6708. g;
  6709. for (g in f) {
  6710. var h = f[g];
  6711. a++;
  6712. b.log(b.e.JP, e, h.width, h.height);
  6713. c += h.width * h.height * 4
  6714. }
  6715. }
  6716. b.log(b.e.w5, a, c / 1024, (c / 1048576).toFixed(2))
  6717. },
  6718. nk: function() {
  6719. this.Gc = {};
  6720. this.Qr = {};
  6721. this.rD = 0 | 1E3 * Math.random();
  6722. this.qr = {}
  6723. }
  6724. };
  6725. b.A === b.Ba ? (n = b.Da, n.rb = function(a) {
  6726. var c = this.Gc,
  6727. d = c[a];
  6728. d || (d = c[a] = new b.aa, d.url = a);
  6729. d.rb()
  6730. }, n.Hc = function(a, c, d) {
  6731. b.assert(a, b.e.IT);
  6732. var e = this.Gc,
  6733. f = e[a] || e[b.T.Gl[a]];
  6734. if (f) return c && c.call(d), f;
  6735. f = e[a] = new b.aa;
  6736. f.url = a;
  6737. b.T.Hd(a) ? f.rb() : b.T.TI(a) ? b.T.load(a, function() {
  6738. c && c.call(d)
  6739. }) : b.T.Rf[a] = b.T.Gs(a, function(d, e) {
  6740. if (d) return c ? c(d) : d;
  6741. b.Da.rb(a);
  6742. c && c(null, e)
  6743. });
  6744. return f
  6745. }, n = null) : (b.assert("function" === typeof b.F.DA, b.e.jd, "TexturesWebGL.js"), b.F.DA(), delete b.F.DA);
  6746. b.Vh = b.oa.extend({
  6747. dirty: !1,
  6748. texture: null,
  6749. lb: null,
  6750. vc: null,
  6751. Ad: 0,
  6752. Dc: null,
  6753. bd: null,
  6754. $l: null,
  6755. Lf: null,
  6756. ctor: function(a, c) {
  6757. this.vc = [];
  6758. "string" == typeof a ? this.bl(a, c) : a instanceof b.aa && this.qa(a, c)
  6759. },
  6760. vN: function() {
  6761. return this.Ma
  6762. },
  6763. UM: function() {
  6764. return this.Ad
  6765. },
  6766. za: function() {
  6767. return this.texture
  6768. },
  6769. Ya: function(a) {
  6770. this.texture = a
  6771. },
  6772. bP: function(a) {
  6773. this.dirty = a
  6774. },
  6775. hF: function() {
  6776. return this.dirty
  6777. },
  6778. fN: function() {
  6779. return this.Dc
  6780. },
  6781. oP: function(a) {
  6782. this.Dc = a
  6783. },
  6784. qV: function(a, c) {
  6785. if (a)
  6786. for (var d = 0; d < a.length; d++) this.Wv(a[d], c + d)
  6787. },
  6788. Wv: function(a,
  6789. c) {
  6790. var d = this.Dc;
  6791. d[c] ? (d[c].C = a.C, d[c].L = a.L, d[c].K = a.K, d[c].J = a.J) : d[c] = new b.zb(a.K, a.C, a.J, a.L, this.bd, c * b.zb.BYTES_PER_ELEMENT)
  6792. },
  6793. description: function() {
  6794. return "\x3ccc.TextureAtlas | totalQuads \x3d" + this.Ma + "\x3e"
  6795. },
  6796. tL: function() {
  6797. if (0 !== this.Ad)
  6798. for (var a = this.lb, c = this.Ad, d = 0; d < c; d++) b.HH ? (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)
  6799. },
  6800. em: function() {
  6801. var a = b.l;
  6802. this.vc[0] = a.createBuffer();
  6803. this.vc[1] = a.createBuffer();
  6804. this.$l = a.createBuffer();
  6805. this.wv()
  6806. },
  6807. wv: function() {
  6808. var a = b.l;
  6809. a.bindBuffer(a.ARRAY_BUFFER, this.$l);
  6810. a.bufferData(a.ARRAY_BUFFER, this.bd, a.DYNAMIC_DRAW);
  6811. a.bindBuffer(a.ELEMENT_ARRAY_BUFFER, this.vc[1]);
  6812. a.bufferData(a.ELEMENT_ARRAY_BUFFER, this.lb, a.STATIC_DRAW)
  6813. },
  6814. bl: function(a, c) {
  6815. var d = b.Da.Hc(a);
  6816. if (d) return this.qa(d, c);
  6817. b.log(b.e.VT, a);
  6818. return !1
  6819. },
  6820. qa: function(a, c) {
  6821. b.assert(a, b.e.WT);
  6822. this.Ad = c |= 0;
  6823. this.Ma = 0;
  6824. this.texture = a;
  6825. this.Dc = [];
  6826. this.lb = new Uint16Array(6 *
  6827. c);
  6828. var d = b.zb.BYTES_PER_ELEMENT;
  6829. this.bd = new ArrayBuffer(d * c);
  6830. this.Lf = new Uint8Array(this.bd);
  6831. if ((!this.Dc || !this.lb) && 0 < c) return !1;
  6832. for (var e = this.Dc, f = 0; f < c; f++) e[f] = new b.zb(null, null, null, null, this.bd, f * d);
  6833. this.tL();
  6834. this.em();
  6835. return this.dirty = !0
  6836. },
  6837. Ay: function(a, c) {
  6838. b.assert(a, b.e.fU);
  6839. b.assert(0 <= c && c < this.Ad, b.e.gU);
  6840. this.Ma = Math.max(c + 1, this.Ma);
  6841. this.Wv(a, c);
  6842. this.dirty = !0
  6843. },
  6844. fF: function(a, c) {
  6845. b.assert(c < this.Ad, b.e.ZT);
  6846. this.Ma++;
  6847. if (this.Ma > this.Ad) b.log(b.e.PH);
  6848. else {
  6849. var d = b.zb.BYTES_PER_ELEMENT,
  6850. e = c *
  6851. d,
  6852. f = (this.Ma - 1 - c) * d;
  6853. this.Dc[this.Ma - 1] = new b.zb(null, null, null, null, this.bd, (this.Ma - 1) * d);
  6854. this.Lf.set(this.Lf.subarray(e, e + f), e + d);
  6855. this.Wv(a, c);
  6856. this.dirty = !0
  6857. }
  6858. },
  6859. Oda: function(a, c, d) {
  6860. d = d || a.length;
  6861. b.assert(c + d <= this.Ad, b.e.$T);
  6862. var e = b.zb.BYTES_PER_ELEMENT;
  6863. this.Ma += d;
  6864. if (this.Ma > this.Ad) b.log(b.e.PH);
  6865. else {
  6866. var f = c * e,
  6867. g = (this.Ma - 1 - c - d) * e,
  6868. h = this.Ma - 1 - d,
  6869. k;
  6870. for (k = 0; k < d; k++) this.Dc[h + k] = new b.zb(null, null, null, null, this.bd, (this.Ma - 1) * e);
  6871. this.Lf.set(this.Lf.subarray(f, f + g), f + e * d);
  6872. for (k = 0; k < d; k++) this.Wv(a[k],
  6873. c + k);
  6874. this.dirty = !0
  6875. }
  6876. },
  6877. Nda: function(a, c) {
  6878. if (a !== c) {
  6879. b.assert(0 <= c || c < this.Ma, b.e.XT);
  6880. b.assert(0 <= a || a < this.Ma, b.e.YT);
  6881. var d = b.zb.BYTES_PER_ELEMENT,
  6882. e = this.Lf,
  6883. f = e.subarray(a * d, d),
  6884. g;
  6885. a > c ? (g = c * d, e.set(e.subarray(g, g + (a - c) * d), g + d), e.set(f, g)) : (g = (a + 1) * d, e.set(e.subarray(g, g + (c - a) * d), g - d), e.set(f, c * d));
  6886. this.dirty = !0
  6887. }
  6888. },
  6889. KO: function(a) {
  6890. b.assert(a < this.Ma, b.e.dU);
  6891. var c = b.zb.BYTES_PER_ELEMENT;
  6892. this.Ma--;
  6893. this.Dc.length = this.Ma;
  6894. if (a !== this.Ma) {
  6895. var d = (a + 1) * c;
  6896. this.Lf.set(this.Lf.subarray(d, d + (this.Ma - a) * c), d - c)
  6897. }
  6898. this.dirty = !0
  6899. },
  6900. s3: function(a, c) {
  6901. b.assert(a + c <= this.Ma, b.e.eU);
  6902. this.Ma -= c;
  6903. if (a !== this.Ma) {
  6904. var d = b.zb.BYTES_PER_ELEMENT,
  6905. e = (a + c) * d;
  6906. this.Lf.set(this.Lf.subarray(e, e + (this.Ma - a) * d), a * d)
  6907. }
  6908. this.dirty = !0
  6909. },
  6910. IO: function() {
  6911. this.Ma = this.Dc.length = 0
  6912. },
  6913. Lk: function(a) {
  6914. this.dirty = a
  6915. },
  6916. JF: function(a) {
  6917. if (a == this.Ad) return !0;
  6918. var c = b.zb.BYTES_PER_ELEMENT,
  6919. d = this.Ad;
  6920. this.Ma = Math.min(this.Ma, a);
  6921. var e = this.Ad = 0 | a,
  6922. f = this.Ma;
  6923. if (null == this.Dc)
  6924. for (this.Dc = [], this.bd = new ArrayBuffer(c * e), this.Lf = new Uint8Array(this.bd), a = 0; a < e; a++) this.Dc = new b.zb(null,
  6925. null, null, null, this.bd, a * c);
  6926. else {
  6927. var g, h, k = this.Dc;
  6928. if (e > d) {
  6929. g = [];
  6930. h = new ArrayBuffer(c * e);
  6931. for (a = 0; a < f; a++) g[a] = new b.zb(k[a].K, k[a].C, k[a].J, k[a].L, h, a * c);
  6932. for (; a < e; a++) g[a] = new b.zb(null, null, null, null, h, a * c)
  6933. } else
  6934. for (f = Math.max(f, e), g = [], h = new ArrayBuffer(c * e), a = 0; a < f; a++) g[a] = new b.zb(k[a].K, k[a].C, k[a].J, k[a].L, h, a * c);
  6935. this.Lf = new Uint8Array(h);
  6936. this.Dc = g;
  6937. this.bd = h
  6938. }
  6939. null == this.lb ? this.lb = new Uint16Array(6 * e) : e > d ? (c = new Uint16Array(6 * e), c.set(this.lb, 0), this.lb = c) : this.lb = this.lb.subarray(0, 6 * e);
  6940. this.tL();
  6941. this.wv();
  6942. return this.dirty = !0
  6943. },
  6944. CN: function(a) {
  6945. this.Ma += a
  6946. },
  6947. mO: function(a, c, d) {
  6948. if (void 0 === d) {
  6949. if (d = c, c = this.Ma - a, b.assert(d + (this.Ma - a) <= this.Ad, b.e.aU), 0 === c) return
  6950. } else if (b.assert(d + c <= this.Ma, b.e.bU), b.assert(a < this.Ma, b.e.cU), a == d) return;
  6951. var e = b.zb.BYTES_PER_ELEMENT,
  6952. f = a * e,
  6953. g = c * e,
  6954. h = this.Lf,
  6955. k = h.subarray(f, f + g),
  6956. m = d * e;
  6957. d < a ? (c = d * e, h.set(h.subarray(c, c + (a - d) * e), c + g)) : (c = (a + c) * e, h.set(h.subarray(c, c + (d - a) * e), f));
  6958. h.set(k, m);
  6959. this.dirty = !0
  6960. },
  6961. NM: function(a, c) {
  6962. for (var d = c * b.zb.BYTES_PER_ELEMENT, e = new Uint8Array(this.bd,
  6963. a * b.zb.BYTES_PER_ELEMENT, d), f = 0; f < d; f++) e[f] = 0
  6964. },
  6965. IM: function() {
  6966. this.HM(this.Ma)
  6967. },
  6968. u9: function() {
  6969. var a = b.l;
  6970. this.vc && (this.vc[0] && a.deleteBuffer(this.vc[0]), this.vc[1] && a.deleteBuffer(this.vc[1]));
  6971. this.$l && a.deleteBuffer(this.$l)
  6972. }
  6973. });
  6974. n = b.Vh.prototype;
  6975. b.i(n, "totalQuads", n.vN);
  6976. b.i(n, "capacity", n.UM);
  6977. b.i(n, "quads", n.fN, n.oP);
  6978. b.Vh.create = function(a, c) {
  6979. return new b.Vh(a, c)
  6980. };
  6981. b.Vh.jE = b.Vh.create;
  6982. b.A === b.U && (b.assert("function" === typeof b.F.CA, b.e.jd, "TexturesWebGL.js"), b.F.CA(), delete b.F.CA);
  6983. b.assert("function" === typeof b.F.Fz, b.e.jd, "TexturesPropertyDefine.js");
  6984. b.F.Fz();
  6985. delete b.F.Fz;
  6986. b.Zj = b.k.extend({
  6987. vb: "Scene",
  6988. ctor: function() {
  6989. b.k.prototype.ctor.call(this);
  6990. this.ej = !0;
  6991. this.ll(0.5, 0.5);
  6992. this.Kd(b.I.Aa())
  6993. }
  6994. });
  6995. b.Zj.create = function() {
  6996. return new b.Zj
  6997. };
  6998. b.ZG = b.Zj.extend({
  6999. fj: null,
  7000. pr: 0,
  7001. Jl: 0,
  7002. Xb: null,
  7003. vb: "LoaderScene",
  7004. da: function() {
  7005. var a = this,
  7006. c = 200,
  7007. d = a.QA = b.Yc.create(b.color(32, 32, 32, 255));
  7008. d.P(b.Sj.Aw);
  7009. a.X(d, 0);
  7010. var e = 24,
  7011. f = -c / 2 + 100;
  7012. b.CK && (b.T.Gs(b.CK, {
  7013. gF: !1
  7014. }, function(d, e) {
  7015. c = e.height;
  7016. a.hK(e, b.Sj.ks)
  7017. }), e = 14, f = -c / 2 - 10);
  7018. e = a.Xb = b.M.create("Loading... 0%", "Arial", e);
  7019. e.P(b.Hi(b.Sj.ks, C(0, f)));
  7020. e.cb(b.color(180, 180, 180));
  7021. d.X(this.Xb, 10);
  7022. return !0
  7023. },
  7024. hK: function(a, c) {
  7025. var d = new b.aa;
  7026. d.Kc(a);
  7027. d.rb();
  7028. d = b.N.create(d);
  7029. d.Li(b.pb());
  7030. d.x = c.x;
  7031. d.y = c.y;
  7032. this.QA.X(d, 10)
  7033. },
  7034. Z: function() {
  7035. b.k.prototype.Z.call(this);
  7036. this.Um(this.Kr, 0.3)
  7037. },
  7038. sb: function() {
  7039. b.k.prototype.sb.call(this);
  7040. this.Xb.Kb("Loading... 0%")
  7041. },
  7042. ZE: function(a, c) {
  7043. "string" == typeof a && (a = [a]);
  7044. this.KF = a || [];
  7045. this.ed = c
  7046. },
  7047. Kr: function() {
  7048. var a = this;
  7049. a.an(a.Kr);
  7050. var c = a.KF;
  7051. a.pr = c.length;
  7052. a.Jl = 0;
  7053. b.T.load(c, function(c, e) {
  7054. a.Jl = e
  7055. }, function() {
  7056. a.ed && a.ed()
  7057. });
  7058. a.Um(a.Wr)
  7059. },
  7060. Wr: function() {
  7061. var a = this.Jl,
  7062. c = this.pr,
  7063. d;
  7064. d = Math.min(a / c * 100 | 0, 100);
  7065. this.Xb.Kb("Loading... " + d + "%");
  7066. a >= c && this.an(this.Wr)
  7067. }
  7068. });
  7069. b.ZG.Tx = function(a, c) {
  7070. var d = b;
  7071. d.Hs || (d.Hs = new b.ZG, d.Hs.da());
  7072. d.Hs.ZE(a, c);
  7073. b.I.dy(d.Hs);
  7074. return d.Hs
  7075. };
  7076. b.F.kz = function() {
  7077. var a = b.sc.prototype;
  7078. a.eM = function() {};
  7079. a.QP = function() {};
  7080. a.R = b.k.prototype.R
  7081. };
  7082. b.F.yA = function() {
  7083. var a = b.Yc.prototype;
  7084. a.$v = null;
  7085. a.fD = null;
  7086. a.HD = null;
  7087. a.aB = null;
  7088. a.hD = null;
  7089. a.gD = null;
  7090. a.ctor = function(a, d, e) {
  7091. this.hD = new ArrayBuffer(32);
  7092. this.gD = new ArrayBuffer(16);
  7093. var f = this.hD,
  7094. g = this.gD,
  7095. h = b.Vb.BYTES_PER_ELEMENT,
  7096. k = b.yf.BYTES_PER_ELEMENT;
  7097. this.$v = [new b.Vb(0, 0, f, 0), new b.Vb(0, 0, f, h), new b.Vb(0, 0, f, 2 * h), new b.Vb(0, 0, f, 3 * h)];
  7098. this.fD = [b.color(0, 0, 0, 255, g, 0), b.color(0, 0, 0, 255, g, k), b.color(0, 0, 0, 255, g, 2 * k), b.color(0, 0, 0, 255, g, 3 * k)];
  7099. this.HD = b.l.createBuffer();
  7100. this.aB = b.l.createBuffer();
  7101. b.sc.prototype.ctor.call(this);
  7102. this.p = new b.ec(b.dc, b.cc);
  7103. b.Yc.prototype.da.call(this, a, d, e)
  7104. };
  7105. a.Kd = function(a, d) {
  7106. var e = this.$v;
  7107. 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);
  7108. this.RA();
  7109. b.sc.prototype.Kd.call(this, a, d)
  7110. };
  7111. a.rj = function(a) {
  7112. var d = this.$v;
  7113. d[1].x = a;
  7114. d[3].x = a;
  7115. this.RA();
  7116. b.sc.prototype.rj.call(this, a)
  7117. };
  7118. a.qj = function(a) {
  7119. var d = this.$v;
  7120. d[2].y = a;
  7121. d[3].y = a;
  7122. this.RA();
  7123. b.sc.prototype.qj.call(this, a)
  7124. };
  7125. a.bc = function() {
  7126. for (var a = this.ya, d = this.fb, e = this.fD, f = 0; 4 > f; f++) e[f].r =
  7127. a.r, e[f].g = a.g, e[f].b = a.b, e[f].a = d;
  7128. this.OI()
  7129. };
  7130. a.Y = function(a) {
  7131. a = a || b.l;
  7132. b.Js(this);
  7133. b.Jc(b.Qd | b.ou);
  7134. a.bindBuffer(a.ARRAY_BUFFER, this.HD);
  7135. a.vertexAttribPointer(b.qb, 2, a.FLOAT, !1, 0, 0);
  7136. a.bindBuffer(a.ARRAY_BUFFER, this.aB);
  7137. a.vertexAttribPointer(b.Ce, 4, a.UNSIGNED_BYTE, !0, 0, 0);
  7138. b.Hh(this.p.src, this.p.S);
  7139. a.drawArrays(a.TRIANGLE_STRIP, 0, 4)
  7140. };
  7141. a.RA = function() {
  7142. var a = b.l;
  7143. a.bindBuffer(a.ARRAY_BUFFER, this.HD);
  7144. a.bufferData(a.ARRAY_BUFFER, this.hD, a.STATIC_DRAW)
  7145. };
  7146. a.OI = function() {
  7147. var a = b.l;
  7148. a.bindBuffer(a.ARRAY_BUFFER,
  7149. this.aB);
  7150. a.bufferData(a.ARRAY_BUFFER, this.gD, a.STATIC_DRAW)
  7151. }
  7152. };
  7153. b.F.zA = function() {
  7154. var a = b.vl.prototype;
  7155. a.Y = b.Yc.prototype.Y;
  7156. a.bc = function() {
  7157. var a = this.lk,
  7158. d = b.il(a);
  7159. if (0 !== d) {
  7160. var e = Math.sqrt(2),
  7161. a = C(a.x / d, a.y / d);
  7162. this.Ju && (a = b.Ii(a, 1 / (Math.abs(a.x) + Math.abs(a.y)) * e));
  7163. var f = this.fb / 255,
  7164. d = this.ya,
  7165. g = this.Ge,
  7166. d = {
  7167. r: d.r,
  7168. g: d.g,
  7169. b: d.b,
  7170. a: this.yo * f
  7171. },
  7172. f = {
  7173. r: g.r,
  7174. g: g.g,
  7175. b: g.b,
  7176. a: this.Qn * f
  7177. },
  7178. h = this.fD,
  7179. g = h[0],
  7180. k = h[1],
  7181. m = h[2],
  7182. h = h[3];
  7183. g.r = f.r + (e + a.x + a.y) / (2 * e) * (d.r - f.r);
  7184. g.g = f.g + (e + a.x + a.y) / (2 * e) * (d.g - f.g);
  7185. g.b = f.b + (e + a.x + a.y) / (2 * e) * (d.b - f.b);
  7186. g.a = f.a + (e + a.x + a.y) / (2 * e) * (d.a - f.a);
  7187. k.r = f.r + (e - a.x +
  7188. a.y) / (2 * e) * (d.r - f.r);
  7189. k.g = f.g + (e - a.x + a.y) / (2 * e) * (d.g - f.g);
  7190. k.b = f.b + (e - a.x + a.y) / (2 * e) * (d.b - f.b);
  7191. k.a = f.a + (e - a.x + a.y) / (2 * e) * (d.a - f.a);
  7192. m.r = f.r + (e + a.x - a.y) / (2 * e) * (d.r - f.r);
  7193. m.g = f.g + (e + a.x - a.y) / (2 * e) * (d.g - f.g);
  7194. m.b = f.b + (e + a.x - a.y) / (2 * e) * (d.b - f.b);
  7195. m.a = f.a + (e + a.x - a.y) / (2 * e) * (d.a - f.a);
  7196. h.r = f.r + (e - a.x - a.y) / (2 * e) * (d.r - f.r);
  7197. h.g = f.g + (e - a.x - a.y) / (2 * e) * (d.g - f.g);
  7198. h.b = f.b + (e - a.x - a.y) / (2 * e) * (d.b - f.b);
  7199. h.a = f.a + (e - a.x - a.y) / (2 * e) * (d.a - f.a);
  7200. this.OI()
  7201. }
  7202. }
  7203. };
  7204. b.F.Bz = function() {
  7205. var a = b.Yc.prototype;
  7206. b.i(a, "width", a.eh, a.rj);
  7207. b.i(a, "height", a.yk, a.qj)
  7208. };
  7209. b.F.Cz = function() {
  7210. var a = b.vl.prototype;
  7211. b.i(a, "startColor", a.Vw, a.We);
  7212. b.i(a, "endColor", a.Qw, a.Te);
  7213. b.i(a, "startOpacity", a.V0, a.A4);
  7214. b.i(a, "endOpacity", a.e0, a.Y3);
  7215. b.i(a, "vector", a.a1, a.J4)
  7216. };
  7217. b.sc = b.k.extend({
  7218. Pl: !1,
  7219. Du: null,
  7220. vb: "Layer",
  7221. ctor: function() {
  7222. var a = b.k.prototype;
  7223. a.ctor.call(this);
  7224. this.ej = !0;
  7225. a.ll.call(this, 0.5, 0.5);
  7226. a.Kd.call(this, b.Tj)
  7227. },
  7228. da: function() {
  7229. this.ej = !0;
  7230. this.ll(0.5, 0.5);
  7231. this.Kd(b.Tj);
  7232. this.cascadeColor = this.cascadeOpacity = !1;
  7233. return !0
  7234. },
  7235. eM: null,
  7236. QP: null,
  7237. Sda: function() {
  7238. return this.Pl
  7239. },
  7240. R: null
  7241. });
  7242. b.sc.create = function() {
  7243. return new b.sc
  7244. };
  7245. if (b.A === b.Ba) {
  7246. var ca = b.sc.prototype;
  7247. ca.eM = function() {
  7248. if (!this.Pl) {
  7249. this.Pl = this.tg = !0;
  7250. this.En = this;
  7251. for (var a = this.t, c = 0, d = a.length; c < d; c++) a[c].MC(this);
  7252. this.Du || (this.Du = new b.oQ)
  7253. }
  7254. };
  7255. ca.QP = function() {
  7256. if (this.Pl) {
  7257. this.Pl = !1;
  7258. this.tg = !0;
  7259. this.En = null;
  7260. for (var a = this.t, c = 0, d = a.length; c < d; c++) a[c].MC(null)
  7261. }
  7262. };
  7263. ca.R = function(a) {
  7264. if (this.Pl) {
  7265. a = a || b.l;
  7266. var c, d = this.t,
  7267. e = d.length;
  7268. if (this.lc && 0 !== e) {
  7269. var f = this.Du;
  7270. a.save();
  7271. this.transform(a);
  7272. if (this.tg) {
  7273. c = this.vB();
  7274. c.width |= 0;
  7275. c.height |= 0;
  7276. var g = f.ce;
  7277. f.OO(c.width, c.height);
  7278. g.translate(0 - c.x, c.height + c.y);
  7279. var h = f.Nw();
  7280. f.P(h.x + c.x, h.y + c.y);
  7281. this.Wc();
  7282. b.view.Xv();
  7283. for (c = 0; c < e; c++) d[c].R(g);
  7284. b.view.Pv();
  7285. this.tg = !1
  7286. }
  7287. f.R(a);
  7288. this.arrivalOrder = 0;
  7289. a.restore()
  7290. }
  7291. } else b.k.prototype.R.call(this, a)
  7292. };
  7293. ca.vB = function() {
  7294. var a = null;
  7295. if (!this.t || 0 === this.t.length) return O(0, 0, 10, 10);
  7296. for (var c = this.t, d = 0; d < c.length; d++) {
  7297. var e = c[d];
  7298. e && e.lc && (a ? (e = e.dr()) && (a = b.Vx(a, e)) : a = e.dr())
  7299. }
  7300. return a
  7301. };
  7302. ca = null
  7303. } else b.assert("function" === typeof b.F.kz, b.e.jd, "CCLayerWebGL.js"), b.F.kz(), delete b.F.kz;
  7304. b.Yc = b.sc.extend({
  7305. p: null,
  7306. vb: "LayerColor",
  7307. Dh: function() {
  7308. return this.p
  7309. },
  7310. u$: function(a, c) {
  7311. this.width = a;
  7312. this.height = c
  7313. },
  7314. t$: function(a) {
  7315. this.width = a
  7316. },
  7317. s$: function(a) {
  7318. this.height = a
  7319. },
  7320. Ue: function() {},
  7321. Wf: function() {
  7322. return !1
  7323. },
  7324. cb: function(a) {
  7325. b.sc.prototype.cb.call(this, a);
  7326. this.bc()
  7327. },
  7328. Sa: function(a) {
  7329. b.sc.prototype.Sa.call(this, a);
  7330. this.bc()
  7331. },
  7332. ko: !1,
  7333. ctor: null,
  7334. da: function(a, c, d) {
  7335. b.A !== b.Ba && (this.shaderProgram = b.Md.nc(b.au));
  7336. var e = b.I.Aa();
  7337. a = a || b.color(0, 0, 0, 255);
  7338. c = void 0 === c ? e.width : c;
  7339. d = void 0 === d ? e.height : d;
  7340. e = this.ya;
  7341. e.r = a.r;
  7342. e.g = a.g;
  7343. e.b = a.b;
  7344. e = this.Xd;
  7345. e.r = a.r;
  7346. e.g = a.g;
  7347. e.b = a.b;
  7348. this.Bg = this.fb = a.a;
  7349. a = b.Yc.prototype;
  7350. a.Kd.call(this, c, d);
  7351. a.bc.call(this);
  7352. return !0
  7353. },
  7354. Se: function(a, c) {
  7355. this.p = void 0 === c ? a : {
  7356. src: a,
  7357. S: c
  7358. };
  7359. b.A === b.Ba && (this.ko = this.p && 1 == this.p.src && 771 == this.p.S)
  7360. },
  7361. rj: null,
  7362. qj: null,
  7363. bc: null,
  7364. Nc: function(a) {
  7365. b.sc.prototype.Nc.call(this, a);
  7366. this.bc()
  7367. },
  7368. Bc: function(a) {
  7369. b.sc.prototype.Bc.call(this, a);
  7370. this.bc()
  7371. },
  7372. Y: null
  7373. });
  7374. b.Yc.create = function(a, c, d) {
  7375. return new b.Yc(a, c, d)
  7376. };
  7377. b.A === b.Ba ? (n = b.Yc.prototype, n.ctor = function(a, c, d) {
  7378. b.sc.prototype.ctor.call(this);
  7379. this.p = new b.ec(b.dc, b.cc);
  7380. b.Yc.prototype.da.call(this, a, c, d)
  7381. }, n.rj = b.sc.prototype.rj, n.qj = b.sc.prototype.qj, n.bc = function() {}, n.Y = function(a) {
  7382. a = a || b.l;
  7383. var c = b.view,
  7384. d = this.ya;
  7385. a.fillStyle = "rgba(" + (0 | d.r) + "," + (0 | d.g) + "," + (0 | d.b) + "," + this.fb / 255 + ")";
  7386. a.fillRect(0, 0, this.width * c.ka, -this.height * c.La);
  7387. b.sf++
  7388. }, n.R = function(a) {
  7389. if (this.Pl) {
  7390. a = a || b.l;
  7391. var c, d = this.t,
  7392. e = d.length;
  7393. if (this.lc) {
  7394. var f = this.Du;
  7395. a.save();
  7396. this.transform(a);
  7397. if (this.tg) {
  7398. c = this.vB();
  7399. c.width |= 0;
  7400. c.height |= 0;
  7401. var g = f.ce;
  7402. f.OO(c.width, c.height);
  7403. var h = f.Nw(),
  7404. k = this.wa;
  7405. if (this.ej) g.translate(0 - c.x + k.x, c.height + c.y - k.y), f.P(h.x + c.x - k.x, h.y + c.y - k.y);
  7406. else {
  7407. var m = this.Nw(),
  7408. p = k.x - m.x,
  7409. k = k.y - m.y;
  7410. g.translate(0 - c.x + p, c.height + c.y - k);
  7411. f.P(h.x + c.x - p, h.y + c.y - k)
  7412. }
  7413. b.view.Xv();
  7414. if (0 < e) {
  7415. this.Wc();
  7416. for (c = 0; c < e; c++)
  7417. if (h = d[c], 0 > h.Bb) h.R(g);
  7418. else break;
  7419. for (this.Y(g); c < e; c++) d[c].R(g)
  7420. } else this.Y(g);
  7421. b.view.Pv();
  7422. this.tg = !1
  7423. }
  7424. f.R(a);
  7425. this.arrivalOrder = 0;
  7426. a.restore()
  7427. }
  7428. } else b.k.prototype.R.call(this,
  7429. a)
  7430. }, n.vB = function() {
  7431. var a = O(0, 0, this.O.width, this.O.height),
  7432. c = this.Gx(),
  7433. a = b.GF(a, this.Gx());
  7434. if (!this.t || 0 === this.t.length) return a;
  7435. for (var d = this.t, e = 0; e < d.length; e++) {
  7436. var f = d[e];
  7437. f && f.lc && (f = f.dr(c), a = b.Vx(a, f))
  7438. }
  7439. return a
  7440. }, n = null) : (b.assert("function" === typeof b.F.yA, b.e.jd, "CCLayerWebGL.js"), b.F.yA(), delete b.F.yA);
  7441. b.assert("function" === typeof b.F.Bz, b.e.jd, "CCLayerPropertyDefine.js");
  7442. b.F.Bz();
  7443. delete b.F.Bz;
  7444. b.vl = b.Yc.extend({
  7445. vh: null,
  7446. Ge: null,
  7447. yo: 255,
  7448. Qn: 255,
  7449. lk: null,
  7450. Ju: !1,
  7451. bo: null,
  7452. ao: null,
  7453. vb: "LayerGradient",
  7454. ctor: function(a, c, d) {
  7455. b.Yc.prototype.ctor.call(this);
  7456. this.vh = b.color(0, 0, 0, 255);
  7457. this.Ge = b.color(0, 0, 0, 255);
  7458. this.lk = C(0, -1);
  7459. this.Qn = this.yo = 255;
  7460. this.bo = C(0, 0);
  7461. this.ao = C(0, 0);
  7462. b.vl.prototype.da.call(this, a, c, d)
  7463. },
  7464. da: function(a, c, d) {
  7465. a = a || b.color(0, 0, 0, 255);
  7466. c = c || b.color(0, 0, 0, 255);
  7467. d = d || C(0, -1);
  7468. var e = this.vh,
  7469. f = this.Ge;
  7470. e.r = a.r;
  7471. e.g = a.g;
  7472. e.b = a.b;
  7473. this.yo = a.a;
  7474. f.r = c.r;
  7475. f.g = c.g;
  7476. f.b = c.b;
  7477. this.Qn = c.a;
  7478. this.lk = d;
  7479. this.Ju = !0;
  7480. this.bo = C(0, 0);
  7481. this.ao = C(0, 0);
  7482. b.Yc.prototype.da.call(this, b.color(a.r, a.g, a.b, 255));
  7483. b.vl.prototype.bc.call(this);
  7484. return !0
  7485. },
  7486. Kd: function(a, c) {
  7487. b.Yc.prototype.Kd.call(this, a, c);
  7488. this.bc()
  7489. },
  7490. rj: function(a) {
  7491. b.Yc.prototype.rj.call(this, a);
  7492. this.bc()
  7493. },
  7494. qj: function(a) {
  7495. b.Yc.prototype.qj.call(this, a);
  7496. this.bc()
  7497. },
  7498. Vw: function() {
  7499. return this.Xd
  7500. },
  7501. We: function(a) {
  7502. this.color = a
  7503. },
  7504. Te: function(a) {
  7505. this.Ge = a;
  7506. this.bc()
  7507. },
  7508. Qw: function() {
  7509. return this.Ge
  7510. },
  7511. A4: function(a) {
  7512. this.yo = a;
  7513. this.bc()
  7514. },
  7515. V0: function() {
  7516. return this.yo
  7517. },
  7518. Y3: function(a) {
  7519. this.Qn =
  7520. a;
  7521. this.bc()
  7522. },
  7523. e0: function() {
  7524. return this.Qn
  7525. },
  7526. J4: function(a) {
  7527. this.lk.x = a.x;
  7528. this.lk.y = a.y;
  7529. this.bc()
  7530. },
  7531. a1: function() {
  7532. return C(this.lk.x, this.lk.y)
  7533. },
  7534. Uda: function() {
  7535. return this.Ju
  7536. },
  7537. uia: function(a) {
  7538. this.Ju = a;
  7539. this.bc()
  7540. },
  7541. c9: null,
  7542. bc: null
  7543. });
  7544. b.vl.create = function(a, c, d) {
  7545. return new b.vl(a, c, d)
  7546. };
  7547. b.A === b.Ba ? (n = b.vl.prototype, n.Y = function(a) {
  7548. a = a || b.l;
  7549. this.ko && (a.globalCompositeOperation = "lighter");
  7550. a.save();
  7551. var c = this.fb / 255,
  7552. d = b.view.ka,
  7553. e = b.view.La,
  7554. f = this.width * d,
  7555. g = this.height * e,
  7556. d = a.createLinearGradient(this.bo.x * d, this.bo.y * e, this.ao.x * d, this.ao.y * e),
  7557. e = this.ya,
  7558. h = this.Ge;
  7559. d.addColorStop(0, "rgba(" + Math.round(e.r) + "," + Math.round(e.g) + "," + Math.round(e.b) + "," + (this.yo / 255 * c).toFixed(4) + ")");
  7560. d.addColorStop(1, "rgba(" + Math.round(h.r) + "," + Math.round(h.g) + "," + Math.round(h.b) + "," + (this.Qn / 255 * c).toFixed(4) +
  7561. ")");
  7562. a.fillStyle = d;
  7563. a.fillRect(0, 0, f, -g);
  7564. 0 != this.w9 && a.rotate(this.x9);
  7565. a.restore();
  7566. b.sf++
  7567. }, n.bc = function() {
  7568. var a = this.lk,
  7569. c = 0.5 * this.width,
  7570. d = 0.5 * this.height;
  7571. this.bo.x = c * -a.x + c;
  7572. this.bo.y = d * a.y - d;
  7573. this.ao.x = c * a.x + c;
  7574. this.ao.y = d * -a.y - d
  7575. }, n = null) : (b.assert("function" === typeof b.F.zA, b.e.jd, "CCLayerWebGL.js"), b.F.zA(), delete b.F.zA);
  7576. b.assert("function" === typeof b.F.Cz, b.e.jd, "CCLayerPropertyDefine.js");
  7577. b.F.Cz();
  7578. delete b.F.Cz;
  7579. b.Qt = b.sc.extend({
  7580. Nl: 0,
  7581. je: null,
  7582. vb: "LayerMultiplex",
  7583. ctor: function(a) {
  7584. b.sc.prototype.ctor.call(this);
  7585. a instanceof Array ? b.Qt.prototype.KN.call(this, a) : b.Qt.prototype.KN.call(this, Array.prototype.slice.call(arguments))
  7586. },
  7587. KN: function(a) {
  7588. 0 < a.length && null == a[a.length - 1] && b.log(b.e.HR);
  7589. this.je = a;
  7590. this.Nl = 0;
  7591. this.X(this.je[this.Nl]);
  7592. return !0
  7593. },
  7594. wka: function(a) {
  7595. a >= this.je.length ? b.log(b.e.IR) : (this.removeChild(this.je[this.Nl], !0), this.Nl = a, this.X(this.je[a]))
  7596. },
  7597. xka: function(a) {
  7598. a >= this.je.length ? b.log(b.e.JR) : (this.removeChild(this.je[this.Nl], !0), this.je[this.Nl] = null, this.Nl = a, this.X(this.je[a]))
  7599. },
  7600. L9: function(a) {
  7601. a ? this.je.push(a) : b.log(b.e.GR)
  7602. }
  7603. });
  7604. b.Qt.create = function() {
  7605. return new b.Qt(Array.prototype.slice.call(arguments))
  7606. };
  7607. b.F.AA = function() {
  7608. var a = b.N.prototype;
  7609. a.eD = function(a) {
  7610. this.Ha(!0);
  7611. this.tb(a.Gh(), a.le, a.cp());
  7612. this.Sd()
  7613. };
  7614. a.Ue = function(a) {
  7615. this.Oa !== a && (this.Oa = a, this.pt())
  7616. };
  7617. a.Bc = function(a) {
  7618. b.k.prototype.Bc.call(this, a);
  7619. this.pt()
  7620. };
  7621. a.ctor = function(a, d, e) {
  7622. b.k.prototype.ctor.call(this);
  7623. this.Nk = !1;
  7624. this.Hb = C(0, 0);
  7625. this.xh = C(0, 0);
  7626. this.p = {
  7627. src: b.dc,
  7628. S: b.cc
  7629. };
  7630. this.ia = O(0, 0, 0, 0);
  7631. this.Ob = new b.zb;
  7632. this.Lv = b.l.createBuffer();
  7633. this.ma = this.Ie = !0;
  7634. this.yL(a, d, e)
  7635. };
  7636. a.Se = function(a, d) {
  7637. var e = this.p;
  7638. void 0 === d ? (e.src = a.src, e.S = a.S) : (e.src =
  7639. a, e.S = d)
  7640. };
  7641. a.da = function() {
  7642. if (0 < arguments.length) return this.bl(arguments[0], arguments[1]);
  7643. b.k.prototype.da.call(this);
  7644. this.dirty = this.nh = !1;
  7645. this.Oa = !0;
  7646. this.p.src = b.dc;
  7647. this.p.S = b.cc;
  7648. this.texture = null;
  7649. this.ma = !0;
  7650. this.Lb = this.Mb = !1;
  7651. this.anchorY = this.anchorX = 0.5;
  7652. this.Hb.x = 0;
  7653. this.Hb.y = 0;
  7654. this.fi = !1;
  7655. var a = {
  7656. r: 255,
  7657. g: 255,
  7658. b: 255,
  7659. a: 255
  7660. };
  7661. this.Ob.C.s = a;
  7662. this.Ob.L.s = a;
  7663. this.Ob.K.s = a;
  7664. this.Ob.J.s = a;
  7665. this.Ie = !0;
  7666. this.tb(O(0, 0, 0, 0), !1, N(0, 0));
  7667. return !0
  7668. };
  7669. a.qa = function(a, d, e) {
  7670. b.assert(0 != arguments.length, b.e.pT);
  7671. e = e || !1;
  7672. if (!b.k.prototype.da.call(this)) return !1;
  7673. this.V = null;
  7674. this.dirty = this.nh = !1;
  7675. this.Oa = !0;
  7676. this.p.src = b.dc;
  7677. this.p.S = b.cc;
  7678. this.Lb = this.Mb = !1;
  7679. this.anchorY = this.anchorX = 0.5;
  7680. this.Hb.x = 0;
  7681. this.Hb.y = 0;
  7682. this.fi = !1;
  7683. var f = b.color(255, 255, 255, 255),
  7684. g = this.Ob;
  7685. g.C.s = f;
  7686. g.L.s = f;
  7687. g.K.s = f;
  7688. g.J.s = f;
  7689. this.ma = f = a.wc;
  7690. if (!f) return this.Ec = e || !1, d && (f = this.ia, f.x = d.x, f.y = d.y, f.width = d.width, f.height = d.height), a.$d(this.mw, this), !0;
  7691. d || (d = O(0, 0, a.width, a.height));
  7692. a && a.url && (e ? (f = d.x + d.height, g = d.y + d.width) : (f = d.x + d.width, g = d.y + d.height), f > a.width && b.error(b.e.Iz, a.url), g >
  7693. a.height && b.error(b.e.Hz, a.url));
  7694. this.texture = a;
  7695. this.tb(d, e);
  7696. this.batchNode = null;
  7697. return this.Ie = !0
  7698. };
  7699. a.mw = function(a) {
  7700. if (!this.ma) {
  7701. this.ma = !0;
  7702. var d = this.ia;
  7703. d ? b.zC(d) && (d.width = a.width, d.height = a.height) : d = O(0, 0, a.width, a.height);
  7704. this.texture = a;
  7705. this.tb(d, this.Ec);
  7706. this.batchNode = this.V;
  7707. this.Ie = !0;
  7708. this.Sd()
  7709. }
  7710. };
  7711. a.tb = function(a, d, e) {
  7712. this.Ec = d || !1;
  7713. this.Kd(e || a);
  7714. this.iG(a);
  7715. this.qL(a);
  7716. a = this.xh;
  7717. this.Lb && (a.x = -a.x);
  7718. this.Mb && (a.y = -a.y);
  7719. var f = this.ia;
  7720. this.Hb.x = a.x + (this.O.width - f.width) / 2;
  7721. this.Hb.y = a.y + (this.O.height -
  7722. f.height) / 2;
  7723. if (this.V) this.dirty = !0;
  7724. else {
  7725. a = 0 + this.Hb.x;
  7726. d = 0 + this.Hb.y;
  7727. e = a + f.width;
  7728. var f = d + f.height,
  7729. g = this.Ob;
  7730. g.C.f = {
  7731. x: a,
  7732. y: d,
  7733. z: 0
  7734. };
  7735. g.L.f = {
  7736. x: e,
  7737. y: d,
  7738. z: 0
  7739. };
  7740. g.K.f = {
  7741. x: a,
  7742. y: f,
  7743. z: 0
  7744. };
  7745. g.J.f = {
  7746. x: e,
  7747. y: f,
  7748. z: 0
  7749. };
  7750. this.Ie = !0
  7751. }
  7752. };
  7753. a.Ze = function() {
  7754. if (this.dirty) {
  7755. var a = this.Ob,
  7756. d = this.Sc;
  7757. if (!this.lc || d && d != this.V && d.Nk) a.L.f = a.K.f = a.J.f = a.C.f = {
  7758. x: 0,
  7759. y: 0,
  7760. z: 0
  7761. }, this.Nk = !0;
  7762. else {
  7763. this.Nk = !1;
  7764. var e = this.nm = d && d != this.V ? b.tm(this.np(), d.nm) : this.np(),
  7765. f = this.ia,
  7766. d = this.Hb.x,
  7767. g = this.Hb.y,
  7768. h = d + f.width,
  7769. k = g + f.height,
  7770. m = e.Ia,
  7771. p = e.Ja,
  7772. r = e.a,
  7773. s = e.b,
  7774. u = e.H,
  7775. t = -e.B,
  7776. e = d * r - g * t + m,
  7777. f = d * s + g * u + p,
  7778. v = h * r - g * t + m,
  7779. g = h * s + g * u + p,
  7780. w = h * r - k * t + m,
  7781. h = h * s + k * u + p,
  7782. m = d * r - k * t + m,
  7783. d = d * s + k * u + p,
  7784. k = this.$r;
  7785. b.Qz || (e |= 0, f |= 0, v |= 0, g |= 0, w |= 0, h |= 0, m |= 0, d |= 0);
  7786. a.C.f = {
  7787. x: e,
  7788. y: f,
  7789. z: k
  7790. };
  7791. a.L.f = {
  7792. x: v,
  7793. y: g,
  7794. z: k
  7795. };
  7796. a.K.f = {
  7797. x: m,
  7798. y: d,
  7799. z: k
  7800. };
  7801. a.J.f = {
  7802. x: w,
  7803. y: h,
  7804. z: k
  7805. }
  7806. }
  7807. this.textureAtlas.Ay(a, this.atlasIndex);
  7808. this.dirty = this.nh = !1
  7809. }
  7810. this.fi && this.sg(this.t, b.k.zf.Ze);
  7811. b.Yj && b.Fe.ae([C(this.Ob.C.f.x, this.Ob.C.f.y), C(this.Ob.L.f.x, this.Ob.L.f.y), C(this.Ob.J.f.x, this.Ob.J.f.y), C(this.Ob.K.f.x, this.Ob.K.f.y)], 4, !0)
  7812. };
  7813. a.X = function(a, d,
  7814. e) {
  7815. b.assert(a, b.e.gT);
  7816. null == d && (d = a.Bb);
  7817. null == e && (e = a.tag);
  7818. if (this.V) {
  7819. if (!(a instanceof b.N)) {
  7820. b.log(b.e.eT);
  7821. return
  7822. }
  7823. a.texture.Zd !== this.textureAtlas.texture.Zd && b.log(b.e.fT);
  7824. this.V.appendChild(a);
  7825. this.Yd || this.WC()
  7826. }
  7827. b.k.prototype.X.call(this, a, d, e);
  7828. this.fi = !0
  7829. };
  7830. a.Sa = function(a) {
  7831. b.k.prototype.Sa.call(this, a);
  7832. this.pt()
  7833. };
  7834. a.cb = function(a) {
  7835. b.k.prototype.cb.call(this, a);
  7836. this.pt()
  7837. };
  7838. a.Nc = function(a) {
  7839. b.k.prototype.Nc.call(this, a);
  7840. this.pt()
  7841. };
  7842. a.nl = function(a) {
  7843. var d = this;
  7844. "string" == typeof a && (a = b.Rj.Bj(a), b.assert(a,
  7845. b.e.yT));
  7846. d.Ha(!0);
  7847. var e = a.Km();
  7848. d.xh.x = e.x;
  7849. d.xh.y = e.y;
  7850. e = a.za();
  7851. a.ma || (d.ma = !1, a.$d(function(a) {
  7852. d.ma = !0;
  7853. var c = a.za();
  7854. c != d.G && (d.texture = c);
  7855. d.tb(a.Gh(), a.le, a.cp());
  7856. d.Sd()
  7857. }, d));
  7858. e != d.G && (d.texture = e);
  7859. d.Ec = a.le;
  7860. d.tb(a.Gh(), d.Ec, a.cp())
  7861. };
  7862. a.UN = function(a) {
  7863. return b.FO(a.Gh(), this.ia) && a.za().getName() == this.G.getName() && b.DF(a.Km(), this.xh)
  7864. };
  7865. a.ml = function(a) {
  7866. if (this.V = a) this.nm = {
  7867. a: 1,
  7868. b: 0,
  7869. B: 0,
  7870. H: 1,
  7871. Ia: 0,
  7872. Ja: 0
  7873. }, this.textureAtlas = this.V.textureAtlas;
  7874. else {
  7875. this.atlasIndex = b.N.gz;
  7876. this.textureAtlas = null;
  7877. this.dirty =
  7878. this.nh = !1;
  7879. a = this.Hb.x;
  7880. var d = this.Hb.y,
  7881. e = a + this.ia.width,
  7882. f = d + this.ia.height,
  7883. g = this.Ob;
  7884. g.C.f = {
  7885. x: a,
  7886. y: d,
  7887. z: 0
  7888. };
  7889. g.L.f = {
  7890. x: e,
  7891. y: d,
  7892. z: 0
  7893. };
  7894. g.K.f = {
  7895. x: a,
  7896. y: f,
  7897. z: 0
  7898. };
  7899. g.J.f = {
  7900. x: e,
  7901. y: f,
  7902. z: 0
  7903. };
  7904. this.Ie = !0
  7905. }
  7906. };
  7907. a.Ya = function(a) {
  7908. a && "string" === typeof a ? (a = b.Da.Hc(a), this.Ya(a), a = a.se(), this.tb(O(0, 0, a.width, a.height))) : (b.assert(!a || a instanceof b.aa, b.e.AT), this.V && this.V.texture != a ? b.log(b.e.zT) : (this.shaderProgram = a ? b.Md.nc(b.Wi) : b.Md.nc(b.au), this.V || this.G == a || (this.G = a, this.Qf())))
  7909. };
  7910. a.Y = function() {
  7911. if (this.ma) {
  7912. var a = b.l,
  7913. d = this.G;
  7914. d ? d.wc && (this.Eb.Oc(), this.Eb.Ye(), b.Hh(this.p.src, this.p.S), b.QE(0, d), b.Jc(b.El), a.bindBuffer(a.ARRAY_BUFFER, this.Lv), this.Ie && (a.bufferData(a.ARRAY_BUFFER, this.Ob.xw, a.DYNAMIC_DRAW), this.Ie = !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.Eb.Oc(), this.Eb.Ye(), b.Hh(this.p.src, this.p.S), b.te(null), b.Jc(b.Qd | b.ou), a.bindBuffer(a.ARRAY_BUFFER, this.Lv), this.Ie && (b.l.bufferData(b.l.ARRAY_BUFFER,
  7915. this.Ob.xw, b.l.STATIC_DRAW), this.Ie = !1), a.vertexAttribPointer(b.qb, 3, a.FLOAT, !1, 24, 0), a.vertexAttribPointer(b.Ce, 4, a.UNSIGNED_BYTE, !0, 24, 12), a.drawArrays(a.TRIANGLE_STRIP, 0, 4));
  7916. b.sf++;
  7917. if (0 !== b.Yj || this.$C) 1 === b.Yj || this.$C ? (a = this.Ob, b.Fe.ae([C(a.K.f.x, a.K.f.y), C(a.C.f.x, a.C.f.y), C(a.L.f.x, a.L.f.y), C(a.J.f.x, a.J.f.y)], 4, !0)) : 2 === b.Yj && (a = this.uN(), d = this.E0(), b.Fe.ae([C(d.x, d.y), C(d.x + a.width, d.y), C(d.x + a.width, d.y + a.height), C(d.x, d.y + a.height)], 4, !0))
  7918. }
  7919. };
  7920. delete a
  7921. };
  7922. b.F.Dz = function() {
  7923. var a = b.N.prototype;
  7924. b.i(a, "opacityModifyRGB", a.Wf, a.Ue);
  7925. b.i(a, "opacity", a.Ig, a.Sa);
  7926. b.i(a, "color", a.Hg, a.cb);
  7927. b.i(a, "flippedX", a.D1, a.gy);
  7928. b.i(a, "flippedY", a.E1, a.UF);
  7929. b.i(a, "offsetX", a.iW);
  7930. b.i(a, "offsetY", a.jW);
  7931. b.i(a, "texture", a.za, a.Ya);
  7932. b.i(a, "textureRectRotated", a.K1);
  7933. b.i(a, "batchNode", a.yE, a.ml);
  7934. b.i(a, "quad", a.J0)
  7935. };
  7936. b.Hm = function(a, c, d, e) {
  7937. e = e || b.Sb("canvas");
  7938. d = d || O(0, 0, a.width, a.height);
  7939. var f = e.getContext("2d");
  7940. e.width != d.width || e.height != d.height ? (e.width = d.width, e.height = d.height) : f.globalCompositeOperation = "source-over";
  7941. f.fillStyle = "rgb(" + c.r + "," + c.g + "," + c.b + ")";
  7942. f.fillRect(0, 0, d.width, d.height);
  7943. f.globalCompositeOperation = "multiply";
  7944. f.drawImage(a, d.x, d.y, d.width, d.height, 0, 0, d.width, d.height);
  7945. f.globalCompositeOperation = "destination-atop";
  7946. f.drawImage(a, d.x, d.y, d.width, d.height, 0, 0, d.width, d.height);
  7947. return e
  7948. };
  7949. b.Gm = function(a, c, d, e, f) {
  7950. e || (e = O(0, 0, a.width, a.height));
  7951. a = d.r / 255;
  7952. var g = d.g / 255;
  7953. d = d.b / 255;
  7954. var h = Math.min(e.width, c[0].width),
  7955. k = Math.min(e.height, c[0].height),
  7956. m;
  7957. f ? (m = f.getContext("2d"), m.clearRect(0, 0, h, k)) : (f = b.Sb("canvas"), f.width = h, f.height = k, m = f.getContext("2d"));
  7958. m.save();
  7959. m.globalCompositeOperation = "lighter";
  7960. var p = m.globalAlpha;
  7961. 0 < a && (m.globalAlpha = a * p, m.drawImage(c[0], e.x, e.y, h, k, 0, 0, h, k));
  7962. 0 < g && (m.globalAlpha = g * p, m.drawImage(c[1], e.x, e.y, h, k, 0, 0, h, k));
  7963. 0 < d && (m.globalAlpha = d * p, m.drawImage(c[2], e.x,
  7964. e.y, h, k, 0, 0, h, k));
  7965. 1 > a + g + d && (m.globalAlpha = p, m.drawImage(c[3], e.x, e.y, h, k, 0, 0, h, k));
  7966. m.restore();
  7967. return f
  7968. };
  7969. b.Yo = function(a) {
  7970. function c() {
  7971. var c = b.Yo,
  7972. e = a.width,
  7973. h = a.height;
  7974. d[0].width = e;
  7975. d[0].height = h;
  7976. d[1].width = e;
  7977. d[1].height = h;
  7978. d[2].width = e;
  7979. d[2].height = h;
  7980. d[3].width = e;
  7981. d[3].height = h;
  7982. c.canvas.width = e;
  7983. c.canvas.height = h;
  7984. var k = c.canvas.getContext("2d");
  7985. k.drawImage(a, 0, 0);
  7986. c.oG.width = e;
  7987. c.oG.height = h;
  7988. for (var k = k.getImageData(0, 0, e, h).data, m = 0; 4 > m; m++) {
  7989. var p = d[m].getContext("2d");
  7990. p.getImageData(0, 0, e, h).data;
  7991. c.IP.drawImage(a, 0, 0);
  7992. for (var r = c.IP.getImageData(0, 0, e, h), s = r.data, u = 0; u < k.length; u += 4) s[u] = 0 === m ? k[u] : 0, s[u +
  7993. 1] = 1 === m ? k[u + 1] : 0, s[u + 2] = 2 === m ? k[u + 2] : 0, s[u + 3] = k[u + 3];
  7994. p.putImageData(r, 0, 0)
  7995. }
  7996. a.onload = null
  7997. }
  7998. if (a.nM) return a.nM;
  7999. var d = [b.Sb("canvas"), b.Sb("canvas"), b.Sb("canvas"), b.Sb("canvas")];
  8000. try {
  8001. c()
  8002. } catch (e) {
  8003. a.onload = c
  8004. }
  8005. return a.nM = d
  8006. };
  8007. b.Yo.canvas = b.Sb("canvas");
  8008. b.Yo.oG = b.Sb("canvas");
  8009. b.Yo.IP = b.Yo.oG.getContext("2d");
  8010. b.lE = function(a, c) {
  8011. if (!a) return null;
  8012. if (!c) return a;
  8013. var d = b.Sb("canvas");
  8014. d.width = c.width;
  8015. d.height = c.height;
  8016. var e = d.getContext("2d");
  8017. e.translate(d.width / 2, d.height / 2);
  8018. e.rotate(-1.5707963267948966);
  8019. e.drawImage(a, c.x, c.y, c.height, c.width, -c.height / 2, -c.width / 2, c.height, c.width);
  8020. return d
  8021. };
  8022. b.N = b.k.extend({
  8023. dirty: !1,
  8024. atlasIndex: 0,
  8025. textureAtlas: null,
  8026. V: null,
  8027. nh: null,
  8028. fi: null,
  8029. Nk: !1,
  8030. nm: null,
  8031. p: null,
  8032. G: null,
  8033. ia: null,
  8034. Ec: !1,
  8035. Hb: null,
  8036. xh: null,
  8037. Oa: !1,
  8038. Lb: !1,
  8039. Mb: !1,
  8040. ma: !1,
  8041. gb: null,
  8042. xv: null,
  8043. vb: "Sprite",
  8044. HK: b.color.WHITE,
  8045. kt: function() {
  8046. return this.ma
  8047. },
  8048. $d: function(a, c) {
  8049. this.gb || (this.gb = []);
  8050. this.gb.push({
  8051. Bh: a,
  8052. Uf: c
  8053. })
  8054. },
  8055. Sd: function() {
  8056. if (this.gb) {
  8057. for (var a = this.gb, c = 0, d = a.length; c < d; c++) {
  8058. var e = a[c];
  8059. e.Bh.call(e.Uf, this)
  8060. }
  8061. a.length = 0
  8062. }
  8063. },
  8064. hF: function() {
  8065. return this.dirty
  8066. },
  8067. bP: function(a) {
  8068. this.dirty = a
  8069. },
  8070. K1: function() {
  8071. return this.Ec
  8072. },
  8073. $o: function() {
  8074. return this.atlasIndex
  8075. },
  8076. QF: function(a) {
  8077. this.atlasIndex = a
  8078. },
  8079. uN: function() {
  8080. return O(this.ia.x, this.ia.y, this.ia.width, this.ia.height)
  8081. },
  8082. ME: function() {
  8083. return this.textureAtlas
  8084. },
  8085. eG: function(a) {
  8086. this.textureAtlas = a
  8087. },
  8088. E0: function() {
  8089. return C(this.Hb)
  8090. },
  8091. iW: function() {
  8092. return this.Hb.x
  8093. },
  8094. jW: function() {
  8095. return this.Hb.y
  8096. },
  8097. Dh: function() {
  8098. return this.p
  8099. },
  8100. Ci: function(a) {
  8101. b.assert(a, b.e.mT);
  8102. a.ma || (this.ma = !1, a.$d(this.eD, this));
  8103. var c = b.A === b.Ba ? !1 : a.le,
  8104. c = this.qa(a.za(), a.Gh(), c);
  8105. this.nl(a);
  8106. return c
  8107. },
  8108. eD: null,
  8109. $E: function(a) {
  8110. b.assert(a, b.e.nT);
  8111. var c = b.Rj.Bj(a);
  8112. b.assert(c, a + b.e.oT);
  8113. return this.Ci(c)
  8114. },
  8115. Lka: function(a) {
  8116. this.textureAtlas = a.textureAtlas;
  8117. this.V = a
  8118. },
  8119. iG: function(a) {
  8120. this.ia.x = a.x;
  8121. this.ia.y = a.y;
  8122. this.ia.width = a.width;
  8123. this.ia.height = a.height
  8124. },
  8125. Wc: function() {
  8126. if (this.Yd) {
  8127. var a = this.t,
  8128. c = a.length,
  8129. d, e, f;
  8130. for (d = 1; d < c; d++) {
  8131. f = a[d];
  8132. for (e = d - 1; 0 <= e;) {
  8133. if (f.Bb < a[e].Bb) a[e + 1] = a[e];
  8134. else if (f.Bb === a[e].Bb && f.arrivalOrder < a[e].arrivalOrder) a[e + 1] = a[e];
  8135. else break;
  8136. e--
  8137. }
  8138. a[e + 1] = f
  8139. }
  8140. this.V && this.sg(a, b.k.zf.Wc);
  8141. this.Yd = !1
  8142. }
  8143. },
  8144. vp: function(a,
  8145. c) {
  8146. b.assert(a, b.e.tT); - 1 === this.t.indexOf(a) ? b.log(b.e.sT) : c !== a.zIndex && (this.V && !this.Yd && (this.WC(), this.V.LO(!0)), b.k.prototype.vp.call(this, a, c))
  8147. },
  8148. removeChild: function(a, c) {
  8149. this.V && this.V.Sm(a);
  8150. b.k.prototype.removeChild.call(this, a, c)
  8151. },
  8152. ry: function(a) {
  8153. b.k.prototype.ry.call(this, a);
  8154. this.SF(!0)
  8155. },
  8156. Lg: function(a) {
  8157. var c = this.t,
  8158. d = this.V;
  8159. if (d && null != c)
  8160. for (var e = 0, f = c.length; e < f; e++) d.Sm(c[e]);
  8161. b.k.prototype.Lg.call(this, a);
  8162. this.fi = !1
  8163. },
  8164. SF: function(a) {
  8165. this.dirty = this.nh = a;
  8166. a = this.t;
  8167. for (var c, d = a ? a.length :
  8168. 0, e = 0; e < d; e++) c = a[e], c instanceof b.N && c.SF(!0)
  8169. },
  8170. Ha: function(a) {
  8171. b.k.prototype.Ha.call(this);
  8172. a || !this.V || this.nh || (this.fi ? this.SF(!0) : this.dirty = this.nh = !0)
  8173. },
  8174. dx: function(a) {
  8175. this.V ? b.log(b.e.kT) : b.k.prototype.dx.call(this, a)
  8176. },
  8177. gy: function(a) {
  8178. this.Lb != a && (this.Lb = a, this.tb(this.ia, this.Ec, this.O), this.Ha(!0))
  8179. },
  8180. UF: function(a) {
  8181. this.Mb != a && (this.Mb = a, this.tb(this.ia, this.Ec, this.O), this.Ha(!0))
  8182. },
  8183. D1: function() {
  8184. return this.Lb
  8185. },
  8186. E1: function() {
  8187. return this.Mb
  8188. },
  8189. Ue: null,
  8190. Wf: function() {
  8191. return this.Oa
  8192. },
  8193. Bc: null,
  8194. Eia: function(a,
  8195. c) {
  8196. b.assert(a, b.e.xT);
  8197. var d = b.ww.SM(a);
  8198. d ? (d = d.Vd[c]) ? this.nl(d.Bj()) : b.log(b.e.wT) : b.log(b.e.vT)
  8199. },
  8200. yE: function() {
  8201. return this.V
  8202. },
  8203. WC: function() {
  8204. if (!this.Yd) {
  8205. this.Yd = !0;
  8206. for (var a = this.Sc; a && a != this.V;) a.WC(), a = a.parent
  8207. }
  8208. },
  8209. za: function() {
  8210. return this.G
  8211. },
  8212. Ob: null,
  8213. Lv: null,
  8214. Ie: !1,
  8215. Pq: !1,
  8216. ko: !1,
  8217. xc: null,
  8218. im: null,
  8219. iB: null,
  8220. ctor: null,
  8221. yL: function(a, c, d) {
  8222. if (void 0 === a) b.N.prototype.da.call(this);
  8223. else if ("string" === typeof a) "#" === a[0] ? (a = b.Rj.Bj(a.substr(1, a.length - 1)), this.Ci(a)) : b.N.prototype.da.call(this, a, c);
  8224. else if ("object" ===
  8225. typeof a)
  8226. if (a instanceof b.aa) this.qa(a, c, d);
  8227. else if (a instanceof b.Be) this.Ci(a);
  8228. else if (a instanceof HTMLImageElement || a instanceof HTMLCanvasElement) c = new b.aa, c.Kc(a), c.rb(), this.qa(c)
  8229. },
  8230. J0: function() {
  8231. return this.Ob
  8232. },
  8233. Se: null,
  8234. da: null,
  8235. bl: function(a, c) {
  8236. b.assert(a, b.e.lT);
  8237. var d = b.Da.Ym(a);
  8238. if (d) {
  8239. if (!c) {
  8240. var e = d.se();
  8241. c = O(0, 0, e.width, e.height)
  8242. }
  8243. return this.qa(d, c)
  8244. }
  8245. d = b.Da.Hc(a);
  8246. return this.qa(d, c || O(0, 0, d.O.width, d.O.height))
  8247. },
  8248. qa: null,
  8249. mw: null,
  8250. tb: null,
  8251. Ze: null,
  8252. X: null,
  8253. pt: function() {
  8254. var a = this.ya,
  8255. c = this.fb,
  8256. a = {
  8257. r: a.r,
  8258. g: a.g,
  8259. b: a.b,
  8260. a: c
  8261. };
  8262. this.Oa && (a.r *= c / 255, a.g *= c / 255, a.b *= c / 255);
  8263. c = this.Ob;
  8264. c.C.s = a;
  8265. c.L.s = a;
  8266. c.K.s = a;
  8267. c.J.s = a;
  8268. this.V && (this.atlasIndex != b.N.gz ? this.textureAtlas.Ay(c, this.atlasIndex) : this.dirty = !0);
  8269. this.Ie = !0
  8270. },
  8271. Sa: null,
  8272. cb: null,
  8273. Nc: null,
  8274. nl: null,
  8275. V3: function(a) {
  8276. b.log(b.e.uT);
  8277. this.nl(a)
  8278. },
  8279. UN: null,
  8280. WZ: function() {
  8281. return b.Be.create(this.G, b.Zs(this.ia), this.Ec, b.Y2(this.xh), b.T4(this.O))
  8282. },
  8283. ml: null,
  8284. Ya: null,
  8285. Qf: function() {
  8286. this.V ? b.log(b.e.dT) : this.G && this.G.Ai() ? (this.p.src = b.dc, this.p.S = b.cc, this.opacityModifyRGB = !0) : (this.p.src = b.SRC_ALPHA, this.p.S = b.ONE_MINUS_SRC_ALPHA, this.opacityModifyRGB = !1)
  8287. },
  8288. ee: function() {
  8289. var a, c = this.G,
  8290. d = this.im;
  8291. c && d.bn && this.xc && (a = c.Wa) && (this.Pq = !0, a instanceof HTMLCanvasElement && !this.Ec && !this.xv ? b.Hm(this.xc.Wa, this.ya, d, a) : (a = b.Hm(this.xc.Wa, this.ya, d), c = new b.aa, c.Kc(a), c.rb(), this.texture = c))
  8292. },
  8293. qL: function(a) {
  8294. a = b.Zs(a);
  8295. var c = this.V ? this.textureAtlas.texture : this.G;
  8296. if (c) {
  8297. var d = c.pixelsWidth,
  8298. e = c.pixelsHeight,
  8299. f, g = this.Ob;
  8300. this.Ec ? (b.jn ? (c = (2 * a.x + 1) / (2 * d), d = c + (2 * a.height - 2) / (2 * d),
  8301. f = (2 * a.y + 1) / (2 * e), a = f + (2 * a.width - 2) / (2 * e)) : (c = a.x / d, d = (a.x + a.height) / d, f = a.y / e, a = (a.y + a.width) / e), this.Lb && (e = f, f = a, a = e), this.Mb && (e = c, c = d, d = e), g.C.m.fa = c, g.C.m.ga = f, g.L.m.fa = c, g.L.m.ga = a, g.K.m.fa = d, g.K.m.ga = f, g.J.m.fa = d, g.J.m.ga = a) : (b.jn ? (c = (2 * a.x + 1) / (2 * d), d = c + (2 * a.width - 2) / (2 * d), f = (2 * a.y + 1) / (2 * e), a = f + (2 * a.height - 2) / (2 * e)) : (c = a.x / d, d = (a.x + a.width) / d, f = a.y / e, a = (a.y + a.height) / e), this.Lb && (e = c, c = d, d = e), this.Mb && (e = f, f = a, a = e), g.C.m.fa = c, g.C.m.ga = a, g.L.m.fa = d, g.L.m.ga = a, g.K.m.fa = c, g.K.m.ga = f, g.J.m.fa =
  8302. d, g.J.m.ga = f);
  8303. this.Ie = !0
  8304. }
  8305. },
  8306. Y: null
  8307. });
  8308. b.N.create = function(a, c, d) {
  8309. return new b.N(a, c, d)
  8310. };
  8311. b.N.jE = b.N.create;
  8312. b.N.G$ = b.N.create;
  8313. b.N.F$ = b.N.create;
  8314. b.N.gz = -1;
  8315. b.A === b.Ba ? (n = b.N.prototype, n.eD = function(a) {
  8316. this.Ha(!0);
  8317. this.tb(a.Gh(), a.le, a.cp());
  8318. a = this.color;
  8319. 255 === a.r && 255 === a.g && 255 === a.b || this.ee();
  8320. this.Sd()
  8321. }, n.Ue = function(a) {
  8322. this.Oa !== a && (this.Oa = a, this.Ha(!0))
  8323. }, n.Bc = function(a) {
  8324. b.k.prototype.Bc.call(this, a);
  8325. this.ti()
  8326. }, n.ctor = function(a, c, d) {
  8327. b.k.prototype.ctor.call(this);
  8328. this.Nk = !1;
  8329. this.Hb = C(0, 0);
  8330. this.xh = C(0, 0);
  8331. this.p = {
  8332. src: b.dc,
  8333. S: b.cc
  8334. };
  8335. this.ia = O(0, 0, 0, 0);
  8336. this.xv = !1;
  8337. this.ma = !0;
  8338. this.im = {
  8339. x: 0,
  8340. y: 0,
  8341. width: 0,
  8342. height: 0,
  8343. bn: !1
  8344. };
  8345. this.iB = N(0, 0);
  8346. this.yL(a, c, d)
  8347. }, n.Se =
  8348. function(a, c) {
  8349. var d = this.p;
  8350. void 0 === c ? (d.src = a.src, d.S = a.S) : (d.src = a, d.S = c);
  8351. this.ko = d && (d.src == b.SRC_ALPHA && d.S == b.ONE || d.src == b.ONE && d.S == b.ONE)
  8352. }, n.da = function() {
  8353. if (0 < arguments.length) return this.bl(arguments[0], arguments[1]);
  8354. b.k.prototype.da.call(this);
  8355. this.dirty = this.nh = !1;
  8356. this.Oa = !0;
  8357. this.p.src = b.dc;
  8358. this.p.S = b.cc;
  8359. this.texture = null;
  8360. this.ma = !0;
  8361. this.Lb = this.Mb = !1;
  8362. this.anchorY = this.anchorX = 0.5;
  8363. this.Hb.x = 0;
  8364. this.Hb.y = 0;
  8365. this.fi = !1;
  8366. this.tb(O(0, 0, 0, 0), !1, N(0, 0));
  8367. return !0
  8368. }, n.qa = function(a, c, d) {
  8369. b.assert(0 !=
  8370. arguments.length, b.e.vQ);
  8371. if ((d = d || !1) && a.wc) {
  8372. var e = a.Wa,
  8373. e = b.lE(e, c),
  8374. f = new b.aa;
  8375. f.Kc(e);
  8376. f.rb();
  8377. a = f;
  8378. this.ia = O(0, 0, c.width, c.height)
  8379. }
  8380. if (!b.k.prototype.da.call(this)) return !1;
  8381. this.V = null;
  8382. this.dirty = this.nh = !1;
  8383. this.Oa = !0;
  8384. this.p.src = b.dc;
  8385. this.p.S = b.cc;
  8386. this.Lb = this.Mb = !1;
  8387. this.anchorY = this.anchorX = 0.5;
  8388. this.Hb.x = 0;
  8389. this.Hb.y = 0;
  8390. this.fi = !1;
  8391. this.ma = e = a.wc;
  8392. if (!e) return this.Ec = d, c && (this.ia.x = c.x, this.ia.y = c.y, this.ia.width = c.width, this.ia.height = c.height), a.$d(this.mw, this), !0;
  8393. c || (c = O(0, 0, a.width, a.height));
  8394. a &&
  8395. a.url && (e = c.y + c.height, c.x + c.width > a.width && b.error(b.e.Iz, a.url), e > a.height && b.error(b.e.Hz, a.url));
  8396. this.texture = this.xc = a;
  8397. this.tb(c, d);
  8398. this.batchNode = null;
  8399. return !0
  8400. }, n.mw = function(a) {
  8401. if (!this.ma) {
  8402. this.ma = !0;
  8403. var c = this.ia;
  8404. c ? b.zC(c) && (c.width = a.width, c.height = a.height) : c = O(0, 0, a.width, a.height);
  8405. this.texture = this.xc = a;
  8406. this.tb(c, this.Ec);
  8407. a = this.ya;
  8408. 255 == a.r && 255 == a.g && 255 == a.b || this.ee();
  8409. this.batchNode = this.V;
  8410. this.Sd()
  8411. }
  8412. }, n.tb = function(a, c, d) {
  8413. this.Ec = c || !1;
  8414. this.Kd(d || a);
  8415. this.iG(a);
  8416. c = this.im;
  8417. d = b.pb();
  8418. c.x =
  8419. 0 | a.x * d;
  8420. c.y = 0 | a.y * d;
  8421. c.width = 0 | a.width * d;
  8422. c.height = 0 | a.height * d;
  8423. c.bn = !(0 === c.width || 0 === c.height || 0 > c.x || 0 > c.y);
  8424. a = this.xh;
  8425. this.Lb && (a.x = -a.x);
  8426. this.Mb && (a.y = -a.y);
  8427. this.Hb.x = a.x + (this.O.width - this.ia.width) / 2;
  8428. this.Hb.y = a.y + (this.O.height - this.ia.height) / 2;
  8429. this.V && (this.dirty = !0)
  8430. }, n.Ze = function() {
  8431. if (this.dirty) {
  8432. var a = this.Sc;
  8433. !this.lc || a && a != this.V && a.Nk ? this.Nk = !0 : (this.Nk = !1, this.nm = a && a != this.V ? b.tm(this.np(), a.nm) : this.np());
  8434. this.dirty = this.nh = !1
  8435. }
  8436. this.fi && this.sg(this.t, b.k.zf.Ze)
  8437. }, n.X = function(a, c,
  8438. d) {
  8439. b.assert(a, b.e.tQ);
  8440. null == c && (c = a.Bb);
  8441. null == d && (d = a.tag);
  8442. b.k.prototype.X.call(this, a, c, d);
  8443. this.fi = !0
  8444. }, n.Sa = function(a) {
  8445. b.k.prototype.Sa.call(this, a);
  8446. this.ti()
  8447. }, n.cb = function(a) {
  8448. var c = this.color;
  8449. this.HK = c;
  8450. c.r === a.r && c.g === a.g && c.b === a.b || b.k.prototype.cb.call(this, a)
  8451. }, n.Nc = function(a) {
  8452. b.k.prototype.Nc.call(this, a);
  8453. a = this.HK;
  8454. var c = this.ya;
  8455. if (a.r !== c.r || a.g !== c.g || a.b !== c.b) this.ee(), this.ti()
  8456. }, n.nl = function(a) {
  8457. var c = this;
  8458. "string" == typeof a && (a = b.Rj.Bj(a), b.assert(a, b.e.yQ));
  8459. c.Ha(!0);
  8460. var d = a.Km();
  8461. c.xh.x = d.x;
  8462. c.xh.y = d.y;
  8463. c.Ec = a.le;
  8464. var d = a.za(),
  8465. e = a.ma;
  8466. e || (c.ma = !1, a.$d(function(a) {
  8467. c.ma = !0;
  8468. var d = a.za();
  8469. d != c.G && (c.texture = d);
  8470. c.tb(a.Gh(), a.le, a.cp());
  8471. c.Sd()
  8472. }, c));
  8473. d != c.G && (c.texture = d);
  8474. c.Ec && (c.xc = d);
  8475. c.tb(a.Gh(), c.Ec, a.cp());
  8476. c.Pq = !1;
  8477. e && (a = c.color, 255 === a.r && 255 === a.g && 255 === a.b || c.ee())
  8478. }, n.UN = function(a) {
  8479. return a.za() != this.G ? !1 : b.FO(a.Gh(), this.ia)
  8480. }, n.ml = function(a) {
  8481. (this.V = a) ? (this.nm = {
  8482. a: 1,
  8483. b: 0,
  8484. B: 0,
  8485. H: 1,
  8486. Ia: 0,
  8487. Ja: 0
  8488. }, this.textureAtlas = this.V.textureAtlas) : (this.atlasIndex = b.N.gz, this.textureAtlas = null,
  8489. this.dirty = this.nh = !1)
  8490. }, n.Ya = function(a) {
  8491. a && "string" === typeof a ? (a = b.Da.Hc(a), this.Ya(a), a = a.se(), this.tb(O(0, 0, a.width, a.height))) : (b.assert(!a || a instanceof b.aa, b.e.zQ), this.G != a && (a && a.Wa instanceof HTMLImageElement && (this.xc = a), this.G = a))
  8492. }, n.Y = function(a) {
  8493. if (this.ma) {
  8494. a = a || b.l;
  8495. this.ko && (a.globalCompositeOperation = "lighter");
  8496. var c = b.view.ka,
  8497. d = b.view.La;
  8498. a.globalAlpha = this.fb / 255;
  8499. var e = this.ia,
  8500. f = this.O,
  8501. g = this.Hb,
  8502. h = this.iB,
  8503. k = 0 | g.x,
  8504. m = -g.y - e.height,
  8505. p = this.im;
  8506. h.width = e.width * c;
  8507. h.height = e.height * d;
  8508. if (this.Lb ||
  8509. this.Mb) a.save(), this.Lb && (k = -g.x - e.width, a.scale(-1, 1)), this.Mb && (m = g.y, a.scale(1, -1));
  8510. k *= c;
  8511. m *= d;
  8512. this.G && p.bn ? (f = this.G.Wa, this.Pq ? a.drawImage(f, 0, 0, p.width, p.height, k, m, h.width, h.height) : a.drawImage(f, p.x, p.y, p.width, p.height, k, m, h.width, h.height)) : !this.G && p.bn && (h = this.color, a.fillStyle = "rgba(" + h.r + "," + h.g + "," + h.b + ",1)", a.fillRect(k, m, f.width * c, f.height * d));
  8513. 1 === b.Yj || this.$C ? (a.strokeStyle = "rgba(0,255,0,1)", k /= c, m = -(m / d), b.Fe.ae([C(k, m), C(k + e.width, m), C(k + e.width, m - e.height), C(k, m - e.height)],
  8514. 4, !0)) : 2 === b.Yj && (a.strokeStyle = "rgba(0,255,0,1)", c = this.ia, m = -m, b.Fe.ae([C(k, m), C(k + c.width, m), C(k + c.width, m - c.height), C(k, m - c.height)], 4, !0));
  8515. (this.Lb || this.Mb) && a.restore();
  8516. b.sf++
  8517. }
  8518. }, b.hb.hw || (n.ee = function() {
  8519. var a, c = this.G,
  8520. d = this.im;
  8521. c && d.bn && this.xc && (a = c.Wa) && (c = b.Da.Ww(this.xc.Wa)) && (this.Pq = !0, a instanceof HTMLCanvasElement && !this.Ec && !this.xv ? b.Gm(a, c, this.ya, d, a) : (a = b.Gm(a, c, this.ya, d), c = new b.aa, c.Kc(a), c.rb(), this.texture = c))
  8522. }), delete n) : (b.assert("function" === typeof b.F.AA, b.e.jd, "SpritesWebGL.js"),
  8523. b.F.AA(), delete b.F.AA);
  8524. b.assert("function" === typeof b.F.Dz, b.e.jd, "SpritesPropertyDefine.js");
  8525. b.F.Dz();
  8526. delete b.F.Dz;
  8527. b.Qy = 29;
  8528. b.Ae = b.k.extend({
  8529. textureAtlas: null,
  8530. p: null,
  8531. Bd: null,
  8532. vb: "SpriteBatchNode",
  8533. $Y: function(a, c, d) {
  8534. b.assert(a, b.e.YS);
  8535. if (!(a instanceof b.N)) return b.log(b.e.XS), null;
  8536. a.atlasIndex = c;
  8537. var e = 0,
  8538. f = this.Bd;
  8539. if (f && 0 < f.length)
  8540. for (var g = 0; g < f.length; g++) {
  8541. var h = f[g];
  8542. h && h.atlasIndex >= c && ++e
  8543. }
  8544. f.splice(e, 0, a);
  8545. b.k.prototype.X.call(this, a, c, d);
  8546. this.LO(!1);
  8547. return this
  8548. },
  8549. ME: function() {
  8550. return this.textureAtlas
  8551. },
  8552. eG: function(a) {
  8553. a != this.textureAtlas && (this.textureAtlas = a)
  8554. },
  8555. a0: function() {
  8556. return this.Bd
  8557. },
  8558. bl: function(a, c) {
  8559. var d = b.Da.Ym(a);
  8560. d || (d = b.Da.Hc(a));
  8561. return this.qa(d, c)
  8562. },
  8563. ti: function() {
  8564. this.tg = !0
  8565. },
  8566. da: function(a, c) {
  8567. var d = b.Da.Ym(a);
  8568. d || (d = b.Da.Hc(a));
  8569. return this.qa(d, c)
  8570. },
  8571. gx: function() {
  8572. var a = this.textureAtlas.capacity,
  8573. c = Math.floor(4 * (a + 1) / 3);
  8574. b.log(b.e.ZS, a, c);
  8575. this.textureAtlas.JF(c) || b.log(b.e.$S)
  8576. },
  8577. o3: function(a, c) {
  8578. this.removeChild(this.t[a], c)
  8579. },
  8580. DO: function(a, c) {
  8581. var d = a.children;
  8582. if (d && 0 < d.length)
  8583. for (var e = 0; e < d.length; e++) {
  8584. var f = d[e];
  8585. f && 0 > f.zIndex && (c = this.DO(f, c))
  8586. }!a == this && (a.atlasIndex = c, c++);
  8587. if (d && 0 < d.length)
  8588. for (e = 0; e < d.length; e++)(f =
  8589. d[e]) && 0 <= f.zIndex && (c = this.DO(f, c));
  8590. return c
  8591. },
  8592. VE: function(a) {
  8593. var c = a.children;
  8594. return c && 0 != c.length ? this.VE(c[c.length - 1]) : a.atlasIndex
  8595. },
  8596. y2: function(a) {
  8597. var c = a.children;
  8598. return c && 0 != c.length ? this.y2(c[c.length - 1]) : a.atlasIndex
  8599. },
  8600. qZ: function(a, c) {
  8601. var d = a.parent,
  8602. e = d.children,
  8603. f = e.indexOf(a),
  8604. g = null;
  8605. 0 < f && f < b.tI && (g = e[f - 1]);
  8606. return d == this ? 0 == f ? 0 : this.VE(g) + 1 : 0 == f ? 0 > c ? d.atlasIndex : d.atlasIndex + 1 : 0 > g.zIndex && 0 > c || 0 <= g.zIndex && 0 <= c ? this.VE(g) + 1 : d.atlasIndex + 1
  8607. },
  8608. LO: function(a) {
  8609. this.Yd = a
  8610. },
  8611. Se: function(a, c) {
  8612. this.p =
  8613. void 0 === c ? a : {
  8614. src: a,
  8615. S: c
  8616. }
  8617. },
  8618. Dh: function() {
  8619. return this.p
  8620. },
  8621. vp: function(a, c) {
  8622. b.assert(a, b.e.cT); - 1 === this.t.indexOf(a) ? b.log(b.e.bT) : c !== a.zIndex && (b.k.prototype.vp.call(this, a, c), this.Ha())
  8623. },
  8624. removeChild: function(a, c) {
  8625. null != a && (-1 === this.t.indexOf(a) ? b.log(b.e.aT) : (this.Sm(a), b.k.prototype.removeChild.call(this, a, c)))
  8626. },
  8627. bX: null,
  8628. Sk: null,
  8629. F9: !1,
  8630. xc: null,
  8631. ctor: null,
  8632. Rq: function(a, c) {
  8633. b.k.prototype.ctor.call(this);
  8634. var d;
  8635. c = c || b.Qy;
  8636. "string" == typeof a ? (d = b.Da.Ym(a)) || (d = b.Da.Hc(a)) : a instanceof b.aa && (d = a);
  8637. d && this.qa(d,
  8638. c)
  8639. },
  8640. Sq: function(a, c) {
  8641. b.k.prototype.ctor.call(this);
  8642. this.bX = new b.ba;
  8643. var d;
  8644. c = c || b.Qy;
  8645. "string" == typeof a ? (d = b.Da.Ym(a)) || (d = b.Da.Hc(a)) : a instanceof b.aa && (d = a);
  8646. d && this.qa(d, c)
  8647. },
  8648. WP: null,
  8649. PY: function(a, c) {
  8650. b.assert(a, b.e.AQ);
  8651. a instanceof b.N ? (a.batchNode = this, a.atlasIndex = c, a.dirty = !0, a.Ze()) : b.log(b.e.My)
  8652. },
  8653. QY: function(a, c) {
  8654. b.assert(a, b.e.My);
  8655. if (a instanceof b.N) {
  8656. for (var d = this.textureAtlas.capacity; c >= d || d == this.textureAtlas.totalQuads;) this.gx();
  8657. a.batchNode = this;
  8658. a.atlasIndex = c;
  8659. a.dirty = !0;
  8660. a.Ze()
  8661. } else b.log(b.e.My)
  8662. },
  8663. Rk: function(a, c) {
  8664. var d = this.Bd,
  8665. e = this.textureAtlas,
  8666. f = e.quads,
  8667. g = d[a],
  8668. h = b.vI(f[a]);
  8669. d[c].atlasIndex = a;
  8670. d[a] = d[c];
  8671. e.Ay(f[c], a);
  8672. d[c] = g;
  8673. e.Ay(h, c)
  8674. },
  8675. lx: null,
  8676. KW: function(a, c) {
  8677. b.assert(a, b.e.xQ);
  8678. a instanceof b.N ? (a.batchNode = this, a.atlasIndex = c, a.dirty = !0, a.Ze(), this.t.splice(c, 0, a)) : b.log(b.e.wQ)
  8679. },
  8680. LW: function(a, c) {
  8681. b.assert(a, b.e.rT);
  8682. if (a instanceof b.N) {
  8683. for (var d = this.textureAtlas; c >= d.capacity || d.capacity === d.totalQuads;) this.gx();
  8684. a.batchNode = this;
  8685. a.atlasIndex = c;
  8686. d.fF(a.quad, c);
  8687. a.dirty = !0;
  8688. a.Ze()
  8689. } else b.log(b.e.qT)
  8690. },
  8691. LL: function(a, c) {
  8692. var d = 0,
  8693. e = a.children;
  8694. e && (d = e.length);
  8695. var f = 0;
  8696. if (0 === d) f = a.atlasIndex, a.atlasIndex = c, a.arrivalOrder = 0, f != c && this.Rk(f, c), c++;
  8697. else {
  8698. f = !0;
  8699. 0 <= e[0].zIndex && (f = a.atlasIndex, a.atlasIndex = c, a.arrivalOrder = 0, f != c && this.Rk(f, c), c++, f = !1);
  8700. for (d = 0; d < e.length; d++) {
  8701. var g = e[d];
  8702. f && 0 <= g.zIndex && (f = a.atlasIndex, a.atlasIndex = c, a.arrivalOrder = 0, f != c && this.Rk(f, c), c++, f = !1);
  8703. c = this.LL(g, c)
  8704. }
  8705. f && (f = a.atlasIndex, a.atlasIndex = c, a.arrivalOrder = 0, f != c && this.Rk(f, c), c++)
  8706. }
  8707. return c
  8708. },
  8709. Qf: function() {
  8710. this.textureAtlas.texture.Ai() ||
  8711. (this.p.src = b.SRC_ALPHA, this.p.S = b.ONE_MINUS_SRC_ALPHA)
  8712. },
  8713. qa: null,
  8714. JB: function(a) {
  8715. this.t = [];
  8716. this.Bd = [];
  8717. this.p = new b.ec(b.dc, b.cc);
  8718. this.Sk = this.xc = a;
  8719. return !0
  8720. },
  8721. KB: function(a, c) {
  8722. this.t = [];
  8723. this.Bd = [];
  8724. this.p = new b.ec(b.dc, b.cc);
  8725. c = c || b.Qy;
  8726. this.textureAtlas = new b.Vh;
  8727. this.textureAtlas.qa(a, c);
  8728. this.Qf();
  8729. this.shaderProgram = b.Md.nc(b.Wi);
  8730. return !0
  8731. },
  8732. eF: function(a, c) {
  8733. a.batchNode = this;
  8734. a.atlasIndex = c;
  8735. a.dirty = !0;
  8736. var d = this.textureAtlas;
  8737. d.totalQuads >= d.capacity && this.gx();
  8738. d.fF(a.quad, c);
  8739. this.Bd.splice(c, 0, a);
  8740. var d = c +
  8741. 1,
  8742. e = this.Bd;
  8743. if (e && 0 < e.length)
  8744. for (; d < e.length; d++) e[d].atlasIndex++;
  8745. var e = a.children,
  8746. f;
  8747. if (e)
  8748. for (d = 0, l = e.length || 0; d < l; d++)(f = e[d]) && this.eF(f, this.qZ(f, f.zIndex))
  8749. },
  8750. appendChild: null,
  8751. NU: function(a) {
  8752. this.Yd = !0;
  8753. a.batchNode = this;
  8754. a.dirty = !0;
  8755. this.Bd.push(a);
  8756. a.atlasIndex = this.Bd.length - 1;
  8757. a = a.children;
  8758. for (var c = 0, d = a.length || 0; c < d; c++) this.appendChild(a[c])
  8759. },
  8760. OU: function(a) {
  8761. this.Yd = !0;
  8762. a.batchNode = this;
  8763. a.dirty = !0;
  8764. this.Bd.push(a);
  8765. var c = this.Bd.length - 1;
  8766. a.atlasIndex = c;
  8767. var d = this.textureAtlas;
  8768. d.totalQuads == d.capacity &&
  8769. this.gx();
  8770. d.fF(a.quad, c);
  8771. a = a.children;
  8772. c = 0;
  8773. for (d = a.length || 0; c < d; c++) this.appendChild(a[c])
  8774. },
  8775. Sm: null,
  8776. EX: function(a) {
  8777. a.batchNode = null;
  8778. var c = this.Bd,
  8779. d = c.indexOf(a);
  8780. if (-1 != d) {
  8781. c.splice(d, 1);
  8782. for (var e = c.length; d < e; ++d) c[d].atlasIndex--
  8783. }
  8784. if (a = a.children)
  8785. for (c = 0, d = a.length || 0; c < d; c++) a[c] && this.Sm(a[c])
  8786. },
  8787. FX: function(a) {
  8788. this.textureAtlas.KO(a.atlasIndex);
  8789. a.batchNode = null;
  8790. var c = this.Bd,
  8791. d = c.indexOf(a);
  8792. if (-1 != d) {
  8793. c.splice(d, 1);
  8794. for (var e = c.length; d < e; ++d) c[d].atlasIndex--
  8795. }
  8796. if (a = a.children)
  8797. for (c = 0, d = a.length || 0; c <
  8798. d; c++) a[c] && this.Sm(a[c])
  8799. },
  8800. za: null,
  8801. er: function() {
  8802. return this.Sk
  8803. },
  8804. EB: function() {
  8805. return this.textureAtlas.texture
  8806. },
  8807. Ya: null,
  8808. XC: function(a) {
  8809. this.Sk = a;
  8810. for (var c = this.t, d = 0; d < c.length; d++) c[d].texture = a
  8811. },
  8812. YC: function(a) {
  8813. this.textureAtlas.texture = a;
  8814. this.Qf()
  8815. },
  8816. R: null,
  8817. pm: function(a) {
  8818. var c = a || b.l;
  8819. if (this.lc) {
  8820. c.save();
  8821. this.transform(a);
  8822. var d = this.t;
  8823. if (d)
  8824. for (this.Wc(), a = 0; a < d.length; a++) d[a] && d[a].R(c);
  8825. c.restore()
  8826. }
  8827. },
  8828. as: function(a) {
  8829. a = a || b.l;
  8830. if (this.lc) {
  8831. b.Fj();
  8832. var c = this.grid;
  8833. c && c.vf() && (c.is(), this.xy());
  8834. this.Wc();
  8835. this.transform(a);
  8836. this.Y(a);
  8837. c && c.vf() && c.fs(this);
  8838. b.Ej();
  8839. this.arrivalOrder = 0
  8840. }
  8841. },
  8842. X: null,
  8843. HA: function(a, c, d) {
  8844. b.assert(null != a, b.e.uQ);
  8845. a instanceof b.N ? (c = null == c ? a.zIndex : c, d = null == d ? a.tag : d, b.k.prototype.X.call(this, a, c, d), this.appendChild(a), this.Ha()) : b.log(b.e.sQ)
  8846. },
  8847. IU: function(a, c, d) {
  8848. b.assert(null != a, b.e.jT);
  8849. a instanceof b.N ? a.texture != this.textureAtlas.texture ? b.log(b.e.iT) : (c = null == c ? a.zIndex : c, d = null == d ? a.tag : d, b.k.prototype.X.call(this, a, c, d), this.appendChild(a), this.Ha()) : b.log(b.e.hT)
  8850. },
  8851. Lg: null,
  8852. CX: function(a) {
  8853. var c = this.Bd;
  8854. if (c && 0 < c.length)
  8855. for (var d = 0, e = c.length; d < e; d++) c[d] && (c[d].batchNode = null);
  8856. b.k.prototype.Lg.call(this, a);
  8857. this.Bd.length = 0
  8858. },
  8859. DX: function(a) {
  8860. var c = this.Bd;
  8861. if (c && 0 < c.length)
  8862. for (var d = 0, e = c.length; d < e; d++) c[d] && (c[d].batchNode = null);
  8863. b.k.prototype.Lg.call(this, a);
  8864. this.Bd.length = 0;
  8865. this.textureAtlas.IO()
  8866. },
  8867. Wc: null,
  8868. vY: function() {
  8869. if (this.Yd) {
  8870. var a, c = 0,
  8871. d = this.t,
  8872. e = d.length,
  8873. f;
  8874. for (a = 1; a < e; a++) {
  8875. var g = d[a],
  8876. c = a - 1;
  8877. for (f = d[c]; 0 <= c && (g.Bb < f.Bb || g.Bb == f.Bb && g.arrivalOrder < f.arrivalOrder);) d[c +
  8878. 1] = f, c -= 1, f = d[c];
  8879. d[c + 1] = g
  8880. }
  8881. 0 < d.length && this.sg(d, b.k.zf.Wc);
  8882. this.Yd = !1
  8883. }
  8884. },
  8885. wY: function() {
  8886. if (this.Yd) {
  8887. var a = this.t,
  8888. c, d = 0,
  8889. e = a.length,
  8890. f;
  8891. for (c = 1; c < e; c++) {
  8892. var g = a[c],
  8893. d = c - 1;
  8894. for (f = a[d]; 0 <= d && (g.Bb < f.Bb || g.Bb == f.Bb && g.arrivalOrder < f.arrivalOrder);) a[d + 1] = f, d -= 1, f = a[d];
  8895. a[d + 1] = g
  8896. }
  8897. if (0 < a.length)
  8898. for (this.sg(a, b.k.zf.Wc), c = d = 0; c < a.length; c++) d = this.LL(a[c], d);
  8899. this.Yd = !1
  8900. }
  8901. },
  8902. Y: null,
  8903. aj: function() {
  8904. 0 !== this.textureAtlas.totalQuads && (this.Eb.Oc(), this.Eb.Ye(), this.sg(this.t, b.k.zf.Ze), b.Hh(this.p.src, this.p.S), this.textureAtlas.IM())
  8905. }
  8906. });
  8907. n = b.Ae.prototype;
  8908. b.A === b.U ? (n.ctor = n.Sq, n.WP = n.QY, n.lx = n.LW, n.qa = n.KB, n.appendChild = n.OU, n.Sm = n.FX, n.za = n.EB, n.Ya = n.YC, n.R = n.as, n.X = n.IU, n.Lg = n.DX, n.Wc = n.wY, n.Y = n.aj) : (n.ctor = n.Rq, n.WP = n.PY, n.lx = n.KW, n.qa = n.JB, n.appendChild = n.NU, n.Sm = n.EX, n.za = n.er, n.Ya = n.XC, n.R = n.pm, n.Lg = n.CX, n.X = n.HA, n.Wc = n.vY, n.Y = b.k.prototype.Y);
  8909. b.i(n, "texture", n.za, n.Ya);
  8910. b.i(n, "descendants", n.a0);
  8911. b.Ae.create = function(a, c) {
  8912. return new b.Ae(a, c)
  8913. };
  8914. b.Ae.jE = b.Ae.create;
  8915. b.oQ = b.N.extend({
  8916. be: null,
  8917. ce: null,
  8918. ctor: function() {
  8919. b.N.prototype.ctor.call(this);
  8920. var a = document.createElement("canvas");
  8921. a.width = a.height = 10;
  8922. this.be = a;
  8923. this.ce = a.getContext("2d");
  8924. var c = new b.aa;
  8925. c.Kc(a);
  8926. c.rb();
  8927. this.Ya(c)
  8928. },
  8929. hba: function() {
  8930. return this.ce
  8931. },
  8932. gba: function() {
  8933. return this.be
  8934. },
  8935. OO: function(a, c) {
  8936. void 0 === c && (c = a.height, a = a.width);
  8937. var d = this.be;
  8938. d.width = a;
  8939. d.height = c;
  8940. this.za().rb();
  8941. this.tb(O(0, 0, a, c), !1)
  8942. }
  8943. });
  8944. b.jg = b.oa.extend({
  8945. wo: null,
  8946. Ud: 0,
  8947. Io: null,
  8948. ctor: function(a, c, d) {
  8949. this.wo = a || null;
  8950. this.Ud = c || 0;
  8951. this.Io = d || null
  8952. },
  8953. j: function() {
  8954. var a = new b.jg;
  8955. a.Ci(this.wo.j(), this.Ud, this.Io);
  8956. return a
  8957. },
  8958. Hw: function() {
  8959. return b.j(this)
  8960. },
  8961. copy: function() {
  8962. var a = new b.jg;
  8963. a.Ci(this.wo.j(), this.Ud, this.Io);
  8964. return a
  8965. },
  8966. Ci: function(a, c, d) {
  8967. this.wo = a;
  8968. this.Ud = c;
  8969. this.Io = d;
  8970. return !0
  8971. },
  8972. Bj: function() {
  8973. return this.wo
  8974. },
  8975. nl: function(a) {
  8976. this.wo = a
  8977. },
  8978. vba: function() {
  8979. return this.Ud
  8980. },
  8981. Bia: function(a) {
  8982. this.Ud = a
  8983. },
  8984. uda: function() {
  8985. return this.Io
  8986. },
  8987. eka: function(a) {
  8988. this.Io =
  8989. a
  8990. }
  8991. });
  8992. b.jg.create = function(a, c, d) {
  8993. return new b.jg(a, c, d)
  8994. };
  8995. b.Pi = b.oa.extend({
  8996. Vd: null,
  8997. hj: 0,
  8998. bm: !1,
  8999. o: 0,
  9000. Ud: 0,
  9001. wi: 0,
  9002. ctor: function(a, c, d) {
  9003. this.Vd = [];
  9004. if (void 0 === a) this.ON(null, 0);
  9005. else {
  9006. var e = a[0];
  9007. e && (e instanceof b.Be ? this.ON(a, c, d) : e instanceof b.jg && this.hx(a, c, d))
  9008. }
  9009. },
  9010. Sba: function() {
  9011. return this.Vd
  9012. },
  9013. Nia: function(a) {
  9014. this.Vd = a
  9015. },
  9016. QD: function(a) {
  9017. var c = new b.jg;
  9018. c.Ci(a, 1, null);
  9019. this.Vd.push(c);
  9020. this.wi++
  9021. },
  9022. P9: function(a) {
  9023. a = b.Da.Hc(a);
  9024. var c = O(0, 0, 0, 0);
  9025. c.width = a.width;
  9026. c.height = a.height;
  9027. a = b.Be.create(a, c);
  9028. this.QD(a)
  9029. },
  9030. Q9: function(a, c) {
  9031. var d = b.Be.create(a, c);
  9032. this.QD(d)
  9033. },
  9034. hx: function(a,
  9035. c, d) {
  9036. b.Lo(a, b.jg);
  9037. this.Ud = c;
  9038. this.hj = void 0 === d ? 1 : d;
  9039. this.wi = 0;
  9040. c = this.Vd;
  9041. for (d = c.length = 0; d < a.length; d++) {
  9042. var e = a[d];
  9043. c.push(e);
  9044. this.wi += e.Ud
  9045. }
  9046. return !0
  9047. },
  9048. j: function() {
  9049. var a = new b.Pi;
  9050. a.hx(this.WI(), this.Ud, this.hj);
  9051. a.ny(this.bm);
  9052. return a
  9053. },
  9054. Hw: function() {
  9055. var a = new b.Pi;
  9056. a.hx(this.WI(), this.Ud, this.hj);
  9057. a.ny(this.bm);
  9058. return a
  9059. },
  9060. WI: function() {
  9061. for (var a = [], c = 0; c < this.Vd.length; c++) a.push(this.Vd[c].j());
  9062. return a
  9063. },
  9064. copy: function() {
  9065. return this.Hw(null)
  9066. },
  9067. hca: function() {
  9068. return this.hj
  9069. },
  9070. Zia: function(a) {
  9071. this.hj = a
  9072. },
  9073. ny: function(a) {
  9074. this.bm =
  9075. a
  9076. },
  9077. Nca: function() {
  9078. return this.bm
  9079. },
  9080. ap: function() {
  9081. return this.wi * this.Ud
  9082. },
  9083. uba: function() {
  9084. return this.Ud
  9085. },
  9086. Aia: function(a) {
  9087. this.Ud = a
  9088. },
  9089. nda: function() {
  9090. return this.wi
  9091. },
  9092. ON: function(a, c, d) {
  9093. b.Lo(a, b.Be);
  9094. this.hj = void 0 === d ? 1 : d;
  9095. this.Ud = c || 0;
  9096. this.wi = 0;
  9097. c = this.Vd;
  9098. c.length = 0;
  9099. if (a) {
  9100. for (d = 0; d < a.length; d++) {
  9101. var e = a[d],
  9102. f = new b.jg;
  9103. f.Ci(e, 1, null);
  9104. c.push(f)
  9105. }
  9106. this.wi += a.length
  9107. }
  9108. return !0
  9109. },
  9110. $x: function() {},
  9111. Ki: function() {}
  9112. });
  9113. b.Pi.create = function(a, c, d) {
  9114. return new b.Pi(a, c, d)
  9115. };
  9116. b.Pi.D$ = b.Pi.create;
  9117. b.ww = {
  9118. vn: {},
  9119. TL: function(a, c) {
  9120. this.vn[c] = a
  9121. },
  9122. Kha: function(a) {
  9123. a && this.vn[a] && delete this.vn[a]
  9124. },
  9125. SM: function(a) {
  9126. return this.vn[a] ? this.vn[a] : null
  9127. },
  9128. HU: function(a, c) {
  9129. var d = a.animations;
  9130. if (d) {
  9131. var e = 1,
  9132. f = a.properties;
  9133. if (f)
  9134. for (var e = null != f.format ? parseInt(f.format) : e, f = f.spritesheets, g = b.Rj, h = b.path, k = 0; k < f.length; k++) g.WL(h.Oo(c, f[k]));
  9135. switch (e) {
  9136. case 1:
  9137. this.sX(d);
  9138. break;
  9139. case 2:
  9140. this.tX(d);
  9141. break;
  9142. default:
  9143. b.log(b.e.hZ)
  9144. }
  9145. } else b.log(b.e.gZ)
  9146. },
  9147. I9: function(a) {
  9148. b.assert(a, b.e.pZ);
  9149. var c = b.T.Hd(a);
  9150. c ? this.HU(c, a) : b.log(b.e.oZ)
  9151. },
  9152. sX: function(a) {
  9153. var c = b.Rj,
  9154. d;
  9155. for (d in a) {
  9156. var e = a[d],
  9157. f = e.frames,
  9158. e = parseFloat(e.delay) || 0,
  9159. g = null;
  9160. if (f) {
  9161. for (var g = [], h = 0; h < f.length; h++) {
  9162. var k = c.Bj(f[h]);
  9163. if (k) {
  9164. var m = new b.jg;
  9165. m.Ci(k, 1, null);
  9166. g.push(m)
  9167. } else b.log(b.e.jZ, d, f[h])
  9168. }
  9169. 0 === g.length ? b.log(b.e.kZ, d) : (g.length != f.length && b.log(b.e.lZ, d), g = b.Pi.create(g, e, 1), b.ww.TL(g, d))
  9170. } else b.log(b.e.iZ, d)
  9171. }
  9172. },
  9173. tX: function(a) {
  9174. var c = b.Rj,
  9175. d;
  9176. for (d in a) {
  9177. var e = a[d],
  9178. f = parseInt(e.loops),
  9179. f = e.loop ? b.qq : isNaN(f) ? 1 : f,
  9180. g = e.restoreOriginalFrame && !0 == e.restoreOriginalFrame ? !0 : !1,
  9181. h = e.frames;
  9182. if (h) {
  9183. for (var k = [], m = 0; m < h.length; m++) {
  9184. var p = h[m],
  9185. r = p.spriteframe,
  9186. s = c.Bj(r);
  9187. if (s) {
  9188. var r = parseFloat(p.delayUnits) || 0,
  9189. p = p.notification,
  9190. u = new b.jg;
  9191. u.Ci(s, r, p);
  9192. k.push(u)
  9193. } else b.log(b.e.nZ, d, r)
  9194. }
  9195. e = parseFloat(e.delayPerUnit) || 0;
  9196. h = new b.Pi;
  9197. h.hx(k, e, f);
  9198. h.ny(g);
  9199. b.ww.TL(h, d)
  9200. } else b.log(b.e.mZ, d)
  9201. }
  9202. },
  9203. nk: function() {
  9204. this.vn = {}
  9205. }
  9206. };
  9207. b.Be = b.oa.extend({
  9208. va: null,
  9209. Ek: null,
  9210. Ke: null,
  9211. le: !1,
  9212. ia: null,
  9213. zg: null,
  9214. Kf: null,
  9215. G: null,
  9216. Co: "",
  9217. ma: !1,
  9218. Zu: null,
  9219. ctor: function(a, c, d, e, f) {
  9220. this.va = C(0, 0);
  9221. this.zg = C(0, 0);
  9222. this.Ek = N(0, 0);
  9223. this.le = !1;
  9224. this.Kf = N(0, 0);
  9225. this.Co = "";
  9226. this.G = null;
  9227. this.ma = !1;
  9228. void 0 !== a && void 0 !== c && (void 0 === d || void 0 === e || void 0 === f ? this.qa(a, c) : this.qa(a, c, d, e, f))
  9229. },
  9230. kt: function() {
  9231. return this.ma
  9232. },
  9233. $d: function(a, c) {
  9234. null == this.Zu && (this.Zu = []);
  9235. this.Zu.push({
  9236. Bh: a,
  9237. Uf: c
  9238. })
  9239. },
  9240. Sd: function() {
  9241. var a = this.Zu;
  9242. if (a) {
  9243. for (var c = 0, d = a.length; c < d; c++) {
  9244. var e = a[c];
  9245. e.Bh.call(e.Uf, this)
  9246. }
  9247. a.length = 0
  9248. }
  9249. },
  9250. K0: function() {
  9251. var a = this.Ke;
  9252. return O(a.x, a.y, a.width, a.height)
  9253. },
  9254. vja: function(a) {
  9255. this.Ke || (this.Ke = O(0, 0, 0, 0));
  9256. this.Ke.x = a.x;
  9257. this.Ke.y = a.y;
  9258. this.Ke.width = a.width;
  9259. this.Ke.height = a.height;
  9260. this.ia = b.kl(a)
  9261. },
  9262. eea: function() {
  9263. return this.le
  9264. },
  9265. xja: function(a) {
  9266. this.le = a
  9267. },
  9268. Gh: function() {
  9269. var a = this.ia;
  9270. return O(a.x, a.y, a.width, a.height)
  9271. },
  9272. pP: function(a) {
  9273. this.ia || (this.ia = O(0, 0, 0, 0));
  9274. this.ia.x = a.x;
  9275. this.ia.y = a.y;
  9276. this.ia.width = a.width;
  9277. this.ia.height = a.height;
  9278. this.Ke = b.Zs(this.ia)
  9279. },
  9280. D0: function() {
  9281. return C(this.zg)
  9282. },
  9283. gja: function(a) {
  9284. this.zg.x = a.x;
  9285. this.zg.y = a.y;
  9286. b.jC(this.zg, this.va)
  9287. },
  9288. wca: function() {
  9289. return N(this.Kf)
  9290. },
  9291. jja: function(a) {
  9292. this.Kf.width = a.width;
  9293. this.Kf.height = a.height
  9294. },
  9295. cp: function() {
  9296. return N(this.Ek)
  9297. },
  9298. ija: function(a) {
  9299. this.Ek.width = a.width;
  9300. this.Ek.height = a.height
  9301. },
  9302. za: function() {
  9303. if (this.G) return this.G;
  9304. if ("" !== this.Co) {
  9305. var a = b.Da.Hc(this.Co);
  9306. a && (this.ma = a.wc);
  9307. return a
  9308. }
  9309. return null
  9310. },
  9311. Ya: function(a) {
  9312. if (this.G != a) {
  9313. var c = a.wc;
  9314. this.ma = c;
  9315. this.G = a;
  9316. c || a.$d(function(a) {
  9317. this.ma = !0;
  9318. if (this.le && b.A === b.Ba) {
  9319. var c = a.Wa,
  9320. c = b.lE(c, this.Gh()),
  9321. f = new b.aa;
  9322. f.Kc(c);
  9323. f.rb();
  9324. this.Ya(f);
  9325. c = this.Gh();
  9326. this.pP(O(0, 0, c.width, c.height))
  9327. }
  9328. c = this.ia;
  9329. 0 === c.width && 0 === c.height && (c = a.width, a = a.height, this.ia.width = c, this.ia.height = a, this.Ke = b.Zs(this.ia), this.Kf.width = this.Ke.width, this.Kf.height = this.Ke.height, this.Ek.width = c, this.Ek.height = a);
  9330. this.Sd()
  9331. }, this)
  9332. }
  9333. },
  9334. Km: function() {
  9335. return C(this.va)
  9336. },
  9337. ly: function(a) {
  9338. this.va.x = a.x;
  9339. this.va.y = a.y
  9340. },
  9341. j: function() {
  9342. var a = new b.Be;
  9343. a.qa(this.Co, this.Ke, this.le, this.zg, this.Kf);
  9344. a.Ya(this.G);
  9345. return a
  9346. },
  9347. Hw: function() {
  9348. var a = new b.Be;
  9349. a.qa(this.Co, this.Ke, this.le, this.zg, this.Kf);
  9350. a.Ya(this.G);
  9351. return a
  9352. },
  9353. copy: function() {
  9354. return this.Hw()
  9355. },
  9356. qa: function(a, c, d, e, f) {
  9357. 2 === arguments.length && (c = b.Zs(c));
  9358. e = e || C(0, 0);
  9359. f = f || c;
  9360. d = d || !1;
  9361. "string" == typeof a ? (this.G = null, this.Co = a) : a instanceof b.aa && this.Ya(a);
  9362. if ((a = this.za()) && a.url) {
  9363. var g, h;
  9364. d ? (g = c.x + c.height, h = c.y + c.width) : (g = c.x + c.width, h = c.y + c.height);
  9365. g > a.width && b.error(b.e.Iz, a.url);
  9366. h > a.height && b.error(b.e.Hz, a.url)
  9367. }
  9368. this.Ke = c;
  9369. this.ia = b.kl(c);
  9370. this.zg.x = e.x;
  9371. this.zg.y =
  9372. e.y;
  9373. b.jC(e, this.va);
  9374. this.Kf.width = f.width;
  9375. this.Kf.height = f.height;
  9376. b.xL(f, this.Ek);
  9377. this.le = d;
  9378. return !0
  9379. }
  9380. });
  9381. b.Be.create = function(a, c, d, e, f) {
  9382. return new b.Be(a, c, d, e, f)
  9383. };
  9384. b.Be.jE = b.Be.create;
  9385. b.Be.e9 = function(a, c, d, e, f) {
  9386. var g = new b.Be;
  9387. g.G = a;
  9388. g.Ke = c;
  9389. g.ia = b.kl(c);
  9390. g.zg.x = e.x;
  9391. g.zg.y = e.y;
  9392. b.jC(g.zg, g.va);
  9393. g.Kf.width = f.width;
  9394. g.Kf.height = f.height;
  9395. b.xL(g.Kf, g.Ek);
  9396. g.le = d;
  9397. return g
  9398. };
  9399. b.Rj = {
  9400. CI: /^\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*$/,
  9401. vU: /^\s*\{\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*,\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*\}\s*$/,
  9402. uh: {},
  9403. tj: {},
  9404. Yn: {},
  9405. YK: function(a) {
  9406. return (a = this.vU.exec(a)) ? O(parseFloat(a[1]), parseFloat(a[2]), parseFloat(a[3]), parseFloat(a[4])) : O(0, 0, 0, 0)
  9407. },
  9408. OK: function(a) {
  9409. return (a = this.CI.exec(a)) ? C(parseFloat(a[1]), parseFloat(a[2])) : C(0, 0)
  9410. },
  9411. aD: function(a) {
  9412. return (a = this.CI.exec(a)) ? N(parseFloat(a[1]), parseFloat(a[2])) :
  9413. N(0, 0)
  9414. },
  9415. ZV: function(a) {
  9416. var c = b.T.Hd(a);
  9417. b.assert(c, b.e.b5, a);
  9418. b.T.Ki(a);
  9419. if (c.fo) return this.Yn[a] = c;
  9420. var d = c.frames,
  9421. e = c.metadata || c.meta,
  9422. c = {},
  9423. f = {},
  9424. g = 0;
  9425. e && (g = e.format, g = 1 >= g.length ? parseInt(g) : g, f.m1 = e.textureFileName || e.textureFileName || e.image);
  9426. for (var h in d) {
  9427. var k = d[h];
  9428. if (k) {
  9429. e = {};
  9430. if (0 == g) {
  9431. e.rect = O(k.x, k.y, k.width, k.height);
  9432. e.cy = !1;
  9433. e.offset = C(k.offsetX, k.offsetY);
  9434. var m = k.originalWidth,
  9435. k = k.originalHeight;
  9436. m && k || b.log(b.e.a5);
  9437. m = Math.abs(m);
  9438. k = Math.abs(k);
  9439. e.size = N(m, k)
  9440. } else if (1 == g || 2 == g) e.rect = this.YK(k.frame),
  9441. e.cy = k.rotated || !1, e.offset = this.OK(k.offset), e.size = this.aD(k.sourceSize);
  9442. else if (3 == g) {
  9443. var m = this.aD(k.spriteSize),
  9444. p = this.YK(k.textureRect);
  9445. m && (p = O(p.x, p.y, m.width, m.height));
  9446. e.rect = p;
  9447. e.cy = k.textureRotated || !1;
  9448. e.offset = this.OK(k.spriteOffset);
  9449. e.size = this.aD(k.spriteSourceSize);
  9450. e.dZ = k.aliases
  9451. } else m = k.frame, p = k.sourceSize, h = k.filename || h, e.rect = O(m.x, m.y, m.w, m.h), e.cy = k.rotated || !1, e.offset = C(0, 0), e.size = N(p.w, p.h);
  9452. c[h] = e
  9453. }
  9454. }
  9455. return this.Yn[a] = {
  9456. fo: !0,
  9457. frames: c,
  9458. B2: f
  9459. }
  9460. },
  9461. WL: function(a, c) {
  9462. b.assert(a, b.e.d5);
  9463. var d = this.Yn[a] || b.T.Hd(a);
  9464. if (d && d.frames) {
  9465. var e = this.Yn[a] || this.ZV(a),
  9466. d = e.frames,
  9467. e = e.B2;
  9468. c ? c instanceof b.aa || ("string" == typeof c ? c = b.Da.Hc(c) : b.assert(0, b.e.e5)) : c = b.Da.Hc(b.path.Oo(a, e.m1 || ".png"));
  9469. var e = this.tj,
  9470. f = this.uh,
  9471. g;
  9472. for (g in d) {
  9473. var h = d[g],
  9474. k = f[g];
  9475. if (!k) {
  9476. k = b.Be.create(c, h.rect, h.cy, h.offset, h.size);
  9477. if (h = h.dZ)
  9478. for (var m = 0, p = h.length; m < p; m++) {
  9479. var r = h[m];
  9480. e[r] && b.log(b.e.c5, r);
  9481. e[r] = g
  9482. }
  9483. b.A === b.Ba && k.le && k.za().wc && (h = k.za().Wa, h = b.lE(h, k.K0()), m = new b.aa, m.Kc(h), m.rb(), k.Ya(m), h = k.ia, k.pP(O(0,
  9484. 0, h.width, h.height)));
  9485. f[g] = k
  9486. }
  9487. }
  9488. }
  9489. },
  9490. X8: function(a) {
  9491. a = a.frames;
  9492. for (var c in a) this.uh[c] && b.log(b.e.Z4, c)
  9493. },
  9494. QD: function(a, c) {
  9495. this.uh[c] = a
  9496. },
  9497. Qha: function() {
  9498. this.uh = {};
  9499. this.tj = {}
  9500. },
  9501. Pha: function(a) {
  9502. a && (this.tj[a] && delete this.tj[a], this.uh[a] && delete this.uh[a])
  9503. },
  9504. Rha: function(a) {
  9505. var c = this.uh,
  9506. d = this.tj;
  9507. if (a = this.Yn[a]) {
  9508. a = a.frames;
  9509. for (var e in a)
  9510. if (c[e]) {
  9511. delete c[e];
  9512. for (var f in d) d[f] == e && delete d[f]
  9513. }
  9514. }
  9515. },
  9516. Sha: function(a) {
  9517. var c = this.uh,
  9518. d = this.tj,
  9519. e;
  9520. for (e in c) {
  9521. var f = c[e];
  9522. if (f && f.za() == a) {
  9523. delete c[e];
  9524. for (var g in d) d[g] ==
  9525. e && delete d[g]
  9526. }
  9527. }
  9528. },
  9529. Bj: function(a) {
  9530. var c = this.uh[a];
  9531. if (!c) {
  9532. var d = this.tj[a];
  9533. d && ((c = this.uh[d.toString()]) || delete this.tj[a])
  9534. }
  9535. c || b.log(b.e.f5, a);
  9536. return c
  9537. },
  9538. nk: function() {
  9539. this.uh = {};
  9540. this.tj = {};
  9541. this.Yn = {}
  9542. }
  9543. };
  9544. b.Ro = {
  9545. Y6: 0,
  9546. d8: 1,
  9547. INT: 2,
  9548. T6: 3,
  9549. t6: 4,
  9550. rr: 0,
  9551. $W: 0,
  9552. pD: !1,
  9553. lw: !1,
  9554. nD: !1,
  9555. oD: !1,
  9556. qD: !1,
  9557. q9: 0,
  9558. WB: 0,
  9559. ru: "",
  9560. Xr: {},
  9561. fo: !1,
  9562. jr: function() {
  9563. var a = this.Xr;
  9564. a["cocos2d.x.version"] = b.Wy;
  9565. a["cocos2d.x.compiled_with_profiler"] = !1;
  9566. a["cocos2d.x.compiled_with_gl_state_cache"] = b.Wg;
  9567. this.fo = !0
  9568. },
  9569. mca: function() {
  9570. return this.rr
  9571. },
  9572. lca: function() {
  9573. return this.$W
  9574. },
  9575. nca: function() {
  9576. return this.WB
  9577. },
  9578. rka: function() {
  9579. return this.lw
  9580. },
  9581. ska: function() {
  9582. return this.pD
  9583. },
  9584. qka: function() {
  9585. return !1
  9586. },
  9587. tka: function() {
  9588. return !1
  9589. },
  9590. nka: function() {
  9591. return !1
  9592. },
  9593. oka: function() {
  9594. return this.nD
  9595. },
  9596. pka: function() {
  9597. return this.oD
  9598. },
  9599. uka: function() {
  9600. return this.qD
  9601. },
  9602. Po: function(a) {
  9603. return -1 < this.ru.indexOf(a)
  9604. },
  9605. wda: function(a, c) {
  9606. this.fo || this.jr();
  9607. var d = this.Xr;
  9608. return d[a] ? d[a] : c
  9609. },
  9610. gka: function(a, c) {
  9611. this.Xr[a] = c
  9612. },
  9613. f_: function() {
  9614. 0 === b.Wg && (b.log(""), b.log(b.e.IZ), b.log(""))
  9615. },
  9616. P_: function() {
  9617. if (b.A !== b.Ba) {
  9618. this.fo || this.jr();
  9619. var a = b.l,
  9620. c = this.Xr;
  9621. c["gl.vendor"] = a.getParameter(a.VENDOR);
  9622. c["gl.renderer"] = a.getParameter(a.RENDERER);
  9623. c["gl.version"] = a.getParameter(a.VERSION);
  9624. this.ru = "";
  9625. for (var d = a.getSupportedExtensions(),
  9626. e = 0; e < d.length; e++) this.ru += d[e] + " ";
  9627. this.rr = a.getParameter(a.MAX_TEXTURE_SIZE);
  9628. c["gl.max_texture_size"] = this.rr;
  9629. this.WB = a.getParameter(a.MAX_COMBINED_TEXTURE_IMAGE_UNITS);
  9630. c["gl.max_texture_units"] = this.WB;
  9631. this.pD = this.Po("GL_IMG_texture_compression_pvrtc");
  9632. c["gl.supports_PVRTC"] = this.pD;
  9633. this.lw = !1;
  9634. c["gl.supports_NPOT"] = this.lw;
  9635. this.nD = this.Po("GL_IMG_texture_format_BGRA888");
  9636. c["gl.supports_BGRA8888"] = this.nD;
  9637. this.oD = this.Po("GL_EXT_discard_framebuffer");
  9638. c["gl.supports_discard_framebuffer"] = this.oD;
  9639. this.qD = this.Po("vertex_array_object");
  9640. c["gl.supports_vertex_array_object"] = this.qD;
  9641. b.Qo()
  9642. }
  9643. },
  9644. hga: function(a) {
  9645. this.fo || this.jr();
  9646. var c = b.T.Hd(a);
  9647. if (!c) throw "Please load the resource first : " + a;
  9648. b.assert(c, b.e.KZ, a);
  9649. if (c = c.data)
  9650. for (var d in c) this.Xr[d] = c[d];
  9651. else b.log(b.e.JZ, a)
  9652. }
  9653. };
  9654. b.F.Ty = function() {
  9655. b.V6 = b.oa.extend({
  9656. Jka: function() {}
  9657. });
  9658. var a = b.Ta.prototype;
  9659. a.Xm = function(a) {
  9660. var d = this.mc;
  9661. this.zP();
  9662. var e = this.lh,
  9663. f = e.qe.x / e.ka,
  9664. e = e.qe.y / e.La;
  9665. switch (a) {
  9666. case b.Ta.sS:
  9667. b.wf(b.Yg);
  9668. b.dl();
  9669. f = new b.ba;
  9670. b.nF(f, 0, d.width, 0, d.height, -1024, 1024);
  9671. b.ip(f);
  9672. b.wf(b.Xg);
  9673. b.dl();
  9674. break;
  9675. case b.Ta.kH:
  9676. var g = this.xs(),
  9677. h = new b.ba,
  9678. k = new b.ba;
  9679. b.wf(b.Yg);
  9680. b.dl();
  9681. b.d2(h, d.width / d.height, 2 * g);
  9682. b.ip(h);
  9683. b.wf(b.Xg);
  9684. b.dl();
  9685. g = b.kp(null, -f + d.width / 2, -e + d.height / 2, g);
  9686. b.XN(k, g, b.kp(null, -f + d.width / 2, -e + d.height / 2, 0), b.kp(null,
  9687. 0, 1, 0));
  9688. b.ip(k);
  9689. break;
  9690. case b.Ta.tS:
  9691. break;
  9692. default:
  9693. b.log(b.e.PQ)
  9694. }
  9695. this.pi = a;
  9696. b.ra.dispatchEvent(this.$u);
  9697. b.nP()
  9698. };
  9699. a.aP = function(a) {
  9700. var d = b.l;
  9701. a ? (d.clearDepth(1), d.enable(d.DEPTH_TEST), d.depthFunc(d.LEQUAL)) : d.disable(d.DEPTH_TEST)
  9702. };
  9703. a.YF = function(a) {
  9704. this.mc.width = b.Va.width;
  9705. this.mc.height = b.Va.height;
  9706. this.lh = a || b.view;
  9707. a = b.Ro;
  9708. a.P_();
  9709. a.f_();
  9710. this.Ln();
  9711. this.fP();
  9712. b.ra && b.ra.ve(!0)
  9713. };
  9714. a.nk = function() {
  9715. var a = b.l;
  9716. a.clear(a.COLOR_BUFFER_BIT | a.DEPTH_BUFFER_BIT)
  9717. };
  9718. a.OA = function() {
  9719. b.Fj()
  9720. };
  9721. a.IA = function() {
  9722. b.Ej()
  9723. };
  9724. a.Ln = function() {
  9725. if (!b.Th) this.rV();
  9726. else if (null != b.Ta.UJ && !1 != b.Ta.UJ) {
  9727. var a = new b.aa;
  9728. a.Kc(b.Ta.Xn);
  9729. a.rb();
  9730. var d = b.view.BE().height / 320;
  9731. 0 === d && (d = this.mc.height / 320);
  9732. var e = new b.Th;
  9733. e.PC(!0);
  9734. e.sd("00.0", a, 12, 32, ".");
  9735. e.scale = d;
  9736. this.Af = e;
  9737. e = new b.Th;
  9738. e.PC(!0);
  9739. e.sd("0.000", a, 12, 32, ".");
  9740. e.scale = d;
  9741. this.Bf = e;
  9742. e = new b.Th;
  9743. e.PC(!0);
  9744. e.sd("000", a, 12, 32, ".");
  9745. e.scale = d;
  9746. this.Ef = e;
  9747. a = b.Ry;
  9748. this.Ef.P(a.x, 34 * d + a.y);
  9749. this.Bf.P(a.x, 17 * d + a.y);
  9750. this.Af.P(a)
  9751. }
  9752. };
  9753. a.rV = function() {
  9754. var a = 0,
  9755. a = this.mc.width > this.mc.height ? 0 | this.mc.height / 320 * 24 : 0 | this.mc.width / 320 * 24;
  9756. this.Af = b.M.create("000.0", "Arial", a);
  9757. this.Bf = b.M.create("0.000", "Arial", a);
  9758. this.Ef = b.M.create("0000", "Arial", a);
  9759. a = b.Ry;
  9760. this.Ef.P(this.Ef.width / 2 + a.x, 5 * this.Ef.height / 2 + a.y);
  9761. this.Bf.P(this.Bf.width / 2 + a.x, 3 * this.Bf.height / 2 + a.y);
  9762. this.Af.P(this.Af.width / 2 + a.x, this.Af.height / 2 + a.y)
  9763. };
  9764. a.LZ = function(a) {
  9765. var d = new b.ba;
  9766. b.SG(d);
  9767. var e = new b.ba;
  9768. b.c2(e, d);
  9769. var f = this.lh.BE(),
  9770. g = new b.wb;
  9771. b.gO(g, new b.wb(2 * a.x / f.width - 1, 1 - 2 * a.y / f.height, d.c[14] / d.c[15]), e);
  9772. return C(g.x, g.y)
  9773. };
  9774. a.NZ = function(a) {
  9775. var d = new b.ba;
  9776. b.SG(d);
  9777. var e = new b.wb;
  9778. b.gO(e, new b.wb(a.x, a.y, 0), d);
  9779. a = this.lh.BE();
  9780. return C(a.width * (0.5 * e.x + 0.5), a.height * (0.5 * -e.y + 0.5))
  9781. };
  9782. a.vs = function() {
  9783. return this.lh.vs()
  9784. };
  9785. a.PE = function() {
  9786. return this.lh.PE()
  9787. };
  9788. a.xs = function() {
  9789. return this.mc.height / 1.1566
  9790. };
  9791. a.zP = function() {
  9792. var a = this.lh;
  9793. if (a) {
  9794. var d = this.mc;
  9795. a.M4(-a.qe.x / a.ka, -a.qe.y / a.La, d.width, d.height)
  9796. }
  9797. };
  9798. a.tca = function() {
  9799. return this.lh
  9800. };
  9801. a.Ica = function() {
  9802. return this.pi
  9803. };
  9804. a.K3 = function() {
  9805. b.Hh(b.dc, b.cc)
  9806. };
  9807. a.fP = function() {
  9808. this.K3();
  9809. this.aP(!1);
  9810. this.Xm(this.pi);
  9811. b.l.clearColor(0,
  9812. 0, 0, 1)
  9813. }
  9814. };
  9815. b.sf = 0;
  9816. b.SG = function(a) {
  9817. var c = new b.ba;
  9818. b.qx(b.Yg, c);
  9819. var d = new b.ba;
  9820. b.qx(b.Xg, d);
  9821. b.Ei(a, c, d)
  9822. };
  9823. b.Ta = b.oa.extend({
  9824. o9: !1,
  9825. sr: !1,
  9826. jc: !1,
  9827. Kv: !1,
  9828. Jk: !1,
  9829. Iq: 0,
  9830. ZB: 0,
  9831. pi: 0,
  9832. un: 0,
  9833. bh: 1,
  9834. Xq: !1,
  9835. pk: 0,
  9836. rB: 0,
  9837. Af: null,
  9838. Bf: null,
  9839. Ef: null,
  9840. mc: null,
  9841. Bk: null,
  9842. ii: null,
  9843. zv: null,
  9844. lh: null,
  9845. si: null,
  9846. wC: null,
  9847. cd: null,
  9848. Vd: 0,
  9849. ow: 0,
  9850. IC: 0,
  9851. b9: null,
  9852. Nf: null,
  9853. rg: null,
  9854. $u: null,
  9855. lB: null,
  9856. nB: null,
  9857. mB: null,
  9858. ctor: function() {
  9859. var a = this;
  9860. a.Bk = Date.now();
  9861. b.ra.PD(b.Jb.Op, function() {
  9862. a.Bk = Date.now()
  9863. })
  9864. },
  9865. da: function() {
  9866. this.ZB = this.Iq = 1 / b.RZ;
  9867. this.si = [];
  9868. this.pi = b.Ta.uS;
  9869. this.wC = null;
  9870. this.rB = this.un = 0;
  9871. this.Xq = !1;
  9872. this.ow = this.Vd = 0;
  9873. this.Bk = Date.now();
  9874. this.Kv = this.jc = !1;
  9875. this.mc =
  9876. N(0, 0);
  9877. this.lh = null;
  9878. this.bh = 1;
  9879. this.Nf = new b.uq;
  9880. this.rg = b.wG ? new b.wG : null;
  9881. this.Nf.OF(this.rg, b.uq.Ut, !1);
  9882. this.lB = new b.Si(b.Ta.WQ);
  9883. this.lB.setUserData(this);
  9884. this.nB = new b.Si(b.Ta.YQ);
  9885. this.nB.setUserData(this);
  9886. this.mB = new b.Si(b.Ta.XQ);
  9887. this.mB.setUserData(this);
  9888. this.$u = new b.Si(b.Ta.ZQ);
  9889. this.$u.setUserData(this);
  9890. return !0
  9891. },
  9892. BZ: function() {
  9893. var a = Date.now();
  9894. this.sr ? (this.pk = 0, this.sr = !1) : this.pk = (a - this.Bk) / 1E3;
  9895. 0 < b.Jb.re[b.Jb.kg.ns] && 0.2 < this.pk && (this.pk = 1 / 60);
  9896. this.Bk = a
  9897. },
  9898. d_: function() {
  9899. this.BZ();
  9900. this.jc ||
  9901. (this.Nf.update(this.pk), b.ra.dispatchEvent(this.mB));
  9902. this.nk();
  9903. this.ii && this.k4();
  9904. this.OA && this.OA();
  9905. this.cd && (this.cd.R(), b.ra.dispatchEvent(this.nB));
  9906. this.zv && this.zv.R();
  9907. this.Xq && this.uY();
  9908. this.IA && this.IA();
  9909. b.ra.dispatchEvent(this.lB);
  9910. this.ow++;
  9911. this.Xq && this.YU()
  9912. },
  9913. OA: null,
  9914. IA: null,
  9915. end: function() {
  9916. this.Kv = !0
  9917. },
  9918. qba: function() {
  9919. return this.bh
  9920. },
  9921. pca: function() {
  9922. return this.zv
  9923. },
  9924. Aa: function() {
  9925. return N(this.mc)
  9926. },
  9927. ws: function() {
  9928. return N(this.mc.width * this.bh, this.mc.height * this.bh)
  9929. },
  9930. pause: function() {
  9931. this.jc ||
  9932. (this.ZB = this.Iq, this.XO(0.25), this.jc = !0)
  9933. },
  9934. gha: function() {
  9935. b.assert(this.cd, b.e.MQ);
  9936. this.si.pop();
  9937. var a = this.si.length;
  9938. 0 == a ? this.end() : (this.Jk = !0, this.ii = this.si[a - 1])
  9939. },
  9940. f3: function() {
  9941. b.ww.nk();
  9942. b.Rj.nk();
  9943. b.Da.nk()
  9944. },
  9945. g3: function() {
  9946. this.$k().yy();
  9947. b.ra && b.ra.ve(!1);
  9948. this.cd && (this.cd.Xf(), this.cd.sb(), this.cd.Qe());
  9949. this.ii = this.cd = null;
  9950. this.si.length = 0;
  9951. this.GP();
  9952. this.f3();
  9953. b.Qo()
  9954. },
  9955. h3: function(a) {
  9956. b.assert(a, b.e.MG);
  9957. this.Jk = !1;
  9958. this.si.push(a);
  9959. this.ii = a
  9960. },
  9961. dy: function(a) {
  9962. b.assert(a, b.e.MG);
  9963. if (this.cd) {
  9964. var c =
  9965. this.si.length;
  9966. 0 === c ? (this.Jk = !0, this.si[c] = a) : (this.Jk = !0, this.si[c - 1] = a);
  9967. this.ii = a
  9968. } else this.h3(a), this.EP()
  9969. },
  9970. wp: function() {
  9971. this.jc && (this.XO(this.ZB), (this.Bk = Date.now()) || b.log(b.e.OQ), this.jc = !1, this.pk = 0)
  9972. },
  9973. wia: function(a) {
  9974. a != this.bh && (this.bh = a, this.Ln())
  9975. },
  9976. zia: function() {},
  9977. cja: function(a) {
  9978. this.sr = a
  9979. },
  9980. k4: function() {
  9981. var a = !1,
  9982. c = !1;
  9983. b.ca && (a = this.cd ? this.cd instanceof b.ca : !1, c = this.ii ? this.ii instanceof b.ca : !1);
  9984. if (!c) {
  9985. if (c = this.cd) c.Xf(), c.sb();
  9986. this.Jk && c && c.Qe()
  9987. }
  9988. this.cd = this.ii;
  9989. this.ii = null;
  9990. a ||
  9991. null == this.cd || (this.cd.Z(), this.cd.Mh())
  9992. },
  9993. eja: function(a) {
  9994. this.zv = a
  9995. },
  9996. $_: function() {
  9997. return this.wC
  9998. },
  9999. T3: function(a) {
  10000. this.wC = a
  10001. },
  10002. uY: function() {
  10003. this.Vd++;
  10004. this.un += this.pk;
  10005. this.Af && this.Bf && this.Ef ? (this.un > b.JQ && (this.Bf.string = this.IC.toFixed(3), this.rB = this.Vd / this.un, this.un = this.Vd = 0, this.Af.string = this.rB.toFixed(1), this.Ef.string = (0 | b.sf).toString()), this.Af.R(), this.Bf.R(), this.Ef.R()) : this.Ln();
  10006. b.sf = 0
  10007. },
  10008. hea: function() {
  10009. return this.Jk
  10010. },
  10011. Pca: function() {
  10012. return this.cd
  10013. },
  10014. cba: function() {
  10015. return this.Iq
  10016. },
  10017. Vda: function() {
  10018. return this.Xq
  10019. },
  10020. W3: function(a) {
  10021. this.Xq = a
  10022. },
  10023. Uca: function() {
  10024. return this.IC
  10025. },
  10026. $da: function() {
  10027. return this.sr
  10028. },
  10029. bea: function() {
  10030. return this.jc
  10031. },
  10032. oda: function() {
  10033. return this.ow
  10034. },
  10035. hha: function() {
  10036. this.Z2(1)
  10037. },
  10038. Z2: function(a) {
  10039. b.assert(this.cd, b.e.NQ);
  10040. var c = this.si,
  10041. d = c.length;
  10042. if (0 == d) this.end();
  10043. else if (!(a > d)) {
  10044. for (; d > a;) {
  10045. var e = c.pop();
  10046. e.running && (e.Xf(), e.sb());
  10047. e.Qe();
  10048. d--
  10049. }
  10050. this.ii = c[c.length - 1];
  10051. this.Jk = !1
  10052. }
  10053. },
  10054. $k: function() {
  10055. return this.Nf
  10056. },
  10057. tP: function(a) {
  10058. this.Nf != a && (this.Nf = a)
  10059. },
  10060. Mw: function() {
  10061. return this.rg
  10062. },
  10063. WO: function(a) {
  10064. this.rg != a && (this.rg = a)
  10065. },
  10066. wba: function() {
  10067. return this.pk
  10068. },
  10069. Ln: null,
  10070. YU: function() {
  10071. this.IC = (Date.now() - this.Bk) / 1E3
  10072. }
  10073. });
  10074. b.Ta.ZQ = "director_projection_changed";
  10075. b.Ta.WQ = "director_after_draw";
  10076. b.Ta.YQ = "director_after_visit";
  10077. b.Ta.XQ = "director_after_update";
  10078. b.QQ = b.Ta.extend({
  10079. mx: !1,
  10080. EP: function() {
  10081. this.sr = !0;
  10082. this.mx = !1
  10083. },
  10084. z2: function() {
  10085. this.Kv ? (this.Kv = !1, this.g3()) : this.mx || this.d_()
  10086. },
  10087. GP: function() {
  10088. this.mx = !0
  10089. },
  10090. XO: function(a) {
  10091. this.Iq = a;
  10092. this.mx || (this.GP(), this.EP())
  10093. }
  10094. });
  10095. b.Ta.jG = null;
  10096. b.Ta.OM = !0;
  10097. b.Ta.yB = function() {
  10098. b.Ta.OM && (b.Ta.OM = !1, b.Ta.jG = new b.QQ, b.Ta.jG.da());
  10099. return b.Ta.jG
  10100. };
  10101. b.RZ = 60;
  10102. b.Ta.sS = 0;
  10103. b.Ta.kH = 1;
  10104. b.Ta.tS = 3;
  10105. b.Ta.uS = b.Ta.kH;
  10106. b.A === b.Ba ? (n = b.Ta.prototype, n.Xm = function(a) {
  10107. this.pi = a;
  10108. b.ra.dispatchEvent(this.$u)
  10109. }, n.aP = function() {}, n.YF = function(a) {
  10110. this.mc.width = b.Va.width;
  10111. this.mc.height = b.Va.height;
  10112. this.lh = a || b.view;
  10113. b.ra && b.ra.ve(!0)
  10114. }, n.nk = function() {
  10115. var a = this.lh.qe;
  10116. b.l.clearRect(-a.x, a.y, a.width, -a.height)
  10117. }, n.Ln = function() {
  10118. var a = 0,
  10119. a = this.mc.width > this.mc.height ? 0 | this.mc.height / 320 * 24 : 0 | this.mc.width / 320 * 24;
  10120. this.Af = b.M.create("000.0", "Arial", a);
  10121. this.Bf = b.M.create("0.000", "Arial", a);
  10122. this.Ef = b.M.create("0000", "Arial", a);
  10123. a =
  10124. b.Ry;
  10125. this.Ef.P(this.Ef.width / 2 + a.x, 5 * this.Ef.height / 2 + a.y);
  10126. this.Bf.P(this.Bf.width / 2 + a.x, 3 * this.Bf.height / 2 + a.y);
  10127. this.Af.P(this.Af.width / 2 + a.x, this.Af.height / 2 + a.y)
  10128. }, n.vs = function() {
  10129. return this.Aa()
  10130. }, n.PE = function() {
  10131. return C(0, 0)
  10132. }) : (b.Ta.Xn = new Image, b.Ga(b.Ta.Xn, "load", function() {
  10133. b.Ta.UJ = !0
  10134. }), b.Xn && (b.Ta.Xn.src = b.Xn), b.assert("function" === typeof b.F.Ty, b.e.jd, "CCDirectorWebGL.js"), b.F.Ty(), delete b.F.Ty);
  10135. b.Lp = b.oa.extend({
  10136. Zq: null,
  10137. $q: null,
  10138. ar: null,
  10139. Fn: null,
  10140. Gn: null,
  10141. Hn: null,
  10142. Tr: null,
  10143. Ur: null,
  10144. Vr: null,
  10145. jb: null,
  10146. vv: null,
  10147. ctor: function() {
  10148. this.vv = new b.ba;
  10149. this.restore()
  10150. },
  10151. description: function() {
  10152. return "\x3cCCCamera | center \x3d(" + this.Fn + "," + this.Gn + "," + this.Hn + ")\x3e"
  10153. },
  10154. bP: function(a) {
  10155. this.jb = a
  10156. },
  10157. hF: function() {
  10158. return this.jb
  10159. },
  10160. restore: function() {
  10161. this.Zq = this.$q = 0;
  10162. this.ar = b.Lp.xs();
  10163. this.Tr = this.Fn = this.Gn = this.Hn = 0;
  10164. this.Ur = 1;
  10165. this.Vr = 0;
  10166. b.Nm(this.vv);
  10167. this.jb = !1
  10168. },
  10169. Is: function() {
  10170. if (this.jb) {
  10171. var a = new b.wb,
  10172. c = new b.wb,
  10173. d = new b.wb;
  10174. b.kp(a, this.Zq, this.$q, this.ar);
  10175. b.kp(c, this.Fn, this.Gn, this.Hn);
  10176. b.kp(d, this.Tr, this.Ur, this.Vr);
  10177. b.XN(this.vv, a, c, d);
  10178. this.jb = !1
  10179. }
  10180. b.ip(this.vv)
  10181. },
  10182. Gia: function(a, c, d) {
  10183. this.eP(a, c, d)
  10184. },
  10185. eP: function(a, c, d) {
  10186. this.Zq = a;
  10187. this.$q = c;
  10188. this.ar = d;
  10189. this.jb = !0
  10190. },
  10191. pia: function(a, c, d) {
  10192. this.P3(a, c, d)
  10193. },
  10194. P3: function(a, c, d) {
  10195. this.Fn = a;
  10196. this.Gn = c;
  10197. this.Hn = d;
  10198. this.jb = !0
  10199. },
  10200. dka: function(a, c, d) {
  10201. this.I4(a, c, d)
  10202. },
  10203. I4: function(a, c, d) {
  10204. this.Tr = a;
  10205. this.Ur = c;
  10206. this.Vr = d;
  10207. this.jb = !0
  10208. },
  10209. Mba: function() {
  10210. return {
  10211. x: this.Zq,
  10212. y: this.$q,
  10213. z: this.ar
  10214. }
  10215. },
  10216. ZM: function() {
  10217. return {
  10218. x: this.Zq,
  10219. y: this.$q,
  10220. z: this.ar
  10221. }
  10222. },
  10223. jba: function() {
  10224. return {
  10225. x: this.Fn,
  10226. y: this.Gn,
  10227. z: this.Hn
  10228. }
  10229. },
  10230. VM: function() {
  10231. return {
  10232. x: this.Fn,
  10233. y: this.Gn,
  10234. z: this.Hn
  10235. }
  10236. },
  10237. tda: function() {
  10238. return {
  10239. x: this.Tr,
  10240. y: this.Ur,
  10241. z: this.Vr
  10242. }
  10243. },
  10244. Z0: function() {
  10245. return {
  10246. x: this.Tr,
  10247. y: this.Ur,
  10248. z: this.Vr
  10249. }
  10250. },
  10251. O8: function() {}
  10252. });
  10253. b.Lp.xs = function() {
  10254. return b.Mt
  10255. };
  10256. b.W7 = b.Ut + 1;
  10257. b.Lo = function(a, c) {
  10258. if (a && 0 < a.length)
  10259. for (var d = 0; d < a.length; d++)
  10260. if (!(a[d] instanceof c)) return b.log(b.e.Lo), !1;
  10261. return !0
  10262. };
  10263. b.Pe = function(a, c) {
  10264. for (var d = 0, e = a.length; d < e; d++)
  10265. if (a[d] == c) {
  10266. a.splice(d, 1);
  10267. break
  10268. }
  10269. };
  10270. b.g$ = function(a, c) {
  10271. for (var d = 0, e = c.length; d < e; d++) b.Pe(a, c[d])
  10272. };
  10273. b.f$ = function(a, c, d) {
  10274. a.splice.apply(a, [d, 0].concat(c));
  10275. return a
  10276. };
  10277. b.YG = function(a, c, d) {
  10278. this.next = null;
  10279. this.target = a;
  10280. this.d3 = c;
  10281. this.paused = d;
  10282. this.Ex = !1
  10283. };
  10284. b.TG = function(a, c, d) {
  10285. this.list = a;
  10286. this.Em = c;
  10287. this.target = d;
  10288. this.bx = null
  10289. };
  10290. b.kR = function(a, c) {
  10291. this.Ni = null;
  10292. this.target = a;
  10293. this.Ep = 0;
  10294. this.ms = this.ls = null;
  10295. this.paused = c;
  10296. this.bx = null
  10297. };
  10298. b.QH = b.oa.extend({
  10299. fj: 0,
  10300. de: null,
  10301. ne: null,
  10302. kb: 0,
  10303. kL: !1,
  10304. vw: !1,
  10305. Do: 0,
  10306. BC: 0,
  10307. Pu: 0,
  10308. Yba: function() {
  10309. return this.fj
  10310. },
  10311. setInterval: function(a) {
  10312. this.fj = a
  10313. },
  10314. iba: function() {
  10315. return this.de
  10316. },
  10317. ctor: function(a, c, d, e, f) {
  10318. this.ne = a;
  10319. this.de = c;
  10320. this.kb = -1;
  10321. this.fj = d || 0;
  10322. this.Pu = f || 0;
  10323. this.vw = 0 < this.Pu;
  10324. this.BC = null == e ? b.qq : e;
  10325. this.kL = this.BC == b.qq
  10326. },
  10327. hB: function() {
  10328. if ("string" == typeof this.de) this.ne[this.de](this.kb);
  10329. else this.de.call(this.ne, this.kb)
  10330. },
  10331. update: function(a) {
  10332. if (-1 == this.kb) this.Do = this.kb = 0;
  10333. else {
  10334. var c = this.ne,
  10335. d = this.de;
  10336. this.kb +=
  10337. a;
  10338. this.kL && !this.vw ? this.kb >= this.fj && (c && d && this.hB(), this.kb = 0) : (this.vw ? this.kb >= this.Pu && (c && d && this.hB(), this.kb -= this.Pu, this.Do += 1, this.vw = !1) : this.kb >= this.fj && (c && d && this.hB(), this.kb = 0, this.Do += 1), this.Do > this.BC && b.I.$k().SP(c, d))
  10339. }
  10340. }
  10341. });
  10342. b.uq = b.oa.extend({
  10343. Sr: 1,
  10344. om: null,
  10345. dj: null,
  10346. Bu: null,
  10347. cj: null,
  10348. T8: null,
  10349. ib: null,
  10350. ci: !1,
  10351. pw: !1,
  10352. ctor: function() {
  10353. this.Sr = 1;
  10354. this.om = [
  10355. [],
  10356. [],
  10357. []
  10358. ];
  10359. this.dj = {};
  10360. this.Bu = [];
  10361. this.cj = {};
  10362. this.Jq = [];
  10363. this.ib = null;
  10364. this.pw = this.ci = !1
  10365. },
  10366. AC: function(a) {
  10367. delete this.cj[a.target.ta];
  10368. b.Pe(this.Jq, a);
  10369. a.QH = null;
  10370. a.target = null
  10371. },
  10372. cL: function(a) {
  10373. if (a = this.dj[a.target.ta]) b.Pe(a.list, a.Em), delete this.dj[a.target.ta], b.Pe(this.Bu, a), a.Em = null, a.target = null
  10374. },
  10375. SK: function(a, c, d, e) {
  10376. e = new b.YG(c, d, e);
  10377. if (a) {
  10378. for (var f = a.length - 1, g = 0; g <= f && !(d < a[g].d3); g++);
  10379. a.splice(g, 0, e)
  10380. } else a = [], a.push(e);
  10381. d = new b.TG(a, e, c);
  10382. this.Bu.push(d);
  10383. this.dj[c.ta] = d;
  10384. return a
  10385. },
  10386. PU: function(a, c, d) {
  10387. d = new b.YG(c, 0, d);
  10388. a.push(d);
  10389. a = new b.TG(a, d, c);
  10390. this.Bu.push(a);
  10391. this.dj[c.ta] = a
  10392. },
  10393. Pja: function(a) {
  10394. this.Sr = a
  10395. },
  10396. mda: function() {
  10397. return this.Sr
  10398. },
  10399. update: function(a) {
  10400. var c = this.om,
  10401. d = this.Jq,
  10402. e, f, g;
  10403. this.pw = !0;
  10404. 1 != this.Sr && (a *= this.Sr);
  10405. f = 0;
  10406. for (g = c.length; f < g && 0 <= f; f++)
  10407. for (var h = this.om[f], k = 0, m = h.length; k < m; k++) e = h[k], e.paused || e.Ex || e.target.update(a);
  10408. f = 0;
  10409. for (g = d.length; f < g; f++) {
  10410. e = d[f];
  10411. if (!e) break;
  10412. this.ib = e;
  10413. this.ci = !1;
  10414. if (!e.paused)
  10415. for (e.Ep = 0; e.Ep < e.Ni.length; e.Ep++) e.ls = e.Ni[e.Ep], e.ms = !1, e.ls.update(a), e.ls = null;
  10416. this.ci && 0 == e.Ni.length && (this.AC(e), f--)
  10417. }
  10418. f = 0;
  10419. for (g = c.length; f < g; f++)
  10420. for (h = this.om[f], k = 0, m = h.length; k < m;) {
  10421. e = h[k];
  10422. if (!e) break;
  10423. e.Ex ? this.cL(e) : k++
  10424. }
  10425. this.pw = !1;
  10426. this.ib = null
  10427. },
  10428. G3: function(a, c, d, e, f, g) {
  10429. b.assert(c, b.e.VS);
  10430. b.assert(a, b.e.WS);
  10431. d = d || 0;
  10432. e = null == e ? b.qq : e;
  10433. f = f || 0;
  10434. g = g || !1;
  10435. var h = this.cj[a.ta];
  10436. h || (h = new b.kR(a, g), this.Jq.push(h), this.cj[a.ta] = h);
  10437. if (null == h.Ni) h.Ni = [];
  10438. else
  10439. for (var k =
  10440. 0; k < h.Ni.length; k++)
  10441. if (g = h.Ni[k], c == g.de) {
  10442. b.log(b.e.US, g.fj.toFixed(4), d.toFixed(4));
  10443. g.fj = d;
  10444. return
  10445. }
  10446. g = new b.QH(a, c, d, e, f);
  10447. h.Ni.push(g)
  10448. },
  10449. OF: function(a, c, d) {
  10450. if (null !== a) {
  10451. var e = this.om,
  10452. f = this.dj[a.ta];
  10453. f ? f.Em.Ex = !1 : 0 == c ? this.PU(e[1], a, d) : 0 > c ? e[0] = this.SK(e[0], a, c, d) : e[2] = this.SK(e[2], a, c, d)
  10454. }
  10455. },
  10456. SP: function(a, c) {
  10457. if (null != a && null != c) {
  10458. var d = this.cj[a.ta];
  10459. if (d)
  10460. for (var e = d.Ni, f = 0, g = e.length; f < g; f++) {
  10461. var h = e[f];
  10462. if (c == h.de) {
  10463. h != d.ls || d.ms || (d.ms = !0);
  10464. e.splice(f, 1);
  10465. d.Ep >= f && d.Ep--;
  10466. 0 == e.length && (this.ib == d ? this.ci = !0 : this.AC(d));
  10467. break
  10468. }
  10469. }
  10470. }
  10471. },
  10472. ot: function(a) {
  10473. null != a && (a = this.dj[a.ta], null != a && (this.pw ? a.Em.Ex = !0 : this.cL(a.Em)))
  10474. },
  10475. RP: function(a) {
  10476. if (null != a) {
  10477. var c = this.cj[a.ta];
  10478. if (c) {
  10479. var d = c.Ni;
  10480. !c.ms && 0 <= d.indexOf(c.ls) && (c.ms = !0);
  10481. d.length = 0;
  10482. this.ib == c ? this.ci = !0 : this.AC(c)
  10483. }
  10484. this.ot(a)
  10485. }
  10486. },
  10487. yy: function() {
  10488. this.G5(b.uq.Ut)
  10489. },
  10490. G5: function(a) {
  10491. for (var c = this.Jq, d = this.om, e = 0, f = c.length; e < f; e++) this.RP(c[e].target);
  10492. for (e = 2; 0 <= e; e--)
  10493. if (!(1 == e && 0 < a || 0 == e && 0 <= a))
  10494. for (var c = d[e], f = 0, g = c.length; f < g; f++) this.ot(c[f].target)
  10495. },
  10496. cha: function() {
  10497. return this.R2(b.uq.Ut)
  10498. },
  10499. R2: function() {
  10500. for (var a = [], c, d = this.Jq, e = this.om, f = 0, g = d.length; f < g; f++)
  10501. if (c = d[f]) c.paused = !0, a.push(c.target);
  10502. f = 0;
  10503. for (g = e.length; f < g; f++)
  10504. for (var d = e[f], h = 0, k = d.length; h < k; h++)
  10505. if (c = d[h]) c.paused = !0, a.push(c.target);
  10506. return a
  10507. },
  10508. B3: function(a) {
  10509. if (a)
  10510. for (var c = 0; c < a.length; c++) this.Oj(a[c])
  10511. },
  10512. sp: function(a) {
  10513. b.assert(a, b.e.SS);
  10514. var c = this.cj[a.ta];
  10515. c && (c.paused = !0);
  10516. (a = this.dj[a.ta]) && (a.Em.paused = !0)
  10517. },
  10518. Oj: function(a) {
  10519. b.assert(a, b.e.TS);
  10520. var c = this.cj[a.ta];
  10521. c && (c.paused = !1);
  10522. (a = this.dj[a.ta]) && (a.Em.paused = !1)
  10523. },
  10524. kea: function(a) {
  10525. b.assert(a, b.e.RS);
  10526. return (a = this.cj[a.ta]) ? a.paused : !1
  10527. }
  10528. });
  10529. b.uq.Ut = -2147483648;
  10530. b.gH = 2 * Math.PI;
  10531. b.NG = b.oa.extend({
  10532. TA: [],
  10533. l: null,
  10534. ctor: function(a) {
  10535. this.l = a
  10536. },
  10537. a_: function(a, c) {
  10538. c || (c = 1);
  10539. var d = b.view.ka,
  10540. e = C(a.x * d, a.y * b.view.La);
  10541. this.l.beginPath();
  10542. this.l.arc(e.x, -e.y, c * d, 0, 2 * Math.PI, !1);
  10543. this.l.closePath();
  10544. this.l.fill()
  10545. },
  10546. b_: function(a, c, d) {
  10547. if (null != a) {
  10548. d || (d = 1);
  10549. c = this.l;
  10550. var e = b.view.ka,
  10551. f = b.view.La;
  10552. c.beginPath();
  10553. for (var g = 0, h = a.length; g < h; g++) c.arc(a[g].x * e, -a[g].y * f, d * e, 0, 2 * Math.PI, !1);
  10554. c.closePath();
  10555. c.fill()
  10556. }
  10557. },
  10558. Aj: function(a, c) {
  10559. var d = this.l,
  10560. e = b.view.ka,
  10561. f = b.view.La;
  10562. d.beginPath();
  10563. d.moveTo(a.x * e, -a.y * f);
  10564. d.lineTo(c.x * e, -c.y * f);
  10565. d.closePath();
  10566. d.stroke()
  10567. },
  10568. sE: function(a, c) {
  10569. this.Aj(C(a.x, a.y), C(c.x, a.y));
  10570. this.Aj(C(c.x, a.y), C(c.x, c.y));
  10571. this.Aj(C(c.x, c.y), C(a.x, c.y));
  10572. this.Aj(C(a.x, c.y), C(a.x, a.y))
  10573. },
  10574. JM: function(a, c, d) {
  10575. this.uE([a, C(c.x, a.y), c, C(a.x, c.y)], 4, d)
  10576. },
  10577. ae: function(a, c, d, e) {
  10578. e = e || !1;
  10579. if (null != a) {
  10580. if (3 > a.length) throw Error("Polygon's point must greater than 2");
  10581. var f = a[0];
  10582. c = this.l;
  10583. var g = b.view.ka,
  10584. h = b.view.La;
  10585. c.beginPath();
  10586. c.moveTo(f.x * g, -f.y * h);
  10587. for (var f = 1, k = a.length; f < k; f++) c.lineTo(a[f].x * g, -a[f].y * h);
  10588. d && c.closePath();
  10589. e ? c.fill() : c.stroke()
  10590. }
  10591. },
  10592. uE: function(a, c, d) {
  10593. this.yp(d.r, d.g, d.b, d.a);
  10594. this.ae(a, c, !0, !0)
  10595. },
  10596. oE: function(a, c, d, e, f) {
  10597. f = f || !1;
  10598. e = this.l;
  10599. var g = b.view.ka,
  10600. h = b.view.La;
  10601. e.beginPath();
  10602. e.arc(0 | a.x * g, 0 | -(a.y * h), c * g, -d, -(d - 2 * Math.PI), !1);
  10603. f && e.lineTo(0 | a.x * g, 0 | -(a.y * h));
  10604. e.stroke()
  10605. },
  10606. rE: function(a, c, d, e) {
  10607. for (var f = this.TA, g = f.length = 0, h = 0; h < e; h++) f.push(C(Math.pow(1 - g, 2) * a.x + 2 * (1 - g) * g * c.x + g * g * d.x, Math.pow(1 - g, 2) * a.y + 2 * (1 - g) * g * c.y + g * g * d.y)), g += 1 / e;
  10608. f.push(C(d.x, d.y));
  10609. this.ae(f, e + 1, !1, !1)
  10610. },
  10611. pE: function(a,
  10612. c, d, e, f) {
  10613. for (var g = this.TA, h = g.length = 0, k = 0; k < f; k++) g.push(C(Math.pow(1 - h, 3) * a.x + 3 * Math.pow(1 - h, 2) * h * c.x + 3 * (1 - h) * h * h * d.x + h * h * h * e.x, Math.pow(1 - h, 3) * a.y + 3 * Math.pow(1 - h, 2) * h * c.y + 3 * (1 - h) * h * h * d.y + h * h * h * e.y)), h += 1 / f;
  10614. g.push(C(e.x, e.y));
  10615. this.ae(g, f + 1, !1, !1)
  10616. },
  10617. nE: function(a, c) {
  10618. this.Bm(a, 0.5, c)
  10619. },
  10620. Bm: function(a, c, d) {
  10621. b.l.strokeStyle = "rgba(255,255,255,1)";
  10622. var e = this.TA;
  10623. e.length = 0;
  10624. 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 = b.DQ(b.gd(a, f - 1), b.gd(a, f - 0), b.gd(a, f + 1),
  10625. b.gd(a, f + 2), c, g), e.push(f);
  10626. this.ae(e, d + 1, !1, !1)
  10627. },
  10628. drawImage: function(a, c, d, e, f) {
  10629. switch (arguments.length) {
  10630. case 2:
  10631. this.l.drawImage(a, c.x, -(c.y + a.height));
  10632. break;
  10633. case 3:
  10634. this.l.drawImage(a, c.x, -(c.y + d.height), d.width, d.height);
  10635. break;
  10636. case 5:
  10637. this.l.drawImage(a, c.x, c.y, d.width, d.height, e.x, -(e.y + f.height), f.width, f.height);
  10638. break;
  10639. default:
  10640. throw Error("Argument must be non-nil");
  10641. }
  10642. },
  10643. e_: function(a, c, d) {
  10644. a = a || this.l;
  10645. c *= b.view.ka;
  10646. d = "rgba(" + (0 | d.r) + "," + (0 | d.g) + "," + (0 | d.b);
  10647. a.fillStyle = d + ",1)";
  10648. var e = c / 10;
  10649. a.beginPath();
  10650. a.moveTo(-c, c);
  10651. a.lineTo(0, e);
  10652. a.lineTo(c, c);
  10653. a.lineTo(e, 0);
  10654. a.lineTo(c, -c);
  10655. a.lineTo(0, -e);
  10656. a.lineTo(-c, -c);
  10657. a.lineTo(-e, 0);
  10658. a.lineTo(-c, c);
  10659. a.closePath();
  10660. a.fill();
  10661. var f = a.createRadialGradient(0, 0, e, 0, 0, c);
  10662. f.addColorStop(0, d + ", 1)");
  10663. f.addColorStop(0.3, d + ", 0.8)");
  10664. f.addColorStop(1, d + ", 0.0)");
  10665. a.fillStyle = f;
  10666. a.beginPath();
  10667. a.arc(0, 0, c - e, 0, b.gH, !1);
  10668. a.closePath();
  10669. a.fill()
  10670. },
  10671. YZ: function(a, c, d) {
  10672. a = a || this.l;
  10673. c *= b.view.ka;
  10674. d = "rgba(" + (0 | d.r) + "," + (0 | d.g) + "," + (0 | d.b);
  10675. var e = a.createRadialGradient(0, 0, c / 10, 0, 0, c);
  10676. e.addColorStop(0,
  10677. d + ", 1)");
  10678. e.addColorStop(0.3, d + ", 0.8)");
  10679. e.addColorStop(0.6, d + ", 0.4)");
  10680. e.addColorStop(1, d + ", 0.0)");
  10681. a.fillStyle = e;
  10682. a.beginPath();
  10683. a.arc(0, 0, c, 0, b.gH, !1);
  10684. a.closePath();
  10685. a.fill()
  10686. },
  10687. fillText: function(a, c, d) {
  10688. this.l.fillText(a, c, -d)
  10689. },
  10690. yp: function(a, c, d, e) {
  10691. this.l.fillStyle = "rgba(" + a + "," + c + "," + d + "," + e / 255 + ")";
  10692. this.l.strokeStyle = "rgba(" + a + "," + c + "," + d + "," + e / 255 + ")"
  10693. },
  10694. o4: function() {},
  10695. WF: function(a) {
  10696. this.l.lineWidth = a * b.view.ka
  10697. }
  10698. });
  10699. b.TQ = b.oa.extend({
  10700. l: null,
  10701. kr: !1,
  10702. yc: null,
  10703. bi: -1,
  10704. df: null,
  10705. lC: -1,
  10706. kC: -1,
  10707. ctor: function(a) {
  10708. null == a && (a = b.l);
  10709. if (!a instanceof WebGLRenderingContext) throw "Can't initialise DrawingPrimitiveWebGL. context need is WebGLRenderingContext";
  10710. this.l = a;
  10711. this.df = new Float32Array([1, 1, 1, 1])
  10712. },
  10713. Ij: function() {
  10714. this.kr || (this.yc = b.Md.nc(b.Pz), this.bi = this.l.getUniformLocation(this.yc.Lm(), "u_color"), this.lC = this.l.getUniformLocation(this.yc.Lm(), "u_pointSize"), this.kr = !0)
  10715. },
  10716. Z$: function() {
  10717. this.kr = !1
  10718. },
  10719. a_: function(a) {
  10720. this.Ij();
  10721. var c =
  10722. this.l;
  10723. this.yc.Oc();
  10724. this.yc.Ye();
  10725. b.Jc(b.Qd);
  10726. c.uniform4fv(this.bi, this.df);
  10727. this.yc.dt(this.lC, this.kC);
  10728. var d = c.createBuffer();
  10729. c.bindBuffer(c.ARRAY_BUFFER, d);
  10730. c.bufferData(c.ARRAY_BUFFER, new Float32Array([a.x, a.y]), c.STATIC_DRAW);
  10731. c.vertexAttribPointer(b.qb, 2, c.FLOAT, !1, 0, 0);
  10732. c.drawArrays(c.POINTS, 0, 1);
  10733. c.deleteBuffer(d);
  10734. b.Vf()
  10735. },
  10736. b_: function(a) {
  10737. if (a && 0 != a.length) {
  10738. this.Ij();
  10739. var c = this.l;
  10740. this.yc.Oc();
  10741. this.yc.Ye();
  10742. b.Jc(b.Qd);
  10743. c.uniform4fv(this.bi, this.df);
  10744. this.yc.dt(this.lC, this.kC);
  10745. var d = c.createBuffer();
  10746. c.bindBuffer(c.ARRAY_BUFFER,
  10747. d);
  10748. c.bufferData(c.ARRAY_BUFFER, this.Iv(a), c.STATIC_DRAW);
  10749. c.vertexAttribPointer(b.qb, 2, c.FLOAT, !1, 0, 0);
  10750. c.drawArrays(c.POINTS, 0, a.length);
  10751. c.deleteBuffer(d);
  10752. b.Vf()
  10753. }
  10754. },
  10755. Iv: function(a) {
  10756. for (var c = new Float32Array(2 * a.length), d = 0; d < a.length; d++) c[2 * d] = a[d].x, c[2 * d + 1] = a[d].y;
  10757. return c
  10758. },
  10759. Aj: function(a, c) {
  10760. this.Ij();
  10761. var d = this.l;
  10762. this.yc.Oc();
  10763. this.yc.Ye();
  10764. b.Jc(b.Qd);
  10765. d.uniform4fv(this.bi, this.df);
  10766. var e = d.createBuffer();
  10767. d.bindBuffer(d.ARRAY_BUFFER, e);
  10768. d.bufferData(d.ARRAY_BUFFER, this.Iv([a, c]), d.STATIC_DRAW);
  10769. d.vertexAttribPointer(b.qb,
  10770. 2, d.FLOAT, !1, 0, 0);
  10771. d.drawArrays(d.LINES, 0, 2);
  10772. d.deleteBuffer(e);
  10773. b.Vf()
  10774. },
  10775. sE: function(a, c) {
  10776. this.Aj(C(a.x, a.y), C(c.x, a.y));
  10777. this.Aj(C(c.x, a.y), C(c.x, c.y));
  10778. this.Aj(C(c.x, c.y), C(a.x, c.y));
  10779. this.Aj(C(a.x, c.y), C(a.x, a.y))
  10780. },
  10781. JM: function(a, c, d) {
  10782. this.uE([a, C(c.x, a.y), c, C(a.x, c.y)], 4, d)
  10783. },
  10784. ae: function(a, c, d) {
  10785. this.Ij();
  10786. c = this.l;
  10787. this.yc.Oc();
  10788. this.yc.Ye();
  10789. b.Jc(b.Qd);
  10790. c.uniform4fv(this.bi, this.df);
  10791. var e = c.createBuffer();
  10792. c.bindBuffer(c.ARRAY_BUFFER, e);
  10793. c.bufferData(c.ARRAY_BUFFER, this.Iv(a), c.STATIC_DRAW);
  10794. c.vertexAttribPointer(b.qb,
  10795. 2, c.FLOAT, !1, 0, 0);
  10796. d ? c.drawArrays(c.LINE_LOOP, 0, a.length) : c.drawArrays(c.LINE_STRIP, 0, a.length);
  10797. c.deleteBuffer(e);
  10798. b.Vf()
  10799. },
  10800. uE: function(a, c, d) {
  10801. this.Ij();
  10802. d && this.yp(d.r, d.g, d.b, d.a);
  10803. c = this.l;
  10804. this.yc.Oc();
  10805. this.yc.Ye();
  10806. b.Jc(b.Qd);
  10807. c.uniform4fv(this.bi, this.df);
  10808. d = c.createBuffer();
  10809. c.bindBuffer(c.ARRAY_BUFFER, d);
  10810. c.bufferData(c.ARRAY_BUFFER, this.Iv(a), c.STATIC_DRAW);
  10811. c.vertexAttribPointer(b.qb, 2, c.FLOAT, !1, 0, 0);
  10812. c.drawArrays(c.TRIANGLE_FAN, 0, a.length);
  10813. c.deleteBuffer(d);
  10814. b.Vf()
  10815. },
  10816. oE: function(a, c, d, e, f) {
  10817. this.Ij();
  10818. var g = 1;
  10819. f && g++;
  10820. var h = 2 * Math.PI / e;
  10821. if (f = new Float32Array(2 * (e + 2))) {
  10822. for (var k = 0; k <= e; k++) {
  10823. var m = k * h,
  10824. p = c * Math.sin(m + d) + a.y;
  10825. f[2 * k] = c * Math.cos(m + d) + a.x;
  10826. f[2 * k + 1] = p
  10827. }
  10828. f[2 * (e + 1)] = a.x;
  10829. f[2 * (e + 1) + 1] = a.y;
  10830. a = this.l;
  10831. this.yc.Oc();
  10832. this.yc.Ye();
  10833. b.Jc(b.Qd);
  10834. a.uniform4fv(this.bi, this.df);
  10835. c = a.createBuffer();
  10836. a.bindBuffer(a.ARRAY_BUFFER, c);
  10837. a.bufferData(a.ARRAY_BUFFER, f, a.STATIC_DRAW);
  10838. a.vertexAttribPointer(b.qb, 2, a.FLOAT, !1, 0, 0);
  10839. a.drawArrays(a.LINE_STRIP, 0, e + g);
  10840. a.deleteBuffer(c);
  10841. b.Vf()
  10842. }
  10843. },
  10844. rE: function(a, c, d, e) {
  10845. this.Ij();
  10846. for (var f =
  10847. new Float32Array(2 * (e + 1)), g = 0, h = 0; h < e; h++) f[2 * h] = Math.pow(1 - g, 2) * a.x + 2 * (1 - g) * g * c.x + g * g * d.x, f[2 * h + 1] = Math.pow(1 - g, 2) * a.y + 2 * (1 - g) * g * c.y + g * g * d.y, g += 1 / e;
  10848. f[2 * e] = d.x;
  10849. f[2 * e + 1] = d.y;
  10850. a = this.l;
  10851. this.yc.Oc();
  10852. this.yc.Ye();
  10853. b.Jc(b.Qd);
  10854. a.uniform4fv(this.bi, this.df);
  10855. c = a.createBuffer();
  10856. a.bindBuffer(a.ARRAY_BUFFER, c);
  10857. a.bufferData(a.ARRAY_BUFFER, f, a.STATIC_DRAW);
  10858. a.vertexAttribPointer(b.qb, 2, a.FLOAT, !1, 0, 0);
  10859. a.drawArrays(a.LINE_STRIP, 0, e + 1);
  10860. a.deleteBuffer(c);
  10861. b.Vf()
  10862. },
  10863. pE: function(a, c, d, e, f) {
  10864. this.Ij();
  10865. for (var g = new Float32Array(2 *
  10866. (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 * c.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 * c.y + 3 * (1 - h) * h * h * d.y + h * h * h * e.y, h += 1 / f;
  10867. g[2 * f] = e.x;
  10868. g[2 * f + 1] = e.y;
  10869. a = this.l;
  10870. this.yc.Oc();
  10871. this.yc.Ye();
  10872. b.Jc(b.Qd);
  10873. a.uniform4fv(this.bi, this.df);
  10874. c = a.createBuffer();
  10875. a.bindBuffer(a.ARRAY_BUFFER, c);
  10876. a.bufferData(a.ARRAY_BUFFER, g, a.STATIC_DRAW);
  10877. a.vertexAttribPointer(b.qb, 2, a.FLOAT, !1, 0, 0);
  10878. a.drawArrays(a.LINE_STRIP, 0, f + 1);
  10879. a.deleteBuffer(c);
  10880. b.Vf()
  10881. },
  10882. nE: function(a, c) {
  10883. this.Bm(a,
  10884. 0.5, c)
  10885. },
  10886. Bm: function(a, c, d) {
  10887. this.Ij();
  10888. 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 = b.DQ(b.gd(a, f - 1), b.gd(a, f), b.gd(a, f + 1), b.gd(a, f + 2), c, g), e[2 * k] = f.x, e[2 * k + 1] = f.y;
  10889. a = this.l;
  10890. this.yc.Oc();
  10891. this.yc.Ye();
  10892. b.Jc(b.Qd);
  10893. a.uniform4fv(this.bi, this.df);
  10894. c = a.createBuffer();
  10895. a.bindBuffer(a.ARRAY_BUFFER, c);
  10896. a.bufferData(a.ARRAY_BUFFER, e, a.STATIC_DRAW);
  10897. a.vertexAttribPointer(b.qb, 2, a.FLOAT, !1, 0, 0);
  10898. a.drawArrays(a.LINE_STRIP, 0, d + 1);
  10899. a.deleteBuffer(c);
  10900. b.Vf()
  10901. },
  10902. yp: function(a, c, d, e) {
  10903. this.df[0] = a / 255;
  10904. this.df[1] = c / 255;
  10905. this.df[2] = d / 255;
  10906. this.df[3] = e / 255
  10907. },
  10908. o4: function(a) {
  10909. this.kC = a * b.pb()
  10910. },
  10911. WF: function(a) {
  10912. this.l.lineWidth && this.l.lineWidth(a)
  10913. }
  10914. });
  10915. b.F.xA = function() {
  10916. var a = b.M.prototype;
  10917. a.cb = b.N.prototype.cb;
  10918. a.nf = function() {
  10919. this.nb = !0;
  10920. var a = this.gm,
  10921. d = this.hm;
  10922. this.Zv = "rgba(128,128,128," + this.sj + ")";
  10923. this.cv = "rgba(" + (0 | d.r) + "," + (0 | d.g) + "," + (0 | d.b) + ", 1)";
  10924. this.dw = "rgba(" + (0 | a.r) + "," + (0 | a.g) + "," + (0 | a.b) + ", 1)"
  10925. };
  10926. a.Nc = b.N.prototype.Nc;
  10927. a.Sa = b.N.prototype.Sa;
  10928. a.Bc = b.N.prototype.Bc;
  10929. a.aF = function(a, d) {
  10930. if (!b.N.prototype.da.call(this)) return !1;
  10931. this.shaderProgram = b.Md.nc(b.M.DU);
  10932. this.zD(d, !1);
  10933. this.string = a;
  10934. return !0
  10935. };
  10936. a.hy = function(a) {
  10937. var d = this.hm;
  10938. if (d.r != a.r ||
  10939. d.g != a.g || d.b != a.b) d.r = a.r, d.g = a.g, d.b = a.b, this.nf(), this.nb = !0
  10940. };
  10941. a.Y = function(a) {
  10942. if (this.Ib && "" != this.Ib) {
  10943. a = a || b.l;
  10944. var d = this.G;
  10945. d && d.wc && (this.Eb.Oc(), this.Eb.Ye(), b.Hh(this.p.src, this.p.S), b.te(d), b.Jc(b.El), a.bindBuffer(a.ARRAY_BUFFER, this.Lv), this.Ie && (a.bufferData(a.ARRAY_BUFFER, this.Ob.xw, a.STATIC_DRAW), this.Ie = !1), a.vertexAttribPointer(b.qb, 3, a.FLOAT, !1, 24, 0), a.vertexAttribPointer(b.zd, 2, a.FLOAT, !1, 24, 16), a.vertexAttribPointer(b.Ce, 4, a.UNSIGNED_BYTE, !0, 24, 12), a.drawArrays(a.TRIANGLE_STRIP, 0,
  10946. 4));
  10947. if (1 === b.Yj) a = this.Ob, b.Fe.ae([C(a.K.f.x, a.K.f.y), C(a.C.f.x, a.C.f.y), C(a.L.f.x, a.L.f.y), C(a.J.f.x, a.J.f.y)], 4, !0);
  10948. else if (2 === b.Yj) {
  10949. a = this.uN();
  10950. var d = this.offsetX,
  10951. e = this.offsetY;
  10952. b.Fe.ae([C(d, e), C(d + a.width, e), C(d + a.width, e + a.height), C(d, e + a.height)], 4, !0)
  10953. }
  10954. b.sf++
  10955. }
  10956. };
  10957. a.tb = b.N.prototype.tb
  10958. };
  10959. b.F.Az = function() {
  10960. var a = b.M.prototype;
  10961. b.i(a, "color", a.Hg, a.cb);
  10962. b.i(a, "opacity", a.Ig, a.Sa);
  10963. b.i(a, "string", a.al, a.Kb);
  10964. b.i(a, "textAlign", a.m0, a.VF);
  10965. b.i(a, "verticalAlign", a.c1, a.L4);
  10966. b.i(a, "fontSize", a.DE, a.jy);
  10967. b.i(a, "fontName", a.CE, a.iy);
  10968. b.i(a, "font", a.YV, a.UX);
  10969. b.i(a, "boundingWidth", a.wB, a.OX);
  10970. b.i(a, "boundingHeight", a.VV, a.NX);
  10971. b.i(a, "fillStyle", a.XV, a.hy);
  10972. b.i(a, "strokeStyle", a.tW, a.pY);
  10973. b.i(a, "lineWidth", a.fW, a.YX);
  10974. b.i(a, "shadowOffsetX", a.oW, a.fY);
  10975. b.i(a, "shadowOffsetY", a.pW, a.gY);
  10976. b.i(a, "shadowOpacity",
  10977. a.qW, a.hY);
  10978. b.i(a, "shadowBlur", a.nW, a.eY)
  10979. };
  10980. b.M = b.N.extend({
  10981. hc: null,
  10982. Ak: b.Al,
  10983. Vk: b.Bq,
  10984. Wb: null,
  10985. Nb: 0,
  10986. Ib: "",
  10987. dC: null,
  10988. lo: !1,
  10989. dh: null,
  10990. nd: !1,
  10991. Ed: null,
  10992. sj: 0,
  10993. Mk: 0,
  10994. Zv: null,
  10995. Dg: !1,
  10996. gm: null,
  10997. uj: 0,
  10998. dw: null,
  10999. hm: null,
  11000. cv: null,
  11001. lD: 0,
  11002. mD: 0,
  11003. nb: !1,
  11004. qv: null,
  11005. rv: null,
  11006. xK: null,
  11007. vb: "LabelTTF",
  11008. ctor: function(a, c, d, e, f, g) {
  11009. b.N.prototype.ctor.call(this);
  11010. this.hc = N(0, 0);
  11011. this.Ak = b.eu;
  11012. this.Vk = b.Bq;
  11013. this.Oa = !1;
  11014. this.dh = "";
  11015. this.Wb = "Arial";
  11016. this.nd = this.lo = !1;
  11017. this.Ed = C(0, 0);
  11018. this.Mk = this.sj = 0;
  11019. this.Zv = "rgba(128, 128, 128, 0.5)";
  11020. this.Dg = !1;
  11021. this.gm = b.color(255, 255, 255, 255);
  11022. this.uj = 0;
  11023. this.dw = "";
  11024. this.hm =
  11025. b.color(255, 255, 255, 255);
  11026. this.cv = "rgba(255,255,255,1)";
  11027. this.mD = this.lD = 0;
  11028. this.nb = !1;
  11029. this.xK = [];
  11030. this.nf();
  11031. c && c instanceof b.RG ? this.aF(a, c) : b.M.prototype.sd.call(this, a, c, d, e, f, g)
  11032. },
  11033. da: function() {
  11034. return this.sd(" ", this.Wb, this.Nb)
  11035. },
  11036. aX: function() {
  11037. this.zB().font = this.dh
  11038. },
  11039. oo: function(a) {
  11040. return this.zB().measureText(a).width
  11041. },
  11042. description: function() {
  11043. return "\x3ccc.LabelTTF | FontName \x3d" + this.Wb + " FontSize \x3d " + this.Nb.toFixed(1) + "\x3e"
  11044. },
  11045. cb: null,
  11046. nf: null,
  11047. Nc: null,
  11048. Sa: null,
  11049. Bc: null,
  11050. Ika: function(a) {
  11051. b.k.prototype.Bc.call(this,
  11052. a);
  11053. this.nf()
  11054. },
  11055. al: function() {
  11056. return this.Ib
  11057. },
  11058. m0: function() {
  11059. return this.Ak
  11060. },
  11061. c1: function() {
  11062. return this.Vk
  11063. },
  11064. Aba: function() {
  11065. return N(this.hc)
  11066. },
  11067. DE: function() {
  11068. return this.Nb
  11069. },
  11070. CE: function() {
  11071. return this.Wb
  11072. },
  11073. sd: function(a, c, d, e, f, g) {
  11074. a = a ? a + "" : "";
  11075. d = d || 16;
  11076. e = e || N(0, d);
  11077. f = f || b.eu;
  11078. g = g || b.Bq;
  11079. this.Oa = !1;
  11080. this.hc = N(e.width, e.height);
  11081. this.Wb = c || "Arial";
  11082. this.Ak = f;
  11083. this.Vk = g;
  11084. this.Nb = d;
  11085. this.dh = this.Nb + "px '" + c + "'";
  11086. this.ei = b.M.Dq(c, this.Nb);
  11087. this.string = a;
  11088. this.nf();
  11089. this.uw();
  11090. this.nb = !1;
  11091. return !0
  11092. },
  11093. aF: null,
  11094. Jja: function(a) {
  11095. a && this.zD(a, !0)
  11096. },
  11097. gda: function() {
  11098. return this.yX(!1)
  11099. },
  11100. p_: function(a, c, d, e) {
  11101. d = d || 0.5;
  11102. !1 === this.nd && (this.nd = !0);
  11103. var f = this.Ed;
  11104. if (f && f.x != a || f.Oe != c) f.x = a, f.y = c;
  11105. this.sj != d && (this.sj = d);
  11106. this.nf();
  11107. this.Mk != e && (this.Mk = e);
  11108. this.nb = !0
  11109. },
  11110. oW: function() {
  11111. return this.Ed.x
  11112. },
  11113. fY: function(a) {
  11114. !1 === this.nd && (this.nd = !0);
  11115. this.Ed.x != a && (this.Ed.x = a, this.nb = !0)
  11116. },
  11117. pW: function() {
  11118. return this.Ed.Oe
  11119. },
  11120. gY: function(a) {
  11121. !1 === this.nd && (this.nd = !0);
  11122. this.Ed.Oe != a && (this.Ed.Oe = a, this.nb = !0)
  11123. },
  11124. j9: function() {
  11125. return C(this.Ed.x, this.Ed.y)
  11126. },
  11127. A9: function(a) {
  11128. !1 ===
  11129. this.nd && (this.nd = !0);
  11130. if (this.Ed.x != a.x || this.Ed.y != a.y) this.Ed.x = a.x, this.Ed.y = a.y, this.nb = !0
  11131. },
  11132. qW: function() {
  11133. return this.sj
  11134. },
  11135. hY: function(a) {
  11136. !1 === this.nd && (this.nd = !0);
  11137. this.sj != a && (this.sj = a, this.nf(), this.nb = !0)
  11138. },
  11139. nW: function() {
  11140. return this.Mk
  11141. },
  11142. eY: function(a) {
  11143. !1 === this.nd && (this.nd = !0);
  11144. this.Mk != a && (this.Mk = a, this.nb = !0)
  11145. },
  11146. Q$: function() {
  11147. this.nd && (this.nd = !1, this.nb = !0)
  11148. },
  11149. q_: function(a, c) {
  11150. !1 === this.Dg && (this.Dg = !0);
  11151. var d = this.gm;
  11152. 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.nf();
  11153. this.uj !==
  11154. c && (this.uj = c || 0);
  11155. this.nb = !0
  11156. },
  11157. tW: function() {
  11158. return this.gm
  11159. },
  11160. pY: function(a) {
  11161. !1 === this.Dg && (this.Dg = !0);
  11162. var c = this.gm;
  11163. if (c.r !== a.r || c.g !== a.g || c.b !== a.b) c.r = a.r, c.g = a.g, c.b = a.b, this.nf(), this.nb = !0
  11164. },
  11165. fW: function() {
  11166. return this.uj
  11167. },
  11168. YX: function(a) {
  11169. !1 === this.Dg && (this.Dg = !0);
  11170. this.uj !== a && (this.uj = a || 0, this.nb = !0)
  11171. },
  11172. R$: function() {
  11173. this.Dg && (this.Dg = !1, this.nb = !0)
  11174. },
  11175. hy: null,
  11176. XV: function() {
  11177. return this.hm
  11178. },
  11179. zD: function(a, c) {
  11180. a.Vaa ? (this.hc.width = a.boundingWidth, this.hc.height = a.boundingHeight) : (this.hc.width = 0, this.hc.height =
  11181. 0);
  11182. this.Ak = a.textAlign;
  11183. this.Vk = a.verticalAlign;
  11184. this.Wb = a.fontName;
  11185. this.Nb = a.fontSize || 12;
  11186. this.dh = this.Nb + "px '" + this.Wb + "'";
  11187. this.ei = b.M.Dq(this.Wb, this.Nb);
  11188. a.AP && this.p_(a.shadowOffsetX, a.shadowOffsetY, a.shadowOpacity, a.shadowBlur);
  11189. a.mG && this.q_(a.strokeStyle, a.lineWidth);
  11190. this.hy(a.fillStyle);
  11191. c && this.uw()
  11192. },
  11193. yX: function(a) {
  11194. var c = new b.RG;
  11195. a ? (c.fontSize = this.Nb, c.boundingWidth = b.pb() * this.hc.width, c.boundingHeight = b.pb() * this.hc.height) : (c.fontSize = this.Nb, c.boundingWidth = this.hc.width, c.boundingHeight =
  11196. this.hc.height);
  11197. c.fontName = this.Wb;
  11198. c.textAlign = this.Ak;
  11199. c.verticalAlign = this.Vk;
  11200. if (this.Dg) {
  11201. c.mG = !0;
  11202. var d = this.gm;
  11203. c.strokeStyle = b.color(d.r, d.g, d.b);
  11204. c.lineWidth = this.uj
  11205. } else c.mG = !1;
  11206. this.nd ? (c.AP = !0, c.shadowBlur = this.Mk, c.shadowOpacity = this.sj, c.shadowOffsetX = (a ? b.pb() : 1) * this.Ed.x, c.shadowOffsetY = (a ? b.pb() : 1) * this.Ed.y) : c.nd = !1;
  11207. a = this.hm;
  11208. c.fillStyle = b.color(a.r, a.g, a.b);
  11209. return c
  11210. },
  11211. ei: 18,
  11212. Kb: function(a) {
  11213. a = String(a);
  11214. this.dC != a && (this.dC = a + "", this.sw(), this.nb = !0)
  11215. },
  11216. sw: function() {
  11217. this.Ib = this.dC
  11218. },
  11219. VF: function(a) {
  11220. a !==
  11221. this.Ak && (this.Ak = a, this.nb = !0)
  11222. },
  11223. L4: function(a) {
  11224. a != this.Vk && (this.Vk = a, this.nb = !0)
  11225. },
  11226. Cia: function(a, c) {
  11227. var d;
  11228. void 0 === c ? (d = a.width, c = a.height) : d = a;
  11229. if (d != this.hc.width || c != this.hc.height) this.hc.width = d, this.hc.height = c, this.sw(), this.nb = !0
  11230. },
  11231. wB: function() {
  11232. return this.hc.width
  11233. },
  11234. OX: function(a) {
  11235. a != this.hc.width && (this.hc.width = a, this.sw(), this.nb = !0)
  11236. },
  11237. VV: function() {
  11238. return this.hc.height
  11239. },
  11240. NX: function(a) {
  11241. a != this.hc.height && (this.hc.height = a, this.sw(), this.nb = !0)
  11242. },
  11243. jy: function(a) {
  11244. this.Nb !== a && (this.Nb = a, this.dh =
  11245. a + "px '" + this.Wb + "'", this.ei = b.M.Dq(this.Wb, a), this.nb = !0)
  11246. },
  11247. iy: function(a) {
  11248. this.Wb && this.Wb != a && (this.Wb = a, this.dh = this.Nb + "px '" + a + "'", this.ei = b.M.Dq(a, this.Nb), this.nb = !0)
  11249. },
  11250. YV: function() {
  11251. return this.dh
  11252. },
  11253. UX: function(a) {
  11254. var c = b.M.KV.exec(a);
  11255. c && (this.Nb = parseInt(c[1]), this.Wb = c[2], this.dh = a, this.ei = b.M.Dq(this.Wb, this.Nb), this.nb = !0)
  11256. },
  11257. DV: function(a) {
  11258. if (a) {
  11259. var c = this.lD,
  11260. d = this.mD,
  11261. e = this.O.height - d,
  11262. f = this.Vk,
  11263. g = this.Ak,
  11264. h = this.ei,
  11265. k = this.uj;
  11266. a.setTransform(1, 0, 0, 1, 0 + 0.5 * c, e + 0.5 * d);
  11267. a.font != this.dh && (a.font =
  11268. this.dh);
  11269. a.fillStyle = this.cv;
  11270. var m = d = 0,
  11271. p = this.Dg;
  11272. p && (a.lineWidth = 2 * k, a.strokeStyle = this.dw);
  11273. this.nd && (k = this.Ed, a.shadowColor = this.Zv, a.shadowOffsetX = k.x, a.shadowOffsetY = -k.y, a.shadowBlur = this.Mk);
  11274. a.textBaseline = b.M.FY[f];
  11275. a.textAlign = b.M.EY[g];
  11276. c = this.O.width - c;
  11277. d = g === b.KH ? d + c : g === b.Al ? d + c / 2 : d + 0;
  11278. if (this.lo)
  11279. for (g = this.ui.length, f === b.xI ? m = h + e - h * g : f === b.uU && (m = h / 2 + (e - h * g) / 2), f = 0; f < g; f++) c = this.ui[f], k = -e + h * f + m, p && a.strokeText(c, d, k), a.fillText(c, d, k);
  11280. else f !== b.xI && (m = f === b.Bq ? m - e : m - 0.5 * e), p && a.strokeText(this.Ib,
  11281. d, m), a.fillText(this.Ib, d, m)
  11282. }
  11283. },
  11284. zB: function() {
  11285. if (this.rv) return this.rv;
  11286. if (!this.qv) {
  11287. var a = b.Sb("canvas"),
  11288. c = new b.aa;
  11289. c.Kc(a);
  11290. this.texture = c;
  11291. this.qv = a
  11292. }
  11293. return this.rv = this.qv.getContext("2d")
  11294. },
  11295. dV: function(a, c, d) {
  11296. var e = a[c],
  11297. f = this.oo(e);
  11298. if (f > d && 1 < e.length) {
  11299. for (var g = d / f * e.length | 0, h = e.substr(g), k = f - this.oo(h), m, p = 0, r = 0; k > d && 100 > r++;) g *= d / k, g |= 0, h = e.substr(g), k = f - this.oo(h);
  11300. for (r = 0; k < d && 100 > r++;) h && (p = (m = b.M.UY.exec(h)) ? m[0].length : 1, m = h), g += p, h = e.substr(g), k = f - this.oo(h);
  11301. g -= p;
  11302. d = e.substr(0, g);
  11303. b.M.T5 &&
  11304. b.M.DY.test(m || h) && (f = b.M.TW.exec(d), g -= f ? f[0].length : 0, m = e.substr(g), d = e.substr(0, g));
  11305. b.M.GV.test(m) && (f = b.M.SW.exec(d)) && d !== f[0] && (g -= f[0].length, m = e.substr(g), d = e.substr(0, g));
  11306. a[c] = m || h;
  11307. a.splice(c, 0, d)
  11308. }
  11309. },
  11310. tw: function() {
  11311. var a = this.hc.width,
  11312. c, d, e = this.xK;
  11313. e.length = 0;
  11314. this.lo = !1;
  11315. this.aX();
  11316. if (0 !== a)
  11317. for (this.ui = this.Ib.split("\n"), c = 0; c < this.ui.length; c++) this.dV(this.ui, c, a);
  11318. else
  11319. for (this.ui = this.Ib.split("\n"), c = 0, d = this.ui.length; c < d; c++) e.push(this.oo(this.ui[c]));
  11320. 0 < this.ui.length && (this.lo = !0);
  11321. d =
  11322. c = 0;
  11323. this.Dg && (c = d = 2 * this.uj);
  11324. if (this.nd) {
  11325. var f = this.Ed;
  11326. c += 2 * Math.abs(f.x);
  11327. d += 2 * Math.abs(f.y)
  11328. }
  11329. a = 0 === a ? this.lo ? N(0 | Math.max.apply(Math, e) + c, 0 | this.ei * this.ui.length + d) : N(0 | this.oo(this.Ib) + c, 0 | this.ei + d) : 0 === this.hc.height ? this.lo ? N(0 | a + c, 0 | this.ei * this.ui.length + d) : N(0 | a + c, 0 | this.ei + d) : N(0 | a + c, 0 | this.hc.height + d);
  11330. this.Kd(a);
  11331. this.lD = c;
  11332. this.mD = d;
  11333. e = this.Qc;
  11334. this.Ab.x = 0.5 * c + (a.width - c) * e.x;
  11335. this.Ab.y = 0.5 * d + (a.height - d) * e.y
  11336. },
  11337. se: function() {
  11338. this.nb && this.tw();
  11339. return b.N.prototype.se.call(this)
  11340. },
  11341. eh: function() {
  11342. this.nb &&
  11343. this.tw();
  11344. return b.N.prototype.eh.call(this)
  11345. },
  11346. yk: function() {
  11347. this.nb && this.tw();
  11348. return b.N.prototype.yk.call(this)
  11349. },
  11350. uw: function() {
  11351. var a = this.zB(),
  11352. c = this.qv,
  11353. d = this.O;
  11354. if (0 === this.Ib.length) return c.width = 1, c.height = d.height || 1, this.G && this.G.rb(), this.tb(O(0, 0, 1, d.height)), !0;
  11355. a.font = this.dh;
  11356. this.tw();
  11357. var e = d.width,
  11358. d = d.height,
  11359. f = c.width == e && c.height == d;
  11360. c.width = e;
  11361. c.height = d;
  11362. f && a.clearRect(0, 0, e, d);
  11363. this.DV(a);
  11364. this.G && this.G.rb();
  11365. this.tb(O(0, 0, e, d));
  11366. return !0
  11367. },
  11368. R: function(a) {
  11369. this.Ib && "" != this.Ib && (this.nb &&
  11370. (this.nb = !1, this.uw()), b.N.prototype.R.call(this, a || b.l))
  11371. },
  11372. Y: null,
  11373. qL: function(a) {
  11374. var c = this.V ? this.textureAtlas.texture : this.G;
  11375. if (c) {
  11376. var d = c.pixelsWidth,
  11377. e = c.pixelsHeight,
  11378. f, g = this.Ob;
  11379. this.Ec ? (b.jn ? (c = (2 * a.x + 1) / (2 * d), d = c + (2 * a.height - 2) / (2 * d), f = (2 * a.y + 1) / (2 * e), a = f + (2 * a.width - 2) / (2 * e)) : (c = a.x / d, d = (a.x + a.height) / d, f = a.y / e, a = (a.y + a.width) / e), this.Lb && (e = f, f = a, a = e), this.Mb && (e = c, c = d, d = e), g.C.m.fa = c, g.C.m.ga = f, g.L.m.fa = c, g.L.m.ga = a, g.K.m.fa = d, g.K.m.ga = f, g.J.m.fa = d, g.J.m.ga = a) : (b.jn ? (c = (2 * a.x + 1) / (2 * d), d = c +
  11380. (2 * a.width - 2) / (2 * d), f = (2 * a.y + 1) / (2 * e), a = f + (2 * a.height - 2) / (2 * e)) : (c = a.x / d, d = (a.x + a.width) / d, f = a.y / e, a = (a.y + a.height) / e), this.Lb && (e = c, c = d, d = e), this.Mb && (e = f, f = a, a = e), g.C.m.fa = c, g.C.m.ga = a, g.L.m.fa = d, g.L.m.ga = a, g.K.m.fa = c, g.K.m.ga = f, g.J.m.fa = d, g.J.m.ga = f);
  11381. this.Ie = !0
  11382. }
  11383. }
  11384. });
  11385. b.A === b.Ba ? (n = b.M.prototype, n.cb = function(a) {
  11386. b.k.prototype.cb.call(this, a);
  11387. this.nf()
  11388. }, n.nf = function() {
  11389. this.nb = !0;
  11390. var a = this.ya,
  11391. c = this.fb,
  11392. d = this.gm,
  11393. e = this.hm;
  11394. this.Zv = "rgba(" + (0 | 0.5 * a.r) + "," + (0 | 0.5 * a.g) + "," + (0 | 0.5 * a.b) + "," + this.sj + ")";
  11395. this.cv = "rgba(" + (0 | a.r / 255 * e.r) + "," + (0 | a.g / 255 * e.g) + "," + (0 | a.b / 255 * e.b) + ", " + c / 255 + ")";
  11396. this.dw = "rgba(" + (0 | a.r / 255 * d.r) + "," + (0 | a.g / 255 * d.g) + "," + (0 | a.b / 255 * d.b) + ", " + c / 255 + ")"
  11397. }, n.Nc = function(a) {
  11398. b.k.prototype.Nc.call(this, a);
  11399. this.nf()
  11400. }, n.Sa = function(a) {
  11401. this.Wd !== a && (b.N.prototype.Sa.call(this,
  11402. a), this.nf(), this.nb = !0)
  11403. }, n.Bc = b.N.prototype.Bc, n.aF = function(a, c) {
  11404. this.zD(c, !1);
  11405. this.string = a;
  11406. return !0
  11407. }, n.hy = function(a) {
  11408. var c = this.hm;
  11409. if (c.r != a.r || c.g != a.g || c.b != a.b) c.r = a.r, c.g = a.g, c.b = a.b, this.nf(), this.nb = !0
  11410. }, n.Y = b.N.prototype.Y, n.tb = function(a, c, d) {
  11411. this.Ec = c || !1;
  11412. this.Kd(d || a);
  11413. this.iG(a);
  11414. c = this.im;
  11415. c.x = a.x;
  11416. c.y = a.y;
  11417. c.width = a.width;
  11418. c.height = a.height;
  11419. c.bn = !(0 === c.width || 0 === c.height || 0 > c.x || 0 > c.y);
  11420. a = this.xh;
  11421. this.Lb && (a.x = -a.x);
  11422. this.Mb && (a.y = -a.y);
  11423. this.Hb.x = a.x + (this.O.width - this.ia.width) / 2;
  11424. this.Hb.y =
  11425. a.y + (this.O.height - this.ia.height) / 2;
  11426. this.V && (this.dirty = !0)
  11427. }, n = null) : (b.assert("function" === typeof b.F.xA, b.e.jd, "LabelTTFWebGL.js"), b.F.xA(), delete b.F.xA);
  11428. b.assert("function" === typeof b.F.Az, b.e.jd, "LabelTTFPropertyDefine.js");
  11429. b.F.Az();
  11430. delete b.F.Az;
  11431. b.M.EY = ["left", "center", "right"];
  11432. b.M.FY = ["top", "middle", "bottom"];
  11433. b.M.T5 = !0;
  11434. b.M.UY = /([a-zA-Z0-9\u00c4\u00d6\u00dc\u00e4\u00f6\u00fc\u00df\u00e9\u00e8\u00e7\u00e0\u00f9\u00ea\u00e2\u00ee\u00f4\u00fb]+|\S)/;
  11435. b.M.DY = /^[!,.:;}\]%\?>\u3001\u2018\u201c\u300b\uff1f\u3002\uff0c\uff01]/;
  11436. b.M.TW = /([a-zA-Z0-9\u00c4\u00d6\u00dc\u00e4\u00f6\u00fc\u00df\u00e9\u00e8\u00e7\u00e0\u00f9\u00ea\u00e2\u00ee\u00f4\u00fb]+|\S)$/;
  11437. b.M.SW = /[a-zA-Z0-9\u00c4\u00d6\u00dc\u00e4\u00f6\u00fc\u00df\u00e9\u00e8\u00e7\u00e0\u00f9\u00ea\u00e2\u00ee\u00f4\u00fb]+$/;
  11438. b.M.GV = /^[a-zA-Z0-9\u00c4\u00d6\u00dc\u00e4\u00f6\u00fc\u00df\u00e9\u00e8\u00e7\u00e0\u00f9\u00ea\u00e2\u00ee\u00f4\u00fb]/;
  11439. b.M.KV = /^(\d+)px\s+['"]?([\w\s\d]+)['"]?$/;
  11440. b.M.create = function(a, c, d, e, f, g) {
  11441. return new b.M(a, c, d, e, f, g)
  11442. };
  11443. b.M.E$ = b.M.create;
  11444. b.M.DU = b.tU ? b.Wi : b.Nz;
  11445. b.M.jk = b.Sb("div");
  11446. b.M.jk.style.fontFamily = "Arial";
  11447. b.M.jk.style.position = "absolute";
  11448. b.M.jk.style.left = "-100px";
  11449. b.M.jk.style.top = "-100px";
  11450. b.M.jk.style.lineHeight = "normal";
  11451. document.body ? document.body.appendChild(b.M.jk) : b.Ga(window, "load", function() {
  11452. this.removeEventListener("load", arguments.callee, !1);
  11453. document.body.appendChild(b.M.jk)
  11454. }, !1);
  11455. b.M.Dq = function(a, c) {
  11456. var d = b.M.DI[a + "." + c];
  11457. if (0 < d) return d;
  11458. var e = b.M.jk;
  11459. e.innerHTML = "ajghl~!";
  11460. e.style.fontFamily = a;
  11461. e.style.fontSize = c + "px";
  11462. d = e.clientHeight;
  11463. b.M.DI[a + "." + c] = d;
  11464. e.innerHTML = "";
  11465. return d
  11466. };
  11467. b.M.DI = {};
  11468. b.jR = b.oa.extend({
  11469. Ac: null,
  11470. target: null,
  11471. sm: 0,
  11472. rf: null,
  11473. zm: !1,
  11474. paused: !1,
  11475. bx: null,
  11476. ctor: function() {
  11477. this.Ac = [];
  11478. this.target = null;
  11479. this.sm = 0;
  11480. this.rf = null;
  11481. this.paused = this.zm = !1;
  11482. this.bx = null
  11483. }
  11484. });
  11485. b.wG = b.oa.extend({
  11486. gh: null,
  11487. wn: null,
  11488. ib: null,
  11489. ci: !1,
  11490. y9: function(a, c) {
  11491. for (var d = 0; d < a.length; d++)
  11492. if (c == a[d].target) return a[d];
  11493. return null
  11494. },
  11495. ctor: function() {
  11496. this.gh = {};
  11497. this.wn = [];
  11498. this.ib = null;
  11499. this.ci = !1
  11500. },
  11501. XY: function(a, c, d) {
  11502. if (!a) throw "cc.ActionManager.addAction(): action must be non-null";
  11503. if (!c) throw "cc.ActionManager.addAction(): action must be non-null";
  11504. var e = this.gh[c.ta];
  11505. e || (e = new b.jR, e.paused = d, e.target = c, this.gh[c.ta] = e, this.wn.push(e));
  11506. this.GU(e);
  11507. e.Ac.push(a);
  11508. a.v(c)
  11509. },
  11510. Eha: function() {
  11511. for (var a = this.wn,
  11512. c = 0; c < a.length; c++) {
  11513. var d = a[c];
  11514. d && this.HO(d.target, !0)
  11515. }
  11516. },
  11517. HO: function(a, c) {
  11518. if (null != a) {
  11519. var d = this.gh[a.ta];
  11520. d && (-1 === d.Ac.indexOf(d.rf) || d.zm || (d.zm = !0), d.Ac.length = 0, this.ib != d || c ? this.dB(d) : this.ci = !0)
  11521. }
  11522. },
  11523. GO: function(a) {
  11524. if (null != a) {
  11525. var c = this.gh[a.originalTarget.ta];
  11526. if (c)
  11527. for (var d = 0; d < c.Ac.length; d++) {
  11528. if (c.Ac[d] == a) {
  11529. c.Ac.splice(d, 1);
  11530. break
  11531. }
  11532. } else b.log(b.e.gQ)
  11533. }
  11534. },
  11535. n3: function(a, c) {
  11536. a == b.dn && b.log(b.e.xG);
  11537. b.assert(c, b.e.xG);
  11538. var d = this.gh[c.ta];
  11539. if (d)
  11540. for (var e = d.Ac.length, f = 0; f < e; ++f) {
  11541. var g = d.Ac[f];
  11542. if (g &&
  11543. g.LE() === a && g.originalTarget == c) {
  11544. this.BX(f, d);
  11545. break
  11546. }
  11547. }
  11548. },
  11549. xE: function(a, c) {
  11550. a == b.dn && b.log(b.e.eQ);
  11551. var d = this.gh[c.ta];
  11552. if (d) {
  11553. if (null != d.Ac)
  11554. for (var e = 0; e < d.Ac.length; ++e) {
  11555. var f = d.Ac[e];
  11556. if (f && f.LE() === a) return f
  11557. }
  11558. b.log(b.e.fQ, a)
  11559. }
  11560. return null
  11561. },
  11562. E2: function(a) {
  11563. return (a = this.gh[a.ta]) ? a.Ac ? a.Ac.length : 0 : 0
  11564. },
  11565. sp: function(a) {
  11566. (a = this.gh[a.ta]) && (a.paused = !0)
  11567. },
  11568. Oj: function(a) {
  11569. (a = this.gh[a.ta]) && (a.paused = !1)
  11570. },
  11571. bha: function() {
  11572. for (var a = [], c = this.wn, d = 0; d < c.length; d++) {
  11573. var e = c[d];
  11574. e && !e.paused && (e.paused = !0, a.push(e.target))
  11575. }
  11576. return a
  11577. },
  11578. B3: function(a) {
  11579. if (a)
  11580. for (var c = 0; c < a.length; c++) a[c] && this.Oj(a[c])
  11581. },
  11582. mha: function() {
  11583. b.I.$k().ot(this)
  11584. },
  11585. BX: function(a, c) {
  11586. c.Ac[a] != c.rf || c.zm || (c.zm = !0);
  11587. c.Ac.splice(a, 1);
  11588. c.sm >= a && c.sm--;
  11589. 0 == c.Ac.length && (this.ib == c ? this.ci = !0 : this.dB(c))
  11590. },
  11591. dB: function(a) {
  11592. a && (delete this.gh[a.target.ta], b.Pe(this.wn, a), a.Ac = null, a.target = null)
  11593. },
  11594. GU: function(a) {
  11595. null == a.Ac && (a.Ac = [])
  11596. },
  11597. update: function(a) {
  11598. for (var c = this.wn, d, e = 0; e < c.length; e++) {
  11599. d = this.ib = c[e];
  11600. if (!d.paused)
  11601. for (d.sm = 0; d.sm < d.Ac.length; d.sm++)
  11602. if (d.rf = d.Ac[d.sm],
  11603. d.rf) {
  11604. d.zm = !1;
  11605. d.rf.step(a * (d.rf.Ir ? d.rf.me : 1));
  11606. if (d.zm) d.rf = null;
  11607. else if (d.rf.Jg()) {
  11608. d.rf.stop();
  11609. var f = d.rf;
  11610. d.rf = null;
  11611. this.GO(f)
  11612. }
  11613. d.rf = null
  11614. }
  11615. this.ci && 0 === d.Ac.length && this.dB(d)
  11616. }
  11617. }
  11618. });
  11619. b.Bfa = Number;
  11620. b.rea = Number;
  11621. b.sea = Number;
  11622. b.nn = 0;
  11623. b.on = 1;
  11624. b.oF = 3.141592;
  11625. b.g2 = 0.017453;
  11626. b.h2 = 57.295779;
  11627. b.xa = 0.015625;
  11628. b.Lc = function(a) {
  11629. return a * a
  11630. };
  11631. b.Ds = function(a) {
  11632. return a * b.g2
  11633. };
  11634. b.wfa = function(a) {
  11635. return a * b.h2
  11636. };
  11637. b.tx = function(a, c) {
  11638. return a < c ? a : c
  11639. };
  11640. b.sx = function(a, c) {
  11641. return a > c ? a : c
  11642. };
  11643. b.qea = function(a, c) {
  11644. return a + b.xa > c && a - b.xa < c
  11645. };
  11646. b.Kh = function() {
  11647. this.y = this.x = 0
  11648. };
  11649. b.Ffa = function(a, c, d) {
  11650. a.x = c;
  11651. a.y = d;
  11652. return a
  11653. };
  11654. b.vx = function(a) {
  11655. return Math.sqrt(b.Lc(a.x) + b.Lc(a.y))
  11656. };
  11657. b.Gfa = function(a) {
  11658. return b.Lc(a.x) + b.Lc(a.y)
  11659. };
  11660. b.n2 = function(a, c) {
  11661. var d = 1 / b.vx(c),
  11662. e = new b.Kh;
  11663. e.x = c.x * d;
  11664. e.y = c.y * d;
  11665. a.x = e.x;
  11666. a.y = e.y
  11667. };
  11668. b.Cfa = function(a, c, d) {
  11669. a.x = c.x + d.x;
  11670. a.y = c.y + d.y;
  11671. return a
  11672. };
  11673. b.Efa = function(a, c) {
  11674. return a.x * c.x + a.y * c.y
  11675. };
  11676. b.wx = function(a, c, d) {
  11677. a.x = c.x - d.x;
  11678. a.y = c.y - d.y;
  11679. return a
  11680. };
  11681. b.Ifa = function(a, c, d) {
  11682. var e = new b.Kh;
  11683. e.x = c.x * d.c[0] + c.y * d.c[3] + d.c[6];
  11684. e.y = c.x * d.c[1] + c.y * d.c[4] + d.c[7];
  11685. a.x = e.x;
  11686. a.y = e.y;
  11687. return a
  11688. };
  11689. b.Jfa = function() {
  11690. return null
  11691. };
  11692. b.Hfa = function(a, c, d) {
  11693. a.x = c.x * d;
  11694. a.y = c.y * d;
  11695. return a
  11696. };
  11697. b.Dfa = function(a, c) {
  11698. return a.x < c.x + b.xa && a.x > c.x - b.xa && a.y < c.y + b.xa && a.y > c.y - b.xa
  11699. };
  11700. b.wb = function(a, c, d) {
  11701. this.x = a || 0;
  11702. this.y = c || 0;
  11703. this.z = d || 0
  11704. };
  11705. b.kp = function(a, c, d, e) {
  11706. if (!a) return new b.wb(c, d, e);
  11707. a.x = c;
  11708. a.y = d;
  11709. a.z = e;
  11710. return a
  11711. };
  11712. b.eO = function(a) {
  11713. return Math.sqrt(b.Lc(a.x) + b.Lc(a.y) + b.Lc(a.z))
  11714. };
  11715. b.fO = function(a) {
  11716. return b.Lc(a.x) + b.Lc(a.y) + b.Lc(a.z)
  11717. };
  11718. b.xf = function(a, c) {
  11719. var d = 1 / b.eO(c);
  11720. a.x = c.x * d;
  11721. a.y = c.y * d;
  11722. a.z = c.z * d
  11723. };
  11724. b.el = function(a, c, d) {
  11725. a.x = c.y * d.z - c.z * d.y;
  11726. a.y = c.z * d.x - c.x * d.z;
  11727. a.z = c.x * d.y - c.y * d.x
  11728. };
  11729. b.qF = function(a, c) {
  11730. return a.x * c.x + a.y * c.y + a.z * c.z
  11731. };
  11732. b.dO = function(a, c, d) {
  11733. a.x = c.x + d.x;
  11734. a.y = c.y + d.y;
  11735. a.z = c.z + d.z
  11736. };
  11737. b.sF = function(a, c, d) {
  11738. a.x = c.x - d.x;
  11739. a.y = c.y - d.y;
  11740. a.z = c.z - d.z
  11741. };
  11742. b.Ofa = function(a, c, d) {
  11743. a.x = c.x * d.c[0] + c.y * d.c[4] + c.z * d.c[8] + d.c[12];
  11744. a.y = c.x * d.c[1] + c.y * d.c[5] + c.z * d.c[9] + d.c[13];
  11745. a.z = c.x * d.c[2] + c.y * d.c[6] + c.z * d.c[10] + d.c[14];
  11746. return a
  11747. };
  11748. b.Pfa = function(a, c, d) {
  11749. a.x = c.x * d.c[0] + c.y * d.c[4] + c.z * d.c[8];
  11750. a.y = c.x * d.c[1] + c.y * d.c[5] + c.z * d.c[9];
  11751. a.z = c.x * d.c[2] + c.y * d.c[6] + c.z * d.c[10];
  11752. return a
  11753. };
  11754. b.gO = function(a, c, d) {
  11755. var e = new b.hO,
  11756. f = new b.hO;
  11757. b.o2(f, c.x, c.y, c.z);
  11758. b.iO(e, f, d);
  11759. a.x = e.x / e.D;
  11760. a.y = e.y / e.D;
  11761. a.z = e.z / e.D
  11762. };
  11763. b.rF = function(a, c, d) {
  11764. a.x = c.x * d;
  11765. a.y = c.y * d;
  11766. a.z = c.z * d;
  11767. return a
  11768. };
  11769. b.Kfa = function(a, c) {
  11770. return a.x < c.x + b.xa && a.x > c.x - b.xa && a.y < c.y + b.xa && a.y > c.y - b.xa && a.z < c.z + b.xa && a.z > c.z - b.xa ? 1 : 0
  11771. };
  11772. b.Lfa = function(a, c, d) {
  11773. c = new b.wb(c.x - d.c[12], c.y - d.c[13], c.z - d.c[14]);
  11774. a.x = c.x * d.c[0] + c.y * d.c[1] + c.z * d.c[2];
  11775. a.y = c.x * d.c[4] + c.y * d.c[5] + c.z * d.c[6];
  11776. a.z = c.x * d.c[8] + c.y * d.c[9] + c.z * d.c[10];
  11777. return a
  11778. };
  11779. b.Mfa = function(a, c, d) {
  11780. a.x = c.x * d.c[0] + c.y * d.c[1] + c.z * d.c[2];
  11781. a.y = c.x * d.c[4] + c.y * d.c[5] + c.z * d.c[6];
  11782. a.z = c.x * d.c[8] + c.y * d.c[9] + c.z * d.c[10];
  11783. return a
  11784. };
  11785. b.Es = function(a, c) {
  11786. a != c && (a.x = c.x, a.y = c.y, a.z = c.z)
  11787. };
  11788. b.Qfa = function(a) {
  11789. a.x = 0;
  11790. a.y = 0;
  11791. a.z = 0;
  11792. return a
  11793. };
  11794. b.Nfa = function(a) {
  11795. if (!a) return null;
  11796. var c = new Float32Array(3);
  11797. c[0] = a.x;
  11798. c[1] = a.y;
  11799. c[2] = a.z;
  11800. return c
  11801. };
  11802. b.hO = function() {
  11803. this.D = this.z = this.y = this.x = 0
  11804. };
  11805. b.o2 = function(a, c, d, e) {
  11806. a.x = c;
  11807. a.y = d;
  11808. a.z = e;
  11809. a.D = 1
  11810. };
  11811. b.Rfa = function(a, c, d) {
  11812. a.x = c.x + d.x;
  11813. a.y = c.y + d.y;
  11814. a.z = c.z + d.z;
  11815. a.D = c.D + d.D;
  11816. return a
  11817. };
  11818. b.Ufa = function(a, c) {
  11819. return a.x * c.x + a.y * c.y + a.z * c.z + a.D * c.D
  11820. };
  11821. b.p2 = function(a) {
  11822. return Math.sqrt(b.Lc(a.x) + b.Lc(a.y) + b.Lc(a.z) + b.Lc(a.D))
  11823. };
  11824. b.Vfa = function(a) {
  11825. return b.Lc(a.x) + b.Lc(a.y) + b.Lc(a.z) + b.Lc(a.D)
  11826. };
  11827. b.Wfa = function(a) {
  11828. return a
  11829. };
  11830. b.q2 = function(a, c) {
  11831. var d = 1 / b.p2(c);
  11832. a.x *= d;
  11833. a.y *= d;
  11834. a.z *= d;
  11835. a.D *= d
  11836. };
  11837. b.Xfa = function(a, c, d) {
  11838. b.q2(a, c);
  11839. a.x *= d;
  11840. a.y *= d;
  11841. a.z *= d;
  11842. a.D *= d;
  11843. return a
  11844. };
  11845. b.Yfa = function(a, c, d) {
  11846. a.x = c.x - d.x;
  11847. a.y = c.y - d.y;
  11848. a.z = c.z - d.z;
  11849. a.D = c.D - d.D;
  11850. return a
  11851. };
  11852. b.iO = function(a, c, d) {
  11853. a.x = c.x * d.c[0] + c.y * d.c[4] + c.z * d.c[8] + c.D * d.c[12];
  11854. a.y = c.x * d.c[1] + c.y * d.c[5] + c.z * d.c[9] + c.D * d.c[13];
  11855. a.z = c.x * d.c[2] + c.y * d.c[6] + c.z * d.c[10] + c.D * d.c[14];
  11856. a.D = c.x * d.c[3] + c.y * d.c[7] + c.z * d.c[11] + c.D * d.c[15]
  11857. };
  11858. b.$fa = function(a, c, d, e, f, g) {
  11859. for (var h = 0; h < g;) b.iO(a + h * c, d + h * e, f), ++h;
  11860. return a
  11861. };
  11862. b.Sfa = function(a, c) {
  11863. return a.x < c.x + b.xa && a.x > c.x - b.xa && a.y < c.y + b.xa && a.y > c.y - b.xa && a.z < c.z + b.xa && a.z > c.z - b.xa && a.D < c.D + b.xa && a.D > c.D - b.xa
  11864. };
  11865. b.Tfa = function(a, c) {
  11866. if (a == c) return b.log("destVec and srcVec are same object"), a;
  11867. a.x = c.x;
  11868. a.y = c.y;
  11869. a.z = c.z;
  11870. a.D = c.D;
  11871. return a
  11872. };
  11873. b.Zfa = function(a) {
  11874. if (!a) return null;
  11875. var c = new Float32Array(4);
  11876. c[0] = a.x;
  11877. c[1] = a.y;
  11878. c[2] = a.z;
  11879. c[3] = a.D;
  11880. return c
  11881. };
  11882. b.xfa = function(a) {
  11883. this.start = a || new b.Kh;
  11884. this.start = a || new b.Kh
  11885. };
  11886. b.yfa = function(a, c, d, e, f) {
  11887. a.start.x = c;
  11888. a.start.y = d;
  11889. a.dir.x = e;
  11890. a.dir.y = f
  11891. };
  11892. b.pF = function(a, c, d, e) {
  11893. var f = a.start.x,
  11894. g = a.start.y,
  11895. h = a.start.x + a.dir.x;
  11896. a = a.start.y + a.dir.y;
  11897. var k = c.x,
  11898. m = c.y,
  11899. p = d.x,
  11900. r = d.y,
  11901. s = (r - m) * (h - f) - (p - k) * (a - g);
  11902. if (s > -b.xa && s < b.xa) return b.nn;
  11903. m = ((p - k) * (g - m) - (r - m) * (f - k)) / s;
  11904. k = f + m * (h - f);
  11905. m = g + m * (a - g);
  11906. if (k < b.tx(c.x, d.x) - b.xa || k > b.sx(c.x, d.x) + b.xa || m < b.tx(c.y, d.y) - b.xa || m > b.sx(c.y, d.y) + b.xa || k < b.tx(f, h) - b.xa || k > b.sx(f, h) + b.xa || m < b.tx(g, a) - b.xa || m > b.sx(g, a) + b.xa) return b.nn;
  11907. e.x = k;
  11908. e.y = m;
  11909. return b.on
  11910. };
  11911. b.XD = function(a, c, d) {
  11912. var e = new b.Kh;
  11913. b.wx(e, c, a);
  11914. d.x = -e.y;
  11915. d.y = e.x;
  11916. b.n2(d, d)
  11917. };
  11918. b.Afa = function(a, c, d, e, f, g) {
  11919. var h = new b.Kh,
  11920. k = new b.Kh,
  11921. m = new b.Kh,
  11922. p = 1E4,
  11923. r = b.nn,
  11924. s;
  11925. b.pF(a, c, d, h) && (s = new b.Kh, r = b.on, s = b.vx(b.wx(s, h, a.start)), s < p && (k.x = h.x, k.y = h.y, p = s, b.XD(c, d, m)));
  11926. b.pF(a, d, e, h) && (s = new b.Kh, r = b.on, s = b.vx(b.wx(s, h, a.start)), s < p && (k.x = h.x, k.y = h.y, p = s, b.XD(d, e, m)));
  11927. b.pF(a, e, c, h) && (s = new b.Kh, r = b.on, s = b.vx(b.wx(s, h, a.start)), s < p && (k.x = h.x, k.y = h.y, b.XD(e, c, m)));
  11928. r && (f.x = k.x, f.y = k.y, g && (g.x = m.x, g.y = m.y));
  11929. return r
  11930. };
  11931. b.zfa = function() {
  11932. b.log("cc.kmRay2IntersectCircle() has not been implemented.")
  11933. };
  11934. var Float32Array = Float32Array || Array;
  11935. b.rx = function() {
  11936. this.c = new Float32Array([0, 0, 0, 0, 0, 0, 0, 0, 0])
  11937. };
  11938. b.Aea = function(a, c) {
  11939. for (var d = 0; 9 > d; d++) a.c[d] = c;
  11940. return a
  11941. };
  11942. b.Z1 = function(a, c) {
  11943. a.c[0] = c.c[4] * c.c[8] - c.c[5] * c.c[7];
  11944. a.c[1] = c.c[2] * c.c[7] - c.c[1] * c.c[8];
  11945. a.c[2] = c.c[1] * c.c[5] - c.c[2] * c.c[4];
  11946. a.c[3] = c.c[5] * c.c[6] - c.c[3] * c.c[8];
  11947. a.c[4] = c.c[0] * c.c[8] - c.c[2] * c.c[6];
  11948. a.c[5] = c.c[2] * c.c[3] - c.c[0] * c.c[5];
  11949. a.c[6] = c.c[3] * c.c[7] - c.c[4] * c.c[6];
  11950. a.c[8] = c.c[0] * c.c[4] - c.c[1] * c.c[3]
  11951. };
  11952. b.WN = function(a) {
  11953. a.c[1] = a.c[2] = a.c[3] = a.c[5] = a.c[6] = a.c[7] = 0;
  11954. a.c[0] = a.c[4] = a.c[8] = 1
  11955. };
  11956. b.Bea = function(a, c, d) {
  11957. var e = new b.rx;
  11958. if (0 === c) return null;
  11959. c = 1 / c;
  11960. b.Z1(e, d);
  11961. b.a2(a, e, c);
  11962. return a
  11963. };
  11964. b.rx.GB = new Float32Array([1, 0, 0, 0, 1, 0, 0, 0, 1]);
  11965. b.Cea = function(a) {
  11966. for (var c = 0; 9 > c; c++)
  11967. if (b.rx.GB[c] !== a.c[c]) return !1;
  11968. return !0
  11969. };
  11970. b.Nea = function(a, c) {
  11971. var d, e;
  11972. for (d = 0; 3 > d; ++d)
  11973. for (e = 0; 3 > e; ++e) a.c[3 * d + e] = c.c[3 * e + d];
  11974. return a
  11975. };
  11976. b.zea = function(a) {
  11977. var c;
  11978. c = a.c[0] * a.c[4] * a.c[8] + a.c[1] * a.c[5] * a.c[6] + a.c[2] * a.c[3] * a.c[7];
  11979. return c -= a.c[2] * a.c[4] * a.c[6] + a.c[0] * a.c[5] * a.c[7] + a.c[1] * a.c[3] * a.c[8]
  11980. };
  11981. b.Dea = function(a, c, d) {
  11982. c = c.c;
  11983. d = d.c;
  11984. a.c[0] = c[0] * d[0] + c[3] * d[1] + c[6] * d[2];
  11985. a.c[1] = c[1] * d[0] + c[4] * d[1] + c[7] * d[2];
  11986. a.c[2] = c[2] * d[0] + c[5] * d[1] + c[8] * d[2];
  11987. a.c[3] = c[0] * d[3] + c[3] * d[4] + c[6] * d[5];
  11988. a.c[4] = c[1] * d[3] + c[4] * d[4] + c[7] * d[5];
  11989. a.c[5] = c[2] * d[3] + c[5] * d[4] + c[8] * d[5];
  11990. a.c[6] = c[0] * d[6] + c[3] * d[7] + c[6] * d[8];
  11991. a.c[7] = c[1] * d[6] + c[4] * d[7] + c[7] * d[8];
  11992. a.c[8] = c[2] * d[6] + c[5] * d[7] + c[8] * d[8];
  11993. return a
  11994. };
  11995. b.a2 = function(a, c, d) {
  11996. for (var e = 0; 9 > e; e++) a.c[e] = c.c[e] * d
  11997. };
  11998. b.Fea = function(a, c, d) {
  11999. var e = Math.cos(d);
  12000. d = Math.sin(d);
  12001. a.c[0] = e + c.x * c.x * (1 - e);
  12002. a.c[1] = c.z * d + c.y * c.x * (1 - e);
  12003. a.c[2] = -c.y * d + c.z * c.x * (1 - e);
  12004. a.c[3] = -c.z * d + c.x * c.y * (1 - e);
  12005. a.c[4] = e + c.y * c.y * (1 - e);
  12006. a.c[5] = c.x * d + c.z * c.y * (1 - e);
  12007. a.c[6] = c.y * d + c.x * c.z * (1 - e);
  12008. a.c[7] = -c.x * d + c.y * c.z * (1 - e);
  12009. a.c[8] = e + c.z * c.z * (1 - e);
  12010. return a
  12011. };
  12012. b.yea = function(a, c) {
  12013. if (a == c) return b.log("cc.kmMat3Assign(): pOut equals pIn"), a;
  12014. for (var d = 0; 9 > d; d++) a.c[d] = c.c[d];
  12015. return a
  12016. };
  12017. b.xea = function(a, c) {
  12018. if (a == c) return !0;
  12019. for (var d = 0; 9 > d; ++d)
  12020. if (!(a.c[d] + b.xa > c.c[d] && a.c[d] - b.xa < c.c[d])) return !1;
  12021. return !0
  12022. };
  12023. b.Iea = function(a, c) {
  12024. a.c[0] = 1;
  12025. a.c[1] = 0;
  12026. a.c[2] = 0;
  12027. a.c[3] = 0;
  12028. a.c[4] = Math.cos(c);
  12029. a.c[5] = Math.sin(c);
  12030. a.c[6] = 0;
  12031. a.c[7] = -Math.sin(c);
  12032. a.c[8] = Math.cos(c);
  12033. return a
  12034. };
  12035. b.Jea = function(a, c) {
  12036. a.c[0] = Math.cos(c);
  12037. a.c[1] = 0;
  12038. a.c[2] = -Math.sin(c);
  12039. a.c[3] = 0;
  12040. a.c[4] = 1;
  12041. a.c[5] = 0;
  12042. a.c[6] = Math.sin(c);
  12043. a.c[7] = 0;
  12044. a.c[8] = Math.cos(c);
  12045. return a
  12046. };
  12047. b.Kea = function(a, c) {
  12048. a.c[0] = Math.cos(c);
  12049. a.c[1] = -Math.sin(c);
  12050. a.c[2] = 0;
  12051. a.c[3] = Math.sin(c);
  12052. a.c[4] = Math.cos(c);
  12053. a.c[5] = 0;
  12054. a.c[6] = 0;
  12055. a.c[7] = 0;
  12056. a.c[8] = 1;
  12057. return a
  12058. };
  12059. b.Eea = function(a, c) {
  12060. a.c[0] = Math.cos(c);
  12061. a.c[1] = Math.sin(c);
  12062. a.c[2] = 0;
  12063. a.c[3] = -Math.sin(c);
  12064. a.c[4] = Math.cos(c);
  12065. a.c[5] = 0;
  12066. a.c[6] = 0;
  12067. a.c[7] = 0;
  12068. a.c[8] = 1;
  12069. return a
  12070. };
  12071. b.Lea = function(a, c, d) {
  12072. b.WN(a);
  12073. a.c[0] = c;
  12074. a.c[4] = d;
  12075. return a
  12076. };
  12077. b.Mea = function(a, c, d) {
  12078. b.WN(a);
  12079. a.c[6] = c;
  12080. a.c[7] = d;
  12081. return a
  12082. };
  12083. b.Gea = function(a, c) {
  12084. if (!c || !a) return null;
  12085. a.c[0] = 1 - 2 * (c.y * c.y + c.z * c.z);
  12086. a.c[1] = 2 * (c.x * c.y - c.D * c.z);
  12087. a.c[2] = 2 * (c.x * c.z + c.D * c.y);
  12088. a.c[3] = 2 * (c.x * c.y + c.D * c.z);
  12089. a.c[4] = 1 - 2 * (c.x * c.x + c.z * c.z);
  12090. a.c[5] = 2 * (c.y * c.z - c.D * c.x);
  12091. a.c[6] = 2 * (c.x * c.z - c.D * c.y);
  12092. a.c[7] = 2 * (c.y * c.z + c.D * c.x);
  12093. a.c[8] = 1 - 2 * (c.x * c.x + c.y * c.y);
  12094. return a
  12095. };
  12096. b.Hea = function(a, c, d) {
  12097. b.bO(void 0, d);
  12098. b.cO(void 0, a);
  12099. return a
  12100. };
  12101. b.ba = function() {
  12102. this.c = new Float32Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0])
  12103. };
  12104. b.Qea = function(a, c) {
  12105. a.c[0] = a.c[1] = a.c[2] = a.c[3] = a.c[4] = a.c[5] = a.c[6] = a.c[7] = a.c[8] = a.c[9] = a.c[10] = a.c[11] = a.c[12] = a.c[13] = a.c[14] = a.c[15] = c
  12106. };
  12107. b.Nm = function(a) {
  12108. 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;
  12109. a.c[0] = a.c[5] = a.c[10] = a.c[15] = 1
  12110. };
  12111. b.ba.Hf = function(a, c, d) {
  12112. return a.c[c + 4 * d]
  12113. };
  12114. b.ba.Kk = function(a, c, d, e) {
  12115. a.c[c + 4 * d] = e
  12116. };
  12117. b.ba.Rk = function(a, c, d, e, f) {
  12118. var g = b.ba.Hf(a, c, d);
  12119. b.ba.Kk(a, c, d, b.ba.Hf(a, e, f));
  12120. b.ba.Kk(a, e, f, g)
  12121. };
  12122. b.ba.MV = function(a, c) {
  12123. var d, e = 0,
  12124. f = 0,
  12125. g, h, k, m = [0, 0, 0, 0],
  12126. p = [0, 0, 0, 0],
  12127. r = [0, 0, 0, 0];
  12128. for (d = 0; 4 > d; d++) {
  12129. for (g = k = 0; 4 > g; g++)
  12130. if (1 != r[g])
  12131. for (h = 0; 4 > h; h++) 0 == r[h] && Math.abs(b.ba.Hf(a, g, h)) >= k && (k = Math.abs(b.ba.Hf(a, g, h)), f = g, e = h);
  12132. ++r[e];
  12133. if (f != e) {
  12134. for (g = 0; 4 > g; g++) b.ba.Rk(a, f, g, e, g);
  12135. for (g = 0; 4 > g; g++) b.ba.Rk(c, f, g, e, g)
  12136. }
  12137. p[d] = f;
  12138. m[d] = e;
  12139. if (0 == b.ba.Hf(a, e, e)) return b.nn;
  12140. h = 1 / b.ba.Hf(a, e, e);
  12141. b.ba.Kk(a, e, e, 1);
  12142. for (g = 0; 4 > g; g++) b.ba.Kk(a, e, g, b.ba.Hf(a, e, g) * h);
  12143. for (g = 0; 4 > g; g++) b.ba.Kk(c, e, g, b.ba.Hf(c, e, g) * h);
  12144. for (h = 0; 4 > h; h++)
  12145. if (h !=
  12146. e) {
  12147. k = b.ba.Hf(a, h, e);
  12148. b.ba.Kk(a, h, e, 0);
  12149. for (g = 0; 4 > g; g++) b.ba.Kk(a, h, g, b.ba.Hf(a, h, g) - b.ba.Hf(a, e, g) * k);
  12150. for (g = 0; 4 > g; g++) b.ba.Kk(c, h, g, b.ba.Hf(a, h, g) - b.ba.Hf(c, e, g) * k)
  12151. }
  12152. }
  12153. for (g = 3; 0 <= g; g--)
  12154. if (p[g] != m[g])
  12155. for (h = 0; 4 > h; h++) b.ba.Rk(a, h, p[g], h, m[g]);
  12156. return b.on
  12157. };
  12158. b.ba.GB = new Float32Array([1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]);
  12159. b.c2 = function(a, c) {
  12160. var d = new b.ba,
  12161. e = new b.ba;
  12162. b.Gj(d, c);
  12163. b.Nm(e);
  12164. b.ba.MV(d, e) != b.nn && b.Gj(a, d)
  12165. };
  12166. b.Uea = function(a) {
  12167. for (var c = 0; 16 > c; c++)
  12168. if (b.ba.GB[c] != a.c[c]) return !1;
  12169. return !0
  12170. };
  12171. b.bfa = function(a, c) {
  12172. var d, e, f = a.c,
  12173. g = c.c;
  12174. for (e = 0; 4 > e; ++e)
  12175. for (d = 0; 4 > d; ++d) f[4 * e + d] = g[4 * d + e];
  12176. return a
  12177. };
  12178. b.Ei = function(a, c, d) {
  12179. a = a.c;
  12180. var e = c.c[0],
  12181. f = c.c[1],
  12182. g = c.c[2],
  12183. h = c.c[3],
  12184. k = c.c[4],
  12185. m = c.c[5],
  12186. p = c.c[6],
  12187. r = c.c[7],
  12188. s = c.c[8],
  12189. u = c.c[9],
  12190. t = c.c[10],
  12191. v = c.c[11],
  12192. w = c.c[12],
  12193. y = c.c[13],
  12194. B = c.c[14];
  12195. c = c.c[15];
  12196. var G = d.c[0],
  12197. I = d.c[1],
  12198. E = d.c[2],
  12199. A = d.c[3],
  12200. D = d.c[4],
  12201. x = d.c[5],
  12202. F = d.c[6],
  12203. K = d.c[7],
  12204. L = d.c[8],
  12205. J = d.c[9],
  12206. P = d.c[10],
  12207. T = d.c[11],
  12208. R = d.c[12],
  12209. X = d.c[13],
  12210. M = d.c[14];
  12211. d = d.c[15];
  12212. a[0] = G * e + I * k + E * s + A * w;
  12213. a[1] = G * f + I * m + E * u + A * y;
  12214. a[2] = G * g + I * p + E * t + A * B;
  12215. a[3] = G * h + I * r + E * v + A * c;
  12216. a[4] = D * e + x * k + F * s + K * w;
  12217. a[5] = D * f + x * m + F * u + K * y;
  12218. a[6] = D * g + x * p + F * t + K * B;
  12219. a[7] = D * h + x * r + F * v + K *
  12220. c;
  12221. a[8] = L * e + J * k + P * s + T * w;
  12222. a[9] = L * f + J * m + P * u + T * y;
  12223. a[10] = L * g + J * p + P * t + T * B;
  12224. a[11] = L * h + J * r + P * v + T * c;
  12225. a[12] = R * e + X * k + M * s + d * w;
  12226. a[13] = R * f + X * m + M * u + d * y;
  12227. a[14] = R * g + X * p + M * t + d * B;
  12228. a[15] = R * h + X * r + M * v + d * c
  12229. };
  12230. b.w0 = function() {
  12231. var a = b.jl.top.c,
  12232. c = b.Kj.top.c,
  12233. d = new Float32Array(16);
  12234. d[0] = a[0] * c[0] + a[4] * c[1] + a[8] * c[2] + a[12] * c[3];
  12235. d[1] = a[1] * c[0] + a[5] * c[1] + a[9] * c[2] + a[13] * c[3];
  12236. d[2] = a[2] * c[0] + a[6] * c[1] + a[10] * c[2] + a[14] * c[3];
  12237. d[3] = a[3] * c[0] + a[7] * c[1] + a[11] * c[2] + a[15] * c[3];
  12238. d[4] = a[0] * c[4] + a[4] * c[5] + a[8] * c[6] + a[12] * c[7];
  12239. d[5] = a[1] * c[4] + a[5] * c[5] + a[9] * c[6] + a[13] * c[7];
  12240. d[6] = a[2] * c[4] + a[6] * c[5] + a[10] * c[6] + a[14] * c[7];
  12241. d[7] = a[3] * c[4] + a[7] * c[5] + a[11] * c[6] + a[15] * c[7];
  12242. d[8] = a[0] * c[8] + a[4] * c[9] + a[8] * c[10] + a[12] * c[11];
  12243. d[9] = a[1] * c[8] +
  12244. a[5] * c[9] + a[9] * c[10] + a[13] * c[11];
  12245. d[10] = a[2] * c[8] + a[6] * c[9] + a[10] * c[10] + a[14] * c[11];
  12246. d[11] = a[3] * c[8] + a[7] * c[9] + a[11] * c[10] + a[15] * c[11];
  12247. d[12] = a[0] * c[12] + a[4] * c[13] + a[8] * c[14] + a[12] * c[15];
  12248. d[13] = a[1] * c[12] + a[5] * c[13] + a[9] * c[14] + a[13] * c[15];
  12249. d[14] = a[2] * c[12] + a[6] * c[13] + a[10] * c[14] + a[14] * c[15];
  12250. d[15] = a[3] * c[12] + a[7] * c[13] + a[11] * c[14] + a[15] * c[15];
  12251. return d
  12252. };
  12253. b.kca = function(a, c, d) {
  12254. a = a.c;
  12255. c = c.c;
  12256. var e = d.c;
  12257. e[0] = a[0] * c[0] + a[4] * c[1] + a[8] * c[2] + a[12] * c[3];
  12258. e[1] = a[1] * c[0] + a[5] * c[1] + a[9] * c[2] + a[13] * c[3];
  12259. e[2] = a[2] * c[0] + a[6] * c[1] + a[10] * c[2] + a[14] * c[3];
  12260. e[3] = a[3] * c[0] + a[7] * c[1] + a[11] * c[2] + a[15] * c[3];
  12261. e[4] = a[0] * c[4] + a[4] * c[5] + a[8] * c[6] + a[12] * c[7];
  12262. e[5] = a[1] * c[4] + a[5] * c[5] + a[9] * c[6] + a[13] * c[7];
  12263. e[6] = a[2] * c[4] + a[6] * c[5] + a[10] * c[6] + a[14] * c[7];
  12264. e[7] = a[3] * c[4] + a[7] * c[5] + a[11] * c[6] + a[15] * c[7];
  12265. e[8] = a[0] * c[8] + a[4] * c[9] + a[8] * c[10] + a[12] * c[11];
  12266. e[9] = a[1] * c[8] + a[5] * c[9] + a[9] * c[10] + a[13] *
  12267. c[11];
  12268. e[10] = a[2] * c[8] + a[6] * c[9] + a[10] * c[10] + a[14] * c[11];
  12269. e[11] = a[3] * c[8] + a[7] * c[9] + a[11] * c[10] + a[15] * c[11];
  12270. e[12] = a[0] * c[12] + a[4] * c[13] + a[8] * c[14] + a[12] * c[15];
  12271. e[13] = a[1] * c[12] + a[5] * c[13] + a[9] * c[14] + a[13] * c[15];
  12272. e[14] = a[2] * c[12] + a[6] * c[13] + a[10] * c[14] + a[14] * c[15];
  12273. e[15] = a[3] * c[12] + a[7] * c[13] + a[11] * c[14] + a[15] * c[15];
  12274. return d.c
  12275. };
  12276. b.Gj = function(a, c) {
  12277. if (a == c) b.log("cc.kmMat4Assign(): pOut equals pIn");
  12278. else {
  12279. var d = a.c,
  12280. e = c.c;
  12281. d[0] = e[0];
  12282. d[1] = e[1];
  12283. d[2] = e[2];
  12284. d[3] = e[3];
  12285. d[4] = e[4];
  12286. d[5] = e[5];
  12287. d[6] = e[6];
  12288. d[7] = e[7];
  12289. d[8] = e[8];
  12290. d[9] = e[9];
  12291. d[10] = e[10];
  12292. d[11] = e[11];
  12293. d[12] = e[12];
  12294. d[13] = e[13];
  12295. d[14] = e[14];
  12296. d[15] = e[15]
  12297. }
  12298. };
  12299. b.Oea = function(a, c) {
  12300. if (a == c) return b.log("cc.kmMat4AreEqual(): pMat1 and pMat2 are same object."), !0;
  12301. for (var d = 0; 16 > d; d++)
  12302. if (!(a.c[d] + b.xa > c.c[d] && a.c[d] - b.xa < c.c[d])) return !1;
  12303. return !0
  12304. };
  12305. b.Zea = function(a, c) {
  12306. a.c[0] = 1;
  12307. a.c[1] = 0;
  12308. a.c[2] = 0;
  12309. a.c[3] = 0;
  12310. a.c[4] = 0;
  12311. a.c[5] = Math.cos(c);
  12312. a.c[6] = Math.sin(c);
  12313. a.c[7] = 0;
  12314. a.c[8] = 0;
  12315. a.c[9] = -Math.sin(c);
  12316. a.c[10] = Math.cos(c);
  12317. a.c[11] = 0;
  12318. a.c[12] = 0;
  12319. a.c[13] = 0;
  12320. a.c[14] = 0;
  12321. a.c[15] = 1;
  12322. return a
  12323. };
  12324. b.$ea = function(a, c) {
  12325. a.c[0] = Math.cos(c);
  12326. a.c[1] = 0;
  12327. a.c[2] = -Math.sin(c);
  12328. a.c[3] = 0;
  12329. a.c[4] = 0;
  12330. a.c[5] = 1;
  12331. a.c[6] = 0;
  12332. a.c[7] = 0;
  12333. a.c[8] = Math.sin(c);
  12334. a.c[9] = 0;
  12335. a.c[10] = Math.cos(c);
  12336. a.c[11] = 0;
  12337. a.c[12] = 0;
  12338. a.c[13] = 0;
  12339. a.c[14] = 0;
  12340. a.c[15] = 1;
  12341. return a
  12342. };
  12343. b.afa = function(a, c) {
  12344. a.c[0] = Math.cos(c);
  12345. a.c[1] = Math.sin(c);
  12346. a.c[2] = 0;
  12347. a.c[3] = 0;
  12348. a.c[4] = -Math.sin(c);
  12349. a.c[5] = Math.cos(c);
  12350. a.c[6] = 0;
  12351. a.c[7] = 0;
  12352. a.c[8] = 0;
  12353. a.c[9] = 0;
  12354. a.c[10] = 1;
  12355. a.c[11] = 0;
  12356. a.c[12] = 0;
  12357. a.c[13] = 0;
  12358. a.c[14] = 0;
  12359. a.c[15] = 1;
  12360. return a
  12361. };
  12362. b.Vea = function(a, c, d, e) {
  12363. var f = Math.cos(c);
  12364. c = Math.sin(c);
  12365. var g = Math.cos(d);
  12366. d = Math.sin(d);
  12367. var h = Math.cos(e);
  12368. e = Math.sin(e);
  12369. var k = c * d,
  12370. m = f * d;
  12371. a.c[0] = g * h;
  12372. a.c[4] = g * e;
  12373. a.c[8] = -d;
  12374. a.c[1] = k * h - f * e;
  12375. a.c[5] = k * e + f * h;
  12376. a.c[9] = c * g;
  12377. a.c[2] = m * h + c * e;
  12378. a.c[6] = m * e - c * h;
  12379. a.c[10] = f * g;
  12380. a.c[3] = a.c[7] = a.c[11] = 0;
  12381. a.c[15] = 1;
  12382. return a
  12383. };
  12384. b.Wea = function(a, c) {
  12385. a.c[0] = 1 - 2 * (c.y * c.y + c.z * c.z);
  12386. a.c[1] = 2 * (c.x * c.y + c.z * c.D);
  12387. a.c[2] = 2 * (c.x * c.z - c.y * c.D);
  12388. a.c[3] = 0;
  12389. a.c[4] = 2 * (c.x * c.y - c.z * c.D);
  12390. a.c[5] = 1 - 2 * (c.x * c.x + c.z * c.z);
  12391. a.c[6] = 2 * (c.z * c.y + c.x * c.D);
  12392. a.c[7] = 0;
  12393. a.c[8] = 2 * (c.x * c.z + c.y * c.D);
  12394. a.c[9] = 2 * (c.y * c.z - c.x * c.D);
  12395. a.c[10] = 1 - 2 * (c.x * c.x + c.y * c.y);
  12396. a.c[11] = 0;
  12397. a.c[12] = 0;
  12398. a.c[13] = 0;
  12399. a.c[14] = 0;
  12400. a.c[15] = 1;
  12401. return a
  12402. };
  12403. b.Yea = function(a, c, d) {
  12404. a.c[0] = c.c[0];
  12405. a.c[1] = c.c[1];
  12406. a.c[2] = c.c[2];
  12407. a.c[3] = 0;
  12408. a.c[4] = c.c[3];
  12409. a.c[5] = c.c[4];
  12410. a.c[6] = c.c[5];
  12411. a.c[7] = 0;
  12412. a.c[8] = c.c[6];
  12413. a.c[9] = c.c[7];
  12414. a.c[10] = c.c[8];
  12415. a.c[11] = 0;
  12416. a.c[12] = d.x;
  12417. a.c[13] = d.y;
  12418. a.c[14] = d.z;
  12419. a.c[15] = 1;
  12420. return a
  12421. };
  12422. b.f2 = function(a, c, d, e) {
  12423. a.c[0] = c;
  12424. a.c[5] = d;
  12425. a.c[10] = e;
  12426. a.c[15] = 1;
  12427. 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
  12428. };
  12429. b.YN = function(a, c, d, e) {
  12430. a.c[0] = a.c[5] = a.c[10] = a.c[15] = 1;
  12431. 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;
  12432. a.c[12] = c;
  12433. a.c[13] = d;
  12434. a.c[14] = e
  12435. };
  12436. b.Tea = function(a, c) {
  12437. a.x = c.c[4];
  12438. a.y = c.c[5];
  12439. a.z = c.c[6];
  12440. b.xf(a, a);
  12441. return a
  12442. };
  12443. b.Sea = function(a, c) {
  12444. a.x = c.c[0];
  12445. a.y = c.c[1];
  12446. a.z = c.c[2];
  12447. b.xf(a, a);
  12448. return a
  12449. };
  12450. b.Rea = function(a, c) {
  12451. a.x = c.c[8];
  12452. a.y = c.c[9];
  12453. a.z = c.c[10];
  12454. b.xf(a, a);
  12455. return a
  12456. };
  12457. b.d2 = function(a, c, d) {
  12458. var e = b.Ds(30),
  12459. f = d - 0.1,
  12460. g = Math.sin(e);
  12461. 0 != f && 0 != g && 0 != c && (e = Math.cos(e) / g, b.Nm(a), a.c[0] = e / c, a.c[5] = e, a.c[10] = -(d + 0.1) / f, a.c[11] = -1, a.c[14] = -0.2 * d / f, a.c[15] = 0)
  12462. };
  12463. b.nF = function(a, c, d, e, f, g, h) {
  12464. b.Nm(a);
  12465. a.c[0] = 2 / (d - c);
  12466. a.c[5] = 2 / (f - e);
  12467. a.c[10] = -2 / (h - g);
  12468. a.c[12] = -((d + c) / (d - c));
  12469. a.c[13] = -((f + e) / (f - e));
  12470. a.c[14] = -((h + g) / (h - g))
  12471. };
  12472. b.XN = function(a, c, d, e) {
  12473. var f = new b.wb,
  12474. g = new b.wb,
  12475. h = new b.wb,
  12476. k = new b.wb,
  12477. m = new b.ba;
  12478. b.sF(f, d, c);
  12479. b.xf(f, f);
  12480. b.Es(g, e);
  12481. b.xf(g, g);
  12482. b.el(h, f, g);
  12483. b.xf(h, h);
  12484. b.el(k, h, f);
  12485. b.xf(h, h);
  12486. b.Nm(a);
  12487. a.c[0] = h.x;
  12488. a.c[4] = h.y;
  12489. a.c[8] = h.z;
  12490. a.c[1] = k.x;
  12491. a.c[5] = k.y;
  12492. a.c[9] = k.z;
  12493. a.c[2] = -f.x;
  12494. a.c[6] = -f.y;
  12495. a.c[10] = -f.z;
  12496. b.YN(m, -c.x, -c.y, -c.z);
  12497. b.Ei(a, a, m)
  12498. };
  12499. b.e2 = function(a, c, d) {
  12500. var e = Math.cos(d);
  12501. d = Math.sin(d);
  12502. var f = new b.wb;
  12503. b.xf(f, c);
  12504. a.c[0] = e + f.x * f.x * (1 - e);
  12505. a.c[1] = f.z * d + f.y * f.x * (1 - e);
  12506. a.c[2] = -f.y * d + f.z * f.x * (1 - e);
  12507. a.c[3] = 0;
  12508. a.c[4] = -f.z * d + f.x * f.y * (1 - e);
  12509. a.c[5] = e + f.y * f.y * (1 - e);
  12510. a.c[6] = f.x * d + f.z * f.y * (1 - e);
  12511. a.c[7] = 0;
  12512. a.c[8] = f.y * d + f.x * f.z * (1 - e);
  12513. a.c[9] = -f.x * d + f.y * f.z * (1 - e);
  12514. a.c[10] = e + f.z * f.z * (1 - e);
  12515. a.c[11] = 0;
  12516. a.c[12] = 0;
  12517. a.c[13] = 0;
  12518. a.c[14] = 0;
  12519. a.c[15] = 1
  12520. };
  12521. b.b2 = function(a, c) {
  12522. a.c[0] = c.c[0];
  12523. a.c[1] = c.c[1];
  12524. a.c[2] = c.c[2];
  12525. a.c[3] = c.c[4];
  12526. a.c[4] = c.c[5];
  12527. a.c[5] = c.c[6];
  12528. a.c[6] = c.c[8];
  12529. a.c[7] = c.c[9];
  12530. a.c[8] = c.c[10]
  12531. };
  12532. b.Pea = function(a, c, d) {
  12533. switch (d) {
  12534. case b.zR:
  12535. a.a = c.c[3] - c.c[0];
  12536. a.b = c.c[7] - c.c[4];
  12537. a.B = c.c[11] - c.c[8];
  12538. a.H = c.c[15] - c.c[12];
  12539. break;
  12540. case b.xR:
  12541. a.a = c.c[3] + c.c[0];
  12542. a.b = c.c[7] + c.c[4];
  12543. a.B = c.c[11] + c.c[8];
  12544. a.H = c.c[15] + c.c[12];
  12545. break;
  12546. case b.vR:
  12547. a.a = c.c[3] + c.c[1];
  12548. a.b = c.c[7] + c.c[5];
  12549. a.B = c.c[11] + c.c[9];
  12550. a.H = c.c[15] + c.c[13];
  12551. break;
  12552. case b.AR:
  12553. a.a = c.c[3] - c.c[1];
  12554. a.b = c.c[7] - c.c[5];
  12555. a.B = c.c[11] - c.c[9];
  12556. a.H = c.c[15] - c.c[13];
  12557. break;
  12558. case b.wR:
  12559. a.a = c.c[3] - c.c[2];
  12560. a.b = c.c[7] - c.c[6];
  12561. a.B = c.c[11] - c.c[10];
  12562. a.H = c.c[15] - c.c[14];
  12563. break;
  12564. case b.yR:
  12565. a.a =
  12566. c.c[3] + c.c[2];
  12567. a.b = c.c[7] + c.c[6];
  12568. a.B = c.c[11] + c.c[10];
  12569. a.H = c.c[15] + c.c[14];
  12570. break;
  12571. default:
  12572. b.log("cc.kmMat4ExtractPlane(): Invalid plane index")
  12573. }
  12574. c = Math.sqrt(a.a * a.a + a.b * a.b + a.B * a.B);
  12575. a.a /= c;
  12576. a.b /= c;
  12577. a.B /= c;
  12578. a.H /= c;
  12579. return a
  12580. };
  12581. b.Xea = function(a, c, d) {
  12582. c = new da;
  12583. var e = new b.rx;
  12584. b.b2(e, d);
  12585. b.bO(c, e);
  12586. b.cO(c, a);
  12587. return a
  12588. };
  12589. b.xR = 0;
  12590. b.zR = 1;
  12591. b.vR = 2;
  12592. b.AR = 3;
  12593. b.yR = 4;
  12594. b.wR = 5;
  12595. b.cfa = function(a, c, d, e) {
  12596. this.a = a || 0;
  12597. this.b = c || 0;
  12598. this.B = d || 0;
  12599. this.H = e || 0
  12600. };
  12601. b.qS = 0;
  12602. b.pS = 1;
  12603. b.rS = 2;
  12604. b.efa = function(a, c) {
  12605. return a.a * c.x + a.b * c.y + a.B * c.z + a.H * c.D
  12606. };
  12607. b.ffa = function(a, c) {
  12608. return a.a * c.x + a.b * c.y + a.B * c.z + a.H
  12609. };
  12610. b.gfa = function(a, c) {
  12611. return a.a * c.x + a.b * c.y + a.B * c.z
  12612. };
  12613. b.hfa = function(a, c, d) {
  12614. a.a = d.x;
  12615. a.b = d.y;
  12616. a.B = d.z;
  12617. a.H = -b.qF(d, c);
  12618. return a
  12619. };
  12620. b.ifa = function(a, c, d, e) {
  12621. var f = new b.wb,
  12622. g = new b.wb,
  12623. h = new b.wb;
  12624. b.sF(g, d, c);
  12625. b.sF(h, e, c);
  12626. b.el(f, g, h);
  12627. b.xf(f, f);
  12628. a.a = f.x;
  12629. a.b = f.y;
  12630. a.B = f.z;
  12631. a.H = b.qF(b.rF(f, f, -1), c);
  12632. return a
  12633. };
  12634. b.jfa = function() {
  12635. throw "cc.kmPlaneIntersectLine() hasn't been implemented.";
  12636. };
  12637. b.kfa = function(a, c) {
  12638. var d = new b.wb;
  12639. d.x = c.a;
  12640. d.y = c.b;
  12641. d.z = c.B;
  12642. var e = 1 / b.eO(d);
  12643. b.xf(d, d);
  12644. a.a = d.x;
  12645. a.b = d.y;
  12646. a.B = d.z;
  12647. a.H = c.H * e;
  12648. return a
  12649. };
  12650. b.lfa = function() {
  12651. b.log("cc.kmPlaneScale() has not been implemented.")
  12652. };
  12653. b.dfa = function(a, c) {
  12654. var d = a.a * c.x + a.b * c.y + a.B * c.z + a.H;
  12655. return 0.001 < d ? b.qS : -0.001 > d ? b.pS : b.rS
  12656. };
  12657. function da() {
  12658. this.D = this.z = this.y = this.x = 0
  12659. }
  12660. b.j2 = function(a, c) {
  12661. a.x = -c.x;
  12662. a.y = -c.y;
  12663. a.z = -c.z;
  12664. a.D = c.D;
  12665. return a
  12666. };
  12667. b.k2 = function(a, c) {
  12668. return a.D * c.D + a.x * c.x + a.y * c.y + a.z * c.z
  12669. };
  12670. b.nfa = function(a) {
  12671. return a
  12672. };
  12673. b.l2 = function(a) {
  12674. a.x = 0;
  12675. a.y = 0;
  12676. a.z = 0;
  12677. a.D = 1
  12678. };
  12679. b.ofa = function(a, c) {
  12680. var d = b.ZN(c),
  12681. e = new da;
  12682. if (Math.abs(d) > b.xa) return a.x = 0, a.y = 0, a.z = 0, a.D = 0, a;
  12683. b.ux(a, b.j2(e, c), 1 / d);
  12684. return a
  12685. };
  12686. b.pfa = function(a) {
  12687. return 0 == a.x && 0 == a.y && 0 == a.z && 1 == a.D
  12688. };
  12689. b.ZN = function(a) {
  12690. return Math.sqrt(b.m2(a))
  12691. };
  12692. b.m2 = function(a) {
  12693. return a.x * a.x + a.y * a.y + a.z * a.z + a.D * a.D
  12694. };
  12695. b.qfa = function(a) {
  12696. return a
  12697. };
  12698. b.rfa = function(a, c, d) {
  12699. a.D = c.D * d.D - c.x * d.x - c.y * d.y - c.z * d.z;
  12700. a.x = c.D * d.x + c.x * d.D + c.y * d.z - c.z * d.y;
  12701. a.y = c.D * d.y + c.y * d.D + c.z * d.x - c.x * d.z;
  12702. a.z = c.D * d.z + c.z * d.D + c.x * d.y - c.y * d.x;
  12703. return a
  12704. };
  12705. b.$N = function(a, c) {
  12706. var d = b.ZN(c);
  12707. if (Math.abs(d) <= b.xa) throw "cc.kmQuaternionNormalize(): pIn is an invalid value";
  12708. b.ux(a, c, 1 / d)
  12709. };
  12710. b.aO = function(a, c) {
  12711. var d = 0.5 * b.oF,
  12712. e = Math.sin(d);
  12713. a.D = Math.cos(d);
  12714. a.x = c.x * e;
  12715. a.y = c.y * e;
  12716. a.z = c.z * e
  12717. };
  12718. b.bO = function(a, c) {
  12719. var d, e, f, g;
  12720. d = [];
  12721. e = g = 0;
  12722. if (c) {
  12723. d[0] = c.c[0];
  12724. d[1] = c.c[3];
  12725. d[2] = c.c[6];
  12726. d[4] = c.c[1];
  12727. d[5] = c.c[4];
  12728. d[6] = c.c[7];
  12729. d[8] = c.c[2];
  12730. d[9] = c.c[5];
  12731. d[10] = c.c[8];
  12732. d[15] = 1;
  12733. var h = d[0];
  12734. e = h[0] + h[5] + h[10] + 1;
  12735. e > b.xa ? (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 +
  12736. 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);
  12737. a.x = d;
  12738. a.y = e;
  12739. a.z = f;
  12740. a.D = g
  12741. }
  12742. };
  12743. b.ufa = function(a, c, d, e) {
  12744. var f, g, h, k, m;
  12745. f = b.Ds(d) / 2;
  12746. g = b.Ds(c) / 2;
  12747. h = b.Ds(e) / 2;
  12748. e = Math.cos(f);
  12749. c = Math.cos(g);
  12750. d = Math.cos(h);
  12751. f = Math.sin(f);
  12752. g = Math.sin(g);
  12753. h = Math.sin(h);
  12754. k = c * d;
  12755. m = g * h;
  12756. a.D = e * k + f * m;
  12757. a.x = f * k - e * m;
  12758. a.y = e * g * d + f * c * h;
  12759. a.z = e * c * h - f * g * d;
  12760. b.$N(a, a);
  12761. return a
  12762. };
  12763. b.vfa = function(a, c, d, e) {
  12764. if (c.x == d.x && c.y == d.y && c.z == d.z && c.D == d.D) return a.x = c.x, a.y = c.y, a.z = c.z, a.D = c.D, a;
  12765. var f = b.k2(c, d),
  12766. g = Math.acos(f),
  12767. f = Math.sqrt(1 - b.Lc(f)),
  12768. h = Math.sin(e * g) / f,
  12769. k = new da,
  12770. m = new da;
  12771. b.ux(k, c, Math.sin((1 - e) * g) / f);
  12772. b.ux(m, d, h);
  12773. b.i2(a, k, m);
  12774. return a
  12775. };
  12776. b.cO = function(a, c) {
  12777. var d;
  12778. d = Math.sqrt(b.Lc(a.x) + b.Lc(a.y) + b.Lc(a.z));
  12779. d > -b.xa && d < b.xa || d < 2 * b.oF + b.xa && d > 2 * b.oF - b.xa ? (c.x = 0, c.y = 0, c.z = 1) : (c.x = a.x / d, c.y = a.y / d, c.z = a.z / d, b.xf(c, c))
  12780. };
  12781. b.ux = function(a, c, d) {
  12782. a.x = c.x * d;
  12783. a.y = c.y * d;
  12784. a.z = c.z * d;
  12785. a.D = c.D * d
  12786. };
  12787. b.mfa = function(a, c) {
  12788. a.x = c.x;
  12789. a.y = c.y;
  12790. a.z = c.z;
  12791. a.D = c.D;
  12792. return a
  12793. };
  12794. b.i2 = function(a, c, d) {
  12795. a.x = c.x + d.x;
  12796. a.y = c.y + d.y;
  12797. a.z = c.z + d.z;
  12798. a.D = c.D + d.D
  12799. };
  12800. b.tfa = function(a, c, d, e) {
  12801. var f = new b.wb,
  12802. g = new b.wb;
  12803. b.Es(f, c);
  12804. b.Es(g, d);
  12805. b.xf(f, f);
  12806. b.xf(g, g);
  12807. d = b.qF(f, g);
  12808. if (1 <= d) return b.l2(a), a; - 0.999999 > d ? Math.abs(b.fO(e)) < b.xa ? b.aO(a, e) : (f = new b.wb, g = new b.wb, g.x = 1, g.y = 0, g.z = 0, b.el(f, g, c), Math.abs(b.fO(f)) < b.xa && (g = new b.wb, g.x = 0, g.y = 1, g.z = 0, b.el(f, g, c)), b.xf(f, f), b.aO(a, f)) : (c = Math.sqrt(2 * (1 + d)), e = 1 / c, d = new b.wb, b.el(d, f, g), a.x = d.x * e, a.y = d.y * e, a.z = d.z * e, a.D = 0.5 * c, b.$N(a, a));
  12809. return a
  12810. };
  12811. b.sfa = function(a, c, d) {
  12812. var e = new b.wb,
  12813. f = new b.wb,
  12814. g = new b.wb;
  12815. g.x = c.x;
  12816. g.y = c.y;
  12817. g.z = c.z;
  12818. b.el(e, g, d);
  12819. b.el(f, g, e);
  12820. b.rF(e, e, 2 * c.D);
  12821. b.rF(f, f, 2);
  12822. b.dO(a, d, e);
  12823. b.dO(a, a, f);
  12824. return a
  12825. };
  12826. b.mea = function(a, c) {
  12827. this.min = a || new b.wb;
  12828. this.max = c || new b.wb
  12829. };
  12830. b.oea = function(a, c) {
  12831. return a.x >= c.min.x && a.x <= c.max.x && a.y >= c.min.y && a.y <= c.max.y && a.z >= c.min.z && a.z <= c.max.z ? b.on : b.nn
  12832. };
  12833. b.nea = function(a, c) {
  12834. b.Es(a.min, c.min);
  12835. b.Es(a.max, c.max);
  12836. return a
  12837. };
  12838. b.pea = function() {
  12839. b.log("cc.kmAABBScale hasn't been supported.")
  12840. };
  12841. b.xx = function(a, c, d, e) {
  12842. this.top = d;
  12843. this.stack = e
  12844. };
  12845. b.xx.k7 = 30;
  12846. b.tF = function(a) {
  12847. a.stack = [];
  12848. a.top = null
  12849. };
  12850. b.yx = function(a, c) {
  12851. a.stack.push(a.top);
  12852. a.top = new b.ba;
  12853. b.Gj(a.top, c)
  12854. };
  12855. b.aga = function(a) {
  12856. a.top = a.stack.pop()
  12857. };
  12858. b.uF = function(a) {
  12859. a.stack = null;
  12860. a.top = null
  12861. };
  12862. b.Xg = 5888;
  12863. b.Yg = 5889;
  12864. b.VG = 5890;
  12865. b.Kj = new b.xx;
  12866. b.jl = new b.xx;
  12867. b.lt = new b.xx;
  12868. b.Pb = null;
  12869. b.dF = !1;
  12870. b.s2 = function() {
  12871. if (!b.dF) {
  12872. var a = new b.ba;
  12873. b.tF(b.Kj);
  12874. b.tF(b.jl);
  12875. b.tF(b.lt);
  12876. b.Pb = b.Kj;
  12877. b.dF = !0;
  12878. b.Nm(a);
  12879. b.yx(b.Kj, a);
  12880. b.yx(b.jl, a);
  12881. b.yx(b.lt, a)
  12882. }
  12883. };
  12884. b.s2();
  12885. b.Y1 = function() {
  12886. b.uF(b.Kj);
  12887. b.uF(b.jl);
  12888. b.uF(b.lt);
  12889. b.dF = !1;
  12890. b.Pb = null
  12891. };
  12892. b.Fj = function() {
  12893. b.yx(b.Pb, b.Pb.top)
  12894. };
  12895. b.uea = function(a) {
  12896. b.Pb.stack.push(b.Pb.top);
  12897. b.Gj(a, b.Pb.top);
  12898. b.Pb.top = a
  12899. };
  12900. b.Ej = function() {
  12901. b.Pb.top = b.Pb.stack.pop()
  12902. };
  12903. b.wf = function(a) {
  12904. switch (a) {
  12905. case b.Xg:
  12906. b.Pb = b.Kj;
  12907. break;
  12908. case b.Yg:
  12909. b.Pb = b.jl;
  12910. break;
  12911. case b.VG:
  12912. b.Pb = b.lt;
  12913. break;
  12914. default:
  12915. throw "Invalid matrix mode specified";
  12916. }
  12917. };
  12918. b.dl = function() {
  12919. b.Nm(b.Pb.top)
  12920. };
  12921. b.tea = function(a) {
  12922. b.Gj(b.Pb.top, a)
  12923. };
  12924. b.ip = function(a) {
  12925. b.Ei(b.Pb.top, b.Pb.top, a)
  12926. };
  12927. b.jp = function(a, c) {
  12928. var d = new b.ba;
  12929. b.YN(d, a, c, 0);
  12930. b.Ei(b.Pb.top, b.Pb.top, d)
  12931. };
  12932. b.vea = function(a, c, d, e) {
  12933. c = new b.wb(c, d, e);
  12934. d = new b.ba;
  12935. b.e2(d, c, b.Ds(a));
  12936. b.Ei(b.Pb.top, b.Pb.top, d)
  12937. };
  12938. b.wea = function(a, c, d) {
  12939. var e = new b.ba;
  12940. b.f2(e, a, c, d);
  12941. b.Ei(b.Pb.top, b.Pb.top, e)
  12942. };
  12943. b.qx = function(a, c) {
  12944. switch (a) {
  12945. case b.Xg:
  12946. b.Gj(c, b.Kj.top);
  12947. break;
  12948. case b.Yg:
  12949. b.Gj(c, b.jl.top);
  12950. break;
  12951. case b.VG:
  12952. b.Gj(c, b.lt.top);
  12953. break;
  12954. default:
  12955. throw "Invalid matrix mode specified";
  12956. }
  12957. };
  12958. b.MS = "precision lowp float;\nvarying vec4 v_fragmentColor;\nvoid main() \n{ \n gl_FragColor \x3d v_fragmentColor; \n}\n";
  12959. b.NS = "attribute vec4 a_position;\nuniform vec4 u_color;\nuniform float u_pointSize;\nvarying lowp vec4 v_fragmentColor; \nvoid main(void) \n{\n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n gl_PointSize \x3d u_pointSize; \n v_fragmentColor \x3d u_color; \n}";
  12960. b.AS = "precision lowp float; \nvarying vec4 v_fragmentColor; \nvoid main() \n{ \n gl_FragColor \x3d v_fragmentColor; \n} ";
  12961. b.DS = "attribute vec4 a_position;\nattribute vec4 a_color;\nvarying lowp vec4 v_fragmentColor;\nvoid main()\n{\n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n v_fragmentColor \x3d a_color; \n}";
  12962. b.BS = "// #extension GL_OES_standard_derivatives : enable\nvarying mediump vec4 v_color;\nvarying mediump vec2 v_texcoord;\nvoid main()\t\n{ \n// #if defined GL_OES_standard_derivatives\t\n// gl_FragColor \x3d v_color*smoothstep(0.0, length(fwidth(v_texcoord)), 1.0 - length(v_texcoord)); \n// #else\t\ngl_FragColor \x3d v_color * step(0.0, 1.0 - length(v_texcoord)); \n// #endif \n}";
  12963. b.CS = "attribute mediump vec4 a_position; \nattribute mediump vec2 a_texcoord; \nattribute mediump vec4 a_color;\t\nvarying mediump vec4 v_color; \nvarying mediump vec2 v_texcoord;\t\nvoid main() \n{ \n v_color \x3d a_color;//vec4(a_color.rgb * a_color.a, a_color.a); \n v_texcoord \x3d a_texcoord; \n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n}";
  12964. b.IS = "precision lowp float; \nvarying vec2 v_texCoord; \nuniform sampler2D CC_Texture0; \nvoid main() \n{ \n gl_FragColor \x3d texture2D(CC_Texture0, v_texCoord); \n}";
  12965. b.LS = "attribute vec4 a_position; \nattribute vec2 a_texCoord; \nvarying mediump vec2 v_texCoord; \nvoid main() \n{ \n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n v_texCoord \x3d a_texCoord; \n}";
  12966. b.JS = "precision lowp float; \nuniform vec4 u_color; \nvarying vec2 v_texCoord; \nuniform sampler2D CC_Texture0; \nvoid main() \n{ \n gl_FragColor \x3d texture2D(CC_Texture0, v_texCoord) * u_color; \n}";
  12967. b.KS = "attribute vec4 a_position;\nattribute vec2 a_texCoord; \nvarying mediump vec2 v_texCoord; \nvoid main() \n{ \n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n v_texCoord \x3d a_texCoord; \n}";
  12968. b.ES = "precision lowp float; \nvarying vec4 v_fragmentColor; \nvarying vec2 v_texCoord; \nuniform sampler2D CC_Texture0; \nvoid main() \n{ \n gl_FragColor \x3d vec4( v_fragmentColor.rgb, \n v_fragmentColor.a * texture2D(CC_Texture0, v_texCoord).a \n ); \n}";
  12969. b.FS = "attribute vec4 a_position; \nattribute vec2 a_texCoord; \nattribute vec4 a_color; \nvarying lowp vec4 v_fragmentColor; \nvarying mediump vec2 v_texCoord; \nvoid main() \n{ \n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n v_fragmentColor \x3d a_color; \n v_texCoord \x3d a_texCoord; \n}";
  12970. b.HS = "precision lowp float;\nvarying vec4 v_fragmentColor; \nvarying vec2 v_texCoord; \nuniform sampler2D CC_Texture0; \nvoid main() \n{ \n gl_FragColor \x3d v_fragmentColor * texture2D(CC_Texture0, v_texCoord); \n}";
  12971. b.CH = "attribute vec4 a_position; \nattribute vec2 a_texCoord; \nattribute vec4 a_color; \nvarying lowp vec4 v_fragmentColor; \nvarying mediump vec2 v_texCoord; \nvoid main() \n{ \n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n v_fragmentColor \x3d a_color; \n v_texCoord \x3d a_texCoord; \n}";
  12972. b.GS = "precision lowp float; \nvarying vec4 v_fragmentColor; \nvarying vec2 v_texCoord; \nuniform sampler2D CC_Texture0; \nuniform float CC_alpha_value; \nvoid main() \n{ \n vec4 texColor \x3d texture2D(CC_Texture0, v_texCoord); \n // mimic: glAlphaFunc(GL_GREATER) \n //pass if ( incoming_pixel \x3e\x3d CC_alpha_value ) \x3d\x3e fail if incoming_pixel \x3c CC_alpha_value \n if ( texColor.a \x3c\x3d CC_alpha_value ) \n discard; \n gl_FragColor \x3d texColor * v_fragmentColor; \n}";
  12973. b.b8 = "precision lowp float; \nvarying vec4 v_fragmentColor; \nvarying vec2 v_texCoord; \nuniform sampler2D u_texture; \nuniform sampler2D u_mask; \nvoid main() \n{ \n vec4 texColor \x3d texture2D(u_texture, v_texCoord); \n vec4 maskColor \x3d texture2D(u_mask, v_texCoord); \n vec4 finalColor \x3d vec4(texColor.r, texColor.g, texColor.b, maskColor.a * texColor.a); \n gl_FragColor \x3d v_fragmentColor * finalColor; \n}";
  12974. b.Md = {
  12975. Zz: 0,
  12976. $z: 1,
  12977. Xz: 2,
  12978. Yz: 3,
  12979. bA: 4,
  12980. aA: 5,
  12981. cA: 6,
  12982. OH: 7,
  12983. y8: 8,
  12984. md: {},
  12985. jr: function() {
  12986. this.w2();
  12987. return !0
  12988. },
  12989. He: function(a, c) {
  12990. switch (c) {
  12991. case this.Zz:
  12992. a.Di(b.CH, b.HS);
  12993. a.rd(b.ql, b.qb);
  12994. a.rd(b.Ip, b.Ce);
  12995. a.rd(b.en, b.zd);
  12996. break;
  12997. case this.$z:
  12998. a.Di(b.CH, b.GS);
  12999. a.rd(b.ql, b.qb);
  13000. a.rd(b.Ip, b.Ce);
  13001. a.rd(b.en, b.zd);
  13002. break;
  13003. case this.Xz:
  13004. a.Di(b.DS, b.AS);
  13005. a.rd(b.ql, b.qb);
  13006. a.rd(b.Ip, b.Ce);
  13007. break;
  13008. case this.Yz:
  13009. a.Di(b.LS, b.IS);
  13010. a.rd(b.ql, b.qb);
  13011. a.rd(b.en, b.zd);
  13012. break;
  13013. case this.bA:
  13014. a.Di(b.KS, b.JS);
  13015. a.rd(b.ql, b.qb);
  13016. a.rd(b.en, b.zd);
  13017. break;
  13018. case this.aA:
  13019. a.Di(b.FS,
  13020. b.ES);
  13021. a.rd(b.ql, b.qb);
  13022. a.rd(b.Ip, b.Ce);
  13023. a.rd(b.en, b.zd);
  13024. break;
  13025. case this.cA:
  13026. a.Di(b.NS, b.MS);
  13027. a.rd("aVertex", b.qb);
  13028. break;
  13029. case this.OH:
  13030. a.Di(b.CS, b.BS);
  13031. a.rd(b.ql, b.qb);
  13032. a.rd(b.en, b.zd);
  13033. a.rd(b.Ip, b.Ce);
  13034. break;
  13035. default:
  13036. b.log("cocos2d: cc.shaderCache._loadDefaultShader, error shader type");
  13037. return
  13038. }
  13039. a.link();
  13040. a.L5()
  13041. },
  13042. w2: function() {
  13043. var a = new b.Rh;
  13044. this.He(a, this.Zz);
  13045. this.md[b.Wi] = a;
  13046. this.md.ShaderPositionTextureColor = a;
  13047. a = new b.Rh;
  13048. this.He(a, this.$z);
  13049. this.md[b.bu] = a;
  13050. this.md.ShaderPositionTextureColorAlphaTest = a;
  13051. a = new b.Rh;
  13052. this.He(a, this.Xz);
  13053. this.md[b.au] = a;
  13054. this.md.ShaderPositionColor = a;
  13055. a = new b.Rh;
  13056. this.He(a, this.Yz);
  13057. this.md[b.tq] = a;
  13058. this.md.ShaderPositionTexture = a;
  13059. a = new b.Rh;
  13060. this.He(a, this.bA);
  13061. this.md[b.Oz] = a;
  13062. this.md.ShaderPositionTextureUColor = a;
  13063. a = new b.Rh;
  13064. this.He(a, this.aA);
  13065. this.md[b.Nz] = a;
  13066. this.md.ShaderPositionTextureA8Color = a;
  13067. a = new b.Rh;
  13068. this.He(a, this.cA);
  13069. this.md[b.Pz] = a;
  13070. this.md.ShaderPositionUColor = a;
  13071. a = new b.Rh;
  13072. this.He(a, this.OH);
  13073. this.md[b.BH] = a;
  13074. this.md.ShaderPositionLengthTextureColor = a
  13075. },
  13076. Cha: function() {
  13077. var a = this.nc(b.Wi);
  13078. a.reset();
  13079. this.He(a, this.Zz);
  13080. a = this.nc(b.bu);
  13081. a.reset();
  13082. this.He(a, this.$z);
  13083. a = this.nc(b.au);
  13084. a.reset();
  13085. this.He(a, this.Xz);
  13086. a = this.nc(b.tq);
  13087. a.reset();
  13088. this.He(a, this.Yz);
  13089. a = this.nc(b.Oz);
  13090. a.reset();
  13091. this.He(a, this.bA);
  13092. a = this.nc(b.Nz);
  13093. a.reset();
  13094. this.He(a, this.aA);
  13095. a = this.nc(b.Pz);
  13096. a.reset();
  13097. this.He(a, this.cA)
  13098. },
  13099. nc: function(a) {
  13100. return this.md[a]
  13101. },
  13102. Lm: function(a) {
  13103. return this.md[a]
  13104. },
  13105. O9: function(a, c) {
  13106. this.md[c] = a
  13107. }
  13108. };
  13109. b.lR = function() {
  13110. this.location = this.value = void 0;
  13111. this.bx = {}
  13112. };
  13113. b.Rh = b.oa.extend({
  13114. ha: null,
  13115. Db: null,
  13116. of: null,
  13117. wg: null,
  13118. xb: null,
  13119. fh: null,
  13120. OL: !1,
  13121. Ne: function(a, c) {
  13122. if (null == a) return !1;
  13123. for (var d = !0, e = null, f = 0; f < this.fh.length; f++) this.fh[f].location == a && (e = this.fh[f]);
  13124. e ? e.value == c ? d = !1 : e.value = c : (e = new b.lR, e.location = a, e.value = c, this.fh.push(e));
  13125. return d
  13126. },
  13127. a9: function() {
  13128. return "\x3cCCGLProgram \x3d " + this.toString() + " | Program \x3d " + this.Db.toString() + ", VertexShader \x3d " + this.of.toString() + ", FragmentShader \x3d " + this.wg.toString() + "\x3e"
  13129. },
  13130. UI: function(a, c, d) {
  13131. if (!d ||
  13132. !a) return !1;
  13133. this.ha.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);
  13134. this.ha.compileShader(a);
  13135. d = this.ha.getShaderParameter(a, this.ha.COMPILE_STATUS);
  13136. d || (b.log("cocos2d: ERROR: Failed to compile shader:\n" + this.ha.getShaderSource(a)),
  13137. c == this.ha.VERTEX_SHADER ? b.log("cocos2d: \n" + this.P5()) : b.log("cocos2d: \n" + this.O_()));
  13138. return 1 == d
  13139. },
  13140. ctor: function(a, c, d) {
  13141. this.xb = [];
  13142. this.fh = [];
  13143. this.ha = d || b.l;
  13144. a && c && this.da(a, c)
  13145. },
  13146. O$: function() {
  13147. this.fh = this.xb = this.wg = this.of = null;
  13148. this.ha.deleteProgram(this.Db)
  13149. },
  13150. Di: function(a, c) {
  13151. var d = this.ha;
  13152. this.Db = d.createProgram();
  13153. this.wg = this.of = null;
  13154. a && (this.of = d.createShader(d.VERTEX_SHADER), this.UI(this.of, d.VERTEX_SHADER, a) || b.log("cocos2d: ERROR: Failed to compile vertex shader"));
  13155. c && (this.wg = d.createShader(d.FRAGMENT_SHADER),
  13156. this.UI(this.wg, d.FRAGMENT_SHADER, c) || b.log("cocos2d: ERROR: Failed to compile fragment shader"));
  13157. this.of && d.attachShader(this.Db, this.of);
  13158. b.Qo();
  13159. this.wg && d.attachShader(this.Db, this.wg);
  13160. this.fh.length = 0;
  13161. b.Qo();
  13162. return !0
  13163. },
  13164. sd: function(a, c) {
  13165. return this.Di(a, c)
  13166. },
  13167. y1: function(a, c) {
  13168. var d = b.T.Hd(a);
  13169. if (!d) throw "Please load the resource firset : " + a;
  13170. var e = b.T.Hd(c);
  13171. if (!e) throw "Please load the resource firset : " + c;
  13172. return this.Di(d, e)
  13173. },
  13174. da: function(a, c) {
  13175. return this.y1(a, c)
  13176. },
  13177. rd: function(a, c) {
  13178. this.ha.bindAttribLocation(this.Db,
  13179. c, a)
  13180. },
  13181. link: function() {
  13182. if (!this.Db) return b.log("cc.GLProgram.link(): Cannot link invalid program"), !1;
  13183. this.ha.linkProgram(this.Db);
  13184. this.of && this.ha.deleteShader(this.of);
  13185. this.wg && this.ha.deleteShader(this.wg);
  13186. this.wg = this.of = null;
  13187. return b.Jb.re[b.Jb.kg.ns] && !this.ha.getProgramParameter(this.Db, this.ha.LINK_STATUS) ? (b.log("cocos2d: ERROR: Failed to link program: " + this.ha.getProgramInfoLog(this.Db)), b.e1(this.Db), this.Db = null, !1) : !0
  13188. },
  13189. Oc: function() {
  13190. b.RE(this.Db)
  13191. },
  13192. L5: function() {
  13193. this.xb[b.oA] = this.ha.getUniformLocation(this.Db,
  13194. b.nU);
  13195. this.xb[b.nA] = this.ha.getUniformLocation(this.Db, b.lU);
  13196. this.xb[b.Aq] = this.ha.getUniformLocation(this.Db, b.mU);
  13197. this.xb[b.sA] = this.ha.getUniformLocation(this.Db, b.rU);
  13198. this.xb[b.rA] = this.ha.getUniformLocation(this.Db, b.qU);
  13199. this.xb[b.mA] = this.ha.getUniformLocation(this.Db, b.kU);
  13200. this.OL = null != this.xb[b.sA] || null != this.xb[b.rA] || null != this.xb[b.mA];
  13201. this.xb[b.pA] = this.ha.getUniformLocation(this.Db, b.oU);
  13202. this.xb[b.qA] = this.ha.getUniformLocation(this.Db, b.pU);
  13203. this.Oc();
  13204. this.yP(this.xb[b.qA], 0)
  13205. },
  13206. qda: function(a) {
  13207. if (!a) throw "cc.GLProgram.getUniformLocationForName(): uniform name should be non-null";
  13208. if (!this.Db) throw "cc.GLProgram.getUniformLocationForName(): Invalid operation. Cannot get uniform location when program is not initialized";
  13209. return this.ha.getUniformLocation(this.Db, a)
  13210. },
  13211. rda: function() {
  13212. return this.xb[b.Aq]
  13213. },
  13214. sda: function() {
  13215. return this.xb[b.qA]
  13216. },
  13217. yP: function(a, c) {
  13218. this.Ne(a, c) && this.ha.uniform1i(a, c)
  13219. },
  13220. Wja: function(a, c, d) {
  13221. this.Ne(a, [c, d]) && this.ha.uniform2i(a, c, d)
  13222. },
  13223. Zja: function(a, c, d, e) {
  13224. this.Ne(a, [c, d, e]) && this.ha.uniform3i(a, c, d, e)
  13225. },
  13226. bka: function(a, c, d, e, f) {
  13227. this.Ne(a, [c, d, e, f]) && this.ha.uniform4i(a,
  13228. c, d, e, f)
  13229. },
  13230. Xja: function(a, c) {
  13231. this.Ne(a, c) && this.ha.uniform2iv(a, c)
  13232. },
  13233. $ja: function(a, c) {
  13234. this.Ne(a, c) && this.ha.uniform3iv(a, c)
  13235. },
  13236. cka: function(a, c) {
  13237. this.Ne(a, c) && this.ha.uniform4iv(a, c)
  13238. },
  13239. Uja: function(a, c) {
  13240. this.yP(a, c)
  13241. },
  13242. dt: function(a, c) {
  13243. this.Ne(a, c) && this.ha.uniform1f(a, c)
  13244. },
  13245. G4: function(a, c, d) {
  13246. this.Ne(a, [c, d]) && this.ha.uniform2f(a, c, d)
  13247. },
  13248. H4: function(a, c, d, e) {
  13249. this.Ne(a, [c, d, e]) && this.ha.uniform3f(a, c, d, e)
  13250. },
  13251. et: function(a, c, d, e, f) {
  13252. this.Ne(a, [c, d, e, f]) && this.ha.uniform4f(a, c, d, e, f)
  13253. },
  13254. Vja: function(a, c) {
  13255. this.Ne(a,
  13256. c) && this.ha.uniform2fv(a, c)
  13257. },
  13258. Yja: function(a, c) {
  13259. this.Ne(a, c) && this.ha.uniform3fv(a, c)
  13260. },
  13261. aka: function(a, c) {
  13262. this.Ne(a, c) && this.ha.uniform4fv(a, c)
  13263. },
  13264. hG: function(a, c) {
  13265. this.Ne(a, c) && this.ha.uniformMatrix4fv(a, !1, c)
  13266. },
  13267. Tja: function() {
  13268. if (!(2 > arguments.length)) switch (arguments.length) {
  13269. case 2:
  13270. this.dt(arguments[0], arguments[1]);
  13271. break;
  13272. case 3:
  13273. this.G4(arguments[0], arguments[1], arguments[2]);
  13274. break;
  13275. case 4:
  13276. this.H4(arguments[0], arguments[1], arguments[2], arguments[3]);
  13277. break;
  13278. case 5:
  13279. this.et(arguments[0], arguments[1], arguments[2],
  13280. arguments[3], arguments[4])
  13281. }
  13282. },
  13283. ft: function() {
  13284. var a = new b.ba,
  13285. c = new b.ba,
  13286. d = new b.ba;
  13287. b.qx(b.Yg, a);
  13288. b.qx(b.Xg, c);
  13289. b.Ei(d, a, c);
  13290. this.hG(this.xb[b.oA], a.c, 1);
  13291. this.hG(this.xb[b.nA], c.c, 1);
  13292. this.hG(this.xb[b.Aq], d.c, 1);
  13293. this.OL && (a = b.I, a = a.ow * a.Iq, this.et(this.xb[b.sA], a / 10, a, 2 * a, 4 * a), this.et(this.xb[b.rA], a / 8, a / 4, a / 2, Math.sin(a)), this.et(this.xb[b.mA], a / 8, a / 4, a / 2, Math.cos(a))); - 1 != this.xb[b.pA] && this.et(this.xb[b.pA], Math.random(), Math.random(), Math.random(), Math.random())
  13294. },
  13295. Rja: function() {
  13296. this.ha.uniformMatrix4fv(this.xb[b.Aq], !1, b.w0())
  13297. },
  13298. Sja: function(a) {
  13299. b.Ei(a, b.jl.top, b.Kj.top);
  13300. this.ha.uniformMatrix4fv(this.xb[b.Aq], !1, a.c)
  13301. },
  13302. Ye: function() {
  13303. this.ha.uniformMatrix4fv(this.xb[b.nA], !1, b.Kj.top.c);
  13304. this.ha.uniformMatrix4fv(this.xb[b.oA], !1, b.jl.top.c)
  13305. },
  13306. P5: function() {
  13307. return this.ha.getShaderInfoLog(this.of)
  13308. },
  13309. xda: function() {
  13310. return this.ha.getShaderInfoLog(this.of)
  13311. },
  13312. Qba: function() {
  13313. return this.ha.getShaderInfoLog(this.of)
  13314. },
  13315. O_: function() {
  13316. return this.ha.getShaderInfoLog(this.wg)
  13317. },
  13318. jha: function() {
  13319. return this.ha.getProgramInfoLog(this.Db)
  13320. },
  13321. Hca: function() {
  13322. return this.ha.getProgramInfoLog(this.Db)
  13323. },
  13324. reset: function() {
  13325. this.wg = this.of = null;
  13326. this.xb.length = 0;
  13327. this.ha.deleteProgram(this.Db);
  13328. this.Db = null;
  13329. for (var a = 0; a < this.fh.length; a++) this.fh[a].value = null, this.fh[a] = null;
  13330. this.fh.length = 0
  13331. },
  13332. Lm: function() {
  13333. return this.Db
  13334. },
  13335. $x: function() {},
  13336. Ki: function() {}
  13337. });
  13338. b.Rh.create = function(a, c) {
  13339. return new b.Rh(a, c)
  13340. };
  13341. b.$I = -1;
  13342. b.DD = !1;
  13343. b.CD = !1;
  13344. b.ED = !1;
  13345. b.Wg && (b.LR = 16, b.Uq = -1, b.Tq = [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], b.An = -1, b.zn = -1, b.BU = 0, b.Uz && (b.HL = 0));
  13346. b.Fda = function() {
  13347. b.Y1();
  13348. b.$I = -1;
  13349. b.DD = !1;
  13350. b.CD = !1;
  13351. b.ED = !1;
  13352. if (b.Wg) {
  13353. b.Uq = -1;
  13354. for (var a = 0; a < b.LR; a++) b.Tq[a] = -1;
  13355. b.An = -1;
  13356. b.zn = -1;
  13357. b.BU = 0
  13358. }
  13359. };
  13360. b.RE = function(a) {
  13361. a !== b.Uq && (b.Uq = a, b.l.useProgram(a))
  13362. };
  13363. b.Wg || (b.RE = function(a) {
  13364. b.l.useProgram(a)
  13365. });
  13366. b.e1 = function(a) {
  13367. b.Wg && a === b.Uq && (b.Uq = -1);
  13368. gl.deleteProgram(a)
  13369. };
  13370. b.Hh = function(a, c) {
  13371. if (a !== b.An || c !== b.zn) b.An = a, b.zn = c, b.ey(a, c)
  13372. };
  13373. b.ey = function(a, c) {
  13374. var d = b.l;
  13375. a === d.ONE && c === d.ZERO ? d.disable(d.BLEND) : (d.enable(d.BLEND), b.l.blendFunc(a, c))
  13376. };
  13377. b.xN = function(a, c) {
  13378. if (a !== b.An || c !== b.zn) {
  13379. b.An = a;
  13380. b.zn = c;
  13381. var d = b.l;
  13382. a === d.ONE && c === d.ZERO ? d.disable(d.BLEND) : (d.enable(d.BLEND), d.blendFuncSeparate(d.SRC_ALPHA, c, a, c))
  13383. }
  13384. };
  13385. b.Wg || (b.Hh = b.ey);
  13386. b.Cda = function() {
  13387. var a = b.l;
  13388. a.blendEquation(a.FUNC_ADD);
  13389. b.Wg ? b.ey(b.An, b.zn) : b.ey(a.dc, a.cc)
  13390. };
  13391. b.nP = function() {
  13392. b.$I = -1
  13393. };
  13394. b.Jc = function(a) {
  13395. var c = b.l,
  13396. d = a & b.Qd;
  13397. d !== b.DD && (d ? c.enableVertexAttribArray(b.qb) : c.disableVertexAttribArray(b.qb), b.DD = d);
  13398. d = a & b.ou;
  13399. d !== b.CD && (d ? c.enableVertexAttribArray(b.Ce) : c.disableVertexAttribArray(b.Ce), b.CD = d);
  13400. a &= b.tn;
  13401. a !== b.ED && (a ? c.enableVertexAttribArray(b.zd) : c.disableVertexAttribArray(b.zd), b.ED = a)
  13402. };
  13403. b.te = function(a) {
  13404. b.QE(0, a)
  13405. };
  13406. b.QE = function(a, c) {
  13407. if (b.Tq[a] != c) {
  13408. b.Tq[a] = c;
  13409. var d = b.l;
  13410. d.activeTexture(d.TEXTURE0 + a);
  13411. c ? d.bindTexture(d.TEXTURE_2D, c.Zd) : d.bindTexture(d.TEXTURE_2D, null)
  13412. }
  13413. };
  13414. b.Wg || (b.QE = function(a, c) {
  13415. var d = b.l;
  13416. d.activeTexture(d.TEXTURE0 + a);
  13417. c ? d.bindTexture(d.TEXTURE_2D, c.Zd) : d.bindTexture(d.TEXTURE_2D, null)
  13418. });
  13419. b.Dda = function(a) {
  13420. b.f1(a)
  13421. };
  13422. b.f1 = function(a) {
  13423. b.Wg && a == b.Tq[0] && (b.Tq[0] = -1);
  13424. b.l.deleteTexture(a)
  13425. };
  13426. b.Bda = function(a) {
  13427. b.Uz && b.Wg && b.HL != a && (b.HL = a)
  13428. };
  13429. b.Eda = function() {};
  13430. b.f7 = 0;
  13431. b.g7 = 1;
  13432. b.h7 = 9;
  13433. b.Xj = function(a) {
  13434. a -= 1;
  13435. a |= a >> 1;
  13436. a |= a >> 2;
  13437. a |= a >> 4;
  13438. a |= a >> 8;
  13439. return (a | a >> 16) + 1
  13440. };
  13441. b.sn = b.k.extend({
  13442. sprite: null,
  13443. Dw: 0,
  13444. cE: 0,
  13445. gs: !1,
  13446. be: null,
  13447. ce: null,
  13448. bv: 0,
  13449. Vq: 0,
  13450. ki: 0,
  13451. G: null,
  13452. Rr: null,
  13453. IY: null,
  13454. mi: b.aa.Vi,
  13455. Zi: null,
  13456. dE: 0,
  13457. $A: null,
  13458. vb: "RenderTexture",
  13459. ctor: null,
  13460. Rq: function(a, c, d, e) {
  13461. b.k.prototype.ctor.call(this);
  13462. this.Zi = b.color(255, 255, 255, 255);
  13463. this.$A = "rgba(255,255,255,1)";
  13464. this.be = b.Sb("canvas");
  13465. this.ce = this.be.getContext("2d");
  13466. this.anchorY = this.anchorX = 0;
  13467. void 0 !== a && void 0 !== c && (d = d || b.aa.Vi, this.kx(a, c, d, e || 0))
  13468. },
  13469. Sq: function(a, c, d, e) {
  13470. b.k.prototype.ctor.call(this);
  13471. this.Zi = b.color(0, 0, 0, 0);
  13472. void 0 !==
  13473. a && void 0 !== c && (d = d || b.aa.Vi, this.kx(a, c, d, e || 0))
  13474. },
  13475. Qe: null,
  13476. eV: function() {
  13477. b.k.prototype.sb.call(this);
  13478. this.be = this.ce = null
  13479. },
  13480. fV: function() {
  13481. b.k.prototype.sb.call(this);
  13482. this.Rr = null;
  13483. var a = b.l;
  13484. a.deleteFramebuffer(this.bv);
  13485. this.Vq && a.deleteRenderbuffer(this.Vq);
  13486. this.IY = null
  13487. },
  13488. oN: function() {
  13489. return this.sprite
  13490. },
  13491. py: function(a) {
  13492. this.sprite = a
  13493. },
  13494. kx: null,
  13495. GW: function(a, c) {
  13496. var d = this.be,
  13497. e = b.pb();
  13498. d.width = 0 | a * e;
  13499. d.height = 0 | c * e;
  13500. this.ce.translate(0, d.height);
  13501. e = new b.aa;
  13502. e.Kc(d);
  13503. e.rb();
  13504. this.sprite = b.N.create(e);
  13505. return !0
  13506. },
  13507. HW: function(a, c, d, e) {
  13508. d == b.aa.nq && b.log("cc.RenderTexture._initWithWidthAndHeightForWebGL() : only RGB and RGBA formats are valid for a render texture;");
  13509. var f = b.l,
  13510. g = b.pb();
  13511. a = 0 | a * g;
  13512. c = 0 | c * g;
  13513. this.ki = f.getParameter(f.FRAMEBUFFER_BINDING);
  13514. var h;
  13515. b.Ro.lw ? (g = a, h = c) : (g = b.Xj(a), h = b.Xj(c));
  13516. for (var k = new Uint8Array(g * h * 4), m = 0; m < g * h * 4; m++) k[m] = 0;
  13517. this.mi = d;
  13518. this.G = new b.aa;
  13519. if (!this.G) return !1;
  13520. m = this.G;
  13521. m.Bs(k, this.mi, g, h, N(a, c));
  13522. d = f.getParameter(f.RENDERBUFFER_BINDING);
  13523. if (b.Ro.Po("GL_QCOM")) {
  13524. this.Rr = new b.aa;
  13525. if (!this.Rr) return !1;
  13526. this.Rr.Bs(k, this.mi, g, h, N(a, c))
  13527. }
  13528. this.bv = f.createFramebuffer();
  13529. f.bindFramebuffer(f.FRAMEBUFFER, this.bv);
  13530. f.framebufferTexture2D(f.FRAMEBUFFER, f.COLOR_ATTACHMENT0, f.TEXTURE_2D, m.Zd, 0);
  13531. 0 != e && (this.Vq = f.createRenderbuffer(), f.bindRenderbuffer(f.RENDERBUFFER, this.Vq), f.renderbufferStorage(f.RENDERBUFFER, e, g, h), f.framebufferRenderbuffer(f.FRAMEBUFFER, f.DEPTH_ATTACHMENT, f.RENDERBUFFER, this.Vq));
  13532. f.checkFramebufferStatus(f.FRAMEBUFFER) !== f.FRAMEBUFFER_COMPLETE && b.log("Could not attach texture to the framebuffer");
  13533. m.PF();
  13534. a = this.sprite = b.N.create(m);
  13535. a.scaleY = -1;
  13536. a.Se(f.ONE, f.ONE_MINUS_SRC_ALPHA);
  13537. f.bindRenderbuffer(f.RENDERBUFFER, d);
  13538. f.bindFramebuffer(f.FRAMEBUFFER, this.ki);
  13539. this.gs = !1;
  13540. this.X(a);
  13541. return !0
  13542. },
  13543. Ah: null,
  13544. TU: function() {
  13545. b.l = this.ce;
  13546. b.view.Xv()
  13547. },
  13548. UU: function() {
  13549. b.wf(b.Yg);
  13550. b.Fj();
  13551. b.wf(b.Xg);
  13552. b.Fj();
  13553. var a = b.I;
  13554. a.Xm(a.pi);
  13555. var c = this.G.O,
  13556. d = b.I.ws(),
  13557. a = d.width / c.width,
  13558. d = d.height / c.height,
  13559. e = b.l;
  13560. e.viewport(0, 0, c.width, c.height);
  13561. c = new b.ba;
  13562. b.nF(c, -1 / a, 1 / a, -1 / d, 1 / d, -1, 1);
  13563. b.ip(c);
  13564. this.ki = e.getParameter(e.FRAMEBUFFER_BINDING);
  13565. e.bindFramebuffer(e.FRAMEBUFFER, this.bv);
  13566. b.Ro.Po("GL_QCOM") && (e.framebufferTexture2D(e.FRAMEBUFFER, e.COLOR_ATTACHMENT0, e.TEXTURE_2D, this.Rr.Zd, 0), e.clear(e.COLOR_BUFFER_BIT | e.DEPTH_BUFFER_BIT), e.framebufferTexture2D(e.FRAMEBUFFER, e.COLOR_ATTACHMENT0, e.TEXTURE_2D, this.G.Zd, 0))
  13567. },
  13568. xZ: function(a, c, d, e, f, g) {
  13569. var h = b.l;
  13570. f = f || h.COLOR_BUFFER_BIT;
  13571. g = g || h.COLOR_BUFFER_BIT | h.DEPTH_BUFFER_BIT;
  13572. this.PA(a / 255, c / 255, d / 255, e / 255, f, g, h.COLOR_BUFFER_BIT | h.DEPTH_BUFFER_BIT | h.STENCIL_BUFFER_BIT)
  13573. },
  13574. PA: null,
  13575. VU: function(a, c,
  13576. d, e) {
  13577. this.Ah();
  13578. a = a || 0;
  13579. c = c || 0;
  13580. d = d || 0;
  13581. e = isNaN(e) ? 1 : e;
  13582. var f = this.ce,
  13583. g = this.be;
  13584. f.save();
  13585. f.fillStyle = "rgba(" + (0 | a) + "," + (0 | c) + "," + (0 | d) + "," + e / 255 + ")";
  13586. f.clearRect(0, 0, g.width, -g.height);
  13587. f.fillRect(0, 0, g.width, -g.height);
  13588. f.restore()
  13589. },
  13590. WU: function(a, c, d, e, f, g, h) {
  13591. this.Ah();
  13592. var k = b.l,
  13593. m = [0, 0, 0, 0],
  13594. p = 0,
  13595. r = 0;
  13596. h & k.COLOR_BUFFER_BIT && (m = k.getParameter(k.COLOR_CLEAR_VALUE), k.clearColor(a, c, d, e));
  13597. h & k.DEPTH_BUFFER_BIT && (p = k.getParameter(k.DEPTH_CLEAR_VALUE), k.clearDepth(f));
  13598. h & k.STENCIL_BUFFER_BIT && (r = k.getParameter(k.STENCIL_CLEAR_VALUE),
  13599. k.clearStencil(g));
  13600. k.clear(h);
  13601. h & k.COLOR_BUFFER_BIT && k.clearColor(m[0], m[1], m[2], m[3]);
  13602. h & k.DEPTH_BUFFER_BIT && k.clearDepth(p);
  13603. h & k.STENCIL_BUFFER_BIT && k.clearStencil(r)
  13604. },
  13605. end: null,
  13606. EV: function() {
  13607. b.l = b.ZW;
  13608. b.view.Pv()
  13609. },
  13610. FV: function() {
  13611. var a = b.l,
  13612. c = b.I;
  13613. a.bindFramebuffer(a.FRAMEBUFFER, this.ki);
  13614. c.zP();
  13615. b.wf(b.Yg);
  13616. b.Ej();
  13617. b.wf(b.Xg);
  13618. b.Ej()
  13619. },
  13620. clear: function(a, c, d, e) {
  13621. this.xZ(a, c, d, e);
  13622. this.end()
  13623. },
  13624. clearRect: null,
  13625. iV: function(a, c, d, e) {
  13626. this.ce.clearRect(a, c, d, -e)
  13627. },
  13628. jV: function() {},
  13629. clearDepth: null,
  13630. gV: function() {
  13631. b.log("clearDepth isn't supported on Cocos2d-Html5")
  13632. },
  13633. hV: function(a) {
  13634. this.Ah();
  13635. var c = b.l,
  13636. d = c.getParameter(c.DEPTH_CLEAR_VALUE);
  13637. c.clearDepth(a);
  13638. c.clear(c.DEPTH_BUFFER_BIT);
  13639. c.clearDepth(d);
  13640. this.end()
  13641. },
  13642. clearStencil: null,
  13643. kV: function() {
  13644. b.log("clearDepth isn't supported on Cocos2d-Html5")
  13645. },
  13646. lV: function(a) {
  13647. var c = b.l,
  13648. d = c.getParameter(c.STENCIL_CLEAR_VALUE);
  13649. c.clearStencil(a);
  13650. c.clear(c.STENCIL_BUFFER_BIT);
  13651. c.clearStencil(d)
  13652. },
  13653. R: null,
  13654. pm: function(a) {
  13655. this.lc && (a = a || b.l, a.save(), this.Y(a), this.transform(a), this.sprite.R(), a.restore(), this.arrivalOrder = 0)
  13656. },
  13657. as: function(a) {
  13658. if (this.lc) {
  13659. b.Fj();
  13660. var c = this.grid;
  13661. c && c.vf() && (c.is(), this.xy());
  13662. this.transform(a);
  13663. this.sprite.R();
  13664. this.Y(a);
  13665. c && c.vf() && c.fs(this);
  13666. b.Ej();
  13667. this.arrivalOrder = 0
  13668. }
  13669. },
  13670. Y: null,
  13671. Ll: function(a) {
  13672. a = a || b.l;
  13673. if (this.gs) {
  13674. this.Ah();
  13675. if (this.Dw) {
  13676. var c = this.be;
  13677. a.save();
  13678. a.fillStyle = this.$A;
  13679. a.clearRect(0, 0, c.width, -c.height);
  13680. a.fillRect(0, 0, c.width, -c.height);
  13681. a.restore()
  13682. }
  13683. this.Wc();
  13684. a = this.t;
  13685. for (var c = a.length, d = this.sprite, e = 0; e < c; e++) {
  13686. var f = a[e];
  13687. f != d && f.R()
  13688. }
  13689. this.end()
  13690. }
  13691. },
  13692. aj: function() {
  13693. var a = b.l;
  13694. if (this.gs) {
  13695. this.Ah();
  13696. var c = this.Dw;
  13697. if (c) {
  13698. var d = [0, 0, 0, 0],
  13699. e = 0,
  13700. f = 0;
  13701. c & a.COLOR_BUFFER_BIT && (d = a.getParameter(a.COLOR_CLEAR_VALUE), a.clearColor(this.Zi.r / 255, this.Zi.g / 255, this.Zi.b / 255, this.Zi.a / 255));
  13702. c & a.DEPTH_BUFFER_BIT && (e = a.getParameter(a.DEPTH_CLEAR_VALUE), a.clearDepth(this.cE));
  13703. c & a.STENCIL_BUFFER_BIT && (f = a.getParameter(a.STENCIL_CLEAR_VALUE), a.clearStencil(this.dE));
  13704. a.clear(c);
  13705. c & a.COLOR_BUFFER_BIT && a.clearColor(d[0], d[1], d[2], d[3]);
  13706. c & a.DEPTH_BUFFER_BIT && a.clearDepth(e);
  13707. c & a.STENCIL_BUFFER_BIT && a.clearStencil(f)
  13708. }
  13709. this.Wc();
  13710. a = this.t;
  13711. for (c = 0; c < a.length; c++) d =
  13712. a[c], d != this.sprite && d.R();
  13713. this.end()
  13714. }
  13715. },
  13716. mga: function() {
  13717. b.log("saveToFile isn't supported on cocos2d-html5");
  13718. return null
  13719. },
  13720. r9: function(a, c, d, e, f) {
  13721. for (var g = 0; g < f; g++) a[c + g] = d[e + g]
  13722. },
  13723. $ha: function() {
  13724. b.log("saveToFile isn't supported on Cocos2d-Html5")
  13725. },
  13726. dga: function() {
  13727. b.log("listenToBackground isn't supported on Cocos2d-Html5")
  13728. },
  13729. ega: function() {
  13730. b.log("listenToForeground isn't supported on Cocos2d-Html5")
  13731. },
  13732. nba: function() {
  13733. return this.Dw
  13734. },
  13735. ria: function(a) {
  13736. this.Dw = a
  13737. },
  13738. X_: function() {
  13739. return this.Zi
  13740. },
  13741. RF: null,
  13742. PX: function(a) {
  13743. var c =
  13744. this.Zi;
  13745. c.r = a.r;
  13746. c.g = a.g;
  13747. c.b = a.b;
  13748. c.a = a.a;
  13749. this.$A = "rgba(" + (0 | a.r) + "," + (0 | a.g) + "," + (0 | a.b) + "," + a.a / 255 + ")"
  13750. },
  13751. QX: function(a) {
  13752. var c = this.Zi;
  13753. c.r = a.r;
  13754. c.g = a.g;
  13755. c.b = a.b;
  13756. c.a = a.a
  13757. },
  13758. mba: function() {
  13759. return this.cE
  13760. },
  13761. qia: function(a) {
  13762. this.cE = a
  13763. },
  13764. oba: function() {
  13765. return this.dE
  13766. },
  13767. sia: function(a) {
  13768. this.dE = a
  13769. },
  13770. Pda: function() {
  13771. return this.gs
  13772. },
  13773. jia: function(a) {
  13774. this.gs = a
  13775. }
  13776. });
  13777. n = b.sn.prototype;
  13778. b.A == b.U ? (n.ctor = n.Sq, n.Qe = n.fV, n.kx = n.HW, n.Ah = n.UU, n.PA = n.WU, n.end = n.FV, n.clearRect = n.jV, n.clearDepth = n.hV, n.clearStencil = n.lV, n.R = n.as, n.Y = n.aj, n.RF = n.QX) : (n.ctor = n.Rq, n.Qe = n.eV, n.kx = n.GW, n.Ah = n.TU, n.PA = n.VU, n.end = n.EV, n.clearRect = n.iV, n.clearDepth = n.gV, n.clearStencil = n.kV, n.R = n.pm, n.Y = n.Ll, n.RF = n.PX);
  13779. b.i(n, "clearColorVal", n.X_, n.RF);
  13780. b.sn.create = function(a, c, d, e) {
  13781. return new b.sn(a, c, d, e)
  13782. };
  13783. b.Th = b.Qi.extend({
  13784. Ib: null,
  13785. TB: null,
  13786. ma: !1,
  13787. gb: null,
  13788. vb: "LabelAtlas",
  13789. ctor: function(a, c, d, e, f) {
  13790. b.Qi.prototype.ctor.call(this);
  13791. c && b.Th.prototype.sd.call(this, a, c, d, e, f)
  13792. },
  13793. kt: function() {
  13794. return this.ma
  13795. },
  13796. $d: function(a, c) {
  13797. this.gb || (this.gb = []);
  13798. this.gb.push({
  13799. Bh: a,
  13800. Uf: c
  13801. })
  13802. },
  13803. Sd: function() {
  13804. if (this.gb) {
  13805. this.ma = !0;
  13806. for (var a = this.gb, c = 0, d = a.length; c < d; c++) {
  13807. var e = a[c];
  13808. e.Bh.call(e.Uf, this)
  13809. }
  13810. a.length = 0
  13811. }
  13812. },
  13813. sd: function(a, c, d, e, f) {
  13814. var g = a + "",
  13815. h, k;
  13816. if (void 0 === d) {
  13817. d = b.T.Hd(c);
  13818. if (1 !== parseInt(d.version, 10)) return b.log("cc.LabelAtlas.initWithString(): Unsupported version. Upgrade cocos2d version"), !1;
  13819. c = b.path.Oo(c, d.textureFilename);
  13820. e = b.pb();
  13821. h = parseInt(d.itemWidth, 10) / e;
  13822. k = parseInt(d.itemHeight, 10) / e;
  13823. d = String.fromCharCode(parseInt(d.firstChar, 10))
  13824. } else h = d || 0, k = e || 0, d = f || " ";
  13825. var m = null,
  13826. m = c instanceof b.aa ? c : b.Da.Hc(c);
  13827. (this.ma = c = m.wc) || m.$d(function() {
  13828. this.qa(m, h, k, g.length);
  13829. this.string = g;
  13830. this.Sd()
  13831. }, this);
  13832. return this.qa(m, h, k, g.length) ? (this.TB = d, this.string = g, !0) : !1
  13833. },
  13834. cb: function(a) {
  13835. b.Qi.prototype.cb.call(this, a);
  13836. this.Gp()
  13837. },
  13838. al: function() {
  13839. return this.Ib
  13840. },
  13841. Y: function(a) {
  13842. b.Qi.prototype.Y.call(this,
  13843. a);
  13844. b.CR && (a = this.size, b.Fe.ae([C(0, 0), C(a.width, 0), C(a.width, a.height), C(0, a.height)], 4, !0))
  13845. },
  13846. HA: function(a, c, d) {
  13847. a.UW = !0;
  13848. b.k.prototype.X.call(this, a, c, d)
  13849. },
  13850. Gp: null,
  13851. JY: function() {
  13852. for (var a = this.Ib || "", c = a.length, d = this.texture, e = this.gi, f = this.jh, g = 0; g < c; g++) {
  13853. var h = a.charCodeAt(g) - this.TB.charCodeAt(0),
  13854. h = O(parseInt(h % this.mo, 10) * e, parseInt(h / this.mo, 10) * f, e, f),
  13855. k = a.charCodeAt(g),
  13856. m = this.Eh(g);
  13857. m ? 32 == k ? (m.da(), m.tb(O(0, 0, 10, 10), !1, N(0, 0))) : (m.qa(d, h), m.visible = !0, m.opacity = this.fb) : (m = new b.N, 32 == k ? (m.da(),
  13858. m.tb(O(0, 0, 10, 10), !1, N(0, 0))) : m.qa(d, h), b.k.prototype.X.call(this, m, 0, g));
  13859. m.P(g * e + e / 2, f / 2)
  13860. }
  13861. },
  13862. KY: function() {
  13863. var a = this.Ib,
  13864. c = a.length,
  13865. d = this.textureAtlas,
  13866. e = d.texture,
  13867. f = e.pixelsWidth,
  13868. e = e.pixelsHeight,
  13869. g = this.gi,
  13870. h = this.jh;
  13871. this.kv || (g = this.gi * b.pb(), h = this.jh * b.pb());
  13872. c > d.Ad && b.log("cc.LabelAtlas._updateAtlasValues(): Invalid String length");
  13873. for (var k = d.quads, m = this.ya, m = {
  13874. r: m.r,
  13875. g: m.g,
  13876. b: m.b,
  13877. a: this.fb
  13878. }, p = this.gi, r = 0; r < c; r++) {
  13879. var s = a.charCodeAt(r) - this.TB.charCodeAt(0),
  13880. u = s % this.mo,
  13881. t = 0 | s / this.mo,
  13882. v;
  13883. b.jn ? (u = (2 *
  13884. u * g + 1) / (2 * f), s = u + (2 * g - 2) / (2 * f), t = (2 * t * h + 1) / (2 * e), v = t + (2 * h - 2) / (2 * e)) : (u = u * g / f, s = u + g / f, t = t * h / e, v = t + h / e);
  13885. var w = k[r],
  13886. y = w.K,
  13887. B = w.J,
  13888. G = w.C,
  13889. w = w.L;
  13890. y.m.fa = u;
  13891. y.m.ga = t;
  13892. B.m.fa = s;
  13893. B.m.ga = t;
  13894. G.m.fa = u;
  13895. G.m.ga = v;
  13896. w.m.fa = s;
  13897. w.m.ga = v;
  13898. G.f.x = r * p;
  13899. G.f.y = 0;
  13900. G.f.z = 0;
  13901. w.f.x = r * p + p;
  13902. w.f.y = 0;
  13903. w.f.z = 0;
  13904. y.f.x = r * p;
  13905. y.f.y = this.jh;
  13906. y.f.z = 0;
  13907. B.f.x = r * p + p;
  13908. B.f.y = this.jh;
  13909. B.f.z = 0;
  13910. y.s = m;
  13911. B.s = m;
  13912. G.s = m;
  13913. w.s = m
  13914. }
  13915. 0 < c && (d.dirty = !0, a = d.totalQuads, c > a && d.CN(c - a))
  13916. },
  13917. Kb: null,
  13918. mY: function(a) {
  13919. a = String(a);
  13920. var c = a.length;
  13921. this.Ib = a;
  13922. this.width = c * this.gi;
  13923. this.height = this.jh;
  13924. if (this.t) {
  13925. a = this.t;
  13926. for (var c = a.length, d = 0; d < c; d++) {
  13927. var e = a[d];
  13928. e && !e.UW && (e.visible = !1)
  13929. }
  13930. }
  13931. this.Gp();
  13932. this.quadsToDraw = c
  13933. },
  13934. oY: function(a) {
  13935. a = String(a);
  13936. var c = a.length;
  13937. c > this.textureAtlas.totalQuads && this.textureAtlas.JF(c);
  13938. this.Ib = a;
  13939. this.width = c * this.gi;
  13940. this.height = this.jh;
  13941. this.Gp();
  13942. this.quadsToDraw = c
  13943. },
  13944. Sa: null,
  13945. SC: function(a) {
  13946. if (this.fb !== a) {
  13947. b.Qi.prototype.Sa.call(this, a);
  13948. for (var c = this.t, d = 0, e = c.length; d < e; d++) c[d] && (c[d].opacity = a)
  13949. }
  13950. },
  13951. TC: function(a) {
  13952. this.Wd !== a && b.Qi.prototype.Sa.call(this, a)
  13953. }
  13954. });
  13955. n = b.Th.prototype;
  13956. b.A === b.U ? (n.Gp = n.KY, n.Kb = n.oY, n.Sa = n.TC) : (n.Gp = n.JY, n.Kb = n.mY, n.Sa = n.SC, n.X = n.HA);
  13957. b.i(n, "opacity", n.Ig, n.Sa);
  13958. b.i(n, "string", n.al, n.Kb);
  13959. b.Th.create = function(a, c, d, e, f) {
  13960. return new b.Th(a, c, d, e, f)
  13961. };
  13962. b.o7 = -1;
  13963. b.jz = b.Ae.extend({
  13964. Oa: !1,
  13965. Ib: "",
  13966. Cf: null,
  13967. ev: "",
  13968. ho: "",
  13969. Gq: b.Al,
  13970. bs: -1,
  13971. wK: !1,
  13972. lv: null,
  13973. eL: null,
  13974. fb: 255,
  13975. Bg: 255,
  13976. ya: null,
  13977. Xd: null,
  13978. ah: !0,
  13979. ai: !0,
  13980. ma: !1,
  13981. gb: null,
  13982. vb: "LabelBMFont",
  13983. pL: function(a, c) {
  13984. c ? this.ho = a : this.Ib = a;
  13985. var d = this.t;
  13986. if (d)
  13987. for (var e = 0; e < d.length; e++) {
  13988. var f = d[e];
  13989. f && f.ry(!1)
  13990. }
  13991. this.ma && (this.Iw(), c && this.gg())
  13992. },
  13993. ctor: function(a, c, d, e, f) {
  13994. b.Ae.prototype.ctor.call(this);
  13995. this.lv = C(0, 0);
  13996. this.ya = b.color(255, 255, 255, 255);
  13997. this.Xd = b.color(255, 255, 255, 255);
  13998. this.eL = [];
  13999. this.sd(a, c, d, e, f)
  14000. },
  14001. kt: function() {
  14002. return this.ma
  14003. },
  14004. $d: function(a,
  14005. c) {
  14006. this.gb || (this.gb = []);
  14007. this.gb.push({
  14008. Bh: a,
  14009. Uf: c
  14010. })
  14011. },
  14012. Sd: function() {
  14013. if (this.gb) {
  14014. for (var a = this.gb, c = 0, d = a.length; c < d; c++) {
  14015. var e = a[c];
  14016. e.Bh.call(e.Uf, this)
  14017. }
  14018. a.length = 0
  14019. }
  14020. },
  14021. Y: function(a) {
  14022. b.Ae.prototype.Y.call(this, a);
  14023. if (b.DR) {
  14024. a = this.se();
  14025. var c = C(0 | -this.Ab.x, 0 | -this.Ab.y);
  14026. a = [C(c.x, c.y), C(c.x + a.width, c.y), C(c.x + a.width, c.y + a.height), C(c.x, c.y + a.height)];
  14027. b.Fe.yp(0, 255, 0, 255);
  14028. b.Fe.ae(a, 4, !0)
  14029. }
  14030. },
  14031. cb: function(a) {
  14032. var c = this.ya,
  14033. d = this.Xd;
  14034. if (d.r != a.r || d.g != a.g || d.b != a.b || d.a != a.a) c.r = d.r = a.r, c.g = d.g = a.g, c.b = d.b = a.b,
  14035. this.ma && this.ah && (a = b.color.WHITE, (c = this.Sc) && c.cascadeColor && (a = c.Pw()), this.Nc(a))
  14036. },
  14037. Wf: function() {
  14038. return this.Oa
  14039. },
  14040. Ue: function(a) {
  14041. this.Oa = a;
  14042. if (a = this.t)
  14043. for (var c = 0; c < a.length; c++) {
  14044. var d = a[c];
  14045. d && (d.opacityModifyRGB = this.Oa)
  14046. }
  14047. },
  14048. Ig: function() {
  14049. return this.Bg
  14050. },
  14051. d0: function() {
  14052. return this.fb
  14053. },
  14054. Sa: function(a) {
  14055. this.fb = this.Bg = a;
  14056. if (this.ai) {
  14057. var c = 255,
  14058. d = this.Sc;
  14059. d && d.cascadeOpacity && (c = d.fb);
  14060. this.Bc(c)
  14061. }
  14062. this.ya.a = this.Xd.a = a
  14063. },
  14064. Bc: function(a) {
  14065. this.fb = this.Bg * a / 255;
  14066. a = this.t;
  14067. for (var c = 0; c < a.length; c++) {
  14068. var d = a[c];
  14069. b.A == b.U ? d.Bc(this.fb) : (b.k.prototype.Bc.call(d, this.fb), d.Ha())
  14070. }
  14071. this.ee()
  14072. },
  14073. SN: function() {
  14074. return !1
  14075. },
  14076. $O: function(a) {
  14077. this.ai = a
  14078. },
  14079. Hg: function() {
  14080. var a = this.Xd;
  14081. return b.color(a.r, a.g, a.b, a.a)
  14082. },
  14083. Pw: function() {
  14084. return this.ya
  14085. },
  14086. Nc: function(a) {
  14087. var c = this.ya,
  14088. d = this.Xd;
  14089. c.r = d.r * a.r / 255;
  14090. c.g = d.g * a.g / 255;
  14091. c.b = d.b * a.b / 255;
  14092. a = this.t;
  14093. for (c = 0; c < a.length; c++) d = a[c], b.A == b.U ? d.Nc(this.ya) : (b.k.prototype.Nc.call(d, this.ya), d.Ha());
  14094. this.ee()
  14095. },
  14096. ee: function() {
  14097. if (b.A != b.U) {
  14098. var a = this.za();
  14099. if (a && 0 < a.se().width) {
  14100. var c = this.xc.Wa;
  14101. if (c) {
  14102. var d = a.Wa,
  14103. e = O(0, 0, c.width, c.height);
  14104. d instanceof HTMLCanvasElement && !this.Ec ? b.Hm(c, this.ya, e, d) : (d = b.Hm(c, this.ya, e), a = new b.aa, a.Kc(d), a.rb());
  14105. this.Ya(a)
  14106. }
  14107. }
  14108. }
  14109. },
  14110. RN: function() {
  14111. return !1
  14112. },
  14113. ZO: function(a) {
  14114. this.ah = a
  14115. },
  14116. da: function() {
  14117. return this.sd(null, null, null, null, null)
  14118. },
  14119. sd: function(a, c, d, e, f) {
  14120. a = a || "";
  14121. this.Cf && b.log("cc.LabelBMFont.initWithString(): re-init is no longer supported");
  14122. if (c) {
  14123. var g = b.T.Hd(c);
  14124. if (!g) return b.log("cc.LabelBMFont.initWithString(): Impossible to create font. Please check file"), !1;
  14125. this.Cf = g;
  14126. this.ev = c;
  14127. c = b.Da.Hc(g.aM);
  14128. (this.ma = g = c.wc) || c.$d(function(a) {
  14129. this.ma = !0;
  14130. this.qa(a, this.ho.length);
  14131. this.Kb(this.ho, !0);
  14132. this.Sd()
  14133. }, this)
  14134. } else c = new b.aa, g = new Image, c.Kc(g), this.ma = !1;
  14135. return this.qa(c, a.length) ? (this.Gq = e || b.eu, this.lv = f || C(0, 0), this.bs = null == d ? -1 : d, this.fb = this.Bg = 255, this.ya = b.color(255, 255, 255, 255), this.Xd = b.color(255, 255, 255, 255), this.ah = this.ai = !0, this.O.width = 0, this.O.height = 0, this.ll(0.5, 0.5), b.A === b.U && (d = this.textureAtlas.texture, this.Oa = d.Ai(), e = this.eL = new b.N,
  14136. e.qa(d, O(0, 0, 0, 0), !1), e.batchNode = this), this.Kb(a, !0), !0) : !1
  14137. },
  14138. Iw: function() {
  14139. var a = b.A,
  14140. c = a === b.Ba ? this.texture : this.textureAtlas.texture,
  14141. d = 0,
  14142. e = N(0, 0),
  14143. f = 0,
  14144. g = 1,
  14145. h = this.Ib,
  14146. k = h ? h.length : 0;
  14147. if (0 !== k) {
  14148. var m, p = this.Cf,
  14149. r = p.S1,
  14150. s = p.fE,
  14151. u = p.N_;
  14152. for (m = 0; m < k - 1; m++) 10 == h.charCodeAt(m) && g++;
  14153. var t = s * g,
  14154. g = -(s - s * g),
  14155. v = -1;
  14156. for (m = 0; m < k; m++)
  14157. if (s = h.charCodeAt(m), 0 != s)
  14158. if (10 === s) d = 0, g -= p.fE;
  14159. else {
  14160. var w = r[v << 16 | s & 65535] || 0,
  14161. y = u[s];
  14162. if (y) {
  14163. var B = O(y.rect.x, y.rect.y, y.rect.width, y.rect.height),
  14164. B = b.kl(B);
  14165. B.x += this.lv.x;
  14166. B.y += this.lv.y;
  14167. (v =
  14168. this.Eh(m)) ? 32 === s && a === b.Ba ? v.tb(B, !1, N(0, 0)) : (v.tb(B, !1), v.visible = !0): (v = new b.N, 32 === s && a === b.Ba && (B = O(0, 0, 0, 0)), v.qa(c, B, !1), v.xv = !0, this.X(v, 0, m));
  14169. v.opacityModifyRGB = this.Oa;
  14170. b.A == b.U ? (v.Nc(this.ya), v.Bc(this.fb)) : (b.k.prototype.Nc.call(v, this.ya), b.k.prototype.Bc.call(v, this.fb), v.Ha());
  14171. B = C(d + y.aQ + 0.5 * y.rect.width + w, g + (p.fE - y.bQ) - 0.5 * B.height * b.pb());
  14172. v.P(b.EF(B));
  14173. d += y.W5 + w;
  14174. v = s;
  14175. f < d && (f = d)
  14176. } else b.log("cocos2d: LabelBMFont: character not found " + h[m])
  14177. }
  14178. e.width = f;
  14179. e.height = t;
  14180. this.Kd(b.BP(e))
  14181. }
  14182. },
  14183. Kka: function(a) {
  14184. var c =
  14185. this.t;
  14186. if (c)
  14187. for (var d = 0, e = c.length; d < e; d++) {
  14188. var f = c[d];
  14189. f && (f.visible = !1)
  14190. }
  14191. this.Cf && this.Iw();
  14192. a || this.gg()
  14193. },
  14194. al: function() {
  14195. return this.ho
  14196. },
  14197. Kb: function(a, c) {
  14198. a = String(a);
  14199. null == c && (c = !0);
  14200. if (null == a || "string" != typeof a) a += "";
  14201. this.ho = a;
  14202. this.pL(a, c)
  14203. },
  14204. nY: function(a) {
  14205. this.Kb(a, !1)
  14206. },
  14207. nia: function(a) {
  14208. this.Kb(a, !0)
  14209. },
  14210. gg: function() {
  14211. this.string = this.ho;
  14212. if (0 < this.bs) {
  14213. for (var a = this.Ib.length, c = [], d = [], e = 1, f = 0, g = !1, h = !1, k = -1, m = -1, p = 0, r, s = 0, u = this.t.length; s < u; s++) {
  14214. for (var t = 0; !(r = this.Eh(s + p + t));) t++;
  14215. p += t;
  14216. if (f >= a) break;
  14217. var v = this.Ib[f];
  14218. h || (m = this.AB(r), h = !0);
  14219. g || (k = m, g = !0);
  14220. if (10 == v.charCodeAt(0)) {
  14221. d.push("\n");
  14222. c = c.concat(d);
  14223. d.length = 0;
  14224. g = h = !1;
  14225. k = m = -1;
  14226. s--;
  14227. p -= t;
  14228. e++;
  14229. if (f >= a) break;
  14230. m || (m = this.AB(r), h = !0);
  14231. k || (k = m, g = !0);
  14232. f++
  14233. } else if (b.kF(v)) d.push(v), c = c.concat(d), d.length = 0, h = !1, m = -1, f++;
  14234. else if (this.eW(r) - k > this.bs)
  14235. if (this.wK) {
  14236. b.XP(d);
  14237. d.push("\n");
  14238. c = c.concat(d);
  14239. d.length = 0;
  14240. g = h = !1;
  14241. k = m = -1;
  14242. e++;
  14243. if (f >= a) break;
  14244. m || (m = this.AB(r), h = !0);
  14245. k || (k = m, g = !0);
  14246. s--
  14247. } else d.push(v), -1 != c.lastIndexOf(" ") ? b.XP(c) : c = [], 0 < c.length && c.push("\n"), e++,
  14248. g = !1, k = -1, f++;
  14249. else d.push(v), f++
  14250. }
  14251. c = c.concat(d);
  14252. s = c.length;
  14253. r = "";
  14254. for (f = 0; f < s; ++f) r += c[f];
  14255. r += String.fromCharCode(0);
  14256. this.pL(r, !1)
  14257. }
  14258. if (this.Gq != b.eu)
  14259. for (c = f = 0, a = this.Ib.length, d = [], e = 0; e < a; e++)
  14260. if (10 == this.Ib[e].charCodeAt(0) || 0 == this.Ib[e].charCodeAt(0))
  14261. if (s = 0, g = d.length, 0 == g) c++;
  14262. else {
  14263. if (r = f + g - 1 + c, !(0 > r) && (s = this.Eh(r), null != s)) {
  14264. s = s.Gd() + s.eh() / 2;
  14265. h = 0;
  14266. switch (this.Gq) {
  14267. case b.Al:
  14268. h = this.width / 2 - s / 2;
  14269. break;
  14270. case b.KH:
  14271. h = this.width - s
  14272. }
  14273. if (0 != h)
  14274. for (s = 0; s < g; s++)(r = f + s + c, 0 > r || !(r = this.Eh(r))) || (r.x += h);
  14275. f += g;
  14276. c++;
  14277. d.length =
  14278. 0
  14279. }
  14280. } else d.push(this.Ib[f])
  14281. },
  14282. J3: function(a) {
  14283. this.Gq = a;
  14284. this.gg()
  14285. },
  14286. PV: function() {
  14287. return this.Gq
  14288. },
  14289. O3: function(a) {
  14290. this.bs = a;
  14291. this.gg()
  14292. },
  14293. wB: function() {
  14294. return this.bs
  14295. },
  14296. Yia: function(a) {
  14297. this.wK = a;
  14298. this.gg()
  14299. },
  14300. Li: function(a, c) {
  14301. b.k.prototype.Li.call(this, a, c);
  14302. this.gg()
  14303. },
  14304. bt: function(a) {
  14305. b.k.prototype.bt.call(this, a);
  14306. this.gg()
  14307. },
  14308. ct: function(a) {
  14309. b.k.prototype.ct.call(this, a);
  14310. this.gg()
  14311. },
  14312. Iia: function(a) {
  14313. if (null != a && a != this.ev) {
  14314. var c = b.T.Hd(a);
  14315. c ? (this.ev = a, this.Cf = c, a = b.Da.Hc(c.aM), this.ma = c = a.wc, this.texture = a, b.A === b.Ba &&
  14316. (this.xc = this.texture), c ? this.Iw() : a.$d(function(a) {
  14317. this.ma = !0;
  14318. this.texture = a;
  14319. this.Iw();
  14320. this.ee();
  14321. this.gg();
  14322. this.Sd()
  14323. }, this)) : b.log("cc.LabelBMFont.setFntFile() : Impossible to create font. Please check file")
  14324. }
  14325. },
  14326. Oba: function() {
  14327. return this.ev
  14328. },
  14329. ll: function(a, c) {
  14330. b.k.prototype.ll.call(this, a, c);
  14331. this.gg()
  14332. },
  14333. nL: function(a) {
  14334. b.k.prototype.nL.call(this, a);
  14335. this.gg()
  14336. },
  14337. KC: function(a) {
  14338. b.k.prototype.KC.call(this, a);
  14339. this.gg()
  14340. },
  14341. LC: function(a) {
  14342. b.k.prototype.LC.call(this, a);
  14343. this.gg()
  14344. },
  14345. U8: function() {},
  14346. n9: function(a,
  14347. c) {
  14348. var d = 0;
  14349. if (this.oV.T1) {
  14350. var e = this.oV.T1[(a << 16 | c & 65535).toString()];
  14351. e && (d = e.e$)
  14352. }
  14353. return d
  14354. },
  14355. AB: function(a) {
  14356. return a.Gd() * this.ka - a.eh() * this.ka * a.Qc.x
  14357. },
  14358. eW: function(a) {
  14359. return a.Gd() * this.ka + a.eh() * this.ka * a.Qc.x
  14360. }
  14361. });
  14362. n = b.jz.prototype;
  14363. b.A !== b.Ba || b.hb.hw || (n.ee = function() {
  14364. if (b.A != b.U) {
  14365. var a, c = this.za();
  14366. c && 0 < c.se().width && (a = c.Wa) && (c = b.Da.Ww(this.xc.Wa)) && (a instanceof HTMLCanvasElement && !this.Ec ? b.Gm(a, c, this.ya, null, a) : (a = b.Gm(a, c, this.ya), c = new b.aa, c.Kc(a), c.rb(), this.Ya(c)))
  14367. }
  14368. });
  14369. b.i(n, "string", n.al, n.nY);
  14370. b.i(n, "boundingWidth", n.wB, n.O3);
  14371. b.i(n, "textAlign", n.PV, n.J3);
  14372. b.jz.create = function(a, c, d, e, f) {
  14373. return new b.jz(a, c, d, e, f)
  14374. };
  14375. b.kF = function(a) {
  14376. a = a.charCodeAt(0);
  14377. 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
  14378. };
  14379. b.XP = function(a) {
  14380. var c = a.length;
  14381. if (!(0 >= c) && (c -= 1, b.kF(a[c]))) {
  14382. for (var d = c - 1; 0 <= d; --d)
  14383. if (b.kF(a[d])) c = d;
  14384. else break;
  14385. b.N5(a, c)
  14386. }
  14387. };
  14388. b.N5 = function(a, c) {
  14389. var d = a.length;
  14390. c >= d || 0 > c || a.splice(c, d)
  14391. };
  14392. b.IV = {
  14393. nR: /info [^\n]*(\n|$)/gi,
  14394. CQ: /common [^\n]*(\n|$)/gi,
  14395. mS: /page [^\n]*(\n|$)/gi,
  14396. BQ: /char [^\n]*(\n|$)/gi,
  14397. uR: /kerning [^\n]*(\n|$)/gi,
  14398. pR: /\w+=[^ \r\n]+/gi,
  14399. oR: /^[\-]?\d+$/,
  14400. wr: function(a) {
  14401. a = a.match(this.pR);
  14402. var c = {};
  14403. if (a)
  14404. for (var d = 0, e = a.length; d < e; d++) {
  14405. var f = a[d],
  14406. g = f.indexOf("\x3d"),
  14407. h = f.substring(0, g),
  14408. f = f.substring(g + 1);
  14409. f.match(this.oR) ? f = parseInt(f) : '"' == f[0] && (f = f.substring(1, f.length - 1));
  14410. c[h] = f
  14411. }
  14412. return c
  14413. },
  14414. N2: function(a, c) {
  14415. var d = {};
  14416. this.wr(a.match(this.nR)[0]);
  14417. var e = this.wr(a.match(this.CQ)[0]);
  14418. d.fE = e.lineHeight;
  14419. if (b.A === b.U) {
  14420. var f = b.Ro.rr;
  14421. (e.scaleW > f.width || e.scaleH > f.height) && b.log("cc.LabelBMFont._parseCommonArguments(): page can't be larger than supported")
  14422. }
  14423. 1 !== e.pages && b.log("cc.LabelBMFont._parseCommonArguments(): only supports 1 page");
  14424. e = this.wr(a.match(this.mS)[0]);
  14425. 0 !== e.id && b.log("cc.LabelBMFont._parseImageFileName() : file could not be found");
  14426. d.aM = b.path.Oo(c, e.file);
  14427. for (var g = a.match(this.BQ), h = d.N_ = {}, e = 0, f = g.length; e < f; e++) {
  14428. var k = this.wr(g[e]);
  14429. h[k.id] = {
  14430. rect: {
  14431. x: k.x,
  14432. y: k.y,
  14433. width: k.width,
  14434. height: k.height
  14435. },
  14436. aQ: k.xoffset,
  14437. bQ: k.yoffset,
  14438. W5: k.xadvance
  14439. }
  14440. }
  14441. g = d.S1 = {};
  14442. if (h = a.match(this.uR))
  14443. for (e = 0, f = h.length; e < f; e++) k = this.wr(h[e]), g[k.first << 16 | k.second & 65535] = k.amount;
  14444. return d
  14445. },
  14446. load: function(a, c, d, e) {
  14447. var f = this;
  14448. b.T.Cx(a, function(a, d) {
  14449. if (a) return e(a);
  14450. e(null, f.N2(d, c))
  14451. })
  14452. }
  14453. };
  14454. b.T.Nj(["fnt"], b.IV);
  14455. b.bH = b.k.extend({
  14456. texture: null,
  14457. Wo: !1,
  14458. Mi: !1,
  14459. p: null,
  14460. Or: 0,
  14461. pB: 0,
  14462. Vl: 0,
  14463. VB: 0,
  14464. Ck: 0,
  14465. uC: 0,
  14466. nC: null,
  14467. mC: null,
  14468. Pa: null,
  14469. Jn: null,
  14470. Pf: null,
  14471. dd: null,
  14472. Kn: null,
  14473. Bo: null,
  14474. vb: "MotionStreak",
  14475. ctor: function(a, c, d, e, f) {
  14476. b.k.prototype.ctor.call(this);
  14477. this.Ag = C(0, 0);
  14478. this.p = new b.ec(b.SRC_ALPHA, b.ONE_MINUS_SRC_ALPHA);
  14479. this.FD = b.l.createBuffer();
  14480. this.Mi = this.Wo = !1;
  14481. this.texture = null;
  14482. this.uC = this.Ck = this.VB = this.Vl = this.pB = this.Or = 0;
  14483. this.Bo = this.Kn = this.dd = this.Pf = this.Jn = this.Pa = this.mC = this.nC = null;
  14484. void 0 !== f && this.r1(a, c, d, e, f)
  14485. },
  14486. za: function() {
  14487. return this.texture
  14488. },
  14489. Ya: function(a) {
  14490. this.texture != a && (this.texture = a)
  14491. },
  14492. Dh: function() {
  14493. return this.p
  14494. },
  14495. Se: function(a, c) {
  14496. void 0 === c ? this.p = a : (this.p.src = a, this.p.S = c)
  14497. },
  14498. Ig: function() {
  14499. b.log("cc.MotionStreak.getOpacity has not been supported.");
  14500. return 0
  14501. },
  14502. Sa: function() {
  14503. b.log("cc.MotionStreak.setOpacity has not been supported.")
  14504. },
  14505. Ue: function() {},
  14506. Wf: function() {
  14507. return !1
  14508. },
  14509. sb: function() {
  14510. b.k.prototype.sb.call(this);
  14511. this.dd && b.l.deleteBuffer(this.dd);
  14512. this.Bo && b.l.deleteBuffer(this.Bo);
  14513. this.Kn && b.l.deleteBuffer(this.Kn)
  14514. },
  14515. Xda: function() {
  14516. return this.Wo
  14517. },
  14518. Hia: function(a) {
  14519. this.Wo = a
  14520. },
  14521. iea: function() {
  14522. return this.Mi
  14523. },
  14524. Cja: function(a) {
  14525. this.Mi = a
  14526. },
  14527. r1: function(a, c, d, e, f) {
  14528. if (!f) throw "cc.MotionStreak.initWithFade(): Invalid filename or texture";
  14529. "string" === typeof f && (f = b.Da.Hc(f));
  14530. b.k.prototype.P.call(this, C(0, 0));
  14531. this.anchorY = this.anchorX = 0;
  14532. this.ignoreAnchor = !0;
  14533. this.Mi = !1;
  14534. this.Wo = !0;
  14535. this.Vl = -1 == c ? d / 5 : c;
  14536. this.Vl *= this.Vl;
  14537. this.Or = d;
  14538. this.pB = 1 / a;
  14539. a = (0 | 60 * a) + 2;
  14540. this.Ck = 0;
  14541. this.mC = new Float32Array(a);
  14542. this.nC = new Float32Array(2 * a);
  14543. this.Pa = new Float32Array(4 * a);
  14544. this.Pf = new Float32Array(4 *
  14545. a);
  14546. this.Jn = new Uint8Array(8 * a);
  14547. this.VB = a;
  14548. a = b.l;
  14549. this.dd = a.createBuffer();
  14550. this.Bo = a.createBuffer();
  14551. this.Kn = a.createBuffer();
  14552. this.p.src = a.SRC_ALPHA;
  14553. this.p.S = a.ONE_MINUS_SRC_ALPHA;
  14554. this.shaderProgram = b.Md.nc(b.Wi);
  14555. this.texture = f;
  14556. this.color = e;
  14557. this.H3();
  14558. a.bindBuffer(a.ARRAY_BUFFER, this.dd);
  14559. a.bufferData(a.ARRAY_BUFFER, this.Pa, a.DYNAMIC_DRAW);
  14560. a.bindBuffer(a.ARRAY_BUFFER, this.Bo);
  14561. a.bufferData(a.ARRAY_BUFFER, this.Pf, a.DYNAMIC_DRAW);
  14562. a.bindBuffer(a.ARRAY_BUFFER, this.Kn);
  14563. a.bufferData(a.ARRAY_BUFFER, this.Jn, a.DYNAMIC_DRAW);
  14564. return !0
  14565. },
  14566. Eka: function(a) {
  14567. this.color = a;
  14568. for (var c = this.Jn, d = 0, e = 2 * this.Ck; d < e; d++) c[4 * d] = a.r, c[4 * d + 1] = a.g, c[4 * d + 2] = a.b
  14569. },
  14570. reset: function() {
  14571. this.Ck = 0
  14572. },
  14573. P: function(a, c) {
  14574. this.Mi = !0;
  14575. void 0 === c ? (this.Ag.x = a.x, this.Ag.y = a.y) : (this.Ag.x = a, this.Ag.y = c)
  14576. },
  14577. Gd: function() {
  14578. return this.Ag.x
  14579. },
  14580. kP: function(a) {
  14581. this.Ag.x = a;
  14582. this.Mi || (this.Mi = !0)
  14583. },
  14584. tf: function() {
  14585. return this.Ag.y
  14586. },
  14587. lP: function(a) {
  14588. this.Ag.y = a;
  14589. this.Mi || (this.Mi = !0)
  14590. },
  14591. Y: function(a) {
  14592. 1 >= this.Ck || !this.texture || !this.texture.wc || (a = a || b.l, b.Js(this), b.Jc(b.El), b.Hh(this.p.src,
  14593. this.p.S), b.te(this.texture), a.bindBuffer(a.ARRAY_BUFFER, this.dd), a.bufferData(a.ARRAY_BUFFER, this.Pa, a.DYNAMIC_DRAW), a.vertexAttribPointer(b.qb, 2, a.FLOAT, !1, 0, 0), a.bindBuffer(a.ARRAY_BUFFER, this.Bo), a.bufferData(a.ARRAY_BUFFER, this.Pf, a.DYNAMIC_DRAW), a.vertexAttribPointer(b.zd, 2, a.FLOAT, !1, 0, 0), a.bindBuffer(a.ARRAY_BUFFER, this.Kn), a.bufferData(a.ARRAY_BUFFER, this.Jn, a.DYNAMIC_DRAW), a.vertexAttribPointer(b.Ce, 4, a.UNSIGNED_BYTE, !0, 0, 0), a.drawArrays(a.TRIANGLE_STRIP, 0, 2 * this.Ck), b.sf++)
  14594. },
  14595. update: function(a) {
  14596. if (this.Mi) {
  14597. a *=
  14598. this.pB;
  14599. var c, d, e, f, g = 0,
  14600. h = this.Ck,
  14601. k = this.mC,
  14602. m = this.nC,
  14603. p = this.Pa,
  14604. r = this.Jn;
  14605. for (e = 0; e < h; e++) k[e] -= a, 0 >= k[e] ? g++ : (c = e - g, 0 < g ? (k[c] = k[e], m[2 * c] = m[2 * e], m[2 * c + 1] = m[2 * e + 1], f = 2 * e, d = 2 * c, p[2 * d] = p[2 * f], p[2 * d + 1] = p[2 * f + 1], p[2 * (d + 1)] = p[2 * (f + 1)], p[2 * (d + 1) + 1] = p[2 * (f + 1) + 1], f *= 4, d *= 4, r[d + 0] = r[f + 0], r[d + 1] = r[f + 1], r[d + 2] = r[f + 2], r[d + 4] = r[f + 4], r[d + 5] = r[f + 5], r[d + 6] = r[f + 6]) : d = 8 * c, c = 255 * k[c], r[d + 3] = c, r[d + 7] = c);
  14606. h -= g;
  14607. e = !0;
  14608. h >= this.VB ? e = !1 : 0 < h && (a = 1 == h ? !1 : b.sO(C(m[2 * (h - 2)], m[2 * (h - 2) + 1]), this.Ag) < 2 * this.Vl, b.sO(C(m[2 * (h - 1)], m[2 *
  14609. (h - 1) + 1]), this.Ag) < this.Vl || a) && (e = !1);
  14610. e && (m[2 * h] = this.Ag.x, m[2 * h + 1] = this.Ag.y, k[h] = 1, e = 8 * h, k = this.ya, r[e] = k.r, r[e + 1] = k.g, r[e + 2] = k.b, r[e + 4] = k.r, r[e + 5] = k.g, r[e + 6] = k.b, r[e + 3] = 255, r[e + 7] = 255, 0 < h && this.Wo && (1 < h ? b.tG(m, this.Or, this.Pa, h, 1) : b.tG(m, this.Or, this.Pa, 0, 2)), h++);
  14611. this.Wo || b.tG(m, this.Or, this.Pa, 0, h);
  14612. if (h && this.uC != h) {
  14613. m = 1 / h;
  14614. r = this.Pf;
  14615. for (e = 0; e < h; e++) r[4 * e] = 0, r[4 * e + 1] = m * e, r[2 * (2 * e + 1)] = 1, r[2 * (2 * e + 1) + 1] = m * e;
  14616. this.uC = h
  14617. }
  14618. this.Ck = h
  14619. }
  14620. }
  14621. });
  14622. b.bH.create = function(a, c, d, e, f) {
  14623. return new b.bH(a, c, d, e, f)
  14624. };
  14625. b.qz = b.k.extend({
  14626. grid: null,
  14627. ne: null,
  14628. ss: function() {
  14629. return this.grid
  14630. },
  14631. d4: function(a) {
  14632. this.grid = a
  14633. },
  14634. dG: function(a) {
  14635. this.ne = a
  14636. },
  14637. X: function(a, c, d) {
  14638. b.k.prototype.X.call(this, a, c, d);
  14639. a && !this.ne && (this.ne = a)
  14640. },
  14641. R: function() {
  14642. if (this.lc) {
  14643. var a = b.A == b.U,
  14644. c = this.grid;
  14645. a && c && c.kk && c.is();
  14646. this.transform();
  14647. var d = this.t;
  14648. if (d && 0 < d.length) {
  14649. var e = d.length;
  14650. this.Wc();
  14651. for (Q = 0; Q < e; Q++) {
  14652. var f = d[Q];
  14653. f && f.R()
  14654. }
  14655. }
  14656. a && c && c.kk && c.fs(this.ne)
  14657. }
  14658. },
  14659. HY: function() {
  14660. var a = this.uD,
  14661. c = b.Pb.top,
  14662. d = this.np(),
  14663. e = a.c;
  14664. e[0] = d.a;
  14665. e[4] = d.B;
  14666. e[12] = d.Ia;
  14667. e[1] = d.b;
  14668. e[5] = d.H;
  14669. e[13] = d.Ja;
  14670. e[14] = this.$r;
  14671. b.Ei(c, c, a);
  14672. null == this.Yi || this.grid && this.grid.vf() || (a = this.Ab.x, c = this.Ab.y, 0 !== a || 0 !== c ? (b.Qz || (a |= 0, c |= 0), b.jp(a, c), this.Yi.Is(), b.jp(-a, -c)) : this.Yi.Is())
  14673. }
  14674. });
  14675. n = b.qz.prototype;
  14676. b.A === b.U && (n.transform = n.HY);
  14677. b.i(n, "target", null, n.dG);
  14678. b.qz.create = function() {
  14679. return new b.qz
  14680. };
  14681. b.Nka = function() {
  14682. return {
  14683. x: 0,
  14684. y: 0
  14685. }
  14686. };
  14687. b.pl = function(a, c) {
  14688. return {
  14689. x: a,
  14690. y: c
  14691. }
  14692. };
  14693. b.we = function(a, c) {
  14694. return b.pl(a.x + c.x, a.y + c.y)
  14695. };
  14696. b.pc = function(a, c) {
  14697. return b.pl(a.x - c.x, a.y - c.y)
  14698. };
  14699. b.vd = function(a, c) {
  14700. return b.pl(a.x * c, a.y * c)
  14701. };
  14702. b.Hp = function(a) {
  14703. return b.pl(-a.y, a.x)
  14704. };
  14705. b.hg = function(a) {
  14706. return b.pl(-a.x, -a.y)
  14707. };
  14708. b.YP = function(a, c) {
  14709. return a.x * c.x + a.y * c.y
  14710. };
  14711. b.Mka = function(a) {
  14712. return b.pl(Math.cos(a), Math.sin(a))
  14713. };
  14714. b.qt = function(a) {
  14715. a = b.Kg(C(a.x, a.y));
  14716. return b.pl(a.x, a.y)
  14717. };
  14718. b.De = function(a) {
  14719. return b.pl(a.x, a.y)
  14720. };
  14721. b.Fa = function(a) {
  14722. return {
  14723. fa: a.x,
  14724. ga: a.y
  14725. }
  14726. };
  14727. b.RQ = b.k.extend({
  14728. ab: null,
  14729. p: null,
  14730. $c: 1,
  14731. gf: null,
  14732. vb: "DrawNodeCanvas",
  14733. ctor: function() {
  14734. b.k.prototype.ctor.call(this);
  14735. this.ab = [];
  14736. this.gf = b.color(255, 255, 255, 255);
  14737. this.p = new b.ec(b.dc, b.cc);
  14738. this.da()
  14739. },
  14740. Dh: function() {
  14741. return this.p
  14742. },
  14743. Se: function(a, c) {
  14744. void 0 === c ? (this.p.src = a.src, this.p.S = a.S) : (this.p.src = a, this.p.S = c)
  14745. },
  14746. WF: function(a) {
  14747. this.$c = a
  14748. },
  14749. r0: function() {
  14750. return this.$c
  14751. },
  14752. yp: function(a) {
  14753. var c = this.gf;
  14754. c.r = a.r;
  14755. c.g = a.g;
  14756. c.b = a.b;
  14757. c.a = null == a.a ? 255 : a.a
  14758. },
  14759. Fd: function() {
  14760. return b.color(this.gf.r, this.gf.g, this.gf.b, this.gf.a)
  14761. },
  14762. sE: function(a, c, d, e, f) {
  14763. e = e || this.$c;
  14764. f = f || this.Fd();
  14765. null == f.a && (f.a = 255);
  14766. a = [a, C(c.x, a.y), c, C(a.x, c.y)];
  14767. c = new b.fk(b.Od.ak);
  14768. c.ig = a;
  14769. c.lineWidth = e;
  14770. c.Jj = f;
  14771. c.nx = !0;
  14772. c.cl = !0;
  14773. c.lineCap = "butt";
  14774. if (c.fillColor = d) null == d.a && (d.a = 255), c.iF = !0;
  14775. this.ab.push(c)
  14776. },
  14777. oE: function(a, c, d, e, f, g, h) {
  14778. g = g || this.$c;
  14779. h = h || this.Fd();
  14780. null == h.a && (h.a = 255);
  14781. for (var k = 2 * Math.PI / e, m = [], p = 0; p <= e; p++) {
  14782. var r = p * k;
  14783. m.push(C(c * Math.cos(r + d) + a.x, c * Math.sin(r + d) + a.y))
  14784. }
  14785. f && m.push(C(a.x, a.y));
  14786. a = new b.fk(b.Od.ak);
  14787. a.ig = m;
  14788. a.lineWidth = g;
  14789. a.Jj = h;
  14790. a.nx = !0;
  14791. a.cl = !0;
  14792. this.ab.push(a)
  14793. },
  14794. rE: function(a, c, d, e, f, g) {
  14795. f = f || this.$c;
  14796. g = g || this.Fd();
  14797. null == g.a && (g.a = 255);
  14798. for (var h = [], k = 0, m = 0; m < e; m++) h.push(C(Math.pow(1 - k, 2) * a.x + 2 * (1 - k) * k * c.x + k * k * d.x, Math.pow(1 - k, 2) * a.y + 2 * (1 - k) * k * c.y + k * k * d.y)), k += 1 / e;
  14799. h.push(C(d.x, d.y));
  14800. a = new b.fk(b.Od.ak);
  14801. a.ig = h;
  14802. a.lineWidth = f;
  14803. a.Jj = g;
  14804. a.cl = !0;
  14805. a.lineCap = "round";
  14806. this.ab.push(a)
  14807. },
  14808. pE: function(a, c, d, e, f, g, h) {
  14809. g = g || this.$c;
  14810. h = h || this.Fd();
  14811. null == h.a && (h.a = 255);
  14812. for (var k = [], m = 0, p = 0; p < f; p++) k.push(C(Math.pow(1 - m, 3) * a.x + 3 * Math.pow(1 - m, 2) * m * c.x + 3 * (1 -
  14813. m) * m * m * d.x + m * m * m * e.x, Math.pow(1 - m, 3) * a.y + 3 * Math.pow(1 - m, 2) * m * c.y + 3 * (1 - m) * m * m * d.y + m * m * m * e.y)), m += 1 / f;
  14814. k.push(C(e.x, e.y));
  14815. a = new b.fk(b.Od.ak);
  14816. a.ig = k;
  14817. a.lineWidth = g;
  14818. a.Jj = h;
  14819. a.cl = !0;
  14820. a.lineCap = "round";
  14821. this.ab.push(a)
  14822. },
  14823. nE: function(a, c, d, e) {
  14824. this.Bm(a, 0.5, c, d, e)
  14825. },
  14826. Bm: function(a, c, d, e, f) {
  14827. e = e || this.$c;
  14828. f = f || this.Fd();
  14829. null == f.a && (f.a = 255);
  14830. for (var g = [], h, k, m = 1 / a.length, p = 0; p < d + 1; p++) k = p / d, 1 == k ? (h = a.length - 1, k = 1) : (h = 0 | k / m, k = (k - m * h) / m), h = b.bE(b.gd(a, h - 1), b.gd(a, h - 0), b.gd(a, h + 1), b.gd(a, h + 2), c, k), g.push(h);
  14831. a = new b.fk(b.Od.ak);
  14832. a.ig = g;
  14833. a.lineWidth = e;
  14834. a.Jj = f;
  14835. a.cl = !0;
  14836. a.lineCap = "round";
  14837. this.ab.push(a)
  14838. },
  14839. qE: function(a, c, d) {
  14840. d = d || this.Fd();
  14841. null == d.a && (d.a = 255);
  14842. var e = new b.fk(b.Od.NH);
  14843. e.ig = [a];
  14844. e.lineWidth = c;
  14845. e.fillColor = d;
  14846. this.ab.push(e)
  14847. },
  14848. ZZ: function(a, c, d) {
  14849. if (a && 0 != a.length) {
  14850. d = d || this.Fd();
  14851. null == d.a && (d.a = 255);
  14852. for (var e = 0, f = a.length; e < f; e++) this.qE(a[e], c, d)
  14853. }
  14854. },
  14855. tE: function(a, c, d, e) {
  14856. d = d || this.$c;
  14857. e = e || this.Fd();
  14858. null == e.a && (e.a = 255);
  14859. var f = new b.fk(b.Od.ak);
  14860. f.ig = [a, c];
  14861. f.lineWidth = 2 * d;
  14862. f.Jj = e;
  14863. f.cl = !0;
  14864. f.lineCap = "round";
  14865. this.ab.push(f)
  14866. },
  14867. c_: function(a,
  14868. c, d, e) {
  14869. d = d || this.$c;
  14870. e = e || this.Fd();
  14871. null == e.a && (e.a = 255);
  14872. var f = new b.fk(b.Od.ak);
  14873. f.ig = a;
  14874. f.fillColor = c;
  14875. f.lineWidth = d;
  14876. f.Jj = e;
  14877. f.nx = !0;
  14878. f.cl = !0;
  14879. f.lineCap = "round";
  14880. c && (f.iF = !0);
  14881. this.ab.push(f)
  14882. },
  14883. ae: function(a, c, d, e) {
  14884. for (var f = [], g = 0; g < a.length; g++) f.push(C(a[g].x, a[g].y));
  14885. return this.c_(f, c, d, e)
  14886. },
  14887. Y: function(a) {
  14888. a = a || b.l;
  14889. this.p && this.p.src == b.SRC_ALPHA && this.p.S == b.ONE && (a.globalCompositeOperation = "lighter");
  14890. for (var c = 0; c < this.ab.length; c++) {
  14891. var d = this.ab[c];
  14892. switch (d.type) {
  14893. case b.Od.NH:
  14894. this.AV(a, d);
  14895. break;
  14896. case b.Od.GT:
  14897. this.CV(a,
  14898. d);
  14899. break;
  14900. case b.Od.ak:
  14901. this.BV(a, d)
  14902. }
  14903. }
  14904. },
  14905. AV: function(a, c) {
  14906. var d = c.fillColor,
  14907. e = c.ig[0],
  14908. f = c.lineWidth,
  14909. g = b.view.ka,
  14910. h = b.view.La;
  14911. a.fillStyle = "rgba(" + (0 | d.r) + "," + (0 | d.g) + "," + (0 | d.b) + "," + d.a / 255 + ")";
  14912. a.beginPath();
  14913. a.arc(e.x * g, -e.y * h, f * g, 0, 2 * Math.PI, !1);
  14914. a.closePath();
  14915. a.fill()
  14916. },
  14917. CV: function(a, c) {
  14918. var d = c.Jj,
  14919. e = c.ig[0],
  14920. f = c.ig[1],
  14921. g = c.lineWidth,
  14922. h = c.lineCap,
  14923. k = b.view.ka,
  14924. m = b.view.La;
  14925. a.strokeStyle = "rgba(" + (0 | d.r) + "," + (0 | d.g) + "," + (0 | d.b) + "," + d.a / 255 + ")";
  14926. a.lineWidth = g * k;
  14927. a.beginPath();
  14928. a.lineCap = h;
  14929. a.moveTo(e.x * k, -e.y * m);
  14930. a.lineTo(f.x *
  14931. k, -f.y * m);
  14932. a.stroke()
  14933. },
  14934. BV: function(a, c) {
  14935. var d = c.ig,
  14936. e = c.lineCap,
  14937. f = c.fillColor,
  14938. g = c.lineWidth,
  14939. h = c.Jj,
  14940. k = c.nx,
  14941. m = c.iF,
  14942. p = c.cl;
  14943. if (null != d) {
  14944. var r = d[0],
  14945. s = b.view.ka,
  14946. u = b.view.La;
  14947. a.lineCap = e;
  14948. f && (a.fillStyle = "rgba(" + (0 | f.r) + "," + (0 | f.g) + "," + (0 | f.b) + "," + f.a / 255 + ")");
  14949. g && (a.lineWidth = g * s);
  14950. h && (a.strokeStyle = "rgba(" + (0 | h.r) + "," + (0 | h.g) + "," + (0 | h.b) + "," + h.a / 255 + ")");
  14951. a.beginPath();
  14952. a.moveTo(r.x * s, -r.y * u);
  14953. e = 1;
  14954. for (f = d.length; e < f; e++) a.lineTo(d[e].x * s, -d[e].y * u);
  14955. k && a.closePath();
  14956. m && a.fill();
  14957. p && a.stroke()
  14958. }
  14959. },
  14960. clear: function() {
  14961. this.ab.length =
  14962. 0
  14963. }
  14964. });
  14965. b.SQ = b.k.extend({
  14966. Dn: 0,
  14967. ab: null,
  14968. yj: null,
  14969. EL: null,
  14970. DL: null,
  14971. $c: 1,
  14972. gf: null,
  14973. p: null,
  14974. jb: !1,
  14975. vb: "DrawNodeWebGL",
  14976. Dh: function() {
  14977. return this.p
  14978. },
  14979. Se: function(a, c) {
  14980. void 0 === c ? (this.p.src = a.src, this.p.S = a.S) : (this.p.src = a, this.p.S = c)
  14981. },
  14982. ctor: function() {
  14983. b.k.prototype.ctor.call(this);
  14984. this.ab = [];
  14985. this.p = new b.ec(b.dc, b.cc);
  14986. this.gf = b.color(255, 255, 255, 255);
  14987. this.da()
  14988. },
  14989. da: function() {
  14990. return b.k.prototype.da.call(this) ? (this.shaderProgram = b.Md.nc(b.BH), this.Yq(64), this.EL = b.l.createBuffer(), this.jb = !0) : !1
  14991. },
  14992. WF: function(a) {
  14993. this.$c = a
  14994. },
  14995. r0: function() {
  14996. return this.$c
  14997. },
  14998. yp: function(a) {
  14999. var c = this.gf;
  15000. c.r = a.r;
  15001. c.g = a.g;
  15002. c.b = a.b;
  15003. c.a = a.a
  15004. },
  15005. Fd: function() {
  15006. return b.color(this.gf.r, this.gf.g, this.gf.b, this.gf.a)
  15007. },
  15008. sE: function(a, c, d, e, f) {
  15009. e = e || this.$c;
  15010. f = f || this.Fd();
  15011. null == f.a && (f.a = 255);
  15012. a = [a, C(c.x, a.y), c, C(a.x, c.y)];
  15013. null == d ? this.Tu(a, e, f, !0) : this.ae(a, d, e, f)
  15014. },
  15015. oE: function(a, c, d, e, f, g, h) {
  15016. g = g || this.$c;
  15017. h = h || this.Fd();
  15018. null == h.a && (h.a = 255);
  15019. var k = 2 * Math.PI / e,
  15020. m = [],
  15021. p;
  15022. for (p = 0; p <= e; p++) {
  15023. var r = p * k;
  15024. m.push(C(c * Math.cos(r + d) + a.x, c * Math.sin(r + d) + a.y))
  15025. }
  15026. f && m.push(C(a.x,
  15027. a.y));
  15028. g *= 0.5;
  15029. p = 0;
  15030. for (a = m.length; p < a - 1; p++) this.tE(m[p], m[p + 1], g, h)
  15031. },
  15032. rE: function(a, c, d, e, f, g) {
  15033. f = f || this.$c;
  15034. g = g || this.Fd();
  15035. null == g.a && (g.a = 255);
  15036. for (var h = [], k = 0, m = 0; m < e; m++) h.push(C(Math.pow(1 - k, 2) * a.x + 2 * (1 - k) * k * c.x + k * k * d.x, Math.pow(1 - k, 2) * a.y + 2 * (1 - k) * k * c.y + k * k * d.y)), k += 1 / e;
  15037. h.push(C(d.x, d.y));
  15038. this.Tu(h, f, g, !1)
  15039. },
  15040. pE: function(a, c, d, e, f, g, h) {
  15041. g = g || this.$c;
  15042. h = h || this.Fd();
  15043. null == h.a && (h.a = 255);
  15044. for (var k = [], m = 0, p = 0; p < f; p++) k.push(C(Math.pow(1 - m, 3) * a.x + 3 * Math.pow(1 - m, 2) * m * c.x + 3 * (1 - m) * m * m * d.x + m * m * m * e.x, Math.pow(1 -
  15045. m, 3) * a.y + 3 * Math.pow(1 - m, 2) * m * c.y + 3 * (1 - m) * m * m * d.y + m * m * m * e.y)), m += 1 / f;
  15046. k.push(C(e.x, e.y));
  15047. this.Tu(k, g, h, !1)
  15048. },
  15049. nE: function(a, c, d, e) {
  15050. this.Bm(a, 0.5, c, d, e)
  15051. },
  15052. Bm: function(a, c, d, e, f) {
  15053. e = e || this.$c;
  15054. f = f || this.Fd();
  15055. null == f.a && (f.a = 255);
  15056. for (var g = [], h, k, m = 1 / a.length, p = 0; p < d + 1; p++) k = p / d, 1 == k ? (h = a.length - 1, k = 1) : (h = 0 | k / m, k = (k - m * h) / m), h = b.bE(b.gd(a, h - 1), b.gd(a, h - 0), b.gd(a, h + 1), b.gd(a, h + 2), c, k), g.push(h);
  15057. e *= 0.5;
  15058. a = 0;
  15059. for (c = g.length; a < c - 1; a++) this.tE(g[a], g[a + 1], e, f)
  15060. },
  15061. HX: function() {
  15062. var a = b.l;
  15063. b.Jc(b.El);
  15064. a.bindBuffer(a.ARRAY_BUFFER,
  15065. this.EL);
  15066. this.jb && (a.bufferData(a.ARRAY_BUFFER, this.yj, a.STREAM_DRAW), this.jb = !1);
  15067. var c = b.yd.BYTES_PER_ELEMENT;
  15068. a.vertexAttribPointer(b.qb, 2, a.FLOAT, !1, c, 0);
  15069. a.vertexAttribPointer(b.Ce, 4, a.UNSIGNED_BYTE, !0, c, 8);
  15070. a.vertexAttribPointer(b.zd, 2, a.FLOAT, !1, c, 12);
  15071. a.drawArrays(a.TRIANGLES, 0, 3 * this.ab.length);
  15072. b.Vf()
  15073. },
  15074. Yq: function(a) {
  15075. var c = this.ab;
  15076. if (c.length + a > this.Dn) {
  15077. var d = b.Ub.BYTES_PER_ELEMENT;
  15078. this.Dn += Math.max(this.Dn, a);
  15079. if (null == c || 0 === c.length) this.ab = [], this.yj = new ArrayBuffer(d * this.Dn), this.DL = new Uint8Array(this.yj);
  15080. else {
  15081. a = [];
  15082. for (var e = new ArrayBuffer(d * this.Dn), f = 0; f < c.length; f++) a[f] = new b.Ub(c[f].a, c[f].b, c[f].B, e, f * d);
  15083. this.DL = new Uint8Array(e);
  15084. this.yj = e;
  15085. this.ab = a
  15086. }
  15087. }
  15088. },
  15089. Y: function() {
  15090. b.Hh(this.p.src, this.p.S);
  15091. this.Eb.Oc();
  15092. this.Eb.ft();
  15093. this.HX()
  15094. },
  15095. qE: function(a, c, d) {
  15096. d = d || this.Fd();
  15097. null == d.a && (d.a = 255);
  15098. var e = {
  15099. r: 0 | d.r,
  15100. g: 0 | d.g,
  15101. b: 0 | d.b,
  15102. a: 0 | d.a
  15103. };
  15104. d = {
  15105. f: {
  15106. x: a.x - c,
  15107. y: a.y - c
  15108. },
  15109. s: e,
  15110. m: {
  15111. fa: -1,
  15112. ga: -1
  15113. }
  15114. };
  15115. var f = {
  15116. f: {
  15117. x: a.x - c,
  15118. y: a.y + c
  15119. },
  15120. s: e,
  15121. m: {
  15122. fa: -1,
  15123. ga: 1
  15124. }
  15125. },
  15126. g = {
  15127. f: {
  15128. x: a.x + c,
  15129. y: a.y + c
  15130. },
  15131. s: e,
  15132. m: {
  15133. fa: 1,
  15134. ga: 1
  15135. }
  15136. };
  15137. a = {
  15138. f: {
  15139. x: a.x + c,
  15140. y: a.y - c
  15141. },
  15142. s: e,
  15143. m: {
  15144. fa: 1,
  15145. ga: -1
  15146. }
  15147. };
  15148. this.Yq(6);
  15149. this.ab.push(new b.Ub(d, f, g, this.yj, this.ab.length * b.Ub.BYTES_PER_ELEMENT));
  15150. this.ab.push(new b.Ub(d, g, a, this.yj, this.ab.length * b.Ub.BYTES_PER_ELEMENT));
  15151. this.jb = !0
  15152. },
  15153. ZZ: function(a, c, d) {
  15154. if (a && 0 != a.length) {
  15155. d = d || this.Fd();
  15156. null == d.a && (d.a = 255);
  15157. for (var e = 0, f = a.length; e < f; e++) this.qE(a[e], c, d)
  15158. }
  15159. },
  15160. tE: function(a, c, d, e) {
  15161. e = e || this.Fd();
  15162. null == e.a && (e.a = 255);
  15163. d = d || 0.5 * this.$c;
  15164. this.Yq(18);
  15165. e = {
  15166. r: 0 | e.r,
  15167. g: 0 | e.g,
  15168. b: 0 | e.b,
  15169. a: 0 | e.a
  15170. };
  15171. var f = b.De(a);
  15172. c = b.De(c);
  15173. a = b.qt(b.Hp(b.pc(c, f)));
  15174. var g = b.Hp(a),
  15175. h = b.vd(a, d);
  15176. d = b.vd(g,
  15177. d);
  15178. var k = b.we(c, b.pc(h, d)),
  15179. m = b.pc(c, h),
  15180. p = b.we(c, h),
  15181. r = b.pc(f, h),
  15182. s = b.we(f, h),
  15183. u = b.pc(f, b.pc(h, d)),
  15184. f = b.we(f, b.we(h, d)),
  15185. t = b.Ub.BYTES_PER_ELEMENT,
  15186. v = this.yj,
  15187. w = this.ab;
  15188. w.push(new b.Ub({
  15189. f: b.pc(c, b.we(h, d)),
  15190. s: e,
  15191. m: b.Fa(b.hg(b.we(a, g)))
  15192. }, {
  15193. f: k,
  15194. s: e,
  15195. m: b.Fa(b.pc(a, g))
  15196. }, {
  15197. f: m,
  15198. s: e,
  15199. m: b.Fa(b.hg(a))
  15200. }, v, w.length * t));
  15201. w.push(new b.Ub({
  15202. f: p,
  15203. s: e,
  15204. m: b.Fa(a)
  15205. }, {
  15206. f: k,
  15207. s: e,
  15208. m: b.Fa(b.pc(a, g))
  15209. }, {
  15210. f: m,
  15211. s: e,
  15212. m: b.Fa(b.hg(a))
  15213. }, v, w.length * t));
  15214. w.push(new b.Ub({
  15215. f: p,
  15216. s: e,
  15217. m: b.Fa(a)
  15218. }, {
  15219. f: r,
  15220. s: e,
  15221. m: b.Fa(b.hg(a))
  15222. }, {
  15223. f: m,
  15224. s: e,
  15225. m: b.Fa(b.hg(a))
  15226. }, v, w.length * t));
  15227. w.push(new b.Ub({
  15228. f: p,
  15229. s: e,
  15230. m: b.Fa(a)
  15231. }, {
  15232. f: r,
  15233. s: e,
  15234. m: b.Fa(b.hg(a))
  15235. }, {
  15236. f: s,
  15237. s: e,
  15238. m: b.Fa(a)
  15239. }, v, w.length * t));
  15240. w.push(new b.Ub({
  15241. f: u,
  15242. s: e,
  15243. m: b.Fa(b.pc(g, a))
  15244. }, {
  15245. f: r,
  15246. s: e,
  15247. m: b.Fa(b.hg(a))
  15248. }, {
  15249. f: s,
  15250. s: e,
  15251. m: b.Fa(a)
  15252. }, v, w.length * t));
  15253. w.push(new b.Ub({
  15254. f: u,
  15255. s: e,
  15256. m: b.Fa(b.pc(g, a))
  15257. }, {
  15258. f: f,
  15259. s: e,
  15260. m: b.Fa(b.we(a, g))
  15261. }, {
  15262. f: s,
  15263. s: e,
  15264. m: b.Fa(a)
  15265. }, v, w.length * t));
  15266. this.jb = !0
  15267. },
  15268. ae: function(a, c, d, e) {
  15269. if (null == c) this.Tu(a, d, e, !0);
  15270. else {
  15271. null == c.a && (c.a = 255);
  15272. null == e.a && (e.a = 255);
  15273. d = d || this.$c;
  15274. d *= 0.5;
  15275. c = {
  15276. r: 0 | c.r,
  15277. g: 0 | c.g,
  15278. b: 0 | c.b,
  15279. a: 0 | c.a
  15280. };
  15281. e = {
  15282. r: 0 | e.r,
  15283. g: 0 | e.g,
  15284. b: 0 | e.b,
  15285. a: 0 | e.a
  15286. };
  15287. var f = [],
  15288. g, h, k, m, p = a.length;
  15289. for (g = 0; g < p; g++) {
  15290. h = b.De(a[(g - 1 + p) % p]);
  15291. k = b.De(a[g]);
  15292. m = b.De(a[(g + 1) % p]);
  15293. var r = b.qt(b.Hp(b.pc(k, h)));
  15294. k = b.qt(b.Hp(b.pc(m, k)));
  15295. f[g] = {
  15296. offset: b.vd(b.we(r, k), 1 / (b.YP(r, k) + 1)),
  15297. fl: k
  15298. }
  15299. }
  15300. r = 0 < d;
  15301. this.Yq(3 * (3 * p - 2));
  15302. var s = b.Ub.BYTES_PER_ELEMENT,
  15303. u = this.yj,
  15304. t = this.ab,
  15305. v = !1 == r ? 0.5 : 0;
  15306. for (g = 0; g < p - 2; g++) h = b.pc(b.De(a[0]), b.vd(f[0].offset, v)), k = b.pc(b.De(a[g + 1]), b.vd(f[g + 1].offset, v)), m = b.pc(b.De(a[g + 2]), b.vd(f[g + 2].offset, v)), t.push(new b.Ub({
  15307. f: h,
  15308. s: c,
  15309. m: b.Fa({
  15310. x: 0,
  15311. y: 0
  15312. })
  15313. }, {
  15314. f: k,
  15315. s: c,
  15316. m: b.Fa({
  15317. x: 0,
  15318. y: 0
  15319. })
  15320. }, {
  15321. f: m,
  15322. s: c,
  15323. m: b.Fa({
  15324. x: 0,
  15325. y: 0
  15326. })
  15327. }, u, t.length * s));
  15328. for (g = 0; g < p; g++) {
  15329. v = (g + 1) % p;
  15330. h = b.De(a[g]);
  15331. k = b.De(a[v]);
  15332. m = f[g].fl;
  15333. var w = f[g].offset,
  15334. y = f[v].offset,
  15335. v = r ? b.pc(h, b.vd(w, d)) : b.pc(h, b.vd(w, 0.5)),
  15336. B = r ? b.pc(k, b.vd(y, d)) : b.pc(k, b.vd(y, 0.5));
  15337. h = r ? b.we(h, b.vd(w, d)) : b.we(h, b.vd(w, 0.5));
  15338. k = r ? b.we(k, b.vd(y, d)) : b.we(k, b.vd(y, 0.5));
  15339. r ? (t.push(new b.Ub({
  15340. f: v,
  15341. s: e,
  15342. m: b.Fa(b.hg(m))
  15343. }, {
  15344. f: B,
  15345. s: e,
  15346. m: b.Fa(b.hg(m))
  15347. }, {
  15348. f: k,
  15349. s: e,
  15350. m: b.Fa(m)
  15351. }, u, t.length * s)), t.push(new b.Ub({
  15352. f: v,
  15353. s: e,
  15354. m: b.Fa(b.hg(m))
  15355. }, {
  15356. f: h,
  15357. s: e,
  15358. m: b.Fa(m)
  15359. }, {
  15360. f: k,
  15361. s: e,
  15362. m: b.Fa(m)
  15363. },
  15364. u, t.length * s))) : (t.push(new b.Ub({
  15365. f: v,
  15366. s: c,
  15367. m: b.Fa({
  15368. x: 0,
  15369. y: 0
  15370. })
  15371. }, {
  15372. f: B,
  15373. s: c,
  15374. m: b.Fa({
  15375. x: 0,
  15376. y: 0
  15377. })
  15378. }, {
  15379. f: k,
  15380. s: c,
  15381. m: b.Fa(m)
  15382. }, u, t.length * s)), t.push(new b.Ub({
  15383. f: v,
  15384. s: c,
  15385. m: b.Fa({
  15386. x: 0,
  15387. y: 0
  15388. })
  15389. }, {
  15390. f: h,
  15391. s: c,
  15392. m: b.Fa(m)
  15393. }, {
  15394. f: k,
  15395. s: c,
  15396. m: b.Fa(m)
  15397. }, u, t.length * s)))
  15398. }
  15399. this.jb = !0
  15400. }
  15401. },
  15402. Tu: function(a, c, d, e) {
  15403. c = c || this.$c;
  15404. d = d || this.gf;
  15405. null == d.a && (d.a = 255);
  15406. c *= 0.5;
  15407. if (!(0 >= c)) {
  15408. d = {
  15409. r: 0 | d.r,
  15410. g: 0 | d.g,
  15411. b: 0 | d.b,
  15412. a: 0 | d.a
  15413. };
  15414. var f = [],
  15415. g, h, k, m, p = a.length;
  15416. for (g = 0; g < p; g++) {
  15417. h = b.De(a[(g - 1 + p) % p]);
  15418. k = b.De(a[g]);
  15419. m = b.De(a[(g + 1) % p]);
  15420. var r = b.qt(b.Hp(b.pc(k, h)));
  15421. k = b.qt(b.Hp(b.pc(m,
  15422. k)));
  15423. f[g] = {
  15424. offset: b.vd(b.we(r, k), 1 / (b.YP(r, k) + 1)),
  15425. fl: k
  15426. }
  15427. }
  15428. this.Yq(3 * (3 * p - 2));
  15429. m = b.Ub.BYTES_PER_ELEMENT;
  15430. var r = this.yj,
  15431. s = this.ab;
  15432. e = e ? p : p - 1;
  15433. for (g = 0; g < e; g++) {
  15434. var u = (g + 1) % p;
  15435. h = b.De(a[g]);
  15436. k = b.De(a[u]);
  15437. var t = f[g].fl,
  15438. v = f[g].offset,
  15439. u = f[u].offset,
  15440. w = b.pc(h, b.vd(v, c));
  15441. h = b.we(h, b.vd(v, c));
  15442. v = b.we(k, b.vd(u, c));
  15443. s.push(new b.Ub({
  15444. f: w,
  15445. s: d,
  15446. m: b.Fa(b.hg(t))
  15447. }, {
  15448. f: b.pc(k, b.vd(u, c)),
  15449. s: d,
  15450. m: b.Fa(b.hg(t))
  15451. }, {
  15452. f: v,
  15453. s: d,
  15454. m: b.Fa(t)
  15455. }, r, s.length * m));
  15456. s.push(new b.Ub({
  15457. f: w,
  15458. s: d,
  15459. m: b.Fa(b.hg(t))
  15460. }, {
  15461. f: h,
  15462. s: d,
  15463. m: b.Fa(t)
  15464. }, {
  15465. f: v,
  15466. s: d,
  15467. m: b.Fa(t)
  15468. }, r, s.length *
  15469. m))
  15470. }
  15471. this.jb = !0
  15472. }
  15473. },
  15474. clear: function() {
  15475. this.ab.length = 0;
  15476. this.jb = !0
  15477. }
  15478. });
  15479. b.Od = b.A == b.U ? b.SQ : b.RQ;
  15480. b.Od.create = function() {
  15481. return new b.Od
  15482. };
  15483. b.fk = function(a) {
  15484. this.type = a;
  15485. this.fillColor = this.ig = null;
  15486. this.lineWidth = 0;
  15487. this.Jj = null;
  15488. this.lineCap = "butt";
  15489. this.cl = this.iF = this.nx = !1
  15490. };
  15491. b.Od.NH = 0;
  15492. b.Od.GT = 1;
  15493. b.Od.ak = 2;
  15494. b.ht = -1;
  15495. b.mP = function(a, c) {
  15496. a.shaderProgram = c;
  15497. var d = a.children;
  15498. if (d)
  15499. for (var e = 0; e < d.length; e++) b.mP(d[e], c)
  15500. };
  15501. b.fc = b.k.extend({
  15502. um: 0,
  15503. Ih: !1,
  15504. od: null,
  15505. cK: !1,
  15506. ctor: function(a) {
  15507. b.k.prototype.ctor.call(this);
  15508. this.od = null;
  15509. this.um = 0;
  15510. this.Ih = !1;
  15511. b.fc.prototype.da.call(this, a || null)
  15512. },
  15513. da: null,
  15514. vb: "ClippingNode",
  15515. DW: function(a) {
  15516. this.od = a;
  15517. this.um = 1;
  15518. this.Ih = !1;
  15519. b.fc.LB = !0;
  15520. b.fc.LB && (b.ht = b.l.getParameter(b.l.STENCIL_BITS), 0 >= b.ht && b.log("Stencil buffer is not enabled."), b.fc.LB = !1);
  15521. return !0
  15522. },
  15523. BW: function(a) {
  15524. this.od = a;
  15525. this.um = 1;
  15526. this.Ih = !1
  15527. },
  15528. Z: function() {
  15529. b.k.prototype.Z.call(this);
  15530. this.od.Z()
  15531. },
  15532. Mh: function() {
  15533. b.k.prototype.Mh.call(this);
  15534. this.od.Mh()
  15535. },
  15536. Xf: function() {
  15537. this.od.Xf();
  15538. b.k.prototype.Xf.call(this)
  15539. },
  15540. sb: function() {
  15541. this.od.sb();
  15542. b.k.prototype.sb.call(this)
  15543. },
  15544. R: null,
  15545. as: function(a) {
  15546. var c = a || b.l;
  15547. if (1 > b.ht) b.k.prototype.R.call(this, a);
  15548. else if (this.od && this.od.visible)
  15549. if (b.fc.sv + 1 == b.ht) b.fc.KD = !0, b.fc.KD && (b.log("Nesting more than " + b.ht + "stencils is not supported. Everything will be drawn without stencil for this node and its childs."), b.fc.KD = !1), b.k.prototype.R.call(this, a);
  15550. else {
  15551. b.fc.sv++;
  15552. var d = 1 << b.fc.sv,
  15553. e = d | d - 1,
  15554. f = c.isEnabled(c.STENCIL_TEST),
  15555. g = c.getParameter(c.STENCIL_WRITEMASK),
  15556. h = c.getParameter(c.STENCIL_FUNC),
  15557. k = c.getParameter(c.STENCIL_REF),
  15558. m = c.getParameter(c.STENCIL_VALUE_MASK),
  15559. p = c.getParameter(c.STENCIL_FAIL),
  15560. r = c.getParameter(c.STENCIL_PASS_DEPTH_FAIL),
  15561. s = c.getParameter(c.STENCIL_PASS_DEPTH_PASS);
  15562. c.enable(c.STENCIL_TEST);
  15563. c.stencilMask(d);
  15564. var u = c.getParameter(c.DEPTH_WRITEMASK);
  15565. c.depthMask(!1);
  15566. c.stencilFunc(c.NEVER, d, d);
  15567. c.stencilOp(this.Ih ? c.REPLACE : c.ZERO, c.KEEP, c.KEEP);
  15568. b.wf(b.Yg);
  15569. b.Fj();
  15570. b.dl();
  15571. b.wf(b.Xg);
  15572. b.Fj();
  15573. b.dl();
  15574. b.Fe.JM(C(-1, -1), C(1, 1), b.color(255, 255, 255, 255));
  15575. b.wf(b.Yg);
  15576. b.Ej();
  15577. b.wf(b.Xg);
  15578. b.Ej();
  15579. c.stencilFunc(c.NEVER, d, d);
  15580. c.stencilOp(this.Ih ? c.ZERO : c.REPLACE, c.KEEP, c.KEEP);
  15581. if (1 > this.um) {
  15582. var d = b.Md.nc(b.bu),
  15583. t = c.getUniformLocation(d.Lm(), b.uI);
  15584. b.RE(d.Lm());
  15585. d.dt(t, this.um);
  15586. b.mP(this.od, d)
  15587. }
  15588. b.Fj();
  15589. this.transform();
  15590. this.od.R();
  15591. b.Ej();
  15592. c.depthMask(u);
  15593. c.stencilFunc(c.EQUAL, e, e);
  15594. c.stencilOp(c.KEEP, c.KEEP, c.KEEP);
  15595. b.k.prototype.R.call(this, a);
  15596. c.stencilFunc(h, k, m);
  15597. c.stencilOp(p, r, s);
  15598. c.stencilMask(g);
  15599. f || c.disable(c.STENCIL_TEST);
  15600. b.fc.sv--
  15601. } else this.Ih && b.k.prototype.R.call(this, a)
  15602. },
  15603. pm: function(a) {
  15604. if (this.od && this.od.visible) {
  15605. a = a || b.l;
  15606. var c = a.canvas;
  15607. if (this.VA() || this.od instanceof b.N) {
  15608. var d = b.fc.rW();
  15609. d.width = c.width;
  15610. d.height = c.height;
  15611. d.getContext("2d").drawImage(c, 0, 0);
  15612. a.save();
  15613. b.k.prototype.R.call(this, a);
  15614. a.globalCompositeOperation = this.Ih ? "destination-out" : "destination-in";
  15615. this.transform(a);
  15616. this.od.R();
  15617. a.restore();
  15618. a.save();
  15619. a.setTransform(1, 0, 0, 1, 0, 0);
  15620. a.globalCompositeOperation = "destination-over";
  15621. a.drawImage(d, 0, 0)
  15622. } else {
  15623. var d =
  15624. this.t,
  15625. e;
  15626. a.save();
  15627. this.transform(a);
  15628. this.od.R(a);
  15629. this.Ih && (a.save(), a.setTransform(1, 0, 0, 1, 0, 0), a.moveTo(0, 0), a.lineTo(0, c.height), a.lineTo(c.width, c.height), a.lineTo(c.width, 0), a.lineTo(0, 0), a.restore());
  15630. a.clip();
  15631. this.VA(!0);
  15632. var f = d.length;
  15633. if (0 < f) {
  15634. this.Wc();
  15635. for (c = 0; c < f; c++)
  15636. if (e = d[c], 0 > e.Bb) e.R(a);
  15637. else break;
  15638. for (this.Y(a); c < f; c++) d[c].R(a)
  15639. } else this.Y(a);
  15640. this.VA(!1)
  15641. }
  15642. a.restore()
  15643. } else this.Ih && b.k.prototype.R.call(this, a)
  15644. },
  15645. W0: function() {
  15646. return this.od
  15647. },
  15648. cG: null,
  15649. lY: function(a) {
  15650. this.od = a
  15651. },
  15652. kY: function(a) {
  15653. this.od =
  15654. a;
  15655. var c = b.l;
  15656. !(a instanceof b.N) && a instanceof b.Od && (a.Y = function() {
  15657. var d = b.view.ka,
  15658. e = b.view.La;
  15659. c.beginPath();
  15660. for (var f = 0; f < a.ab.length; f++) {
  15661. var g = a.ab[f].ig,
  15662. h = g[0];
  15663. c.moveTo(h.x * d, -h.y * e);
  15664. for (var h = 1, k = g.length; h < k; h++) c.lineTo(g[h].x * d, -g[h].y * e)
  15665. }
  15666. })
  15667. },
  15668. Zaa: function() {
  15669. return this.um
  15670. },
  15671. iia: function(a) {
  15672. this.um = a
  15673. },
  15674. Yda: function() {
  15675. return this.Ih
  15676. },
  15677. Sia: function(a) {
  15678. this.Ih = a
  15679. },
  15680. VA: function(a) {
  15681. if (!0 === a || !1 === a) b.fc.prototype.cK = a;
  15682. return b.fc.prototype.cK
  15683. }
  15684. });
  15685. n = b.fc.prototype;
  15686. b.A === b.U ? (n.da = n.DW, n.R = n.as, n.cG = n.lY) : (n.da = n.BW, n.R = n.pm, n.cG = n.kY);
  15687. b.i(n, "stencil", n.W0, n.cG);
  15688. b.fc.LB = null;
  15689. b.fc.KD = null;
  15690. b.fc.sv = -1;
  15691. b.fc.vL = null;
  15692. b.fc.rW = function() {
  15693. return b.fc.vL || (b.fc.vL = document.createElement("canvas"))
  15694. };
  15695. b.fc.create = function(a) {
  15696. return new b.fc(a)
  15697. };
  15698. b.kn = b.oa.extend({
  15699. kk: !1,
  15700. qi: 0,
  15701. W: null,
  15702. G: null,
  15703. Cg: null,
  15704. $n: null,
  15705. Rl: !1,
  15706. Eb: null,
  15707. fB: 0,
  15708. jb: !1,
  15709. ctor: function(a, c, d) {
  15710. b.ZA();
  15711. this.kk = !1;
  15712. this.qi = 0;
  15713. this.G = this.W = null;
  15714. this.Cg = C(0, 0);
  15715. this.$n = null;
  15716. this.Rl = !1;
  15717. this.Eb = null;
  15718. this.fB = 0;
  15719. this.jb = !1;
  15720. void 0 !== a && this.jx(a, c, d)
  15721. },
  15722. vf: function() {
  15723. return this.kk
  15724. },
  15725. setActive: function(a) {
  15726. this.kk = a;
  15727. a || (a = b.I, a.Xm(a.pi))
  15728. },
  15729. Oca: function() {
  15730. return this.qi
  15731. },
  15732. t4: function(a) {
  15733. this.qi = a
  15734. },
  15735. k0: function() {
  15736. return N(this.W.width, this.W.height)
  15737. },
  15738. Pia: function(a) {
  15739. this.W.width = parseInt(a.width);
  15740. this.W.height =
  15741. parseInt(a.height)
  15742. },
  15743. KE: function() {
  15744. return C(this.Cg.x, this.Cg.y)
  15745. },
  15746. Dja: function(a) {
  15747. this.Cg.x = a.x;
  15748. this.Cg.y = a.y
  15749. },
  15750. lea: function() {
  15751. return this.Rl
  15752. },
  15753. Kja: function(a) {
  15754. this.Rl != a && (this.Rl = a, this.Cw())
  15755. },
  15756. jx: function(a, c, d) {
  15757. if (!c) {
  15758. var e = b.I.ws(),
  15759. f = b.Xj(e.width),
  15760. g = b.Xj(e.height),
  15761. h = new Uint8Array(f * g * 4);
  15762. if (!h) return b.log("cocos2d: CCGrid: not enough memory."), !1;
  15763. c = new b.aa;
  15764. c.Bs(h, b.aa.Vi, f, g, e);
  15765. if (!c) return b.log("cocos2d: CCGrid: error creating texture"), !1
  15766. }
  15767. this.kk = !1;
  15768. this.qi = 0;
  15769. this.W = a;
  15770. this.G = c;
  15771. this.Rl = d || !1;
  15772. this.Cg.x = this.G.width / a.width;
  15773. this.Cg.y = this.G.height / a.height;
  15774. this.$n = new b.hR;
  15775. if (!this.$n) return !1;
  15776. this.$n.g1(this.G);
  15777. this.Eb = b.Md.nc(b.tq);
  15778. this.Cw();
  15779. return !0
  15780. },
  15781. is: function() {
  15782. this.fB = b.I.pi;
  15783. this.I3();
  15784. this.$n.wZ(this.G)
  15785. },
  15786. fs: function(a) {
  15787. this.$n.cZ(this.G);
  15788. b.I.Xm(this.fB);
  15789. if (a.Jm().hF()) {
  15790. var c = a.Nw();
  15791. b.jp(c.x, c.y);
  15792. a.Jm().Is();
  15793. b.jp(-c.x, -c.y)
  15794. }
  15795. b.te(this.G);
  15796. this.TD()
  15797. },
  15798. TD: function() {
  15799. b.log("cc.GridBase.blit(): Shall be overridden in subclass.")
  15800. },
  15801. LF: function() {
  15802. b.log("cc.GridBase.reuse(): Shall be overridden in subclass.")
  15803. },
  15804. Cw: function() {
  15805. b.log("cc.GridBase.calculateVertexPoints(): Shall be overridden in subclass.")
  15806. },
  15807. I3: function() {
  15808. var a = b.I.ws();
  15809. b.l.viewport(0, 0, a.width, a.height);
  15810. b.wf(b.Yg);
  15811. b.dl();
  15812. var c = new b.ba;
  15813. b.nF(c, 0, a.width, 0, a.height, -1, 1);
  15814. b.ip(c);
  15815. b.wf(b.Xg);
  15816. b.dl();
  15817. b.nP()
  15818. }
  15819. });
  15820. b.kn.create = function(a, c, d) {
  15821. return new b.kn(a, c, d)
  15822. };
  15823. b.dz = b.kn.extend({
  15824. Eg: null,
  15825. Pa: null,
  15826. jj: null,
  15827. lb: null,
  15828. Of: null,
  15829. dd: null,
  15830. If: null,
  15831. ctor: function(a, c, d) {
  15832. b.kn.prototype.ctor.call(this);
  15833. this.If = this.dd = this.Of = this.lb = this.jj = this.Pa = this.Eg = null;
  15834. void 0 !== a && this.jx(a, c, d)
  15835. },
  15836. $P: function(a) {
  15837. a.x === (0 | a.x) && a.y === (0 | a.y) || b.log("cc.Grid3D.vertex() : Numbers must be integers");
  15838. a = 0 | 3 * (a.x * (this.W.height + 1) + a.y);
  15839. var c = this.Pa;
  15840. return new b.uc(c[a], c[a + 1], c[a + 2])
  15841. },
  15842. Mc: function(a) {
  15843. a.x === (0 | a.x) && a.y === (0 | a.y) || b.log("cc.Grid3D.originalVertex() : Numbers must be integers");
  15844. a = 0 | 3 * (a.x * (this.W.height + 1) + a.y);
  15845. var c = this.jj;
  15846. return new b.uc(c[a], c[a + 1], c[a + 2])
  15847. },
  15848. Ld: function(a, c) {
  15849. a.x === (0 | a.x) && a.y === (0 | a.y) || b.log("cc.Grid3D.setVertex() : Numbers must be integers");
  15850. var d = 0 | 3 * (a.x * (this.W.height + 1) + a.y),
  15851. e = this.Pa;
  15852. e[d] = c.x;
  15853. e[d + 1] = c.y;
  15854. e[d + 2] = c.z;
  15855. this.jb = !0
  15856. },
  15857. TD: function() {
  15858. var a = this.W.width * this.W.height;
  15859. b.Jc(b.Qd | b.tn);
  15860. this.Eb.Oc();
  15861. this.Eb.ft();
  15862. var c = b.l,
  15863. d = this.jb;
  15864. c.bindBuffer(c.ARRAY_BUFFER, this.dd);
  15865. d && c.bufferData(c.ARRAY_BUFFER, this.Pa, c.DYNAMIC_DRAW);
  15866. c.vertexAttribPointer(b.qb,
  15867. 3, c.FLOAT, !1, 0, 0);
  15868. c.bindBuffer(c.ARRAY_BUFFER, this.Of);
  15869. d && c.bufferData(c.ARRAY_BUFFER, this.Eg, c.DYNAMIC_DRAW);
  15870. c.vertexAttribPointer(b.zd, 2, c.FLOAT, !1, 0, 0);
  15871. c.bindBuffer(c.ELEMENT_ARRAY_BUFFER, this.If);
  15872. d && c.bufferData(c.ELEMENT_ARRAY_BUFFER, this.lb, c.STATIC_DRAW);
  15873. c.drawElements(c.TRIANGLES, 6 * a, c.UNSIGNED_SHORT, 0);
  15874. d && (this.jb = !1);
  15875. b.Vf()
  15876. },
  15877. LF: function() {
  15878. if (0 < this.qi) {
  15879. for (var a = this.jj, c = this.Pa, d = 0, e = this.Pa.length; d < e; d++) a[d] = c[d];
  15880. --this.qi
  15881. }
  15882. },
  15883. Cw: function() {
  15884. var a = b.l,
  15885. c = this.G.pixelsWidth,
  15886. d = this.G.pixelsHeight,
  15887. e = this.G.O.height,
  15888. f = this.W,
  15889. g = (f.width + 1) * (f.height + 1);
  15890. this.Pa = new Float32Array(3 * g);
  15891. this.Eg = new Float32Array(2 * g);
  15892. this.lb = new Uint16Array(f.width * f.height * 6);
  15893. this.dd && a.deleteBuffer(this.dd);
  15894. this.dd = a.createBuffer();
  15895. this.Of && a.deleteBuffer(this.Of);
  15896. this.Of = a.createBuffer();
  15897. this.If && a.deleteBuffer(this.If);
  15898. this.If = a.createBuffer();
  15899. for (var h, k, m = this.lb, p = this.Eg, r = this.Rl, s = this.Pa, g = 0; g < f.width; ++g)
  15900. for (h = 0; h < f.height; ++h) {
  15901. var u = h * f.width + g;
  15902. k = g * this.Cg.x;
  15903. var t = k + this.Cg.x,
  15904. v = h * this.Cg.y,
  15905. w = v + this.Cg.y,
  15906. y = g * (f.height + 1) + h,
  15907. B = (g + 1) * (f.height + 1) + h,
  15908. G = (g + 1) * (f.height + 1) + (h + 1),
  15909. I = g * (f.height + 1) + (h + 1);
  15910. m[6 * u] = y;
  15911. m[6 * u + 1] = B;
  15912. m[6 * u + 2] = I;
  15913. m[6 * u + 3] = B;
  15914. m[6 * u + 4] = G;
  15915. m[6 * u + 5] = I;
  15916. var u = [3 * y, 3 * B, 3 * G, 3 * I],
  15917. E = [{
  15918. x: k,
  15919. y: v,
  15920. z: 0
  15921. }, {
  15922. x: t,
  15923. y: v,
  15924. z: 0
  15925. }, {
  15926. x: t,
  15927. y: w,
  15928. z: 0
  15929. }, {
  15930. x: k,
  15931. y: w,
  15932. z: 0
  15933. }],
  15934. y = [2 * y, 2 * B, 2 * G, 2 * I],
  15935. t = [C(k, v), C(t, v), C(t, w), C(k, w)];
  15936. for (k = 0; 4 > k; ++k) s[u[k]] = E[k].x, s[u[k] + 1] = E[k].y, s[u[k] + 2] = E[k].z, p[y[k]] = t[k].x / c, p[y[k] + 1] = r ? (e - t[k].y) / d : t[k].y / d
  15937. }
  15938. this.jj = new Float32Array(this.Pa);
  15939. a.bindBuffer(a.ARRAY_BUFFER, this.dd);
  15940. a.bufferData(a.ARRAY_BUFFER,
  15941. this.Pa, a.DYNAMIC_DRAW);
  15942. a.bindBuffer(a.ARRAY_BUFFER, this.Of);
  15943. a.bufferData(a.ARRAY_BUFFER, this.Eg, a.DYNAMIC_DRAW);
  15944. a.bindBuffer(a.ELEMENT_ARRAY_BUFFER, this.If);
  15945. a.bufferData(a.ELEMENT_ARRAY_BUFFER, this.lb, a.STATIC_DRAW);
  15946. this.jb = !0
  15947. }
  15948. });
  15949. b.dz.create = function(a, c, d) {
  15950. return new b.dz(a, c, d)
  15951. };
  15952. b.gA = b.kn.extend({
  15953. Eg: null,
  15954. Pa: null,
  15955. jj: null,
  15956. lb: null,
  15957. Of: null,
  15958. dd: null,
  15959. If: null,
  15960. ctor: function(a, c, d) {
  15961. b.kn.prototype.ctor.call(this);
  15962. this.If = this.dd = this.Of = this.lb = this.jj = this.Pa = this.Eg = null;
  15963. void 0 !== a && this.jx(a, c, d)
  15964. },
  15965. KP: function(a) {
  15966. a.x === (0 | a.x) && a.y === (0 | a.y) || b.log("cc.TiledGrid3D.tile() : Numbers must be integers");
  15967. a = 12 * (this.W.height * a.x + a.y);
  15968. var c = this.Pa;
  15969. return new b.Xt(new b.uc(c[a], c[a + 1], c[a + 2]), new b.uc(c[a + 3], c[a + 4], c[a + 5]), new b.uc(c[a + 6], c[a + 7], c[a + 8]), new b.uc(c[a + 9], c[a + 10], c[a + 11]))
  15970. },
  15971. Yf: function(a) {
  15972. a.x === (0 | a.x) && a.y === (0 | a.y) || b.log("cc.TiledGrid3D.originalTile() : Numbers must be integers");
  15973. a = 12 * (this.W.height * a.x + a.y);
  15974. var c = this.jj;
  15975. return new b.Xt(new b.uc(c[a], c[a + 1], c[a + 2]), new b.uc(c[a + 3], c[a + 4], c[a + 5]), new b.uc(c[a + 6], c[a + 7], c[a + 8]), new b.uc(c[a + 9], c[a + 10], c[a + 11]))
  15976. },
  15977. Xe: function(a, c) {
  15978. a.x === (0 | a.x) && a.y === (0 | a.y) || b.log("cc.TiledGrid3D.setTile() : Numbers must be integers");
  15979. var d = 12 * (this.W.height * a.x + a.y),
  15980. e = this.Pa;
  15981. e[d] = c.C.x;
  15982. e[d + 1] = c.C.y;
  15983. e[d + 2] = c.C.z;
  15984. e[d + 3] = c.L.x;
  15985. e[d +
  15986. 4] = c.L.y;
  15987. e[d + 5] = c.L.z;
  15988. e[d + 6] = c.K.x;
  15989. e[d + 7] = c.K.y;
  15990. e[d + 8] = c.K.z;
  15991. e[d + 9] = c.J.x;
  15992. e[d + 10] = c.J.y;
  15993. e[d + 11] = c.J.z;
  15994. this.jb = !0
  15995. },
  15996. TD: function() {
  15997. var a = this.W.width * this.W.height;
  15998. this.Eb.Oc();
  15999. this.Eb.ft();
  16000. var c = b.l,
  16001. d = this.jb;
  16002. b.Jc(b.Qd | b.tn);
  16003. c.bindBuffer(c.ARRAY_BUFFER, this.dd);
  16004. d && c.bufferData(c.ARRAY_BUFFER, this.Pa, c.DYNAMIC_DRAW);
  16005. c.vertexAttribPointer(b.qb, 3, c.FLOAT, !1, 0, this.Pa);
  16006. c.bindBuffer(c.ARRAY_BUFFER, this.Of);
  16007. d && c.bufferData(c.ARRAY_BUFFER, this.Eg, c.DYNAMIC_DRAW);
  16008. c.vertexAttribPointer(b.zd, 2, c.FLOAT, !1, 0, this.Eg);
  16009. c.bindBuffer(c.ELEMENT_ARRAY_BUFFER, this.If);
  16010. d && c.bufferData(c.ELEMENT_ARRAY_BUFFER, this.lb, c.STATIC_DRAW);
  16011. c.drawElements(c.TRIANGLES, 6 * a, c.UNSIGNED_SHORT, 0);
  16012. d && (this.jb = !1);
  16013. b.Vf()
  16014. },
  16015. LF: function() {
  16016. if (0 < this.qi) {
  16017. for (var a = this.Pa, c = this.jj, d = 0; d < a.length; d++) c[d] = a[d];
  16018. --this.qi
  16019. }
  16020. },
  16021. Cw: function() {
  16022. var a = this.G.pixelsWidth,
  16023. c = this.G.pixelsHeight,
  16024. d = this.G.O.height,
  16025. e = this.W,
  16026. f = e.width * e.height;
  16027. this.Pa = new Float32Array(12 * f);
  16028. this.Eg = new Float32Array(8 * f);
  16029. this.lb = new Uint16Array(6 * f);
  16030. var g = b.l;
  16031. this.dd && g.deleteBuffer(this.dd);
  16032. this.dd = g.createBuffer();
  16033. this.Of && g.deleteBuffer(this.Of);
  16034. this.Of = g.createBuffer();
  16035. this.If && g.deleteBuffer(this.If);
  16036. this.If = g.createBuffer();
  16037. var h, k, m = 0,
  16038. p = this.Cg,
  16039. r = this.Pa,
  16040. s = this.Eg,
  16041. u = this.Rl;
  16042. for (h = 0; h < e.width; h++)
  16043. for (k = 0; k < e.height; k++) {
  16044. var t = h * p.x,
  16045. v = t + p.x,
  16046. w = k * p.y,
  16047. y = w + p.y;
  16048. r[12 * m] = t;
  16049. r[12 * m + 1] = w;
  16050. r[12 * m + 2] = 0;
  16051. r[12 * m + 3] = v;
  16052. r[12 * m + 4] = w;
  16053. r[12 * m + 5] = 0;
  16054. r[12 * m + 6] = t;
  16055. r[12 * m + 7] = y;
  16056. r[12 * m + 8] = 0;
  16057. r[12 * m + 9] = v;
  16058. r[12 * m + 10] = y;
  16059. r[12 * m + 11] = 0;
  16060. var B = w,
  16061. G = y;
  16062. u && (B = d - w, G = d - y);
  16063. s[8 * m] = t / a;
  16064. s[8 * m + 1] = B / c;
  16065. s[8 * m + 2] = v / a;
  16066. s[8 * m + 3] = B / c;
  16067. s[8 *
  16068. m + 4] = t / a;
  16069. s[8 * m + 5] = G / c;
  16070. s[8 * m + 6] = v / a;
  16071. s[8 * m + 7] = G / c;
  16072. m++
  16073. }
  16074. a = this.lb;
  16075. 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;
  16076. this.jj = new Float32Array(this.Pa);
  16077. g.bindBuffer(g.ARRAY_BUFFER, this.dd);
  16078. g.bufferData(g.ARRAY_BUFFER, this.Pa, g.DYNAMIC_DRAW);
  16079. g.bindBuffer(g.ARRAY_BUFFER, this.Of);
  16080. g.bufferData(g.ARRAY_BUFFER, this.Eg, g.DYNAMIC_DRAW);
  16081. g.bindBuffer(g.ELEMENT_ARRAY_BUFFER, this.If);
  16082. g.bufferData(g.ELEMENT_ARRAY_BUFFER, this.lb, g.DYNAMIC_DRAW);
  16083. this.jb = !0
  16084. }
  16085. });
  16086. b.gA.create = function(a, c, d) {
  16087. return new b.gA(a, c, d)
  16088. };
  16089. b.hR = b.oa.extend({
  16090. qu: null,
  16091. ki: null,
  16092. GK: null,
  16093. Zn: null,
  16094. ctor: function() {
  16095. b.ZA();
  16096. this.Zn = b.l;
  16097. this.GK = [0, 0, 0, 0];
  16098. this.ki = null;
  16099. this.qu = this.Zn.createFramebuffer()
  16100. },
  16101. g1: function(a) {
  16102. var c = this.Zn;
  16103. this.ki = c.getParameter(c.FRAMEBUFFER_BINDING);
  16104. c.bindFramebuffer(c.FRAMEBUFFER, this.qu);
  16105. c.framebufferTexture2D(c.FRAMEBUFFER, c.COLOR_ATTACHMENT0, c.TEXTURE_2D, a.Zd, 0);
  16106. c.checkFramebufferStatus(c.FRAMEBUFFER) != c.FRAMEBUFFER_COMPLETE && b.log("Frame Grabber: could not attach texture to frmaebuffer");
  16107. c.bindFramebuffer(c.FRAMEBUFFER,
  16108. this.ki)
  16109. },
  16110. wZ: function() {
  16111. var a = this.Zn;
  16112. this.ki = a.getParameter(a.FRAMEBUFFER_BINDING);
  16113. a.bindFramebuffer(a.FRAMEBUFFER, this.qu);
  16114. this.GK = a.getParameter(a.COLOR_CLEAR_VALUE);
  16115. a.clearColor(0, 0, 0, 0);
  16116. a.clear(a.COLOR_BUFFER_BIT | a.DEPTH_BUFFER_BIT)
  16117. },
  16118. cZ: function() {
  16119. var a = this.Zn;
  16120. a.bindFramebuffer(a.FRAMEBUFFER, this.ki);
  16121. a.colorMask(!0, !0, !0, !0)
  16122. },
  16123. M$: function() {
  16124. this.Zn.deleteFramebuffer(this.qu)
  16125. }
  16126. });
  16127. b.dn = -1;
  16128. b.wd = b.oa.extend({
  16129. originalTarget: null,
  16130. target: null,
  16131. tag: b.dn,
  16132. ctor: function() {
  16133. this.target = this.originalTarget = null;
  16134. this.tag = b.dn
  16135. },
  16136. copy: function() {
  16137. b.log("copy is deprecated. Please use clone instead.");
  16138. return this.j()
  16139. },
  16140. j: function() {
  16141. var a = new b.wd;
  16142. a.originalTarget = null;
  16143. a.target = null;
  16144. a.tag = this.tag;
  16145. return a
  16146. },
  16147. Jg: function() {
  16148. return !0
  16149. },
  16150. v: function(a) {
  16151. this.target = this.originalTarget = a
  16152. },
  16153. stop: function() {
  16154. this.target = null
  16155. },
  16156. step: function() {
  16157. b.log("[Action step]. override me")
  16158. },
  16159. update: function() {
  16160. b.log("[Action update]. override me")
  16161. },
  16162. eda: function() {
  16163. return this.target
  16164. },
  16165. dG: function(a) {
  16166. this.target = a
  16167. },
  16168. xca: function() {
  16169. return this.originalTarget
  16170. },
  16171. kja: function(a) {
  16172. this.originalTarget = a
  16173. },
  16174. LE: function() {
  16175. return this.tag
  16176. },
  16177. qy: function(a) {
  16178. this.tag = a
  16179. },
  16180. $x: function() {},
  16181. Ki: function() {}
  16182. });
  16183. b.action = function() {
  16184. return new b.wd
  16185. };
  16186. b.wd.create = b.action;
  16187. b.Ui = b.wd.extend({
  16188. o: 0,
  16189. ctor: function() {
  16190. b.wd.prototype.ctor.call(this);
  16191. this.o = 0
  16192. },
  16193. ap: function() {
  16194. return this.o * (this.ac || 1)
  16195. },
  16196. Zf: function(a) {
  16197. this.o = a
  16198. },
  16199. reverse: function() {
  16200. b.log("cocos2d: FiniteTimeAction#reverse: Implement me");
  16201. return null
  16202. },
  16203. j: function() {
  16204. return new b.Ui
  16205. }
  16206. });
  16207. b.du = b.wd.extend({
  16208. me: 0,
  16209. mb: null,
  16210. ctor: function(a, c) {
  16211. b.wd.prototype.ctor.call(this);
  16212. this.me = 0;
  16213. this.mb = null;
  16214. a && this.$(a, c)
  16215. },
  16216. Uw: function() {
  16217. return this.me
  16218. },
  16219. Ve: function(a) {
  16220. this.me = a
  16221. },
  16222. $: function(a, c) {
  16223. if (!a) throw "cc.Speed.initWithAction(): action must be non nil";
  16224. this.mb = a;
  16225. this.me = c;
  16226. return !0
  16227. },
  16228. j: function() {
  16229. var a = new b.du;
  16230. a.$(this.mb.j(), this.me);
  16231. return a
  16232. },
  16233. v: function(a) {
  16234. b.wd.prototype.v.call(this, a);
  16235. this.mb.v(a)
  16236. },
  16237. stop: function() {
  16238. this.mb.stop();
  16239. b.wd.prototype.stop.call(this)
  16240. },
  16241. step: function(a) {
  16242. this.mb.step(a *
  16243. this.me)
  16244. },
  16245. Jg: function() {
  16246. return this.mb.Jg()
  16247. },
  16248. reverse: function() {
  16249. return b.du.create(this.mb.reverse(), this.me)
  16250. },
  16251. gP: function(a) {
  16252. this.mb != a && (this.mb = a)
  16253. },
  16254. EE: function() {
  16255. return this.mb
  16256. }
  16257. });
  16258. b.speed = function(a, c) {
  16259. return new b.du(a, c)
  16260. };
  16261. b.du.create = b.speed;
  16262. b.cz = b.wd.extend({
  16263. Vn: null,
  16264. Bn: !1,
  16265. Fu: !1,
  16266. iv: null,
  16267. br: null,
  16268. Om: 0,
  16269. Tm: 0,
  16270. Zm: 0,
  16271. vm: 0,
  16272. ND: null,
  16273. ctor: function(a, c) {
  16274. b.wd.prototype.ctor.call(this);
  16275. this.Vn = null;
  16276. this.Fu = this.Bn = !1;
  16277. this.br = this.iv = null;
  16278. this.vm = this.Zm = this.Tm = this.Om = 0;
  16279. this.ND = O(0, 0, 0, 0);
  16280. a && (c ? this.hp(a, c) : this.hp(a))
  16281. },
  16282. j: function() {
  16283. var a = new b.cz,
  16284. c = this.ND;
  16285. a.hp(this.Vn, new b.xH(c.x, c.y, c.width, c.height));
  16286. return a
  16287. },
  16288. Tda: function() {
  16289. return this.Bn
  16290. },
  16291. mia: function(a) {
  16292. this.Bn = a
  16293. },
  16294. hp: function(a, c) {
  16295. if (!a) throw "cc.Follow.initWithAction(): followedNode must be non nil";
  16296. c = c || O(0, 0, 0, 0);
  16297. this.Vn = a;
  16298. this.ND = c;
  16299. this.Bn = !b.zC(c);
  16300. this.Fu = !1;
  16301. var d = b.I.Aa();
  16302. this.br = C(d.width, d.height);
  16303. this.iv = b.Ii(this.br, 0.5);
  16304. this.Bn && (this.Om = -(c.x + c.width - this.br.x), this.Tm = -c.x, this.Zm = -c.y, this.vm = -(c.y + c.height - this.br.y), this.Tm < this.Om && (this.Tm = this.Om = (this.Om + this.Tm) / 2), this.Zm < this.vm && (this.Zm = this.vm = (this.Zm + this.vm) / 2), this.Zm == this.vm && this.Om == this.Tm && (this.Fu = !0));
  16305. return !0
  16306. },
  16307. step: function() {
  16308. var a = this.Vn.x,
  16309. c = this.Vn.y,
  16310. a = this.iv.x - a,
  16311. c = this.iv.y - c;
  16312. this.Bn ? this.Fu || this.target.P(b.Vc(a,
  16313. this.Om, this.Tm), b.Vc(c, this.vm, this.Zm)) : this.target.P(a, c)
  16314. },
  16315. Jg: function() {
  16316. return !this.Vn.running
  16317. },
  16318. stop: function() {
  16319. this.target = null;
  16320. b.wd.prototype.stop.call(this)
  16321. }
  16322. });
  16323. b.M_ = function(a, c) {
  16324. return new b.cz(a, c)
  16325. };
  16326. b.cz.create = b.M_;
  16327. b.u = b.Ui.extend({
  16328. kb: 0,
  16329. dv: !1,
  16330. vg: null,
  16331. ac: 1,
  16332. Cr: !1,
  16333. so: !1,
  16334. me: 1,
  16335. Ir: !1,
  16336. ctor: function(a) {
  16337. this.ac = this.me = 1;
  16338. this.Cr = !1;
  16339. this.MAX_VALUE = 2;
  16340. this.Ir = this.so = !1;
  16341. b.Ui.prototype.ctor.call(this);
  16342. void 0 !== a && this.d(a)
  16343. },
  16344. Dba: function() {
  16345. return this.kb
  16346. },
  16347. d: function(a) {
  16348. this.o = 0 === a ? b.Mt : a;
  16349. this.kb = 0;
  16350. return this.dv = !0
  16351. },
  16352. Jg: function() {
  16353. return this.kb >= this.o
  16354. },
  16355. ua: function(a) {
  16356. a.Cr = this.Cr;
  16357. a.me = this.me;
  16358. a.ac = this.ac;
  16359. a.vg = this.vg;
  16360. a.Ir = this.Ir;
  16361. a.so = this.so
  16362. },
  16363. ke: function(a) {
  16364. if (this.vg) {
  16365. a.vg = [];
  16366. for (var c = 0; c < this.vg.length; c++) a.vg.push(this.vg[c].reverse())
  16367. }
  16368. },
  16369. j: function() {
  16370. var a = new b.u(this.o);
  16371. this.ua(a);
  16372. return a
  16373. },
  16374. Qa: function(a) {
  16375. this.vg ? this.vg.length = 0 : this.vg = [];
  16376. for (var c = 0; c < arguments.length; c++) this.vg.push(arguments[c]);
  16377. return this
  16378. },
  16379. kd: function(a) {
  16380. var c = this.vg;
  16381. if (!c || 0 === c.length) return a;
  16382. for (var d = 0, e = c.length; d < e; d++) a = c[d].Qa(a);
  16383. return a
  16384. },
  16385. step: function(a) {
  16386. this.dv ? (this.dv = !1, this.kb = 0) : this.kb += a;
  16387. a = this.kb / (1.192092896E-7 < this.o ? this.o : 1.192092896E-7);
  16388. a = 1 > a ? a : 1;
  16389. this.update(0 < a ? a : 0);
  16390. this.so && 1 < this.ac && this.Jg() && (this.Cr || this.ac--, this.v(this.target),
  16391. this.step(this.kb - this.o))
  16392. },
  16393. v: function(a) {
  16394. b.wd.prototype.v.call(this, a);
  16395. this.kb = 0;
  16396. this.dv = !0
  16397. },
  16398. reverse: function() {
  16399. b.log("cc.IntervalAction: reverse not implemented.");
  16400. return null
  16401. },
  16402. Vm: function() {
  16403. b.log("cc.ActionInterval.setAmplitudeRate(): it should be overridden in subclass.")
  16404. },
  16405. Im: function() {
  16406. b.log("cc.ActionInterval.getAmplitudeRate(): it should be overridden in subclass.");
  16407. return 0
  16408. },
  16409. speed: function(a) {
  16410. if (0 >= a) return b.log("The speed parameter error"), this;
  16411. this.Ir = !0;
  16412. this.me *= a;
  16413. return this
  16414. },
  16415. Uw: function() {
  16416. return this.me
  16417. },
  16418. Ve: function(a) {
  16419. this.me = a;
  16420. return this
  16421. },
  16422. repeat: function(a) {
  16423. a = Math.round(a);
  16424. if (isNaN(a) || 1 > a) return b.log("The repeat parameter error"), this;
  16425. this.so = !0;
  16426. this.ac *= a;
  16427. return this
  16428. },
  16429. Yx: function() {
  16430. this.so = !0;
  16431. this.ac = this.MAX_VALUE;
  16432. this.Cr = !0;
  16433. return this
  16434. }
  16435. });
  16436. b.WY = function(a) {
  16437. return new b.u(a)
  16438. };
  16439. b.u.create = b.WY;
  16440. b.Ka = b.u.extend({
  16441. $h: null,
  16442. zL: null,
  16443. or: 0,
  16444. ctor: function(a) {
  16445. b.u.prototype.ctor.call(this);
  16446. this.$h = [];
  16447. var c = a instanceof Array ? a : arguments,
  16448. d = c.length - 1;
  16449. 0 <= d && null == c[d] && b.log("parameters should not be ending with null in Javascript");
  16450. if (0 <= d) {
  16451. for (var e = c[0], f = 1; f < d; f++) c[f] && (e = b.Ka.Xi(e, c[f]));
  16452. this.Mm(e, c[d])
  16453. }
  16454. },
  16455. Mm: function(a, c) {
  16456. if (!a || !c) throw "cc.Sequence.initWithTwoActions(): arguments must all be non nil";
  16457. this.d(a.o + c.o);
  16458. this.$h[0] = a;
  16459. this.$h[1] = c;
  16460. return !0
  16461. },
  16462. j: function() {
  16463. var a = new b.Ka;
  16464. this.ua(a);
  16465. a.Mm(this.$h[0].j(),
  16466. this.$h[1].j());
  16467. return a
  16468. },
  16469. v: function(a) {
  16470. b.u.prototype.v.call(this, a);
  16471. this.zL = this.$h[0].o / this.o;
  16472. this.or = -1
  16473. },
  16474. stop: function() {
  16475. -1 !== this.or && this.$h[this.or].stop();
  16476. b.wd.prototype.stop.call(this)
  16477. },
  16478. update: function(a) {
  16479. a = this.kd(a);
  16480. var c = 0,
  16481. d = this.zL,
  16482. e = this.$h,
  16483. f = this.or;
  16484. a < d ? (a = 0 !== d ? a / d : 1, 0 === c && 1 === f && (e[1].update(0), e[1].stop())) : (c = 1, a = 1 === d ? 1 : (a - d) / (1 - d), -1 === f && (e[0].v(this.target), e[0].update(1), e[0].stop()), f || (e[0].update(1), e[0].stop()));
  16485. f === c && e[c].Jg() || (f !== c && e[c].v(this.target), e[c].update(a),
  16486. this.or = c)
  16487. },
  16488. reverse: function() {
  16489. var a = b.Ka.Xi(this.$h[1].reverse(), this.$h[0].reverse());
  16490. this.ua(a);
  16491. this.ke(a);
  16492. return a
  16493. }
  16494. });
  16495. b.oc = function(a) {
  16496. var c = a instanceof Array ? a : arguments;
  16497. 0 < c.length && null == c[c.length - 1] && b.log("parameters should not be ending with null in Javascript");
  16498. for (var d = c[0], e = 1; e < c.length; e++) c[e] && (d = b.Ka.Xi(d, c[e]));
  16499. return d
  16500. };
  16501. b.Ka.create = b.oc;
  16502. b.Ka.Xi = function(a, c) {
  16503. var d = new b.Ka;
  16504. d.Mm(a, c);
  16505. return d
  16506. };
  16507. b.Jz = b.u.extend({
  16508. ac: 0,
  16509. Tk: 0,
  16510. YB: 0,
  16511. JI: !1,
  16512. mb: null,
  16513. ctor: function(a, c) {
  16514. b.u.prototype.ctor.call(this);
  16515. void 0 !== c && this.$(a, c)
  16516. },
  16517. $: function(a, c) {
  16518. return this.d(a.o * c) ? (this.ac = c, this.mb = a, a instanceof b.xe && (this.JI = !0, this.ac -= 1), this.Tk = 0, !0) : !1
  16519. },
  16520. j: function() {
  16521. var a = new b.Jz;
  16522. this.ua(a);
  16523. a.$(this.mb.j(), this.ac);
  16524. return a
  16525. },
  16526. v: function(a) {
  16527. this.Tk = 0;
  16528. this.YB = this.mb.o / this.o;
  16529. b.u.prototype.v.call(this, a);
  16530. this.mb.v(a)
  16531. },
  16532. stop: function() {
  16533. this.mb.stop();
  16534. b.wd.prototype.stop.call(this)
  16535. },
  16536. update: function(a) {
  16537. a = this.kd(a);
  16538. var c =
  16539. this.mb,
  16540. d = this.o,
  16541. e = this.ac,
  16542. f = this.YB;
  16543. if (a >= f) {
  16544. for (; a > f && this.Tk < e;) c.update(1), this.Tk++, c.stop(), c.v(this.target), this.YB = f += c.o / d;
  16545. 1 <= a && this.Tk < e && this.Tk++;
  16546. this.JI || (this.Tk === e ? (c.update(1), c.stop()) : c.update(a - (f - c.o / d)))
  16547. } else c.update(a * e % 1)
  16548. },
  16549. Jg: function() {
  16550. return this.Tk == this.ac
  16551. },
  16552. reverse: function() {
  16553. var a = b.repeat(this.mb.reverse(), this.ac);
  16554. this.ua(a);
  16555. this.ke(a);
  16556. return a
  16557. },
  16558. gP: function(a) {
  16559. this.mb != a && (this.mb = a)
  16560. },
  16561. EE: function() {
  16562. return this.mb
  16563. }
  16564. });
  16565. b.repeat = function(a, c) {
  16566. return new b.Jz(a, c)
  16567. };
  16568. b.Jz.create = b.repeat;
  16569. b.Kz = b.u.extend({
  16570. mb: null,
  16571. ctor: function(a) {
  16572. b.u.prototype.ctor.call(this);
  16573. this.mb = null;
  16574. a && this.$(a)
  16575. },
  16576. $: function(a) {
  16577. if (!a) throw "cc.RepeatForever.initWithAction(): action must be non null";
  16578. this.mb = a;
  16579. return !0
  16580. },
  16581. j: function() {
  16582. var a = new b.Kz;
  16583. this.ua(a);
  16584. a.$(this.mb.j());
  16585. return a
  16586. },
  16587. v: function(a) {
  16588. b.u.prototype.v.call(this, a);
  16589. this.mb.v(a)
  16590. },
  16591. step: function(a) {
  16592. var c = this.mb;
  16593. c.step(a);
  16594. c.Jg() && (c.v(this.target), c.step(c.kb - c.o))
  16595. },
  16596. Jg: function() {
  16597. return !1
  16598. },
  16599. reverse: function() {
  16600. var a = b.Yx(this.mb.reverse());
  16601. this.ua(a);
  16602. this.ke(a);
  16603. return a
  16604. },
  16605. gP: function(a) {
  16606. this.mb != a && (this.mb = a)
  16607. },
  16608. EE: function() {
  16609. return this.mb
  16610. }
  16611. });
  16612. b.Yx = function(a) {
  16613. return new b.Kz(a)
  16614. };
  16615. b.Kz.create = b.Yx;
  16616. b.af = b.u.extend({
  16617. ij: null,
  16618. zj: null,
  16619. ctor: function(a) {
  16620. b.u.prototype.ctor.call(this);
  16621. this.zj = this.ij = null;
  16622. var c = a instanceof Array ? a : arguments,
  16623. d = c.length - 1;
  16624. 0 <= d && null == c[d] && b.log("parameters should not be ending with null in Javascript");
  16625. if (0 <= d) {
  16626. for (var e = c[0], f = 1; f < d; f++) c[f] && (e = b.af.Xi(e, c[f]));
  16627. this.Mm(e, c[d])
  16628. }
  16629. },
  16630. Mm: function(a, c) {
  16631. if (!a || !c) throw "cc.Spawn.initWithTwoActions(): arguments must all be non null";
  16632. var d = !1,
  16633. e = a.o,
  16634. f = c.o;
  16635. this.d(Math.max(e, f)) && (this.ij = a, this.zj = c, e > f ? this.zj = b.Ka.Xi(c, b.fd(e -
  16636. f)) : e < f && (this.ij = b.Ka.Xi(a, b.fd(f - e))), d = !0);
  16637. return d
  16638. },
  16639. j: function() {
  16640. var a = new b.af;
  16641. this.ua(a);
  16642. a.Mm(this.ij.j(), this.zj.j());
  16643. return a
  16644. },
  16645. v: function(a) {
  16646. b.u.prototype.v.call(this, a);
  16647. this.ij.v(a);
  16648. this.zj.v(a)
  16649. },
  16650. stop: function() {
  16651. this.ij.stop();
  16652. this.zj.stop();
  16653. b.wd.prototype.stop.call(this)
  16654. },
  16655. update: function(a) {
  16656. a = this.kd(a);
  16657. this.ij && this.ij.update(a);
  16658. this.zj && this.zj.update(a)
  16659. },
  16660. reverse: function() {
  16661. var a = b.af.Xi(this.ij.reverse(), this.zj.reverse());
  16662. this.ua(a);
  16663. this.ke(a);
  16664. return a
  16665. }
  16666. });
  16667. b.V4 = function(a) {
  16668. var c = a instanceof Array ? a : arguments;
  16669. 0 < c.length && null == c[c.length - 1] && b.log("parameters should not be ending with null in Javascript");
  16670. for (var d = c[0], e = 1; e < c.length; e++) null != c[e] && (d = b.af.Xi(d, c[e]));
  16671. return d
  16672. };
  16673. b.af.create = b.V4;
  16674. b.af.Xi = function(a, c) {
  16675. var d = new b.af;
  16676. d.Mm(a, c);
  16677. return d
  16678. };
  16679. b.Lz = b.u.extend({
  16680. Uu: 0,
  16681. Jr: 0,
  16682. dJ: 0,
  16683. jB: 0,
  16684. xo: 0,
  16685. eJ: 0,
  16686. ctor: function(a, c, d) {
  16687. b.u.prototype.ctor.call(this);
  16688. void 0 !== c && this.d(a, c, d)
  16689. },
  16690. d: function(a, c, d) {
  16691. return b.u.prototype.d.call(this, a) ? (this.Uu = c || 0, this.jB = d || this.Uu, !0) : !1
  16692. },
  16693. j: function() {
  16694. var a = new b.Lz;
  16695. this.ua(a);
  16696. a.d(this.o, this.Uu, this.jB);
  16697. return a
  16698. },
  16699. v: function(a) {
  16700. b.u.prototype.v.call(this, a);
  16701. var c = a.rotationX % 360,
  16702. d = this.Uu - c;
  16703. 180 < d && (d -= 360); - 180 > d && (d += 360);
  16704. this.Jr = c;
  16705. this.dJ = d;
  16706. this.xo = a.rotationY % 360;
  16707. a = this.jB - this.xo;
  16708. 180 < a && (a -= 360); - 180 > a && (a += 360);
  16709. this.eJ = a
  16710. },
  16711. reverse: function() {
  16712. b.log("cc.RotateTo.reverse(): it should be overridden in subclass.")
  16713. },
  16714. update: function(a) {
  16715. a = this.kd(a);
  16716. this.target && (this.target.rotationX = this.Jr + this.dJ * a, this.target.rotationY = this.xo + this.eJ * a)
  16717. }
  16718. });
  16719. b.E3 = function(a, c, d) {
  16720. return new b.Lz(a, c, d)
  16721. };
  16722. b.Lz.create = b.E3;
  16723. b.Zt = b.u.extend({
  16724. $g: 0,
  16725. Jr: 0,
  16726. Au: 0,
  16727. xo: 0,
  16728. ctor: function(a, c, d) {
  16729. b.u.prototype.ctor.call(this);
  16730. void 0 !== c && this.d(a, c, d)
  16731. },
  16732. d: function(a, c, d) {
  16733. return b.u.prototype.d.call(this, a) ? (this.$g = c || 0, this.Au = d || this.$g, !0) : !1
  16734. },
  16735. j: function() {
  16736. var a = new b.Zt;
  16737. this.ua(a);
  16738. a.d(this.o, this.$g, this.Au);
  16739. return a
  16740. },
  16741. v: function(a) {
  16742. b.u.prototype.v.call(this, a);
  16743. this.Jr = a.rotationX;
  16744. this.xo = a.rotationY
  16745. },
  16746. update: function(a) {
  16747. a = this.kd(a);
  16748. this.target && (this.target.rotationX = this.Jr + this.$g * a, this.target.rotationY = this.xo + this.Au * a)
  16749. },
  16750. reverse: function() {
  16751. var a =
  16752. b.SO(this.o, -this.$g, -this.Au);
  16753. this.ua(a);
  16754. this.ke(a);
  16755. return a
  16756. }
  16757. });
  16758. b.SO = function(a, c, d) {
  16759. return new b.Zt(a, c, d)
  16760. };
  16761. b.Zt.create = b.SO;
  16762. b.Zg = b.u.extend({
  16763. ni: null,
  16764. Fc: null,
  16765. Tc: null,
  16766. ctor: function(a, c, d) {
  16767. b.u.prototype.ctor.call(this);
  16768. this.ni = C(0, 0);
  16769. this.Fc = C(0, 0);
  16770. this.Tc = C(0, 0);
  16771. void 0 !== c && this.d(a, c, d)
  16772. },
  16773. d: function(a, c, d) {
  16774. return b.u.prototype.d.call(this, a) ? (void 0 !== c.x && (d = c.y, c = c.x), this.ni.x = c, this.ni.y = d, !0) : !1
  16775. },
  16776. j: function() {
  16777. var a = new b.Zg;
  16778. this.ua(a);
  16779. a.d(this.o, this.ni);
  16780. return a
  16781. },
  16782. v: function(a) {
  16783. b.u.prototype.v.call(this, a);
  16784. var c = a.Gd();
  16785. a = a.tf();
  16786. this.Tc.x = c;
  16787. this.Tc.y = a;
  16788. this.Fc.x = c;
  16789. this.Fc.y = a
  16790. },
  16791. update: function(a) {
  16792. a = this.kd(a);
  16793. if (this.target) {
  16794. var c =
  16795. this.ni.x * a;
  16796. a *= this.ni.y;
  16797. var d = this.Fc;
  16798. if (b.st) {
  16799. var e = this.target.tf(),
  16800. f = this.Tc;
  16801. d.x = d.x + this.target.Gd() - f.x;
  16802. d.y = d.y + e - f.y;
  16803. c += d.x;
  16804. a += d.y;
  16805. f.x = c;
  16806. f.y = a;
  16807. this.target.P(c, a)
  16808. } else this.target.P(d.x + c, d.y + a)
  16809. }
  16810. },
  16811. reverse: function() {
  16812. var a = b.moveBy(this.o, C(-this.ni.x, -this.ni.y));
  16813. this.ua(a);
  16814. this.ke(a);
  16815. return a
  16816. }
  16817. });
  16818. b.moveBy = function(a, c, d) {
  16819. return new b.Zg(a, c, d)
  16820. };
  16821. b.Zg.create = b.moveBy;
  16822. b.Rt = b.Zg.extend({
  16823. Ff: null,
  16824. ctor: function(a, c, d) {
  16825. b.Zg.prototype.ctor.call(this);
  16826. this.Ff = C(0, 0);
  16827. void 0 !== c && this.d(a, c, d)
  16828. },
  16829. d: function(a, c, d) {
  16830. return b.Zg.prototype.d.call(this, a, c, d) ? (void 0 !== c.x && (d = c.y, c = c.x), this.Ff.x = c, this.Ff.y = d, !0) : !1
  16831. },
  16832. j: function() {
  16833. var a = new b.Rt;
  16834. this.ua(a);
  16835. a.d(this.o, this.Ff);
  16836. return a
  16837. },
  16838. v: function(a) {
  16839. b.Zg.prototype.v.call(this, a);
  16840. this.ni.x = this.Ff.x - a.Gd();
  16841. this.ni.y = this.Ff.y - a.tf()
  16842. }
  16843. });
  16844. b.moveTo = function(a, c, d) {
  16845. return new b.Rt(a, c, d)
  16846. };
  16847. b.Rt.create = b.moveTo;
  16848. b.yl = b.u.extend({
  16849. sh: 0,
  16850. th: 0,
  16851. aw: 0,
  16852. bw: 0,
  16853. Xu: 0,
  16854. Yu: 0,
  16855. ef: 0,
  16856. ff: 0,
  16857. ctor: function(a, c, d) {
  16858. b.u.prototype.ctor.call(this);
  16859. void 0 !== d && this.d(a, c, d)
  16860. },
  16861. d: function(a, c, d) {
  16862. var e = !1;
  16863. b.u.prototype.d.call(this, a) && (this.Xu = c, this.Yu = d, e = !0);
  16864. return e
  16865. },
  16866. j: function() {
  16867. var a = new b.yl;
  16868. this.ua(a);
  16869. a.d(this.o, this.Xu, this.Yu);
  16870. return a
  16871. },
  16872. v: function(a) {
  16873. b.u.prototype.v.call(this, a);
  16874. this.aw = a.skewX % 180;
  16875. this.ef = this.Xu - this.aw;
  16876. 180 < this.ef && (this.ef -= 360); - 180 > this.ef && (this.ef += 360);
  16877. this.bw = a.skewY % 360;
  16878. this.ff = this.Yu - this.bw;
  16879. 180 < this.ff &&
  16880. (this.ff -= 360); - 180 > this.ff && (this.ff += 360)
  16881. },
  16882. update: function(a) {
  16883. a = this.kd(a);
  16884. this.target.skewX = this.aw + this.ef * a;
  16885. this.target.skewY = this.bw + this.ff * a
  16886. }
  16887. });
  16888. b.U4 = function(a, c, d) {
  16889. return new b.yl(a, c, d)
  16890. };
  16891. b.yl.create = b.U4;
  16892. b.Rz = b.yl.extend({
  16893. ctor: function(a, c, d) {
  16894. b.yl.prototype.ctor.call(this);
  16895. void 0 !== d && this.d(a, c, d)
  16896. },
  16897. d: function(a, c, d) {
  16898. var e = !1;
  16899. b.yl.prototype.d.call(this, a, c, d) && (this.sh = c, this.th = d, e = !0);
  16900. return e
  16901. },
  16902. j: function() {
  16903. var a = new b.Rz;
  16904. this.ua(a);
  16905. a.d(this.o, this.sh, this.th);
  16906. return a
  16907. },
  16908. v: function(a) {
  16909. b.yl.prototype.v.call(this, a);
  16910. this.ef = this.sh;
  16911. this.ff = this.th;
  16912. this.Xu = this.aw + this.ef;
  16913. this.Yu = this.bw + this.ff
  16914. },
  16915. reverse: function() {
  16916. var a = b.CP(this.o, -this.sh, -this.th);
  16917. this.ua(a);
  16918. this.ke(a);
  16919. return a
  16920. }
  16921. });
  16922. b.CP = function(a, c, d) {
  16923. return new b.Rz(a, c, d)
  16924. };
  16925. b.Rz.create = b.CP;
  16926. b.Wj = b.u.extend({
  16927. Fc: null,
  16928. di: null,
  16929. ir: 0,
  16930. gj: 0,
  16931. Tc: null,
  16932. ctor: function(a, c, d, e, f) {
  16933. b.u.prototype.ctor.call(this);
  16934. this.Fc = C(0, 0);
  16935. this.Tc = C(0, 0);
  16936. this.di = C(0, 0);
  16937. void 0 !== e && this.d(a, c, d, e, f)
  16938. },
  16939. d: function(a, c, d, e, f) {
  16940. return b.u.prototype.d.call(this, a) ? (void 0 === f && (f = e, e = d, d = c.y, c = c.x), this.di.x = c, this.di.y = d, this.ir = e, this.gj = f, !0) : !1
  16941. },
  16942. j: function() {
  16943. var a = new b.Wj;
  16944. this.ua(a);
  16945. a.d(this.o, this.di, this.ir, this.gj);
  16946. return a
  16947. },
  16948. v: function(a) {
  16949. b.u.prototype.v.call(this, a);
  16950. var c = a.Gd();
  16951. a = a.tf();
  16952. this.Tc.x = c;
  16953. this.Tc.y = a;
  16954. this.Fc.x = c;
  16955. this.Fc.y = a
  16956. },
  16957. update: function(a) {
  16958. a = this.kd(a);
  16959. if (this.target) {
  16960. var c = a * this.gj % 1,
  16961. c = 4 * this.ir * c * (1 - c),
  16962. c = c + this.di.y * a;
  16963. a *= this.di.x;
  16964. var d = this.Fc;
  16965. if (b.st) {
  16966. var e = this.target.tf(),
  16967. f = this.Tc;
  16968. d.x = d.x + this.target.Gd() - f.x;
  16969. d.y = d.y + e - f.y;
  16970. a += d.x;
  16971. c += d.y;
  16972. f.x = a;
  16973. f.y = c;
  16974. this.target.P(a, c)
  16975. } else this.target.P(d.x + a, d.y + c)
  16976. }
  16977. },
  16978. reverse: function() {
  16979. var a = b.VN(this.o, C(-this.di.x, -this.di.y), this.ir, this.gj);
  16980. this.ua(a);
  16981. this.ke(a);
  16982. return a
  16983. }
  16984. });
  16985. b.VN = function(a, c, d, e, f) {
  16986. return new b.Wj(a, c, d, e, f)
  16987. };
  16988. b.Wj.create = b.VN;
  16989. b.iz = b.Wj.extend({
  16990. Ff: null,
  16991. ctor: function(a, c, d, e, f) {
  16992. b.Wj.prototype.ctor.call(this);
  16993. this.Ff = C(0, 0);
  16994. void 0 !== e && this.d(a, c, d, e, f)
  16995. },
  16996. d: function(a, c, d, e, f) {
  16997. return b.Wj.prototype.d.call(this, a, c, d, e, f) ? (void 0 === f && (d = c.y, c = c.x), this.Ff.x = c, this.Ff.y = d, !0) : !1
  16998. },
  16999. v: function(a) {
  17000. b.Wj.prototype.v.call(this, a);
  17001. this.di.x = this.Ff.x - this.Fc.x;
  17002. this.di.y = this.Ff.y - this.Fc.y
  17003. },
  17004. j: function() {
  17005. var a = new b.iz;
  17006. this.ua(a);
  17007. a.d(this.o, this.Ff, this.ir, this.gj);
  17008. return a
  17009. }
  17010. });
  17011. b.P1 = function(a, c, d, e, f) {
  17012. return new b.iz(a, c, d, e, f)
  17013. };
  17014. b.iz.create = b.P1;
  17015. b.fM = function(a, c, d, e) {
  17016. return 0 * Math.pow(1 - e, 3) + 3 * e * Math.pow(1 - e, 2) * a + 3 * Math.pow(e, 2) * (1 - e) * c + Math.pow(e, 3) * d
  17017. };
  17018. b.fn = b.u.extend({
  17019. Cf: null,
  17020. Fc: null,
  17021. Tc: null,
  17022. ctor: function(a, c) {
  17023. b.u.prototype.ctor.call(this);
  17024. this.Cf = [];
  17025. this.Fc = C(0, 0);
  17026. this.Tc = C(0, 0);
  17027. c && this.d(a, c)
  17028. },
  17029. d: function(a, c) {
  17030. return b.u.prototype.d.call(this, a) ? (this.Cf = c, !0) : !1
  17031. },
  17032. j: function() {
  17033. var a = new b.fn;
  17034. this.ua(a);
  17035. for (var c = [], d = 0; d < this.Cf.length; d++) {
  17036. var e = this.Cf[d];
  17037. c.push(C(e.x, e.y))
  17038. }
  17039. a.d(this.o, c);
  17040. return a
  17041. },
  17042. v: function(a) {
  17043. b.u.prototype.v.call(this, a);
  17044. var c = a.Gd();
  17045. a = a.tf();
  17046. this.Tc.x = c;
  17047. this.Tc.y = a;
  17048. this.Fc.x = c;
  17049. this.Fc.y = a
  17050. },
  17051. update: function(a) {
  17052. a = this.kd(a);
  17053. if (this.target) {
  17054. var c = this.Cf,
  17055. d = b.fM(c[0].x, c[1].x, c[2].x, a);
  17056. a = b.fM(c[0].y, c[1].y, c[2].y, a);
  17057. c = this.Fc;
  17058. if (b.st) {
  17059. var e = this.target.tf(),
  17060. f = this.Tc;
  17061. c.x = c.x + this.target.Gd() - f.x;
  17062. c.y = c.y + e - f.y;
  17063. d += c.x;
  17064. a += c.y;
  17065. f.x = d;
  17066. f.y = a;
  17067. this.target.P(d, a)
  17068. } else this.target.P(c.x + d, c.y + a)
  17069. }
  17070. },
  17071. reverse: function() {
  17072. var a = this.Cf,
  17073. a = b.gM(this.o, [b.Hi(a[1], b.AF(a[2])), b.Hi(a[0], b.AF(a[2])), b.AF(a[2])]);
  17074. this.ua(a);
  17075. this.ke(a);
  17076. return a
  17077. }
  17078. });
  17079. b.gM = function(a, c) {
  17080. return new b.fn(a, c)
  17081. };
  17082. b.fn.create = b.gM;
  17083. b.Jy = b.fn.extend({
  17084. nw: null,
  17085. ctor: function(a, c) {
  17086. b.fn.prototype.ctor.call(this);
  17087. this.nw = [];
  17088. c && this.d(a, c)
  17089. },
  17090. d: function(a, c) {
  17091. return b.u.prototype.d.call(this, a) ? (this.nw = c, !0) : !1
  17092. },
  17093. j: function() {
  17094. var a = new b.Jy;
  17095. this.ua(a);
  17096. a.d(this.o, this.nw);
  17097. return a
  17098. },
  17099. v: function(a) {
  17100. b.fn.prototype.v.call(this, a);
  17101. a = this.Fc;
  17102. var c = this.nw,
  17103. d = this.Cf;
  17104. d[0] = b.Jd(c[0], a);
  17105. d[1] = b.Jd(c[1], a);
  17106. d[2] = b.Jd(c[2], a)
  17107. }
  17108. });
  17109. b.yZ = function(a, c) {
  17110. return new b.Jy(a, c)
  17111. };
  17112. b.Jy.create = b.yZ;
  17113. b.Pd = b.u.extend({
  17114. ka: 1,
  17115. La: 1,
  17116. Mr: 1,
  17117. Nr: 1,
  17118. Rn: 0,
  17119. Sn: 0,
  17120. ef: 0,
  17121. ff: 0,
  17122. ctor: function(a, c, d) {
  17123. b.u.prototype.ctor.call(this);
  17124. void 0 !== c && this.d(a, c, d)
  17125. },
  17126. d: function(a, c, d) {
  17127. return b.u.prototype.d.call(this, a) ? (this.Rn = c, this.Sn = null != d ? d : c, !0) : !1
  17128. },
  17129. j: function() {
  17130. var a = new b.Pd;
  17131. this.ua(a);
  17132. a.d(this.o, this.Rn, this.Sn);
  17133. return a
  17134. },
  17135. v: function(a) {
  17136. b.u.prototype.v.call(this, a);
  17137. this.Mr = a.scaleX;
  17138. this.Nr = a.scaleY;
  17139. this.ef = this.Rn - this.Mr;
  17140. this.ff = this.Sn - this.Nr
  17141. },
  17142. update: function(a) {
  17143. a = this.kd(a);
  17144. this.target && (this.target.scaleX = this.Mr +
  17145. this.ef * a, this.target.scaleY = this.Nr + this.ff * a)
  17146. }
  17147. });
  17148. b.ue = function(a, c, d) {
  17149. return new b.Pd(a, c, d)
  17150. };
  17151. b.Pd.create = b.ue;
  17152. b.cu = b.Pd.extend({
  17153. v: function(a) {
  17154. b.Pd.prototype.v.call(this, a);
  17155. this.ef = this.Mr * this.Rn - this.Mr;
  17156. this.ff = this.Nr * this.Sn - this.Nr
  17157. },
  17158. reverse: function() {
  17159. var a = b.TO(this.o, 1 / this.Rn, 1 / this.Sn);
  17160. this.ua(a);
  17161. this.ke(a);
  17162. return a
  17163. },
  17164. j: function() {
  17165. var a = new b.cu;
  17166. this.ua(a);
  17167. a.d(this.o, this.Rn, this.Sn);
  17168. return a
  17169. }
  17170. });
  17171. b.TO = function(a, c, d) {
  17172. return new b.cu(a, c, d)
  17173. };
  17174. b.cu.create = b.TO;
  17175. b.Ky = b.u.extend({
  17176. ac: 0,
  17177. KK: !1,
  17178. ctor: function(a, c) {
  17179. b.u.prototype.ctor.call(this);
  17180. void 0 !== c && this.d(a, c)
  17181. },
  17182. d: function(a, c) {
  17183. return b.u.prototype.d.call(this, a) ? (this.ac = c, !0) : !1
  17184. },
  17185. j: function() {
  17186. var a = new b.Ky;
  17187. this.ua(a);
  17188. a.d(this.o, this.ac);
  17189. return a
  17190. },
  17191. update: function(a) {
  17192. a = this.kd(a);
  17193. if (this.target && !this.Jg()) {
  17194. var c = 1 / this.ac;
  17195. this.target.visible = a % c > c / 2
  17196. }
  17197. },
  17198. v: function(a) {
  17199. b.u.prototype.v.call(this, a);
  17200. this.KK = a.visible
  17201. },
  17202. stop: function() {
  17203. this.target.visible = this.KK;
  17204. b.u.prototype.stop.call(this)
  17205. },
  17206. reverse: function() {
  17207. var a =
  17208. b.blink(this.o, this.ac);
  17209. this.ua(a);
  17210. this.ke(a);
  17211. return a
  17212. }
  17213. });
  17214. b.blink = function(a, c) {
  17215. return new b.Ky(a, c)
  17216. };
  17217. b.Ky.create = b.blink;
  17218. b.Ti = b.u.extend({
  17219. Go: 0,
  17220. gv: 0,
  17221. ctor: function(a, c) {
  17222. b.u.prototype.ctor.call(this);
  17223. void 0 !== c && this.d(a, c)
  17224. },
  17225. d: function(a, c) {
  17226. return b.u.prototype.d.call(this, a) ? (this.Go = c, !0) : !1
  17227. },
  17228. j: function() {
  17229. var a = new b.Ti;
  17230. this.ua(a);
  17231. a.d(this.o, this.Go);
  17232. return a
  17233. },
  17234. update: function(a) {
  17235. a = this.kd(a);
  17236. var c = void 0 !== this.gv ? this.gv : 255;
  17237. this.target.opacity = c + (this.Go - c) * a
  17238. },
  17239. v: function(a) {
  17240. b.u.prototype.v.call(this, a);
  17241. this.gv = a.opacity
  17242. }
  17243. });
  17244. b.F_ = function(a, c) {
  17245. return new b.Ti(a, c)
  17246. };
  17247. b.Ti.create = b.F_;
  17248. b.fq = b.Ti.extend({
  17249. HC: null,
  17250. ctor: function(a) {
  17251. b.Ti.prototype.ctor.call(this);
  17252. a && this.d(a, 255)
  17253. },
  17254. reverse: function() {
  17255. var a = new b.gq;
  17256. a.d(this.o, 0);
  17257. this.ua(a);
  17258. this.ke(a);
  17259. return a
  17260. },
  17261. j: function() {
  17262. var a = new b.fq;
  17263. this.ua(a);
  17264. a.d(this.o, this.Go);
  17265. return a
  17266. },
  17267. v: function(a) {
  17268. this.HC && (this.Go = this.HC.gv);
  17269. b.Ti.prototype.v.call(this, a)
  17270. }
  17271. });
  17272. b.z_ = function(a) {
  17273. return new b.fq(a)
  17274. };
  17275. b.fq.create = b.z_;
  17276. b.gq = b.Ti.extend({
  17277. ctor: function(a) {
  17278. b.Ti.prototype.ctor.call(this);
  17279. a && this.d(a, 0)
  17280. },
  17281. reverse: function() {
  17282. var a = new b.fq;
  17283. a.HC = this;
  17284. a.d(this.o, 255);
  17285. this.ua(a);
  17286. this.ke(a);
  17287. return a
  17288. },
  17289. j: function() {
  17290. var a = new b.gq;
  17291. this.ua(a);
  17292. a.d(this.o, this.Go);
  17293. return a
  17294. }
  17295. });
  17296. b.A_ = function(a) {
  17297. return new b.gq(a)
  17298. };
  17299. b.gq.create = b.A_;
  17300. b.iA = b.u.extend({
  17301. pd: null,
  17302. Rc: null,
  17303. ctor: function(a, c, d, e) {
  17304. b.u.prototype.ctor.call(this);
  17305. this.pd = b.color(0, 0, 0);
  17306. this.Rc = b.color(0, 0, 0);
  17307. void 0 !== e && this.d(a, c, d, e)
  17308. },
  17309. d: function(a, c, d, e) {
  17310. return b.u.prototype.d.call(this, a) ? (this.pd = b.color(c, d, e), !0) : !1
  17311. },
  17312. j: function() {
  17313. var a = new b.iA;
  17314. this.ua(a);
  17315. var c = this.pd;
  17316. a.d(this.o, c.r, c.g, c.b);
  17317. return a
  17318. },
  17319. v: function(a) {
  17320. b.u.prototype.v.call(this, a);
  17321. this.Rc = this.target.color
  17322. },
  17323. update: function(a) {
  17324. a = this.kd(a);
  17325. var c = this.Rc,
  17326. d = this.pd;
  17327. c && (this.target.color = b.color(c.r + (d.r -
  17328. c.r) * a, c.g + (d.g - c.g) * a, c.b + (d.b - c.b) * a))
  17329. }
  17330. });
  17331. b.z5 = function(a, c, d, e) {
  17332. return new b.iA(a, c, d, e)
  17333. };
  17334. b.iA.create = b.z5;
  17335. b.hA = b.u.extend({
  17336. Su: 0,
  17337. Ru: 0,
  17338. Qu: 0,
  17339. XJ: 0,
  17340. WJ: 0,
  17341. VJ: 0,
  17342. ctor: function(a, c, d, e) {
  17343. b.u.prototype.ctor.call(this);
  17344. void 0 !== e && this.d(a, c, d, e)
  17345. },
  17346. d: function(a, c, d, e) {
  17347. return b.u.prototype.d.call(this, a) ? (this.Su = c, this.Ru = d, this.Qu = e, !0) : !1
  17348. },
  17349. j: function() {
  17350. var a = new b.hA;
  17351. this.ua(a);
  17352. a.d(this.o, this.Su, this.Ru, this.Qu);
  17353. return a
  17354. },
  17355. v: function(a) {
  17356. b.u.prototype.v.call(this, a);
  17357. a = a.color;
  17358. this.XJ = a.r;
  17359. this.WJ = a.g;
  17360. this.VJ = a.b
  17361. },
  17362. update: function(a) {
  17363. a = this.kd(a);
  17364. this.target.color = b.color(this.XJ + this.Su * a, this.WJ + this.Ru * a, this.VJ +
  17365. this.Qu * a)
  17366. },
  17367. reverse: function() {
  17368. var a = b.LP(this.o, -this.Su, -this.Ru, -this.Qu);
  17369. this.ua(a);
  17370. this.ke(a);
  17371. return a
  17372. }
  17373. });
  17374. b.LP = function(a, c, d, e) {
  17375. return new b.hA(a, c, d, e)
  17376. };
  17377. b.hA.create = b.LP;
  17378. b.xd = b.u.extend({
  17379. update: function() {},
  17380. reverse: function() {
  17381. var a = b.fd(this.o);
  17382. this.ua(a);
  17383. this.ke(a);
  17384. return a
  17385. },
  17386. j: function() {
  17387. var a = new b.xd;
  17388. this.ua(a);
  17389. a.d(this.o);
  17390. return a
  17391. }
  17392. });
  17393. b.fd = function(a) {
  17394. return new b.xd(a)
  17395. };
  17396. b.xd.create = b.fd;
  17397. b.rq = b.u.extend({
  17398. kj: null,
  17399. ctor: function(a) {
  17400. b.u.prototype.ctor.call(this);
  17401. this.kj = null;
  17402. a && this.$(a)
  17403. },
  17404. $: function(a) {
  17405. if (!a) throw "cc.ReverseTime.initWithAction(): action must be non null";
  17406. if (a == this.kj) throw "cc.ReverseTime.initWithAction(): the action was already passed in.";
  17407. return b.u.prototype.d.call(this, a.o) ? (this.kj = a, !0) : !1
  17408. },
  17409. j: function() {
  17410. var a = new b.rq;
  17411. this.ua(a);
  17412. a.$(this.kj.j());
  17413. return a
  17414. },
  17415. v: function(a) {
  17416. b.u.prototype.v.call(this, a);
  17417. this.kj.v(a)
  17418. },
  17419. update: function(a) {
  17420. a = this.kd(a);
  17421. this.kj && this.kj.update(1 -
  17422. a)
  17423. },
  17424. reverse: function() {
  17425. return this.kj.j()
  17426. },
  17427. stop: function() {
  17428. this.kj.stop();
  17429. b.wd.prototype.stop.call(this)
  17430. }
  17431. });
  17432. b.RO = function(a) {
  17433. return new b.rq(a)
  17434. };
  17435. b.rq.create = b.RO;
  17436. b.Dy = b.u.extend({
  17437. mk: null,
  17438. tr: 0,
  17439. cC: null,
  17440. av: 0,
  17441. dD: null,
  17442. ctor: function(a) {
  17443. b.u.prototype.ctor.call(this);
  17444. this.dD = [];
  17445. a && this.EN(a)
  17446. },
  17447. SM: function() {
  17448. return this.mk
  17449. },
  17450. L3: function(a) {
  17451. this.mk = a
  17452. },
  17453. EN: function(a) {
  17454. if (!a) throw "cc.Animate.initWithAnimation(): animation must be non-NULL";
  17455. var c = a.ap();
  17456. if (this.d(c * a.hj)) {
  17457. this.tr = 0;
  17458. this.L3(a);
  17459. this.cC = null;
  17460. this.av = 0;
  17461. var d = this.dD,
  17462. e = d.length = 0,
  17463. f = c / a.wi;
  17464. a = a.Vd;
  17465. b.Lo(a, b.jg);
  17466. for (var g = 0; g < a.length; g++) {
  17467. var h = e * f / c,
  17468. e = e + a[g].Ud;
  17469. d.push(h)
  17470. }
  17471. return !0
  17472. }
  17473. return !1
  17474. },
  17475. j: function() {
  17476. var a = new b.Dy;
  17477. this.ua(a);
  17478. a.EN(this.mk.j());
  17479. return a
  17480. },
  17481. v: function(a) {
  17482. b.u.prototype.v.call(this, a);
  17483. this.mk.bm && (this.cC = a.WZ());
  17484. this.av = this.tr = 0
  17485. },
  17486. update: function(a) {
  17487. a = this.kd(a);
  17488. 1 > a && (a *= this.mk.hj, (0 | a) > this.av && (this.tr = 0, this.av++), a %= 1);
  17489. for (var c = this.mk.Vd, d = c.length, e = this.dD, f = this.tr; f < d; f++)
  17490. if (e[f] <= a) this.target.nl(c[f].Bj()), this.tr = f + 1;
  17491. else break
  17492. },
  17493. reverse: function() {
  17494. var a = this.mk,
  17495. c = a.Vd,
  17496. d = [];
  17497. b.Lo(c, b.jg);
  17498. if (0 < c.length)
  17499. for (var e = c.length - 1; 0 <= e; e--) {
  17500. var f = c[e];
  17501. if (!f) break;
  17502. d.push(f.j())
  17503. }
  17504. c = b.Pi.create(d,
  17505. a.Ud, a.hj);
  17506. c.ny(a.bm);
  17507. a = b.ZL(c);
  17508. this.ua(a);
  17509. this.ke(a);
  17510. return a
  17511. },
  17512. stop: function() {
  17513. this.mk.bm && this.target && this.target.nl(this.cC);
  17514. b.wd.prototype.stop.call(this)
  17515. }
  17516. });
  17517. b.ZL = function(a) {
  17518. return new b.Dy(a)
  17519. };
  17520. b.Dy.create = b.ZL;
  17521. b.eA = b.u.extend({
  17522. Eq: null,
  17523. Wn: null,
  17524. ctor: function(a, c) {
  17525. b.u.prototype.ctor.call(this);
  17526. c && this.hp(a, c)
  17527. },
  17528. hp: function(a, c) {
  17529. return this.d(c.o) ? (this.Wn = a, this.Eq = c, !0) : !1
  17530. },
  17531. j: function() {
  17532. var a = new b.eA;
  17533. this.ua(a);
  17534. a.hp(this.Wn, this.Eq.j());
  17535. return a
  17536. },
  17537. v: function(a) {
  17538. b.u.prototype.v.call(this, a);
  17539. this.Eq.v(this.Wn)
  17540. },
  17541. stop: function() {
  17542. this.Eq.stop()
  17543. },
  17544. update: function(a) {
  17545. a = this.kd(a);
  17546. this.Eq.update(a)
  17547. },
  17548. Pba: function() {
  17549. return this.Wn
  17550. },
  17551. Jia: function(a) {
  17552. this.Wn != a && (this.Wn = a)
  17553. }
  17554. });
  17555. b.p5 = function(a, c) {
  17556. return new b.eA(a, c)
  17557. };
  17558. b.eA.create = b.p5;
  17559. b.xe = b.Ui.extend({
  17560. Jg: function() {
  17561. return !0
  17562. },
  17563. step: function() {
  17564. this.update(1)
  17565. },
  17566. update: function() {},
  17567. reverse: function() {
  17568. return this.j()
  17569. },
  17570. j: function() {
  17571. return new b.xe
  17572. }
  17573. });
  17574. b.pg = b.xe.extend({
  17575. update: function() {
  17576. this.target.visible = !0
  17577. },
  17578. reverse: function() {
  17579. return b.Sh.create()
  17580. },
  17581. j: function() {
  17582. return new b.pg
  17583. }
  17584. });
  17585. b.show = function() {
  17586. return new b.pg
  17587. };
  17588. b.pg.create = b.show;
  17589. b.Sh = b.xe.extend({
  17590. update: function() {
  17591. this.target.visible = !1
  17592. },
  17593. reverse: function() {
  17594. return b.pg.create()
  17595. },
  17596. j: function() {
  17597. return new b.Sh
  17598. }
  17599. });
  17600. b.l1 = function() {
  17601. return new b.Sh
  17602. };
  17603. b.Sh.create = b.l1;
  17604. b.mu = b.xe.extend({
  17605. update: function() {
  17606. this.target.visible = !this.target.visible
  17607. },
  17608. reverse: function() {
  17609. return new b.mu
  17610. },
  17611. j: function() {
  17612. return new b.mu
  17613. }
  17614. });
  17615. b.A5 = function() {
  17616. return new b.mu
  17617. };
  17618. b.mu.create = b.A5;
  17619. b.Yt = b.xe.extend({
  17620. ov: !0,
  17621. ctor: function(a) {
  17622. b.Ui.prototype.ctor.call(this);
  17623. void 0 !== a && this.da(a)
  17624. },
  17625. update: function() {
  17626. this.target.IF(this.ov)
  17627. },
  17628. da: function(a) {
  17629. this.ov = a;
  17630. return !0
  17631. },
  17632. reverse: function() {
  17633. return new b.Yt(this.ov)
  17634. },
  17635. j: function() {
  17636. return new b.Yt(this.ov)
  17637. }
  17638. });
  17639. b.t3 = function(a) {
  17640. return new b.Yt(a)
  17641. };
  17642. b.Yt.create = b.t3;
  17643. b.Ot = b.xe.extend({
  17644. Lb: !1,
  17645. ctor: function(a) {
  17646. b.Ui.prototype.ctor.call(this);
  17647. this.Lb = !1;
  17648. void 0 !== a && this.GN(a)
  17649. },
  17650. GN: function(a) {
  17651. this.Lb = a;
  17652. return !0
  17653. },
  17654. update: function() {
  17655. this.target.flippedX = this.Lb
  17656. },
  17657. reverse: function() {
  17658. return b.Ot.create(!this.Lb)
  17659. },
  17660. j: function() {
  17661. var a = new b.Ot;
  17662. a.GN(this.Lb);
  17663. return a
  17664. }
  17665. });
  17666. b.I_ = function(a) {
  17667. return new b.Ot(a)
  17668. };
  17669. b.Ot.create = b.I_;
  17670. b.Pt = b.xe.extend({
  17671. Mb: !1,
  17672. ctor: function(a) {
  17673. b.Ui.prototype.ctor.call(this);
  17674. this.Mb = !1;
  17675. void 0 !== a && this.HN(a)
  17676. },
  17677. HN: function(a) {
  17678. this.Mb = a;
  17679. return !0
  17680. },
  17681. update: function() {
  17682. this.target.flippedY = this.Mb
  17683. },
  17684. reverse: function() {
  17685. return b.Pt.create(!this.Mb)
  17686. },
  17687. j: function() {
  17688. var a = new b.Pt;
  17689. a.HN(this.Mb);
  17690. return a
  17691. }
  17692. });
  17693. b.K_ = function(a) {
  17694. return new b.Pt(a)
  17695. };
  17696. b.Pt.create = b.K_;
  17697. b.uz = b.xe.extend({
  17698. yh: 0,
  17699. Oe: 0,
  17700. ctor: function(a, c) {
  17701. b.Ui.prototype.ctor.call(this);
  17702. this.Oe = this.yh = 0;
  17703. void 0 !== a && (void 0 !== a.x && (c = a.y, a = a.x), this.MN(a, c))
  17704. },
  17705. MN: function(a, c) {
  17706. this.yh = a;
  17707. this.Oe = c;
  17708. return !0
  17709. },
  17710. update: function() {
  17711. this.target.P(this.yh, this.Oe)
  17712. },
  17713. j: function() {
  17714. var a = new b.uz;
  17715. a.MN(this.yh, this.Oe);
  17716. return a
  17717. }
  17718. });
  17719. b.U2 = function(a, c) {
  17720. return new b.uz(a, c)
  17721. };
  17722. b.uz.create = b.U2;
  17723. b.Tb = b.xe.extend({
  17724. pj: null,
  17725. Hu: null,
  17726. cr: null,
  17727. Nn: null,
  17728. ctor: function(a, c, d) {
  17729. b.Ui.prototype.ctor.call(this);
  17730. void 0 !== a && (void 0 === c ? this.ix(a) : this.ix(a, c, d))
  17731. },
  17732. ix: function(a, c, d) {
  17733. c ? (this.Nn = d, this.Hu = a, this.pj = c) : a && (this.cr = a);
  17734. return !0
  17735. },
  17736. execute: function() {
  17737. null != this.Hu ? this.Hu.call(this.pj, this.target, this.Nn) : this.cr && this.cr.call(null, this.target)
  17738. },
  17739. update: function() {
  17740. this.execute()
  17741. },
  17742. fda: function() {
  17743. return this.pj
  17744. },
  17745. Ija: function(a) {
  17746. a != this.pj && (this.pj && (this.pj = null), this.pj = a)
  17747. },
  17748. j: function() {
  17749. var a = new b.Tb;
  17750. this.pj ? a.ix(this.Hu, this.pj, this.Nn) : this.cr && a.ix(this.cr);
  17751. return a
  17752. }
  17753. });
  17754. b.Xk = function(a, c, d) {
  17755. return new b.Tb(a, c, d)
  17756. };
  17757. b.Tb.create = b.Xk;
  17758. b.By = b.u.extend({
  17759. WA: 0,
  17760. XA: 0,
  17761. YA: 0,
  17762. OJ: 0,
  17763. PJ: 0,
  17764. QJ: 0,
  17765. IL: 0,
  17766. JL: 0,
  17767. KL: 0,
  17768. ctor: function() {
  17769. b.u.prototype.ctor.call(this);
  17770. this.KL = this.JL = this.IL = this.QJ = this.PJ = this.OJ = this.YA = this.XA = this.WA = 0
  17771. },
  17772. v: function(a) {
  17773. b.u.prototype.v.call(this, a);
  17774. a = a.Jm();
  17775. var c = a.VM();
  17776. this.WA = c.x;
  17777. this.XA = c.y;
  17778. this.YA = c.z;
  17779. c = a.ZM();
  17780. this.OJ = c.x;
  17781. this.PJ = c.y;
  17782. this.QJ = c.z;
  17783. a = a.Z0();
  17784. this.IL = a.x;
  17785. this.JL = a.y;
  17786. this.KL = a.z
  17787. },
  17788. j: function() {
  17789. return new b.By
  17790. },
  17791. reverse: function() {
  17792. return b.RO(this)
  17793. }
  17794. });
  17795. b.ye = b.By.extend({
  17796. Je: 0,
  17797. eB: 0,
  17798. Hq: 0,
  17799. bJ: 0,
  17800. $g: 0,
  17801. aJ: 0,
  17802. WK: 0,
  17803. UK: 0,
  17804. VK: 0,
  17805. TK: 0,
  17806. ctor: function(a, c, d, e, f, g, h) {
  17807. b.By.prototype.ctor.call(this);
  17808. void 0 !== h && this.d(a, c, d, e, f, g, h)
  17809. },
  17810. d: function(a, c, d, e, f, g, h) {
  17811. return b.u.prototype.d.call(this, a) ? (this.Je = c, this.eB = d, this.Hq = e, this.bJ = f, this.$g = g, this.aJ = h, this.UK = b.Sf(f), this.TK = b.Sf(h), !0) : !1
  17812. },
  17813. W4: function() {
  17814. var a = this.target.Jm(),
  17815. c = a.ZM(),
  17816. d = a.VM(),
  17817. a = c.x - d.x,
  17818. e = c.y - d.y,
  17819. c = c.z - d.z,
  17820. d = Math.sqrt(Math.pow(a, 2) + Math.pow(e, 2) + Math.pow(c, 2)),
  17821. f = Math.sqrt(Math.pow(a, 2) + Math.pow(e,
  17822. 2));
  17823. 0 === f && (f = b.Mt);
  17824. 0 === d && (d = b.Mt);
  17825. return {
  17826. D2: d / b.Lp.xs(),
  17827. X5: Math.acos(c / d),
  17828. azimuth: 0 > a ? Math.PI - Math.asin(e / f) : Math.asin(e / f)
  17829. }
  17830. },
  17831. v: function(a) {
  17832. b.u.prototype.v.call(this, a);
  17833. a = this.W4();
  17834. isNaN(this.Je) && (this.Je = a.D2);
  17835. isNaN(this.Hq) && (this.Hq = b.FF(a.X5));
  17836. isNaN(this.$g) && (this.$g = b.FF(a.azimuth));
  17837. this.WK = b.Sf(this.Hq);
  17838. this.VK = b.Sf(this.$g)
  17839. },
  17840. j: function() {
  17841. var a = new b.ye;
  17842. a.d(this.o, this.Je, this.eB, this.Hq, this.bJ, this.$g, this.aJ);
  17843. return a
  17844. },
  17845. update: function(a) {
  17846. a = this.kd(a);
  17847. var c = (this.Je + this.eB * a) * b.Lp.xs(),
  17848. d = this.WK + this.UK * a,
  17849. e = this.VK + this.TK * a;
  17850. a = Math.sin(d) * Math.cos(e) * c + this.WA;
  17851. e = Math.sin(d) * Math.sin(e) * c + this.XA;
  17852. c = Math.cos(d) * c + this.YA;
  17853. this.target.Jm().eP(a, e, c)
  17854. }
  17855. });
  17856. b.G2 = function(a, c, d, e, f, g, h) {
  17857. return new b.ye(a, c, d, e, f, g, h)
  17858. };
  17859. b.ye.create = b.G2;
  17860. b.Na = b.u.extend({
  17861. q: null,
  17862. ctor: function(a) {
  17863. b.u.prototype.ctor.call(this);
  17864. a && this.$(a)
  17865. },
  17866. $: function(a) {
  17867. if (!a) throw "cc.ActionEase.initWithAction(): action must be non nil";
  17868. return this.d(a.ap()) ? (this.q = a, !0) : !1
  17869. },
  17870. j: function() {
  17871. var a = new b.Na;
  17872. a.$(this.q.j());
  17873. return a
  17874. },
  17875. v: function(a) {
  17876. b.u.prototype.v.call(this, a);
  17877. this.q.v(this.target)
  17878. },
  17879. stop: function() {
  17880. this.q.stop();
  17881. b.u.prototype.stop.call(this)
  17882. },
  17883. update: function(a) {
  17884. this.q.update(a)
  17885. },
  17886. reverse: function() {
  17887. return b.Na.create(this.q.reverse())
  17888. },
  17889. EE: function() {
  17890. return this.q
  17891. }
  17892. });
  17893. b.VY = function(a) {
  17894. return new b.Na(a)
  17895. };
  17896. b.Na.create = b.VY;
  17897. b.ul = b.Na.extend({
  17898. Zb: 0,
  17899. ctor: function(a, c) {
  17900. b.Na.prototype.ctor.call(this);
  17901. void 0 !== c && this.$(a, c)
  17902. },
  17903. tja: function(a) {
  17904. this.Zb = a
  17905. },
  17906. Kca: function() {
  17907. return this.Zb
  17908. },
  17909. $: function(a, c) {
  17910. return b.Na.prototype.$.call(this, a) ? (this.Zb = c, !0) : !1
  17911. },
  17912. j: function() {
  17913. var a = new b.ul;
  17914. a.$(this.q.j(), this.Zb);
  17915. return a
  17916. },
  17917. reverse: function() {
  17918. return b.ul.create(this.q.reverse(), 1 / this.Zb)
  17919. }
  17920. });
  17921. b.n_ = function(a, c) {
  17922. return new b.ul(a, c)
  17923. };
  17924. b.ul.create = b.n_;
  17925. b.Ht = b.ul.extend({
  17926. update: function(a) {
  17927. this.q.update(Math.pow(a, this.Zb))
  17928. },
  17929. reverse: function() {
  17930. return b.Ht.create(this.q.reverse(), 1 / this.Zb)
  17931. },
  17932. j: function() {
  17933. var a = new b.Ht;
  17934. a.$(this.q.j(), this.Zb);
  17935. return a
  17936. }
  17937. });
  17938. b.Ht.create = function(a, c) {
  17939. return new b.Ht(a, c)
  17940. };
  17941. b.k_ = function(a) {
  17942. return {
  17943. Zb: a,
  17944. Qa: function(a) {
  17945. return Math.pow(a, this.Zb)
  17946. },
  17947. reverse: function() {
  17948. return b.k_(1 / this.Zb)
  17949. }
  17950. }
  17951. };
  17952. b.tl = b.ul.extend({
  17953. update: function(a) {
  17954. this.q.update(Math.pow(a, 1 / this.Zb))
  17955. },
  17956. reverse: function() {
  17957. return b.tl.create(this.q.reverse(), 1 / this.Zb)
  17958. },
  17959. j: function() {
  17960. var a = new b.tl;
  17961. a.$(this.q.j(), this.Zb);
  17962. return a
  17963. }
  17964. });
  17965. b.tl.create = function(a, c) {
  17966. return new b.tl(a, c)
  17967. };
  17968. b.m_ = function(a) {
  17969. return {
  17970. Zb: a,
  17971. Qa: function(a) {
  17972. return Math.pow(a, 1 / this.Zb)
  17973. },
  17974. reverse: function() {
  17975. return b.m_(1 / this.Zb)
  17976. }
  17977. }
  17978. };
  17979. b.Wp = b.ul.extend({
  17980. update: function(a) {
  17981. a *= 2;
  17982. 1 > a ? this.q.update(0.5 * Math.pow(a, this.Zb)) : this.q.update(1 - 0.5 * Math.pow(2 - a, this.Zb))
  17983. },
  17984. j: function() {
  17985. var a = new b.Wp;
  17986. a.$(this.q.j(), this.Zb);
  17987. return a
  17988. },
  17989. reverse: function() {
  17990. return b.Wp.create(this.q.reverse(), this.Zb)
  17991. }
  17992. });
  17993. b.Wp.create = function(a, c) {
  17994. return new b.Wp(a, c)
  17995. };
  17996. b.l_ = function(a) {
  17997. return {
  17998. Zb: a,
  17999. Qa: function(a) {
  18000. a *= 2;
  18001. return 1 > a ? 0.5 * Math.pow(a, this.Zb) : 1 - 0.5 * Math.pow(2 - a, this.Zb)
  18002. },
  18003. reverse: function() {
  18004. return b.l_(this.Zb)
  18005. }
  18006. }
  18007. };
  18008. b.Et = b.Na.extend({
  18009. update: function(a) {
  18010. this.q.update(0 === a ? 0 : Math.pow(2, 10 * (a - 1)))
  18011. },
  18012. reverse: function() {
  18013. return b.Gt.create(this.q.reverse())
  18014. },
  18015. j: function() {
  18016. var a = new b.Et;
  18017. a.$(this.q.j());
  18018. return a
  18019. }
  18020. });
  18021. b.Et.create = function(a) {
  18022. return new b.Et(a)
  18023. };
  18024. b.vJ = {
  18025. Qa: function(a) {
  18026. return 0 === a ? 0 : Math.pow(2, 10 * (a - 1))
  18027. },
  18028. reverse: function() {
  18029. return b.xJ
  18030. }
  18031. };
  18032. b.oaa = function() {
  18033. return b.vJ
  18034. };
  18035. b.Gt = b.Na.extend({
  18036. update: function(a) {
  18037. this.q.update(1 == a ? 1 : -Math.pow(2, -10 * a) + 1)
  18038. },
  18039. reverse: function() {
  18040. return b.Et.create(this.q.reverse())
  18041. },
  18042. j: function() {
  18043. var a = new b.Gt;
  18044. a.$(this.q.j());
  18045. return a
  18046. }
  18047. });
  18048. b.Gt.create = function(a) {
  18049. return new b.Gt(a)
  18050. };
  18051. b.xJ = {
  18052. Qa: function(a) {
  18053. return 1 == a ? 1 : -Math.pow(2, -10 * a) + 1
  18054. },
  18055. reverse: function() {
  18056. return b.vJ
  18057. }
  18058. };
  18059. b.qaa = function() {
  18060. return b.xJ
  18061. };
  18062. b.Ft = b.Na.extend({
  18063. update: function(a) {
  18064. 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));
  18065. this.q.update(a)
  18066. },
  18067. reverse: function() {
  18068. return b.Ft.create(this.q.reverse())
  18069. },
  18070. j: function() {
  18071. var a = new b.Ft;
  18072. a.$(this.q.j());
  18073. return a
  18074. }
  18075. });
  18076. b.Ft.create = function(a) {
  18077. return new b.Ft(a)
  18078. };
  18079. b.wJ = {
  18080. Qa: function(a) {
  18081. 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
  18082. },
  18083. reverse: function() {
  18084. return b.wJ
  18085. }
  18086. };
  18087. b.paa = function() {
  18088. return b.wJ
  18089. };
  18090. b.It = b.Na.extend({
  18091. update: function(a) {
  18092. a = 0 === a || 1 === a ? a : -1 * Math.cos(a * Math.PI / 2) + 1;
  18093. this.q.update(a)
  18094. },
  18095. reverse: function() {
  18096. return b.Kt.create(this.q.reverse())
  18097. },
  18098. j: function() {
  18099. var a = new b.It;
  18100. a.$(this.q.j());
  18101. return a
  18102. }
  18103. });
  18104. b.It.create = function(a) {
  18105. return new b.It(a)
  18106. };
  18107. b.HJ = {
  18108. Qa: function(a) {
  18109. return 0 === a || 1 === a ? a : -1 * Math.cos(a * Math.PI / 2) + 1
  18110. },
  18111. reverse: function() {
  18112. return b.JJ
  18113. }
  18114. };
  18115. b.Aaa = function() {
  18116. return b.HJ
  18117. };
  18118. b.Kt = b.Na.extend({
  18119. update: function(a) {
  18120. a = 0 === a || 1 === a ? a : Math.sin(a * Math.PI / 2);
  18121. this.q.update(a)
  18122. },
  18123. reverse: function() {
  18124. return b.It.create(this.q.reverse())
  18125. },
  18126. j: function() {
  18127. var a = new b.Kt;
  18128. a.$(this.q.j());
  18129. return a
  18130. }
  18131. });
  18132. b.Kt.create = function(a) {
  18133. return new b.Kt(a)
  18134. };
  18135. b.JJ = {
  18136. Qa: function(a) {
  18137. return 0 === a || 1 == a ? a : Math.sin(a * Math.PI / 2)
  18138. },
  18139. reverse: function() {
  18140. return b.HJ
  18141. }
  18142. };
  18143. b.Caa = function() {
  18144. return b.JJ
  18145. };
  18146. b.Jt = b.Na.extend({
  18147. update: function(a) {
  18148. a = 0 === a || 1 === a ? a : -0.5 * (Math.cos(Math.PI * a) - 1);
  18149. this.q.update(a)
  18150. },
  18151. j: function() {
  18152. var a = new b.Jt;
  18153. a.$(this.q.j());
  18154. return a
  18155. },
  18156. reverse: function() {
  18157. return b.Jt.create(this.q.reverse())
  18158. }
  18159. });
  18160. b.Jt.create = function(a) {
  18161. return new b.Jt(a)
  18162. };
  18163. b.IJ = {
  18164. Qa: function(a) {
  18165. return 0 === a || 1 === a ? a : -0.5 * (Math.cos(Math.PI * a) - 1)
  18166. },
  18167. reverse: function() {
  18168. return b.IJ
  18169. }
  18170. };
  18171. b.Baa = function() {
  18172. return b.IJ
  18173. };
  18174. b.gn = b.Na.extend({
  18175. Cb: 0.3,
  18176. ctor: function(a, c) {
  18177. b.Na.prototype.ctor.call(this);
  18178. a && this.$(a, c)
  18179. },
  18180. Cca: function() {
  18181. return this.Cb
  18182. },
  18183. pja: function(a) {
  18184. this.Cb = a
  18185. },
  18186. $: function(a, c) {
  18187. b.Na.prototype.$.call(this, a);
  18188. this.Cb = null == c ? 0.3 : c;
  18189. return !0
  18190. },
  18191. reverse: function() {
  18192. b.log("cc.EaseElastic.reverse(): it should be overridden in subclass.");
  18193. return null
  18194. },
  18195. j: function() {
  18196. var a = new b.gn;
  18197. a.$(this.q.j(), this.Cb);
  18198. return a
  18199. }
  18200. });
  18201. b.gn.create = function(a, c) {
  18202. return new b.gn(a, c)
  18203. };
  18204. b.Bt = b.gn.extend({
  18205. update: function(a) {
  18206. var c = 0;
  18207. 0 === a || 1 === a ? c = a : (c = this.Cb / 4, a -= 1, c = -Math.pow(2, 10 * a) * Math.sin((a - c) * Math.PI * 2 / this.Cb));
  18208. this.q.update(c)
  18209. },
  18210. reverse: function() {
  18211. return b.Dt.create(this.q.reverse(), this.Cb)
  18212. },
  18213. j: function() {
  18214. var a = new b.Bt;
  18215. a.$(this.q.j(), this.Cb);
  18216. return a
  18217. }
  18218. });
  18219. b.Bt.create = function(a, c) {
  18220. return new b.Bt(a, c)
  18221. };
  18222. b.tJ = {
  18223. Qa: function(a) {
  18224. if (0 === a || 1 === a) return a;
  18225. a -= 1;
  18226. return -Math.pow(2, 10 * a) * Math.sin((a - 0.075) * Math.PI * 2 / 0.3)
  18227. },
  18228. reverse: function() {
  18229. return b.uJ
  18230. }
  18231. };
  18232. b.h_ = function(a) {
  18233. return a && 0.3 !== a ? {
  18234. Cb: a,
  18235. Qa: function(a) {
  18236. if (0 === a || 1 === a) return a;
  18237. a -= 1;
  18238. return -Math.pow(2, 10 * a) * Math.sin((a - this.Cb / 4) * Math.PI * 2 / this.Cb)
  18239. },
  18240. reverse: function() {
  18241. return b.j_(this.Cb)
  18242. }
  18243. } : b.tJ
  18244. };
  18245. b.Dt = b.gn.extend({
  18246. update: function(a) {
  18247. var c = 0,
  18248. c = 0 === a || 1 == a ? a : Math.pow(2, -10 * a) * Math.sin((a - this.Cb / 4) * Math.PI * 2 / this.Cb) + 1;
  18249. this.q.update(c)
  18250. },
  18251. reverse: function() {
  18252. return b.Bt.create(this.q.reverse(), this.Cb)
  18253. },
  18254. j: function() {
  18255. var a = new b.Dt;
  18256. a.$(this.q.j(), this.Cb);
  18257. return a
  18258. }
  18259. });
  18260. b.Dt.create = function(a, c) {
  18261. return new b.Dt(a, c)
  18262. };
  18263. b.uJ = {
  18264. Qa: function(a) {
  18265. return 0 === a || 1 === a ? a : Math.pow(2, -10 * a) * Math.sin((a - 0.075) * Math.PI * 2 / 0.3) + 1
  18266. },
  18267. reverse: function() {
  18268. return b.tJ
  18269. }
  18270. };
  18271. b.j_ = function(a) {
  18272. return a && 0.3 !== a ? {
  18273. Cb: a,
  18274. Qa: function(a) {
  18275. return 0 === a || 1 === a ? a : Math.pow(2, -10 * a) * Math.sin((a - this.Cb / 4) * Math.PI * 2 / this.Cb) + 1
  18276. },
  18277. reverse: function() {
  18278. return b.h_(this.Cb)
  18279. }
  18280. } : b.uJ
  18281. };
  18282. b.Ct = b.gn.extend({
  18283. update: function(a) {
  18284. var c = 0,
  18285. c = this.Cb;
  18286. if (0 === a || 1 == a) c = a;
  18287. else {
  18288. c || (c = this.Cb = 0.3 * 1.5);
  18289. var d = c / 4;
  18290. a = 2 * a - 1;
  18291. c = 0 > a ? -0.5 * Math.pow(2, 10 * a) * Math.sin((a - d) * Math.PI * 2 / c) : Math.pow(2, -10 * a) * Math.sin((a - d) * Math.PI * 2 / c) * 0.5 + 1
  18292. }
  18293. this.q.update(c)
  18294. },
  18295. reverse: function() {
  18296. return b.Ct.create(this.q.reverse(), this.Cb)
  18297. },
  18298. j: function() {
  18299. var a = new b.Ct;
  18300. a.$(this.q.j(), this.Cb);
  18301. return a
  18302. }
  18303. });
  18304. b.Ct.create = function(a, c) {
  18305. return new b.Ct(a, c)
  18306. };
  18307. b.i_ = function(a) {
  18308. return {
  18309. Cb: a || 0.3,
  18310. Qa: function(a) {
  18311. var d = 0,
  18312. d = this.Cb;
  18313. if (0 === a || 1 === a) d = a;
  18314. else {
  18315. d || (d = this.Cb = 0.3 * 1.5);
  18316. var e = d / 4;
  18317. a = 2 * a - 1;
  18318. 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
  18319. }
  18320. return d
  18321. },
  18322. reverse: function() {
  18323. return b.i_(this.Cb)
  18324. }
  18325. }
  18326. };
  18327. b.sl = b.Na.extend({
  18328. Bw: function(a) {
  18329. if (a < 1 / 2.75) return 7.5625 * a * a;
  18330. if (a < 2 / 2.75) return a -= 1.5 / 2.75, 7.5625 * a * a + 0.75;
  18331. if (a < 2.5 / 2.75) return a -= 2.25 / 2.75, 7.5625 * a * a + 0.9375;
  18332. a -= 2.625 / 2.75;
  18333. return 7.5625 * a * a + 0.984375
  18334. },
  18335. j: function() {
  18336. var a = new b.sl;
  18337. a.$(this.q.j());
  18338. return a
  18339. },
  18340. reverse: function() {
  18341. return b.sl.create(this.q.reverse())
  18342. }
  18343. });
  18344. b.sl.create = function(a) {
  18345. return new b.sl(a)
  18346. };
  18347. b.yt = b.sl.extend({
  18348. update: function(a) {
  18349. this.q.update(1 - this.Bw(1 - a))
  18350. },
  18351. reverse: function() {
  18352. return b.At.create(this.q.reverse())
  18353. },
  18354. j: function() {
  18355. var a = new b.yt;
  18356. a.$(this.q.j());
  18357. return a
  18358. }
  18359. });
  18360. b.yt.create = function(a) {
  18361. return new b.yt(a)
  18362. };
  18363. b.Eu = function(a) {
  18364. if (a < 1 / 2.75) return 7.5625 * a * a;
  18365. if (a < 2 / 2.75) return a -= 1.5 / 2.75, 7.5625 * a * a + 0.75;
  18366. if (a < 2.5 / 2.75) return a -= 2.25 / 2.75, 7.5625 * a * a + 0.9375;
  18367. a -= 2.625 / 2.75;
  18368. return 7.5625 * a * a + 0.984375
  18369. };
  18370. b.kJ = {
  18371. Qa: function(a) {
  18372. return 1 - b.Eu(1 - a)
  18373. },
  18374. reverse: function() {
  18375. return b.mJ
  18376. }
  18377. };
  18378. b.faa = function() {
  18379. return b.kJ
  18380. };
  18381. b.At = b.sl.extend({
  18382. update: function(a) {
  18383. this.q.update(this.Bw(a))
  18384. },
  18385. reverse: function() {
  18386. return b.yt.create(this.q.reverse())
  18387. },
  18388. j: function() {
  18389. var a = new b.At;
  18390. a.$(this.q.j());
  18391. return a
  18392. }
  18393. });
  18394. b.At.create = function(a) {
  18395. return new b.At(a)
  18396. };
  18397. b.mJ = {
  18398. Qa: function(a) {
  18399. return b.Eu(a)
  18400. },
  18401. reverse: function() {
  18402. return b.kJ
  18403. }
  18404. };
  18405. b.haa = function() {
  18406. return b.mJ
  18407. };
  18408. b.zt = b.sl.extend({
  18409. update: function(a) {
  18410. var c = 0,
  18411. c = 0.5 > a ? 0.5 * (1 - this.Bw(1 - 2 * a)) : 0.5 * this.Bw(2 * a - 1) + 0.5;
  18412. this.q.update(c)
  18413. },
  18414. j: function() {
  18415. var a = new b.zt;
  18416. a.$(this.q.j());
  18417. return a
  18418. },
  18419. reverse: function() {
  18420. return b.zt.create(this.q.reverse())
  18421. }
  18422. });
  18423. b.zt.create = function(a) {
  18424. return new b.zt(a)
  18425. };
  18426. b.lJ = {
  18427. Qa: function(a) {
  18428. return a = 0.5 > a ? 0.5 * (1 - b.Eu(1 - 2 * a)) : 0.5 * b.Eu(2 * a - 1) + 0.5
  18429. },
  18430. reverse: function() {
  18431. return b.lJ
  18432. }
  18433. };
  18434. b.gaa = function() {
  18435. return b.lJ
  18436. };
  18437. b.vt = b.Na.extend({
  18438. update: function(a) {
  18439. this.q.update(0 === a || 1 == a ? a : a * a * (2.70158 * a - 1.70158))
  18440. },
  18441. reverse: function() {
  18442. return b.xt.create(this.q.reverse())
  18443. },
  18444. j: function() {
  18445. var a = new b.vt;
  18446. a.$(this.q.j());
  18447. return a
  18448. }
  18449. });
  18450. b.vt.create = function(a) {
  18451. return new b.vt(a)
  18452. };
  18453. b.hJ = {
  18454. Qa: function(a) {
  18455. return 0 === a || 1 === a ? a : a * a * (2.70158 * a - 1.70158)
  18456. },
  18457. reverse: function() {
  18458. return b.jJ
  18459. }
  18460. };
  18461. b.caa = function() {
  18462. return b.hJ
  18463. };
  18464. b.xt = b.Na.extend({
  18465. update: function(a) {
  18466. a -= 1;
  18467. this.q.update(a * a * (2.70158 * a + 1.70158) + 1)
  18468. },
  18469. reverse: function() {
  18470. return b.vt.create(this.q.reverse())
  18471. },
  18472. j: function() {
  18473. var a = new b.xt;
  18474. a.$(this.q.j());
  18475. return a
  18476. }
  18477. });
  18478. b.xt.create = function(a) {
  18479. return new b.xt(a)
  18480. };
  18481. b.jJ = {
  18482. Qa: function(a) {
  18483. a -= 1;
  18484. return a * a * (2.70158 * a + 1.70158) + 1
  18485. },
  18486. reverse: function() {
  18487. return b.hJ
  18488. }
  18489. };
  18490. b.eaa = function() {
  18491. return b.jJ
  18492. };
  18493. b.wt = b.Na.extend({
  18494. update: function(a) {
  18495. a *= 2;
  18496. 1 > a ? this.q.update(a * a * (3.5949095 * a - 2.5949095) / 2) : (a -= 2, this.q.update(a * a * (3.5949095 * a + 2.5949095) / 2 + 1))
  18497. },
  18498. j: function() {
  18499. var a = new b.wt;
  18500. a.$(this.q.j());
  18501. return a
  18502. },
  18503. reverse: function() {
  18504. return b.wt.create(this.q.reverse())
  18505. }
  18506. });
  18507. b.wt.create = function(a) {
  18508. return new b.wt(a)
  18509. };
  18510. b.iJ = {
  18511. Qa: function(a) {
  18512. a *= 2;
  18513. if (1 > a) return a * a * (3.5949095 * a - 2.5949095) / 2;
  18514. a -= 2;
  18515. return a * a * (3.5949095 * a + 2.5949095) / 2 + 1
  18516. },
  18517. reverse: function() {
  18518. return b.iJ
  18519. }
  18520. };
  18521. b.daa = function() {
  18522. return b.iJ
  18523. };
  18524. b.Pp = b.Na.extend({
  18525. Dv: null,
  18526. Ev: null,
  18527. Fv: null,
  18528. Gv: null,
  18529. ctor: function(a) {
  18530. b.Na.prototype.ctor.call(this, a)
  18531. },
  18532. na: function(a, c, d, e, f) {
  18533. return Math.pow(1 - f, 3) * a + 3 * f * Math.pow(1 - f, 2) * c + 3 * Math.pow(f, 2) * (1 - f) * d + Math.pow(f, 3) * e
  18534. },
  18535. update: function(a) {
  18536. this.q.update(this.na(this.Dv, this.Ev, this.Fv, this.Gv, a))
  18537. },
  18538. j: function() {
  18539. var a = new b.Pp;
  18540. a.$(this.q.j());
  18541. a.YO(this.Dv, this.Ev, this.Fv, this.Gv);
  18542. return a
  18543. },
  18544. reverse: function() {
  18545. var a = b.Pp.create(this.q.reverse());
  18546. a.YO(this.Gv, this.Fv, this.Ev, this.Dv);
  18547. return a
  18548. },
  18549. YO: function(a, c,
  18550. d, e) {
  18551. this.Dv = a || 0;
  18552. this.Ev = c || 0;
  18553. this.Fv = d || 0;
  18554. this.Gv = e || 0
  18555. }
  18556. });
  18557. b.Pp.create = function(a) {
  18558. return new b.Pp(a)
  18559. };
  18560. b.g_ = function(a, c, d, e) {
  18561. return {
  18562. Qa: function(f) {
  18563. return b.Pp.prototype.na(a, c, d, e, f)
  18564. },
  18565. reverse: function() {
  18566. return b.g_(e, d, c, a)
  18567. }
  18568. }
  18569. };
  18570. b.Xp = b.Na.extend({
  18571. na: function(a) {
  18572. return Math.pow(a, 2)
  18573. },
  18574. update: function(a) {
  18575. this.q.update(this.na(a))
  18576. },
  18577. j: function() {
  18578. var a = new b.Xp;
  18579. a.$(this.q.j());
  18580. return a
  18581. },
  18582. reverse: function() {
  18583. return b.Xp.create(this.q.reverse())
  18584. }
  18585. });
  18586. b.Xp.create = function(a) {
  18587. return new b.Xp(a)
  18588. };
  18589. b.yJ = {
  18590. Qa: b.Xp.prototype.na,
  18591. reverse: function() {
  18592. return b.yJ
  18593. }
  18594. };
  18595. b.raa = function() {
  18596. return b.yJ
  18597. };
  18598. b.Zp = b.Na.extend({
  18599. na: function(a) {
  18600. return -a * (a - 2)
  18601. },
  18602. update: function(a) {
  18603. this.q.update(this.na(a))
  18604. },
  18605. j: function() {
  18606. var a = new b.Zp;
  18607. a.$();
  18608. return a
  18609. },
  18610. reverse: function() {
  18611. return b.Zp.create(this.q.reverse())
  18612. }
  18613. });
  18614. b.Zp.create = function(a) {
  18615. return new b.Zp(a)
  18616. };
  18617. b.AJ = {
  18618. Qa: b.Zp.prototype.na,
  18619. reverse: function() {
  18620. return b.AJ
  18621. }
  18622. };
  18623. b.taa = function() {
  18624. return b.AJ
  18625. };
  18626. b.Yp = b.Na.extend({
  18627. na: function(a) {
  18628. var c = a;
  18629. a *= 2;
  18630. 1 > a ? c = a * a * 0.5 : (--a, c = -0.5 * (a * (a - 2) - 1));
  18631. return c
  18632. },
  18633. update: function(a) {
  18634. this.q.update(this.na(a))
  18635. },
  18636. j: function() {
  18637. var a = new b.Yp;
  18638. a.$(this.q.j());
  18639. return a
  18640. },
  18641. reverse: function() {
  18642. return b.Yp.create(this.q.reverse())
  18643. }
  18644. });
  18645. b.Yp.create = function(a) {
  18646. return new b.Yp(a)
  18647. };
  18648. b.zJ = {
  18649. Qa: b.Yp.prototype.na,
  18650. reverse: function() {
  18651. return b.zJ
  18652. }
  18653. };
  18654. b.saa = function() {
  18655. return b.zJ
  18656. };
  18657. b.$p = b.Na.extend({
  18658. na: function(a) {
  18659. return a * a * a * a
  18660. },
  18661. update: function(a) {
  18662. this.q.update(this.na(a))
  18663. },
  18664. j: function() {
  18665. var a = new b.$p;
  18666. a.$(this.q.j());
  18667. return a
  18668. },
  18669. reverse: function() {
  18670. return b.$p.create(this.q.reverse())
  18671. }
  18672. });
  18673. b.$p.create = function(a) {
  18674. return new b.$p(a)
  18675. };
  18676. b.BJ = {
  18677. Qa: b.$p.prototype.na,
  18678. reverse: function() {
  18679. return b.BJ
  18680. }
  18681. };
  18682. b.uaa = function() {
  18683. return b.BJ
  18684. };
  18685. b.bq = b.Na.extend({
  18686. na: function(a) {
  18687. a -= 1;
  18688. return -(a * a * a * a - 1)
  18689. },
  18690. update: function(a) {
  18691. this.q.update(this.na(a))
  18692. },
  18693. j: function() {
  18694. var a = new b.bq;
  18695. a.$(this.q.j());
  18696. return a
  18697. },
  18698. reverse: function() {
  18699. return b.bq.create(this.q.reverse())
  18700. }
  18701. });
  18702. b.bq.create = function(a) {
  18703. return new b.bq(a)
  18704. };
  18705. b.DJ = {
  18706. Qa: b.bq.prototype.na,
  18707. reverse: function() {
  18708. return b.DJ
  18709. }
  18710. };
  18711. b.waa = function() {
  18712. return b.DJ
  18713. };
  18714. b.aq = b.Na.extend({
  18715. na: function(a) {
  18716. a *= 2;
  18717. if (1 > a) return 0.5 * a * a * a * a;
  18718. a -= 2;
  18719. return -0.5 * (a * a * a * a - 2)
  18720. },
  18721. update: function(a) {
  18722. this.q.update(this.na(a))
  18723. },
  18724. j: function() {
  18725. var a = new b.aq;
  18726. a.$(this.q.j());
  18727. return a
  18728. },
  18729. reverse: function() {
  18730. return b.aq.create(this.q.reverse())
  18731. }
  18732. });
  18733. b.aq.create = function(a) {
  18734. return new b.aq(a)
  18735. };
  18736. b.CJ = {
  18737. Qa: b.aq.prototype.na,
  18738. reverse: function() {
  18739. return b.CJ
  18740. }
  18741. };
  18742. b.vaa = function() {
  18743. return b.CJ
  18744. };
  18745. b.cq = b.Na.extend({
  18746. na: function(a) {
  18747. return a * a * a * a * a
  18748. },
  18749. update: function(a) {
  18750. this.q.update(this.na(a))
  18751. },
  18752. j: function() {
  18753. var a = new b.cq;
  18754. a.$(this.q.j());
  18755. return a
  18756. },
  18757. reverse: function() {
  18758. return b.cq.create(this.q.reverse())
  18759. }
  18760. });
  18761. b.cq.create = function(a) {
  18762. return new b.cq(a)
  18763. };
  18764. b.EJ = {
  18765. Qa: b.cq.prototype.na,
  18766. reverse: function() {
  18767. return b.EJ
  18768. }
  18769. };
  18770. b.xaa = function() {
  18771. return b.EJ
  18772. };
  18773. b.eq = b.Na.extend({
  18774. na: function(a) {
  18775. a -= 1;
  18776. return a * a * a * a * a + 1
  18777. },
  18778. update: function(a) {
  18779. this.q.update(this.na(a))
  18780. },
  18781. j: function() {
  18782. var a = new b.eq;
  18783. a.$(this.q.j());
  18784. return a
  18785. },
  18786. reverse: function() {
  18787. return b.eq.create(this.q.reverse())
  18788. }
  18789. });
  18790. b.eq.create = function(a) {
  18791. return new b.eq(a)
  18792. };
  18793. b.GJ = {
  18794. Qa: b.eq.prototype.na,
  18795. reverse: function() {
  18796. return b.GJ
  18797. }
  18798. };
  18799. b.zaa = function() {
  18800. return b.GJ
  18801. };
  18802. b.dq = b.Na.extend({
  18803. na: function(a) {
  18804. a *= 2;
  18805. if (1 > a) return 0.5 * a * a * a * a * a;
  18806. a -= 2;
  18807. return 0.5 * (a * a * a * a * a + 2)
  18808. },
  18809. update: function(a) {
  18810. this.q.update(this.na(a))
  18811. },
  18812. j: function() {
  18813. var a = new b.dq;
  18814. a.$(this.q.j());
  18815. return a
  18816. },
  18817. reverse: function() {
  18818. return b.dq.create(this.q.reverse())
  18819. }
  18820. });
  18821. b.dq.create = function(a) {
  18822. return new b.dq(a)
  18823. };
  18824. b.FJ = {
  18825. Qa: b.dq.prototype.na,
  18826. reverse: function() {
  18827. return b.FJ
  18828. }
  18829. };
  18830. b.yaa = function() {
  18831. return b.FJ
  18832. };
  18833. b.Qp = b.Na.extend({
  18834. na: function(a) {
  18835. return -1 * (Math.sqrt(1 - a * a) - 1)
  18836. },
  18837. update: function(a) {
  18838. this.q.update(this.na(a))
  18839. },
  18840. j: function() {
  18841. var a = new b.Qp;
  18842. a.$(this.q.j());
  18843. return a
  18844. },
  18845. reverse: function() {
  18846. return b.Qp.create(this.q.reverse())
  18847. }
  18848. });
  18849. b.Qp.create = function(a) {
  18850. return new b.Qp(a)
  18851. };
  18852. b.nJ = {
  18853. Qa: b.Qp.prototype.na,
  18854. reverse: function() {
  18855. return b.nJ
  18856. }
  18857. };
  18858. b.iaa = function() {
  18859. return b.nJ
  18860. };
  18861. b.Sp = b.Na.extend({
  18862. na: function(a) {
  18863. a -= 1;
  18864. return Math.sqrt(1 - a * a)
  18865. },
  18866. update: function(a) {
  18867. this.q.update(this.na(a))
  18868. },
  18869. j: function() {
  18870. var a = new b.Sp;
  18871. a.$(this.q.j());
  18872. return a
  18873. },
  18874. reverse: function() {
  18875. return b.Sp.create(this.q.reverse())
  18876. }
  18877. });
  18878. b.Sp.create = function(a) {
  18879. return new b.Sp(a)
  18880. };
  18881. b.pJ = {
  18882. Qa: b.Sp.prototype.na,
  18883. reverse: function() {
  18884. return b.pJ
  18885. }
  18886. };
  18887. b.kaa = function() {
  18888. return b.pJ
  18889. };
  18890. b.Rp = b.Na.extend({
  18891. na: function(a) {
  18892. a *= 2;
  18893. if (1 > a) return -0.5 * (Math.sqrt(1 - a * a) - 1);
  18894. a -= 2;
  18895. return 0.5 * (Math.sqrt(1 - a * a) + 1)
  18896. },
  18897. update: function(a) {
  18898. this.q.update(this.na(a))
  18899. },
  18900. j: function() {
  18901. var a = new b.Rp;
  18902. a.$(this.q.j());
  18903. return a
  18904. },
  18905. reverse: function() {
  18906. return b.Rp.create(this.q.reverse())
  18907. }
  18908. });
  18909. b.Rp.create = function(a) {
  18910. return new b.Rp(a)
  18911. };
  18912. b.oJ = {
  18913. Qa: b.Rp.prototype.na,
  18914. reverse: function() {
  18915. return b.oJ
  18916. }
  18917. };
  18918. b.jaa = function() {
  18919. return b.oJ
  18920. };
  18921. b.Tp = b.Na.extend({
  18922. na: function(a) {
  18923. return a * a * a
  18924. },
  18925. update: function(a) {
  18926. this.q.update(this.na(a))
  18927. },
  18928. j: function() {
  18929. var a = new b.Tp;
  18930. a.$(this.q.j());
  18931. return a
  18932. },
  18933. reverse: function() {
  18934. return b.Tp.create(this.q.reverse())
  18935. }
  18936. });
  18937. b.Tp.create = function(a) {
  18938. return new b.Tp(a)
  18939. };
  18940. b.qJ = {
  18941. Qa: b.Tp.prototype.na,
  18942. reverse: function() {
  18943. return b.qJ
  18944. }
  18945. };
  18946. b.laa = function() {
  18947. return b.qJ
  18948. };
  18949. b.Vp = b.Na.extend({
  18950. na: function(a) {
  18951. a -= 1;
  18952. return a * a * a + 1
  18953. },
  18954. update: function(a) {
  18955. this.q.update(this.na(a))
  18956. },
  18957. j: function() {
  18958. var a = new b.Vp;
  18959. a.$(this.q.j());
  18960. return a
  18961. },
  18962. reverse: function() {
  18963. return b.Vp.create(this.q.reverse())
  18964. }
  18965. });
  18966. b.Vp.create = function(a) {
  18967. return new b.Vp(a)
  18968. };
  18969. b.sJ = {
  18970. Qa: b.Vp.prototype.na,
  18971. reverse: function() {
  18972. return b.sJ
  18973. }
  18974. };
  18975. b.naa = function() {
  18976. return b.sJ
  18977. };
  18978. b.Up = b.Na.extend({
  18979. na: function(a) {
  18980. a *= 2;
  18981. if (1 > a) return 0.5 * a * a * a;
  18982. a -= 2;
  18983. return 0.5 * (a * a * a + 2)
  18984. },
  18985. update: function(a) {
  18986. this.q.update(this.na(a))
  18987. },
  18988. j: function() {
  18989. var a = new b.Up;
  18990. a.$(this.q.j());
  18991. return a
  18992. },
  18993. reverse: function() {
  18994. return b.Up.create(this.q.reverse())
  18995. }
  18996. });
  18997. b.Up.create = function(a) {
  18998. return new b.Up(a)
  18999. };
  19000. b.rJ = {
  19001. Qa: b.Up.prototype.na,
  19002. reverse: function() {
  19003. return b.rJ
  19004. }
  19005. };
  19006. b.maa = function() {
  19007. return b.rJ
  19008. };
  19009. b.bE = function(a, c, d, e, f, g) {
  19010. var h = g * g,
  19011. k = h * g,
  19012. m = (1 - f) / 2;
  19013. f = m * (-k + 2 * h - g);
  19014. var p = m * (-k + h) + (2 * k - 3 * h + 1);
  19015. g = m * (k - 2 * h + g) + (-2 * k + 3 * h);
  19016. h = m * (k - h);
  19017. return C(a.x * f + c.x * p + d.x * g + e.x * h, a.y * f + c.y * p + d.y * g + e.y * h)
  19018. };
  19019. b.QO = function(a) {
  19020. for (var c = [], d = a.length - 1; 0 <= d; d--) c.push(C(a[d].x, a[d].y));
  19021. return c
  19022. };
  19023. b.Gw = function(a) {
  19024. for (var c = [], d = 0; d < a.length; d++) c.push(C(a[d].x, a[d].y));
  19025. return c
  19026. };
  19027. b.gd = function(a, c) {
  19028. var d = Math.min(a.length - 1, Math.max(c, 0));
  19029. return a[d]
  19030. };
  19031. b.Xha = function(a) {
  19032. for (var c = a.length, d = 0 | c / 2, e = 0; e < d; ++e) {
  19033. var f = a[e];
  19034. a[e] = a[c - e - 1];
  19035. a[c - e - 1] = f
  19036. }
  19037. };
  19038. b.Ri = b.u.extend({
  19039. mh: null,
  19040. cJ: 0,
  19041. Ao: 0,
  19042. Tc: null,
  19043. II: null,
  19044. ctor: function(a, c, d) {
  19045. b.u.prototype.ctor.call(this);
  19046. this.mh = [];
  19047. void 0 !== d && this.d(a, c, d)
  19048. },
  19049. d: function(a, c, d) {
  19050. if (!c || 0 == c.length) throw "Invalid configuration. It must at least have one control point";
  19051. return b.u.prototype.d.call(this, a) ? (this.p4(c), this.Ao = d, !0) : !1
  19052. },
  19053. j: function() {
  19054. var a = new b.Ri;
  19055. a.d(this.o, b.Gw(this.mh), this.Ao);
  19056. return a
  19057. },
  19058. v: function(a) {
  19059. b.u.prototype.v.call(this, a);
  19060. this.cJ = 1 / (this.mh.length - 1);
  19061. this.Tc = C(this.target.Gd(), this.target.tf());
  19062. this.II = C(0, 0)
  19063. },
  19064. update: function(a) {
  19065. a = this.kd(a);
  19066. var c, d = this.mh;
  19067. if (1 == a) c = d.length - 1, a = 1;
  19068. else {
  19069. var e = this.cJ;
  19070. c = 0 | a / e;
  19071. a = (a - e * c) / e
  19072. }
  19073. c = b.bE(b.gd(d, c - 1), b.gd(d, c - 0), b.gd(d, c + 1), b.gd(d, c + 2), this.Ao, a);
  19074. b.st && (d = this.target.Gd() - this.Tc.x, a = this.target.tf() - this.Tc.y, 0 != d || 0 != a) && (e = this.II, d = e.x + d, a = e.y + a, e.x = d, e.y = a, c.x += d, c.y += a);
  19075. this.VP(c)
  19076. },
  19077. reverse: function() {
  19078. var a = b.QO(this.mh);
  19079. return b.kM(this.o, a, this.Ao)
  19080. },
  19081. VP: function(a) {
  19082. this.target.P(a);
  19083. this.Tc = a
  19084. },
  19085. Dca: function() {
  19086. return this.mh
  19087. },
  19088. p4: function(a) {
  19089. this.mh =
  19090. a
  19091. }
  19092. });
  19093. b.kM = function(a, c, d) {
  19094. return new b.Ri(a, c, d)
  19095. };
  19096. b.Ri.create = b.kM;
  19097. b.Mp = b.Ri.extend({
  19098. Fc: null,
  19099. ctor: function(a, c, d) {
  19100. b.Ri.prototype.ctor.call(this);
  19101. this.Fc = C(0, 0);
  19102. void 0 !== d && this.d(a, c, d)
  19103. },
  19104. v: function(a) {
  19105. b.Ri.prototype.v.call(this, a);
  19106. this.Fc.x = a.Gd();
  19107. this.Fc.y = a.tf()
  19108. },
  19109. reverse: function() {
  19110. for (var a = this.mh.slice(), c, d = a[0], e = 1; e < a.length; ++e) c = a[e], a[e] = b.Jd(c, d), d = c;
  19111. a = b.QO(a);
  19112. d = a[a.length - 1];
  19113. a.pop();
  19114. d.x = -d.x;
  19115. d.y = -d.y;
  19116. a.unshift(d);
  19117. for (e = 1; e < a.length; ++e) c = a[e], c.x = -c.x, c.y = -c.y, c.x += d.x, c.y += d.y, d = a[e] = c;
  19118. return b.jM(this.o, a, this.Ao)
  19119. },
  19120. VP: function(a) {
  19121. var c = this.Fc,
  19122. d = a.x +
  19123. c.x;
  19124. a = a.y + c.y;
  19125. this.Tc.x = d;
  19126. this.Tc.y = a;
  19127. this.target.P(d, a)
  19128. },
  19129. j: function() {
  19130. var a = new b.Mp;
  19131. a.d(this.o, b.Gw(this.mh), this.Ao);
  19132. return a
  19133. }
  19134. });
  19135. b.jM = function(a, c, d) {
  19136. return new b.Mp(a, c, d)
  19137. };
  19138. b.Mp.create = b.jM;
  19139. b.Oy = b.Ri.extend({
  19140. ctor: function(a, c) {
  19141. c && this.d(a, c)
  19142. },
  19143. d: function(a, c) {
  19144. return b.Ri.prototype.d.call(this, a, c, 0.5)
  19145. },
  19146. j: function() {
  19147. var a = new b.Oy;
  19148. a.d(this.o, b.Gw(this.mh));
  19149. return a
  19150. }
  19151. });
  19152. b.DZ = function(a, c) {
  19153. return new b.Oy(a, c)
  19154. };
  19155. b.Oy.create = b.DZ;
  19156. b.Ny = b.Mp.extend({
  19157. ctor: function(a, c) {
  19158. b.Mp.prototype.ctor.call(this);
  19159. c && this.d(a, c)
  19160. },
  19161. d: function(a, c) {
  19162. return b.Ri.prototype.d.call(this, a, c, 0.5)
  19163. },
  19164. j: function() {
  19165. var a = new b.Ny;
  19166. a.d(this.o, b.Gw(this.mh));
  19167. return a
  19168. }
  19169. });
  19170. b.CZ = function(a, c) {
  19171. return new b.Ny(a, c)
  19172. };
  19173. b.Ny.create = b.CZ;
  19174. b.o6 = b.oa.extend({
  19175. K5: function() {}
  19176. });
  19177. b.Cy = b.u.extend({
  19178. key: "",
  19179. Lw: 0,
  19180. wy: 0,
  19181. os: 0,
  19182. ctor: function(a, c, d, e) {
  19183. b.u.prototype.ctor.call(this);
  19184. this.key = "";
  19185. void 0 !== e && this.d(a, c, d, e)
  19186. },
  19187. d: function(a, c, d, e) {
  19188. return b.u.prototype.d.call(this, a) ? (this.key = c, this.wy = e, this.Lw = d, !0) : !1
  19189. },
  19190. v: function(a) {
  19191. if (!a || !a.K5) throw "cc.ActionTween.startWithTarget(): target must be non-null, and target must implement updateTweenAction function";
  19192. b.u.prototype.v.call(this, a);
  19193. this.os = this.wy - this.Lw
  19194. },
  19195. update: function() {},
  19196. reverse: function() {
  19197. return b.SL(this.duration, this.key,
  19198. this.wy, this.Lw)
  19199. },
  19200. j: function() {
  19201. var a = new b.Cy;
  19202. a.d(this.o, this.key, this.Lw, this.wy);
  19203. return a
  19204. }
  19205. });
  19206. b.SL = function(a, c, d, e) {
  19207. return new b.Cy(a, c, d, e)
  19208. };
  19209. b.Cy.create = b.SL;
  19210. b.gc = b.u.extend({
  19211. W: null,
  19212. ctor: function(a, c) {
  19213. b.ZA();
  19214. b.u.prototype.ctor.call(this);
  19215. this.W = N(0, 0);
  19216. c && this.d(a, c)
  19217. },
  19218. j: function() {
  19219. var a = new b.gc,
  19220. c = this.W;
  19221. a.d(this.o, N(c.width, c.height));
  19222. return a
  19223. },
  19224. v: function(a) {
  19225. b.u.prototype.v.call(this, a);
  19226. var c = this.ss(),
  19227. d = this.target;
  19228. (a = d.grid) && 0 < a.qi ? (c = a.k0(), a.vf() && c.width == this.W.width && c.height == this.W.height && a.LF()) : (a && a.vf() && a.setActive(!1), d.grid = c, d.grid.setActive(!0))
  19229. },
  19230. reverse: function() {
  19231. return b.rq.create(this)
  19232. },
  19233. d: function(a, c) {
  19234. return b.u.prototype.d.call(this,
  19235. a) ? (this.W.width = c.width, this.W.height = c.height, !0) : !1
  19236. },
  19237. ss: function() {
  19238. b.log("cc.GridAction.getGrid(): it should be overridden in subclass.")
  19239. }
  19240. });
  19241. b.i1 = function(a, c) {
  19242. return new b.gc(a, c)
  19243. };
  19244. b.gc.create = b.i1;
  19245. b.Xc = b.gc.extend({
  19246. ss: function() {
  19247. return b.dz.create(this.W)
  19248. },
  19249. $P: function(a) {
  19250. return this.target.grid.$P(a)
  19251. },
  19252. Mc: function(a) {
  19253. return this.target.grid.Mc(a)
  19254. },
  19255. Ld: function(a, c) {
  19256. this.target.grid.Ld(a, c)
  19257. }
  19258. });
  19259. b.h1 = function(a, c) {
  19260. return new b.Xc(a, c)
  19261. };
  19262. b.Xc.create = b.h1;
  19263. b.tc = b.gc.extend({
  19264. KP: function(a) {
  19265. return this.target.grid.KP(a)
  19266. },
  19267. Yf: function(a) {
  19268. return this.target.grid.Yf(a)
  19269. },
  19270. Xe: function(a, c) {
  19271. this.target.grid.Xe(a, c)
  19272. },
  19273. ss: function() {
  19274. return b.gA.create(this.W)
  19275. }
  19276. });
  19277. b.y5 = function(a, c) {
  19278. return new b.tc(a, c)
  19279. };
  19280. b.tc.create = b.y5;
  19281. b.zl = b.xe.extend({
  19282. v: function(a) {
  19283. b.xe.prototype.v.call(this, a);
  19284. (a = this.target.grid) && a.vf() && a.setActive(!1)
  19285. }
  19286. });
  19287. b.k5 = function() {
  19288. return new b.zl
  19289. };
  19290. b.zl.create = b.k5;
  19291. b.yH = b.xe.extend({
  19292. ac: null,
  19293. ctor: function(a) {
  19294. b.xe.prototype.ctor.call(this);
  19295. void 0 !== a && this.x1(a)
  19296. },
  19297. x1: function(a) {
  19298. this.ac = a;
  19299. return !0
  19300. },
  19301. v: function(a) {
  19302. b.xe.prototype.v.call(this, a);
  19303. this.target.grid && this.target.grid.vf() && this.target.grid.t4(this.target.grid.qi + this.ac)
  19304. }
  19305. });
  19306. b.C3 = function(a) {
  19307. return new b.yH(a)
  19308. };
  19309. b.yH.create = b.C3;
  19310. b.zI = b.Xc.extend({
  19311. qf: 0,
  19312. Za: 0,
  19313. $a: 0,
  19314. ctor: function(a, c, d, e) {
  19315. b.gc.prototype.ctor.call(this);
  19316. void 0 !== e && this.d(a, c, d, e)
  19317. },
  19318. Zo: function() {
  19319. return this.Za
  19320. },
  19321. xp: function(a) {
  19322. this.Za = a
  19323. },
  19324. Im: function() {
  19325. return this.$a
  19326. },
  19327. Vm: function(a) {
  19328. this.$a = a
  19329. },
  19330. d: function(a, c, d, e) {
  19331. return b.Xc.prototype.d.call(this, a, c) ? (this.qf = d, this.Za = e, this.$a = 1, !0) : !1
  19332. },
  19333. update: function(a) {
  19334. for (var c = this.W, d = this.Za, e = C(0, 0), f = this.$a, g = this.qf, h = 0; h < c.width + 1; ++h)
  19335. for (var k = 0; k < c.height + 1; ++k) {
  19336. e.x = h;
  19337. e.y = k;
  19338. var m = this.Mc(e);
  19339. m.z += Math.sin(Math.PI *
  19340. a * g * 2 + 0.01 * (m.y + m.x)) * d * f;
  19341. this.Ld(e, m)
  19342. }
  19343. }
  19344. });
  19345. b.R5 = function(a, c, d, e) {
  19346. return new b.zI(a, c, d, e)
  19347. };
  19348. b.zI.create = b.R5;
  19349. b.bz = b.Xc.extend({
  19350. ctor: function(a) {
  19351. void 0 !== a ? b.gc.prototype.ctor.call(this, a, N(1, 1)) : b.gc.prototype.ctor.call(this)
  19352. },
  19353. d: function(a) {
  19354. return b.Xc.prototype.d.call(this, a, N(1, 1))
  19355. },
  19356. jx: function(a, c) {
  19357. return 1 != a.width || 1 != a.height ? (b.log("Grid size must be (1,1)"), !1) : b.Xc.prototype.d.call(this, c, a)
  19358. },
  19359. update: function(a) {
  19360. var c = Math.PI * a;
  19361. a = Math.sin(c);
  19362. var d = Math.cos(c / 2),
  19363. c = new b.uc,
  19364. e = C(0, 0);
  19365. e.x = e.y = 1;
  19366. var f = this.Mc(e);
  19367. e.x = e.y = 0;
  19368. var e = this.Mc(e),
  19369. g = f.x,
  19370. h = e.x,
  19371. k, m;
  19372. g > h ? (f = C(0, 0), e = C(0, 1), k = C(1, 0), m = C(1, 1)) : (k = C(0,
  19373. 0), m = C(0, 1), f = C(1, 0), e = C(1, 1), g = h);
  19374. c.x = g - g * d;
  19375. c.z = Math.abs(parseFloat(g * a / 4));
  19376. a = this.Mc(f);
  19377. a.x = c.x;
  19378. a.z += c.z;
  19379. this.Ld(f, a);
  19380. a = this.Mc(e);
  19381. a.x = c.x;
  19382. a.z += c.z;
  19383. this.Ld(e, a);
  19384. a = this.Mc(k);
  19385. a.x -= c.x;
  19386. a.z -= c.z;
  19387. this.Ld(k, a);
  19388. a = this.Mc(m);
  19389. a.x -= c.x;
  19390. a.z -= c.z;
  19391. this.Ld(m, a)
  19392. }
  19393. });
  19394. b.J_ = function(a) {
  19395. return new b.bz(a)
  19396. };
  19397. b.bz.create = b.J_;
  19398. b.QG = b.bz.extend({
  19399. ctor: function(a) {
  19400. void 0 !== a ? b.gc.prototype.ctor.call(this, a, N(1, 1)) : b.gc.prototype.ctor.call(this)
  19401. },
  19402. update: function(a) {
  19403. var c = Math.PI * a;
  19404. a = Math.sin(c);
  19405. var d = Math.cos(c / 2),
  19406. c = new b.uc,
  19407. e = C(0, 0);
  19408. e.x = e.y = 1;
  19409. var f = this.Mc(e);
  19410. e.x = e.y = 0;
  19411. var e = this.Mc(e),
  19412. g = f.y,
  19413. h = e.y,
  19414. k, m;
  19415. g > h ? (f = C(0, 0), e = C(0, 1), k = C(1, 0), m = C(1, 1)) : (e = C(0, 0), f = C(0, 1), m = C(1, 0), k = C(1, 1), g = h);
  19416. c.y = g - g * d;
  19417. c.z = Math.abs(parseFloat(g * a) / 4);
  19418. a = this.Mc(f);
  19419. a.y = c.y;
  19420. a.z += c.z;
  19421. this.Ld(f, a);
  19422. a = this.Mc(e);
  19423. a.y -= c.y;
  19424. a.z -= c.z;
  19425. this.Ld(e, a);
  19426. a = this.Mc(k);
  19427. a.y = c.y;
  19428. a.z += c.z;
  19429. this.Ld(k, a);
  19430. a = this.Mc(m);
  19431. a.y -= c.y;
  19432. a.z -= c.z;
  19433. this.Ld(m, a)
  19434. }
  19435. });
  19436. b.L_ = function(a) {
  19437. return new b.QG(a)
  19438. };
  19439. b.QG.create = b.L_;
  19440. b.WG = b.Xc.extend({
  19441. wa: null,
  19442. Je: 0,
  19443. tv: 0,
  19444. nV: !1,
  19445. jb: !1,
  19446. ctor: function(a, c, d, e) {
  19447. b.gc.prototype.ctor.call(this);
  19448. this.wa = C(0, 0);
  19449. void 0 !== e && this.d(a, c, d, e)
  19450. },
  19451. eca: function() {
  19452. return this.tv
  19453. },
  19454. Xia: function(a) {
  19455. this.tv = a
  19456. },
  19457. via: function(a) {
  19458. this.nV = a
  19459. },
  19460. Rw: function() {
  19461. return this.wa
  19462. },
  19463. P: function(a) {
  19464. b.DF(a, this.wa) || (this.wa.x = a.x, this.wa.y = a.y, this.jb = !0)
  19465. },
  19466. d: function(a, c, d, e) {
  19467. return b.Xc.prototype.d.call(this, a, c) ? (this.P(d), this.Je = e, this.tv = 0.7, this.jb = !0) : !1
  19468. },
  19469. update: function() {
  19470. if (this.jb) {
  19471. for (var a = this.W.width, c = this.W.height,
  19472. d = this.Je, e = this.tv, f = C(0, 0), g = C(0, 0), h, k, m, p = 0; p < a + 1; ++p)
  19473. for (var r = 0; r < c + 1; ++r) f.x = p, f.y = r, h = this.Mc(f), g.x = this.wa.x - h.x, g.y = this.wa.y - h.y, k = b.il(g), k < d && (k = d - k, k /= d, 0 == k && (k = 0.001), k = Math.log(k) * e, m = Math.exp(k) * d, k = b.il(g), 0 < k && (g.x /= k, g.y /= k, g.x *= m, g.y *= m, h.z += b.il(g) * e)), this.Ld(f, h);
  19474. this.jb = !1
  19475. }
  19476. }
  19477. });
  19478. b.t2 = function(a, c, d, e) {
  19479. return new b.WG(a, c, d, e)
  19480. };
  19481. b.WG.create = b.t2;
  19482. b.zH = b.Xc.extend({
  19483. wa: null,
  19484. Je: 0,
  19485. qf: 0,
  19486. Za: 0,
  19487. $a: 0,
  19488. ctor: function(a, c, d, e, f, g) {
  19489. b.gc.prototype.ctor.call(this);
  19490. this.wa = C(0, 0);
  19491. void 0 !== g && this.d(a, c, d, e, f, g)
  19492. },
  19493. Rw: function() {
  19494. return this.wa
  19495. },
  19496. P: function(a) {
  19497. this.wa.x = a.x;
  19498. this.wa.y = a.y
  19499. },
  19500. Zo: function() {
  19501. return this.Za
  19502. },
  19503. xp: function(a) {
  19504. this.Za = a
  19505. },
  19506. Im: function() {
  19507. return this.$a
  19508. },
  19509. Vm: function(a) {
  19510. this.$a = a
  19511. },
  19512. d: function(a, c, d, e, f, g) {
  19513. return b.Xc.prototype.d.call(this, a, c) ? (this.P(d), this.Je = e, this.qf = f, this.Za = g, this.$a = 1, !0) : !1
  19514. },
  19515. update: function(a) {
  19516. for (var c = this.W.width,
  19517. d = this.W.height, e = C(0, 0), f = this.Je, g = this.qf, h = this.Za, k = this.$a, m, p, r = C(0, 0), s = 0; s < c + 1; ++s)
  19518. for (var u = 0; u < d + 1; ++u) e.x = s, e.y = u, m = this.Mc(e), r.x = this.wa.x - m.x, r.y = this.wa.y - m.y, p = b.il(r), p < f && (p = f - p, m.z += Math.sin(a * Math.PI * g * 2 + 0.1 * p) * h * k * Math.pow(p / f, 2)), this.Ld(e, m)
  19519. }
  19520. });
  19521. b.D3 = function(a, c, d, e, f, g) {
  19522. return new b.zH(a, c, d, e, f, g)
  19523. };
  19524. b.zH.create = b.D3;
  19525. b.DH = b.Xc.extend({
  19526. Ik: 0,
  19527. Hr: !1,
  19528. ctor: function(a, c, d, e) {
  19529. b.gc.prototype.ctor.call(this);
  19530. void 0 !== e && this.d(a, c, d, e)
  19531. },
  19532. d: function(a, c, d, e) {
  19533. return b.Xc.prototype.d.call(this, a, c) ? (this.Ik = d, this.Hr = e, !0) : !1
  19534. },
  19535. update: function() {
  19536. for (var a = this.W.width, c = this.W.height, d = this.Ik, e = this.Hr, f = C(0, 0), g, h = 0; h < a + 1; ++h)
  19537. for (var k = 0; k < c + 1; ++k) f.x = h, f.y = k, g = this.Mc(f), g.x += b.yb() % (2 * d) - d, g.y += b.yb() % (2 * d) - d, e && (g.z += b.yb() % (2 * d) - d), this.Ld(f, g)
  19538. }
  19539. });
  19540. b.O4 = function(a, c, d, e) {
  19541. return new b.DH(a, c, d, e)
  19542. };
  19543. b.DH.create = b.O4;
  19544. b.XG = b.Xc.extend({
  19545. qf: 0,
  19546. Za: 0,
  19547. $a: 0,
  19548. ctor: function(a, c, d, e) {
  19549. b.gc.prototype.ctor.call(this);
  19550. void 0 !== e && this.d(a, c, d, e)
  19551. },
  19552. Zo: function() {
  19553. return this.Za
  19554. },
  19555. xp: function(a) {
  19556. this.Za = a
  19557. },
  19558. Im: function() {
  19559. return this.$a
  19560. },
  19561. Vm: function(a) {
  19562. this.$a = a
  19563. },
  19564. d: function(a, c, d, e) {
  19565. return b.Xc.prototype.d.call(this, a, c) ? (this.qf = d, this.Za = e, this.$a = 1, !0) : !1
  19566. },
  19567. update: function(a) {
  19568. for (var c = this.W.width, d = this.W.height, e = C(0, 0), f = this.qf, g = this.Za, h = this.$a, k, m = 1; m < c; ++m)
  19569. for (var p = 1; p < d; ++p) e.x = m, e.y = p, k = this.Mc(e), k.x += Math.sin(a * Math.PI *
  19570. f * 2 + 0.01 * k.x) * g * h, k.y += Math.sin(a * Math.PI * f * 2 + 0.01 * k.y) * g * h, this.Ld(e, k)
  19571. }
  19572. });
  19573. b.u2 = function(a, c, d, e) {
  19574. return new b.XG(a, c, d, e)
  19575. };
  19576. b.XG.create = b.u2;
  19577. b.yI = b.Xc.extend({
  19578. qf: 0,
  19579. Za: 0,
  19580. $a: 0,
  19581. QL: !1,
  19582. gK: !1,
  19583. ctor: function(a, c, d, e, f, g) {
  19584. b.gc.prototype.ctor.call(this);
  19585. void 0 !== g && this.d(a, c, d, e, f, g)
  19586. },
  19587. Zo: function() {
  19588. return this.Za
  19589. },
  19590. xp: function(a) {
  19591. this.Za = a
  19592. },
  19593. Im: function() {
  19594. return this.$a
  19595. },
  19596. Vm: function(a) {
  19597. this.$a = a
  19598. },
  19599. d: function(a, c, d, e, f, g) {
  19600. return b.Xc.prototype.d.call(this, a, c) ? (this.qf = d, this.Za = e, this.$a = 1, this.gK = f, this.QL = g, !0) : !1
  19601. },
  19602. update: function(a) {
  19603. for (var c = this.W.width, d = this.W.height, e = C(0, 0), f = this.QL, g = this.gK, h = this.qf, k = this.Za, m = this.$a, p, r = 0; r < c + 1; ++r)
  19604. for (var s =
  19605. 0; s < d + 1; ++s) e.x = r, e.y = s, p = this.Mc(e), f && (p.x += Math.sin(a * Math.PI * h * 2 + 0.01 * p.y) * k * m), g && (p.y += Math.sin(a * Math.PI * h * 2 + 0.01 * p.x) * k * m), this.Ld(e, p)
  19606. }
  19607. });
  19608. b.Q5 = function(a, c, d, e, f, g) {
  19609. return new b.yI(a, c, d, e, f, g)
  19610. };
  19611. b.yI.create = b.Q5;
  19612. b.sI = b.Xc.extend({
  19613. wa: null,
  19614. FL: 0,
  19615. Za: 0,
  19616. $a: 0,
  19617. ctor: function(a, c, d, e, f) {
  19618. b.gc.prototype.ctor.call(this);
  19619. this.wa = C(0, 0);
  19620. void 0 !== f && this.d(a, c, d, e, f)
  19621. },
  19622. Rw: function() {
  19623. return this.wa
  19624. },
  19625. P: function(a) {
  19626. this.wa.x = a.x;
  19627. this.wa.y = a.y
  19628. },
  19629. Zo: function() {
  19630. return this.Za
  19631. },
  19632. xp: function(a) {
  19633. this.Za = a
  19634. },
  19635. Im: function() {
  19636. return this.$a
  19637. },
  19638. Vm: function(a) {
  19639. this.$a = a
  19640. },
  19641. d: function(a, c, d, e, f) {
  19642. return b.Xc.prototype.d.call(this, a, c) ? (this.P(d), this.FL = e, this.Za = f, this.$a = 1, !0) : !1
  19643. },
  19644. update: function(a) {
  19645. for (var c = this.wa, d = this.W.width, e = this.W.height,
  19646. f = C(0, 0), g = 0.1 * this.Za * this.$a, h = this.FL, k, m, p, r = C(0, 0), s = 0; s < d + 1; ++s)
  19647. for (var u = 0; u < e + 1; ++u) f.x = s, f.y = u, k = this.Mc(f), r.x = s - d / 2, r.y = u - e / 2, m = b.il(r) * Math.cos(Math.PI / 2 + a * Math.PI * h * 2) * g, p = Math.sin(m) * (k.y - c.y) + Math.cos(m) * (k.x - c.x), m = Math.cos(m) * (k.y - c.y) - Math.sin(m) * (k.x - c.x), k.x = c.x + p, k.y = c.y + m, this.Ld(f, k)
  19648. }
  19649. });
  19650. b.D5 = function(a, c, d, e, f) {
  19651. return new b.sI(a, c, d, e, f)
  19652. };
  19653. b.sI.create = b.D5;
  19654. b.EH = b.tc.extend({
  19655. Ik: 0,
  19656. Hr: !1,
  19657. ctor: function(a, c, d, e) {
  19658. b.gc.prototype.ctor.call(this);
  19659. void 0 !== e && this.d(a, c, d, e)
  19660. },
  19661. d: function(a, c, d, e) {
  19662. return b.tc.prototype.d.call(this, a, c) ? (this.Ik = d, this.Hr = e, !0) : !1
  19663. },
  19664. update: function() {
  19665. for (var a = this.W, c = this.Ik, d = C(0, 0), e = 0; e < a.width; ++e)
  19666. for (var f = 0; f < a.height; ++f) {
  19667. d.x = e;
  19668. d.y = f;
  19669. var g = this.Yf(d);
  19670. g.C.x += b.yb() % (2 * c) - c;
  19671. g.L.x += b.yb() % (2 * c) - c;
  19672. g.K.x += b.yb() % (2 * c) - c;
  19673. g.J.x += b.yb() % (2 * c) - c;
  19674. g.C.y += b.yb() % (2 * c) - c;
  19675. g.L.y += b.yb() % (2 * c) - c;
  19676. g.K.y += b.yb() % (2 * c) - c;
  19677. g.J.y += b.yb() % (2 * c) -
  19678. c;
  19679. this.Hr && (g.C.z += b.yb() % (2 * c) - c, g.L.z += b.yb() % (2 * c) - c, g.K.z += b.yb() % (2 * c) - c, g.J.z += b.yb() % (2 * c) - c);
  19680. this.Xe(d, g)
  19681. }
  19682. }
  19683. });
  19684. b.P4 = function(a, c, d, e) {
  19685. return new b.EH(a, c, d, e)
  19686. };
  19687. b.EH.create = b.P4;
  19688. b.FH = b.tc.extend({
  19689. Ik: 0,
  19690. bC: !1,
  19691. wL: !1,
  19692. ctor: function(a, c, d, e) {
  19693. b.gc.prototype.ctor.call(this);
  19694. void 0 !== e && this.d(a, c, d, e)
  19695. },
  19696. d: function(a, c, d, e) {
  19697. return b.tc.prototype.d.call(this, a, c) ? (this.bC = !1, this.Ik = d, this.wL = e, !0) : !1
  19698. },
  19699. update: function() {
  19700. if (!1 === this.bC) {
  19701. for (var a = this.W, c = this.Ik, d, e = C(0, 0), f = 0; f < a.width; ++f)
  19702. for (var g = 0; g < a.height; ++g) e.x = f, e.y = g, d = this.Yf(e), d.C.x += b.yb() % (2 * c) - c, d.L.x += b.yb() % (2 * c) - c, d.K.x += b.yb() % (2 * c) - c, d.J.x += b.yb() % (2 * c) - c, d.C.y += b.yb() % (2 * c) - c, d.L.y += b.yb() % (2 * c) - c, d.K.y += b.yb() %
  19703. (2 * c) - c, d.J.y += b.yb() % (2 * c) - c, this.wL && (d.C.z += b.yb() % (2 * c) - c, d.L.z += b.yb() % (2 * c) - c, d.K.z += b.yb() % (2 * c) - c, d.J.z += b.yb() % (2 * c) - c), this.Xe(e, d);
  19704. this.bC = !0
  19705. }
  19706. }
  19707. });
  19708. b.Q4 = function(a, c, d, e) {
  19709. return new b.FH(a, c, d, e)
  19710. };
  19711. b.FH.create = b.Q4;
  19712. function ea() {
  19713. this.position = C(0, 0);
  19714. this.g5 = C(0, 0);
  19715. this.os = C(0, 0)
  19716. }
  19717. b.GH = b.tc.extend({
  19718. JC: 0,
  19719. wj: 0,
  19720. vi: null,
  19721. Me: null,
  19722. ctor: function(a, c, d) {
  19723. b.gc.prototype.ctor.call(this);
  19724. this.vi = [];
  19725. this.Me = [];
  19726. void 0 !== d && this.d(a, c, d)
  19727. },
  19728. d: function(a, c, d) {
  19729. return b.tc.prototype.d.call(this, a, c) ? (this.JC = d, this.vi.length = 0, this.Me.length = 0, !0) : !1
  19730. },
  19731. kG: function(a, c) {
  19732. for (var d = c - 1; 0 <= d; d--) {
  19733. var e = 0 | b.yb() % (d + 1),
  19734. f = a[d];
  19735. a[d] = a[e];
  19736. a[e] = f
  19737. }
  19738. },
  19739. AE: function(a) {
  19740. var c = this.W,
  19741. d = a.width * c.height + a.height;
  19742. return N(this.vi[d] / c.height - a.width, this.vi[d] % c.height - a.height)
  19743. },
  19744. V2: function(a, c) {
  19745. var d = this.Yf(a),
  19746. e = this.target.grid.KE(),
  19747. f = c.position;
  19748. d.C.x += f.x * e.x;
  19749. d.C.y += f.y * e.y;
  19750. d.L.x += f.x * e.x;
  19751. d.L.y += f.y * e.y;
  19752. d.K.x += f.x * e.x;
  19753. d.K.y += f.y * e.y;
  19754. d.J.x += f.x * e.x;
  19755. d.J.y += f.y * e.y;
  19756. this.Xe(a, d)
  19757. },
  19758. v: function(a) {
  19759. b.tc.prototype.v.call(this, a);
  19760. a = this.W;
  19761. this.wj = a.width * a.height;
  19762. for (var c = this.vi, d = c.length = 0; d < this.wj; ++d) c[d] = d;
  19763. this.kG(c, this.wj);
  19764. for (var c = this.Me, d = c.length = 0, e = N(0, 0), f = 0; f < a.width; ++f)
  19765. for (var g = 0; g < a.height; ++g) c[d] = new ea, c[d].position = C(f, g), c[d].g5 = C(f, g), e.width = f, e.height = g, c[d].os = this.AE(e), ++d
  19766. },
  19767. update: function(a) {
  19768. for (var c =
  19769. 0, d = this.W, e = this.Me, f, g = C(0, 0), h = 0; h < d.width; ++h)
  19770. for (var k = 0; k < d.height; ++k) g.x = h, g.y = k, f = e[c], f.position.x = f.os.width * a, f.position.y = f.os.height * a, this.V2(g, f), ++c
  19771. }
  19772. });
  19773. b.S4 = function(a, c, d) {
  19774. return new b.GH(a, c, d)
  19775. };
  19776. b.GH.create = b.S4;
  19777. b.hq = b.tc.extend({
  19778. vy: function(a, c) {
  19779. var d = this.W.width * c,
  19780. e = this.W.height * c;
  19781. return 0 == d + e ? 1 : Math.pow((a.width + a.height) / (d + e), 6)
  19782. },
  19783. rG: function(a) {
  19784. this.Xe(a, this.Yf(a))
  19785. },
  19786. qG: function(a) {
  19787. this.Xe(a, new b.Xt)
  19788. },
  19789. OP: function(a, c) {
  19790. var d = this.Yf(a),
  19791. e = this.target.grid.KE();
  19792. d.C.x += e.x / 2 * (1 - c);
  19793. d.C.y += e.y / 2 * (1 - c);
  19794. d.L.x -= e.x / 2 * (1 - c);
  19795. d.L.y += e.y / 2 * (1 - c);
  19796. d.K.x += e.x / 2 * (1 - c);
  19797. d.K.y -= e.y / 2 * (1 - c);
  19798. d.J.x -= e.x / 2 * (1 - c);
  19799. d.J.y -= e.y / 2 * (1 - c);
  19800. this.Xe(a, d)
  19801. },
  19802. update: function(a) {
  19803. for (var c = this.W, d = C(0, 0), e = N(0, 0), f, g = 0; g < c.width; ++g)
  19804. for (var h =
  19805. 0; h < c.height; ++h) d.x = g, d.y = h, e.width = g, e.height = h, f = this.vy(e, a), 0 == f ? this.qG(d) : 1 > f ? this.OP(d, f) : this.rG(d)
  19806. }
  19807. });
  19808. b.D_ = function(a, c) {
  19809. return new b.hq(a, c)
  19810. };
  19811. b.hq.create = b.D_;
  19812. b.$y = b.hq.extend({
  19813. vy: function(a, c) {
  19814. return 0 == a.width + a.height ? 1 : Math.pow((this.W.width * (1 - c) + this.W.height * (1 - c)) / (a.width + a.height), 6)
  19815. }
  19816. });
  19817. b.B_ = function(a, c) {
  19818. return new b.$y(a, c)
  19819. };
  19820. b.$y.create = b.B_;
  19821. b.Nt = b.hq.extend({
  19822. vy: function(a, c) {
  19823. var d = this.W.height * c;
  19824. return 0 == d ? 1 : Math.pow(a.height / d, 6)
  19825. },
  19826. OP: function(a, c) {
  19827. var d = this.Yf(a),
  19828. e = this.target.grid.KE();
  19829. d.C.y += e.y / 2 * (1 - c);
  19830. d.L.y += e.y / 2 * (1 - c);
  19831. d.K.y -= e.y / 2 * (1 - c);
  19832. d.J.y -= e.y / 2 * (1 - c);
  19833. this.Xe(a, d)
  19834. }
  19835. });
  19836. b.E_ = function(a, c) {
  19837. return new b.Nt(a, c)
  19838. };
  19839. b.Nt.create = b.E_;
  19840. b.az = b.Nt.extend({
  19841. vy: function(a, c) {
  19842. return 0 == a.height ? 1 : Math.pow(this.W.height * (1 - c) / a.height, 6)
  19843. }
  19844. });
  19845. b.C_ = function(a, c) {
  19846. return new b.az(a, c)
  19847. };
  19848. b.az.create = b.C_;
  19849. b.lA = b.tc.extend({
  19850. JC: null,
  19851. wj: 0,
  19852. vi: null,
  19853. ctor: function(a, c, d) {
  19854. b.gc.prototype.ctor.call(this);
  19855. this.vi = [];
  19856. void 0 !== c && this.d(a, c, d)
  19857. },
  19858. d: function(a, c, d) {
  19859. return b.tc.prototype.d.call(this, a, c) ? (this.JC = d || 0, this.vi.length = 0, !0) : !1
  19860. },
  19861. kG: function(a, c) {
  19862. for (var d = c - 1; 0 <= d; d--) {
  19863. var e = 0 | b.yb() % (d + 1),
  19864. f = a[d];
  19865. a[d] = a[e];
  19866. a[e] = f
  19867. }
  19868. },
  19869. rG: function(a) {
  19870. this.Xe(a, this.Yf(a))
  19871. },
  19872. qG: function(a) {
  19873. this.Xe(a, new b.Xt)
  19874. },
  19875. v: function(a) {
  19876. b.tc.prototype.v.call(this, a);
  19877. this.wj = this.W.width * this.W.height;
  19878. a = this.vi;
  19879. for (var c = a.length = 0; c < this.wj; ++c) a[c] =
  19880. c;
  19881. this.kG(a, this.wj)
  19882. },
  19883. update: function(a) {
  19884. a = 0 | a * this.wj;
  19885. for (var c = this.W, d, e = C(0, 0), f = this.vi, g = 0; g < this.wj; g++) d = f[g], e.x = 0 | d / c.height, e.y = d % (0 | c.height), g < a ? this.qG(e) : this.rG(e)
  19886. }
  19887. });
  19888. b.C5 = function(a, c, d) {
  19889. return new b.lA(a, c, d)
  19890. };
  19891. b.lA.create = b.C5;
  19892. b.AI = b.tc.extend({
  19893. qf: 0,
  19894. Za: 0,
  19895. $a: 0,
  19896. ctor: function(a, c, d, e) {
  19897. b.gc.prototype.ctor.call(this);
  19898. void 0 !== e && this.d(a, c, d, e)
  19899. },
  19900. Zo: function() {
  19901. return this.Za
  19902. },
  19903. xp: function(a) {
  19904. this.Za = a
  19905. },
  19906. Im: function() {
  19907. return this.$a
  19908. },
  19909. Vm: function(a) {
  19910. this.$a = a
  19911. },
  19912. d: function(a, c, d, e) {
  19913. return b.tc.prototype.d.call(this, a, c) ? (this.qf = d, this.Za = e, this.$a = 1, !0) : !1
  19914. },
  19915. update: function(a) {
  19916. for (var c = this.W, d = this.qf, e = this.Za, f = this.$a, g = C(0, 0), h, k = 0; k < c.width; k++)
  19917. for (var m = 0; m < c.height; m++) g.x = k, g.y = m, h = this.Yf(g), h.C.z = Math.sin(a * Math.PI * d * 2 +
  19918. 0.01 * (h.C.y + h.C.x)) * e * f, h.L.z = h.C.z, h.K.z = h.C.z, h.J.z = h.C.z, this.Xe(g, h)
  19919. }
  19920. });
  19921. b.S5 = function(a, c, d, e) {
  19922. return new b.AI(a, c, d, e)
  19923. };
  19924. b.AI.create = b.S5;
  19925. b.UG = b.tc.extend({
  19926. gj: 0,
  19927. Za: 0,
  19928. $a: 0,
  19929. ctor: function(a, c, d, e) {
  19930. b.gc.prototype.ctor.call(this);
  19931. void 0 !== e && this.d(a, c, d, e)
  19932. },
  19933. Zo: function() {
  19934. return this.Za
  19935. },
  19936. xp: function(a) {
  19937. this.Za = a
  19938. },
  19939. Im: function() {
  19940. return this.$a
  19941. },
  19942. Vm: function(a) {
  19943. this.$a = a
  19944. },
  19945. d: function(a, c, d, e) {
  19946. return b.tc.prototype.d.call(this, a, c) ? (this.gj = d, this.Za = e, this.$a = 1, !0) : !1
  19947. },
  19948. update: function(a) {
  19949. var c = Math.sin(Math.PI * a * this.gj * 2) * this.Za * this.$a;
  19950. a = Math.sin(Math.PI * (a * this.gj * 2 + 1)) * this.Za * this.$a;
  19951. for (var d = this.W, e = this.target.grid, f, g = C(0, 0), h = 0; h <
  19952. d.width; h++)
  19953. for (var k = 0; k < d.height; k++) g.x = h, g.y = k, f = e.Yf(g), 0 == (h + k) % 2 ? (f.C.z += c, f.L.z += c, f.K.z += c, f.J.z += c) : (f.C.z += a, f.L.z += a, f.K.z += a, f.J.z += a), e.Xe(g, f)
  19954. }
  19955. });
  19956. b.O1 = function(a, c, d, e) {
  19957. return new b.UG(a, c, d, e)
  19958. };
  19959. b.UG.create = b.O1;
  19960. b.Tz = b.tc.extend({
  19961. IX: 0,
  19962. cs: null,
  19963. ctor: function(a, c) {
  19964. b.gc.prototype.ctor.call(this);
  19965. void 0 !== c && this.d(a, c)
  19966. },
  19967. d: function(a, c) {
  19968. this.IX = c;
  19969. return b.tc.prototype.d.call(this, a, N(1, c))
  19970. },
  19971. update: function(a) {
  19972. for (var c = this.W, d = this.cs.width, e, f, g = C(0, 0), h = 0; h < c.height; ++h) g.y = h, e = this.Yf(g), f = 1, 0 == h % 2 && (f = -1), e.C.x += f * d * a, e.L.x += f * d * a, e.K.x += f * d * a, e.J.x += f * d * a, this.Xe(g, e)
  19973. },
  19974. v: function(a) {
  19975. b.tc.prototype.v.call(this, a);
  19976. this.cs = b.I.ws()
  19977. }
  19978. });
  19979. b.Y4 = function(a, c) {
  19980. return new b.Tz(a, c)
  19981. };
  19982. b.Tz.create = b.Y4;
  19983. b.Sz = b.tc.extend({
  19984. mV: 0,
  19985. cs: null,
  19986. ctor: function(a, c) {
  19987. b.gc.prototype.ctor.call(this);
  19988. void 0 !== c && this.d(a, c)
  19989. },
  19990. d: function(a, c) {
  19991. this.mV = c;
  19992. return b.tc.prototype.d.call(this, a, N(c, 1))
  19993. },
  19994. update: function(a) {
  19995. for (var c = this.W.width, d = this.cs.height, e, f, g = C(0, 0), h = 0; h < c; ++h) g.x = h, e = this.Yf(g), f = 1, 0 == h % 2 && (f = -1), e.C.y += f * d * a, e.L.y += f * d * a, e.K.y += f * d * a, e.J.y += f * d * a, this.Xe(g, e)
  19996. },
  19997. v: function(a) {
  19998. b.tc.prototype.v.call(this, a);
  19999. this.cs = b.I.ws()
  20000. }
  20001. });
  20002. b.X4 = function(a, c) {
  20003. return new b.Sz(a, c)
  20004. };
  20005. b.Sz.create = b.X4;
  20006. b.Vt = b.Xc.extend({
  20007. update: function(a) {
  20008. var c = Math.max(0, a - 0.25),
  20009. c = -100 - c * c * 500,
  20010. d = +Math.PI / 2 + -Math.PI / 2 * Math.sqrt(a);
  20011. a = Math.sin(d);
  20012. for (var d = Math.cos(d), e = this.W, f = C(0, 0), g = 0; g <= e.width; ++g)
  20013. for (var h = 0; h <= e.height; ++h) {
  20014. f.x = g;
  20015. f.y = h;
  20016. var k = this.Mc(f),
  20017. m = Math.sqrt(k.x * k.x + (k.y - c) * (k.y - c)),
  20018. p = m * a,
  20019. r = Math.asin(k.x / m) / a,
  20020. s = Math.cos(r);
  20021. k.x = r <= Math.PI ? p * Math.sin(r) : 0;
  20022. k.y = m + c - p * (1 - s) * a;
  20023. k.z = p * (1 - s) * d / 7;
  20024. 0.5 > k.z && (k.z = 0.5);
  20025. this.Ld(f, k)
  20026. }
  20027. }
  20028. });
  20029. b.M2 = function(a, c) {
  20030. return new b.Vt(a, c)
  20031. };
  20032. b.Vt.create = b.M2;
  20033. b.Ua = b.k.extend({
  20034. kc: null,
  20035. li: 0,
  20036. $b: null,
  20037. kh: null,
  20038. Hl: null,
  20039. Dd: !1,
  20040. vb: "ProgressTimer",
  20041. z0: function() {
  20042. return C(this.kh.x, this.kh.y)
  20043. },
  20044. i4: function(a) {
  20045. this.kh = b.rO(a)
  20046. },
  20047. Q_: function() {
  20048. return C(this.Hl.x, this.Hl.y)
  20049. },
  20050. N3: function(a) {
  20051. this.Hl = b.rO(a)
  20052. },
  20053. OE: function() {
  20054. return this.kc
  20055. },
  20056. G0: function() {
  20057. return this.li
  20058. },
  20059. oN: function() {
  20060. return this.$b
  20061. },
  20062. n4: function(a) {
  20063. this.li != a && (this.li = b.Vc(a, 0, 100), this.yD())
  20064. },
  20065. Ue: function() {},
  20066. Wf: function() {
  20067. return !1
  20068. },
  20069. I1: function() {
  20070. return this.Dd
  20071. },
  20072. SA: function(a) {
  20073. if (a < b.Ua.IH) {
  20074. var c = b.Ua.BT;
  20075. return this.Dd ?
  20076. C(c >> 7 - (a << 1) & 1, c >> 7 - ((a << 1) + 1) & 1) : C(c >> (a << 1) + 1 & 1, c >> (a << 1) & 1)
  20077. }
  20078. return C(0, 0)
  20079. },
  20080. Cv: null,
  20081. jD: 270,
  20082. kB: 270,
  20083. Je: 0,
  20084. cB: !1,
  20085. NA: null,
  20086. qd: 0,
  20087. zc: null,
  20088. pf: null,
  20089. FD: null,
  20090. Zr: !1,
  20091. ctor: null,
  20092. Rq: function(a) {
  20093. b.k.prototype.ctor.call(this);
  20094. this.kc = b.Ua.Uh;
  20095. this.li = 0;
  20096. this.kh = C(0, 0);
  20097. this.Hl = C(0, 0);
  20098. this.Dd = !1;
  20099. this.$b = null;
  20100. this.Cv = C(0, 0);
  20101. this.kB = this.jD = 270;
  20102. this.Je = 0;
  20103. this.cB = !1;
  20104. this.NA = O(0, 0, 0, 0);
  20105. a && this.iK(a)
  20106. },
  20107. Sq: function(a) {
  20108. b.k.prototype.ctor.call(this);
  20109. this.kc = b.Ua.Uh;
  20110. this.li = 0;
  20111. this.kh = C(0, 0);
  20112. this.Hl = C(0, 0);
  20113. this.Dd = !1;
  20114. this.$b = null;
  20115. this.FD = b.l.createBuffer();
  20116. this.qd = 0;
  20117. this.pf = this.zc = null;
  20118. this.Zr = !1;
  20119. a && this.jK(a)
  20120. },
  20121. cb: function(a) {
  20122. this.$b.color = a;
  20123. this.bc()
  20124. },
  20125. Sa: function(a) {
  20126. this.$b.opacity = a;
  20127. this.bc()
  20128. },
  20129. Hg: function() {
  20130. return this.$b.color
  20131. },
  20132. Ig: function() {
  20133. return this.$b.opacity
  20134. },
  20135. qP: null,
  20136. cY: function(a) {
  20137. this.Dd !== a && (this.Dd = a)
  20138. },
  20139. dY: function(a) {
  20140. this.Dd !== a && (this.Dd = a, this.pf = this.zc = null, this.qd = 0)
  20141. },
  20142. py: null,
  20143. iY: function(a) {
  20144. this.$b != a && (this.$b = a, this.width = this.$b.width, this.height = this.$b.height)
  20145. },
  20146. jY: function(a) {
  20147. a && this.$b != a && (this.$b =
  20148. a, this.width = a.width, this.height = a.height, this.zc && (this.pf = this.zc = null, this.qd = 0))
  20149. },
  20150. gG: null,
  20151. qY: function(a) {
  20152. a !== this.kc && (this.kc = a)
  20153. },
  20154. rY: function(a) {
  20155. a !== this.kc && (this.zc && (this.pf = this.zc = null, this.qd = 0), this.kc = a)
  20156. },
  20157. ZF: null,
  20158. aY: function(a) {
  20159. this.Dd !== a && (this.Dd = a)
  20160. },
  20161. bY: function(a) {
  20162. this.Dd !== a && (this.Dd = a, this.pf = this.zc = null, this.qd = 0)
  20163. },
  20164. oe: function(a) {
  20165. var c = this.$b;
  20166. if (!c) return {
  20167. fa: 0,
  20168. ga: 0
  20169. };
  20170. var d = c.quad,
  20171. e = C(d.C.m.fa, d.C.m.ga),
  20172. d = C(d.J.m.fa, d.J.m.ga);
  20173. c.textureRectRotated && (c = a.x, a.x = a.y, a.y = c);
  20174. return {
  20175. fa: e.x *
  20176. (1 - a.x) + d.x * a.x,
  20177. ga: e.y * (1 - a.y) + d.y * a.y
  20178. }
  20179. },
  20180. pe: function(a) {
  20181. if (!this.$b) return {
  20182. x: 0,
  20183. y: 0
  20184. };
  20185. var c = this.$b.quad,
  20186. d = C(c.C.f.x, c.C.f.y),
  20187. c = C(c.J.f.x, c.J.f.y);
  20188. return {
  20189. x: d.x * (1 - a.x) + c.x * a.x,
  20190. y: d.y * (1 - a.y) + c.y * a.y
  20191. }
  20192. },
  20193. NN: null,
  20194. iK: function(a) {
  20195. this.percentage = 0;
  20196. this.anchorY = this.anchorX = 0.5;
  20197. this.kc = b.Ua.Uh;
  20198. this.Dd = !1;
  20199. this.midPoint = C(0.5, 0.5);
  20200. this.barChangeRate = C(1, 1);
  20201. this.sprite = a;
  20202. return !0
  20203. },
  20204. jK: function(a) {
  20205. this.percentage = 0;
  20206. this.pf = this.zc = null;
  20207. this.qd = 0;
  20208. this.anchorY = this.anchorX = 0.5;
  20209. this.kc = b.Ua.Uh;
  20210. this.Dd = !1;
  20211. this.midPoint =
  20212. C(0.5, 0.5);
  20213. this.barChangeRate = C(1, 1);
  20214. this.sprite = a;
  20215. this.shaderProgram = b.Md.nc(b.Wi);
  20216. return !0
  20217. },
  20218. Y: null,
  20219. Ll: function(a) {
  20220. a = a || b.l;
  20221. var c = this.$b;
  20222. c.ko && (a.globalCompositeOperation = "lighter");
  20223. var d = b.view.ka,
  20224. e = b.view.La;
  20225. a.globalAlpha = c.fb / 255;
  20226. var f = c.ia,
  20227. g = c.O,
  20228. h = c.Hb,
  20229. k = c.iB,
  20230. m = 0 | h.x,
  20231. p = -h.y - f.height,
  20232. r = c.im;
  20233. k.width = f.width * d;
  20234. k.height = f.height * e;
  20235. a.save();
  20236. c.Lb && (m = -h.x - f.width, a.scale(-1, 1));
  20237. c.Mb && (p = h.y, a.scale(1, -1));
  20238. m *= d;
  20239. p *= e;
  20240. this.kc == b.Ua.Dl ? (f = this.NA, a.beginPath(), a.rect(f.x * d, f.y * e, f.width * d, f.height * e),
  20241. a.clip(), a.closePath()) : this.kc == b.Ua.Uh && (f = this.Cv.x * d, h = this.Cv.y * e, a.beginPath(), a.arc(f, h, this.Je * e, Math.PI / 180 * this.jD, Math.PI / 180 * this.kB, this.cB), a.lineTo(f, h), a.clip(), a.closePath());
  20242. c.G && r.bn ? (d = c.G.Wa, this.Pq ? a.drawImage(d, 0, 0, r.width, r.height, m, p, k.width, k.height) : a.drawImage(d, r.x, r.y, r.width, r.height, m, p, k.width, k.height)) : 0 !== g.width && (k = this.color, a.fillStyle = "rgba(" + k.r + "," + k.g + "," + k.b + ",1)", a.fillRect(m, p, g.width * d, g.height * e));
  20243. a.restore();
  20244. b.Vf()
  20245. },
  20246. aj: function(a) {
  20247. a = a || b.l;
  20248. if (this.zc &&
  20249. this.$b) {
  20250. b.Js(this);
  20251. var c = this.$b.Dh();
  20252. b.Hh(c.src, c.S);
  20253. b.Jc(b.El);
  20254. b.te(this.$b.texture);
  20255. a.bindBuffer(a.ARRAY_BUFFER, this.FD);
  20256. this.Zr && (a.bufferData(a.ARRAY_BUFFER, this.pf, a.DYNAMIC_DRAW), this.Zr = !1);
  20257. c = b.yd.BYTES_PER_ELEMENT;
  20258. a.vertexAttribPointer(b.qb, 2, a.FLOAT, !1, c, 0);
  20259. a.vertexAttribPointer(b.Ce, 4, a.UNSIGNED_BYTE, !0, c, 8);
  20260. a.vertexAttribPointer(b.zd, 2, a.FLOAT, !1, c, 12);
  20261. this.kc === b.Ua.Uh ? a.drawArrays(a.TRIANGLE_FAN, 0, this.qd) : this.kc == b.Ua.Dl && (this.Dd ? (a.drawArrays(a.TRIANGLE_STRIP, 0, this.qd / 2), a.drawArrays(a.TRIANGLE_STRIP,
  20262. 4, this.qd / 2), b.sf++) : a.drawArrays(a.TRIANGLE_STRIP, 0, this.qd));
  20263. b.sf++
  20264. }
  20265. },
  20266. RY: function() {
  20267. if (this.$b) {
  20268. var a, c = this.kh;
  20269. a = this.li / 100;
  20270. var d = C(c.x, 1),
  20271. e = b.K2(d, c, 2 * b.PI * (this.Dd ? a : 1 - a)),
  20272. f = 0;
  20273. if (0 == a) e = d, f = 0;
  20274. else if (1 == a) e = d, f = 4;
  20275. else {
  20276. var g = b.eR,
  20277. h = b.Ua.IH;
  20278. for (a = 0; a <= h; ++a) {
  20279. var k = this.SA(a % h),
  20280. m = this.SA((a + (h - 1)) % h);
  20281. 0 == a ? m = b.uO(k, m, 1 - c.x) : 4 == a && (k = b.uO(k, m, 1 - c.x));
  20282. var p = C(0, 0);
  20283. b.zF(k, m, c, e, p) && (0 != a && 4 != a || 0 <= p.x && 1 >= p.x) && 0 <= p.y && p.y < g && (g = p.y, f = a)
  20284. }
  20285. e = b.Hi(c, b.Ii(b.Jd(e, c), g))
  20286. }
  20287. g = !0;
  20288. this.qd != f + 3 && (g = !1, this.pf =
  20289. this.zc = null, this.qd = 0);
  20290. if (!this.zc) {
  20291. h = this.qd = f + 3;
  20292. k = b.yd.BYTES_PER_ELEMENT;
  20293. this.pf = new ArrayBuffer(h * k);
  20294. m = [];
  20295. for (a = 0; a < h; a++) m[a] = new b.yd(null, null, null, this.pf, a * k);
  20296. this.zc = m;
  20297. if (!this.zc) {
  20298. b.log("cc.ProgressTimer._updateRadial() : Not enough memory");
  20299. return
  20300. }
  20301. }
  20302. this.bc();
  20303. h = this.zc;
  20304. if (!g)
  20305. for (h[0].m = this.oe(c), h[0].f = this.pe(c), h[1].m = this.oe(d), h[1].f = this.pe(d), a = 0; a < f; a++) c = this.SA(a), h[a + 2].m = this.oe(c), h[a + 2].f = this.pe(c);
  20306. h[this.qd - 1].m = this.oe(e);
  20307. h[this.qd - 1].f = this.pe(e)
  20308. }
  20309. },
  20310. LY: function() {
  20311. if (this.$b) {
  20312. var a,
  20313. c = this.li / 100,
  20314. d = this.Hl,
  20315. d = b.Ii(C(1 - d.x + c * d.x, 1 - d.y + c * d.y), 0.5),
  20316. c = b.Jd(this.kh, d),
  20317. d = b.Hi(this.kh, d);
  20318. 0 > c.x && (d.x += -c.x, c.x = 0);
  20319. 1 < d.x && (c.x -= d.x - 1, d.x = 1);
  20320. 0 > c.y && (d.y += -c.y, c.y = 0);
  20321. 1 < d.y && (c.y -= d.y - 1, d.y = 1);
  20322. if (this.Dd) {
  20323. if (!this.zc) {
  20324. this.qd = 8;
  20325. var e = b.yd.BYTES_PER_ELEMENT;
  20326. this.pf = new ArrayBuffer(8 * e);
  20327. var f = [];
  20328. for (a = 0; 8 > a; a++) f[a] = new b.yd(null, null, null, this.pf, a * e);
  20329. f[0].m = this.oe(C(0, 1));
  20330. f[0].f = this.pe(C(0, 1));
  20331. f[1].m = this.oe(C(0, 0));
  20332. f[1].f = this.pe(C(0, 0));
  20333. f[6].m = this.oe(C(1, 1));
  20334. f[6].f = this.pe(C(1, 1));
  20335. f[7].m =
  20336. this.oe(C(1, 0));
  20337. f[7].f = this.pe(C(1, 0));
  20338. this.zc = f
  20339. }
  20340. a = this.zc;
  20341. a[2].m = this.oe(C(c.x, d.y));
  20342. a[2].f = this.pe(C(c.x, d.y));
  20343. a[3].m = this.oe(C(c.x, c.y));
  20344. a[3].f = this.pe(C(c.x, c.y));
  20345. a[4].m = this.oe(C(d.x, d.y));
  20346. a[4].f = this.pe(C(d.x, d.y));
  20347. a[5].m = this.oe(C(d.x, c.y));
  20348. a[5].f = this.pe(C(d.x, c.y))
  20349. } else {
  20350. if (!this.zc)
  20351. for (this.qd = 4, e = b.yd.BYTES_PER_ELEMENT, this.pf = new ArrayBuffer(4 * e), this.zc = [], a = 0; 4 > a; a++) this.zc[a] = new b.yd(null, null, null, this.pf, a * e);
  20352. a = this.zc;
  20353. a[0].m = this.oe(C(c.x, d.y));
  20354. a[0].f = this.pe(C(c.x, d.y));
  20355. a[1].m =
  20356. this.oe(C(c.x, c.y));
  20357. a[1].f = this.pe(C(c.x, c.y));
  20358. a[2].m = this.oe(C(d.x, d.y));
  20359. a[2].f = this.pe(C(d.x, d.y));
  20360. a[3].m = this.oe(C(d.x, c.y));
  20361. a[3].f = this.pe(C(d.x, c.y))
  20362. }
  20363. this.bc()
  20364. }
  20365. },
  20366. bc: function() {
  20367. if (this.$b && this.zc) {
  20368. for (var a = this.$b.quad.K.s, c = this.zc, d = 0, e = this.qd; d < e; ++d) c[d].s = a;
  20369. this.Zr = !0
  20370. }
  20371. },
  20372. yD: null,
  20373. NY: function() {
  20374. var a = this.$b,
  20375. c = a.width,
  20376. d = a.height,
  20377. e = this.kh;
  20378. if (this.kc == b.Ua.Uh) {
  20379. this.Je = Math.round(Math.sqrt(c * c + d * d));
  20380. var f, g = !1,
  20381. h = this.Cv;
  20382. h.x = c * e.x;
  20383. h.y = -d * e.y;
  20384. this.Dd ? (f = 270, e = 270 - 3.6 * this.li) : (e = -90, f = -90 + 3.6 *
  20385. this.li);
  20386. a.Lb && (h.x -= 2 * c * this.kh.x, e = -e - 180, f = -f - 180, g = !g);
  20387. a.Mb && (h.y += 2 * d * this.kh.y, g = !g, e = -e, f = -f);
  20388. this.jD = e;
  20389. this.kB = f;
  20390. this.cB = g
  20391. } else {
  20392. f = this.Hl;
  20393. h = this.li / 100;
  20394. g = this.NA;
  20395. f = N(c * (1 - f.x), d * (1 - f.y));
  20396. var h = N((c - f.width) * h, (d - f.height) * h),
  20397. h = N(f.width + h.width, f.height + h.height),
  20398. k = C(c * e.x, d * e.y);
  20399. f = k.x - h.width / 2;
  20400. 0.5 < e.x && h.width / 2 >= c - k.x && (f = c - h.width);
  20401. c = k.y - h.height / 2;
  20402. 0.5 < e.y && h.height / 2 >= d - k.y && (c = d - h.height);
  20403. g.x = 0;
  20404. d = 1;
  20405. a.Lb && (g.x -= h.width, d = -1);
  20406. 0 < f && (g.x += f * d);
  20407. g.y = 0;
  20408. d = 1;
  20409. a.Mb && (g.y += h.height, d = -1);
  20410. 0 < c && (g.y -=
  20411. c * d);
  20412. g.width = h.width;
  20413. g.height = -h.height
  20414. }
  20415. },
  20416. OY: function() {
  20417. var a = this.kc;
  20418. a === b.Ua.Uh ? this.RY() : a === b.Ua.Dl && this.LY();
  20419. this.Zr = !0
  20420. }
  20421. });
  20422. n = b.Ua.prototype;
  20423. b.A == b.U ? (n.ctor = n.Sq, n.qP = n.dY, n.py = n.jY, n.gG = n.rY, n.ZF = n.bY, n.NN = n.jK, n.Y = n.aj, n.yD = n.OY) : (n.ctor = n.Rq, n.qP = n.cY, n.py = n.iY, n.gG = n.qY, n.ZF = n.aY, n.NN = n.iK, n.Y = n.Ll, n.yD = b.Ua.prototype.NY);
  20424. b.i(n, "midPoint", n.z0, n.i4);
  20425. b.i(n, "barChangeRate", n.Q_, n.N3);
  20426. b.i(n, "type", n.OE, n.gG);
  20427. b.i(n, "percentage", n.G0, n.n4);
  20428. b.i(n, "sprite", n.oN, n.py);
  20429. b.i(n, "reverseDir", n.I1, n.ZF);
  20430. b.Ua.create = function(a) {
  20431. return new b.Ua(a)
  20432. };
  20433. b.Ua.IH = 4;
  20434. b.Ua.BT = 75;
  20435. b.Ua.Uh = 0;
  20436. b.Ua.Dl = 1;
  20437. b.xz = b.u.extend({
  20438. pd: 0,
  20439. Rc: 0,
  20440. ctor: function(a, c) {
  20441. b.u.prototype.ctor.call(this);
  20442. this.Rc = this.pd = 0;
  20443. void 0 !== c && this.d(a, c)
  20444. },
  20445. d: function(a, c) {
  20446. return b.u.prototype.d.call(this, a) ? (this.pd = c, !0) : !1
  20447. },
  20448. j: function() {
  20449. var a = new b.xz;
  20450. a.d(this.o, this.pd);
  20451. return a
  20452. },
  20453. reverse: function() {
  20454. b.log("cc.ProgressTo.reverse(): reverse hasn't been supported.");
  20455. return null
  20456. },
  20457. v: function(a) {
  20458. b.u.prototype.v.call(this, a);
  20459. this.Rc = a.percentage;
  20460. 100 == this.Rc && (this.Rc = 0)
  20461. },
  20462. update: function(a) {
  20463. this.target instanceof b.Ua && (this.target.percentage =
  20464. this.Rc + (this.pd - this.Rc) * a)
  20465. }
  20466. });
  20467. b.e3 = function(a, c) {
  20468. return new b.xz(a, c)
  20469. };
  20470. b.xz.create = b.e3;
  20471. b.Wt = b.u.extend({
  20472. pd: 0,
  20473. Rc: 0,
  20474. ctor: function(a, c, d) {
  20475. b.u.prototype.ctor.call(this);
  20476. this.Rc = this.pd = 0;
  20477. void 0 !== d && this.d(a, c, d)
  20478. },
  20479. d: function(a, c, d) {
  20480. return b.u.prototype.d.call(this, a) ? (this.pd = d, this.Rc = c, !0) : !1
  20481. },
  20482. j: function() {
  20483. var a = new b.Wt;
  20484. a.d(this.o, this.Rc, this.pd);
  20485. return a
  20486. },
  20487. reverse: function() {
  20488. return b.Wt.create(this.o, this.pd, this.Rc)
  20489. },
  20490. v: function(a) {
  20491. b.u.prototype.v.call(this, a)
  20492. },
  20493. update: function(a) {
  20494. this.target instanceof b.Ua && (this.target.percentage = this.Rc + (this.pd - this.Rc) * a)
  20495. }
  20496. });
  20497. b.AO = function(a, c, d) {
  20498. return new b.Wt(a, c, d)
  20499. };
  20500. b.Wt.create = b.AO;
  20501. b.sq = 4208917214;
  20502. b.w8 = 0;
  20503. b.$j = 1;
  20504. b.ku = 0;
  20505. b.v8 = 1;
  20506. b.ca = b.Zj.extend({
  20507. la: null,
  20508. bb: null,
  20509. o: null,
  20510. ih: !1,
  20511. sK: !1,
  20512. vb: "TransitionScene",
  20513. ctor: function(a, c) {
  20514. b.Zj.prototype.ctor.call(this);
  20515. void 0 !== a && void 0 !== c && this.d(a, c)
  20516. },
  20517. oL: function() {
  20518. this.an(this.oL);
  20519. var a = b.I;
  20520. this.sK = a.Jk;
  20521. a.dy(this.la);
  20522. b.ra.ve(!0);
  20523. this.bb.visible = !0
  20524. },
  20525. ri: function() {
  20526. this.ih = !0
  20527. },
  20528. Y: function() {
  20529. this.ih ? (this.bb.R(), this.la.R()) : (this.la.R(), this.bb.R())
  20530. },
  20531. Z: function() {
  20532. b.k.prototype.Z.call(this);
  20533. b.ra.ve(!1);
  20534. this.bb.Xf();
  20535. this.la.Z()
  20536. },
  20537. sb: function() {
  20538. b.k.prototype.sb.call(this);
  20539. b.ra.ve(!0);
  20540. this.bb.sb();
  20541. this.la.Mh()
  20542. },
  20543. Qe: function() {
  20544. b.k.prototype.Qe.call(this);
  20545. this.sK && this.bb.Qe()
  20546. },
  20547. d: function(a, c) {
  20548. if (!c) throw "cc.TransitionScene.initWithDuration(): Argument scene must be non-nil";
  20549. if (this.da()) {
  20550. this.o = a;
  20551. this.Ic({
  20552. x: 0,
  20553. y: 0,
  20554. anchorX: 0,
  20555. anchorY: 0
  20556. });
  20557. this.la = c;
  20558. this.bb = b.I.cd;
  20559. this.bb || (this.bb = b.Zj.create(), this.bb.da());
  20560. if (this.la == this.bb) throw "cc.TransitionScene.initWithDuration(): Incoming scene must be different from the outgoing scene";
  20561. this.ri();
  20562. return !0
  20563. }
  20564. return !1
  20565. },
  20566. finish: function() {
  20567. this.la.Ic({
  20568. visible: !0,
  20569. x: 0,
  20570. y: 0,
  20571. scale: 1,
  20572. rotation: 0
  20573. });
  20574. b.A === b.U && this.la.Jm().restore();
  20575. this.bb.Ic({
  20576. visible: !1,
  20577. x: 0,
  20578. y: 0,
  20579. scale: 1,
  20580. rotation: 0
  20581. });
  20582. b.A === b.U && this.bb.Jm().restore();
  20583. this.Um(this.oL, 0)
  20584. },
  20585. cx: function() {
  20586. this.la.visible = !0;
  20587. this.bb.visible = !1
  20588. }
  20589. });
  20590. b.ca.create = function(a, c) {
  20591. return new b.ca(a, c)
  20592. };
  20593. b.cf = b.ca.extend({
  20594. Xl: 0,
  20595. ctor: function(a, c, d) {
  20596. b.ca.prototype.ctor.call(this);
  20597. void 0 != d && this.d(a, c, d)
  20598. },
  20599. d: function(a, c, d) {
  20600. b.ca.prototype.d.call(this, a, c) && (this.Xl = d);
  20601. return !0
  20602. }
  20603. });
  20604. b.cf.create = function(a, c, d) {
  20605. return new b.cf(a, c, d)
  20606. };
  20607. b.iI = b.ca.extend({
  20608. ctor: function(a, c) {
  20609. b.ca.prototype.ctor.call(this);
  20610. c && this.d(a, c)
  20611. },
  20612. Z: function() {
  20613. b.ca.prototype.Z.call(this);
  20614. this.la.Ic({
  20615. scale: 0.001,
  20616. anchorX: 0.5,
  20617. anchorY: 0.5
  20618. });
  20619. this.bb.Ic({
  20620. scale: 1,
  20621. anchorX: 0.5,
  20622. anchorY: 0.5
  20623. });
  20624. var a = b.Ka.create(b.af.create(b.cu.create(this.o / 2, 0.001), b.Zt.create(this.o / 2, 720)), b.xd.create(this.o / 2));
  20625. this.bb.ea(a);
  20626. this.la.ea(b.Ka.create(a.reverse(), b.Tb.create(this.finish, this)))
  20627. }
  20628. });
  20629. b.iI.create = function(a, c) {
  20630. return new b.iI(a, c)
  20631. };
  20632. b.ZH = b.ca.extend({
  20633. ctor: function(a, c) {
  20634. b.ca.prototype.ctor.call(this);
  20635. c && this.d(a, c)
  20636. },
  20637. Z: function() {
  20638. b.ca.prototype.Z.call(this);
  20639. var a = b.I.Aa();
  20640. this.la.Ic({
  20641. scale: 0.5,
  20642. x: a.width,
  20643. y: 0,
  20644. anchorX: 0.5,
  20645. anchorY: 0.5
  20646. });
  20647. this.bb.anchorX = 0.5;
  20648. this.bb.anchorY = 0.5;
  20649. var c = b.Wj.create(this.o / 4, C(-a.width, 0), a.width / 4, 2),
  20650. d = b.Pd.create(this.o / 4, 1),
  20651. a = b.Pd.create(this.o / 4, 0.5),
  20652. a = b.Ka.create(a, c),
  20653. c = b.Ka.create(c, d),
  20654. d = b.xd.create(this.o / 2);
  20655. this.bb.ea(a);
  20656. this.la.ea(b.Ka.create(d, c, b.Tb.create(this.finish, this)))
  20657. }
  20658. });
  20659. b.ZH.create = function(a, c) {
  20660. return new b.ZH(a, c)
  20661. };
  20662. b.dk = b.ca.extend({
  20663. ctor: function(a, c) {
  20664. b.ca.prototype.ctor.call(this);
  20665. c && this.d(a, c)
  20666. },
  20667. Z: function() {
  20668. b.ca.prototype.Z.call(this);
  20669. this.Dj();
  20670. var a = this.action();
  20671. this.la.ea(b.Ka.create(this.Tf(a), b.Tb.create(this.finish, this)))
  20672. },
  20673. Dj: function() {
  20674. this.la.P(-b.I.Aa().width, 0)
  20675. },
  20676. action: function() {
  20677. return b.Rt.create(this.o, C(0, 0))
  20678. },
  20679. Tf: function(a) {
  20680. return b.tl.create(a, 2)
  20681. }
  20682. });
  20683. b.dk.create = function(a, c) {
  20684. return new b.dk(a, c)
  20685. };
  20686. b.aI = b.dk.extend({
  20687. ctor: function(a, c) {
  20688. b.dk.prototype.ctor.call(this);
  20689. c && this.d(a, c)
  20690. },
  20691. Dj: function() {
  20692. this.la.P(b.I.Aa().width, 0)
  20693. }
  20694. });
  20695. b.aI.create = function(a, c) {
  20696. return new b.aI(a, c)
  20697. };
  20698. b.bI = b.dk.extend({
  20699. ctor: function(a, c) {
  20700. b.dk.prototype.ctor.call(this);
  20701. c && this.d(a, c)
  20702. },
  20703. Dj: function() {
  20704. this.la.P(0, b.I.Aa().height)
  20705. }
  20706. });
  20707. b.bI.create = function(a, c) {
  20708. return new b.bI(a, c)
  20709. };
  20710. b.$H = b.dk.extend({
  20711. ctor: function(a, c) {
  20712. b.dk.prototype.ctor.call(this);
  20713. c && this.d(a, c)
  20714. },
  20715. Dj: function() {
  20716. this.la.P(0, -b.I.Aa().height)
  20717. }
  20718. });
  20719. b.$H.create = function(a, c) {
  20720. return new b.$H(a, c)
  20721. };
  20722. b.Uj = 0.5;
  20723. b.ek = b.ca.extend({
  20724. ctor: function(a, c) {
  20725. b.ca.prototype.ctor.call(this);
  20726. c && this.d(a, c)
  20727. },
  20728. ri: function() {
  20729. this.ih = !1
  20730. },
  20731. Z: function() {
  20732. b.ca.prototype.Z.call(this);
  20733. this.Dj();
  20734. var a = this.action(),
  20735. c = this.action(),
  20736. a = this.Tf(a),
  20737. c = b.Ka.create(this.Tf(c), b.Tb.create(this.finish, this));
  20738. this.la.ea(a);
  20739. this.bb.ea(c)
  20740. },
  20741. Dj: function() {
  20742. this.la.P(-b.I.Aa().width + b.Uj, 0)
  20743. },
  20744. action: function() {
  20745. return b.Zg.create(this.o, C(b.I.Aa().width - b.Uj, 0))
  20746. },
  20747. Tf: function(a) {
  20748. return b.tl.create(a, 2)
  20749. }
  20750. });
  20751. b.ek.create = function(a, c) {
  20752. return new b.ek(a, c)
  20753. };
  20754. b.lI = b.ek.extend({
  20755. ctor: function(a, c) {
  20756. b.ek.prototype.ctor.call(this);
  20757. c && this.d(a, c)
  20758. },
  20759. ri: function() {
  20760. this.ih = !0
  20761. },
  20762. Dj: function() {
  20763. this.la.P(b.I.Aa().width - b.Uj, 0)
  20764. },
  20765. action: function() {
  20766. return b.Zg.create(this.o, C(-(b.I.Aa().width - b.Uj), 0))
  20767. }
  20768. });
  20769. b.lI.create = function(a, c) {
  20770. return new b.lI(a, c)
  20771. };
  20772. b.kI = b.ek.extend({
  20773. ctor: function(a, c) {
  20774. b.ek.prototype.ctor.call(this);
  20775. c && this.d(a, c)
  20776. },
  20777. ri: function() {
  20778. this.ih = !1
  20779. },
  20780. Dj: function() {
  20781. this.la.P(0, -(b.I.Aa().height - b.Uj))
  20782. },
  20783. action: function() {
  20784. return b.Zg.create(this.o, C(0, b.I.Aa().height - b.Uj))
  20785. }
  20786. });
  20787. b.kI.create = function(a, c) {
  20788. return new b.kI(a, c)
  20789. };
  20790. b.mI = b.ek.extend({
  20791. ctor: function(a, c) {
  20792. b.ek.prototype.ctor.call(this);
  20793. c && this.d(a, c)
  20794. },
  20795. ri: function() {
  20796. this.ih = !0
  20797. },
  20798. Dj: function() {
  20799. this.la.P(0, b.I.Aa().height - b.Uj)
  20800. },
  20801. action: function() {
  20802. return b.Zg.create(this.o, C(0, -(b.I.Aa().height - b.Uj)))
  20803. }
  20804. });
  20805. b.mI.create = function(a, c) {
  20806. return new b.mI(a, c)
  20807. };
  20808. b.jI = b.ca.extend({
  20809. ctor: function(a, c) {
  20810. b.ca.prototype.ctor.call(this);
  20811. c && this.d(a, c)
  20812. },
  20813. Z: function() {
  20814. b.ca.prototype.Z.call(this);
  20815. this.la.Ic({
  20816. scale: 0.001,
  20817. anchorX: 2 / 3,
  20818. anchorY: 0.5
  20819. });
  20820. this.bb.Ic({
  20821. scale: 1,
  20822. anchorX: 1 / 3,
  20823. anchorY: 0.5
  20824. });
  20825. var a = b.Pd.create(this.o, 0.01),
  20826. c = b.Pd.create(this.o, 1);
  20827. this.la.ea(this.Tf(c));
  20828. this.bb.ea(b.Ka.create(this.Tf(a), b.Tb.create(this.finish, this)))
  20829. },
  20830. Tf: function(a) {
  20831. return b.tl.create(a, 2)
  20832. }
  20833. });
  20834. b.jI.create = function(a, c) {
  20835. return new b.jI(a, c)
  20836. };
  20837. b.XH = b.cf.extend({
  20838. ctor: function(a, c, d) {
  20839. b.cf.prototype.ctor.call(this);
  20840. d = d || b.$j;
  20841. c && this.d(a, c, d)
  20842. },
  20843. Z: function() {
  20844. b.ca.prototype.Z.call(this);
  20845. var a, c;
  20846. this.la.visible = !1;
  20847. var d;
  20848. this.Xl === b.$j ? (a = 90, d = 270, c = 90) : (a = -90, d = 90, c = -90);
  20849. a = b.Ka.create(b.xd.create(this.o / 2), b.pg.create(), b.ye.create(this.o / 2, 1, 0, d, a, 0, 0), b.Tb.create(this.finish, this));
  20850. c = b.Ka.create(b.ye.create(this.o / 2, 1, 0, 0, c, 0, 0), b.Sh.create(), b.xd.create(this.o / 2));
  20851. this.la.ea(a);
  20852. this.bb.ea(c)
  20853. }
  20854. });
  20855. b.XH.create = function(a, c, d) {
  20856. return new b.XH(a, c, d)
  20857. };
  20858. b.YH = b.cf.extend({
  20859. ctor: function(a, c, d) {
  20860. b.cf.prototype.ctor.call(this);
  20861. d = d || b.ku;
  20862. c && this.d(a, c, d)
  20863. },
  20864. Z: function() {
  20865. b.ca.prototype.Z.call(this);
  20866. var a, c;
  20867. this.la.visible = !1;
  20868. var d;
  20869. this.Xl == b.ku ? (a = 90, d = 270, c = 90) : (a = -90, d = 90, c = -90);
  20870. a = b.Ka.create(b.xd.create(this.o / 2), b.pg.create(), b.ye.create(this.o / 2, 1, 0, d, a, 90, 0), b.Tb.create(this.finish, this));
  20871. c = b.Ka.create(b.ye.create(this.o / 2, 1, 0, 0, c, 90, 0), b.Sh.create(), b.xd.create(this.o / 2));
  20872. this.la.ea(a);
  20873. this.bb.ea(c)
  20874. }
  20875. });
  20876. b.YH.create = function(a, c, d) {
  20877. return new b.YH(a, c, d)
  20878. };
  20879. b.WH = b.cf.extend({
  20880. ctor: function(a, c, d) {
  20881. b.cf.prototype.ctor.call(this);
  20882. d = d || b.$j;
  20883. c && this.d(a, c, d)
  20884. },
  20885. Z: function() {
  20886. b.ca.prototype.Z.call(this);
  20887. var a, c;
  20888. this.la.visible = !1;
  20889. var d;
  20890. this.Xl === b.$j ? (a = 90, d = 270, c = 90) : (a = -90, d = 90, c = -90);
  20891. a = b.Ka.create(b.xd.create(this.o / 2), b.pg.create(), b.ye.create(this.o / 2, 1, 0, d, a, -45, 0), b.Tb.create(this.finish, this));
  20892. c = b.Ka.create(b.ye.create(this.o / 2, 1, 0, 0, c, 45, 0), b.Sh.create(), b.xd.create(this.o / 2));
  20893. this.la.ea(a);
  20894. this.bb.ea(c)
  20895. }
  20896. });
  20897. b.WH.create = function(a, c, d) {
  20898. return new b.WH(a, c, d)
  20899. };
  20900. b.qI = b.cf.extend({
  20901. ctor: function(a, c, d) {
  20902. b.cf.prototype.ctor.call(this);
  20903. d = d || b.$j;
  20904. c && this.d(a, c, d)
  20905. },
  20906. Z: function() {
  20907. b.ca.prototype.Z.call(this);
  20908. var a, c;
  20909. this.la.visible = !1;
  20910. var d;
  20911. this.Xl === b.$j ? (a = 90, d = 270, c = 90) : (a = -90, d = 90, c = -90);
  20912. a = b.Ka.create(b.xd.create(this.o / 2), b.af.create(b.ye.create(this.o / 2, 1, 0, d, a, 0, 0), b.Pd.create(this.o / 2, 1), b.pg.create()), b.Tb.create(this.finish, this));
  20913. c = b.Ka.create(b.af.create(b.ye.create(this.o / 2, 1, 0, 0, c, 0, 0), b.Pd.create(this.o / 2, 0.5)), b.Sh.create(), b.xd.create(this.o / 2));
  20914. this.la.scale =
  20915. 0.5;
  20916. this.la.ea(a);
  20917. this.bb.ea(c)
  20918. }
  20919. });
  20920. b.qI.create = function(a, c, d) {
  20921. return new b.qI(a, c, d)
  20922. };
  20923. b.rI = b.cf.extend({
  20924. ctor: function(a, c, d) {
  20925. b.cf.prototype.ctor.call(this);
  20926. d = d || b.ku;
  20927. c && this.d(a, c, d)
  20928. },
  20929. Z: function() {
  20930. b.ca.prototype.Z.call(this);
  20931. var a, c;
  20932. this.la.visible = !1;
  20933. var d;
  20934. this.Xl === b.ku ? (a = 90, d = 270, c = 90) : (a = -90, d = 90, c = -90);
  20935. a = b.Ka.create(b.xd.create(this.o / 2), b.af.create(b.ye.create(this.o / 2, 1, 0, d, a, 90, 0), b.Pd.create(this.o / 2, 1), b.pg.create()), b.Tb.create(this.finish, this));
  20936. c = b.Ka.create(b.af.create(b.ye.create(this.o / 2, 1, 0, 0, c, 90, 0), b.Pd.create(this.o / 2, 0.5)), b.Sh.create(), b.xd.create(this.o / 2));
  20937. this.la.scale = 0.5;
  20938. this.la.ea(a);
  20939. this.bb.ea(c)
  20940. }
  20941. });
  20942. b.rI.create = function(a, c, d) {
  20943. return new b.rI(a, c, d)
  20944. };
  20945. b.pI = b.cf.extend({
  20946. ctor: function(a, c, d) {
  20947. b.cf.prototype.ctor.call(this);
  20948. d = d || b.$j;
  20949. c && this.d(a, c, d)
  20950. },
  20951. Z: function() {
  20952. b.ca.prototype.Z.call(this);
  20953. var a, c;
  20954. this.la.visible = !1;
  20955. var d;
  20956. this.Xl === b.$j ? (a = 90, d = 270, c = 90) : (a = -90, d = 90, c = -90);
  20957. a = b.Ka.create(b.xd.create(this.o / 2), b.af.create(b.ye.create(this.o / 2, 1, 0, d, a, -45, 0), b.Pd.create(this.o / 2, 1), b.pg.create()), b.pg.create(), b.Tb.create(this.finish, this));
  20958. c = b.Ka.create(b.af.create(b.ye.create(this.o / 2, 1, 0, 0, c, 45, 0), b.Pd.create(this.o / 2, 0.5)), b.Sh.create(), b.xd.create(this.o /
  20959. 2));
  20960. this.la.scale = 0.5;
  20961. this.la.ea(a);
  20962. this.bb.ea(c)
  20963. }
  20964. });
  20965. b.pI.create = function(a, c, d) {
  20966. return new b.pI(a, c, d)
  20967. };
  20968. b.SH = b.ca.extend({
  20969. fe: null,
  20970. ctor: function(a, c, d) {
  20971. b.ca.prototype.ctor.call(this);
  20972. this.fe = b.color();
  20973. c && this.d(a, c, d)
  20974. },
  20975. Z: function() {
  20976. b.ca.prototype.Z.call(this);
  20977. var a = b.Yc.create(this.fe);
  20978. this.la.visible = !1;
  20979. this.X(a, 2, b.sq);
  20980. var a = this.Eh(b.sq),
  20981. c = b.Ka.create(b.fq.create(this.o / 2), b.Tb.create(this.cx, this), b.gq.create(this.o / 2), b.Tb.create(this.finish, this));
  20982. a.ea(c)
  20983. },
  20984. sb: function() {
  20985. b.ca.prototype.sb.call(this);
  20986. this.Wx(b.sq, !1)
  20987. },
  20988. d: function(a, c, d) {
  20989. d = d || b.color.BLACK;
  20990. b.ca.prototype.d.call(this, a, c) && (this.fe.r =
  20991. d.r, this.fe.g = d.g, this.fe.b = d.b, this.fe.a = 0);
  20992. return !0
  20993. }
  20994. });
  20995. b.SH.create = function(a, c, d) {
  20996. return new b.SH(a, c, d)
  20997. };
  20998. b.RH = b.ca.extend({
  20999. ctor: function(a, c) {
  21000. b.ca.prototype.ctor.call(this);
  21001. c && this.d(a, c)
  21002. },
  21003. Z: function() {
  21004. b.ca.prototype.Z.call(this);
  21005. var a = b.color(0, 0, 0, 0),
  21006. c = b.I.Aa(),
  21007. a = b.Yc.create(a),
  21008. d = b.sn.create(c.width, c.height);
  21009. if (null != d) {
  21010. d.sprite.anchorX = 0.5;
  21011. d.sprite.anchorY = 0.5;
  21012. d.Ic({
  21013. x: c.width / 2,
  21014. y: c.height / 2,
  21015. anchorX: 0.5,
  21016. anchorY: 0.5
  21017. });
  21018. d.Ah();
  21019. this.la.R();
  21020. d.end();
  21021. var e = b.sn.create(c.width, c.height);
  21022. e.P(c.width / 2, c.height / 2);
  21023. e.sprite.anchorX = e.anchorX = 0.5;
  21024. e.sprite.anchorY = e.anchorY = 0.5;
  21025. e.Ah();
  21026. this.bb.R();
  21027. e.end();
  21028. d.sprite.Se(b.ONE,
  21029. b.ONE);
  21030. e.sprite.Se(b.SRC_ALPHA, b.ONE_MINUS_SRC_ALPHA);
  21031. a.X(d);
  21032. a.X(e);
  21033. d.sprite.opacity = 255;
  21034. e.sprite.opacity = 255;
  21035. c = b.Ka.create(b.Ti.create(this.o, 0), b.Tb.create(this.cx, this), b.Tb.create(this.finish, this));
  21036. e.sprite.ea(c);
  21037. this.X(a, 2, b.sq)
  21038. }
  21039. },
  21040. sb: function() {
  21041. this.Wx(b.sq, !1);
  21042. b.ca.prototype.sb.call(this)
  21043. },
  21044. Y: function() {}
  21045. });
  21046. b.RH.create = function(a, c) {
  21047. return new b.RH(a, c)
  21048. };
  21049. b.oI = b.ca.extend({
  21050. ctor: function(a, c) {
  21051. b.ca.prototype.ctor.call(this);
  21052. c && this.d(a, c)
  21053. },
  21054. ri: function() {
  21055. this.ih = !1
  21056. },
  21057. Z: function() {
  21058. b.ca.prototype.Z.call(this);
  21059. var a = b.I.Aa(),
  21060. a = b.lA.create(this.o, N(0 | a.width / a.height * 12, 12)),
  21061. a = this.Tf(a);
  21062. this.bb.ea(b.Ka.create(a, b.Tb.create(this.finish, this), b.zl.create()))
  21063. },
  21064. Tf: function(a) {
  21065. return a
  21066. }
  21067. });
  21068. b.oI.create = function(a, c) {
  21069. return new b.oI(a, c)
  21070. };
  21071. b.nu = b.ca.extend({
  21072. ctor: function(a, c) {
  21073. b.ca.prototype.ctor.call(this);
  21074. c && this.d(a, c)
  21075. },
  21076. Z: function() {
  21077. b.ca.prototype.Z.call(this);
  21078. this.la.visible = !1;
  21079. var a = this.action(),
  21080. a = b.Ka.create(a, b.Tb.create(this.cx, this), a.reverse());
  21081. this.ea(b.Ka.create(this.Tf(a), b.Tb.create(this.finish, this), b.zl.create()))
  21082. },
  21083. Tf: function(a) {
  21084. return b.Wp.create(a, 3)
  21085. },
  21086. action: function() {
  21087. return b.Sz.create(this.o / 2, 3)
  21088. }
  21089. });
  21090. b.nu.create = function(a, c) {
  21091. return new b.nu(a, c)
  21092. };
  21093. b.nI = b.nu.extend({
  21094. ctor: function(a, c) {
  21095. b.nu.prototype.ctor.call(this);
  21096. c && this.d(a, c)
  21097. },
  21098. action: function() {
  21099. return b.Tz.create(this.o / 2, 3)
  21100. }
  21101. });
  21102. b.nI.create = function(a, c) {
  21103. return new b.nI(a, c)
  21104. };
  21105. b.ck = b.ca.extend({
  21106. ctor: function(a, c) {
  21107. b.ca.prototype.ctor.call(this);
  21108. c && this.d(a, c)
  21109. },
  21110. ri: function() {
  21111. this.ih = !1
  21112. },
  21113. Z: function() {
  21114. b.ca.prototype.Z.call(this);
  21115. var a = b.I.Aa(),
  21116. a = this.Jo(N(0 | a.width / a.height * 12, 12));
  21117. this.bb.ea(b.Ka.create(this.Tf(a), b.Tb.create(this.finish, this), b.zl.create()))
  21118. },
  21119. Tf: function(a) {
  21120. return a
  21121. },
  21122. Jo: function(a) {
  21123. return b.hq.create(this.o, a)
  21124. }
  21125. });
  21126. b.ck.create = function(a, c) {
  21127. return new b.ck(a, c)
  21128. };
  21129. b.TH = b.ck.extend({
  21130. ctor: function(a, c) {
  21131. b.ck.prototype.ctor.call(this);
  21132. c && this.d(a, c)
  21133. },
  21134. Jo: function(a) {
  21135. return b.$y.create(this.o, a)
  21136. }
  21137. });
  21138. b.TH.create = function(a, c) {
  21139. return new b.TH(a, c)
  21140. };
  21141. b.VH = b.ck.extend({
  21142. ctor: function(a, c) {
  21143. b.ck.prototype.ctor.call(this);
  21144. c && this.d(a, c)
  21145. },
  21146. Jo: function(a) {
  21147. return b.Nt.create(this.o, a)
  21148. }
  21149. });
  21150. b.VH.create = function(a, c) {
  21151. return new b.VH(a, c)
  21152. };
  21153. b.UH = b.ck.extend({
  21154. ctor: function(a, c) {
  21155. b.ck.prototype.ctor.call(this);
  21156. c && this.d(a, c)
  21157. },
  21158. Jo: function(a) {
  21159. return b.az.create(this.o, a)
  21160. }
  21161. });
  21162. b.UH.create = function(a, c) {
  21163. return new b.UH(a, c)
  21164. };
  21165. b.AH = 49153;
  21166. b.bf = b.ca.extend({
  21167. pd: 0,
  21168. Rc: 0,
  21169. Tv: null,
  21170. vb: "TransitionProgress",
  21171. ctor: function(a, c) {
  21172. b.ca.prototype.ctor.call(this);
  21173. c && this.d(a, c)
  21174. },
  21175. dm: function(a, c, d) {
  21176. a.Ic({
  21177. x: c,
  21178. y: d,
  21179. anchorX: 0.5,
  21180. anchorY: 0.5
  21181. })
  21182. },
  21183. Z: function() {
  21184. b.ca.prototype.Z.call(this);
  21185. this.uL();
  21186. var a = b.I.Aa(),
  21187. c = b.sn.create(a.width, a.height);
  21188. c.sprite.anchorX = 0.5;
  21189. c.sprite.anchorY = 0.5;
  21190. this.dm(c, a.width / 2, a.height / 2);
  21191. c.clear(0, 0, 0, 1);
  21192. c.Ah();
  21193. this.Tv.R();
  21194. c.end();
  21195. this.Tv == this.bb && this.cx();
  21196. a = this.Zl(c);
  21197. c = b.oc(b.AO(this.o, this.Rc, this.pd), b.Xk(this.finish, this));
  21198. a.ea(c);
  21199. this.X(a, 2, b.AH)
  21200. },
  21201. sb: function() {
  21202. this.Wx(b.AH, !0);
  21203. b.ca.prototype.sb.call(this)
  21204. },
  21205. uL: function() {
  21206. this.Tv = this.bb;
  21207. this.Rc = 100;
  21208. this.pd = 0
  21209. },
  21210. Zl: function() {
  21211. b.log("cc.TransitionProgress._progressTimerNodeWithRenderTexture(): should be overridden in subclass");
  21212. return null
  21213. },
  21214. ri: function() {
  21215. this.ih = !1
  21216. }
  21217. });
  21218. b.bf.create = function(a, c) {
  21219. return new b.bf(a, c)
  21220. };
  21221. b.gI = b.bf.extend({
  21222. ctor: function(a, c) {
  21223. b.bf.prototype.ctor.call(this);
  21224. c && this.d(a, c)
  21225. },
  21226. Zl: function(a) {
  21227. var c = b.I.Aa();
  21228. a = b.Ua.create(a.sprite);
  21229. b.A === b.U && (a.sprite.flippedY = !0);
  21230. a.type = b.Ua.Uh;
  21231. a.reverseDir = !1;
  21232. a.percentage = 100;
  21233. this.dm(a, c.width / 2, c.height / 2);
  21234. return a
  21235. }
  21236. });
  21237. b.gI.create = function(a, c) {
  21238. return new b.gI(a, c)
  21239. };
  21240. b.kA = b.bf.extend({
  21241. ctor: function(a, c) {
  21242. b.bf.prototype.ctor.call(this);
  21243. c && this.d(a, c)
  21244. },
  21245. Zl: function(a) {
  21246. var c = b.I.Aa();
  21247. a = b.Ua.create(a.sprite);
  21248. b.A === b.U && (a.sprite.flippedY = !0);
  21249. a.type = b.Ua.Uh;
  21250. a.reverseDir = !0;
  21251. a.percentage = 100;
  21252. this.dm(a, c.width / 2, c.height / 2);
  21253. return a
  21254. }
  21255. });
  21256. b.kA.create = function(a, c) {
  21257. var d = new b.kA;
  21258. return null != d && d.d(a, c) ? d : new b.kA(a, c)
  21259. };
  21260. b.dI = b.bf.extend({
  21261. ctor: function(a, c) {
  21262. b.bf.prototype.ctor.call(this);
  21263. c && this.d(a, c)
  21264. },
  21265. Zl: function(a) {
  21266. var c = b.I.Aa();
  21267. a = b.Ua.create(a.sprite);
  21268. b.A === b.U && (a.sprite.flippedY = !0);
  21269. a.type = b.Ua.Dl;
  21270. a.midPoint = C(1, 0);
  21271. a.barChangeRate = C(1, 0);
  21272. a.percentage = 100;
  21273. this.dm(a, c.width / 2, c.height / 2);
  21274. return a
  21275. }
  21276. });
  21277. b.dI.create = function(a, c) {
  21278. return new b.dI(a, c)
  21279. };
  21280. b.hI = b.bf.extend({
  21281. ctor: function(a, c) {
  21282. b.bf.prototype.ctor.call(this);
  21283. c && this.d(a, c)
  21284. },
  21285. Zl: function(a) {
  21286. var c = b.I.Aa();
  21287. a = b.Ua.create(a.sprite);
  21288. b.A === b.U && (a.sprite.flippedY = !0);
  21289. a.type = b.Ua.Dl;
  21290. a.midPoint = C(0, 0);
  21291. a.barChangeRate = C(0, 1);
  21292. a.percentage = 100;
  21293. this.dm(a, c.width / 2, c.height / 2);
  21294. return a
  21295. }
  21296. });
  21297. b.hI.create = function(a, c) {
  21298. return new b.hI(a, c)
  21299. };
  21300. b.eI = b.bf.extend({
  21301. ctor: function(a, c) {
  21302. b.bf.prototype.ctor.call(this);
  21303. c && this.d(a, c)
  21304. },
  21305. Zl: function(a) {
  21306. var c = b.I.Aa();
  21307. a = b.Ua.create(a.sprite);
  21308. b.A === b.U && (a.sprite.flippedY = !0);
  21309. a.type = b.Ua.Dl;
  21310. a.midPoint = C(0.5, 0.5);
  21311. a.barChangeRate = C(1, 1);
  21312. a.percentage = 0;
  21313. this.dm(a, c.width / 2, c.height / 2);
  21314. return a
  21315. },
  21316. ri: function() {
  21317. this.ih = !1
  21318. },
  21319. uL: function() {
  21320. this.Tv = this.la;
  21321. this.Rc = 0;
  21322. this.pd = 100
  21323. }
  21324. });
  21325. b.eI.create = function(a, c) {
  21326. return new b.eI(a, c)
  21327. };
  21328. b.fI = b.bf.extend({
  21329. ctor: function(a, c) {
  21330. b.bf.prototype.ctor.call(this);
  21331. c && this.d(a, c)
  21332. },
  21333. Zl: function(a) {
  21334. var c = b.I.Aa();
  21335. a = b.Ua.create(a.sprite);
  21336. b.A === b.U && (a.sprite.flippedY = !0);
  21337. a.type = b.Ua.Dl;
  21338. a.midPoint = C(0.5, 0.5);
  21339. a.barChangeRate = C(1, 1);
  21340. a.percentage = 100;
  21341. this.dm(a, c.width / 2, c.height / 2);
  21342. return a
  21343. }
  21344. });
  21345. b.fI.create = function(a, c) {
  21346. return new b.fI(a, c)
  21347. };
  21348. b.cI = b.ca.extend({
  21349. ctor: function(a, c, d) {
  21350. b.ca.prototype.ctor.call(this);
  21351. this.d(a, c, d)
  21352. },
  21353. Cu: !0,
  21354. vb: "TransitionPageTurn",
  21355. d: function(a, c, d) {
  21356. this.Cu = d;
  21357. b.ca.prototype.d.call(this, a, c);
  21358. return !0
  21359. },
  21360. Jo: function(a) {
  21361. return this.Cu ? b.rq.create(b.Vt.create(this.o, a)) : b.Vt.create(this.o, a)
  21362. },
  21363. Z: function() {
  21364. b.ca.prototype.Z.call(this);
  21365. var a = b.I.Aa(),
  21366. c;
  21367. a.width > a.height ? (a = 16, c = 12) : (a = 12, c = 16);
  21368. a = this.Jo(N(a, c));
  21369. this.Cu ? (this.la.visible = !1, this.la.ea(b.Ka.create(b.pg.create(), a, b.Tb.create(this.finish, this), b.zl.create()))) :
  21370. this.bb.ea(b.Ka.create(a, b.Tb.create(this.finish, this), b.zl.create()))
  21371. },
  21372. ri: function() {
  21373. this.ih = this.Cu
  21374. }
  21375. });
  21376. b.cI.create = function(a, c, d) {
  21377. return new b.cI(a, c, d)
  21378. };
  21379. b.ja = {
  21380. name: "Jacob__Codec"
  21381. };
  21382. b.H5 = function() {
  21383. return b.ja.Ea.Zw.apply(b.ja.Ea, arguments)
  21384. };
  21385. b.I5 = function() {
  21386. var a = b.ja.rl.vM.apply(b.ja.rl, arguments);
  21387. return b.ja.Ea.Zw.apply(b.ja.Ea, [a])
  21388. };
  21389. b.UP = function(a, c) {
  21390. c = c || 1;
  21391. var d = this.I5(a),
  21392. e = [],
  21393. f, g, h;
  21394. f = 0;
  21395. for (h = d.length / c; f < h; f++)
  21396. for (e[f] = 0, g = c - 1; 0 <= g; --g) e[f] += d.charCodeAt(f * c + g) << 8 * g;
  21397. return e
  21398. };
  21399. b.Gka = function(a, c) {
  21400. c = c || 1;
  21401. var d = this.H5(a),
  21402. e = [],
  21403. f, g, h;
  21404. f = 0;
  21405. for (h = d.length / c; f < h; f++)
  21406. for (e[f] = 0, g = c - 1; 0 <= g; --g) e[f] += d.charCodeAt(f * c + g) << 8 * g;
  21407. return e
  21408. };
  21409. b.h8 = function(a) {
  21410. a = a.split(",");
  21411. var c = [],
  21412. d;
  21413. for (d = 0; d < a.length; d++) c.push(parseInt(a[d]));
  21414. return c
  21415. };
  21416. b.ja.rl = {
  21417. name: "Jacob__Codec__Base64"
  21418. };
  21419. b.ja.rl.pv = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d";
  21420. b.ja.rl.vM = function(a) {
  21421. var c = [],
  21422. d, e, f, g, h, k = 0;
  21423. for (a = a.replace(/[^A-Za-z0-9\+\/\=]/g, ""); k < a.length;) d = this.pv.indexOf(a.charAt(k++)), e = this.pv.indexOf(a.charAt(k++)), g = this.pv.indexOf(a.charAt(k++)), h = this.pv.indexOf(a.charAt(k++)), d = d << 2 | e >> 4, e = (e & 15) << 4 | g >> 2, f = (g & 3) << 6 | h, c.push(String.fromCharCode(d)), 64 != g && c.push(String.fromCharCode(e)), 64 != h && c.push(String.fromCharCode(f));
  21424. return c = c.join("")
  21425. };
  21426. b.ja.rl.wM = function(a, c) {
  21427. var d = this.vM(a),
  21428. e = [],
  21429. f, g, h;
  21430. f = 0;
  21431. for (h = d.length / c; f < h; f++)
  21432. for (e[f] = 0, g = c - 1; 0 <= g; --g) e[f] += d.charCodeAt(f * c + g) << 8 * g;
  21433. return e
  21434. };
  21435. b.E5 = function(a) {
  21436. if (0 != a.length % 4) return null;
  21437. for (var c = a.length / 4, d = window.G8 ? new Uint32Array(c) : [], e = 0; e < c; e++) {
  21438. var f = 4 * e;
  21439. d[e] = a[f] + 256 * a[f + 1] + 65536 * a[f + 2] + 16777216 * a[f + 3]
  21440. }
  21441. return d
  21442. };
  21443. b.ja.Ea = function(a) {
  21444. this.data = a;
  21445. this.debug = !1;
  21446. this.Cj = void 0;
  21447. this.files = 0;
  21448. this.zy = [];
  21449. this.UD = Array(32768);
  21450. this.zh = 0;
  21451. this.Fx = !1;
  21452. this.iM = 0;
  21453. this.yi = 1;
  21454. this.Mo = 0;
  21455. this.mp = [];
  21456. this.MM = void 0;
  21457. this.Fs = Array(b.ja.Ea.FR);
  21458. this.Am = Array(32);
  21459. this.nt = 0;
  21460. this.vz = null;
  21461. this.Lh = 0;
  21462. this.Xo = Array(17);
  21463. this.Xo[0] = 0;
  21464. this.RM = this.PM = void 0
  21465. };
  21466. b.ja.Ea.Zw = function(a) {
  21467. return (new b.ja.Ea(a)).Zw()[0][0]
  21468. };
  21469. b.ja.Ea.ez = function() {
  21470. this.zw = this.yw = 0;
  21471. this.mF = null;
  21472. this.Q1 = -1
  21473. };
  21474. b.ja.Ea.FR = 288;
  21475. b.ja.Ea.cH = 256;
  21476. b.ja.Ea.SD = [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,
  21477. 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
  21478. ];
  21479. b.ja.Ea.sM = [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];
  21480. b.ja.Ea.tM = [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];
  21481. b.ja.Ea.rM = [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];
  21482. b.ja.Ea.So = [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];
  21483. b.ja.Ea.border = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
  21484. b.ja.Ea.prototype.Zw = function() {
  21485. this.Ss = [];
  21486. fa(this);
  21487. return this.zy
  21488. };
  21489. b.ja.Ea.prototype.Q = function() {
  21490. this.Mo += 8;
  21491. return this.iM < this.data.length ? this.data.charCodeAt(this.iM++) : -1
  21492. };
  21493. function ha(a) {
  21494. var c;
  21495. a.Mo++;
  21496. c = a.yi & 1;
  21497. a.yi >>= 1;
  21498. 0 == a.yi && (a.yi = a.Q(), c = a.yi & 1, a.yi = a.yi >> 1 | 128);
  21499. return c
  21500. }
  21501. function S(a, c) {
  21502. for (var d = 0, e = c; e--;) d = d << 1 | ha(a);
  21503. c && (d = b.ja.Ea.SD[d] >> 8 - c);
  21504. return d
  21505. }
  21506. function ia(a, c) {
  21507. a.UD[a.zh++] = c;
  21508. a.Ss.push(String.fromCharCode(c));
  21509. 32768 == a.zh && (a.zh = 0)
  21510. }
  21511. function ma(a) {
  21512. for (;;) {
  21513. if (a.Xo[a.Lh] >= a.RM) return -1;
  21514. if (a.PM[a.Xo[a.Lh]] == a.Lh) return a.Xo[a.Lh]++;
  21515. a.Xo[a.Lh]++
  21516. }
  21517. }
  21518. function na(a) {
  21519. var c = a.vz[a.nt],
  21520. d;
  21521. if (17 == a.Lh) return -1;
  21522. a.nt++;
  21523. a.Lh++;
  21524. d = ma(a);
  21525. if (0 <= d) c.yw = d;
  21526. else if (c.yw = 32768, na(a)) return -1;
  21527. d = ma(a);
  21528. if (0 <= d) c.zw = d, c.mF = null;
  21529. else if (c.zw = 32768, c.mF = a.vz[a.nt], c.Q1 = a.nt, na(a)) return -1;
  21530. a.Lh--;
  21531. return 0
  21532. }
  21533. function oa(a, c, d, e) {
  21534. a.vz = c;
  21535. a.nt = 0;
  21536. a.PM = e;
  21537. a.RM = d;
  21538. for (c = 0; 17 > c; c++) a.Xo[c] = 0;
  21539. a.Lh = 0;
  21540. return na(a) ? -1 : 0
  21541. }
  21542. function pa(a, c) {
  21543. for (var d, e, f = 0, g = c[f];;)
  21544. if (d = ha(a)) {
  21545. if (!(g.zw & 32768)) return g.zw;
  21546. g = g.mF;
  21547. d = c.length;
  21548. for (e = 0; e < d; e++)
  21549. if (c[e] === g) {
  21550. f = e;
  21551. break
  21552. }
  21553. } else {
  21554. if (!(g.yw & 32768)) return g.yw;
  21555. f++;
  21556. g = c[f]
  21557. }
  21558. return -1
  21559. }
  21560. function qa(a) {
  21561. var c, d, e, f, g;
  21562. do
  21563. if (c = ha(a), e = S(a, 2), 0 == e)
  21564. for (a.yi = 1, e = a.Q(), e |= a.Q() << 8, d = a.Q(), d |= a.Q() << 8, (e ^ ~d) & 65535 && document.write("BlockLen checksum mismatch\n"); e--;) d = a.Q(), ia(a, d);
  21565. else if (1 == e)
  21566. for (;;)
  21567. if (e = b.ja.Ea.SD[S(a, 7)] >> 1, 23 < e ? (e = e << 1 | ha(a), 199 < e ? (e -= 128, e = e << 1 | ha(a)) : (e -= 48, 143 < e && (e += 136))) : e += 256, 256 > e) ia(a, e);
  21568. else if (256 == e) break;
  21569. else {
  21570. var h;
  21571. e -= 257;
  21572. g = S(a, b.ja.Ea.tM[e]) + b.ja.Ea.sM[e];
  21573. e = b.ja.Ea.SD[S(a, 5)] >> 3;
  21574. 8 < b.ja.Ea.So[e] ? (h = S(a, 8), h |= S(a, b.ja.Ea.So[e] - 8) << 8) : h = S(a, b.ja.Ea.So[e]);
  21575. h += b.ja.Ea.rM[e];
  21576. for (e = 0; e < g; e++) d = a.UD[a.zh - h & 32767], ia(a, d)
  21577. } else if (2 == e) {
  21578. var k = Array(320);
  21579. d = 257 + S(a, 5);
  21580. h = 1 + S(a, 5);
  21581. f = 4 + S(a, 4);
  21582. for (e = 0; 19 > e; e++) k[e] = 0;
  21583. for (e = 0; e < f; e++) k[b.ja.Ea.border[e]] = S(a, 3);
  21584. g = a.Am.length;
  21585. for (f = 0; f < g; f++) a.Am[f] = new b.ja.Ea.ez;
  21586. if (oa(a, a.Am, 19, k)) {
  21587. a.zh = 0;
  21588. return
  21589. }
  21590. g = d + h;
  21591. f = 0;
  21592. for (var m = -1; f < g;)
  21593. if (m++, e = pa(a, a.Am), 16 > e) k[f++] = e;
  21594. else if (16 == e) {
  21595. var p;
  21596. e = 3 + S(a, 2);
  21597. if (f + e > g) {
  21598. a.zh = 0;
  21599. return
  21600. }
  21601. for (p = f ? k[f - 1] : 0; e--;) k[f++] = p
  21602. } else {
  21603. e = 17 == e ? 3 + S(a, 3) : 11 + S(a, 7);
  21604. if (f + e > g) {
  21605. a.zh = 0;
  21606. return
  21607. }
  21608. for (; e--;) k[f++] =
  21609. 0
  21610. }
  21611. g = a.Fs.length;
  21612. for (f = 0; f < g; f++) a.Fs[f] = new b.ja.Ea.ez;
  21613. if (oa(a, a.Fs, d, k)) {
  21614. a.zh = 0;
  21615. return
  21616. }
  21617. g = a.Fs.length;
  21618. for (f = 0; f < g; f++) a.Am[f] = new b.ja.Ea.ez;
  21619. e = [];
  21620. for (f = d; f < k.length; f++) e[f - d] = k[f];
  21621. if (oa(a, a.Am, h, e)) {
  21622. a.zh = 0;
  21623. return
  21624. }
  21625. for (;;)
  21626. if (e = pa(a, a.Fs), 256 <= e) {
  21627. e -= 256;
  21628. if (0 == e) break;
  21629. e--;
  21630. g = S(a, b.ja.Ea.tM[e]) + b.ja.Ea.sM[e];
  21631. e = pa(a, a.Am);
  21632. 8 < b.ja.Ea.So[e] ? (h = S(a, 8), h |= S(a, b.ja.Ea.So[e] - 8) << 8) : h = S(a, b.ja.Ea.So[e]);
  21633. for (h += b.ja.Ea.rM[e]; g--;) d = a.UD[a.zh - h & 32767], ia(a, d)
  21634. } else ia(a, e)
  21635. }
  21636. while (!c);
  21637. a.zh = 0;
  21638. a.yi = 1
  21639. }
  21640. function fa(a) {
  21641. a.Ss = [];
  21642. a.Fx = !1;
  21643. var c = [];
  21644. c[0] = a.Q();
  21645. c[1] = a.Q();
  21646. 120 == c[0] && 218 == c[1] && (qa(a), a.zy[a.files] = [a.Ss.join(""), "geonext.gxt"], a.files++);
  21647. 31 == c[0] && 139 == c[1] && (ra(a), a.zy[a.files] = [a.Ss.join(""), "file"], a.files++);
  21648. if (80 == c[0] && 75 == c[1] && (a.Fx = !0, c[2] = a.Q(), c[3] = a.Q(), 3 == c[2] && 4 == c[3])) {
  21649. c[0] = a.Q();
  21650. c[1] = a.Q();
  21651. a.Cj = a.Q();
  21652. a.Cj |= a.Q() << 8;
  21653. c = a.Q();
  21654. c |= a.Q() << 8;
  21655. a.Q();
  21656. a.Q();
  21657. a.Q();
  21658. a.Q();
  21659. a.Q();
  21660. a.Q();
  21661. a.Q();
  21662. a.Q();
  21663. a.Q();
  21664. a.Q();
  21665. a.Q();
  21666. a.Q();
  21667. var d = a.Q(),
  21668. d = d | a.Q() << 8,
  21669. e = a.Q(),
  21670. e = e | a.Q() << 8,
  21671. f = 0;
  21672. for (a.mp = []; d--;) {
  21673. var g =
  21674. a.Q();
  21675. "/" == g | ":" == g ? f = 0 : f < b.ja.Ea.cH - 1 && (a.mp[f++] = String.fromCharCode(g))
  21676. }
  21677. a.MM || (a.MM = a.mp);
  21678. for (var f = 0; f < e;) a.Q(), f++;
  21679. 8 == c && (qa(a), a.zy[a.files] = [a.Ss.join(""), a.mp.join("")], a.files++);
  21680. ra(a)
  21681. }
  21682. }
  21683. function ra(a) {
  21684. var c = [],
  21685. d;
  21686. a.Cj & 8 && (c[0] = a.Q(), c[1] = a.Q(), c[2] = a.Q(), c[3] = a.Q(), a.Q(), a.Q(), a.Q(), a.Q(), a.Q(), a.Q(), a.Q(), a.Q());
  21687. a.Fx && fa(a);
  21688. c[0] = a.Q();
  21689. if (8 == c[0]) {
  21690. a.Cj = a.Q();
  21691. a.Q();
  21692. a.Q();
  21693. a.Q();
  21694. a.Q();
  21695. a.Q();
  21696. a.Q();
  21697. if (a.Cj & 4)
  21698. for (c[0] = a.Q(), c[2] = a.Q(), a.Lh = c[0] + 256 * c[1], c = 0; c < a.Lh; c++) a.Q();
  21699. if (a.Cj & 8)
  21700. for (c = 0, a.mp = []; d = a.Q();) {
  21701. if ("7" == d || ":" == d) c = 0;
  21702. c < b.ja.Ea.cH - 1 && (a.mp[c++] = d)
  21703. }
  21704. if (a.Cj & 16)
  21705. for (; a.Q(););
  21706. a.Cj & 2 && (a.Q(), a.Q());
  21707. qa(a);
  21708. a.Q();
  21709. a.Q();
  21710. a.Q();
  21711. a.Q();
  21712. a.Fx && fa(a)
  21713. }
  21714. };
  21715. /*
  21716. zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License */
  21717. (function() {
  21718. function a(a) {
  21719. throw a;
  21720. }
  21721. function c(a, c) {
  21722. var d = a.split("."),
  21723. e = E;
  21724. d[0] in e || !e.execScript || e.execScript("var " + d[0]);
  21725. for (var f; d.length && (f = d.shift());) d.length || c === G ? e = e[f] ? e[f] : e[f] = {} : e[f] = c
  21726. }
  21727. function d(a) {
  21728. if ("string" === typeof a) {
  21729. a = a.split("");
  21730. var c, d;
  21731. c = 0;
  21732. for (d = a.length; c < d; c++) a[c] = (a[c].charCodeAt(0) & 255) >>> 0
  21733. }
  21734. c = 1;
  21735. d = 0;
  21736. for (var e = a.length, f, g = 0; 0 < e;) {
  21737. f = 1024 < e ? 1024 : e;
  21738. e -= f;
  21739. do c += a[g++], d += c; while (--f);
  21740. c %= 65521;
  21741. d %= 65521
  21742. }
  21743. return (d << 16 | c) >>> 0
  21744. }
  21745. function e(c, d) {
  21746. this.index = "number" === typeof d ? d : 0;
  21747. this.zs = 0;
  21748. this.buffer = c instanceof(A ? Uint8Array : Array) ? c : new(A ? Uint8Array : Array)(32768);
  21749. 2 * this.buffer.length <= this.index && a(Error("invalid index"));
  21750. this.buffer.length <= this.index && this.Ch()
  21751. }
  21752. function f(a) {
  21753. this.buffer = new(A ? Uint16Array : Array)(2 * a);
  21754. this.length = 0
  21755. }
  21756. function g(a) {
  21757. var c = a.length,
  21758. d = 0,
  21759. e = Number.POSITIVE_INFINITY,
  21760. f, g, h, k, m, p, r, s, t;
  21761. for (s = 0; s < c; ++s) a[s] > d && (d = a[s]), a[s] < e && (e = a[s]);
  21762. f = 1 << d;
  21763. g = new(A ? Uint32Array : Array)(f);
  21764. h = 1;
  21765. k = 0;
  21766. for (m = 2; h <= d;) {
  21767. for (s = 0; s < c; ++s)
  21768. if (a[s] === h) {
  21769. p = 0;
  21770. r = k;
  21771. for (t = 0; t < h; ++t) p =
  21772. p << 1 | r & 1, r >>= 1;
  21773. for (t = p; t < f; t += m) g[t] = h << 16 | s;
  21774. ++k
  21775. }++h;
  21776. k <<= 1;
  21777. m <<= 1
  21778. }
  21779. return [g, d, e]
  21780. }
  21781. function h(a, c) {
  21782. this.fp = P;
  21783. this.D = 0;
  21784. this.input = a;
  21785. this.b = 0;
  21786. c && (c.r2 && (this.D = c.r2), "number" === typeof c.gE && (this.fp = c.gE), c.Nx && (this.a = A && c.Nx instanceof Array ? new Uint8Array(c.Nx) : c.Nx), "number" === typeof c.H2 && (this.b = c.H2));
  21787. this.a || (this.a = new(A ? Uint8Array : Array)(32768))
  21788. }
  21789. function k(a, c) {
  21790. this.length = a;
  21791. this.gR = c
  21792. }
  21793. function m() {
  21794. var c = R;
  21795. switch (I) {
  21796. case 3 === c:
  21797. return [257, c - 3, 0];
  21798. case 4 === c:
  21799. return [258, c - 4, 0];
  21800. case 5 === c:
  21801. return [259,
  21802. c - 5, 0
  21803. ];
  21804. case 6 === c:
  21805. return [260, c - 6, 0];
  21806. case 7 === c:
  21807. return [261, c - 7, 0];
  21808. case 8 === c:
  21809. return [262, c - 8, 0];
  21810. case 9 === c:
  21811. return [263, c - 9, 0];
  21812. case 10 === c:
  21813. return [264, c - 10, 0];
  21814. case 12 >= c:
  21815. return [265, c - 11, 1];
  21816. case 14 >= c:
  21817. return [266, c - 13, 1];
  21818. case 16 >= c:
  21819. return [267, c - 15, 1];
  21820. case 18 >= c:
  21821. return [268, c - 17, 1];
  21822. case 22 >= c:
  21823. return [269, c - 19, 2];
  21824. case 26 >= c:
  21825. return [270, c - 23, 2];
  21826. case 30 >= c:
  21827. return [271, c - 27, 2];
  21828. case 34 >= c:
  21829. return [272, c - 31, 2];
  21830. case 42 >= c:
  21831. return [273, c - 35, 3];
  21832. case 50 >= c:
  21833. return [274, c - 43, 3];
  21834. case 58 >= c:
  21835. return [275, c - 51, 3];
  21836. case 66 >= c:
  21837. return [276,
  21838. c - 59, 3
  21839. ];
  21840. case 82 >= c:
  21841. return [277, c - 67, 4];
  21842. case 98 >= c:
  21843. return [278, c - 83, 4];
  21844. case 114 >= c:
  21845. return [279, c - 99, 4];
  21846. case 130 >= c:
  21847. return [280, c - 115, 4];
  21848. case 162 >= c:
  21849. return [281, c - 131, 5];
  21850. case 194 >= c:
  21851. return [282, c - 163, 5];
  21852. case 226 >= c:
  21853. return [283, c - 195, 5];
  21854. case 257 >= c:
  21855. return [284, c - 227, 5];
  21856. case 258 === c:
  21857. return [285, c - 258, 0];
  21858. default:
  21859. a("invalid length: " + c)
  21860. }
  21861. }
  21862. function p(c, d) {
  21863. function e(c, d) {
  21864. var f = c.gR,
  21865. g = [],
  21866. h = 0,
  21867. k;
  21868. k = X[c.length];
  21869. g[h++] = k & 65535;
  21870. g[h++] = k >> 16 & 255;
  21871. g[h++] = k >> 24;
  21872. var m;
  21873. switch (I) {
  21874. case 1 === f:
  21875. m = [0, f - 1, 0];
  21876. break;
  21877. case 2 === f:
  21878. m = [1, f -
  21879. 2, 0
  21880. ];
  21881. break;
  21882. case 3 === f:
  21883. m = [2, f - 3, 0];
  21884. break;
  21885. case 4 === f:
  21886. m = [3, f - 4, 0];
  21887. break;
  21888. case 6 >= f:
  21889. m = [4, f - 5, 1];
  21890. break;
  21891. case 8 >= f:
  21892. m = [5, f - 7, 1];
  21893. break;
  21894. case 12 >= f:
  21895. m = [6, f - 9, 2];
  21896. break;
  21897. case 16 >= f:
  21898. m = [7, f - 13, 2];
  21899. break;
  21900. case 24 >= f:
  21901. m = [8, f - 17, 3];
  21902. break;
  21903. case 32 >= f:
  21904. m = [9, f - 25, 3];
  21905. break;
  21906. case 48 >= f:
  21907. m = [10, f - 33, 4];
  21908. break;
  21909. case 64 >= f:
  21910. m = [11, f - 49, 4];
  21911. break;
  21912. case 96 >= f:
  21913. m = [12, f - 65, 5];
  21914. break;
  21915. case 128 >= f:
  21916. m = [13, f - 97, 5];
  21917. break;
  21918. case 192 >= f:
  21919. m = [14, f - 129, 6];
  21920. break;
  21921. case 256 >= f:
  21922. m = [15, f - 193, 6];
  21923. break;
  21924. case 384 >= f:
  21925. m = [16, f - 257, 7];
  21926. break;
  21927. case 512 >= f:
  21928. m = [17, f - 385, 7];
  21929. break;
  21930. case 768 >= f:
  21931. m = [18, f - 513, 8];
  21932. break;
  21933. case 1024 >= f:
  21934. m = [19, f - 769, 8];
  21935. break;
  21936. case 1536 >= f:
  21937. m = [20, f - 1025, 9];
  21938. break;
  21939. case 2048 >= f:
  21940. m = [21, f - 1537, 9];
  21941. break;
  21942. case 3072 >= f:
  21943. m = [22, f - 2049, 10];
  21944. break;
  21945. case 4096 >= f:
  21946. m = [23, f - 3073, 10];
  21947. break;
  21948. case 6144 >= f:
  21949. m = [24, f - 4097, 11];
  21950. break;
  21951. case 8192 >= f:
  21952. m = [25, f - 6145, 11];
  21953. break;
  21954. case 12288 >= f:
  21955. m = [26, f - 8193, 12];
  21956. break;
  21957. case 16384 >= f:
  21958. m = [27, f - 12289, 12];
  21959. break;
  21960. case 24576 >= f:
  21961. m = [28, f - 16385, 13];
  21962. break;
  21963. case 32768 >= f:
  21964. m = [29, f - 24577, 13];
  21965. break;
  21966. default:
  21967. a("invalid distance")
  21968. }
  21969. k = m;
  21970. g[h++] = k[0];
  21971. g[h++] = k[1];
  21972. g[h++] = k[2];
  21973. f = 0;
  21974. for (h = g.length; f < h; ++f) t[u++] = g[f];
  21975. w[g[0]]++;
  21976. x[g[3]]++;
  21977. v = c.length + d - 1;
  21978. s = null
  21979. }
  21980. var f, g, h, m, p, r = {},
  21981. s, t = A ? new Uint16Array(2 * d.length) : [],
  21982. u = 0,
  21983. v = 0,
  21984. w = new(A ? Uint32Array : Array)(286),
  21985. x = new(A ? Uint32Array : Array)(30),
  21986. B = c.D,
  21987. y;
  21988. if (!A) {
  21989. for (h = 0; 285 >= h;) w[h++] = 0;
  21990. for (h = 0; 29 >= h;) x[h++] = 0
  21991. }
  21992. w[256] = 1;
  21993. f = 0;
  21994. for (g = d.length; f < g; ++f) {
  21995. h = p = 0;
  21996. for (m = 3; h < m && f + h !== g; ++h) p = p << 8 | d[f + h];
  21997. r[p] === G && (r[p] = []);
  21998. h = r[p];
  21999. if (!(0 < v--)) {
  22000. for (; 0 < h.length && 32768 < f - h[0];) h.shift();
  22001. if (f + 3 >= g) {
  22002. s && e(s, -1);
  22003. h = 0;
  22004. for (m = g - f; h < m; ++h) y = d[f + h], t[u++] = y, ++w[y];
  22005. break
  22006. }
  22007. if (0 < h.length) {
  22008. p = m = G;
  22009. var D = 0,
  22010. F = G,
  22011. E = G,
  22012. J = F = G,
  22013. M = d.length,
  22014. E = 0,
  22015. J = h.length;
  22016. a: for (; E < J; E++) {
  22017. m = h[J - E - 1];
  22018. F = 3;
  22019. if (3 < D) {
  22020. for (F = D; 3 < F; F--)
  22021. if (d[m + F - 1] !== d[f + F - 1]) continue a;
  22022. F = D
  22023. }
  22024. for (; 258 > F && f + F < M && d[m + F] === d[f + F];)++F;
  22025. F > D && (p = m, D = F);
  22026. if (258 === F) break
  22027. }
  22028. m = new k(D, f - p);
  22029. s ? s.length < m.length ? (y = d[f - 1], t[u++] = y, ++w[y], e(m, 0)) : e(s, -1) : m.length < B ? s = m : e(m, 0)
  22030. } else s ? e(s, -1) : (y = d[f], t[u++] = y, ++w[y])
  22031. }
  22032. h.push(f)
  22033. }
  22034. t[u++] = 256;
  22035. w[256]++;
  22036. c.BR = w;
  22037. c.tR = x;
  22038. return A ? t.subarray(0, u) : t
  22039. }
  22040. function r(a, c) {
  22041. function d(a) {
  22042. var c = t[a][u[a]];
  22043. c ===
  22044. r ? (d(a + 1), d(a + 1)) : --s[c];
  22045. ++u[a]
  22046. }
  22047. var e = a.length,
  22048. g = new f(572),
  22049. h = new(A ? Uint8Array : Array)(e),
  22050. k, m, p;
  22051. if (!A)
  22052. for (m = 0; m < e; m++) h[m] = 0;
  22053. for (m = 0; m < e; ++m) 0 < a[m] && g.push(m, a[m]);
  22054. e = Array(g.length / 2);
  22055. k = new(A ? Uint32Array : Array)(g.length / 2);
  22056. if (1 === e.length) return h[g.pop().index] = 1, h;
  22057. m = 0;
  22058. for (p = g.length / 2; m < p; ++m) e[m] = g.pop(), k[m] = e[m].value;
  22059. var r = k.length;
  22060. m = new(A ? Uint16Array : Array)(c);
  22061. var g = new(A ? Uint8Array : Array)(c),
  22062. s = new(A ? Uint8Array : Array)(r);
  22063. p = Array(c);
  22064. var t = Array(c),
  22065. u = Array(c),
  22066. v = (1 << c) - r,
  22067. w = 1 << c - 1,
  22068. x, y, B;
  22069. m[c -
  22070. 1] = r;
  22071. for (x = 0; x < c; ++x) v < w ? g[x] = 0 : (g[x] = 1, v -= w), v <<= 1, m[c - 2 - x] = (m[c - 1 - x] / 2 | 0) + r;
  22072. m[0] = g[0];
  22073. p[0] = Array(m[0]);
  22074. t[0] = Array(m[0]);
  22075. for (x = 1; x < c; ++x) m[x] > 2 * m[x - 1] + g[x] && (m[x] = 2 * m[x - 1] + g[x]), p[x] = Array(m[x]), t[x] = Array(m[x]);
  22076. for (v = 0; v < r; ++v) s[v] = c;
  22077. for (w = 0; w < m[c - 1]; ++w) p[c - 1][w] = k[w], t[c - 1][w] = w;
  22078. for (v = 0; v < c; ++v) u[v] = 0;
  22079. 1 === g[c - 1] && (--s[0], ++u[c - 1]);
  22080. for (x = c - 2; 0 <= x; --x) {
  22081. y = v = 0;
  22082. B = u[x + 1];
  22083. for (w = 0; w < m[x]; w++) y = p[x + 1][B] + p[x + 1][B + 1], y > k[v] ? (p[x][w] = y, t[x][w] = r, B += 2) : (p[x][w] = k[v], t[x][w] = v, ++v);
  22084. u[x] = 0;
  22085. 1 === g[x] && d(x)
  22086. }
  22087. k =
  22088. s;
  22089. m = 0;
  22090. for (p = e.length; m < p; ++m) h[e[m].index] = k[m];
  22091. return h
  22092. }
  22093. function s(c) {
  22094. var d = new(A ? Uint16Array : Array)(c.length),
  22095. e = [],
  22096. f = [],
  22097. g = 0,
  22098. h, k, m;
  22099. h = 0;
  22100. for (k = c.length; h < k; h++) e[c[h]] = (e[c[h]] | 0) + 1;
  22101. h = 1;
  22102. for (k = 16; h <= k; h++) f[h] = g, g += e[h] | 0, g > 1 << h && a("overcommitted"), g <<= 1;
  22103. 65536 > g && a("undercommitted");
  22104. h = 0;
  22105. for (k = c.length; h < k; h++)
  22106. for (g = f[c[h]], f[c[h]] += 1, e = d[h] = 0, m = c[h]; e < m; e++) d[h] = d[h] << 1 | g & 1, g >>>= 1;
  22107. return d
  22108. }
  22109. function u(a, c) {
  22110. this.input = a;
  22111. this.a = new(A ? Uint8Array : Array)(32768);
  22112. this.fp = M.ox;
  22113. var d = {},
  22114. e;
  22115. !c && (c = {}) || "number" !==
  22116. typeof c.gE || (this.fp = c.gE);
  22117. for (e in c) d[e] = c[e];
  22118. d.Nx = this.a;
  22119. this.z = new h(this.input, d)
  22120. }
  22121. function t(c, d) {
  22122. this.px = [];
  22123. this.zx = 32768;
  22124. this.Gg = this.g = this.B = this.Ux = 0;
  22125. this.input = A ? new Uint8Array(c) : c;
  22126. this.MF = !1;
  22127. this.Dx = ja;
  22128. this.BG = !1;
  22129. if (d || !(d = {})) d.index && (this.B = d.index), d.VD && (this.zx = d.VD), d.WD && (this.Dx = d.WD), d.resize && (this.BG = d.resize);
  22130. switch (this.Dx) {
  22131. case ua:
  22132. this.b = 32768;
  22133. this.a = new(A ? Uint8Array : Array)(32768 + this.zx + 258);
  22134. break;
  22135. case ja:
  22136. this.b = 0;
  22137. this.a = new(A ? Uint8Array : Array)(this.zx);
  22138. this.Ch = this.sR;
  22139. this.nG = this.iR;
  22140. this.Hx = this.mR;
  22141. break;
  22142. default:
  22143. a(Error("invalid inflate mode"))
  22144. }
  22145. }
  22146. function v(c, d) {
  22147. for (var e = c.g, f = c.Gg, g = c.input, h = c.B, k; f < d;) k = g[h++], k === G && a(Error("input buffer is broken")), e |= k << f, f += 8;
  22148. c.g = e >>> d;
  22149. c.Gg = f - d;
  22150. c.B = h;
  22151. return e & (1 << d) - 1
  22152. }
  22153. function w(c, d) {
  22154. for (var e = c.g, f = c.Gg, g = c.input, h = c.B, k = d[0], m = d[1], p; f < m;) p = g[h++], p === G && a(Error("input buffer is broken")), e |= p << f, f += 8;
  22155. g = k[e & (1 << m) - 1];
  22156. k = g >>> 16;
  22157. c.g = e >> k;
  22158. c.Gg = f - k;
  22159. c.B = h;
  22160. return g & 65535
  22161. }
  22162. function y(a) {
  22163. function c(a, d, e) {
  22164. var f, g, h, k;
  22165. for (k = 0; k <
  22166. a;) switch (f = w(this, d), f) {
  22167. case 16:
  22168. for (h = 3 + v(this, 2); h--;) e[k++] = g;
  22169. break;
  22170. case 17:
  22171. for (h = 3 + v(this, 3); h--;) e[k++] = 0;
  22172. g = 0;
  22173. break;
  22174. case 18:
  22175. for (h = 11 + v(this, 7); h--;) e[k++] = 0;
  22176. g = 0;
  22177. break;
  22178. default:
  22179. g = e[k++] = f
  22180. }
  22181. return e
  22182. }
  22183. var d = v(a, 5) + 257,
  22184. e = v(a, 5) + 1,
  22185. f = v(a, 4) + 4,
  22186. h = new(A ? Uint8Array : Array)(ya.length),
  22187. k;
  22188. for (k = 0; k < f; ++k) h[ya[k]] = v(a, 3);
  22189. f = g(h);
  22190. h = new(A ? Uint8Array : Array)(d);
  22191. k = new(A ? Uint8Array : Array)(e);
  22192. a.Hx(g(c.call(a, d, f, h)), g(c.call(a, e, f, k)))
  22193. }
  22194. function B(c, d) {
  22195. var e, f;
  22196. this.input = c;
  22197. this.B = 0;
  22198. if (d || !(d = {})) d.index && (this.B = d.index),
  22199. d.ZP && (this.KR = d.ZP);
  22200. e = c[this.B++];
  22201. f = c[this.B++];
  22202. switch (e & 15) {
  22203. case ga:
  22204. this.method = ga;
  22205. break;
  22206. default:
  22207. a(Error("unsupported compression method"))
  22208. }
  22209. 0 !== ((e << 8) + f) % 31 && a(Error("invalid fcheck flag:" + ((e << 8) + f) % 31));
  22210. f & 32 && a(Error("fdict flag is not supported"));
  22211. this.uG = new t(c, {
  22212. index: this.B,
  22213. VD: d.VD,
  22214. WD: d.WD,
  22215. resize: d.resize
  22216. })
  22217. }
  22218. var G = void 0,
  22219. I = !0,
  22220. E = this,
  22221. A = "undefined" !== typeof Uint8Array && "undefined" !== typeof Uint16Array && "undefined" !== typeof Uint32Array;
  22222. e.prototype.Ch = function() {
  22223. var a = this.buffer,
  22224. c, d = a.length,
  22225. e = new(A ? Uint8Array : Array)(d << 1);
  22226. if (A) e.set(a);
  22227. else
  22228. for (c = 0; c < d; ++c) e[c] = a[c];
  22229. return this.buffer = e
  22230. };
  22231. e.prototype.H = function(a, c, d) {
  22232. var e = this.buffer,
  22233. f = this.index,
  22234. g = this.zs,
  22235. h = e[f];
  22236. d && 1 < c && (a = 8 < c ? (J[a & 255] << 24 | J[a >>> 8 & 255] << 16 | J[a >>> 16 & 255] << 8 | J[a >>> 24 & 255]) >> 32 - c : J[a] >> 8 - c);
  22237. if (8 > c + g) h = h << c | a, g += c;
  22238. else
  22239. for (d = 0; d < c; ++d) h = h << 1 | a >> c - d - 1 & 1, 8 === ++g && (g = 0, e[f++] = J[h], h = 0, f === e.length && (e = this.Ch()));
  22240. e[f] = h;
  22241. this.buffer = e;
  22242. this.zs = g;
  22243. this.index = f
  22244. };
  22245. e.prototype.finish = function() {
  22246. var a = this.buffer,
  22247. c = this.index,
  22248. d;
  22249. 0 < this.zs && (a[c] <<= 8 - this.zs, a[c] = J[a[c]], c++);
  22250. A ? d = a.subarray(0, c) : (a.length = c, d = a);
  22251. return d
  22252. };
  22253. var D = new(A ? Uint8Array : Array)(256),
  22254. x;
  22255. for (x = 0; 256 > x; ++x) {
  22256. for (var F = x, K = F, L = 7, F = F >>> 1; F; F >>>= 1) K <<= 1, K |= F & 1, --L;
  22257. D[x] = (K << L & 255) >>> 0
  22258. }
  22259. var J = D,
  22260. 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,
  22261. 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,
  22262. 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,
  22263. 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,
  22264. 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,
  22265. 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
  22266. ];
  22267. A && new Uint32Array(D);
  22268. f.prototype.getParent = function(a) {
  22269. return 2 *
  22270. ((a - 2) / 4 | 0)
  22271. };
  22272. f.prototype.push = function(a, c) {
  22273. var d, e, f = this.buffer,
  22274. g;
  22275. d = this.length;
  22276. f[this.length++] = c;
  22277. for (f[this.length++] = a; 0 < d;)
  22278. 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;
  22279. else break;
  22280. return this.length
  22281. };
  22282. f.prototype.pop = function() {
  22283. var a, c, d = this.buffer,
  22284. e, f, g;
  22285. c = d[0];
  22286. a = d[1];
  22287. this.length -= 2;
  22288. d[0] = d[this.length];
  22289. d[1] = d[this.length + 1];
  22290. for (g = 0;;) {
  22291. f = 2 * g + 2;
  22292. if (f >= this.length) break;
  22293. f + 2 < this.length && d[f + 2] > d[f] && (f += 2);
  22294. if (d[f] > d[g]) e = d[g], d[g] = d[f], d[f] = e, e = d[g +
  22295. 1], d[g + 1] = d[f + 1], d[f + 1] = e;
  22296. else break;
  22297. g = f
  22298. }
  22299. return {
  22300. index: a,
  22301. value: c,
  22302. length: this.length
  22303. }
  22304. };
  22305. var P = 2,
  22306. D = {
  22307. NONE: 0,
  22308. r: 1,
  22309. ox: P,
  22310. G7: 3
  22311. },
  22312. T = [];
  22313. for (x = 0; 288 > x; x++) switch (I) {
  22314. case 143 >= x:
  22315. T.push([x + 48, 8]);
  22316. break;
  22317. case 255 >= x:
  22318. T.push([x - 144 + 400, 9]);
  22319. break;
  22320. case 279 >= x:
  22321. T.push([x - 256 + 0, 7]);
  22322. break;
  22323. case 287 >= x:
  22324. T.push([x - 280 + 192, 8]);
  22325. break;
  22326. default:
  22327. a("invalid literal: " + x)
  22328. }
  22329. h.prototype.fl = function() {
  22330. var c, d, f, g, h = this.input;
  22331. switch (this.fp) {
  22332. case 0:
  22333. f = 0;
  22334. for (g = h.length; f < g;) {
  22335. d = A ? h.subarray(f, f + 65535) : h.slice(f, f + 65535);
  22336. f += d.length;
  22337. var k = f ===
  22338. g,
  22339. m = G,
  22340. t = m = G,
  22341. t = m = G,
  22342. u = this.a,
  22343. v = this.b;
  22344. if (A) {
  22345. for (u = new Uint8Array(this.a.buffer); u.length <= v + d.length + 5;) u = new Uint8Array(u.length << 1);
  22346. u.set(this.a)
  22347. }
  22348. m = k ? 1 : 0;
  22349. u[v++] = m | 0;
  22350. m = d.length;
  22351. t = ~m + 65536 & 65535;
  22352. u[v++] = m & 255;
  22353. u[v++] = m >>> 8 & 255;
  22354. u[v++] = t & 255;
  22355. u[v++] = t >>> 8 & 255;
  22356. if (A) u.set(d, v), v += d.length, u = u.subarray(0, v);
  22357. else {
  22358. m = 0;
  22359. for (t = d.length; m < t; ++m) u[v++] = d[m];
  22360. u.length = v
  22361. }
  22362. this.b = v;
  22363. this.a = u
  22364. }
  22365. break;
  22366. case 1:
  22367. f = new e(new Uint8Array(this.a.buffer), this.b);
  22368. f.H(1, 1, I);
  22369. f.H(1, 2, I);
  22370. h = p(this, h);
  22371. d = 0;
  22372. for (k = h.length; d < k; d++)
  22373. if (g = h[d],
  22374. e.prototype.H.apply(f, T[g]), 256 < g) f.H(h[++d], h[++d], I), f.H(h[++d], 5), f.H(h[++d], h[++d], I);
  22375. else if (256 === g) break;
  22376. this.a = f.finish();
  22377. this.b = this.a.length;
  22378. break;
  22379. case P:
  22380. g = new e(new Uint8Array(this.a), this.b);
  22381. var w, x, y, B = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15],
  22382. F, D, m = Array(19),
  22383. H, u = P;
  22384. g.H(1, 1, I);
  22385. g.H(u, 2, I);
  22386. h = p(this, h);
  22387. t = r(this.BR, 15);
  22388. F = s(t);
  22389. u = r(this.tR, 7);
  22390. v = s(u);
  22391. for (w = 286; 257 < w && 0 === t[w - 1]; w--);
  22392. for (x = 30; 1 < x && 0 === u[x - 1]; x--);
  22393. var E = w,
  22394. J = x;
  22395. c = new(A ? Uint32Array : Array)(E + J);
  22396. var M = new(A ? Uint32Array : Array)(316),
  22397. K, L;
  22398. D = new(A ? Uint8Array : Array)(19);
  22399. for (H = y = 0; H < E; H++) c[y++] = t[H];
  22400. for (H = 0; H < J; H++) c[y++] = u[H];
  22401. if (!A)
  22402. for (H = 0, J = D.length; H < J; ++H) D[H] = 0;
  22403. H = K = 0;
  22404. for (J = c.length; H < J; H += y) {
  22405. for (y = 1; H + y < J && c[H + y] === c[H]; ++y);
  22406. E = y;
  22407. if (0 === c[H])
  22408. if (3 > E)
  22409. for (; 0 < E--;) M[K++] = 0, D[0]++;
  22410. else
  22411. for (; 0 < E;) L = 138 > E ? E : 138, L > E - 3 && L < E && (L = E - 3), 10 >= L ? (M[K++] = 17, M[K++] = L - 3, D[17]++) : (M[K++] = 18, M[K++] = L - 11, D[18]++), E -= L;
  22412. else if (M[K++] = c[H], D[c[H]]++, E--, 3 > E)
  22413. for (; 0 < E--;) M[K++] = c[H], D[c[H]]++;
  22414. else
  22415. for (; 0 < E;) L = 6 > E ? E : 6, L > E - 3 && L < E && (L = E - 3), M[K++] = 16, M[K++] =
  22416. L - 3, D[16]++, E -= L
  22417. }
  22418. c = A ? M.subarray(0, K) : M.slice(0, K);
  22419. D = r(D, 7);
  22420. for (H = 0; 19 > H; H++) m[H] = D[B[H]];
  22421. for (y = 19; 4 < y && 0 === m[y - 1]; y--);
  22422. B = s(D);
  22423. g.H(w - 257, 5, I);
  22424. g.H(x - 1, 5, I);
  22425. g.H(y - 4, 4, I);
  22426. for (H = 0; H < y; H++) g.H(m[H], 3, I);
  22427. H = 0;
  22428. for (m = c.length; H < m; H++)
  22429. if (d = c[H], g.H(B[d], D[d], I), 16 <= d) {
  22430. H++;
  22431. switch (d) {
  22432. case 16:
  22433. k = 2;
  22434. break;
  22435. case 17:
  22436. k = 3;
  22437. break;
  22438. case 18:
  22439. k = 7;
  22440. break;
  22441. default:
  22442. a("invalid code: " + d)
  22443. }
  22444. g.H(c[H], k, I)
  22445. }
  22446. k = [F, t];
  22447. v = [v, u];
  22448. d = k[0];
  22449. k = k[1];
  22450. u = v[0];
  22451. F = v[1];
  22452. v = 0;
  22453. for (m = h.length; v < m; ++v)
  22454. if (f = h[v], g.H(d[f], k[f], I), 256 < f) g.H(h[++v], h[++v], I), t = h[++v],
  22455. g.H(u[t], F[t], I), g.H(h[++v], h[++v], I);
  22456. else if (256 === f) break;
  22457. this.a = g.finish();
  22458. this.b = this.a.length;
  22459. break;
  22460. default:
  22461. a("invalid compression type")
  22462. }
  22463. return this.a
  22464. };
  22465. x = [];
  22466. var R;
  22467. for (R = 3; 258 >= R; R++) F = m(), x[R] = F[2] << 24 | F[1] << 16 | F[0];
  22468. var X = A ? new Uint32Array(x) : x,
  22469. M = D;
  22470. u.prototype.fl = function() {
  22471. var c, e, f, g, h = 0;
  22472. g = this.a;
  22473. c = ga;
  22474. switch (c) {
  22475. case ga:
  22476. e = Math.LOG2E * Math.log(32768) - 8;
  22477. break;
  22478. default:
  22479. a(Error("invalid compression method"))
  22480. }
  22481. e = e << 4 | c;
  22482. g[h++] = e;
  22483. switch (c) {
  22484. case ga:
  22485. switch (this.fp) {
  22486. case M.NONE:
  22487. f = 0;
  22488. break;
  22489. case M.r:
  22490. f = 1;
  22491. break;
  22492. case M.ox:
  22493. f = 2;
  22494. break;
  22495. default:
  22496. a(Error("unsupported compression type"))
  22497. }
  22498. break;
  22499. default:
  22500. a(Error("invalid compression method"))
  22501. }
  22502. c = f << 6 | 0;
  22503. g[h++] = c | 31 - (256 * e + c) % 31;
  22504. c = d(this.input);
  22505. this.z.b = h;
  22506. g = this.z.fl();
  22507. h = g.length;
  22508. 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));
  22509. g[h++] = c >> 24 & 255;
  22510. g[h++] = c >> 16 & 255;
  22511. g[h++] = c >> 8 & 255;
  22512. g[h++] = c & 255;
  22513. return g
  22514. };
  22515. c("Zlib.Deflate", u);
  22516. c("Zlib.Deflate.compress", function(a, c) {
  22517. return (new u(a, c)).fl()
  22518. });
  22519. c("Zlib.Deflate.CompressionType",
  22520. M);
  22521. c("Zlib.Deflate.CompressionType.NONE", M.NONE);
  22522. c("Zlib.Deflate.CompressionType.FIXED", M.r);
  22523. c("Zlib.Deflate.CompressionType.DYNAMIC", M.ox);
  22524. var ua = 0,
  22525. ja = 1,
  22526. D = {
  22527. FQ: ua,
  22528. rQ: ja
  22529. };
  22530. t.prototype.Ox = function() {
  22531. for (; !this.MF;) {
  22532. var c = v(this, 3);
  22533. c & 1 && (this.MF = I);
  22534. c >>>= 1;
  22535. switch (c) {
  22536. case 0:
  22537. var c = this.input,
  22538. d = this.B,
  22539. e = this.a,
  22540. f = this.b,
  22541. g = G,
  22542. h = G,
  22543. k = G,
  22544. m = e.length,
  22545. g = G;
  22546. this.Gg = this.g = 0;
  22547. g = c[d++];
  22548. g === G && a(Error("invalid uncompressed block header: LEN (first byte)"));
  22549. h = g;
  22550. g = c[d++];
  22551. g === G && a(Error("invalid uncompressed block header: LEN (second byte)"));
  22552. h |= g << 8;
  22553. g = c[d++];
  22554. g === G && a(Error("invalid uncompressed block header: NLEN (first byte)"));
  22555. k = g;
  22556. g = c[d++];
  22557. g === G && a(Error("invalid uncompressed block header: NLEN (second byte)"));
  22558. k |= g << 8;
  22559. h === ~k && a(Error("invalid uncompressed block header: length verify"));
  22560. d + h > c.length && a(Error("input buffer is broken"));
  22561. switch (this.Dx) {
  22562. case ua:
  22563. for (; f + h > e.length;) {
  22564. g = m - f;
  22565. h -= g;
  22566. if (A) e.set(c.subarray(d, d + g), f), f += g, d += g;
  22567. else
  22568. for (; g--;) e[f++] = c[d++];
  22569. this.b = f;
  22570. e = this.Ch();
  22571. f = this.b
  22572. }
  22573. break;
  22574. case ja:
  22575. for (; f + h > e.length;) e = this.Ch({
  22576. ga: 2
  22577. });
  22578. break;
  22579. default:
  22580. a(Error("invalid inflate mode"))
  22581. }
  22582. if (A) e.set(c.subarray(d, d + h), f), f += h, d += h;
  22583. else
  22584. for (; h--;) e[f++] = c[d++];
  22585. this.B = d;
  22586. this.b = f;
  22587. this.a = e;
  22588. break;
  22589. case 1:
  22590. this.Hx(Da, Ea);
  22591. break;
  22592. case 2:
  22593. y(this);
  22594. break;
  22595. default:
  22596. a(Error("unknown BTYPE: " + c))
  22597. }
  22598. }
  22599. return this.nG()
  22600. };
  22601. x = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
  22602. var ya = A ? new Uint16Array(x) : x;
  22603. x = [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];
  22604. var za = A ? new Uint16Array(x) : x;
  22605. x = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2,
  22606. 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, 0, 0
  22607. ];
  22608. var ka = A ? new Uint8Array(x) : x;
  22609. x = [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];
  22610. var Aa = A ? new Uint16Array(x) : x;
  22611. x = [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];
  22612. var la = A ? new Uint8Array(x) : x;
  22613. x = new(A ? Uint8Array : Array)(288);
  22614. F = 0;
  22615. for (K = x.length; F < K; ++F) x[F] = 143 >= F ? 8 : 255 >= F ? 9 : 279 >= F ? 7 : 8;
  22616. var Da = g(x);
  22617. x = new(A ? Uint8Array : Array)(30);
  22618. F = 0;
  22619. for (K = x.length; F < K; ++F) x[F] = 5;
  22620. var Ea = g(x);
  22621. t.prototype.Hx =
  22622. function(a, c) {
  22623. var d = this.a,
  22624. e = this.b;
  22625. this.fa = a;
  22626. for (var f = d.length - 258, g, h, k; 256 !== (g = w(this, a));)
  22627. if (256 > g) e >= f && (this.b = e, d = this.Ch(), e = this.b), d[e++] = g;
  22628. else
  22629. for (g -= 257, k = za[g], 0 < ka[g] && (k += v(this, ka[g])), g = w(this, c), h = Aa[g], 0 < la[g] && (h += v(this, la[g])), e >= f && (this.b = e, d = this.Ch(), e = this.b); k--;) d[e] = d[e++-h];
  22630. for (; 8 <= this.Gg;) this.Gg -= 8, this.B--;
  22631. this.b = e
  22632. };
  22633. t.prototype.mR = function(a, c) {
  22634. var d = this.a,
  22635. e = this.b;
  22636. this.fa = a;
  22637. for (var f = d.length, g, h, k; 256 !== (g = w(this, a));)
  22638. if (256 > g) e >= f && (d = this.Ch(), f = d.length),
  22639. d[e++] = g;
  22640. else
  22641. for (g -= 257, k = za[g], 0 < ka[g] && (k += v(this, ka[g])), g = w(this, c), h = Aa[g], 0 < la[g] && (h += v(this, la[g])), e + k > f && (d = this.Ch(), f = d.length); k--;) d[e] = d[e++-h];
  22642. for (; 8 <= this.Gg;) this.Gg -= 8, this.B--;
  22643. this.b = e
  22644. };
  22645. t.prototype.Ch = function() {
  22646. var a = new(A ? Uint8Array : Array)(this.b - 32768),
  22647. c = this.b - 32768,
  22648. d, e, f = this.a;
  22649. if (A) a.set(f.subarray(32768, a.length));
  22650. else
  22651. for (d = 0, e = a.length; d < e; ++d) a[d] = f[d + 32768];
  22652. this.px.push(a);
  22653. this.Ux += a.length;
  22654. if (A) f.set(f.subarray(c, c + 32768));
  22655. else
  22656. for (d = 0; 32768 > d; ++d) f[d] = f[c + d];
  22657. this.b =
  22658. 32768;
  22659. return f
  22660. };
  22661. t.prototype.sR = function(a) {
  22662. var c, d = this.input.length / this.B + 1 | 0,
  22663. e, f, g, h = this.input,
  22664. k = this.a;
  22665. a && ("number" === typeof a.ga && (d = a.ga), "number" === typeof a.dR && (d += a.dR));
  22666. 2 > d ? (e = (h.length - this.B) / this.fa[2], g = e / 2 * 258 | 0, f = g < k.length ? k.length + g : k.length << 1) : f = k.length * d;
  22667. A ? (c = new Uint8Array(f), c.set(k)) : c = k;
  22668. return this.a = c
  22669. };
  22670. t.prototype.nG = function() {
  22671. var a = 0,
  22672. c = this.a,
  22673. d = this.px,
  22674. e, f = new(A ? Uint8Array : Array)(this.Ux + (this.b - 32768)),
  22675. g, h, k, m;
  22676. if (0 === d.length) return A ? this.a.subarray(32768, this.b) :
  22677. this.a.slice(32768, this.b);
  22678. g = 0;
  22679. for (h = d.length; g < h; ++g)
  22680. for (e = d[g], k = 0, m = e.length; k < m; ++k) f[a++] = e[k];
  22681. g = 32768;
  22682. for (h = this.b; g < h; ++g) f[a++] = c[g];
  22683. this.px = [];
  22684. return this.buffer = f
  22685. };
  22686. t.prototype.iR = function() {
  22687. var a, c = this.b;
  22688. A ? this.BG ? (a = new Uint8Array(c), a.set(this.a.subarray(0, c))) : a = this.a.subarray(0, c) : (this.a.length > c && (this.a.length = c), a = this.a);
  22689. return this.buffer = a
  22690. };
  22691. B.prototype.Ox = function() {
  22692. var c = this.input,
  22693. e, f;
  22694. e = this.uG.Ox();
  22695. this.B = this.uG.B;
  22696. this.KR && (f = (c[this.B++] << 24 | c[this.B++] << 16 | c[this.B++] <<
  22697. 8 | c[this.B++]) >>> 0, f !== d(e) && a(Error("invalid adler-32 checksum")));
  22698. return e
  22699. };
  22700. c("Zlib.Inflate", B);
  22701. c("Zlib.Inflate.BufferType", D);
  22702. D.Y5 = D.rQ;
  22703. D.s6 = D.FQ;
  22704. c("Zlib.Inflate.prototype.decompress", B.prototype.Ox);
  22705. D = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
  22706. A && new Uint16Array(D);
  22707. 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];
  22708. A && new Uint16Array(D);
  22709. 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];
  22710. A && new Uint8Array(D);
  22711. D = [1, 2, 3, 4, 5, 7, 9, 13,
  22712. 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577
  22713. ];
  22714. A && new Uint16Array(D);
  22715. 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];
  22716. A && new Uint8Array(D);
  22717. D = new(A ? Uint8Array : Array)(288);
  22718. x = 0;
  22719. for (F = D.length; x < F; ++x) D[x] = 143 >= x ? 8 : 255 >= x ? 9 : 279 >= x ? 7 : 8;
  22720. g(D);
  22721. D = new(A ? Uint8Array : Array)(30);
  22722. x = 0;
  22723. for (F = D.length; x < F; ++x) D[x] = 5;
  22724. g(D);
  22725. var ga = 8
  22726. }).call(this);
  22727. n = window;
  22728. n = n.N8 = n.Zlib;
  22729. n.LG = n.Deflate;
  22730. n.LG.z$ = n.LG.compress;
  22731. n.ln = n.Inflate;
  22732. n.ln.H6 = n.ln.BufferType;
  22733. n.ln.prototype.xM = n.ln.prototype.decompress;
  22734. b.oS = b.oa.extend({
  22735. ctor: function(a) {
  22736. var c, d, e, f;
  22737. this.data = a;
  22738. this.Xa = 8;
  22739. this.BF = [];
  22740. this.fx = [];
  22741. this.$m = {};
  22742. this.RD = null;
  22743. this.text = {};
  22744. for (e = null;;) {
  22745. c = this.Mj();
  22746. f = a = void 0;
  22747. f = [];
  22748. for (a = 0; 4 > a; ++a) f.push(String.fromCharCode(this.data[this.Xa++]));
  22749. a = f.join("");
  22750. switch (a) {
  22751. case "IHDR":
  22752. this.width = this.Mj();
  22753. this.height = this.Mj();
  22754. this.Mo = this.data[this.Xa++];
  22755. this.eE = this.data[this.Xa++];
  22756. this.Xa++;
  22757. this.Xa++;
  22758. this.Xa++;
  22759. break;
  22760. case "acTL":
  22761. this.RD = {
  22762. yga: this.Mj(),
  22763. zga: this.Mj() || Infinity,
  22764. frames: []
  22765. };
  22766. break;
  22767. case "PLTE":
  22768. this.BF =
  22769. this.Vs(c);
  22770. break;
  22771. case "fcTL":
  22772. e && this.RD.frames.push(e);
  22773. this.Xa += 4;
  22774. e = {
  22775. width: this.Mj(),
  22776. height: this.Mj(),
  22777. aQ: this.Mj(),
  22778. bQ: this.Mj()
  22779. };
  22780. a = this.CO();
  22781. c = this.CO() || 100;
  22782. e.K$ = 1E3 * a / c;
  22783. e.X$ = this.data[this.Xa++];
  22784. e.m$ = this.data[this.Xa++];
  22785. e.data = [];
  22786. break;
  22787. case "IDAT":
  22788. case "fdAT":
  22789. "fdAT" === a && (this.Xa += 4, c -= 4);
  22790. a = (null != e ? e.data : void 0) || this.fx;
  22791. for (f = 0; 0 <= c ? f < c : f > c; 0 <= c ? ++f : --f) a.push(this.data[this.Xa++]);
  22792. break;
  22793. case "tRNS":
  22794. this.$m = {};
  22795. switch (this.eE) {
  22796. case 3:
  22797. this.$m.WE = this.Vs(c);
  22798. c = 255 - this.$m.WE.length;
  22799. if (0 < c)
  22800. for (a =
  22801. 0; 0 <= c ? a < c : a > c; 0 <= c ? ++a : --a) this.$m.WE.push(255);
  22802. break;
  22803. case 0:
  22804. this.$m.Hda = this.Vs(c)[0];
  22805. break;
  22806. case 2:
  22807. this.$m.Zha = this.Vs(c)
  22808. }
  22809. break;
  22810. case "tEXt":
  22811. f = this.Vs(c);
  22812. c = f.indexOf(0);
  22813. a = String.fromCharCode.apply(String, f.slice(0, c));
  22814. this.text[a] = String.fromCharCode.apply(String, f.slice(c + 1));
  22815. break;
  22816. case "IEND":
  22817. e && this.RD.frames.push(e);
  22818. a: {
  22819. switch (this.eE) {
  22820. case 0:
  22821. case 3:
  22822. case 4:
  22823. e = 1;
  22824. break a;
  22825. case 2:
  22826. case 6:
  22827. e = 3;
  22828. break a
  22829. }
  22830. e = void 0
  22831. }
  22832. this.s = e;
  22833. this.AN = 4 === (d = this.eE) || 6 === d;
  22834. d = this.s + (this.AN ? 1 : 0);
  22835. this.T2 = this.Mo * d;
  22836. Uint8Array !=
  22837. Array && (this.fx = new Uint8Array(this.fx));
  22838. return;
  22839. default:
  22840. this.Xa += c
  22841. }
  22842. this.Xa += 4;
  22843. if (this.Xa > this.data.length) throw Error("Incomplete or corrupt PNG file");
  22844. }
  22845. },
  22846. Vs: function(a) {
  22847. var c, d;
  22848. d = [];
  22849. for (c = 0; 0 <= a ? c < a : c > a; 0 <= a ? ++c : --c) d.push(this.data[this.Xa++]);
  22850. return d
  22851. },
  22852. Mj: function() {
  22853. var a, c, d, e;
  22854. a = this.data[this.Xa++] << 24;
  22855. c = this.data[this.Xa++] << 16;
  22856. d = this.data[this.Xa++] << 8;
  22857. e = this.data[this.Xa++];
  22858. return a | c | d | e
  22859. },
  22860. CO: function() {
  22861. var a, c;
  22862. a = this.data[this.Xa++] << 8;
  22863. c = this.data[this.Xa++];
  22864. return a | c
  22865. },
  22866. QZ: function(a) {
  22867. var c,
  22868. d, e, f, g, h, k, m, p, r, s, u, t, v, w;
  22869. null == a && (a = this.fx);
  22870. if (0 === a.length) return new Uint8Array(0);
  22871. a = (new Zlib.ln(a, {
  22872. index: 0,
  22873. ZP: !1
  22874. })).xM();
  22875. m = this.T2 / 8;
  22876. u = m * this.width;
  22877. p = new Uint8Array(u * this.height);
  22878. h = a.length;
  22879. for (d = r = s = 0; r < h;) {
  22880. switch (a[r++]) {
  22881. case 0:
  22882. for (c = 0; c < u; c += 1) p[d++] = a[r++];
  22883. break;
  22884. case 1:
  22885. for (f = t = 0; t < u; f = t += 1) c = a[r++], g = f < m ? 0 : p[d - m], p[d++] = (c + g) % 256;
  22886. break;
  22887. case 2:
  22888. for (f = g = 0; g < u; f = g += 1) c = a[r++], e = (f - f % m) / m, t = s && p[(s - 1) * u + e * m + f % m], p[d++] = (t + c) % 256;
  22889. break;
  22890. case 3:
  22891. for (f = w = 0; w < u; f = w += 1) c = a[r++], e = (f - f % m) / m, g = f <
  22892. m ? 0 : p[d - m], t = s && p[(s - 1) * u + e * m + f % m], p[d++] = (c + Math.floor((g + t) / 2)) % 256;
  22893. break;
  22894. case 4:
  22895. for (f = w = 0; w < u; f = w += 1) c = a[r++], e = (f - f % m) / m, g = f < m ? 0 : p[d - m], 0 === s ? t = v = 0 : (t = p[(s - 1) * u + e * m + f % m], v = e && p[(s - 1) * u + (e - 1) * m + f % m]), k = g + t - v, f = Math.abs(k - g), e = Math.abs(k - t), k = Math.abs(k - v), g = f <= e && f <= k ? g : e <= k ? t : v, p[d++] = (c + g) % 256;
  22896. break;
  22897. default:
  22898. throw Error("Invalid filter algorithm: " + a[r - 1]);
  22899. }
  22900. s++
  22901. }
  22902. return p
  22903. },
  22904. OZ: function(a, c) {
  22905. var d, e, f, g, h, k, m, p;
  22906. e = this.s;
  22907. p = null;
  22908. d = this.AN;
  22909. this.BF.length && (p = null != (f = this.tV) ? f : this.tV = this.PZ(), e = 4,
  22910. d = !0);
  22911. f = a.data || a;
  22912. m = f.length;
  22913. h = p || c;
  22914. g = k = 0;
  22915. if (1 === e)
  22916. for (; g < m;) e = p ? 4 * c[g / 4] : k, k = h[e++], f[g++] = k, f[g++] = k, f[g++] = k, f[g++] = d ? h[e++] : 255, k = e;
  22917. else
  22918. for (; g < m;) e = p ? 4 * c[g / 4] : k, f[g++] = h[e++], f[g++] = h[e++], f[g++] = h[e++], f[g++] = d ? h[e++] : 255, k = e
  22919. },
  22920. PZ: function() {
  22921. var a, c, d, e, f, g, h, k, m;
  22922. d = this.BF;
  22923. g = this.$m.WE || [];
  22924. f = new Uint8Array((g.length || 0) + d.length);
  22925. c = h = a = e = 0;
  22926. for (k = d.length; h < k; c = h += 3) f[e++] = d[c], f[e++] = d[c + 1], f[e++] = d[c + 2], f[e++] = null != (m = g[a++]) ? m : 255;
  22927. return f
  22928. },
  22929. v3: function(a) {
  22930. var c;
  22931. a.width = this.width;
  22932. a.height =
  22933. this.height;
  22934. a = a.getContext("2d");
  22935. c = a.createImageData(this.width, this.height);
  22936. this.OZ(c, this.QZ());
  22937. return a.putImageData(c, 0, 0)
  22938. }
  22939. });
  22940. b.x5 = {
  22941. yK: !1,
  22942. jm: null,
  22943. qB: [],
  22944. getUint8: function(a) {
  22945. return this.jm[a]
  22946. },
  22947. getUint16: function(a) {
  22948. return this.yK ? this.jm[a + 1] << 8 | this.jm[a] : this.jm[a] << 8 | this.jm[a + 1]
  22949. },
  22950. getUint32: function(a) {
  22951. var c = this.jm;
  22952. return this.yK ? c[a + 3] << 24 | c[a + 2] << 16 | c[a + 1] << 8 | c[a] : c[a] << 24 | c[a + 1] << 16 | c[a + 2] << 8 | c[a + 3]
  22953. },
  22954. EZ: function() {
  22955. var a = this.getUint16(0);
  22956. if (18761 === a) this.vF = !0;
  22957. else if (19789 === a) this.vF = !1;
  22958. else throw console.log(a), TypeError("Invalid byte order value.");
  22959. return this.vF
  22960. },
  22961. k1: function() {
  22962. if (42 !== this.getUint16(2)) throw RangeError("You forgot your towel!");
  22963. return !0
  22964. },
  22965. h0: function(a) {
  22966. var c = this.H_;
  22967. return a in c ? c[a] : null
  22968. },
  22969. f0: function(a) {
  22970. var c = this.G_;
  22971. if (a in c) return c[a];
  22972. console.log("Unknown Field Tag:", a);
  22973. return "Tag" + a
  22974. },
  22975. g0: function(a) {
  22976. 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
  22977. },
  22978. i0: function(a, c, d, e) {
  22979. a = [];
  22980. var f = this.g0(c);
  22981. if (4 >= f * d)!1 === this.vF ? a.push(e >>> 8 * (4 - f)) : a.push(e);
  22982. else
  22983. for (var g = 0; g < d; g++) {
  22984. var h =
  22985. f * g;
  22986. 8 <= f ? -1 !== ["RATIONAL", "SRATIONAL"].indexOf(c) ? (a.push(this.getUint32(e + h)), a.push(this.getUint32(e + h + 4))) : b.log("Can't handle this field type or size") : a.push(this.TM(f, e + h))
  22987. }
  22988. "ASCII" === c && a.forEach(function(a, c, d) {
  22989. d[c] = String.fromCharCode(a)
  22990. });
  22991. return a
  22992. },
  22993. TM: function(a, c) {
  22994. if (0 >= a) b.log("No bytes requested");
  22995. else {
  22996. if (1 >= a) return this.getUint8(c);
  22997. if (2 >= a) return this.getUint16(c);
  22998. if (3 >= a) return this.getUint32(c) >>> 8;
  22999. if (4 >= a) return this.getUint32(c);
  23000. b.log("Too many bytes requested")
  23001. }
  23002. },
  23003. R_: function(a,
  23004. c, d) {
  23005. d = d || 0;
  23006. c += Math.floor(d / 8);
  23007. var e = d + a;
  23008. a = 32 - a;
  23009. var f, g;
  23010. 0 >= e ? console.log("No bits requested") : 8 >= e ? (f = 24 + d, g = this.getUint8(c)) : 16 >= e ? (f = 16 + d, g = this.getUint16(c)) : 32 >= e ? (f = d, g = this.getUint32(c)) : console.log("Too many bits requested");
  23011. return {
  23012. bits: g << f >>> a,
  23013. byteOffset: c + Math.floor(e / 8),
  23014. bitOffset: e % 8
  23015. }
  23016. },
  23017. xO: function(a) {
  23018. var c = this.getUint16(a),
  23019. d = [];
  23020. a += 2;
  23021. for (var e = 0; e < c; a += 12, e++) {
  23022. var f = this.getUint16(a),
  23023. g = this.getUint16(a + 2),
  23024. h = this.getUint32(a + 4),
  23025. k = this.getUint32(a + 8),
  23026. f = this.f0(f),
  23027. g = this.h0(g),
  23028. h = this.i0(f,
  23029. g, h, k);
  23030. d[f] = {
  23031. type: g,
  23032. Ph: h
  23033. }
  23034. }
  23035. this.qB.push(d);
  23036. c = this.getUint32(a);
  23037. 0 !== c && this.xO(c)
  23038. },
  23039. xm: function(a, c) {
  23040. var d = Math.pow(2, 8 - c);
  23041. return Math.floor(a * d + (d - 1))
  23042. },
  23043. O2: function(a, c) {
  23044. c = c || b.Sb("canvas");
  23045. this.jm = a;
  23046. this.canvas = c;
  23047. this.EZ();
  23048. if (this.k1()) {
  23049. var d = this.getUint32(4);
  23050. this.qB.length = 0;
  23051. this.xO(d);
  23052. var e = this.qB[0],
  23053. d = e.ImageWidth.Ph[0],
  23054. f = e.ImageLength.Ph[0];
  23055. this.canvas.width = d;
  23056. this.canvas.height = f;
  23057. var g = [],
  23058. h = e.Compression ? e.Compression.Ph[0] : 1,
  23059. k = e.SamplesPerPixel.Ph[0],
  23060. m = [],
  23061. p = 0,
  23062. r = !1;
  23063. e.BitsPerSample.Ph.forEach(function(a,
  23064. c) {
  23065. m[c] = {
  23066. No: a,
  23067. ax: !1,
  23068. js: void 0
  23069. };
  23070. 0 === a % 8 && (m[c].ax = !0, m[c].js = a / 8);
  23071. p += a
  23072. }, this);
  23073. if (0 === p % 8) var r = !0,
  23074. s = p / 8;
  23075. var u = e.StripOffsets.Ph,
  23076. t = u.length;
  23077. if (e.StripByteCounts) var v = e.StripByteCounts.Ph;
  23078. else if (b.log("Missing StripByteCounts!"), 1 === t) v = [Math.ceil(d * f * p / 8)];
  23079. else throw Error("Cannot recover from missing StripByteCounts");
  23080. for (var w = 0; w < t; w++) {
  23081. var y = u[w];
  23082. g[w] = [];
  23083. for (var B = v[w], G = 0, I = 0, E = 1, A = !0, D = [], x = 0, F = 0, K = 0; G < B; G += E) switch (h) {
  23084. case 1:
  23085. E = 0;
  23086. for (D = []; E < k; E++)
  23087. if (m[E].ax) D.push(this.TM(m[E].js, y + G + m[E].js *
  23088. E));
  23089. else {
  23090. var L = this.R_(m[E].No, y + G, I);
  23091. D.push(L.Mo);
  23092. G = L.byteOffset - y;
  23093. I = L.k$;
  23094. throw RangeError("Cannot handle sub-byte bits per sample");
  23095. }
  23096. g[w].push(D);
  23097. if (r) E = s;
  23098. else throw E = 0, RangeError("Cannot handle sub-byte bits per pixel");
  23099. break;
  23100. case 32773:
  23101. if (A) {
  23102. var A = !1,
  23103. J = 1,
  23104. P = 1,
  23105. E = this.getInt8(y + G);
  23106. 0 <= E && 127 >= E ? J = E + 1 : -127 <= E && -1 >= E ? P = -E + 1 : A = !0
  23107. } else {
  23108. for (var T = this.getUint8(y + G), E = 0; E < P; E++) {
  23109. if (m[F].ax) K = K << 8 * x | T, x++, x === m[F].js && (D.push(K), K = x = 0, F++);
  23110. else throw RangeError("Cannot handle sub-byte bits per sample");
  23111. F === k && (g[w].push(D), D = [], F = 0)
  23112. }
  23113. J--;
  23114. 0 === J && (A = !0)
  23115. }
  23116. E = 1
  23117. }
  23118. }
  23119. if (c.getContext) {
  23120. s = this.canvas.getContext("2d");
  23121. s.fillStyle = "rgba(255, 255, 255, 0)";
  23122. w = e.RowsPerStrip ? e.RowsPerStrip.Ph[0] : f;
  23123. y = g.length;
  23124. f %= w;
  23125. f = 0 === f ? w : f;
  23126. G = w;
  23127. h = 0;
  23128. D = e.PhotometricInterpretation.Ph[0];
  23129. J = [];
  23130. P = 0;
  23131. e.ExtraSamples && (J = e.ExtraSamples.Ph, P = J.length);
  23132. if (e.ColorMap) var L = e.ColorMap.Ph,
  23133. R = Math.pow(2, m[0].No);
  23134. for (w = 0; w < y; w++) {
  23135. w + 1 === y && (G = f);
  23136. e = g[w].length;
  23137. h *= w;
  23138. for (r = k = 0; k < G, r < e; k++)
  23139. for (u = 0; u < d; u++, r++) {
  23140. v = g[w][r];
  23141. A = I = B = 0;
  23142. t = 1;
  23143. if (0 < P)
  23144. for (B = 0; B < P; B++)
  23145. if (1 ===
  23146. J[B] || 2 === J[B]) {
  23147. t = v[3 + B] / 256;
  23148. break
  23149. }
  23150. switch (D) {
  23151. case 0:
  23152. if (m[0].ax) var X = Math.pow(16, 2 * m[0].js);
  23153. v.forEach(function(a, c, d) {
  23154. d[c] = X - a
  23155. });
  23156. case 1:
  23157. B = I = A = this.xm(v[0], m[0].No);
  23158. break;
  23159. case 2:
  23160. B = this.xm(v[0], m[0].No);
  23161. I = this.xm(v[1], m[1].No);
  23162. A = this.xm(v[2], m[2].No);
  23163. break;
  23164. case 3:
  23165. if (void 0 === L) throw Error("Palette image missing color map");
  23166. v = v[0];
  23167. B = this.xm(L[v], 16);
  23168. I = this.xm(L[R + v], 16);
  23169. A = this.xm(L[2 * R + v], 16);
  23170. break;
  23171. default:
  23172. throw RangeError("Unknown Photometric Interpretation:", D);
  23173. }
  23174. s.fillStyle = "rgba(" + B + ", " + I + ", " + A +
  23175. ", " + t + ")";
  23176. s.fillRect(u, h + k, 1, 1)
  23177. }
  23178. h = G
  23179. }
  23180. }
  23181. return this.canvas
  23182. }
  23183. },
  23184. G_: {
  23185. 315: "Artist",
  23186. 258: "BitsPerSample",
  23187. 265: "CellLength",
  23188. 264: "CellWidth",
  23189. 320: "ColorMap",
  23190. 259: "Compression",
  23191. 33432: "Copyright",
  23192. 306: "DateTime",
  23193. 338: "ExtraSamples",
  23194. 266: "FillOrder",
  23195. 289: "FreeByteCounts",
  23196. 288: "FreeOffsets",
  23197. 291: "GrayResponseCurve",
  23198. 290: "GrayResponseUnit",
  23199. 316: "HostComputer",
  23200. 270: "ImageDescription",
  23201. 257: "ImageLength",
  23202. 256: "ImageWidth",
  23203. 271: "Make",
  23204. 281: "MaxSampleValue",
  23205. 280: "MinSampleValue",
  23206. 272: "Model",
  23207. 254: "NewSubfileType",
  23208. 274: "Orientation",
  23209. 262: "PhotometricInterpretation",
  23210. 284: "PlanarConfiguration",
  23211. 296: "ResolutionUnit",
  23212. 278: "RowsPerStrip",
  23213. 277: "SamplesPerPixel",
  23214. 305: "Software",
  23215. 279: "StripByteCounts",
  23216. 273: "StripOffsets",
  23217. 255: "SubfileType",
  23218. 263: "Threshholding",
  23219. 282: "XResolution",
  23220. 283: "YResolution",
  23221. 326: "BadFaxLines",
  23222. 327: "CleanFaxData",
  23223. 343: "ClipPath",
  23224. 328: "ConsecutiveBadFaxLines",
  23225. 433: "Decode",
  23226. 434: "DefaultImageColor",
  23227. 269: "DocumentName",
  23228. 336: "DotRange",
  23229. 321: "HalftoneHints",
  23230. 346: "Indexed",
  23231. 347: "JPEGTables",
  23232. 285: "PageName",
  23233. 297: "PageNumber",
  23234. 317: "Predictor",
  23235. 319: "PrimaryChromaticities",
  23236. 532: "ReferenceBlackWhite",
  23237. 339: "SampleFormat",
  23238. 559: "StripRowCounts",
  23239. 330: "SubIFDs",
  23240. 292: "T4Options",
  23241. 293: "T6Options",
  23242. 325: "TileByteCounts",
  23243. 323: "TileLength",
  23244. 324: "TileOffsets",
  23245. 322: "TileWidth",
  23246. 301: "TransferFunction",
  23247. 318: "WhitePoint",
  23248. 344: "XClipPathUnits",
  23249. 286: "XPosition",
  23250. 529: "YCbCrCoefficients",
  23251. 531: "YCbCrPositioning",
  23252. 530: "YCbCrSubSampling",
  23253. 345: "YClipPathUnits",
  23254. 287: "YPosition",
  23255. 37378: "ApertureValue",
  23256. 40961: "ColorSpace",
  23257. 36868: "DateTimeDigitized",
  23258. 36867: "DateTimeOriginal",
  23259. 34665: "Exif IFD",
  23260. 36864: "ExifVersion",
  23261. 33434: "ExposureTime",
  23262. 41728: "FileSource",
  23263. 37385: "Flash",
  23264. 40960: "FlashpixVersion",
  23265. 33437: "FNumber",
  23266. 42016: "ImageUniqueID",
  23267. 37384: "LightSource",
  23268. 37500: "MakerNote",
  23269. 37377: "ShutterSpeedValue",
  23270. 37510: "UserComment",
  23271. 33723: "IPTC",
  23272. 34675: "ICC Profile",
  23273. 700: "XMP",
  23274. 42112: "GDAL_METADATA",
  23275. 42113: "GDAL_NODATA",
  23276. 34377: "Photoshop"
  23277. },
  23278. H_: {
  23279. 1: "BYTE",
  23280. 2: "ASCII",
  23281. 3: "SHORT",
  23282. 4: "LONG",
  23283. 5: "RATIONAL",
  23284. 6: "SBYTE",
  23285. 7: "UNDEFINED",
  23286. 8: "SSHORT",
  23287. 9: "SLONG",
  23288. 10: "SRATIONAL",
  23289. 11: "FLOAT",
  23290. 12: "DOUBLE"
  23291. }
  23292. };
  23293. b.ng = function(a, c, d, e, f, g, h, k, m, p, r, s) {
  23294. this.Xa = a ? a : C(0, 0);
  23295. this.ty = c ? c : C(0, 0);
  23296. this.color = d ? d : {
  23297. r: 0,
  23298. g: 0,
  23299. b: 0,
  23300. a: 255
  23301. };
  23302. this.ps = e ? e : {
  23303. r: 0,
  23304. g: 0,
  23305. b: 0,
  23306. a: 255
  23307. };
  23308. this.size = f || 0;
  23309. this.mE = g || 0;
  23310. this.rotation = h || 0;
  23311. this.DM = k || 0;
  23312. this.ol = m || 0;
  23313. this.atlasIndex = p || 0;
  23314. this.Rb = r ? r : new b.ng.nz;
  23315. this.Id = s ? s : new b.ng.oz;
  23316. this.TN = !1;
  23317. this.rs = C(0, 0)
  23318. };
  23319. b.ng.nz = function(a, c, d) {
  23320. this.dir = a ? a : C(0, 0);
  23321. this.radialAccel = c || 0;
  23322. this.tangentialAccel = d || 0
  23323. };
  23324. b.ng.oz = function(a, c, d, e) {
  23325. this.Fg = a || 0;
  23326. this.zM = c || 0;
  23327. this.Us = d || 0;
  23328. this.CM = e || 0
  23329. };
  23330. b.ng.lu = [C(), C(), C(), C()];
  23331. b.n = b.k.extend({
  23332. iC: "",
  23333. kb: 0,
  23334. gJ: !1,
  23335. Rb: null,
  23336. Id: null,
  23337. vb: "ParticleSystem",
  23338. oC: C(0, 0),
  23339. Fk: null,
  23340. Ml: 0,
  23341. lf: 0,
  23342. V: null,
  23343. atlasIndex: 0,
  23344. mm: !1,
  23345. zu: 0,
  23346. Jw: null,
  23347. sy: null,
  23348. io: !1,
  23349. td: 0,
  23350. duration: 0,
  23351. vo: null,
  23352. Hk: null,
  23353. Re: 0,
  23354. lp: 0,
  23355. Fg: 0,
  23356. Ko: 0,
  23357. Ap: 0,
  23358. Bp: 0,
  23359. Dm: 0,
  23360. To: 0,
  23361. vh: null,
  23362. Ok: null,
  23363. Ge: null,
  23364. rk: null,
  23365. Cp: 0,
  23366. Dp: 0,
  23367. Uo: 0,
  23368. Vo: 0,
  23369. Cm: 0,
  23370. ob: 0,
  23371. G: null,
  23372. p: null,
  23373. Oa: !1,
  23374. Ji: null,
  23375. hs: !1,
  23376. Ca: 0,
  23377. Dc: null,
  23378. lb: null,
  23379. vc: null,
  23380. zr: null,
  23381. ma: null,
  23382. bd: null,
  23383. ctor: function(a) {
  23384. b.k.prototype.ctor.call(this);
  23385. this.Ca = b.n.eb;
  23386. this.Rb = new b.n.nz;
  23387. this.Id = new b.n.oz;
  23388. this.p = {
  23389. src: b.dc,
  23390. S: b.cc
  23391. };
  23392. this.Fk = [];
  23393. this.vo = C(0, 0);
  23394. this.Hk = C(0, 0);
  23395. this.vh = b.color(255, 255, 255, 255);
  23396. this.Ok = b.color(255, 255, 255, 255);
  23397. this.Ge = b.color(255, 255, 255, 255);
  23398. this.rk = b.color(255, 255, 255, 255);
  23399. this.iC = "";
  23400. this.kb = 0;
  23401. this.gJ = !1;
  23402. this.oC = C(0, 0);
  23403. this.lf = this.Ml = 0;
  23404. this.V = null;
  23405. this.atlasIndex = 0;
  23406. this.mm = !1;
  23407. this.zu = 0;
  23408. this.Jw = b.n.OS;
  23409. this.sy = b.n.iQ;
  23410. this.io = !1;
  23411. this.ob = this.Cm = this.Vo = this.Uo = this.Dp = this.Cp = this.To = this.Dm = this.Bp = this.Ap = this.Ko = this.Fg = this.lp = this.Re = this.duration = this.td = 0;
  23412. this.G = null;
  23413. this.Oa = !1;
  23414. this.Ji = b.n.zq;
  23415. this.hs = !1;
  23416. this.vc = [0, 0];
  23417. this.Dc = [];
  23418. this.lb = [];
  23419. this.zr = O(0, 0, 0, 0);
  23420. this.ma = !0;
  23421. b.A === b.U && (this.bd = null);
  23422. a && "number" !== typeof a ? a && this.bl(a) : (a = a || 100, this.X3(b.n.JH), this.Qb(a))
  23423. },
  23424. XE: function() {
  23425. for (var a = this.lb, c = 0, d = this.ob; c < d; ++c) {
  23426. var e = 6 * c,
  23427. f = 4 * c;
  23428. a[e + 0] = f + 0;
  23429. a[e + 1] = f + 1;
  23430. a[e + 2] = f + 2;
  23431. a[e + 5] = f + 1;
  23432. a[e + 4] = f + 2;
  23433. a[e + 3] = f + 3
  23434. }
  23435. },
  23436. DN: function(a) {
  23437. var c = b.pb(),
  23438. d = O(a.x * c, a.y * c, a.width * c, a.height * c),
  23439. e = a.width,
  23440. f = a.height;
  23441. this.G && (e = this.G.pixelsWidth, f = this.G.pixelsHeight);
  23442. if (b.A !== b.Ba) {
  23443. b.jn ? (a = (2 * d.x + 1) / (2 * e), c = (2 * d.y + 1) /
  23444. (2 * f), e = a + (2 * d.width - 2) / (2 * e), d = c + (2 * d.height - 2) / (2 * f)) : (a = d.x / e, c = d.y / f, e = a + d.width / e, d = c + d.height / f);
  23445. var f = d,
  23446. d = c,
  23447. c = f,
  23448. g = 0,
  23449. h = 0;
  23450. this.V ? (f = this.V.textureAtlas.quads, g = this.atlasIndex, h = this.atlasIndex + this.ob) : (f = this.Dc, g = 0, h = this.ob);
  23451. for (; g < h; g++) {
  23452. f[g] || (f[g] = b.wI());
  23453. var k = f[g];
  23454. k.C.m.fa = a;
  23455. k.C.m.ga = c;
  23456. k.L.m.fa = e;
  23457. k.L.m.ga = c;
  23458. k.K.m.fa = a;
  23459. k.K.m.ga = d;
  23460. k.J.m.fa = e;
  23461. k.J.m.ga = d
  23462. }
  23463. }
  23464. },
  23465. yE: function() {
  23466. return this.V
  23467. },
  23468. ml: function(a) {
  23469. if (this.V != a) {
  23470. var c = this.V;
  23471. if (this.V = a)
  23472. for (var d = this.Fk, e = 0; e < this.ob; e++) d[e].atlasIndex =
  23473. e;
  23474. a ? c || (this.V.textureAtlas.qV(this.Dc, this.atlasIndex), b.l.deleteBuffer(this.vc[1])) : (this.LI(), this.XE(), this.Ya(c.za()), this.em())
  23475. }
  23476. },
  23477. $o: function() {
  23478. return this.atlasIndex
  23479. },
  23480. QF: function(a) {
  23481. this.atlasIndex = a
  23482. },
  23483. Bba: function() {
  23484. return this.Jw
  23485. },
  23486. X3: function(a) {
  23487. this.Jw = a
  23488. },
  23489. Vca: function() {
  23490. return this.sy
  23491. },
  23492. Aja: function(a) {
  23493. this.sy = a
  23494. },
  23495. vf: function() {
  23496. return this.io
  23497. },
  23498. Bca: function() {
  23499. return this.td
  23500. },
  23501. oja: function(a) {
  23502. this.td = a
  23503. },
  23504. ap: function() {
  23505. return this.duration
  23506. },
  23507. Zf: function(a) {
  23508. this.duration = a
  23509. },
  23510. U0: function() {
  23511. return {
  23512. x: this.vo.x,
  23513. y: this.vo.y
  23514. }
  23515. },
  23516. z4: function(a) {
  23517. this.vo = a
  23518. },
  23519. HE: function() {
  23520. return {
  23521. x: this.Hk.x,
  23522. y: this.Hk.y
  23523. }
  23524. },
  23525. Tg: function(a) {
  23526. this.Hk = a
  23527. },
  23528. fca: function() {
  23529. return this.Re
  23530. },
  23531. Rg: function(a) {
  23532. this.Re = a
  23533. },
  23534. gca: function() {
  23535. return this.lp
  23536. },
  23537. Sg: function(a) {
  23538. this.lp = a
  23539. },
  23540. aba: function() {
  23541. return this.Fg
  23542. },
  23543. Mg: function(a) {
  23544. this.Fg = a
  23545. },
  23546. bba: function() {
  23547. return this.Ko
  23548. },
  23549. Ng: function(a) {
  23550. this.Ko = a
  23551. },
  23552. $M: function() {
  23553. this.Ca !== b.n.eb && b.log("cc.ParticleBatchNode.getGravity() : Particle Mode should be Gravity");
  23554. var a = this.Rb.gravity;
  23555. return C(a.x, a.y)
  23556. },
  23557. ag: function(a) {
  23558. this.Ca !==
  23559. b.n.eb && b.log("cc.ParticleBatchNode.setGravity() : Particle Mode should be Gravity");
  23560. this.Rb.gravity = a
  23561. },
  23562. Uw: function() {
  23563. this.Ca !== b.n.eb && b.log("cc.ParticleBatchNode.getSpeed() : Particle Mode should be Gravity");
  23564. return this.Rb.speed
  23565. },
  23566. Ve: function(a) {
  23567. this.Ca !== b.n.eb && b.log("cc.ParticleBatchNode.setSpeed() : Particle Mode should be Gravity");
  23568. this.Rb.speed = a
  23569. },
  23570. nN: function() {
  23571. this.Ca !== b.n.eb && b.log("cc.ParticleBatchNode.getSpeedVar() : Particle Mode should be Gravity");
  23572. return this.Rb.speedVar
  23573. },
  23574. dg: function(a) {
  23575. this.Ca !==
  23576. b.n.eb && b.log("cc.ParticleBatchNode.setSpeedVar() : Particle Mode should be Gravity");
  23577. this.Rb.speedVar = a
  23578. },
  23579. sN: function() {
  23580. this.Ca !== b.n.eb && b.log("cc.ParticleBatchNode.getTangentialAccel() : Particle Mode should be Gravity");
  23581. return this.Rb.tangentialAccel
  23582. },
  23583. Pj: function(a) {
  23584. this.Ca !== b.n.eb && b.log("cc.ParticleBatchNode.setTangentialAccel() : Particle Mode should be Gravity");
  23585. this.Rb.tangentialAccel = a
  23586. },
  23587. tN: function() {
  23588. this.Ca !== b.n.eb && b.log("cc.ParticleBatchNode.getTangentialAccelVar() : Particle Mode should be Gravity");
  23589. return this.Rb.tangentialAccelVar
  23590. },
  23591. Qj: function(a) {
  23592. this.Ca !== b.n.eb && b.log("cc.ParticleBatchNode.setTangentialAccelVar() : Particle Mode should be Gravity");
  23593. this.Rb.tangentialAccelVar = a
  23594. },
  23595. gN: function() {
  23596. this.Ca !== b.n.eb && b.log("cc.ParticleBatchNode.getRadialAccel() : Particle Mode should be Gravity");
  23597. return this.Rb.radialAccel
  23598. },
  23599. bg: function(a) {
  23600. this.Ca !== b.n.eb && b.log("cc.ParticleBatchNode.setRadialAccel() : Particle Mode should be Gravity");
  23601. this.Rb.radialAccel = a
  23602. },
  23603. hN: function() {
  23604. this.Ca !== b.n.eb && b.log("cc.ParticleBatchNode.getRadialAccelVar() : Particle Mode should be Gravity");
  23605. return this.Rb.radialAccelVar
  23606. },
  23607. cg: function(a) {
  23608. this.Ca !== b.n.eb && b.log("cc.ParticleBatchNode.setRadialAccelVar() : Particle Mode should be Gravity");
  23609. this.Rb.radialAccelVar = a
  23610. },
  23611. M0: function() {
  23612. this.Ca !== b.n.eb && b.log("cc.ParticleBatchNode.getRotationIsDir() : Particle Mode should be Gravity");
  23613. return this.Rb.rotationIsDir
  23614. },
  23615. u4: function(a) {
  23616. this.Ca !== b.n.eb && b.log("cc.ParticleBatchNode.setRotationIsDir() : Particle Mode should be Gravity");
  23617. this.Rb.rotationIsDir = a
  23618. },
  23619. qN: function() {
  23620. this.Ca !== b.n.$e && b.log("cc.ParticleBatchNode.getStartRadius() : Particle Mode should be Radius");
  23621. return this.Id.startRadius
  23622. },
  23623. vP: function(a) {
  23624. this.Ca !== b.n.$e && b.log("cc.ParticleBatchNode.setStartRadius() : Particle Mode should be Radius");
  23625. this.Id.startRadius = a
  23626. },
  23627. rN: function() {
  23628. this.Ca !== b.n.$e && b.log("cc.ParticleBatchNode.getStartRadiusVar() : Particle Mode should be Radius");
  23629. return this.Id.startRadiusVar
  23630. },
  23631. wP: function(a) {
  23632. this.Ca !== b.n.$e && b.log("cc.ParticleBatchNode.setStartRadiusVar() : Particle Mode should be Radius");
  23633. this.Id.startRadiusVar = a
  23634. },
  23635. XM: function() {
  23636. this.Ca !== b.n.$e && b.log("cc.ParticleBatchNode.getEndRadius() : Particle Mode should be Radius");
  23637. return this.Id.endRadius
  23638. },
  23639. cP: function(a) {
  23640. this.Ca !== b.n.$e && b.log("cc.ParticleBatchNode.setEndRadius() : Particle Mode should be Radius");
  23641. this.Id.endRadius = a
  23642. },
  23643. YM: function() {
  23644. this.Ca !== b.n.$e && b.log("cc.ParticleBatchNode.getEndRadiusVar() : Particle Mode should be Radius");
  23645. return this.Id.endRadiusVar
  23646. },
  23647. dP: function(a) {
  23648. this.Ca !== b.n.$e && b.log("cc.ParticleBatchNode.setEndRadiusVar() : Particle Mode should be Radius");
  23649. this.Id.endRadiusVar = a
  23650. },
  23651. iN: function() {
  23652. this.Ca !== b.n.$e && b.log("cc.ParticleBatchNode.getRotatePerSecond() : Particle Mode should be Radius");
  23653. return this.Id.ay
  23654. },
  23655. rP: function(a) {
  23656. this.Ca !== b.n.$e && b.log("cc.ParticleBatchNode.setRotatePerSecond() : Particle Mode should be Radius");
  23657. this.Id.ay = a
  23658. },
  23659. jN: function() {
  23660. this.Ca !== b.n.$e && b.log("cc.ParticleBatchNode.getRotatePerSecondVar() : Particle Mode should be Radius");
  23661. return this.Id.by
  23662. },
  23663. sP: function(a) {
  23664. this.Ca !== b.n.$e && b.log("cc.ParticleBatchNode.setRotatePerSecondVar() : Particle Mode should be Radius");
  23665. this.Id.by = a
  23666. },
  23667. Li: function(a, c) {
  23668. this.mm = !0;
  23669. b.k.prototype.Li.call(this, a, c)
  23670. },
  23671. $F: function(a) {
  23672. this.mm = !0;
  23673. b.k.prototype.$F.call(this, a)
  23674. },
  23675. bt: function(a) {
  23676. this.mm = !0;
  23677. b.k.prototype.bt.call(this, a)
  23678. },
  23679. ct: function(a) {
  23680. this.mm = !0;
  23681. b.k.prototype.ct.call(this, a)
  23682. },
  23683. Yca: function() {
  23684. return this.Ap
  23685. },
  23686. Ug: function(a) {
  23687. this.Ap = a
  23688. },
  23689. Zca: function() {
  23690. return this.Bp
  23691. },
  23692. Vg: function(a) {
  23693. this.Bp = a
  23694. },
  23695. Gba: function() {
  23696. return this.Dm
  23697. },
  23698. Qg: function(a) {
  23699. this.Dm = a
  23700. },
  23701. Hba: function() {
  23702. return this.To
  23703. },
  23704. Z3: function(a) {
  23705. this.To = a
  23706. },
  23707. Vw: function() {
  23708. return b.color(this.vh.r, this.vh.g, this.vh.b, this.vh.a)
  23709. },
  23710. We: function(a) {
  23711. this.vh = b.color(a)
  23712. },
  23713. pN: function() {
  23714. return b.color(this.Ok.r,
  23715. this.Ok.g, this.Ok.b, this.Ok.a)
  23716. },
  23717. eg: function(a) {
  23718. this.Ok = b.color(a)
  23719. },
  23720. Qw: function() {
  23721. return b.color(this.Ge.r, this.Ge.g, this.Ge.b, this.Ge.a)
  23722. },
  23723. Te: function(a) {
  23724. this.Ge = b.color(a)
  23725. },
  23726. WM: function() {
  23727. return b.color(this.rk.r, this.rk.g, this.rk.b, this.rk.a)
  23728. },
  23729. $f: function(a) {
  23730. this.rk = b.color(a)
  23731. },
  23732. $ca: function() {
  23733. return this.Cp
  23734. },
  23735. B4: function(a) {
  23736. this.Cp = a
  23737. },
  23738. ada: function() {
  23739. return this.Dp
  23740. },
  23741. C4: function(a) {
  23742. this.Dp = a
  23743. },
  23744. Iba: function() {
  23745. return this.Uo
  23746. },
  23747. a4: function(a) {
  23748. this.Uo = a
  23749. },
  23750. Jba: function() {
  23751. return this.Vo
  23752. },
  23753. b4: function(a) {
  23754. this.Vo =
  23755. a
  23756. },
  23757. Eba: function() {
  23758. return this.Cm
  23759. },
  23760. Og: function(a) {
  23761. this.Cm = a
  23762. },
  23763. Y0: function() {
  23764. return this.ob
  23765. },
  23766. F4: function(a) {
  23767. if (b.A === b.Ba) this.ob = 200 > a ? a : 200;
  23768. else {
  23769. if (a > this.zu) {
  23770. var c = b.zb.BYTES_PER_ELEMENT;
  23771. this.lb = new Uint16Array(6 * a);
  23772. var d = new ArrayBuffer(a * c),
  23773. e = this.Fk;
  23774. e.length = 0;
  23775. for (var f = this.Dc, g = f.length = 0; g < a; g++) e[g] = new b.ng, f[g] = new b.zb(null, null, null, null, d, g * c);
  23776. this.ob = this.zu = a;
  23777. if (this.V)
  23778. for (c = 0; c < a; c++) e[c].atlasIndex = c;
  23779. this.bd = d;
  23780. this.XE();
  23781. this.em();
  23782. this.G && this.DN(O(0, 0, this.G.width, this.G.height))
  23783. } else this.ob =
  23784. a;
  23785. this.w3()
  23786. }
  23787. },
  23788. za: function() {
  23789. return this.G
  23790. },
  23791. Ya: function(a) {
  23792. a.wc ? this.fG(a, O(0, 0, a.width, a.height)) : (this.ma = !1, a.$d(function(a) {
  23793. this.ma = !0;
  23794. this.fG(a, O(0, 0, a.width, a.height))
  23795. }, this))
  23796. },
  23797. Dh: function() {
  23798. return this.p
  23799. },
  23800. Se: function(a, c) {
  23801. if (void 0 === c) this.p != a && (this.p = a, this.Qf());
  23802. else if (this.p.src != a || this.p.S != c) this.p = {
  23803. src: a,
  23804. S: c
  23805. }, this.Qf()
  23806. },
  23807. Wf: function() {
  23808. return this.Oa
  23809. },
  23810. Ue: function(a) {
  23811. this.Oa = a
  23812. },
  23813. C1: function() {
  23814. return this.p.src == b.SRC_ALPHA && this.p.S == b.ONE || this.p.src == b.ONE && this.p.S == b.ONE
  23815. },
  23816. Nh: function(a) {
  23817. var c =
  23818. this.p;
  23819. a ? (c.src = b.SRC_ALPHA, c.S = b.ONE) : b.A === b.U ? this.G && !this.G.Ai() ? (c.src = b.SRC_ALPHA, c.S = b.ONE_MINUS_SRC_ALPHA) : (c.src = b.dc, c.S = b.cc) : (c.src = b.dc, c.S = b.cc)
  23820. },
  23821. Eca: function() {
  23822. return this.Ji
  23823. },
  23824. qja: function(a) {
  23825. this.Ji = a
  23826. },
  23827. Rda: function() {
  23828. return this.hs
  23829. },
  23830. kia: function(a) {
  23831. this.hs = a
  23832. },
  23833. Fba: function() {
  23834. return this.Ca
  23835. },
  23836. Pg: function(a) {
  23837. this.Ca = a
  23838. },
  23839. da: function() {
  23840. return this.Qb(150)
  23841. },
  23842. bl: function(a) {
  23843. this.iC = a;
  23844. a = b.T.Hd(a);
  23845. return a ? this.p1(a, "") : (b.log("cc.ParticleSystem.initWithFile(): Particles: file not found"), !1)
  23846. },
  23847. T_: function() {
  23848. return O(0, 0, b.Va.width, b.Va.height)
  23849. },
  23850. p1: function(a) {
  23851. var c = !1,
  23852. d = null,
  23853. d = this.TY,
  23854. e = parseInt(d("maxParticles", a));
  23855. if (this.Qb(e)) {
  23856. this.Fg = parseFloat(d("angle", a));
  23857. this.Ko = parseFloat(d("angleVariance", a));
  23858. this.duration = parseFloat(d("duration", a));
  23859. this.p.src = parseInt(d("blendFuncSource", a));
  23860. this.p.S = parseInt(d("blendFuncDestination", a));
  23861. c = this.vh;
  23862. c.r = 255 * parseFloat(d("startColorRed", a));
  23863. c.g = 255 * parseFloat(d("startColorGreen", a));
  23864. c.b = 255 * parseFloat(d("startColorBlue", a));
  23865. c.a = 255 * parseFloat(d("startColorAlpha",
  23866. a));
  23867. c = this.Ok;
  23868. c.r = 255 * parseFloat(d("startColorVarianceRed", a));
  23869. c.g = 255 * parseFloat(d("startColorVarianceGreen", a));
  23870. c.b = 255 * parseFloat(d("startColorVarianceBlue", a));
  23871. c.a = 255 * parseFloat(d("startColorVarianceAlpha", a));
  23872. c = this.Ge;
  23873. c.r = 255 * parseFloat(d("finishColorRed", a));
  23874. c.g = 255 * parseFloat(d("finishColorGreen", a));
  23875. c.b = 255 * parseFloat(d("finishColorBlue", a));
  23876. c.a = 255 * parseFloat(d("finishColorAlpha", a));
  23877. c = this.rk;
  23878. c.r = 255 * parseFloat(d("finishColorVarianceRed", a));
  23879. c.g = 255 * parseFloat(d("finishColorVarianceGreen",
  23880. a));
  23881. c.b = 255 * parseFloat(d("finishColorVarianceBlue", a));
  23882. c.a = 255 * parseFloat(d("finishColorVarianceAlpha", a));
  23883. this.Ap = parseFloat(d("startParticleSize", a));
  23884. this.Bp = parseFloat(d("startParticleSizeVariance", a));
  23885. this.Dm = parseFloat(d("finishParticleSize", a));
  23886. this.To = parseFloat(d("finishParticleSizeVariance", a));
  23887. this.P(parseFloat(d("sourcePositionx", a)), parseFloat(d("sourcePositiony", a)));
  23888. this.Hk.x = parseFloat(d("sourcePositionVariancex", a));
  23889. this.Hk.y = parseFloat(d("sourcePositionVariancey", a));
  23890. this.Cp = parseFloat(d("rotationStart",
  23891. a));
  23892. this.Dp = parseFloat(d("rotationStartVariance", a));
  23893. this.Uo = parseFloat(d("rotationEnd", a));
  23894. this.Vo = parseFloat(d("rotationEndVariance", a));
  23895. this.Ca = parseInt(d("emitterType", a));
  23896. if (this.Ca == b.n.eb) c = this.Rb, c.gravity.x = parseFloat(d("gravityx", a)), c.gravity.y = parseFloat(d("gravityy", a)), c.speed = parseFloat(d("speed", a)), c.speedVar = parseFloat(d("speedVariance", a)), e = d("radialAcceleration", a), c.radialAccel = e ? parseFloat(e) : 0, e = d("radialAccelVariance", a), c.radialAccelVar = e ? parseFloat(e) : 0, e = d("tangentialAcceleration",
  23897. a), c.tangentialAccel = e ? parseFloat(e) : 0, e = d("tangentialAccelVariance", a), c.tangentialAccelVar = e ? parseFloat(e) : 0, e = d("rotationIsDir", a).toLowerCase(), c.rotationIsDir = null != e && ("true" === e || "1" === e);
  23898. else if (this.Ca == b.n.$e) c = this.Id, c.startRadius = parseFloat(d("maxRadius", a)), c.startRadiusVar = parseFloat(d("maxRadiusVariance", a)), c.endRadius = parseFloat(d("minRadius", a)), c.endRadiusVar = 0, c.ay = parseFloat(d("rotatePerSecond", a)), c.by = parseFloat(d("rotatePerSecondVariance", a));
  23899. else return b.log("cc.ParticleSystem.initWithDictionary(): Invalid emitterType in config file"), !1;
  23900. this.Re = parseFloat(d("particleLifespan", a));
  23901. this.lp = parseFloat(d("particleLifespanVariance", a));
  23902. this.Cm = this.ob / this.Re;
  23903. if (!this.V)
  23904. if (this.Oa = !1, c = d("textureFileName", a), c = b.path.Oo(this.iC, c), e = b.Da.Ym(c)) this.Ya(e);
  23905. else if ((a = d("textureImageData", a)) && 0 !== a.length) {
  23906. d = b.UP(a, 1);
  23907. if (!d) return b.log("cc.ParticleSystem: error decoding or ungzipping textureImageData"), !1;
  23908. a = b.o0(d);
  23909. if (a !== b.PG && a !== b.Zy) return b.log("cc.ParticleSystem: unknown image format with Data"), !1;
  23910. e = b.Sb("canvas");
  23911. a === b.Zy ? (new b.oS(d)).v3(e) :
  23912. b.x5.O2(d, e);
  23913. b.Da.AZ(c, e);
  23914. (a = b.Da.Ym(c)) || b.log("cc.ParticleSystem.initWithDictionary() : error loading the texture");
  23915. this.Ya(a)
  23916. } else {
  23917. e = b.Da.Hc(c);
  23918. if (!e) return !1;
  23919. this.Ya(e)
  23920. }
  23921. c = !0
  23922. }
  23923. return c
  23924. },
  23925. Qb: function(a) {
  23926. this.ob = a;
  23927. var c, d = this.Fk;
  23928. for (c = d.length = 0; c < a; c++) d[c] = new b.ng;
  23929. if (!d) return b.log("Particle system: not enough memory"), !1;
  23930. this.zu = a;
  23931. if (this.V)
  23932. for (c = 0; c < this.ob; c++) d[c].atlasIndex = c;
  23933. this.io = !0;
  23934. this.p.src = b.dc;
  23935. this.p.S = b.cc;
  23936. this.Ji = b.n.zq;
  23937. this.Ca = b.n.eb;
  23938. this.mm = this.hs = !1;
  23939. this.UO(1);
  23940. if (b.A === b.U) {
  23941. if (!this.LI()) return !1;
  23942. this.XE();
  23943. this.em();
  23944. this.shaderProgram = b.Md.nc(b.Wi)
  23945. }
  23946. return !0
  23947. },
  23948. N$: function() {
  23949. this.TP()
  23950. },
  23951. ZY: function() {
  23952. if (this.F1()) return !1;
  23953. var a, c = this.Fk;
  23954. b.A === b.Ba ? this.td < c.length ? a = c[this.td] : (a = new b.ng, c.push(a)) : a = c[this.td];
  23955. this.n1(a);
  23956. ++this.td;
  23957. return !0
  23958. },
  23959. n1: function(a) {
  23960. var c = b.i3;
  23961. a.ol = this.Re + this.lp * c();
  23962. a.ol = Math.max(0, a.ol);
  23963. a.Xa.x = this.vo.x + this.Hk.x * c();
  23964. a.Xa.y = this.vo.y + this.Hk.y * c();
  23965. var d, e;
  23966. d = this.vh;
  23967. var f = this.Ok,
  23968. g = this.Ge;
  23969. e = this.rk;
  23970. b.A === b.Ba ? (d = b.color(b.Vc(d.r + f.r * c(), 0, 255), b.Vc(d.g + f.g * c(), 0, 255),
  23971. b.Vc(d.b + f.b * c(), 0, 255), b.Vc(d.a + f.a * c(), 0, 255)), e = b.color(b.Vc(g.r + e.r * c(), 0, 255), b.Vc(g.g + e.g * c(), 0, 255), b.Vc(g.b + e.b * c(), 0, 255), b.Vc(g.a + e.a * c(), 0, 255))) : (d = {
  23972. r: b.Vc(d.r + f.r * c(), 0, 255),
  23973. g: b.Vc(d.g + f.g * c(), 0, 255),
  23974. b: b.Vc(d.b + f.b * c(), 0, 255),
  23975. a: b.Vc(d.a + f.a * c(), 0, 255)
  23976. }, e = {
  23977. r: b.Vc(g.r + e.r * c(), 0, 255),
  23978. g: b.Vc(g.g + e.g * c(), 0, 255),
  23979. b: b.Vc(g.b + e.b * c(), 0, 255),
  23980. a: b.Vc(g.a + e.a * c(), 0, 255)
  23981. });
  23982. a.color = d;
  23983. f = a.ps;
  23984. g = a.ol;
  23985. f.r = (e.r - d.r) / g;
  23986. f.g = (e.g - d.g) / g;
  23987. f.b = (e.b - d.b) / g;
  23988. f.a = (e.a - d.a) / g;
  23989. d = this.Ap + this.Bp * c();
  23990. d = Math.max(0, d);
  23991. a.size = d;
  23992. this.Dm === b.n.og ? a.mE = 0 : (e = this.Dm + this.To * c(), e = Math.max(0, e), a.mE = (e - d) / g);
  23993. d = this.Cp + this.Dp * c();
  23994. e = this.Uo + this.Vo * c();
  23995. a.rotation = d;
  23996. a.DM = (e - d) / g;
  23997. this.Ji == b.n.zq ? a.ty = this.Fw(this.oC) : this.Ji == b.n.dA && (a.ty.x = this.wa.x, a.ty.y = this.wa.y);
  23998. d = b.Sf(this.Fg + this.Ko * c());
  23999. if (this.Ca === b.n.eb) g = this.Rb, e = a.Rb, f = g.speed + g.speedVar * c(), e.dir.x = Math.cos(d), e.dir.y = Math.sin(d), b.rp(e.dir, f), e.radialAccel = g.radialAccel + g.radialAccelVar * c(), e.tangentialAccel = g.tangentialAccel + g.tangentialAccelVar * c(),
  24000. g.rotationIsDir && (a.rotation = -b.FF(b.L2(e.dir)));
  24001. else {
  24002. e = this.Id;
  24003. a = a.Id;
  24004. var f = e.startRadius + e.startRadiusVar * c(),
  24005. h = e.endRadius + e.endRadiusVar * c();
  24006. a.Us = f;
  24007. a.CM = e.endRadius === b.n.PS ? 0 : (h - f) / g;
  24008. a.Fg = d;
  24009. a.zM = b.Sf(e.ay + e.by * c())
  24010. }
  24011. },
  24012. m5: function() {
  24013. this.io = !1;
  24014. this.kb = this.duration;
  24015. this.Ml = 0
  24016. },
  24017. w3: function() {
  24018. this.io = !0;
  24019. this.kb = 0;
  24020. var a = this.Fk;
  24021. for (this.lf = 0; this.lf < this.td; ++this.lf) a[this.lf].ol = 0
  24022. },
  24023. F1: function() {
  24024. return this.td >= this.ob
  24025. },
  24026. J5: function(a, c) {
  24027. var d = null;
  24028. this.V ? (d = this.V.textureAtlas.quads[this.atlasIndex +
  24029. a.atlasIndex], this.V.textureAtlas.dirty = !0) : d = this.Dc[this.lf];
  24030. var e, f, g, h;
  24031. this.Oa ? (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);
  24032. h = 0 | a.color.a;
  24033. var k = d.C.s;
  24034. k.r = e;
  24035. k.g = f;
  24036. k.b = g;
  24037. k.a = h;
  24038. k = d.L.s;
  24039. k.r = e;
  24040. k.g = f;
  24041. k.b = g;
  24042. k.a = h;
  24043. k = d.K.s;
  24044. k.r = e;
  24045. k.g = f;
  24046. k.b = g;
  24047. k.a = h;
  24048. k = d.J.s;
  24049. k.r = e;
  24050. k.g = f;
  24051. k.b = g;
  24052. k.a = h;
  24053. e = a.size / 2;
  24054. if (a.rotation) {
  24055. f = -e;
  24056. g = -e;
  24057. h = c.x;
  24058. var k = c.y,
  24059. m = -b.Sf(a.rotation),
  24060. p = Math.cos(m),
  24061. m = Math.sin(m);
  24062. d.C.f.x = f * p - g * m + h;
  24063. d.C.f.y = f * m + g * p + k;
  24064. d.L.f.x =
  24065. e * p - g * m + h;
  24066. d.L.f.y = e * m + g * p + k;
  24067. d.K.f.x = f * p - e * m + h;
  24068. d.K.f.y = f * m + e * p + k;
  24069. d.J.f.x = e * p - e * m + h;
  24070. d.J.f.y = e * m + e * p + k
  24071. } else d.C.f.x = c.x - e, d.C.f.y = c.y - e, d.L.f.x = c.x + e, d.L.f.y = c.y - e, d.K.f.x = c.x - e, d.K.f.y = c.y + e, d.J.f.x = c.x + e, d.J.f.y = c.y + e
  24072. },
  24073. a3: function() {
  24074. if (b.A === b.U) {
  24075. var a = b.l;
  24076. a.bindBuffer(a.ARRAY_BUFFER, this.vc[0]);
  24077. a.bufferData(a.ARRAY_BUFFER, this.bd, a.DYNAMIC_DRAW)
  24078. }
  24079. },
  24080. update: function(a) {
  24081. if (this.io && this.Cm) {
  24082. var c = 1 / this.Cm;
  24083. this.td < this.ob && (this.Ml += a);
  24084. for (; this.td < this.ob && this.Ml > c;) this.ZY(), this.Ml -= c;
  24085. this.kb += a; - 1 != this.duration && this.duration < this.kb && this.m5()
  24086. }
  24087. this.lf = 0;
  24088. c = b.ng.lu[0];
  24089. this.Ji == b.n.zq ? b.Lj(c, this.Fw(this.oC)) : this.Ji == b.n.dA && (c.x = this.wa.x, c.y = this.wa.y);
  24090. if (this.lc) {
  24091. for (var d = b.ng.lu[1], e = b.ng.lu[2], f = b.ng.lu[3], g = this.Fk; this.lf < this.td;) {
  24092. b.Rx(d);
  24093. b.Rx(e);
  24094. b.Rx(f);
  24095. var h = g[this.lf];
  24096. h.ol -= a;
  24097. if (0 < h.ol) {
  24098. if (this.Ca == b.n.eb) {
  24099. var k = f,
  24100. m = d,
  24101. p = e;
  24102. h.Xa.x || h.Xa.y ? (b.Lj(m, h.Xa), b.J2(m)) : b.Rx(m);
  24103. b.Lj(p, m);
  24104. b.rp(m, h.Rb.radialAccel);
  24105. var r = p.x;
  24106. p.x = -p.y;
  24107. p.y = r;
  24108. b.rp(p, h.Rb.tangentialAccel);
  24109. b.Lj(k, m);
  24110. b.Px(k, p);
  24111. b.Px(k, this.Rb.gravity);
  24112. b.rp(k, a);
  24113. b.Px(h.Rb.dir, k);
  24114. b.Lj(k, h.Rb.dir);
  24115. b.rp(k, a);
  24116. b.Px(h.Xa, k)
  24117. } else k = h.Id, k.Fg += k.zM * a, k.Us += k.CM * a, h.Xa.x = -Math.cos(k.Fg) * k.Us, h.Xa.y = -Math.sin(k.Fg) * k.Us;
  24118. this.gJ && b.A !== b.U || (h.color.r += 0 | h.ps.r * a, h.color.g += 0 | h.ps.g * a, h.color.b += 0 | h.ps.b * a, h.color.a += 0 | h.ps.a * a, h.TN = !0);
  24119. h.size += h.mE * a;
  24120. h.size = Math.max(0, h.size);
  24121. h.rotation += h.DM * a;
  24122. k = d;
  24123. this.Ji == b.n.zq || this.Ji == b.n.dA ? (m = e, b.Lj(m, c), b.wO(m, h.ty), b.Lj(k, h.Xa), b.wO(k, m)) : b.Lj(k, h.Xa);
  24124. this.V && (k.x += this.wa.x, k.y += this.wa.y);
  24125. b.A == b.U ? this.J5(h, k) : b.Lj(h.rs, k);
  24126. ++this.lf
  24127. } else if (h = h.atlasIndex, this.lf !== this.td - 1 && (k = g[this.lf], g[this.lf] = g[this.td - 1], g[this.td - 1] = k), this.V && (this.V.VZ(this.atlasIndex + h), g[this.td - 1].atlasIndex = h), --this.td, 0 == this.td && this.hs) {
  24128. this.TP();
  24129. this.Sc.removeChild(this, !0);
  24130. return
  24131. }
  24132. }
  24133. this.mm = !1
  24134. }
  24135. this.V || this.a3()
  24136. },
  24137. M5: function() {
  24138. this.update(0)
  24139. },
  24140. TY: function(a, c) {
  24141. if (c) {
  24142. var d = c[a];
  24143. return null != d ? d : ""
  24144. }
  24145. return ""
  24146. },
  24147. Qf: function() {
  24148. if (this.V) b.log("Can't change blending functions when the particle is being batched");
  24149. else {
  24150. var a = this.G;
  24151. if (a && a instanceof b.aa) {
  24152. this.Oa = !1;
  24153. var c = this.p;
  24154. c.src == b.dc && c.S == b.cc && (a.Ai() ? this.Oa = !0 : (c.src = b.SRC_ALPHA, c.S = b.ONE_MINUS_SRC_ALPHA))
  24155. }
  24156. }
  24157. },
  24158. j: function() {
  24159. var a = new b.n;
  24160. if (a.Qb(this.ob)) {
  24161. a.Mg(this.Fg);
  24162. a.Ng(this.Ko);
  24163. a.Zf(this.ap());
  24164. var c = this.Dh();
  24165. a.Se(c.src, c.S);
  24166. a.We(this.Vw());
  24167. a.eg(this.pN());
  24168. a.Te(this.Qw());
  24169. a.$f(this.WM());
  24170. a.Ug(this.Ap);
  24171. a.Vg(this.Bp);
  24172. a.Qg(this.Dm);
  24173. a.Z3(this.To);
  24174. a.P(C(this.x, this.y));
  24175. a.Tg(C(this.HE().x, this.HE().y));
  24176. a.B4(this.Cp || 0);
  24177. a.C4(this.Dp || 0);
  24178. a.a4(this.Uo ||
  24179. 0);
  24180. a.b4(this.Vo || 0);
  24181. a.Pg(this.Ca);
  24182. this.Ca == b.n.eb ? (c = this.$M(), a.ag(C(c.x, c.y)), a.Ve(this.Uw()), a.dg(this.nN()), a.bg(this.gN()), a.cg(this.hN()), a.Pj(this.sN()), a.Qj(this.tN())) : this.Ca == b.n.$e && (a.vP(this.qN()), a.wP(this.rN()), a.cP(this.XM()), a.dP(this.YM()), a.rP(this.iN()), a.sP(this.jN()));
  24183. a.Rg(this.Re);
  24184. a.Sg(this.lp);
  24185. a.Og(this.Cm);
  24186. if (!this.V && (a.Ue(this.Wf()), c = this.za())) {
  24187. var d = c.se();
  24188. a.fG(c, O(0, 0, d.width, d.height))
  24189. }
  24190. }
  24191. return a
  24192. },
  24193. V3: function(a) {
  24194. var c = a.D0();
  24195. 0 == c.x && 0 == c.y || b.log("cc.ParticleSystem.setDisplayFrame(): QuadParticle only supports SpriteFrames with no offsets");
  24196. b.A === b.U && (this.G && a.za().Zd == this.G.Zd || this.Ya(a.za()))
  24197. },
  24198. fG: function(a, c) {
  24199. var d = this.G;
  24200. b.A === b.U ? d && a.Zd == d.Zd || d == a || (this.G = a, this.Qf()) : d && a == d || d == a || (this.G = a, this.Qf());
  24201. this.zr = c;
  24202. this.DN(c)
  24203. },
  24204. Y: function(a) {
  24205. this.ma && !this.V && (b.A === b.Ba ? this.Ll(a) : this.aj(a), b.sf++)
  24206. },
  24207. Ll: function(a) {
  24208. a = a || b.l;
  24209. a.save();
  24210. a.globalCompositeOperation = this.C1() ? "lighter" : "source-over";
  24211. for (var c = this.G.Wa, d = 0; d < this.td; d++) {
  24212. var e = this.Fk[d],
  24213. f = 0 | 0.5 * e.size;
  24214. if (this.Jw == b.n.JH) {
  24215. if (c.width && c.height) {
  24216. a.save();
  24217. a.globalAlpha =
  24218. e.color.a / 255;
  24219. a.translate(0 | e.rs.x, -(0 | e.rs.y));
  24220. var f = 4 * Math.floor(e.size / 4),
  24221. g = this.zr.width,
  24222. h = this.zr.height;
  24223. a.scale(Math.max(1 / g * f, 1E-6), Math.max(1 / h * f, 1E-6));
  24224. e.rotation && a.rotate(b.Sf(e.rotation));
  24225. a.translate(-(0 | g / 2), -(0 | h / 2));
  24226. (e = e.TN ? this.ee(c, e.color, this.zr) : c) && a.drawImage(e, 0, 0);
  24227. a.restore()
  24228. }
  24229. } else a.save(), a.globalAlpha = e.color.a / 255, a.translate(0 | e.rs.x, -(0 | e.rs.y)), this.sy == b.n.QS ? (e.rotation && a.rotate(b.Sf(e.rotation)), b.Fe.e_(a, f, e.color)) : b.Fe.YZ(a, f, e.color), a.restore()
  24230. }
  24231. a.restore()
  24232. },
  24233. ee: function(a, c, d) {
  24234. c.r |= 0;
  24235. c.g |= 0;
  24236. c.b |= 0;
  24237. a.Oi || (a.Oi = document.createElement("canvas"), a.Oi.width = a.width, a.Oi.height = a.height);
  24238. return b.Hm(a, c, d, a.Oi)
  24239. },
  24240. aj: function(a) {
  24241. this.G && (a = a || b.l, this.Eb.Oc(), this.Eb.Ye(), b.te(this.G), b.xN(this.p.src, this.p.S), b.Jc(b.El), a.bindBuffer(a.ARRAY_BUFFER, this.vc[0]), a.vertexAttribPointer(b.qb, 3, a.FLOAT, !1, 24, 0), a.vertexAttribPointer(b.Ce, 4, a.UNSIGNED_BYTE, !0, 24, 12), a.vertexAttribPointer(b.zd, 2, a.FLOAT, !1, 24, 16), a.bindBuffer(a.ELEMENT_ARRAY_BUFFER, this.vc[1]), a.drawElements(a.TRIANGLES,
  24242. 6 * this.lf, a.UNSIGNED_SHORT, 0))
  24243. },
  24244. cga: function() {
  24245. b.Uz || this.em()
  24246. },
  24247. C9: function() {},
  24248. em: function() {
  24249. if (b.A != b.Ba) {
  24250. var a = b.l;
  24251. this.vc[0] = a.createBuffer();
  24252. a.bindBuffer(a.ARRAY_BUFFER, this.vc[0]);
  24253. a.bufferData(a.ARRAY_BUFFER, this.bd, a.DYNAMIC_DRAW);
  24254. this.vc[1] = a.createBuffer();
  24255. a.bindBuffer(a.ELEMENT_ARRAY_BUFFER, this.vc[1]);
  24256. a.bufferData(a.ELEMENT_ARRAY_BUFFER, this.lb, a.STATIC_DRAW)
  24257. }
  24258. },
  24259. LI: function() {
  24260. if (b.A === b.Ba) return !0;
  24261. if (this.V) return b.log("cc.ParticleSystem._allocMemory(): Memory should not be allocated when not using batchNode"), !1;
  24262. var a = b.zb.BYTES_PER_ELEMENT,
  24263. c = this.ob,
  24264. d = this.Dc;
  24265. d.length = 0;
  24266. this.lb = new Uint16Array(6 * c);
  24267. for (var e = new ArrayBuffer(a * c), f = 0; f < c; f++) d[f] = new b.zb(null, null, null, null, e, f * a);
  24268. if (!d || !this.lb) return b.log("cocos2d: Particle system: not enough memory"), !1;
  24269. this.bd = e;
  24270. return !0
  24271. }
  24272. });
  24273. n = b.n.prototype;
  24274. b.A !== b.Ba || b.hb.hw || (n.ee = function(a, c, d) {
  24275. var e = b.Da.Ww(a);
  24276. return e ? (e.Oi || (e.Oi = document.createElement("canvas"), e.Oi.width = a.width, e.Oi.height = a.height), b.Gm(a, e, c, d, e.Oi), e.Oi) : null
  24277. });
  24278. b.i(n, "opacityModifyRGB", n.Wf, n.Ue);
  24279. b.i(n, "batchNode", n.yE, n.ml);
  24280. b.i(n, "active", n.vf);
  24281. b.i(n, "sourcePos", n.U0, n.z4);
  24282. b.i(n, "posVar", n.HE, n.Tg);
  24283. b.i(n, "gravity", n.$M, n.ag);
  24284. b.i(n, "speed", n.Uw, n.Ve);
  24285. b.i(n, "speedVar", n.nN, n.dg);
  24286. b.i(n, "tangentialAccel", n.sN, n.Pj);
  24287. b.i(n, "tangentialAccelVar", n.tN, n.Qj);
  24288. b.i(n, "radialAccel", n.gN, n.bg);
  24289. b.i(n, "radialAccelVar", n.hN, n.cg);
  24290. b.i(n, "rotationIsDir", n.M0, n.u4);
  24291. b.i(n, "startRadius", n.qN, n.vP);
  24292. b.i(n, "startRadiusVar", n.rN, n.wP);
  24293. b.i(n, "endRadius", n.XM, n.cP);
  24294. b.i(n, "endRadiusVar", n.YM, n.dP);
  24295. b.i(n, "rotatePerS", n.iN, n.rP);
  24296. b.i(n, "rotatePerSVar", n.jN, n.sP);
  24297. b.i(n, "startColor", n.Vw, n.We);
  24298. b.i(n, "startColorVar", n.pN, n.eg);
  24299. b.i(n, "endColor", n.Qw, n.Te);
  24300. b.i(n, "endColorVar", n.WM, n.$f);
  24301. b.i(n, "totalParticles", n.Y0, n.F4);
  24302. b.i(n, "texture", n.za, n.Ya);
  24303. b.n.create = function(a) {
  24304. return new b.n(a)
  24305. };
  24306. b.n.H$ = b.n.create;
  24307. b.n.nz = function(a, c, d, e, f, g, h, k) {
  24308. this.gravity = a ? a : C(0, 0);
  24309. this.speed = c || 0;
  24310. this.speedVar = d || 0;
  24311. this.tangentialAccel = e || 0;
  24312. this.tangentialAccelVar = f || 0;
  24313. this.radialAccel = g || 0;
  24314. this.radialAccelVar = h || 0;
  24315. this.rotationIsDir = k || !1
  24316. };
  24317. b.n.oz = function(a, c, d, e, f, g) {
  24318. this.startRadius = a || 0;
  24319. this.startRadiusVar = c || 0;
  24320. this.endRadius = d || 0;
  24321. this.endRadiusVar = e || 0;
  24322. this.ay = f || 0;
  24323. this.by = g || 0
  24324. };
  24325. b.n.OS = 0;
  24326. b.n.JH = 1;
  24327. b.n.QS = 0;
  24328. b.n.iQ = 1;
  24329. b.n.Qh = -1;
  24330. b.n.og = -1;
  24331. b.n.PS = -1;
  24332. b.n.eb = 0;
  24333. b.n.$e = 1;
  24334. b.n.zq = 0;
  24335. b.n.dA = 1;
  24336. b.n.x8 = 2;
  24337. b.nH = b.n.extend({
  24338. ctor: function() {
  24339. b.n.prototype.ctor.call(this, b.A === b.U ? 300 : 150)
  24340. },
  24341. Qb: function(a) {
  24342. return b.n.prototype.Qb.call(this, a) ? (this.Zf(b.n.Qh), this.Pg(b.n.eb), this.ag(C(0, 0)), this.bg(0), this.cg(0), this.Ve(60), this.dg(20), this.Mg(90), this.Ng(10), this.P(b.I.Aa().width / 2, 60), this.Tg(C(40, 20)), this.Rg(3), this.Sg(0.25), this.Ug(54), this.Vg(10), this.Qg(b.n.og), this.Og(this.ob / this.Re), this.We(b.color(194, 64, 31, 255)), this.eg(b.color(0, 0, 0, 0)), this.Te(b.color(0, 0, 0, 255)), this.$f(b.color(0, 0, 0, 0)),
  24343. this.Nh(!0), !0) : !1
  24344. }
  24345. });
  24346. b.nH.create = function() {
  24347. return new b.nH
  24348. };
  24349. b.oH = b.n.extend({
  24350. ctor: function() {
  24351. b.n.prototype.ctor.call(this, b.A === b.U ? 1500 : 150)
  24352. },
  24353. Qb: function(a) {
  24354. return b.n.prototype.Qb.call(this, a) ? (this.Zf(b.n.Qh), this.Pg(b.n.eb), this.ag(C(0, -90)), this.bg(0), this.cg(0), this.Ve(180), this.dg(50), a = b.I.Aa(), this.P(a.width / 2, a.height / 2), this.Mg(90), this.Ng(20), this.Rg(3.5), this.Sg(1), this.Og(this.ob / this.Re), this.We(b.color(128, 128, 128, 255)), this.eg(b.color(128, 128, 128, 255)), this.Te(b.color(26, 26, 26, 51)), this.$f(b.color(26, 26, 26, 51)), this.Ug(8), this.Vg(2), this.Qg(b.n.og),
  24355. this.Nh(!1), !0) : !1
  24356. }
  24357. });
  24358. b.oH.create = function() {
  24359. return new b.oH
  24360. };
  24361. b.wH = b.n.extend({
  24362. ctor: function() {
  24363. b.n.prototype.ctor.call(this, b.A === b.U ? 350 : 150)
  24364. },
  24365. Qb: function(a) {
  24366. return b.n.prototype.Qb.call(this, a) ? (this.Nh(!0), this.Zf(b.n.Qh), this.Pg(b.n.eb), this.ag(C(0, 0)), this.bg(0), this.cg(0), this.Ve(20), this.dg(5), this.Mg(90), this.Ng(360), a = b.I.Aa(), this.P(a.width / 2, a.height / 2), this.Tg(C(0, 0)), this.Rg(1), this.Sg(0.5), this.Ug(30), this.Vg(10), this.Qg(b.n.og), this.Og(this.ob / this.Re), this.We(b.color(194, 64, 31, 255)), this.eg(b.color(0, 0, 0, 0)), this.Te(b.color(0, 0, 0, 255)), this.$f(b.color(0,
  24367. 0, 0, 0)), !0) : !1
  24368. }
  24369. });
  24370. b.wH.create = function() {
  24371. return new b.wH
  24372. };
  24373. b.qH = b.n.extend({
  24374. ctor: function() {
  24375. b.n.prototype.ctor.call(this, b.A === b.U ? 200 : 100)
  24376. },
  24377. Qb: function(a) {
  24378. return b.n.prototype.Qb.call(this, a) ? (this.Zf(b.n.Qh), this.Pg(b.n.eb), this.ag(C(0, 0)), this.Ve(60), this.dg(10), this.bg(-80), this.cg(0), this.Pj(80), this.Qj(0), this.Mg(90), this.Ng(360), a = b.I.Aa(), this.P(a.width / 2, a.height / 2), this.Tg(C(0, 0)), this.Rg(4), this.Sg(1), this.Ug(37), this.Vg(10), this.Qg(b.n.og), this.Og(this.ob / this.Re), this.We(b.color(31, 64, 194, 255)), this.eg(b.color(0, 0, 0, 0)), this.Te(b.color(0, 0, 0,
  24379. 255)), this.$f(b.color(0, 0, 0, 0)), this.Nh(!0), !0) : !1
  24380. }
  24381. });
  24382. b.qH.create = function() {
  24383. return new b.qH
  24384. };
  24385. b.pH = b.n.extend({
  24386. ctor: function() {
  24387. b.n.prototype.ctor.call(this, b.A === b.U ? 250 : 100)
  24388. },
  24389. Qb: function(a) {
  24390. return b.n.prototype.Qb.call(this, a) ? (this.Zf(b.n.Qh), this.Pg(b.n.eb), this.ag(C(0, 0)), this.Ve(80), this.dg(10), this.bg(-60), this.cg(0), this.Pj(15), this.Qj(0), this.Mg(90), this.Ng(360), a = b.I.Aa(), this.P(a.width / 2, a.height / 2), this.Tg(C(0, 0)), this.Rg(4), this.Sg(1), this.Ug(30), this.Vg(10), this.Qg(b.n.og), this.Og(this.ob / this.Re), this.We(b.color(128, 128, 128, 255)), this.eg(b.color(128, 128, 128, 128)), this.Te(b.color(0,
  24391. 0, 0, 255)), this.$f(b.color(0, 0, 0, 0)), this.Nh(!0), !0) : !1
  24392. }
  24393. });
  24394. b.pH.create = function() {
  24395. return new b.pH
  24396. };
  24397. b.rH = b.n.extend({
  24398. ctor: function() {
  24399. b.n.prototype.ctor.call(this, b.A === b.U ? 150 : 100)
  24400. },
  24401. Qb: function(a) {
  24402. return b.n.prototype.Qb.call(this, a) ? (this.Zf(b.n.Qh), this.Pg(b.n.eb), this.ag(C(-200, 200)), this.Ve(15), this.dg(5), this.bg(0), this.cg(0), this.Pj(0), this.Qj(0), this.Mg(90), this.Ng(360), a = b.I.Aa(), this.P(a.width / 2, a.height / 2), this.Tg(C(0, 0)), this.Rg(2), this.Sg(1), this.Ug(60), this.Vg(10), this.Qg(b.n.og), this.Og(this.ob / this.Re), this.We(b.color(51, 102, 179)), this.eg(b.color(0, 0, 51, 26)), this.Te(b.color(0, 0, 0,
  24403. 255)), this.$f(b.color(0, 0, 0, 0)), this.Nh(!0), !0) : !1
  24404. }
  24405. });
  24406. b.rH.create = function() {
  24407. return new b.rH
  24408. };
  24409. b.vH = b.n.extend({
  24410. ctor: function() {
  24411. b.n.prototype.ctor.call(this, b.A === b.U ? 500 : 100)
  24412. },
  24413. Qb: function(a) {
  24414. return b.n.prototype.Qb.call(this, a) ? (this.Zf(b.n.Qh), this.Pg(b.n.eb), this.ag(C(0, 0)), this.Ve(150), this.dg(0), this.bg(-380), this.cg(0), this.Pj(45), this.Qj(0), this.Mg(90), this.Ng(0), a = b.I.Aa(), this.P(a.width / 2, a.height / 2), this.Tg(C(0, 0)), this.Rg(12), this.Sg(0), this.Ug(20), this.Vg(0), this.Qg(b.n.og), this.Og(this.ob / this.Re), this.We(b.color(128, 128, 128, 255)), this.eg(b.color(128, 128, 128, 0)), this.Te(b.color(128,
  24415. 128, 128, 255)), this.$f(b.color(128, 128, 128, 0)), this.Nh(!1), !0) : !1
  24416. }
  24417. });
  24418. b.vH.create = function() {
  24419. return new b.vH
  24420. };
  24421. b.mH = b.n.extend({
  24422. ctor: function() {
  24423. b.n.prototype.ctor.call(this, b.A === b.U ? 700 : 300)
  24424. },
  24425. Qb: function(a) {
  24426. return b.n.prototype.Qb.call(this, a) ? (this.Zf(0.1), this.Pg(b.n.eb), this.ag(C(0, 0)), this.Ve(70), this.dg(40), this.bg(0), this.cg(0), this.Pj(0), this.Qj(0), this.Mg(90), this.Ng(360), a = b.I.Aa(), this.P(a.width / 2, a.height / 2), this.Tg(C(0, 0)), this.Rg(5), this.Sg(2), this.Ug(15), this.Vg(10), this.Qg(b.n.og), this.Og(this.ob / this.ap()), this.We(b.color(179, 26, 51, 255)), this.eg(b.color(128, 128, 128, 0)), this.Te(b.color(128,
  24427. 128, 128, 0)), this.$f(b.color(128, 128, 128, 0)), this.Nh(!1), !0) : !1
  24428. }
  24429. });
  24430. b.mH.create = function() {
  24431. return new b.mH
  24432. };
  24433. b.tH = b.n.extend({
  24434. ctor: function() {
  24435. b.n.prototype.ctor.call(this, b.A === b.U ? 200 : 100)
  24436. },
  24437. Qb: function(a) {
  24438. return b.n.prototype.Qb.call(this, a) ? (this.Zf(b.n.Qh), this.Pg(b.n.eb), this.ag(C(0, 0)), this.bg(0), this.cg(0), this.Ve(25), this.dg(10), this.Mg(90), this.Ng(5), this.P(b.I.Aa().width / 2, 0), this.Tg(C(20, 0)), this.Rg(4), this.Sg(1), this.Ug(60), this.Vg(10), this.Qg(b.n.og), this.Og(this.ob / this.Re), this.We(b.color(204, 204, 204, 255)), this.eg(b.color(5, 5, 5, 0)), this.Te(b.color(0, 0, 0, 255)), this.$f(b.color(0, 0, 0, 0)), this.Nh(!1), !0) : !1
  24439. }
  24440. });
  24441. b.tH.create = function() {
  24442. return new b.tH
  24443. };
  24444. b.uH = b.n.extend({
  24445. ctor: function() {
  24446. b.n.prototype.ctor.call(this, b.A === b.U ? 700 : 250)
  24447. },
  24448. Qb: function(a) {
  24449. return b.n.prototype.Qb.call(this, a) ? (this.Zf(b.n.Qh), this.Pg(b.n.eb), this.ag(C(0, -1)), this.Ve(5), this.dg(1), this.bg(0), this.cg(1), this.Pj(0), this.Qj(1), a = b.I.Aa(), this.P(a.width / 2, a.height + 10), this.Tg(C(a.width / 2, 0)), this.Mg(-90), this.Ng(5), this.Rg(45), this.Sg(15), this.Ug(10), this.Vg(5), this.Qg(b.n.og), this.Og(10), this.We(b.color(255, 255, 255, 255)), this.eg(b.color(0, 0, 0, 0)), this.Te(b.color(255, 255, 255,
  24450. 0)), this.$f(b.color(0, 0, 0, 0)), this.Nh(!1), !0) : !1
  24451. }
  24452. });
  24453. b.uH.create = function() {
  24454. return new b.uH
  24455. };
  24456. b.sH = b.n.extend({
  24457. ctor: function() {
  24458. b.n.prototype.ctor.call(this, b.A === b.U ? 1E3 : 300)
  24459. },
  24460. Qb: function(a) {
  24461. return b.n.prototype.Qb.call(this, a) ? (this.Zf(b.n.Qh), this.Pg(b.n.eb), this.ag(C(10, -10)), this.bg(0), this.cg(1), this.Pj(0), this.Qj(1), this.Ve(130), this.dg(30), this.Mg(-90), this.Ng(5), a = b.I.Aa(), this.P(a.width / 2, a.height), this.Tg(C(a.width / 2, 0)), this.Rg(4.5), this.Sg(0), this.Ug(4), this.Vg(2), this.Qg(b.n.og), this.Og(20), this.We(b.color(179, 204, 255, 255)), this.eg(b.color(0, 0, 0, 0)), this.Te(b.color(179, 204, 255,
  24462. 128)), this.$f(b.color(0, 0, 0, 0)), this.Nh(!1), !0) : !1
  24463. }
  24464. });
  24465. b.sH.create = function() {
  24466. return new b.sH
  24467. };
  24468. b.V7 = 500;
  24469. b.tz = b.k.extend({
  24470. textureAtlas: null,
  24471. B8: !0,
  24472. p: null,
  24473. vb: "ParticleBatchNode",
  24474. ctor: function(a, c) {
  24475. b.k.prototype.ctor.call(this);
  24476. this.p = {
  24477. src: b.dc,
  24478. S: b.cc
  24479. };
  24480. "string" == typeof a ? this.da(a, c) : a instanceof b.aa && this.qa(a, c)
  24481. },
  24482. qa: function(a, c) {
  24483. this.textureAtlas = new b.Vh;
  24484. this.textureAtlas.qa(a, c);
  24485. this.t.length = 0;
  24486. b.A === b.U && (this.shaderProgram = b.Md.nc(b.Wi));
  24487. return !0
  24488. },
  24489. bl: function(a, c) {
  24490. var d = b.Da.Hc(a);
  24491. return this.qa(d, c)
  24492. },
  24493. da: function(a, c) {
  24494. var d = b.A8.Xba().Hc(a);
  24495. return this.qa(d, c)
  24496. },
  24497. X: function(a, c, d) {
  24498. if (!a) throw "cc.ParticleBatchNode.addChild() : child should be non-null";
  24499. if (!(a instanceof b.n)) throw "cc.ParticleBatchNode.addChild() : only supports cc.ParticleSystem as children";
  24500. c = null == c ? a.zIndex : c;
  24501. d = null == d ? a.tag : d;
  24502. if (a.za() != this.textureAtlas.texture) throw "cc.ParticleSystem.addChild() : the child is not using the same texture id";
  24503. var e = a.Dh();
  24504. if (0 === this.t.length) this.Se(e);
  24505. else if (e.src != this.p.src || e.S != this.p.S) {
  24506. b.log("cc.ParticleSystem.addChild() : Can't add a ParticleSystem that uses a different blending function");
  24507. return
  24508. }
  24509. c = this.JU(a, c, d);
  24510. d = 0;
  24511. 0 != c ? (c = this.t[c - 1], d = c.$o() + c.ob) :
  24512. d = 0;
  24513. this.eF(a, d);
  24514. a.ml(this)
  24515. },
  24516. eF: function(a, c) {
  24517. var d = a.ob,
  24518. e = this.textureAtlas,
  24519. f = e.totalQuads;
  24520. a.QF(c);
  24521. f + d > e.Ad && (this.zW(f + d), e.NM(e.Ad - d, d));
  24522. a.$o() + d != f && e.mO(c, c + d);
  24523. e.CN(d);
  24524. this.xD()
  24525. },
  24526. removeChild: function(a, c) {
  24527. if (null != a) {
  24528. if (!(a instanceof b.n)) throw "cc.ParticleBatchNode.removeChild(): only supports cc.ParticleSystem as children";
  24529. if (-1 == this.t.indexOf(a)) b.log("cc.ParticleBatchNode.removeChild(): doesn't contain the sprite. Can't remove it");
  24530. else {
  24531. b.k.prototype.removeChild.call(this, a, c);
  24532. var d = this.textureAtlas;
  24533. d.s3(a.$o(), a.ob);
  24534. d.NM(d.totalQuads, a.ob);
  24535. a.ml(null);
  24536. this.xD()
  24537. }
  24538. }
  24539. },
  24540. vp: function(a, c) {
  24541. if (!a) throw "cc.ParticleBatchNode.reorderChild(): child should be non-null";
  24542. if (!(a instanceof b.n)) throw "cc.ParticleBatchNode.reorderChild(): only supports cc.QuadParticleSystems as children";
  24543. if (-1 === this.t.indexOf(a)) b.log("cc.ParticleBatchNode.reorderChild(): Child doesn't belong to batch");
  24544. else if (c != a.zIndex) {
  24545. if (1 < this.t.length) {
  24546. var d = this.WV(a, c);
  24547. if (d.oO != d.nO) {
  24548. this.t.splice(d.oO, 1);
  24549. this.t.splice(d.nO, 0, a);
  24550. d = a.$o();
  24551. this.xD();
  24552. for (var e = 0, f = this.t, g = 0; g < f.length; g++)
  24553. if (f[g] == a) {
  24554. e = a.$o();
  24555. break
  24556. }
  24557. this.textureAtlas.mO(d, a.ob, e);
  24558. a.M5()
  24559. }
  24560. }
  24561. a.Vv(c)
  24562. }
  24563. },
  24564. o3: function(a, c) {
  24565. this.removeChild(this.t[Q], c)
  24566. },
  24567. Lg: function(a) {
  24568. for (var c = this.t, d = 0; d < c.length; d++) c[d].ml(null);
  24569. b.k.prototype.Lg.call(this, a);
  24570. this.textureAtlas.IO()
  24571. },
  24572. VZ: function(a) {
  24573. a = this.textureAtlas.quads[a];
  24574. a.L.f.x = a.L.f.y = a.J.f.x = a.J.f.y = a.K.f.x = a.K.f.y = a.C.f.x = a.C.f.y = 0;
  24575. this.textureAtlas.Lk(!0)
  24576. },
  24577. Y: function() {
  24578. b.A !== b.Ba && 0 != this.textureAtlas.totalQuads && (b.Js(this), b.xN(this.p.src,
  24579. this.p.S), this.textureAtlas.IM())
  24580. },
  24581. za: function() {
  24582. return this.textureAtlas.texture
  24583. },
  24584. Ya: function(a) {
  24585. this.textureAtlas.texture = a;
  24586. var c = this.p;
  24587. a && !a.Ai() && c.src == b.dc && c.S == b.cc && (c.src = b.SRC_ALPHA, c.S = b.ONE_MINUS_SRC_ALPHA)
  24588. },
  24589. Se: function(a, c) {
  24590. void 0 === c ? (this.p.src = a.src, this.p.S = a.S) : (this.p.src = a, this.p.src = c)
  24591. },
  24592. Dh: function() {
  24593. return {
  24594. src: this.p.src,
  24595. S: this.p.S
  24596. }
  24597. },
  24598. R: function(a) {
  24599. b.A !== b.Ba && this.lc && (b.Fj(), this.grid && this.grid.vf() && (this.grid.is(), this.xy()), this.transform(a), this.Y(a), this.grid && this.grid.vf() &&
  24600. this.grid.fs(this), b.Ej())
  24601. },
  24602. xD: function() {
  24603. for (var a = 0, c = this.t, d = 0; d < c.length; d++) {
  24604. var e = c[d];
  24605. e.QF(a);
  24606. a += e.ob
  24607. }
  24608. },
  24609. zW: function(a) {
  24610. b.log("cocos2d: cc.ParticleBatchNode: resizing TextureAtlas capacity from [" + this.textureAtlas.Ad + "] to [" + a + "].");
  24611. this.textureAtlas.JF(a) || b.log("cc.ParticleBatchNode._increaseAtlasCapacityTo() : WARNING: Not enough memory to resize the atlas")
  24612. },
  24613. JX: function(a) {
  24614. for (var c = this.t, d = c.length, e = 0; e < d; e++)
  24615. if (c[e].zIndex > a) return e;
  24616. return d
  24617. },
  24618. WV: function(a, c) {
  24619. for (var d = !1, e = !1, f =
  24620. 0, g = 0, h = 0, k = this.t, m = k.length, p = 0; p < m; p++) {
  24621. var r = k[p];
  24622. if (r.zIndex > c && !e && (f = p, e = !0, d && e)) break;
  24623. if (a == r && (g = p, d = !0, e || (h = -1), d && e)) break
  24624. }
  24625. e || (f = m);
  24626. return {
  24627. nO: f + h,
  24628. oO: g
  24629. }
  24630. },
  24631. JU: function(a, c, d) {
  24632. if (!a) throw "cc.ParticleBatchNode._addChildHelper(): child should be non-null";
  24633. if (a.parent) return b.log("cc.ParticleBatchNode._addChildHelper(): child already added. It can't be added again"), null;
  24634. this.t || (this.t = []);
  24635. var e = this.JX(c);
  24636. this.t.splice(e, 0, a);
  24637. a.tag = d;
  24638. a.Vv(c);
  24639. a.parent = this;
  24640. this.qh && (a.Z(), a.Mh());
  24641. return e
  24642. },
  24643. Qf: function() {
  24644. this.textureAtlas.texture.Ai() || (this.p.src = b.SRC_ALPHA, this.p.S = b.ONE_MINUS_SRC_ALPHA)
  24645. },
  24646. ME: function() {
  24647. return this.textureAtlas
  24648. },
  24649. eG: function(a) {
  24650. this.textureAtlas = a
  24651. }
  24652. });
  24653. n = b.tz.prototype;
  24654. b.i(n, "texture", n.za, n.Ya);
  24655. b.tz.create = function(a, c) {
  24656. return new b.tz(a, c)
  24657. };
  24658. b.j7 = function(a, c, d) {
  24659. this.Ah = a || O(0, 0, 0, 0);
  24660. this.end = c || O(0, 0, 0, 0);
  24661. this.duration = d || 0
  24662. };
  24663. b.i7 = b.oa.extend({
  24664. ctor: function() {
  24665. b.Bi.VL(this)
  24666. },
  24667. Xx: function() {
  24668. b.Bi.Xx(this)
  24669. },
  24670. rZ: function() {
  24671. return b.Bi.bM(this)
  24672. },
  24673. FM: function() {
  24674. return b.Bi.EM(this)
  24675. },
  24676. ZD: function() {
  24677. return !1
  24678. },
  24679. TZ: function() {},
  24680. $D: function() {
  24681. return !1
  24682. },
  24683. UZ: function() {},
  24684. QN: function() {},
  24685. BM: function() {},
  24686. zE: function() {
  24687. return ""
  24688. },
  24689. X1: function() {},
  24690. V1: function() {},
  24691. W1: function() {},
  24692. U1: function() {}
  24693. });
  24694. b.fz = b.oa.extend({
  24695. ic: null,
  24696. Ra: null,
  24697. $i: "",
  24698. Sl: null,
  24699. ctor: function() {
  24700. this.Ra = new b.fz.rR;
  24701. this.Sl = C(0, 0)
  24702. },
  24703. da: function() {
  24704. if (!b.hb.Jh) {
  24705. this.ic = b.ub("#imeDispatcherInput");
  24706. this.ic || (this.ic = b.cQ(), this.ic.setAttribute("type", "text"), this.ic.setAttribute("id", "imeDispatcherInput"), this.ic.resize(0, 0), this.ic.PP(0, 0), this.ic.style.opacity = "0", this.ic.style.fontSize = "1px", this.ic.setAttribute("tabindex", 2), this.ic.style.position = "absolute", this.ic.style.top = 0, this.ic.style.left = 0, document.body.appendChild(this.ic));
  24707. var a = this;
  24708. b.Ga(this.ic, "input", function() {
  24709. a.vC(a.ic.value)
  24710. }, !1);
  24711. b.Ga(this.ic, "keydown", function(c) {
  24712. c.keyCode === b.iq.o5 ? (c.stopPropagation(), c.preventDefault()) : c.keyCode == b.iq.LM && (a.qs("\n", 1), c.stopPropagation(), c.preventDefault())
  24713. }, !1);
  24714. /msie/i.test(navigator.userAgent) && b.Ga(this.ic, "keyup", function(c) {
  24715. c.keyCode == b.iq.dM && a.vC(a.ic.value)
  24716. }, !1);
  24717. b.Ga(window, "mousedown", function(c) {
  24718. var d = c.pageY || 0;
  24719. a.Sl.x = c.pageX || 0;
  24720. a.Sl.y = d
  24721. }, !1)
  24722. }
  24723. },
  24724. vC: function(a) {
  24725. var c, d;
  24726. c = this.$i.length < a.length ? this.$i.length :
  24727. a.length;
  24728. for (d = 0; d < c && a[d] === this.$i[d]; d++);
  24729. var e = this.$i.length - d,
  24730. f = a.length - d;
  24731. for (c = 0; c < e; c++) this.GM();
  24732. for (c = 0; c < f; c++) this.qs(a[d + c], 1);
  24733. this.$i = a
  24734. },
  24735. qs: function(a, c) {
  24736. !this.Ra || !a || 0 >= c || this.Ra.ge && this.Ra.ge.QN(a, c)
  24737. },
  24738. GM: function() {
  24739. this.Ra && this.Ra.ge && this.Ra.ge.BM()
  24740. },
  24741. zE: function() {
  24742. if (this.Ra && this.Ra.ge) {
  24743. var a = this.Ra.ge.zE();
  24744. return a ? a : ""
  24745. }
  24746. return ""
  24747. },
  24748. W$: function() {
  24749. if (this.Ra)
  24750. for (var a = 0; a < this.Ra.ug.length; a++);
  24751. },
  24752. U$: function() {
  24753. if (this.Ra)
  24754. for (var a = 0; a < this.Ra.ug.length; a++);
  24755. },
  24756. V$: function() {
  24757. if (this.Ra)
  24758. for (var a =
  24759. 0; a < this.Ra.ug.length; a++);
  24760. },
  24761. T$: function() {
  24762. if (this.Ra)
  24763. for (var a = 0; a < this.Ra.ug.length; a++);
  24764. },
  24765. VL: function(a) {
  24766. a && this.Ra && (-1 < this.Ra.ug.indexOf(a) || this.Ra.ug.splice(0, 0, a))
  24767. },
  24768. bM: function(a) {
  24769. if (!this.Ra || !a || -1 == this.Ra.ug.indexOf(a)) return !1;
  24770. if (this.Ra.ge) {
  24771. if (!this.Ra.ge.$D() || !a.ZD()) return !1;
  24772. this.Ra.ge = null;
  24773. this.SJ(a);
  24774. return !0
  24775. }
  24776. if (!a.ZD()) return !1;
  24777. this.SJ(a);
  24778. return !0
  24779. },
  24780. SJ: function(a) {
  24781. b.hb.Jh ? (this.Ra.ge = a, this.$i = a.string || "", a = prompt("please enter your word:", this.$i), null != a && this.vC(a), this.qs("\n",
  24782. 1)) : (this.Ra.ge = a, this.$i = a.string || "", this.ic.focus(), this.ic.value = this.$i, this.zV())
  24783. },
  24784. zV: function() {
  24785. /msie/i.test(navigator.userAgent) ? (this.ic.style.left = this.Sl.x + "px", this.ic.style.top = this.Sl.y + "px") : this.ic.PP(this.Sl.x, this.Sl.y)
  24786. },
  24787. EM: function(a) {
  24788. if (!this.Ra || !a || this.Ra.ge != a || !a.$D()) return !1;
  24789. this.Ra.ge = null;
  24790. b.Va.focus();
  24791. return !0
  24792. },
  24793. Xx: function(a) {
  24794. this.Ra && a && -1 != this.Ra.ug.indexOf(a) && (this.Ra.ge && a == this.Ra.ge && (this.Ra.ge = null), b.Pe(this.Ra.ug, a))
  24795. },
  24796. iha: function(a) {
  24797. 32 > a ? a == b.iq.dM ? this.GM() :
  24798. a == b.iq.LM && this.qs("\n", 1) : 255 > a && this.qs(String.fromCharCode(a), 1)
  24799. }
  24800. });
  24801. b.fz.rR = b.oa.extend({
  24802. ge: null,
  24803. ug: null,
  24804. ctor: function() {
  24805. this.ug = []
  24806. },
  24807. Taa: function(a) {
  24808. for (var c = 0; c < this.ug.length; c++)
  24809. if (this.ug[c] == a) return c;
  24810. return null
  24811. }
  24812. });
  24813. b.Bi = new b.fz;
  24814. document.body ? b.Bi.da() : b.Ga(window, "load", function() {
  24815. b.Bi.da()
  24816. }, !1);
  24817. b.z8 = b.oa.extend({
  24818. Ega: function() {
  24819. return !1
  24820. },
  24821. Gga: function() {
  24822. return !1
  24823. },
  24824. Hga: function() {
  24825. return !1
  24826. },
  24827. Fga: function() {
  24828. return !1
  24829. },
  24830. Cga: function() {
  24831. return !1
  24832. }
  24833. });
  24834. b.fA = b.M.extend({
  24835. AM: null,
  24836. Ew: null,
  24837. p9: null,
  24838. Jf: "",
  24839. Yl: "",
  24840. Iu: 0,
  24841. vb: "TextFieldTTF",
  24842. ctor: function(a, c, d, e, f) {
  24843. this.Ew = b.color(127, 127, 127);
  24844. b.Bi.VL(this);
  24845. b.M.prototype.ctor.call(this);
  24846. void 0 !== f ? (this.u1("", c, d, e, f), a && this.at(a)) : void 0 === e && void 0 !== d && (this.sd("", c, d), a && this.at(a))
  24847. },
  24848. $_: function() {
  24849. return this.AM
  24850. },
  24851. T3: function(a) {
  24852. this.AM = a
  24853. },
  24854. U_: function() {
  24855. return this.Iu
  24856. },
  24857. pba: function() {
  24858. return this.Ew
  24859. },
  24860. tia: function(a) {
  24861. this.Ew = a
  24862. },
  24863. u1: function(a, c, d, e, f) {
  24864. switch (arguments.length) {
  24865. case 5:
  24866. return a && this.at(a), this.sd(this.Yl,
  24867. e, f, c, d);
  24868. case 3:
  24869. return a && this.at(a), this.sd(this.Yl, arguments[1], arguments[2]);
  24870. default:
  24871. throw "Argument must be non-nil ";
  24872. }
  24873. },
  24874. Kb: function(a) {
  24875. this.Jf = (a = String(a)) || "";
  24876. this.Jf.length ? b.M.prototype.Kb.call(this, this.Jf) : b.M.prototype.Kb.call(this, this.Yl);
  24877. this.Iu = this.Jf.length
  24878. },
  24879. al: function() {
  24880. return this.Jf
  24881. },
  24882. at: function(a) {
  24883. this.Yl = a || "";
  24884. this.Jf.length || b.M.prototype.Kb.call(this, this.Yl)
  24885. },
  24886. H0: function() {
  24887. return this.Yl
  24888. },
  24889. Y: function(a) {
  24890. a = a || b.l;
  24891. if (this.Jf && 0 < this.Jf.length) b.M.prototype.Y.call(this, a);
  24892. else {
  24893. var c =
  24894. this.color;
  24895. this.color = this.Ew;
  24896. b.A === b.Ba && this.uw();
  24897. b.M.prototype.Y.call(this, a);
  24898. this.color = c
  24899. }
  24900. },
  24901. R: function(a) {
  24902. this._super(a)
  24903. },
  24904. rZ: function() {
  24905. return b.Bi.bM(this)
  24906. },
  24907. FM: function() {
  24908. return b.Bi.EM(this)
  24909. },
  24910. ZD: function() {
  24911. return !0
  24912. },
  24913. TZ: function() {},
  24914. $D: function() {
  24915. return !0
  24916. },
  24917. UZ: function() {},
  24918. BM: function() {
  24919. var a = this.Jf.length;
  24920. 0 != a && (1 >= a ? (this.Jf = "", this.Iu = 0, b.M.prototype.Kb.call(this, this.Yl)) : this.string = this.Jf.substring(0, a - 1))
  24921. },
  24922. Xx: function() {
  24923. b.Bi.Xx(this)
  24924. },
  24925. QN: function(a) {
  24926. var c = a;
  24927. a = c.indexOf("\n"); - 1 < a && (c =
  24928. c.substring(0, a));
  24929. 0 < c.length && (c = this.Jf + c, this.Iu = c.length, this.string = c); - 1 != a && this.FM()
  24930. },
  24931. zE: function() {
  24932. return this.Jf
  24933. },
  24934. X1: function() {},
  24935. V1: function() {},
  24936. W1: function() {},
  24937. U1: function() {}
  24938. });
  24939. n = b.fA.prototype;
  24940. b.i(n, "charCount", n.U_);
  24941. b.i(n, "placeHolder", n.H0, n.at);
  24942. b.fA.create = function(a, c, d, e, f) {
  24943. return new b.fA(a, c, d, e, f)
  24944. };
  24945. b.hv = b.qR;
  24946. b.hr = "Arial";
  24947. b.aK = !1;
  24948. b.Cc = b.k.extend({
  24949. hf: !1,
  24950. ne: null,
  24951. de: null,
  24952. mr: !1,
  24953. vb: "MenuItem",
  24954. ctor: function(a, c) {
  24955. var d = b.k.prototype;
  24956. d.ctor.call(this);
  24957. this.de = this.ne = null;
  24958. this.hf = this.mr = !1;
  24959. d.ll.call(this, 0.5, 0.5);
  24960. this.ne = c || null;
  24961. if (this.de = a || null) this.hf = !0
  24962. },
  24963. gea: function() {
  24964. return this.mr
  24965. },
  24966. Ue: function() {},
  24967. Wf: function() {
  24968. return !1
  24969. },
  24970. dG: function(a, c) {
  24971. this.ne = c;
  24972. this.de = a
  24973. },
  24974. isEnabled: function() {
  24975. return this.hf
  24976. },
  24977. ve: function(a) {
  24978. this.hf = a
  24979. },
  24980. As: function(a, c) {
  24981. this.anchorY = this.anchorX = 0.5;
  24982. this.ne = c;
  24983. this.de = a;
  24984. this.hf = !0;
  24985. this.mr = !1;
  24986. return !0
  24987. },
  24988. rect: function() {
  24989. var a =
  24990. this.wa,
  24991. c = this.O,
  24992. d = this.Qc;
  24993. return O(a.x - c.width * d.x, a.y - c.height * d.y, c.width, c.height)
  24994. },
  24995. selected: function() {
  24996. this.mr = !0
  24997. },
  24998. Oh: function() {
  24999. this.mr = !1
  25000. },
  25001. oia: function(a, c) {
  25002. this.ne = c;
  25003. this.de = a
  25004. },
  25005. ds: function() {
  25006. if (this.hf) {
  25007. var a = this.ne,
  25008. c = this.de;
  25009. if (c)
  25010. if (a && "string" == typeof c) a[c](this);
  25011. else a && "function" == typeof c ? c.call(a, this) : c(this)
  25012. }
  25013. }
  25014. });
  25015. n = b.Cc.prototype;
  25016. b.i(n, "enabled", n.isEnabled, n.ve);
  25017. b.Cc.create = function(a, c) {
  25018. return new b.Cc(a, c)
  25019. };
  25020. b.xl = b.Cc.extend({
  25021. Pn: null,
  25022. Xb: null,
  25023. nX: 0,
  25024. Nq: null,
  25025. ctor: function(a, c, d) {
  25026. b.Cc.prototype.ctor.call(this, c, d);
  25027. this.Xb = this.Pn = null;
  25028. this.nX = 0;
  25029. this.Nq = null;
  25030. a && (this.vr = 1, this.Nq = b.color.WHITE, this.Pn = b.color(126, 126, 126), this.ky(a), this.cascadeOpacity = this.cascadeColor = !0)
  25031. },
  25032. b0: function() {
  25033. return this.Pn
  25034. },
  25035. U3: function(a) {
  25036. this.Pn = a
  25037. },
  25038. q0: function() {
  25039. return this.Xb
  25040. },
  25041. ky: function(a) {
  25042. a && (this.X(a), a.anchorX = 0, a.anchorY = 0, this.width = a.width, this.height = a.height);
  25043. this.Xb && this.removeChild(this.Xb, !0);
  25044. this.Xb = a
  25045. },
  25046. ve: function(a) {
  25047. if (this.hf !=
  25048. a) {
  25049. var c = this.Xb;
  25050. a ? c.color = this.Nq : (this.Nq = c.color, c.color = this.Pn)
  25051. }
  25052. b.Cc.prototype.ve.call(this, a)
  25053. },
  25054. Sa: function(a) {
  25055. this.Xb.opacity = a
  25056. },
  25057. Ig: function() {
  25058. return this.Xb.opacity
  25059. },
  25060. cb: function(a) {
  25061. this.Xb.color = a
  25062. },
  25063. Hg: function() {
  25064. return this.Xb.color
  25065. },
  25066. JN: function(a, c, d) {
  25067. this.As(c, d);
  25068. this.vr = 1;
  25069. this.Nq = b.color.WHITE;
  25070. this.Pn = b.color(126, 126, 126);
  25071. this.ky(a);
  25072. return this.cascadeOpacity = this.cascadeColor = !0
  25073. },
  25074. Kb: function(a) {
  25075. this.Xb.string = a;
  25076. this.width = this.Xb.width;
  25077. this.height = this.Xb.height
  25078. },
  25079. al: function() {
  25080. return this.Xb.string
  25081. },
  25082. ds: function() {
  25083. this.hf && (this.it(), this.scale = this.vr, b.Cc.prototype.ds.call(this))
  25084. },
  25085. selected: function() {
  25086. if (this.hf) {
  25087. b.Cc.prototype.selected.call(this);
  25088. var a = this.xE(b.pu);
  25089. a ? this.h5(a) : this.vr = this.scale;
  25090. a = b.Pd.create(0.1, 1.2 * this.vr);
  25091. a.qy(b.pu);
  25092. this.ea(a)
  25093. }
  25094. },
  25095. Oh: function() {
  25096. if (this.hf) {
  25097. b.Cc.prototype.Oh.call(this);
  25098. this.i5(b.pu);
  25099. var a = b.Pd.create(0.1, this.vr);
  25100. a.qy(b.pu);
  25101. this.ea(a)
  25102. }
  25103. }
  25104. });
  25105. n = b.xl.prototype;
  25106. b.i(n, "string", n.al, n.Kb);
  25107. b.i(n, "disabledColor", n.b0, n.U3);
  25108. b.i(n, "label", n.q0, n.ky);
  25109. b.xl.create = function(a, c, d) {
  25110. return new b.xl(a, c, d)
  25111. };
  25112. b.aH = b.xl.extend({
  25113. ctor: function(a, c, d, e, f, g, h) {
  25114. var k;
  25115. a && 0 < a.length && (k = b.Th.create(a, c, d, e, f));
  25116. b.xl.prototype.ctor.call(this, k, g, h)
  25117. },
  25118. sd: function(a, c, d, e, f, g, h) {
  25119. if (!a || 0 == a.length) throw "cc.MenuItemAtlasFont.initWithString(): value should be non-null and its length should be greater than 0";
  25120. var k = new b.Th;
  25121. k.sd(a, c, d, e, f);
  25122. this.JN(k, g, h);
  25123. return !0
  25124. }
  25125. });
  25126. b.aH.create = function(a, c, d, e, f, g, h) {
  25127. return new b.aH(a, c, d, e, f, g, h)
  25128. };
  25129. b.wl = b.xl.extend({
  25130. Nb: null,
  25131. Wb: null,
  25132. ctor: function(a, c, d) {
  25133. var e;
  25134. a && 0 < a.length ? (this.Wb = b.hr, this.Nb = b.hv, e = b.M.create(a, this.Wb, this.Nb)) : (this.Nb = 0, this.Wb = "");
  25135. b.xl.prototype.ctor.call(this, e, c, d)
  25136. },
  25137. sd: function(a, c, d) {
  25138. if (!a || 0 == a.length) throw "Value should be non-null and its length should be greater than 0";
  25139. this.Wb = b.hr;
  25140. this.Nb = b.hv;
  25141. a = b.M.create(a, this.Wb, this.Nb);
  25142. this.JN(a, c, d);
  25143. return !0
  25144. },
  25145. jy: function(a) {
  25146. this.Nb = a;
  25147. this.XK()
  25148. },
  25149. DE: function() {
  25150. return this.Nb
  25151. },
  25152. iy: function(a) {
  25153. this.Wb = a;
  25154. this.XK()
  25155. },
  25156. CE: function() {
  25157. return this.Wb
  25158. },
  25159. XK: function() {
  25160. var a = b.M.create(this.Xb.string, this.Wb, this.Nb);
  25161. this.ky(a)
  25162. }
  25163. });
  25164. b.wl.jy = function(a) {
  25165. b.hv = a
  25166. };
  25167. b.wl.fontSize = function() {
  25168. return b.hv
  25169. };
  25170. b.wl.iy = function(a) {
  25171. b.aK && (b.hr = "");
  25172. b.hr = a;
  25173. b.aK = !0
  25174. };
  25175. n = b.wl.prototype;
  25176. b.i(n, "fontSize", n.DE, n.jy);
  25177. b.i(n, "fontName", n.CE, n.iy);
  25178. b.wl.fontName = function() {
  25179. return b.hr
  25180. };
  25181. b.wl.create = function(a, c, d) {
  25182. return new b.wl(a, c, d)
  25183. };
  25184. b.rn = b.Cc.extend({
  25185. ld: null,
  25186. Le: null,
  25187. Ee: null,
  25188. ctor: function(a, c, d, e, f) {
  25189. b.Cc.prototype.ctor.call(this);
  25190. this.Ee = this.Le = this.ld = null;
  25191. if (void 0 !== c) {
  25192. var g, h, k;
  25193. 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.N.create(c)) : void 0 === d && (g = b.N.create(c));
  25194. this.LN(a, c, g, k, h)
  25195. }
  25196. },
  25197. C0: function() {
  25198. return this.ld
  25199. },
  25200. XF: function(a) {
  25201. this.ld != a && (a && (this.X(a, 0, b.NR), a.anchorX = 0, a.anchorY = 0), this.ld && this.removeChild(this.ld, !0), this.ld = a, this.width = this.ld.width,
  25202. this.height = this.ld.height, this.qw(), a.kt && !a.ma && a.$d(function(a) {
  25203. this.width = a.width;
  25204. this.height = a.height
  25205. }, this))
  25206. },
  25207. Q0: function() {
  25208. return this.Le
  25209. },
  25210. aG: function(a) {
  25211. this.Le != a && (a && (this.X(a, 0, b.zS), a.anchorX = 0, a.anchorY = 0), this.Le && this.removeChild(this.Le, !0), this.Le = a, this.qw())
  25212. },
  25213. c0: function() {
  25214. return this.Ee
  25215. },
  25216. TF: function(a) {
  25217. this.Ee != a && (a && (this.X(a, 0, b.KQ), a.anchorX = 0, a.anchorY = 0), this.Ee && this.removeChild(this.Ee, !0), this.Ee = a, this.qw())
  25218. },
  25219. LN: function(a, c, d, e, f) {
  25220. this.As(e, f);
  25221. this.XF(a);
  25222. this.aG(c);
  25223. this.TF(d);
  25224. if (a = this.ld) this.width = a.width, this.height = a.height, a.kt && !a.ma && a.$d(function(a) {
  25225. this.width = a.width;
  25226. this.height = a.height;
  25227. this.cascadeOpacity = this.cascadeColor = !0
  25228. }, this);
  25229. return this.cascadeOpacity = this.cascadeColor = !0
  25230. },
  25231. cb: function(a) {
  25232. this.ld.color = a;
  25233. this.Le && (this.Le.color = a);
  25234. this.Ee && (this.Ee.color = a)
  25235. },
  25236. Hg: function() {
  25237. return this.ld.color
  25238. },
  25239. Sa: function(a) {
  25240. this.ld.opacity = a;
  25241. this.Le && (this.Le.opacity = a);
  25242. this.Ee && (this.Ee.opacity = a)
  25243. },
  25244. Ig: function() {
  25245. return this.ld.opacity
  25246. },
  25247. selected: function() {
  25248. b.Cc.prototype.selected.call(this);
  25249. this.ld && (this.Ee && (this.Ee.visible = !1), this.Le ? (this.ld.visible = !1, this.Le.visible = !0) : this.ld.visible = !0)
  25250. },
  25251. Oh: function() {
  25252. b.Cc.prototype.Oh.call(this);
  25253. this.ld && (this.ld.visible = !0, this.Le && (this.Le.visible = !1), this.Ee && (this.Ee.visible = !1))
  25254. },
  25255. ve: function(a) {
  25256. this.hf != a && (b.Cc.prototype.ve.call(this, a), this.qw())
  25257. },
  25258. qw: function() {
  25259. var a = this.ld,
  25260. c = this.Le,
  25261. d = this.Ee;
  25262. this.hf ? (a && (a.visible = !0), c && (c.visible = !1), d && (d.visible = !1)) : d ? (a && (a.visible = !1), c && (c.visible = !1), d && (d.visible = !0)) : (a && (a.visible = !0),
  25263. c && (c.visible = !1))
  25264. }
  25265. });
  25266. n = b.rn.prototype;
  25267. b.i(n, "normalImage", n.C0, n.XF);
  25268. b.i(n, "selectedImage", n.Q0, n.aG);
  25269. b.i(n, "disabledImage", n.c0, n.TF);
  25270. b.rn.create = function(a, c, d, e, f) {
  25271. return new b.rn(a, c, d, e, f || void 0)
  25272. };
  25273. b.mq = b.rn.extend({
  25274. ctor: function(a, c, d, e, f) {
  25275. var g = null,
  25276. h = null,
  25277. k = null,
  25278. m = null,
  25279. p = null;
  25280. void 0 === a ? b.rn.prototype.ctor.call(this) : (g = b.N.create(a), c && (h = b.N.create(c)), void 0 === e ? m = d : void 0 === f ? (m = d, p = e) : f && (k = b.N.create(d), m = e, p = f), b.rn.prototype.ctor.call(this, g, h, k, m, p))
  25281. },
  25282. dja: function(a) {
  25283. this.XF(b.N.create(a))
  25284. },
  25285. zja: function(a) {
  25286. this.aG(b.N.create(a))
  25287. },
  25288. Dia: function(a) {
  25289. this.TF(b.N.create(a))
  25290. },
  25291. Lda: function(a, c, d, e, f) {
  25292. var g = null,
  25293. h = null,
  25294. k = null;
  25295. a && (g = b.N.create(a));
  25296. c && (h = b.N.create(c));
  25297. d && (k = b.N.create(d));
  25298. return this.LN(g, h, k, e, f)
  25299. }
  25300. });
  25301. b.mq.create = function(a, c, d, e, f) {
  25302. return new b.mq(a, c, d, e, f)
  25303. };
  25304. b.mz = b.Cc.extend({
  25305. ud: null,
  25306. rh: 0,
  25307. Wd: null,
  25308. fe: null,
  25309. ctor: function() {
  25310. b.Cc.prototype.ctor.call(this);
  25311. this.rh = 0;
  25312. this.ud = [];
  25313. this.Wd = 0;
  25314. this.fe = b.color.WHITE;
  25315. 0 < arguments.length && this.YE(Array.prototype.slice.apply(arguments))
  25316. },
  25317. Ig: function() {
  25318. return this.Wd
  25319. },
  25320. Sa: function(a) {
  25321. this.Wd = a;
  25322. if (this.ud && 0 < this.ud.length)
  25323. for (var c = 0; c < this.ud.length; c++) this.ud[c].opacity = a;
  25324. this.fe.a = a
  25325. },
  25326. Hg: function() {
  25327. var a = this.fe;
  25328. return b.color(a.r, a.g, a.b, a.a)
  25329. },
  25330. cb: function(a) {
  25331. var c = this.fe;
  25332. c.r = a.r;
  25333. c.g = a.g;
  25334. c.b = a.b;
  25335. if (this.ud && 0 < this.ud.length)
  25336. for (c =
  25337. 0; c < this.ud.length; c++) this.ud[c].cb(a);
  25338. void 0 === a.a || a.RL || this.Sa(a.a)
  25339. },
  25340. R0: function() {
  25341. return this.rh
  25342. },
  25343. oy: function(a) {
  25344. if (a != this.rh) {
  25345. this.rh = a;
  25346. (a = this.Eh(b.EG)) && a.IF(!1);
  25347. a = this.ud[this.rh];
  25348. this.X(a, 0, b.EG);
  25349. var c = a.width,
  25350. d = a.height;
  25351. this.width = c;
  25352. this.height = d;
  25353. a.P(c / 2, d / 2)
  25354. }
  25355. },
  25356. cda: function() {
  25357. return this.ud
  25358. },
  25359. Fja: function(a) {
  25360. this.ud = a
  25361. },
  25362. YE: function(a) {
  25363. var c = a.length;
  25364. "function" === typeof a[a.length - 2] ? (this.As(a[a.length - 2], a[a.length - 1]), c -= 2) : "function" === typeof a[a.length - 1] ? (this.As(a[a.length - 1], null),
  25365. c -= 1) : this.As(null, null);
  25366. for (var d = this.ud, e = d.length = 0; e < c; e++) a[e] && d.push(a[e]);
  25367. this.rh = b.tI;
  25368. this.oy(0);
  25369. return this.cascadeOpacity = this.cascadeColor = !0
  25370. },
  25371. R9: function(a) {
  25372. this.ud.push(a)
  25373. },
  25374. ds: function() {
  25375. this.hf && this.oy((this.rh + 1) % this.ud.length);
  25376. b.Cc.prototype.ds.call(this)
  25377. },
  25378. selected: function() {
  25379. b.Cc.prototype.selected.call(this);
  25380. this.ud[this.rh].selected()
  25381. },
  25382. Oh: function() {
  25383. b.Cc.prototype.Oh.call(this);
  25384. this.ud[this.rh].Oh()
  25385. },
  25386. ve: function(a) {
  25387. if (this.hf != a) {
  25388. b.Cc.prototype.ve.call(this, a);
  25389. var c = this.ud;
  25390. if (c && 0 < c.length)
  25391. for (var d = 0; d < c.length; d++) c[d].enabled = a
  25392. }
  25393. },
  25394. dia: function() {
  25395. return this.ud[this.rh]
  25396. },
  25397. Z: function() {
  25398. b.k.prototype.Z.call(this);
  25399. this.oy(this.rh)
  25400. }
  25401. });
  25402. n = b.mz.prototype;
  25403. b.i(n, "selectedIndex", n.R0, n.oy);
  25404. b.mz.create = function() {
  25405. 0 < arguments.length && null == arguments[arguments.length - 1] && b.log("parameters should not be ending with null in Javascript");
  25406. var a = new b.mz;
  25407. a.YE(Array.prototype.slice.apply(arguments));
  25408. return a
  25409. };
  25410. b.lq = 0;
  25411. b.kq = 1;
  25412. b.F7 = -128;
  25413. b.IG = 5;
  25414. b.qn = b.sc.extend({
  25415. enabled: !1,
  25416. fe: null,
  25417. Wd: 0,
  25418. Uc: null,
  25419. wh: -1,
  25420. CL: null,
  25421. vb: "Menu",
  25422. ctor: function(a) {
  25423. b.sc.prototype.ctor.call(this);
  25424. this.fe = b.color.WHITE;
  25425. this.enabled = !1;
  25426. this.Wd = 255;
  25427. this.Uc = null;
  25428. this.wh = -1;
  25429. this.CL = b.sa.create({
  25430. event: b.sa.ju,
  25431. jt: !0,
  25432. hl: this.hX,
  25433. Os: this.lX,
  25434. Ns: this.jX,
  25435. Ms: this.iX
  25436. });
  25437. 0 < arguments.length && null == arguments[arguments.length - 1] && b.log("parameters should not be ending with null in Javascript");
  25438. var c = arguments.length,
  25439. d;
  25440. if (0 == c) d = [];
  25441. else if (1 == c) d = a instanceof Array ? a : [a];
  25442. else if (1 < c) {
  25443. d = [];
  25444. for (var e = 0; e < c; e++) arguments[e] && d.push(arguments[e])
  25445. }
  25446. this.FN(d)
  25447. },
  25448. Z: function() {
  25449. var a = this.CL;
  25450. a.mf || b.ra.addListener(a, this);
  25451. b.k.prototype.Z.call(this)
  25452. },
  25453. Hg: function() {
  25454. var a = this.fe;
  25455. return b.color(a.r, a.g, a.b, a.a)
  25456. },
  25457. cb: function(a) {
  25458. var c = this.fe;
  25459. c.r = a.r;
  25460. c.g = a.g;
  25461. c.b = a.b;
  25462. if ((c = this.t) && 0 < c.length)
  25463. for (var d = 0; d < c.length; d++) c[d].cb(a);
  25464. void 0 === a.a || a.RL || this.Sa(a.a)
  25465. },
  25466. Ig: function() {
  25467. return this.Wd
  25468. },
  25469. Sa: function(a) {
  25470. this.Wd = a;
  25471. var c = this.t;
  25472. if (c && 0 < c.length)
  25473. for (var d = 0; d < c.length; d++) c[d].Sa(a);
  25474. this.fe.a = a
  25475. },
  25476. isEnabled: function() {
  25477. return this.enabled
  25478. },
  25479. ve: function(a) {
  25480. this.enabled = a
  25481. },
  25482. YE: function(a) {
  25483. var c = [];
  25484. if (a)
  25485. for (var d = 0; d < a.length; d++) a[d] && c.push(a[d]);
  25486. return this.FN(c)
  25487. },
  25488. FN: function(a) {
  25489. if (b.sc.prototype.da.call(this)) {
  25490. this.enabled = !0;
  25491. var c = b.Tj;
  25492. this.P(c.width / 2, c.height / 2);
  25493. this.Kd(c);
  25494. this.ll(0.5, 0.5);
  25495. this.dx(!0);
  25496. if (a)
  25497. for (c = 0; c < a.length; c++) this.X(a[c], c);
  25498. this.Uc = null;
  25499. this.wh = b.lq;
  25500. return this.cascadeOpacity = this.cascadeColor = !0
  25501. }
  25502. return !1
  25503. },
  25504. X: function(a, c, d) {
  25505. if (!(a instanceof b.Cc)) throw "cc.Menu.addChild() : Menu only supports MenuItem objects as children";
  25506. b.sc.prototype.X.call(this, a, c, d)
  25507. },
  25508. c$: function() {
  25509. this.YL(b.IG)
  25510. },
  25511. YL: function(a) {
  25512. var c = -a,
  25513. d = this.t,
  25514. e, f, g, h;
  25515. if (d && 0 < d.length) {
  25516. f = 0;
  25517. for (e = d.length; f < e; f++) c += d[f].height * d[f].scaleY + a;
  25518. var k = c / 2;
  25519. f = 0;
  25520. for (e = d.length; f < e; f++) h = d[f], g = h.height, c = h.scaleY, h.P(0, k - g * c / 2), k -= g * c + a
  25521. }
  25522. },
  25523. Z9: function() {
  25524. this.eZ(b.IG)
  25525. },
  25526. eZ: function(a) {
  25527. var c = -a,
  25528. d = this.t,
  25529. e, f, g, h;
  25530. if (d && 0 < d.length) {
  25531. e = 0;
  25532. for (f = d.length; e < f; e++) c += d[e].width * d[e].scaleX + a;
  25533. var k = -c / 2;
  25534. e = 0;
  25535. for (f = d.length; e < f; e++) h = d[e], c = h.scaleX, g = d[e].width, h.P(k + g * c / 2, 0), k +=
  25536. g * c + a
  25537. }
  25538. },
  25539. a$: function() {
  25540. 0 < arguments.length && null == arguments[arguments.length - 1] && b.log("parameters should not be ending with null in Javascript");
  25541. for (var a = [], c = 0; c < arguments.length; c++) a.push(arguments[c]);
  25542. var d = -5,
  25543. e = 0,
  25544. f = 0,
  25545. g = 0,
  25546. h, k, m, p = this.t;
  25547. if (p && 0 < p.length)
  25548. for (c = 0, m = p.length; c < m; c++) e >= a.length || !(h = a[e]) || (k = p[c].height, f = f >= k || isNaN(k) ? f : k, ++g, g >= h && (d += f + 5, f = g = 0, ++e));
  25549. var r = b.I.Aa(),
  25550. s = h = f = e = 0,
  25551. u = 0,
  25552. d = d / 2;
  25553. if (p && 0 < p.length)
  25554. for (c = 0, m = p.length; c < m; c++) {
  25555. var t = p[c];
  25556. 0 == h && (h = a[e], u = s = r.width / (1 + h));
  25557. k =
  25558. t.yk();
  25559. f = f >= k || isNaN(k) ? f : k;
  25560. t.P(u - r.width / 2, d - k / 2);
  25561. u += s;
  25562. ++g;
  25563. g >= h && (d -= f + 5, f = h = g = 0, ++e)
  25564. }
  25565. },
  25566. b$: function() {
  25567. 0 < arguments.length && null == arguments[arguments.length - 1] && b.log("parameters should not be ending with null in Javascript");
  25568. var a = [],
  25569. c;
  25570. for (c = 0; c < arguments.length; c++) a.push(arguments[c]);
  25571. var d = [],
  25572. e = [],
  25573. f = -10,
  25574. g = -5,
  25575. h = 0,
  25576. k = 0,
  25577. m = 0,
  25578. p, r, s, u, t = this.t;
  25579. if (t && 0 < t.length)
  25580. for (c = 0, s = t.length; c < s; c++)(r = t[c], h >= a.length || !(p = a[h])) || (u = r.width, k = k >= u || isNaN(u) ? k : u, g += r.height + 5, ++m, m >= p && (d.push(k), e.push(g), f += k +
  25581. 10, k = m = 0, g = -5, ++h));
  25582. g = b.I.Aa();
  25583. p = k = h = 0;
  25584. var f = -f / 2,
  25585. v = 0;
  25586. if (t && 0 < t.length)
  25587. for (c = 0, s = t.length; c < s; c++) r = t[c], 0 == p && (p = a[h], v = e[h]), u = r.eh(), k = k >= u || isNaN(u) ? k : u, r.P(f + d[h] / 2, v - g.height / 2), v -= r.height + 10, ++m, m >= p && (f += k + 5, k = p = m = 0, ++h)
  25588. },
  25589. removeChild: function(a, c) {
  25590. null != a && (a instanceof b.Cc ? (this.Uc == a && (this.Uc = null), b.k.prototype.removeChild.call(this, a, c)) : b.log("cc.Menu.removeChild():Menu only supports MenuItem objects as children"))
  25591. },
  25592. hX: function(a, c) {
  25593. var d = c.ib;
  25594. if (d.wh != b.lq || !d.lc || !d.enabled) return !1;
  25595. for (var e = d.parent; null != e; e = e.parent)
  25596. if (!e.lc) return !1;
  25597. d.Uc = d.tK(a);
  25598. return d.Uc ? (d.wh = b.kq, d.Uc.selected(), !0) : !1
  25599. },
  25600. jX: function(a, c) {
  25601. var d = c.ib;
  25602. d.wh !== b.kq ? b.log("cc.Menu.onTouchEnded(): invalid state") : (d.Uc && (d.Uc.Oh(), d.Uc.ds()), d.wh = b.lq)
  25603. },
  25604. iX: function(a, c) {
  25605. var d = c.ib;
  25606. d.wh !== b.kq ? b.log("cc.Menu.onTouchCancelled(): invalid state") : (this.Uc && d.Uc.Oh(), d.wh = b.lq)
  25607. },
  25608. lX: function(a, c) {
  25609. var d = c.ib;
  25610. if (d.wh !== b.kq) b.log("cc.Menu.onTouchMoved(): invalid state");
  25611. else {
  25612. var e = d.tK(a);
  25613. e != d.Uc && (d.Uc && d.Uc.Oh(),
  25614. d.Uc = e, d.Uc && d.Uc.selected())
  25615. }
  25616. },
  25617. sb: function() {
  25618. this.wh == b.kq && (this.Uc && (this.Uc.Oh(), this.Uc = null), this.wh = b.lq);
  25619. b.k.prototype.sb.call(this)
  25620. },
  25621. Ue: function() {},
  25622. Wf: function() {
  25623. return !1
  25624. },
  25625. tK: function(a) {
  25626. a = a.ts();
  25627. var c = this.t,
  25628. d;
  25629. if (c && 0 < c.length)
  25630. for (var e = 0; e < c.length; e++)
  25631. if (d = c[e], d.lc && d.isEnabled()) {
  25632. var f = d.iE(a),
  25633. g = d.rect();
  25634. g.x = 0;
  25635. g.y = 0;
  25636. if (b.EO(g, f)) return d
  25637. }
  25638. return null
  25639. }
  25640. });
  25641. n = b.qn.prototype;
  25642. b.qn.create = function(a) {
  25643. var c = arguments.length;
  25644. 0 < c && null == arguments[c - 1] && b.log("parameters should not be ending with null in Javascript");
  25645. return 0 == c ? new b.qn : 1 == c ? new b.qn(a) : new b.qn(Array.prototype.slice.call(arguments, 0))
  25646. };
  25647. b.o8 = 0;
  25648. b.k8 = 1;
  25649. b.n8 = 2;
  25650. b.l8 = 3;
  25651. b.m8 = 4;
  25652. b.j8 = 5;
  25653. b.Aka = function(a, c, d) {
  25654. var e = 2;
  25655. if (e + 1 > c) return !1;
  25656. a = new b.qQ(a);
  25657. a.ly(e);
  25658. d.type = a.Q();
  25659. e += 10;
  25660. if (e + 4 + 1 > c) return !1;
  25661. a.ly(e);
  25662. d.width = a.k3();
  25663. d.height = a.j3();
  25664. d.pixelDepth = a.Q();
  25665. if (e + 5 + 1 > c) return !1;
  25666. c = a.Q();
  25667. d.QM = 0;
  25668. c & 32 && (d.QM = 1);
  25669. return !0
  25670. };
  25671. b.Bka = function(a, c, d) {
  25672. var e, f;
  25673. e = 0 | d.pixelDepth / 2;
  25674. f = d.height * d.width * e;
  25675. if (18 + f > c) return !1;
  25676. d.uf = b.tu(a, 18, 18 + f);
  25677. if (3 <= e)
  25678. for (a = 0; a < f; a += e) c = d.uf[a], d.uf[a] = d.uf[a + 2], d.uf[a + 2] = c;
  25679. return !0
  25680. };
  25681. b.Dka = function(a) {
  25682. var c, d;
  25683. if (8 !== a.pixelDepth) {
  25684. var e = a.pixelDepth / 8,
  25685. f = new Uint8Array(a.height * a.width);
  25686. if (null !== f) {
  25687. for (d = c = 0; d < a.width * a.height; c += e, d++) f[d] = 0.3 * a.uf[c] + 0.59 * a.uf[c + 1] + 0.11 * a.uf[c + 2];
  25688. a.pixelDepth = 8;
  25689. a.type = 3;
  25690. a.uf = f
  25691. }
  25692. }
  25693. };
  25694. b.yka = function(a) {
  25695. a && (a.uf = null)
  25696. };
  25697. b.Cka = function(a, c, d) {
  25698. var e, f, g, h = 0,
  25699. k = 0,
  25700. m = 0,
  25701. p = [],
  25702. r = 0,
  25703. s = 18;
  25704. e = d.pixelDepth / 8;
  25705. f = d.height * d.width;
  25706. for (g = 0; g < f; g++) {
  25707. if (0 != r) r--, k = 0 != m;
  25708. else {
  25709. if (s + 1 > c) break;
  25710. r = a[s];
  25711. s += 1;
  25712. (m = r & 128) && (r -= 128);
  25713. k = 0
  25714. } if (!k) {
  25715. if (s + e > c) break;
  25716. p = b.tu(a, s, s + e);
  25717. s += e;
  25718. 3 <= e && (k = p[0], p[0] = p[2], p[2] = k)
  25719. }
  25720. for (k = 0; k < e; k++) d.uf[h + k] = p[k];
  25721. h += e
  25722. }
  25723. return !0
  25724. };
  25725. b.zka = function(a) {
  25726. for (var c = a.pixelDepth / 8 * a.width, d = 0; d < a.height / 2; d++) {
  25727. var e = b.tu(a.uf, d * c, d * c + c);
  25728. b.EI(b.tu(a.uf, (a.height - (d + 1)) * c, c), a.uf, d * c);
  25729. b.EI(e, a.uf, (a.height - (d + 1)) * c)
  25730. }
  25731. a.QM = 0
  25732. };
  25733. b.tu = function(a, c, d) {
  25734. return a instanceof Array ? a.slice(c, d) : a.subarray(c, d)
  25735. };
  25736. b.EI = function(a, c, d) {
  25737. for (var e = 0; e < a.length; e++) c[d + e] = a[e]
  25738. };
  25739. b.qQ = b.oa.extend({
  25740. xn: null,
  25741. va: 0,
  25742. ctor: function(a) {
  25743. this.xn = a
  25744. },
  25745. lia: function(a) {
  25746. this.xn = a;
  25747. this.va = 0
  25748. },
  25749. dba: function() {
  25750. return this.xn
  25751. },
  25752. cV: function(a) {
  25753. if (!(this.va + Math.ceil(a / 8) < this.Nn.length)) throw Error("Index out of bound");
  25754. },
  25755. sV: function(a, c) {
  25756. var d = a + c + 1,
  25757. e = d >> 3;
  25758. this.cV(d);
  25759. var d = Math.pow(2, c - 1) - 1,
  25760. f = this.yC(a + c, 1, e),
  25761. g = this.yC(a, c, e),
  25762. h = 0,
  25763. k = 2,
  25764. m = 0;
  25765. do
  25766. for (var p = this.Mv(++m, e), r = a % 8 || 8, s = 1 << r; s >>= 1;) p & s && (h += 1 / k), k *= 2; while (a -= r);
  25767. this.va += e;
  25768. return g == (d << 1) + 1 ? h ? NaN : f ? -Infinity : Infinity : (1 + -2 * f) * (g || h ? g ? Math.pow(2,
  25769. g - d) * (1 + h) : Math.pow(2, -d + 1) * h : 0)
  25770. },
  25771. Mv: function(a, c) {
  25772. return this.Nn[this.va + c - a - 1]
  25773. },
  25774. Ou: function(a, c) {
  25775. var d = this.yC(0, a, a / 8),
  25776. e = Math.pow(2, a);
  25777. this.va += a / 8;
  25778. return c && d >= e / 2 ? d - e : d
  25779. },
  25780. tY: function(a, c) {
  25781. for (++c; --c; a = 1073741824 == ((a %= 2147483648) & 1073741824) ? 2 * a : 2 * (a - 1073741824) + 2147483648);
  25782. return a
  25783. },
  25784. yC: function(a, c, d) {
  25785. var e = (a + c) % 8,
  25786. f = a % 8,
  25787. g = d - (a >> 3) - 1;
  25788. a = d + (-(a + c) >> 3);
  25789. var h = g - a;
  25790. c = this.Mv(g, d) >> f & (1 << (h ? 8 - f : c)) - 1;
  25791. for (h && e && (c += (this.Mv(a++, d) & (1 << e) - 1) << (h-- << 3) - f); h;) c += this.tY(this.Mv(a++, d), (h-- << 3) - f);
  25792. return c
  25793. },
  25794. rha: function() {
  25795. return this.Ou(32, !0)
  25796. },
  25797. j3: function() {
  25798. return this.Ou(32, !1)
  25799. },
  25800. tha: function() {
  25801. return this.sV(23, 8)
  25802. },
  25803. sha: function() {
  25804. return this.Ou(16, !0)
  25805. },
  25806. k3: function() {
  25807. return this.Ou(16, !1)
  25808. },
  25809. Q: function() {
  25810. var a = this.Nn[this.va];
  25811. this.va += 1;
  25812. return a
  25813. },
  25814. oha: function(a, c) {
  25815. return this.xn instanceof Array ? this.xn.slice(a, c) : this.xn.subarray(a, c)
  25816. },
  25817. ly: function(a) {
  25818. this.va = a
  25819. },
  25820. Km: function() {
  25821. return this.va
  25822. }
  25823. });
  25824. b.gu = 0;
  25825. b.Cl = 1;
  25826. b.fu = 2;
  25827. b.Vz = b.k.extend({
  25828. Gb: null,
  25829. wF: null,
  25830. op: null,
  25831. ad: null,
  25832. Fb: null,
  25833. vj: null,
  25834. vb: "TMXTiledMap",
  25835. ctor: function(a, c) {
  25836. b.k.prototype.ctor.call(this);
  25837. this.ad = N(0, 0);
  25838. this.Fb = N(0, 0);
  25839. void 0 !== c ? this.cF(a, c) : void 0 !== a && this.bF(a)
  25840. },
  25841. FE: function() {
  25842. return N(this.ad.width, this.ad.height)
  25843. },
  25844. hP: function(a) {
  25845. this.ad.width = a.width;
  25846. this.ad.height = a.height
  25847. },
  25848. DB: function() {
  25849. return this.ad.width
  25850. },
  25851. RC: function(a) {
  25852. this.ad.width = a
  25853. },
  25854. CB: function() {
  25855. return this.ad.height
  25856. },
  25857. QC: function(a) {
  25858. this.ad.height = a
  25859. },
  25860. ep: function() {
  25861. return N(this.Fb.width, this.Fb.height)
  25862. },
  25863. xP: function(a) {
  25864. this.Fb.width = a.width;
  25865. this.Fb.height = a.height
  25866. },
  25867. gr: function() {
  25868. return this.Fb.width
  25869. },
  25870. Gr: function(a) {
  25871. this.Fb.width = a
  25872. },
  25873. fr: function() {
  25874. return this.Fb.height
  25875. },
  25876. Fr: function(a) {
  25877. this.Fb.height = a
  25878. },
  25879. ica: function() {
  25880. return this.wF
  25881. },
  25882. $ia: function(a) {
  25883. this.wF = a
  25884. },
  25885. aN: function() {
  25886. return this.op
  25887. },
  25888. iP: function(a) {
  25889. this.op = a
  25890. },
  25891. Tw: function() {
  25892. return this.Gb
  25893. },
  25894. my: function(a) {
  25895. this.Gb = a
  25896. },
  25897. bF: function(a) {
  25898. if (!a || 0 == a.length) throw "cc.TMXTiledMap.initWithTMXFile(): tmxFile should be non-null or non-empty string.";
  25899. this.height =
  25900. this.width = 0;
  25901. a = b.wq.create(a);
  25902. if (!a) return !1;
  25903. var c = a.km;
  25904. c && 0 !== c.length || b.log("cc.TMXTiledMap.initWithTMXFile(): Map not found. Please check the filename.");
  25905. this.QI(a);
  25906. return !0
  25907. },
  25908. cF: function(a, c) {
  25909. this.height = this.width = 0;
  25910. var d = b.wq.create(a, c),
  25911. e = d.km;
  25912. e && 0 !== e.length || b.log("cc.TMXTiledMap.initWithXML(): Map not found. Please check the filename.");
  25913. this.QI(d);
  25914. return !0
  25915. },
  25916. QI: function(a) {
  25917. this.ad = a.FE();
  25918. this.Fb = a.ep();
  25919. this.wF = a.orientation;
  25920. this.op = a.aN();
  25921. this.Gb = a.Gb;
  25922. this.vj = a.vj;
  25923. var c = 0,
  25924. d = a.je;
  25925. if (d)
  25926. for (var e =
  25927. null, f = 0, g = d.length; f < g; f++)(e = d[f]) && e.visible && (e = this.rX(e, a), this.X(e, c, c), this.width = Math.max(this.width, e.width), this.height = Math.max(this.height, e.height), c++)
  25928. },
  25929. d$: function() {
  25930. for (var a = [], c = this.t, d = 0, e = c.length; d < e; d++) {
  25931. var f = c[d];
  25932. f && f instanceof b.vq && a.push(f)
  25933. }
  25934. return a
  25935. },
  25936. Zba: function(a) {
  25937. if (!a || 0 === a.length) throw "cc.TMXTiledMap.getLayer(): layerName should be non-null or non-empty string.";
  25938. for (var c = this.t, d = 0; d < c.length; d++) {
  25939. var e = c[d];
  25940. if (e && e.Bx == a) return e
  25941. }
  25942. return null
  25943. },
  25944. rca: function(a) {
  25945. if (!a ||
  25946. 0 === a.length) throw "cc.TMXTiledMap.getObjectGroup(): groupName should be non-null or non-empty string.";
  25947. if (this.op)
  25948. for (var c = 0; c < this.op.length; c++) {
  25949. var d = this.op[c];
  25950. if (d && d.ys == a) return d
  25951. }
  25952. return null
  25953. },
  25954. IE: function(a) {
  25955. return this.Gb[a.toString()]
  25956. },
  25957. kha: function(a) {
  25958. return this.vj[a]
  25959. },
  25960. rX: function(a, c) {
  25961. var d = this.GY(a, c),
  25962. d = b.vq.create(d, a, c);
  25963. a.qO = !1;
  25964. d.N4();
  25965. return d
  25966. },
  25967. GY: function(a, c) {
  25968. var d = a.pa,
  25969. e = c.km;
  25970. if (e)
  25971. for (var f = e.length - 1; 0 <= f; f--) {
  25972. var g = e[f];
  25973. if (g)
  25974. for (var h = 0; h < d.height; h++)
  25975. for (var k = 0; k < d.width; k++) {
  25976. var m =
  25977. a.Me[k + d.width * h];
  25978. if (0 != m && (m & b.Wz) >>> 0 >= g.Fm) return g
  25979. }
  25980. }
  25981. b.log("cocos2d: Warning: TMX Layer " + a.name + " has no tiles");
  25982. return null
  25983. }
  25984. });
  25985. n = b.Vz.prototype;
  25986. b.i(n, "mapWidth", n.DB, n.RC);
  25987. b.i(n, "mapHeight", n.CB, n.QC);
  25988. b.i(n, "tileWidth", n.gr, n.Gr);
  25989. b.i(n, "tileHeight", n.fr, n.Fr);
  25990. b.Vz.create = function(a, c) {
  25991. return new b.Vz(a, c)
  25992. };
  25993. b.ET = 0;
  25994. b.r8 = 1;
  25995. b.q8 = 2;
  25996. b.t8 = 3;
  25997. b.s8 = 4;
  25998. b.u8 = 5;
  25999. b.xq = 2147483648;
  26000. b.yq = 1073741824;
  26001. b.LH = 536870912;
  26002. b.MH = (b.xq | b.yq | b.LH) >>> 0;
  26003. b.Wz = ~b.MH >>> 0;
  26004. b.Bl = b.oa.extend({
  26005. Gb: null,
  26006. name: "",
  26007. pa: null,
  26008. Me: null,
  26009. visible: null,
  26010. Wd: null,
  26011. qO: !0,
  26012. Ul: 1E5,
  26013. Tl: 0,
  26014. offset: null,
  26015. ctor: function() {
  26016. this.Gb = [];
  26017. this.name = "";
  26018. this.pa = null;
  26019. this.Me = [];
  26020. this.visible = !0;
  26021. this.Wd = 0;
  26022. this.qO = !0;
  26023. this.Ul = 1E5;
  26024. this.Tl = 0;
  26025. this.offset = C(0, 0)
  26026. },
  26027. Tw: function() {
  26028. return this.Gb
  26029. },
  26030. my: function(a) {
  26031. this.Gb = a
  26032. }
  26033. });
  26034. b.DT = b.oa.extend({
  26035. name: "",
  26036. Fm: 0,
  26037. Fb: null,
  26038. gt: 0,
  26039. margin: 0,
  26040. DP: "",
  26041. ex: null,
  26042. ctor: function() {
  26043. this.Fb = N(0, 0);
  26044. this.ex = N(0, 0)
  26045. },
  26046. Ws: function(a) {
  26047. var c = O(0, 0, 0, 0);
  26048. c.width = this.Fb.width;
  26049. c.height = this.Fb.height;
  26050. a &= b.Wz;
  26051. a -= parseInt(this.Fm, 10);
  26052. var d = parseInt((this.ex.width - 2 * this.margin + this.gt) / (this.Fb.width + this.gt), 10);
  26053. c.x = parseInt(a % d * (this.Fb.width + this.gt) + this.margin, 10);
  26054. c.y = parseInt(parseInt(a / d, 10) * (this.Fb.height + this.gt) + this.margin, 10);
  26055. return c
  26056. }
  26057. });
  26058. b.wq = b.$t.extend({
  26059. Gb: null,
  26060. orientation: null,
  26061. parentElement: null,
  26062. Sx: null,
  26063. Ax: 0,
  26064. lG: !1,
  26065. Fp: null,
  26066. kE: null,
  26067. Av: null,
  26068. ad: null,
  26069. Fb: null,
  26070. je: null,
  26071. km: null,
  26072. vj: null,
  26073. Qv: "",
  26074. ZI: 0,
  26075. ctor: function(a, c) {
  26076. b.$t.prototype.ctor.apply(this);
  26077. this.ad = N(0, 0);
  26078. this.Fb = N(0, 0);
  26079. this.je = [];
  26080. this.km = [];
  26081. this.Av = [];
  26082. this.Gb = [];
  26083. this.vj = {};
  26084. this.ZI = 0;
  26085. void 0 !== c ? this.cF(a, c) : void 0 !== a && this.bF(a)
  26086. },
  26087. vca: function() {
  26088. return this.orientation
  26089. },
  26090. hja: function(a) {
  26091. this.orientation = a
  26092. },
  26093. FE: function() {
  26094. return N(this.ad.width, this.ad.height)
  26095. },
  26096. hP: function(a) {
  26097. this.ad.width =
  26098. a.width;
  26099. this.ad.height = a.height
  26100. },
  26101. DB: function() {
  26102. return this.ad.width
  26103. },
  26104. RC: function(a) {
  26105. this.ad.width = a
  26106. },
  26107. CB: function() {
  26108. return this.ad.height
  26109. },
  26110. QC: function(a) {
  26111. this.ad.height = a
  26112. },
  26113. ep: function() {
  26114. return N(this.Fb.width, this.Fb.height)
  26115. },
  26116. xP: function(a) {
  26117. this.Fb.width = a.width;
  26118. this.Fb.height = a.height
  26119. },
  26120. gr: function() {
  26121. return this.Fb.width
  26122. },
  26123. Gr: function(a) {
  26124. this.Fb.width = a
  26125. },
  26126. fr: function() {
  26127. return this.Fb.height
  26128. },
  26129. Fr: function(a) {
  26130. this.Fb.height = a
  26131. },
  26132. dca: function() {
  26133. return this.je
  26134. },
  26135. e4: function(a) {
  26136. this.je.push(a)
  26137. },
  26138. lda: function() {
  26139. return this.km
  26140. },
  26141. E4: function(a) {
  26142. this.km.push(a)
  26143. },
  26144. aN: function() {
  26145. return this.Av
  26146. },
  26147. iP: function(a) {
  26148. this.Av.push(a)
  26149. },
  26150. zca: function() {
  26151. return this.parentElement
  26152. },
  26153. mja: function(a) {
  26154. this.parentElement = a
  26155. },
  26156. Aca: function() {
  26157. return this.Sx
  26158. },
  26159. nja: function(a) {
  26160. this.Sx = a
  26161. },
  26162. $ba: function() {
  26163. return this.Ax
  26164. },
  26165. Tia: function(a) {
  26166. this.Ax = a
  26167. },
  26168. bda: function() {
  26169. return this.lG
  26170. },
  26171. Eja: function(a) {
  26172. this.lG = a
  26173. },
  26174. Tw: function() {
  26175. return this.Gb
  26176. },
  26177. my: function(a) {
  26178. this.Gb = a
  26179. },
  26180. bF: function(a) {
  26181. this.lK(a, null);
  26182. return this.CF(a)
  26183. },
  26184. cF: function(a, c) {
  26185. this.lK(null, c);
  26186. return this.P2(a)
  26187. },
  26188. CF: function(a, c) {
  26189. var d = (c = c || !1) ? a : b.T.Hd(a);
  26190. if (!d) throw "Please load the resource first : " + a;
  26191. var e, f, d = this.fC(d).documentElement;
  26192. e = d.getAttribute("version");
  26193. f = d.getAttribute("orientation");
  26194. if ("map" == d.nodeName && ("1.0" != e && null !== e && b.log("cocos2d: TMXFormat: Unsupported TMX version:" + e), "orthogonal" == f ? this.orientation = b.gu : "isometric" == f ? this.orientation = b.fu : "hexagonal" == f ? this.orientation = b.Cl : null !== f && b.log("cocos2d: TMXFomat: Unsupported orientation:" + f), e = N(0, 0), e.width = parseFloat(d.getAttribute("width")),
  26195. e.height = parseFloat(d.getAttribute("height")), this.hP(e), e = N(0, 0), e.width = parseFloat(d.getAttribute("tilewidth")), e.height = parseFloat(d.getAttribute("tileheight")), this.xP(e), f = d.querySelectorAll("map \x3e properties \x3e property"))) {
  26196. var g = {};
  26197. for (e = 0; e < f.length; e++) g[f[e].getAttribute("name")] = f[e].getAttribute("value");
  26198. this.Gb = g
  26199. }
  26200. g = d.getElementsByTagName("tileset");
  26201. "map" !== d.nodeName && (g = [], g.push(d));
  26202. for (e = 0; e < g.length; e++) {
  26203. f = g[e];
  26204. var h = f.getAttribute("source");
  26205. if (h) f = c ? b.path.join(this.Qv, h) :
  26206. b.path.Oo(a, h), this.CF(f);
  26207. else {
  26208. h = new b.DT;
  26209. h.name = f.getAttribute("name") || "";
  26210. h.Fm = parseInt(f.getAttribute("firstgid")) || 0;
  26211. h.gt = parseInt(f.getAttribute("spacing")) || 0;
  26212. h.margin = parseInt(f.getAttribute("margin")) || 0;
  26213. var k = N(0, 0);
  26214. k.width = parseFloat(f.getAttribute("tilewidth"));
  26215. k.height = parseFloat(f.getAttribute("tileheight"));
  26216. h.Fb = k;
  26217. var k = f.getElementsByTagName("image")[0].getAttribute("source"),
  26218. m = -1;
  26219. this.Fp && (m = this.Fp.lastIndexOf("/"));
  26220. h.DP = -1 !== m ? this.Fp.substr(0, m + 1) + k : this.Qv + (this.Qv ? "/" : "") + k;
  26221. this.E4(h);
  26222. if (k = f.getElementsByTagName("tile"))
  26223. for (m = 0; m < k.length; m++) {
  26224. f = k[m];
  26225. this.Sx = parseInt(h.Fm) + parseInt(f.getAttribute("id") || 0);
  26226. var p = f.querySelectorAll("properties \x3e property");
  26227. if (p) {
  26228. var r = {};
  26229. for (f = 0; f < p.length; f++) {
  26230. var s = p[f].getAttribute("name");
  26231. r[s] = p[f].getAttribute("value")
  26232. }
  26233. this.vj[this.Sx] = r
  26234. }
  26235. }
  26236. }
  26237. }
  26238. if (g = d.getElementsByTagName("layer"))
  26239. for (e = 0; e < g.length; e++) {
  26240. k = g[e];
  26241. m = k.getElementsByTagName("data")[0];
  26242. h = new b.Bl;
  26243. h.name = k.getAttribute("name");
  26244. f = N(0, 0);
  26245. f.width = parseFloat(k.getAttribute("width"));
  26246. f.height =
  26247. parseFloat(k.getAttribute("height"));
  26248. h.pa = f;
  26249. f = k.getAttribute("visible");
  26250. h.visible = "0" != f;
  26251. f = k.getAttribute("opacity") || 1;
  26252. h.Wd = f ? parseInt(255 * parseFloat(f)) : 255;
  26253. h.offset = C(parseFloat(k.getAttribute("x")) || 0, parseFloat(k.getAttribute("y")) || 0);
  26254. p = "";
  26255. for (f = 0; f < m.childNodes.length; f++) p += m.childNodes[f].nodeValue;
  26256. p = p.trim();
  26257. f = m.getAttribute("compression");
  26258. r = m.getAttribute("encoding");
  26259. if (f && "gzip" !== f && "zlib" !== f) return b.log("cc.TMXMapInfo.parseXMLFile(): unsupported compression method"), null;
  26260. switch (f) {
  26261. case "gzip":
  26262. h.Me =
  26263. b.UP(p, 4);
  26264. break;
  26265. case "zlib":
  26266. f = new Zlib.ln(b.ja.rl.wM(p, 1));
  26267. h.Me = b.E5(f.xM());
  26268. break;
  26269. case null:
  26270. case "":
  26271. if ("base64" == r) h.Me = b.ja.rl.wM(p, 4);
  26272. else if ("csv" === r)
  26273. for (h.Me = [], f = p.split(","), m = 0; m < f.length; m++) h.Me.push(parseInt(f[m]));
  26274. else
  26275. for (f = m.getElementsByTagName("tile"), h.Me = [], m = 0; m < f.length; m++) h.Me.push(parseInt(f[m].getAttribute("gid")));
  26276. break;
  26277. default:
  26278. this.Ax == b.Bl.vG && b.log("cc.TMXMapInfo.parseXMLFile(): Only base64 and/or gzip/zlib maps are supported")
  26279. }
  26280. if (k = k.querySelectorAll("properties \x3e property")) {
  26281. m = {};
  26282. for (f = 0; f < k.length; f++) m[k[f].getAttribute("name")] = k[f].getAttribute("value");
  26283. h.Gb = m
  26284. }
  26285. this.e4(h)
  26286. }
  26287. if (g = d.getElementsByTagName("objectgroup"))
  26288. for (e = 0; e < g.length; e++) {
  26289. k = g[e];
  26290. h = new b.CT;
  26291. h.ys = k.getAttribute("name");
  26292. h.q4(C(parseFloat(k.getAttribute("x")) * this.ep().width || 0, parseFloat(k.getAttribute("y")) * this.ep().height || 0));
  26293. if (m = k.querySelectorAll("objectgroup \x3e properties \x3e property"))
  26294. for (f = 0; f < m.length; f++) p = {}, p[m[f].getAttribute("name")] = m[f].getAttribute("value"), h.Gb = p;
  26295. if (k = k.querySelectorAll("object"))
  26296. for (f =
  26297. 0; f < k.length; f++) {
  26298. p = k[f];
  26299. m = {};
  26300. m.name = p.getAttribute("name") || "";
  26301. m.type = p.getAttribute("type") || "";
  26302. m.x = parseInt(p.getAttribute("x") || 0) + h.eN().x;
  26303. r = parseInt(p.getAttribute("y") || 0) + h.eN().y;
  26304. m.width = parseInt(p.getAttribute("width")) || 0;
  26305. m.height = parseInt(p.getAttribute("height")) || 0;
  26306. m.y = parseInt(this.FE().height * this.ep().height) - r - m.height;
  26307. if (r = p.querySelectorAll("properties \x3e property"))
  26308. for (s = 0; s < r.length; s++) m[r[s].getAttribute("name")] = r[s].getAttribute("value");
  26309. (r = p.querySelectorAll("polygon")) &&
  26310. 0 < r.length && (r = r[0].getAttribute("points")) && (m.polygonPoints = this.LK(r));
  26311. (p = p.querySelectorAll("polyline")) && 0 < p.length && (p = p[0].getAttribute("points")) && (m.polylinePoints = this.LK(p));
  26312. h.l4(m)
  26313. }
  26314. this.iP(h)
  26315. }
  26316. return d
  26317. },
  26318. LK: function(a) {
  26319. if (!a) return null;
  26320. var c = [];
  26321. a = a.split(" ");
  26322. for (var d = 0; d < a.length; d++) {
  26323. var e = a[d].split(",");
  26324. c.push({
  26325. x: e[0],
  26326. y: e[1]
  26327. })
  26328. }
  26329. return c
  26330. },
  26331. P2: function(a) {
  26332. return this.CF(a, !0)
  26333. },
  26334. ida: function() {
  26335. return this.vj
  26336. },
  26337. Mja: function(a) {
  26338. this.vj.push(a)
  26339. },
  26340. sba: function() {
  26341. return this.kE
  26342. },
  26343. yia: function(a) {
  26344. this.kE =
  26345. a
  26346. },
  26347. dda: function() {
  26348. return this.Fp
  26349. },
  26350. Hja: function(a) {
  26351. this.Fp = a
  26352. },
  26353. lK: function(a, c) {
  26354. this.km.length = 0;
  26355. this.je.length = 0;
  26356. this.Fp = a;
  26357. c && (this.Qv = c);
  26358. this.Av.length = 0;
  26359. this.Gb.length = 0;
  26360. this.vj.length = 0;
  26361. this.kE = "";
  26362. this.lG = !1;
  26363. this.Ax = b.Bl.vG;
  26364. this.parentElement = b.ET;
  26365. this.ZI = 0
  26366. }
  26367. });
  26368. n = b.wq.prototype;
  26369. b.i(n, "mapWidth", n.DB, n.RC);
  26370. b.i(n, "mapHeight", n.CB, n.QC);
  26371. b.i(n, "tileWidth", n.gr, n.Gr);
  26372. b.i(n, "tileHeight", n.fr, n.Fr);
  26373. b.wq.create = function(a, c) {
  26374. return new b.wq(a, c)
  26375. };
  26376. b.T.Nj(["tmx", "tsx"], b.GL);
  26377. b.Bl.vG = 1;
  26378. b.Bl.j6 = 2;
  26379. b.Bl.k6 = 4;
  26380. b.Bl.l6 = 8;
  26381. b.CT = b.oa.extend({
  26382. Gb: null,
  26383. ys: "",
  26384. Jv: null,
  26385. ro: null,
  26386. ctor: function() {
  26387. this.ys = "";
  26388. this.Jv = C(0, 0);
  26389. this.Gb = [];
  26390. this.ro = []
  26391. },
  26392. eN: function() {
  26393. return C(this.Jv)
  26394. },
  26395. q4: function(a) {
  26396. this.Jv.x = a.x;
  26397. this.Jv.y = a.y
  26398. },
  26399. Tw: function() {
  26400. return this.Gb
  26401. },
  26402. my: function(a) {
  26403. this.Gb.push(a)
  26404. },
  26405. Uba: function() {
  26406. return this.ys.toString()
  26407. },
  26408. Qia: function(a) {
  26409. this.ys = a
  26410. },
  26411. lha: function(a) {
  26412. return this.Gb[a]
  26413. },
  26414. Bga: function(a) {
  26415. if (this.ro && 0 < this.ro.length)
  26416. for (var c = this.ro, d = 0, e = c.length; d < e; d++) {
  26417. var f = c[d].name;
  26418. if (f && f == a) return c[d]
  26419. }
  26420. return null
  26421. },
  26422. sca: function() {
  26423. return this.ro
  26424. },
  26425. l4: function(a) {
  26426. this.ro.push(a)
  26427. }
  26428. });
  26429. b.vq = b.Ae.extend({
  26430. Nd: null,
  26431. fg: null,
  26432. Hj: null,
  26433. Gb: null,
  26434. Bx: "",
  26435. pa: null,
  26436. Yb: null,
  26437. Wd: 255,
  26438. Ul: null,
  26439. Tl: null,
  26440. GD: null,
  26441. AD: null,
  26442. S8: null,
  26443. ph: null,
  26444. Rd: null,
  26445. bh: null,
  26446. be: null,
  26447. ce: null,
  26448. UA: null,
  26449. ew: null,
  26450. fw: null,
  26451. Qk: 0,
  26452. gw: 0,
  26453. EK: 1E7,
  26454. vb: "TMXLayer",
  26455. ctor: function(a, c, d) {
  26456. b.Ae.prototype.ctor.call(this);
  26457. this.Bd = [];
  26458. this.pa = N(0, 0);
  26459. this.Yb = N(0, 0);
  26460. if (b.A === b.Ba) {
  26461. var e = b.Va,
  26462. f = b.Sb("canvas");
  26463. f.width = e.width;
  26464. f.height = e.height;
  26465. this.be = f;
  26466. this.ce = this.be.getContext("2d");
  26467. var g = new b.aa;
  26468. g.Kc(f);
  26469. g.rb();
  26470. this.UA = g;
  26471. this.width = e.width;
  26472. this.height = e.height;
  26473. this.En = this
  26474. }
  26475. void 0 !== d && this.w1(a, c, d)
  26476. },
  26477. Kd: function(a, c) {
  26478. var d = this.O;
  26479. b.k.prototype.Kd.call(this, a, c);
  26480. if (b.A === b.Ba) {
  26481. var e = this.be,
  26482. f = b.pb();
  26483. e.width = 0 | 1.5 * d.width * f;
  26484. e.height = 0 | 1.5 * d.height * f;
  26485. this.Hj === b.Cl ? this.ce.translate(0, e.height - 0.5 * this.Yb.height) : this.ce.translate(0, e.height);
  26486. d = this.UA.O;
  26487. d.width = e.width;
  26488. d.height = e.height;
  26489. d = e.width * e.height;
  26490. if (d > this.EK) {
  26491. this.ew || (this.ew = []);
  26492. this.fw || (this.fw = []);
  26493. this.Qk = Math.ceil(d / this.EK);
  26494. d = this.ew;
  26495. for (f = 0; f < this.Qk; f++) {
  26496. d[f] || (d[f] = document.createElement("canvas"),
  26497. this.fw[f] = d[f].getContext("2d"));
  26498. var g = d[f];
  26499. g.width = this.gw = Math.round(e.width / this.Qk);
  26500. g.height = e.height
  26501. }
  26502. for (f = this.Qk; f < d.length; f++) g.width = 0, g.height = 0
  26503. } else this.Qk = 0
  26504. }
  26505. },
  26506. za: null,
  26507. er: function() {
  26508. return this.UA
  26509. },
  26510. R: null,
  26511. pm: function(a) {
  26512. var c = a || b.l;
  26513. if (this.lc) {
  26514. c.save();
  26515. this.transform(a);
  26516. var d, e = this.t;
  26517. if (this.tg) {
  26518. var f = b.view;
  26519. f.Xv();
  26520. var g = this.ce,
  26521. h = this.be;
  26522. g.clearRect(0, 0, h.width, -h.height);
  26523. g.save();
  26524. g.translate(this.Ab.x, -this.Ab.y);
  26525. if (e)
  26526. for (this.Wc(), d = 0; d < e.length; d++) e[d] && e[d].R(g);
  26527. g.restore();
  26528. if (0 < this.Qk)
  26529. for (e = this.gw, g = h.height, d = 0; d < this.Qk; d++) this.fw[d].drawImage(h, d * e, 0, e, g, 0, 0, e, g);
  26530. f.Pv();
  26531. this.tg = !1
  26532. }
  26533. this.Y(a);
  26534. c.restore()
  26535. }
  26536. },
  26537. Y: null,
  26538. Ll: function(a) {
  26539. a = a || b.l;
  26540. var c = 0 | -this.Ab.x,
  26541. d = 0 | -this.Ab.y,
  26542. e = b.view,
  26543. f = this.be;
  26544. if (f) {
  26545. var g = this.Qk,
  26546. h = f.height * e.La,
  26547. k = 0.5 * this.Yb.height * e.La;
  26548. if (0 < g)
  26549. for (var f = this.ew, m = 0; m < g; m++) {
  26550. var p = f[m];
  26551. this.Hj === b.Cl ? a.drawImage(f[m], 0, 0, p.width, p.height, c + m * this.gw, -(d + h) + k, p.width * e.ka, h) : a.drawImage(f[m], 0, 0, p.width, p.height, c + m * this.gw, -(d + h), p.width * e.ka, h)
  26552. } else this.Hj ===
  26553. b.Cl ? a.drawImage(f, 0, 0, f.width, f.height, c, -(d + h) + k, f.width * e.ka, h) : a.drawImage(f, 0, 0, f.width, f.height, c, -(d + h), f.width * e.ka, h)
  26554. }
  26555. },
  26556. cca: function() {
  26557. return N(this.pa.width, this.pa.height)
  26558. },
  26559. Wia: function(a) {
  26560. this.pa.width = a.width;
  26561. this.pa.height = a.height
  26562. },
  26563. dW: function() {
  26564. return this.pa.width
  26565. },
  26566. XX: function(a) {
  26567. this.pa.width = a
  26568. },
  26569. cW: function() {
  26570. return this.pa.height
  26571. },
  26572. WX: function(a) {
  26573. this.pa.height = a
  26574. },
  26575. jca: function() {
  26576. return N(this.Yb.width, this.Yb.height)
  26577. },
  26578. aja: function(a) {
  26579. this.Yb.width = a.width;
  26580. this.Yb.height = a.height
  26581. },
  26582. gr: function() {
  26583. return this.Yb.width
  26584. },
  26585. Gr: function(a) {
  26586. this.Yb.width = a
  26587. },
  26588. fr: function() {
  26589. return this.Yb.height
  26590. },
  26591. Fr: function(a) {
  26592. this.Yb.height = a
  26593. },
  26594. jda: function() {
  26595. return this.Nd
  26596. },
  26597. Nja: function(a) {
  26598. this.Nd = a
  26599. },
  26600. kda: function() {
  26601. return this.fg
  26602. },
  26603. Oja: function(a) {
  26604. this.fg = a
  26605. },
  26606. bca: function() {
  26607. return this.Hj
  26608. },
  26609. Via: function(a) {
  26610. this.Hj = a
  26611. },
  26612. Tw: function() {
  26613. return this.Gb
  26614. },
  26615. my: function(a) {
  26616. this.Gb = a
  26617. },
  26618. w1: function(a, c, d) {
  26619. var e = c.pa,
  26620. f = 0.35 * parseInt(e.width * e.height) + 1,
  26621. g;
  26622. a && (g = b.Da.Hc(a.DP));
  26623. return this.qa(g, f) ? (this.Bx = c.name, this.pa =
  26624. e, this.Nd = c.Me, this.Ul = c.Ul, this.Tl = c.Tl, this.Wd = c.Wd, this.Gb = c.Gb, this.bh = b.I.bh, this.fg = a, this.Yb = d.ep(), this.Hj = d.orientation, a = this.XU(c.offset), this.P(b.EF(a)), this.Rd = [], this.Kd(b.BP(N(this.pa.width * this.Yb.width, this.pa.height * this.Yb.height))), this.AD = !1, this.GD = 0, !0) : !1
  26625. },
  26626. Bha: function() {
  26627. this.Nd && (this.Nd = null);
  26628. this.Rd && (this.Rd = null)
  26629. },
  26630. hda: function(a, c) {
  26631. if (!a) throw "cc.TMXLayer.getTileAt(): pos should be non-null";
  26632. void 0 !== c && (a = C(a, c));
  26633. if (a.x >= this.pa.width || a.y >= this.pa.height || 0 > a.x || 0 > a.y) throw "cc.TMXLayer.getTileAt(): invalid position";
  26634. if (!this.Nd || !this.Rd) return b.log("cc.TMXLayer.getTileAt(): TMXLayer: the tiles map has been released"), null;
  26635. var d = null,
  26636. e = this.NE(a);
  26637. if (0 === e) return d;
  26638. var f = 0 | a.x + a.y * this.pa.width,
  26639. d = this.Eh(f);
  26640. d || (e = this.fg.Ws(e), e = b.kl(e), d = new b.N, d.qa(this.texture, e), d.batchNode = this, d.P(this.Sw(a)), d.vertexZ = this.PL(a), d.anchorX = 0, d.anchorY = 0, d.opacity = this.Wd, e = this.JA(f), this.$Y(d, e, f));
  26641. return d
  26642. },
  26643. NE: function(a, c) {
  26644. if (!a) throw "cc.TMXLayer.getTileGIDAt(): pos should be non-null";
  26645. void 0 !== c && (a = C(a, c));
  26646. if (a.x >=
  26647. this.pa.width || a.y >= this.pa.height || 0 > a.x || 0 > a.y) throw "cc.TMXLayer.getTileGIDAt(): invalid position";
  26648. return this.Nd && this.Rd ? (this.Nd[0 | a.x + a.y * this.pa.width] & b.Wz) >>> 0 : (b.log("cc.TMXLayer.getTileGIDAt(): TMXLayer: the tiles map has been released"), null)
  26649. },
  26650. X0: function(a, c) {
  26651. if (!a) throw "cc.TMXLayer.getTileFlagsAt(): pos should be non-null";
  26652. void 0 !== c && (a = C(a, c));
  26653. if (a.x >= this.pa.width || a.y >= this.pa.height || 0 > a.x || 0 > a.y) throw "cc.TMXLayer.getTileFlagsAt(): invalid position";
  26654. return this.Nd && this.Rd ? (this.Nd[0 |
  26655. a.x + a.y * this.pa.width] & b.MH) >>> 0 : (b.log("cc.TMXLayer.getTileFlagsAt(): TMXLayer: the tiles map has been released"), null)
  26656. },
  26657. Lja: function(a, c, d, e) {
  26658. if (!c) throw "cc.TMXLayer.setTileGID(): pos should be non-null";
  26659. void 0 !== e ? c = C(c, d) : e = d;
  26660. if (c.x >= this.pa.width || c.y >= this.pa.height || 0 > c.x || 0 > c.y) throw "cc.TMXLayer.setTileGID(): invalid position";
  26661. if (this.Nd && this.Rd)
  26662. if (0 !== a && a < this.fg.Fm) b.log("cc.TMXLayer.setTileGID(): invalid gid:" + a);
  26663. else {
  26664. e = e || 0;
  26665. this.ti();
  26666. d = this.X0(c);
  26667. var f = this.NE(c);
  26668. if (f != a || d != e)
  26669. if (d =
  26670. (a | e) >>> 0, 0 === a) this.u3(c);
  26671. else if (0 === f) this.MW(d, c);
  26672. else {
  26673. var f = c.x + c.y * this.pa.width,
  26674. g = this.Eh(f);
  26675. g ? (a = this.fg.Ws(a), a = b.kl(a), g.tb(a, !1), null != e && this.Yv(g, c, d), this.Nd[f] = d) : this.SY(d, c)
  26676. }
  26677. } else b.log("cc.TMXLayer.setTileGID(): TMXLayer: the tiles map has been released")
  26678. },
  26679. u3: function(a, c) {
  26680. if (!a) throw "cc.TMXLayer.removeTileAt(): pos should be non-null";
  26681. void 0 !== c && (a = C(a, c));
  26682. if (a.x >= this.pa.width || a.y >= this.pa.height || 0 > a.x || 0 > a.y) throw "cc.TMXLayer.removeTileAt(): invalid position";
  26683. if (!this.Nd ||
  26684. !this.Rd) b.log("cc.TMXLayer.removeTileAt(): TMXLayer: the tiles map has been released");
  26685. else if (0 !== this.NE(a)) {
  26686. b.A === b.Ba && this.ti();
  26687. var d = 0 | a.x + a.y * this.pa.width,
  26688. e = this.JA(d);
  26689. this.Nd[d] = 0;
  26690. this.Rd.splice(e, 1);
  26691. if (d = this.Eh(d)) b.Ae.prototype.removeChild.call(this, d, !0);
  26692. else if (b.A === b.U && this.textureAtlas.KO(e), this.t)
  26693. for (var d = this.t, f = 0, g = d.length; f < g; f++) {
  26694. var h = d[f];
  26695. if (h) {
  26696. var k = h.atlasIndex;
  26697. k >= e && (h.atlasIndex = k - 1)
  26698. }
  26699. }
  26700. }
  26701. },
  26702. Sw: function(a, c) {
  26703. void 0 !== c && (a = C(a, c));
  26704. var d = C(0, 0);
  26705. switch (this.Hj) {
  26706. case b.gu:
  26707. d =
  26708. this.xX(a);
  26709. break;
  26710. case b.fu:
  26711. d = this.wX(a);
  26712. break;
  26713. case b.Cl:
  26714. d = this.vX(a)
  26715. }
  26716. return b.EF(d)
  26717. },
  26718. IE: function(a) {
  26719. return this.Gb[a]
  26720. },
  26721. N4: function() {
  26722. b.A === b.Ba ? this.fg.ex = this.xc.O : (this.fg.ex = this.textureAtlas.texture.O, this.textureAtlas.texture.PF());
  26723. this.qX();
  26724. b.A === b.Ba && this.ti();
  26725. for (var a = this.pa.height, c = this.pa.width, d = 0; d < a; d++)
  26726. for (var e = 0; e < c; e++) {
  26727. var f = this.Nd[e + c * d];
  26728. 0 !== f && (this.QU(f, C(e, d)), this.Ul = Math.min(f, this.Ul), this.Tl = Math.max(f, this.Tl))
  26729. }
  26730. this.Tl >= this.fg.Fm && this.Ul >= this.fg.Fm || b.log("cocos2d:TMX: Only 1 tileset per layer is supported")
  26731. },
  26732. X: function() {
  26733. b.log("addChild: is not supported on cc.TMXLayer. Instead use setTileGID or tileAt.")
  26734. },
  26735. removeChild: function(a, c) {
  26736. if (a)
  26737. if (-1 === this.t.indexOf(a)) b.log("cc.TMXLayer.removeChild(): Tile does not belong to TMXLayer");
  26738. else {
  26739. b.A === b.Ba && this.ti();
  26740. var d = a.atlasIndex;
  26741. this.Nd[this.Rd[d]] = 0;
  26742. this.Rd.splice(d, 1);
  26743. b.Ae.prototype.removeChild.call(this, a, c)
  26744. }
  26745. },
  26746. aca: function() {
  26747. return this.Bx
  26748. },
  26749. Uia: function(a) {
  26750. this.Bx = a
  26751. },
  26752. wX: function(a) {
  26753. return C(this.Yb.width / 2 * (this.pa.width + a.x - a.y - 1), this.Yb.height / 2 * (2 *
  26754. this.pa.height - a.x - a.y - 2))
  26755. },
  26756. xX: function(a) {
  26757. return C(a.x * this.Yb.width, (this.pa.height - a.y - 1) * this.Yb.height)
  26758. },
  26759. vX: function(a) {
  26760. return C(a.x * this.Yb.width * 3 / 4, (this.pa.height - a.y - 1) * this.Yb.height + (1 == a.x % 2 ? -this.Yb.height / 2 : 0))
  26761. },
  26762. XU: function(a) {
  26763. var c = C(0, 0);
  26764. switch (this.Hj) {
  26765. case b.gu:
  26766. c = C(a.x * this.Yb.width, -a.y * this.Yb.height);
  26767. break;
  26768. case b.fu:
  26769. c = C(this.Yb.width / 2 * (a.x - a.y), this.Yb.height / 2 * (-a.x - a.y));
  26770. break;
  26771. case b.Cl:
  26772. 0 === a.x && 0 === a.y || b.log("offset for hexagonal map not implemented yet")
  26773. }
  26774. return c
  26775. },
  26776. QU: function(a,
  26777. c) {
  26778. var d = this.fg.Ws(a),
  26779. d = b.kl(d),
  26780. e = 0 | c.x + c.y * this.pa.width,
  26781. d = this.GC(d);
  26782. this.Yv(d, c, a);
  26783. var f = this.Rd.length;
  26784. this.lx(d, f);
  26785. this.Rd.splice(f, 0, e);
  26786. return d
  26787. },
  26788. MW: function(a, c) {
  26789. var d = this.fg.Ws(a),
  26790. d = b.kl(d),
  26791. e = 0 | c.x + c.y * this.pa.width,
  26792. d = this.GC(d);
  26793. this.Yv(d, c, a);
  26794. var f = this.SU(e);
  26795. this.lx(d, f);
  26796. this.Rd.splice(f, 0, e);
  26797. if (this.t)
  26798. for (var g = this.t, h = 0, k = g.length; h < k; h++) {
  26799. var m = g[h];
  26800. if (m) {
  26801. var p = m.atlasIndex;
  26802. p >= f && (m.atlasIndex = p + 1)
  26803. }
  26804. }
  26805. this.Nd[e] = a;
  26806. return d
  26807. },
  26808. SY: function(a, c) {
  26809. var d = this.fg.Ws(a),
  26810. e = this.bh,
  26811. d = O(d.x / e, d.y /
  26812. e, d.width / e, d.height / e),
  26813. e = c.x + c.y * this.pa.width,
  26814. d = this.GC(d);
  26815. this.Yv(d, c, a);
  26816. d.atlasIndex = this.JA(e);
  26817. d.dirty = !0;
  26818. d.Ze();
  26819. this.Nd[e] = a;
  26820. return d
  26821. },
  26822. qX: function() {
  26823. var a = this.IE("cc_vertexz");
  26824. if (a)
  26825. if ("automatic" == a) {
  26826. this.AD = !0;
  26827. var c = this.IE("cc_alpha_func"),
  26828. a = 0;
  26829. c && (a = parseFloat(c));
  26830. b.A === b.U && (this.shaderProgram = b.Md.nc(b.bu), c = b.l.getUniformLocation(this.shaderProgram.Lm(), b.uI), this.shaderProgram.Oc(), this.shaderProgram.dt(c, a))
  26831. } else this.GD = parseInt(a, 10)
  26832. },
  26833. Yv: function(a, c, d) {
  26834. var e = c.x + c.y * this.pa.width;
  26835. a.P(this.Sw(c));
  26836. b.A === b.U ? a.vertexZ = this.PL(c) : a.tag = e;
  26837. a.anchorX = 0;
  26838. a.anchorY = 0;
  26839. a.opacity = this.Wd;
  26840. b.A === b.U && (a.rotation = 0);
  26841. a.gy(!1);
  26842. a.UF(!1);
  26843. (d & b.LH) >>> 0 ? (a.anchorX = 0.5, a.anchorY = 0.5, a.x = this.Sw(c).x + a.width / 2, a.y = this.Sw(c).y + a.height / 2, c = (d & (b.xq | b.yq) >>> 0) >>> 0, c == b.xq ? a.rotation = 90 : c == b.yq ? a.rotation = 270 : (a.rotation = c == (b.yq | b.xq) >>> 0 ? 90 : 270, a.gy(!0))) : ((d & b.xq) >>> 0 && a.gy(!0), (d & b.yq) >>> 0 && a.UF(!0))
  26844. },
  26845. GC: function(a) {
  26846. b.A === b.U ? (this.ph ? (this.ph.batchNode = null, this.ph.tb(a, !1)) : (this.ph = new b.N, this.ph.qa(this.texture,
  26847. a, !1)), this.ph.batchNode = this) : (this.ph = new b.N, this.ph.qa(this.Sk, a, !1), this.ph.batchNode = this, this.ph.parent = this);
  26848. return this.ph
  26849. },
  26850. PL: function(a) {
  26851. var c = 0,
  26852. d = 0;
  26853. if (this.AD) switch (this.Hj) {
  26854. case b.fu:
  26855. d = this.pa.width + this.pa.height;
  26856. c = -(d - (a.x + a.y));
  26857. break;
  26858. case b.gu:
  26859. c = -(this.pa.height - a.y);
  26860. break;
  26861. case b.Cl:
  26862. b.log("TMX Hexa zOrder not supported");
  26863. break;
  26864. default:
  26865. b.log("TMX invalid value")
  26866. } else c = this.GD;
  26867. return c
  26868. },
  26869. JA: function(a) {
  26870. var c;
  26871. if (this.Rd)
  26872. for (var d = this.Rd, e = 0, f = d.length; e < f && (c = d[e], c != a); e++);
  26873. "number" !=
  26874. typeof c && b.log("cc.TMXLayer._atlasIndexForExistantZ(): TMX atlas index not found. Shall not happen");
  26875. return e
  26876. },
  26877. SU: function(a) {
  26878. for (var c = this.Rd, d = 0, e = c.length; d < e && !(a < c[d]); d++);
  26879. return d
  26880. }
  26881. });
  26882. n = b.vq.prototype;
  26883. b.A == b.U ? (n.Y = b.Ae.prototype.Y, n.R = b.Ae.prototype.R, n.za = b.Ae.prototype.za) : (n.Y = n.Ll, n.R = n.pm, n.za = n.er);
  26884. b.i(n, "texture", n.za, n.Ya);
  26885. b.i(n, "layerWidth", n.dW, n.XX);
  26886. b.i(n, "layerHeight", n.cW, n.WX);
  26887. b.i(n, "tileWidth", n.gr, n.Gr);
  26888. b.i(n, "tileHeight", n.fr, n.Fr);
  26889. b.vq.create = function(a, c, d) {
  26890. return new b.vq(a, c, d)
  26891. };
  26892. b.wz = b.oa.extend({
  26893. Br: null,
  26894. va: null,
  26895. Mq: null,
  26896. Lca: function() {
  26897. return this.Br
  26898. },
  26899. uja: function(a) {
  26900. this.Br = a
  26901. },
  26902. Km: function() {
  26903. return this.va
  26904. },
  26905. ly: function(a) {
  26906. this.va = a
  26907. },
  26908. kba: function() {
  26909. return this.Mq
  26910. },
  26911. Q3: function(a) {
  26912. this.Mq = a
  26913. },
  26914. o1: function(a, c) {
  26915. this.Br = a;
  26916. this.va = c;
  26917. this.Mq = null;
  26918. return !0
  26919. }
  26920. });
  26921. b.wz.create = function(a, c) {
  26922. var d = new b.wz;
  26923. d.o1(a, c);
  26924. return d
  26925. };
  26926. b.lH = b.k.extend({
  26927. Pm: null,
  26928. QB: null,
  26929. vb: "ParallaxNode",
  26930. yca: function() {
  26931. return this.Pm
  26932. },
  26933. lja: function(a) {
  26934. this.Pm = a
  26935. },
  26936. ctor: function() {
  26937. b.k.prototype.ctor.call(this);
  26938. this.Pm = [];
  26939. this.QB = C(-100, -100)
  26940. },
  26941. X: function(a, c, d, e) {
  26942. if (3 === arguments.length) b.log("ParallaxNode: use addChild(child, z, ratio, offset) instead");
  26943. else {
  26944. if (!a) throw "cc.ParallaxNode.addChild(): child should be non-null";
  26945. var f = b.wz.create(d, e);
  26946. f.Q3(a);
  26947. this.Pm.push(f);
  26948. a.P(this.wa.x * d.x + e.x, this.wa.y * d.y + e.y);
  26949. b.k.prototype.X.call(this, a, c, a.tag)
  26950. }
  26951. },
  26952. removeChild: function(a,
  26953. c) {
  26954. for (var d = this.Pm, e = 0; e < d.length; e++)
  26955. if (d[e].Mq == a) {
  26956. d.splice(e, 1);
  26957. break
  26958. }
  26959. b.k.prototype.removeChild.call(this, a, c)
  26960. },
  26961. Lg: function(a) {
  26962. this.Pm.length = 0;
  26963. b.k.prototype.Lg.call(this, a)
  26964. },
  26965. R: function() {
  26966. var a = this.FU();
  26967. if (!b.DF(a, this.QB)) {
  26968. for (var c = this.Pm, d = 0, e = c.length; d < e; d++) {
  26969. var f = c[d];
  26970. f.Mq.P(-a.x + a.x * f.Br.x + f.Km().x, -a.y + a.y * f.Br.y + f.Km().y)
  26971. }
  26972. this.QB = a
  26973. }
  26974. b.k.prototype.R.call(this)
  26975. },
  26976. FU: function() {
  26977. for (var a = this.wa, c = this; null != c.parent;) c = c.parent, a = b.Hi(a, c.Rw());
  26978. return a
  26979. }
  26980. });
  26981. b.lH.create = function() {
  26982. return new b.lH
  26983. };
  26984. if (b.hb.iw) {
  26985. var U = b.Qka = new(window.AudioContext || window.webkitAudioContext || window.mozAudioContext);
  26986. b.uA = b.oa.extend({
  26987. Tn: null,
  26988. ab: null,
  26989. fm: null,
  26990. MD: null,
  26991. src: null,
  26992. Tx: null,
  26993. autoplay: null,
  26994. controls: null,
  26995. kga: null,
  26996. currentTime: 0,
  26997. startTime: 0,
  26998. duration: 0,
  26999. SB: null,
  27000. LD: 1,
  27001. Hv: 0,
  27002. jc: !1,
  27003. zo: !0,
  27004. yg: -1,
  27005. ctor: function(a) {
  27006. this.Tn = {};
  27007. this.src = a;
  27008. this.MD = U.createGain ? U.createGain() : U.createGainNode();
  27009. this.gX = this.fX.bind(this);
  27010. this.dX = this.cX.bind(this)
  27011. },
  27012. gC: function(a) {
  27013. var c = this,
  27014. d = c.fm = U.createBufferSource(),
  27015. e = c.MD;
  27016. a = a || 0;
  27017. d.buffer =
  27018. c.ab;
  27019. e.gain.value = c.LD;
  27020. d.connect(e);
  27021. e.connect(U.destination);
  27022. d.loop = c.SB;
  27023. d.onended = function() {
  27024. c.zo = !0
  27025. };
  27026. c.jc = !1;
  27027. c.zo = !1;
  27028. d.start ? d.start(0, a) : d.noteGrainOn ? (e = d.buffer.duration, c.loop ? d.noteGrainOn(0, a, e) : d.noteGrainOn(0, a, e - a)) : d.noteOn(0);
  27029. c.Hv = 0
  27030. },
  27031. BL: function() {
  27032. var a = this.fm;
  27033. this.zo || (a.stop ? a.stop(0) : a.nga(0), this.zo = !0)
  27034. },
  27035. play: function() {
  27036. if (-1 == this.yg) this.yg = 0;
  27037. else if (1 == this.yg) {
  27038. var a = this.fm;
  27039. if (this.zo || !a || 2 != a.playbackState) this.startTime = U.currentTime, this.gC(0)
  27040. }
  27041. },
  27042. pause: function() {
  27043. this.Hv =
  27044. U.currentTime;
  27045. this.jc = !0;
  27046. this.BL()
  27047. },
  27048. wp: function() {
  27049. this.jc && this.gC(this.ab ? (this.Hv - this.startTime) % this.ab.duration : 0)
  27050. },
  27051. stop: function() {
  27052. this.Hv = 0;
  27053. this.jc = !1;
  27054. this.BL()
  27055. },
  27056. load: function() {
  27057. var a = this;
  27058. if (1 != a.yg) {
  27059. a.yg = -1;
  27060. a.played = !1;
  27061. a.ended = !0;
  27062. var c = new XMLHttpRequest;
  27063. c.open("GET", a.src, !0);
  27064. c.responseType = "arraybuffer";
  27065. c.onload = function() {
  27066. U.decodeAudioData(c.response, a.gX, a.dX)
  27067. };
  27068. c.send()
  27069. }
  27070. },
  27071. addEventListener: function(a, c) {
  27072. this.Tn[a] = c.bind(this)
  27073. },
  27074. removeEventListener: function(a) {
  27075. delete this.Tn[a]
  27076. },
  27077. p$: function() {
  27078. return b.hb.iw
  27079. },
  27080. fX: function(a) {
  27081. this.ab = a;
  27082. a = this.Tn.success;
  27083. var c = this.Tn.canplaythrough;
  27084. a && a();
  27085. c && c();
  27086. 0 != this.yg && "autoplay" != this.autoplay && !0 != this.autoplay || this.gC();
  27087. this.yg = 1
  27088. },
  27089. cX: function() {
  27090. var a = this.Tn.error;
  27091. a && a();
  27092. this.yg = -2
  27093. },
  27094. cloneNode: function() {
  27095. var a = new b.uA(this.src);
  27096. a.volume = this.volume;
  27097. a.yg = this.yg;
  27098. a.ab = this.ab;
  27099. 0 != a.yg && -1 != a.yg || a.load();
  27100. return a
  27101. }
  27102. });
  27103. n = b.uA.prototype;
  27104. b.i(n, "loop", function() {
  27105. return this.SB
  27106. }, function(a) {
  27107. this.SB = a;
  27108. this.fm && (this.fm.loop = a)
  27109. });
  27110. b.i(n, "volume", function() {
  27111. return this.LD
  27112. }, function(a) {
  27113. this.LD =
  27114. a;
  27115. this.MD.gain.value = a
  27116. });
  27117. b.i(n, "paused", function() {
  27118. return this.jc
  27119. });
  27120. b.i(n, "ended", function() {
  27121. var a = this.fm;
  27122. return !this.jc && (this.zo || !a || 3 == a.playbackState)
  27123. });
  27124. b.i(n, "played", function() {
  27125. var a = this.fm;
  27126. return a && 2 == a.playbackState
  27127. })
  27128. }
  27129. b.zG = b.oa.extend({
  27130. cD: !1,
  27131. Td: null,
  27132. Nu: null,
  27133. jf: 0,
  27134. MI: 0,
  27135. he: {},
  27136. Kq: {},
  27137. Wu: 1,
  27138. UB: 5,
  27139. qk: null,
  27140. yr: [],
  27141. ctor: function() {
  27142. this.cD = 0 < b.KA.jw.length;
  27143. this.qk && (this.qk = this.qk.bind(this))
  27144. },
  27145. Ska: function() {
  27146. return !1
  27147. },
  27148. Cba: function() {
  27149. return this.Wu
  27150. },
  27151. fha: function(a, c) {
  27152. if (this.cD) {
  27153. var d = this.Td;
  27154. d && this.Pk(d);
  27155. a != this.Nu && (this.Td = d = this.uB(a), this.Nu = a);
  27156. d && (d.loop = c || !1, this.hC(d))
  27157. }
  27158. },
  27159. uB: function(a) {
  27160. var c = b.T,
  27161. d = c.Hd(a);
  27162. d || (c.load(a), d = c.Hd(a));
  27163. return d
  27164. },
  27165. hC: function(a) {
  27166. a.ended || (a.stop ? a.stop() : (a.pause(), a.currentTime = 0));
  27167. this.jf =
  27168. 2;
  27169. a.play()
  27170. },
  27171. l5: function(a) {
  27172. if (0 < this.jf) {
  27173. var c = this.Td;
  27174. c && this.Pk(c) && (a && b.T.Ki(this.Nu), this.Nu = this.Td = null, this.jf = 0)
  27175. }
  27176. },
  27177. Pk: function(a) {
  27178. return a && !a.ended ? (a.stop ? a.stop() : a.duration && Infinity != a.duration ? a.currentTime = a.duration : a.pause(), !0) : !1
  27179. },
  27180. yO: function() {
  27181. 2 == this.jf && (this.Td.pause(), this.jf = 1)
  27182. },
  27183. A3: function() {
  27184. 1 == this.jf && (this.nj(this.Td), this.jf = 2)
  27185. },
  27186. nj: function(a) {
  27187. a && !a.ended && (a.wp ? a.wp() : a.play())
  27188. },
  27189. Yha: function() {
  27190. this.Td && this.hC(this.Td)
  27191. },
  27192. oca: function() {
  27193. return 0 == this.jf ? 0 : this.Td.volume
  27194. },
  27195. bja: function(a) {
  27196. 0 < this.jf && (this.Td.volume = Math.min(Math.max(a, 0), 1))
  27197. },
  27198. jF: function() {
  27199. return 2 == this.jf && this.Td && !this.Td.ended
  27200. },
  27201. xB: function(a) {
  27202. var c = this.Kq[a];
  27203. c || (c = this.Kq[a] = []);
  27204. return c
  27205. },
  27206. ZJ: function(a) {
  27207. var c;
  27208. if (!this.cD) return null;
  27209. for (var d = this.xB(a), e = 0, f = d.length; e < f; e++) {
  27210. var g = d[e];
  27211. if (g.ended) {
  27212. c = g;
  27213. c.currentTime = 0;
  27214. window.chrome && c.load();
  27215. break
  27216. }
  27217. }
  27218. if (!c) {
  27219. if (d.length >= this.UB) return b.log("Error: " + a + " greater than " + this.UB), null;
  27220. c = this.uB(a);
  27221. if (!c) return null;
  27222. c = c.cloneNode(!0);
  27223. this.qk && b.Ga(c,
  27224. "pause", this.qk);
  27225. c.volume = this.Wu;
  27226. d.push(c)
  27227. }
  27228. return c
  27229. },
  27230. W2: function(a, c) {
  27231. var d = this.ZJ(a);
  27232. if (!d) return null;
  27233. d.loop = c || !1;
  27234. d.play();
  27235. var e = this.MI++;
  27236. this.he[e] = d;
  27237. return e
  27238. },
  27239. Fia: function(a) {
  27240. a = this.Wu = Math.min(Math.max(a, 0), 1);
  27241. var c = this.he,
  27242. d;
  27243. for (d in c) c[d].volume = a
  27244. },
  27245. S2: function(a) {
  27246. (a = this.he[a]) && !a.ended && a.pause()
  27247. },
  27248. Q2: function() {
  27249. var a = this.he,
  27250. c;
  27251. for (c in a) {
  27252. var d = a[c];
  27253. d.ended || d.pause()
  27254. }
  27255. },
  27256. z3: function(a) {
  27257. this.nj(this.he[a])
  27258. },
  27259. y3: function() {
  27260. var a = this.he,
  27261. c;
  27262. for (c in a) this.nj(a[c])
  27263. },
  27264. j5: function(a) {
  27265. this.Pk(this.he[a]);
  27266. delete this.he[a]
  27267. },
  27268. FP: function() {
  27269. var a = this.he,
  27270. c;
  27271. for (c in a) this.Pk(a[c]), delete a[c]
  27272. },
  27273. F5: function(a) {
  27274. var c = b.T,
  27275. d = this.he,
  27276. e = this.xB(a);
  27277. c.Ki(a);
  27278. if (0 != e.length) {
  27279. c = e[0].src;
  27280. delete this.Kq[a];
  27281. for (var f in d) d[f].src == c && (this.Pk(d[f]), delete d[f])
  27282. }
  27283. },
  27284. end: function() {
  27285. this.l5();
  27286. this.FP()
  27287. },
  27288. NK: function() {
  27289. var a = this.he,
  27290. c, d;
  27291. for (d in a)!(c = a[d]) || c.ended || c.paused || (this.yr.push(c), c.pause());
  27292. this.jF() && (this.yr.push(this.Td), this.Td.pause())
  27293. },
  27294. dL: function() {
  27295. for (var a = this.yr, c = 0, d = a.length; c < d; c++) this.nj(a[c]);
  27296. a.length = 0
  27297. }
  27298. });
  27299. !b.hb.iw && 0 > b.hb.CY && (b.AG = b.zG.extend({
  27300. Wk: [],
  27301. xr: [],
  27302. Df: null,
  27303. UB: 2,
  27304. Vu: {},
  27305. Wl: !1,
  27306. Un: 0,
  27307. MB: !1,
  27308. hC: function(a) {
  27309. this.kD();
  27310. this._super(a)
  27311. },
  27312. A3: function() {
  27313. 1 == this.jf && (this.kD(), this.Wl = !1, this.Un = 0, this._super())
  27314. },
  27315. W2: function(a, c) {
  27316. var d = this.Df,
  27317. e = c ? this.ZJ(a) : this.sW(a);
  27318. if (!e) return null;
  27319. e.loop = c || !1;
  27320. var f = this.MI++;
  27321. this.he[f] = e;
  27322. this.jF() && (this.yO(), this.Wl = !0);
  27323. d ? (d != e && this.Wk.push(this.Mn), this.Wk.push(f), d.pause()) : (this.Df = e, this.Mn = f, e.play());
  27324. return f
  27325. },
  27326. S2: function() {
  27327. b.log("pauseEffect not supported in single audio mode!")
  27328. },
  27329. Q2: function() {
  27330. var a =
  27331. this.Wk,
  27332. c = this.xr,
  27333. d = this.Df;
  27334. if (d) {
  27335. for (var e = 0, f = a.length; e < f; e++) c.push(a[e]);
  27336. a.length = 0;
  27337. c.push(this.Mn);
  27338. d.pause()
  27339. }
  27340. },
  27341. z3: function() {
  27342. b.log("resumeEffect not supported in single audio mode!")
  27343. },
  27344. y3: function() {
  27345. var a = this.Wk,
  27346. c = this.xr;
  27347. this.jF() && (this.yO(), this.Wl = !0);
  27348. for (var d = 0, e = c.length; d < e; d++) a.push(c[d]);
  27349. c.length = 0;
  27350. !this.Df && 0 <= a.length && (a = a.pop(), c = this.he[a]) && (this.Mn = a, this.Df = c, this.nj(c))
  27351. },
  27352. j5: function(a) {
  27353. var c = this.Df,
  27354. d = this.Wk,
  27355. e = this.xr;
  27356. c && this.Mn == a ? this.Pk(c) : (c = d.indexOf(a), 0 <= c ? d.splice(c,
  27357. 1) : (c = e.indexOf(a), 0 <= c && e.splice(c, 1)))
  27358. },
  27359. FP: function() {
  27360. this.kD();
  27361. !this.Df && this.Wl && (this.nj(this.Td), this.jf = 2, this.Wl = !1, this.Un = 0)
  27362. },
  27363. F5: function(a) {
  27364. var c = b.T,
  27365. d = this.he,
  27366. e = this.Vu,
  27367. f = this.xB(a),
  27368. g = this.Df;
  27369. c.Ki(a);
  27370. if (0 != f.length || e[a]) {
  27371. c = 0 < f.length ? f[0].src : e[a].src;
  27372. delete this.Kq[a];
  27373. delete e[a];
  27374. for (var h in d) d[h].src == c && delete d[h];
  27375. g && g.src == c && this.Pk(g)
  27376. }
  27377. },
  27378. sW: function(a) {
  27379. var c = this.Vu[a],
  27380. d = this.Wk,
  27381. e = this.xr,
  27382. f = this.he;
  27383. if (c) c.currentTime = 0;
  27384. else {
  27385. c = this.uB(a);
  27386. if (!c) return null;
  27387. c = c.cloneNode(!0);
  27388. this.qk &&
  27389. b.Ga(c, "pause", this.qk);
  27390. c.volume = this.Wu;
  27391. this.Vu[a] = c
  27392. }
  27393. a = 0;
  27394. for (var g = d.length; a < g;) f[d[a]] == c ? d.splice(a, 1) : a++;
  27395. a = 0;
  27396. for (g = e.length; a < g;) f[e[a]] == c ? e.splice(a, 1) : a++;
  27397. c.nr = !0;
  27398. return c
  27399. },
  27400. kD: function() {
  27401. var a = this.Df,
  27402. c = this.Kq,
  27403. d = this.Vu,
  27404. e = this.Wk,
  27405. f = this.xr;
  27406. if (a || 0 != e.length || 0 != f.length) {
  27407. for (var g in d) {
  27408. var h = d[g];
  27409. h.duration && Infinity != h.duration && (h.currentTime = h.duration)
  27410. }
  27411. e.length = 0;
  27412. f.length = 0;
  27413. for (g in c)
  27414. for (d = c[g], e = 0, f = d.length; e < f; e++) h = d[e], h.loop = !1, h.duration && Infinity != h.duration && (h.currentTime =
  27415. h.duration);
  27416. a && this.Pk(a)
  27417. }
  27418. },
  27419. qk: function() {
  27420. if (!this.MB) {
  27421. var a = this.vW();
  27422. if (a) a.nr ? (delete a.nr, a.play()) : this.nj(a);
  27423. else if (this.Wl) {
  27424. a = this.Td;
  27425. if (a.duration && Infinity != a.duration) {
  27426. var c = a.currentTime + this.Un,
  27427. c = c - a.duration * (c / a.duration | 0);
  27428. a.currentTime = c
  27429. }
  27430. this.Un = 0;
  27431. this.nj(a);
  27432. this.jf = 2;
  27433. this.Wl = !1
  27434. }
  27435. }
  27436. },
  27437. vW: function() {
  27438. var a = this.Wk,
  27439. c = this.he,
  27440. d = this.Df,
  27441. e = d ? d.currentTime - (d.startTime || 0) : 0;
  27442. for (this.Un += e; 0 != a.length;) {
  27443. var f = a.pop();
  27444. if (d = c[f]) {
  27445. if (d.nr || d.loop || d.duration && d.currentTime + e < d.duration) return this.Mn =
  27446. f, this.Df = d, !d.nr && d.duration && Infinity != d.duration && (a = d.currentTime + e, a -= d.duration * (a / d.duration | 0), d.currentTime = a), d.nr = !1, d;
  27447. d.duration && Infinity != d.duration && (d.currentTime = d.duration)
  27448. }
  27449. }
  27450. return this.Df = this.Mn = null
  27451. },
  27452. NK: function() {
  27453. var a = this.Df;
  27454. this.MB = !0;
  27455. if (a = 2 == this.jf ? this.Td : a) this.yr.push(a), a.pause()
  27456. },
  27457. dL: function() {
  27458. var a = this.yr;
  27459. this.MB = !1;
  27460. 0 < a.length && (this.nj(a[0]), a.length = 0)
  27461. }
  27462. }));
  27463. b.KA = {
  27464. jw: null,
  27465. Ow: function() {
  27466. return b.T.sZ
  27467. },
  27468. RB: function(a, c, d, e, f, g, h) {
  27469. var k = this,
  27470. m = b.T,
  27471. p = b.path,
  27472. r = this.jw,
  27473. s = "";
  27474. if (0 == r.length) return h("can not support audio!");
  27475. if (-1 == e) s = (p.Zk(a) || "").toLowerCase(), k.tZ(s) || (s = r[0], e = 0);
  27476. else if (e < r.length) s = r[e];
  27477. else return h("can not found the resource of audio! Last match url is : " + a); if (0 <= f.indexOf(s)) return k.RB(a, c, d, e + 1, f, g, h);
  27478. a = p.mM(a, s);
  27479. f.push(s);
  27480. g = k.VW(a, g, function(m) {
  27481. if (m) return k.RB(a, c, d, e + 1, f, g, h);
  27482. h(null, g)
  27483. }, e == r.length - 1);
  27484. m.Rf[c] = g
  27485. },
  27486. tZ: function(a) {
  27487. return a ?
  27488. 0 <= this.jw.indexOf(a.toLowerCase()) : !1
  27489. },
  27490. VW: function(a, c, d, e) {
  27491. var f = "file://" == location.origin ? Audio : b.uA || Audio;
  27492. 2 == arguments.length ? (d = c, c = new f) : 3 < arguments.length && !c && (c = new f);
  27493. c.src = a;
  27494. c.Tx = "auto";
  27495. f = navigator.userAgent;
  27496. /Mobile/.test(f) && (/iPhone OS/.test(f) || /iPad/.test(f) || /Firefox/.test(f)) || /MSIE/.test(f) ? (c.load(), d(null, c)) : (b.Ga(c, "canplaythrough", function() {
  27497. d(null, c);
  27498. this.removeEventListener("canplaythrough", arguments.callee, !1);
  27499. this.removeEventListener("error", arguments.callee, !1)
  27500. }, !1),
  27501. b.Ga(c, "error", function() {
  27502. d("load " + a + " failed");
  27503. e && (this.removeEventListener("canplaythrough", arguments.callee, !1), this.removeEventListener("error", arguments.callee, !1))
  27504. }, !1), c.load());
  27505. return c
  27506. },
  27507. load: function(a, c, d, e) {
  27508. this.RB(a, c, d, -1, [], null, e)
  27509. }
  27510. };
  27511. b.KA.jw = function() {
  27512. var a = b.Sb("audio"),
  27513. c = [];
  27514. if (a.canPlayType) {
  27515. var d = function(c) {
  27516. c = a.canPlayType(c);
  27517. return "no" != c && "" != c
  27518. };
  27519. d('audio/ogg; codecs\x3d"vorbis"') && c.push(".ogg");
  27520. d("audio/mpeg") && c.push(".mp3");
  27521. d('audio/wav; codecs\x3d"1"') && c.push(".wav");
  27522. d("audio/mp4") && c.push(".mp4");
  27523. (d("audio/x-m4a") || d("audio/aac")) && c.push(".m4a")
  27524. }
  27525. return c
  27526. }();
  27527. b.T.Nj(["mp3", "ogg", "wav", "mp4", "m4a"], b.KA);
  27528. b.cM = b.AG ? new b.AG : new b.zG;
  27529. b.ra.PD(b.Jb.ut, function() {
  27530. b.cM.NK()
  27531. });
  27532. b.ra.PD(b.Jb.Op, function() {
  27533. b.cM.dL()
  27534. });
  27535. var sa = {
  27536. pQ: "res/bikong.plist",
  27537. G6: "res/bikong.png"
  27538. },
  27539. ta = [],
  27540. Q;
  27541. for (Q in sa) ta.push(sa[Q]);
  27542. var V, W, Y, Z, $, va, wa, xa, Ba, Ca, Fa = b.sc.extend({
  27543. sprite: null,
  27544. ctor: function() {
  27545. this._super();
  27546. b.Rj.WL(sa.pQ);
  27547. var a = b.Tj,
  27548. c = new b.Yc(b.color(255, 255, 255, 255), a.width, a.height);
  27549. this.X(c, 0);
  27550. $ = 0;
  27551. Z = 10;
  27552. Y = 1;
  27553. xa = !0;
  27554. Ca = Ba = !1;
  27555. wa = new b.M("" + $, "Arial", 30);
  27556. wa.Ic({
  27557. x: a.width - 10,
  27558. y: a.height - 20,
  27559. anchorX: 1,
  27560. anchorY: 1,
  27561. color: b.color(0, 0, 0)
  27562. });
  27563. this.X(wa, 30);
  27564. va = new b.M(Z.toFixed(2), "Arial", 30);
  27565. va.Ic({
  27566. x: 0,
  27567. y: a.height - 20,
  27568. anchorX: 0,
  27569. anchorY: 1,
  27570. color: b.color(0, 0, 0)
  27571. });
  27572. this.X(va, 30);
  27573. V = new b.N;
  27574. V.Ic({
  27575. anchorX: 0.5,
  27576. anchorY: 0.5
  27577. });
  27578. this.X(V, 1);
  27579. W = new b.N("#nose1.png");
  27580. W.Ic({
  27581. x: a.width / 2,
  27582. y: a.height - 17 * W.se().height / 45,
  27583. anchorX: 0.5,
  27584. anchorY: 28 / 45,
  27585. scale: 1
  27586. });
  27587. this.X(W, 2);
  27588. nose2Sprite = new b.N("#nose2.png");
  27589. nose2Sprite.Ic({
  27590. x: a.width / 2,
  27591. y: a.height - 17 * nose2Sprite.se().height / 45,
  27592. anchorX: 0.5,
  27593. anchorY: 28 / 45,
  27594. scale: 1
  27595. });
  27596. this.X(nose2Sprite, 0);
  27597. nose3Sprite = new b.N("#nose3.png");
  27598. nose3Sprite.Ic({
  27599. x: a.width / 2,
  27600. y: a.height - 17 * nose3Sprite.se().height / 45,
  27601. anchorX: 0.5,
  27602. anchorY: 28 / 45,
  27603. scale: 1
  27604. });
  27605. this.X(nose3Sprite, 0);
  27606. b.ra.addListener({
  27607. event: b.sa.iu,
  27608. pp: this.hl
  27609. }, this);
  27610. this.es();
  27611. xa = !1;
  27612. return !0
  27613. },
  27614. hl: function(a,
  27615. c) {
  27616. if (Ca) {
  27617. Ca = !1;
  27618. var d = b.Tj;
  27619. V.it();
  27620. var e = b.moveBy(0.5, C(0, W.tf() - V.tf() - 100 + 20)),
  27621. f = b.fd(1);
  27622. c.ib.an(c.ib.sG);
  27623. switch (Y) {
  27624. case 1:
  27625. 15 > Math.abs(V.Gd() - d.width / 2) ? (V.hd(1), nose2Sprite.hd(0), nose3Sprite.hd(0), V.ea(b.oc(e, f, b.Xk(c.ib.Ix, c.ib)))) : (V.hd(3), nose2Sprite.hd(2), nose3Sprite.hd(2), W.ea(b.oc(b.fd(0.4), b.ue(0.1, 1.1, 1.2))), nose2Sprite.ea(b.oc(b.fd(0.4), b.ue(0.1, 1.2, 2))), nose3Sprite.ea(b.oc(b.fd(0.4), b.ue(0.1, 1.2, 2))), V.ea(b.oc(e, f, b.Xk(c.ib.es, c.ib))));
  27626. break;
  27627. case 2:
  27628. d = V.Gd() + 65;
  27629. 155 <= d && 200 >= d || 250 <= d &&
  27630. 290 >= d ? (V.hd(1), nose2Sprite.hd(0), nose3Sprite.hd(0), V.ea(b.oc(e, f, b.Xk(c.ib.Ix, c.ib)))) : (V.hd(3), nose2Sprite.hd(2), nose3Sprite.hd(2), 155 > d ? (W.ea(b.oc(b.fd(0.4), b.ue(0.1, 1.1, 1.2))), nose2Sprite.ea(b.oc(b.fd(0.4), b.ue(0.1, 1.2, 2)))) : (290 < d ? W.ea(b.oc(b.fd(0.4), b.ue(0.1, 1.1, 1.2))) : (W.ea(b.oc(b.fd(0.4), b.ue(0.1, 1.1, 1.2))), nose2Sprite.ea(b.oc(b.fd(0.4), b.ue(0.1, 1.2, 2)))), nose3Sprite.ea(b.oc(b.fd(0.4), b.ue(0.1, 1.2, 2)))), V.ea(b.oc(e, f, b.Xk(c.ib.es, c.ib))));
  27631. break;
  27632. case 3:
  27633. d = V.Gd() + 65, 170 <= d && 195 >= d || 255 <= d && 285 >=
  27634. d ? (V.hd(1), nose2Sprite.hd(0), nose3Sprite.hd(0), V.ea(b.oc(e, f, b.Xk(c.ib.Ix, c.ib)))) : (V.hd(3), nose2Sprite.hd(2), nose3Sprite.hd(2), 170 > d ? (W.ea(b.oc(b.fd(0.4), b.ue(0.1, 1.1, 1.2))), nose2Sprite.ea(b.oc(b.fd(0.4), b.ue(0.1, 1.2, 2)))) : (285 < d ? W.ea(b.oc(b.fd(0.4), b.ue(0.1, 1.1, 1.2))) : (W.ea(b.oc(b.fd(0.4), b.ue(0.1, 1.1, 1.2))), nose2Sprite.ea(b.oc(b.fd(0.4), b.ue(0.1, 1.2, 2)))), nose3Sprite.ea(b.oc(b.fd(0.4), b.ue(0.1, 1.2, 2)))), V.ea(b.oc(e, f, b.Xk(c.ib.es, c.ib))))
  27635. }
  27636. }
  27637. },
  27638. Ix: function() {
  27639. var a = b.Tj;
  27640. this.Um(this.sG, 0.01);
  27641. Ba && ($++,
  27642. wa.Kb($), Z = 10, va.Kb(Z.toFixed(2)), Ca = !0);
  27643. Y = 3 * Math.random();
  27644. 2 <= Y ? (Y = 3, V.$E("finger3.png")) : 1 <= Y ? (Y = 2, V.$E("finger2.png")) : 0 <= Y && (Y = 1, V.$E("finger1.png"));
  27645. V.Ic({
  27646. x: a.width / 5,
  27647. y: 70
  27648. });
  27649. var a = b.moveBy(0.7, C(3 * a.width / 5, 0)),
  27650. c = a.reverse(),
  27651. a = b.oc(a, c).Yx();
  27652. V.ea(a);
  27653. W.Li(1);
  27654. nose2Sprite.Li(1);
  27655. nose3Sprite.Li(1)
  27656. },
  27657. sG: function() {
  27658. Z -= 0.01;
  27659. va.Kb(Z.toFixed(2));
  27660. 0 >= Z && (Z = 0, va.Kb(Z.toFixed(2)), V.it(), Ca = !1, this.an(this.sG), this.es())
  27661. },
  27662. es: function() {
  27663. var a = b.Tj,
  27664. c = new b.N,
  27665. d = a.width,
  27666. e = a.height,
  27667. f = b.color(220, 220, 220, 255);
  27668. c.Kd(N(d,
  27669. e));
  27670. c.tb(O(0, 0, d, e));
  27671. c.cb(f);
  27672. c.Ic({
  27673. x: a.width / 2,
  27674. y: a.height / 2,
  27675. anchorX: 0.5,
  27676. anchorY: 0.5
  27677. });
  27678. this.X(c, 31, 101);
  27679. xa ? (d = new b.M("\u6311\u6218\u6316\u9f3b\u5b54", "Arial", 40), d.Ic({
  27680. x: a.width / 2,
  27681. y: 4 * a.height / 5,
  27682. anchorX: 0.5,
  27683. anchorY: 0.5,
  27684. color: b.color(0, 0, 0)
  27685. }), c.X(d, 2), e = new b.M("\u7b49\u624b\u6307\u79fb\u52a8\u5230\u5408\u9002\u4f4d\u7f6e\uff0c\u70b9\u51fb\u6233\u4e2d\u9f3b\u5b54\u5c31\u5f97\u4e00\u5206\uff01", "Arial", 14), e.VF(b.Al), e.Ic({
  27686. x: a.width / 2,
  27687. y: 3 * a.height / 5 + 40,
  27688. anchorX: 0.5,
  27689. anchorY: 0.5,
  27690. color: b.color(0, 0, 0)
  27691. }),
  27692. c.X(e, 2), d = new b.mq("#start1.png", "#start2.png", this.lO, this)) : (d = new b.mq("#replay1.png", "#replay2.png", this.lO, this), e = "\u5e74\u8f7b\u4eba\uff0c\u4f60\u6316\u4e2d\u4e86" + $ + "\u4e2a\u9f3b\u5b54\uff0c\u5feb\u544a\u8bc9\u4f60\u7684\u5c0f\u4f19\u4f34\u4eec\u5427\uff01", e = new b.M(e, "Arial", 18, N(240, 66)), e.VF(b.Al), e.Ic({
  27693. x: a.width / 2,
  27694. y: 3 * a.height / 5 + 50,
  27695. anchorX: 0.5,
  27696. anchorY: 0.5,
  27697. color: b.color(0, 0, 0)
  27698. }), c.X(e, 2), document.getElementById('sharebtn').style.display = 'block', dp_submitScore($));
  27699. e = new b.M("", "Arial", 9); /*power by teabox.cc*/
  27700. e.Ic({
  27701. x: a.width / 2,
  27702. y: a.height / 5,
  27703. anchorX: 0.5,
  27704. anchorY: 0.5,
  27705. color: b.color(0, 0, 0)
  27706. });
  27707. c.X(e, 2);
  27708. e = new b.mq("#more1.png", "#more2.png", this.A2, this);
  27709. d = new b.qn(d, e);
  27710. d.x = a.width / 2;
  27711. d.y = 2 * a.height / 5;
  27712. d.YL(15);
  27713. c.X(d, 3);
  27714. },
  27715. lO: function() {
  27716. xa || ($ = 0, wa.Kb($), document.getElementById('sharebtn').style.display = 'none', Z = 10, va.Kb(Z.toFixed(2)), Ba = !1);
  27717. this.Wx(101);
  27718. this.Ix();
  27719. Ca = Ba = !0
  27720. },
  27721. A2: function() {
  27722. clickMore();
  27723. }
  27724. }),
  27725. Ga = b.Zj.extend({
  27726. Z: function() {
  27727. this._super();
  27728. var a = new Fa;
  27729. this.X(a)
  27730. }
  27731. });
  27732. Loading = b.Zj.extend({
  27733. fj: null,
  27734. pr: 0,
  27735. Jl: 0,
  27736. Xb: null,
  27737. vb: "Loading",
  27738. da: function() {
  27739. var a = this.QA = b.Yc.create(b.color(255, 255, 255, 255));
  27740. a.P(b.Sj.Aw);
  27741. this.X(a, 0);
  27742. var c = this.Xb = b.M.create("\u52a0\u8f7d\u4e2d... 0%", "Arial", 14);
  27743. c.P(b.Hi(b.Sj.ks, C(0, -48.5)));
  27744. c.cb(b.color(127, 127, 127));
  27745. a.X(this.Xb, 10);
  27746. return !0
  27747. },
  27748. hK: function(a, c) {
  27749. var d = new b.aa;
  27750. d.Kc(a);
  27751. d.rb();
  27752. d = b.N.create(d);
  27753. d.Li(b.pb() / 2);
  27754. d.x = c.x;
  27755. d.y = c.y;
  27756. this.QA.X(d, 10)
  27757. },
  27758. Z: function() {
  27759. b.k.prototype.Z.call(this);
  27760. this.Um(this.Kr, 0.3)
  27761. },
  27762. sb: function() {
  27763. b.k.prototype.sb.call(this);
  27764. this.Xb.Kb("\u52a0\u8f7d\u4e2d... 0%")
  27765. },
  27766. ZE: function(a, c) {
  27767. "string" == typeof a && (a = [a]);
  27768. this.KF = a || [];
  27769. this.ed = c
  27770. },
  27771. Kr: function() {
  27772. var a = this;
  27773. a.an(a.Kr);
  27774. var c = a.KF;
  27775. a.pr = c.length;
  27776. a.Jl = 0;
  27777. b.T.load(c, function(c, e) {
  27778. a.Jl = e
  27779. }, function() {
  27780. a.ed && a.ed()
  27781. });
  27782. a.Um(a.Wr)
  27783. },
  27784. Wr: function() {
  27785. var a = this.Jl,
  27786. c = this.pr,
  27787. d;
  27788. d = Math.min(a / c * 100 | 0, 100);
  27789. this.Xb.Kb("\u52a0\u8f7d\u4e2d... " + d + "%");
  27790. a >= c && this.an(this.Wr)
  27791. }
  27792. });
  27793. Loading.Tx = function(a, c) {
  27794. var d = b;
  27795. d.jq || (d.jq = new Loading, d.jq.da());
  27796. d.jq.ZE(a, c);
  27797. b.I.dy(d.jq);
  27798. return d.jq
  27799. };
  27800. b.Jb.xF = function() {
  27801. b.view.aZ(!0);
  27802. b.hb.Jh ? b.view.fy(320, 500, b.ze.Lt) : b.view.fy(320, 480, b.ze.SHOW_ALL);
  27803. b.view.x3(!0);
  27804. Loading.Tx(ta, function() {
  27805. this.ea(b.Ka.create(b.xd.create(1), b.Tb.create(function() {
  27806. b.I.dy(new Ga)
  27807. }, this)))
  27808. }, this)
  27809. };
  27810. b.Jb.F3();