game.min.js 738 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124
  1. var b = b || {};
  2. b.na = b.na || {};
  3. b.j = {};
  4. w = window;
  5. w = Object.prototype;
  6. delete window._p;
  7. b.ac = function(a) {
  8. return document.createElement(a)
  9. };
  10. b.Qa = function(e, a, c, d) {
  11. e.addEventListener(a, c, d)
  12. };
  13. b.QF = "undefined" !== typeof require && require("fs");
  14. b.EI = function(e, a) {
  15. if (e) {
  16. if (e instanceof Array) {
  17. for (var c = 0, d = e.length; c < d && !1 !== a.call(void 0, e[c], c); c++) {}
  18. } else {
  19. for (c in e) {
  20. if (!1 === a.call(void 0, e[c], c)) {
  21. break
  22. }
  23. }
  24. }
  25. }
  26. };
  27. b.extend = function(c) {
  28. var a = 2 <= arguments.length ? Array.prototype.slice.call(arguments, 1) : [];
  29. b.EI(a, function(e) {
  30. for (var d in e) {
  31. e.hasOwnProperty(d) && (c[d] = e[d])
  32. }
  33. });
  34. return c
  35. };
  36. b.nd = function(a) {
  37. return "function" === typeof a
  38. };
  39. b.GB = function(a) {
  40. return "number" === typeof a || "[object Number]" === Object.prototype.toString.call(a)
  41. };
  42. b.ge = function(a) {
  43. return "string" === typeof a || "[object String]" === Object.prototype.toString.call(a)
  44. };
  45. b.isArray = function(a) {
  46. return Array.isArray(a) || "object" === typeof a && "[object Array]" === Object.prototype.toString.call(a)
  47. };
  48. b.Gi = function(a) {
  49. return "undefined" === typeof a
  50. };
  51. b.ar = function(a) {
  52. return "object" === typeof a && "[object Object]" === Object.prototype.toString.call(a)
  53. };
  54. b.Yf = function(c) {
  55. if (!c) {
  56. return b.log("invalid URL"), !1
  57. }
  58. var a = c.indexOf("://");
  59. if (-1 === a) {
  60. return !1
  61. }
  62. a = c.indexOf("/", a + 3);
  63. return (-1 === a ? c : c.substring(0, a)) !== location.origin
  64. };
  65. function ea(f, g, a, c, d) {
  66. var e = this;
  67. e.x1 = f;
  68. e.Lt = g;
  69. e.Hd = [];
  70. e.XF = a;
  71. e.YF = d;
  72. e.Yk = c;
  73. e.Tt = d;
  74. e.PG = f instanceof Array ? [] : {};
  75. e.PF = !1;
  76. b.EI(f, function(i, h) {
  77. e.Hd.push({
  78. index: h,
  79. value: i
  80. })
  81. });
  82. e.size = e.Hd.length;
  83. e.XA = 0;
  84. e.pA = 0;
  85. e.Lt = e.Lt || e.size;
  86. e.w8 = function(i, h) {
  87. e.XF = i;
  88. e.YF = h
  89. };
  90. e.v8 = function(i, h) {
  91. e.Yk = i;
  92. e.Tt = h
  93. };
  94. e.JF = function() {
  95. var i = this;
  96. if (!(0 === i.Hd.length || i.pA >= i.Lt)) {
  97. var j = i.Hd.shift(),
  98. k = j.value,
  99. h = j.index;
  100. i.pA++;
  101. i.XF.call(i.YF, k, h, function(n) {
  102. if (!i.PF) {
  103. if (i.XA++, i.pA--, n) {
  104. i.PF = !0, i.Yk && i.Yk.call(i.Tt, n)
  105. } else {
  106. var m = Array.prototype.slice.call(arguments, 1);
  107. i.PG[this.index] = m[0];
  108. i.XA === i.size ? i.Yk && i.Yk.call(i.Tt, null, i.PG) : i.JF()
  109. }
  110. }
  111. }.bind(j), i)
  112. }
  113. };
  114. e.Un = function() {
  115. if (0 === this.Hd.length) {
  116. this.Yk && this.Yk.call(this.Tt, null, [])
  117. } else {
  118. for (var h = 0; h < this.Lt; h++) {
  119. this.JF()
  120. }
  121. }
  122. }
  123. }
  124. b.async = {
  125. t$: function(d, a, c) {
  126. d = new ea(d, 1, function(g, e, f) {
  127. g.call(c, f)
  128. }, a, c);
  129. d.Un();
  130. return d
  131. },
  132. Z8: function(d, a, c) {
  133. d = new ea(d, 0, function(g, e, f) {
  134. g.call(c, f)
  135. }, a, c);
  136. d.Un();
  137. return d
  138. },
  139. dca: function(f, g, a) {
  140. var c = [],
  141. d = [null],
  142. e = new ea(f, 1, function(i, j, h) {
  143. c.push(function(k) {
  144. c = Array.prototype.slice.call(arguments, 1);
  145. f.length - 1 === j && (d = d.concat(c));
  146. h.apply(null, arguments)
  147. });
  148. i.apply(a, c)
  149. }, function(h) {
  150. if (g) {
  151. if (h) {
  152. return g.call(a, h)
  153. }
  154. g.apply(a, d)
  155. }
  156. });
  157. e.Un();
  158. return e
  159. },
  160. map: function(f, a, c, d) {
  161. var e = a;
  162. "object" === typeof a && (c = a.xl, d = a.r7, e = a.q7);
  163. f = new ea(f, 0, e, c, d);
  164. f.Un();
  165. return f
  166. },
  167. a8: function(f, a, c, d, e) {
  168. f = new ea(f, a, c, d, e);
  169. f.Un();
  170. return f
  171. }
  172. };
  173. b.path = {
  174. join: function() {
  175. for (var d = arguments.length, a = "", c = 0; c < d; c++) {
  176. a = (a + ("" === a ? "" : "/") + arguments[c]).replace(/(\/|\\\\)$/, "")
  177. }
  178. return a
  179. },
  180. Yj: function(a) {
  181. return (a = /(\.[^\.\/\?\\]*)(\?.*)?$/.exec(a)) ? a[1] : null
  182. },
  183. Z7: function(c) {
  184. if (c) {
  185. var a = c.lastIndexOf(".");
  186. if (-1 !== a) {
  187. return c.substring(0, a)
  188. }
  189. }
  190. return c
  191. },
  192. SS: function(d, a) {
  193. var c = d.indexOf("?");
  194. 0 < c && (d = d.substring(0, c));
  195. c = /(\/|\\\\)([^(\/|\\\\)]+)$/g.exec(d.replace(/(\/|\\\\)$/, ""));
  196. if (!c) {
  197. return null
  198. }
  199. c = c[2];
  200. return a && d.substring(d.length - a.length).toLowerCase() === a.toLowerCase() ? c.substring(0, c.length - a.length) : c
  201. },
  202. dirname: function(a) {
  203. return a.replace(/((.*)(\/|\\|\\\\))?(.*?\..*$)?/, "$2")
  204. },
  205. oI: function(e, a) {
  206. a = a || "";
  207. var c = e.indexOf("?"),
  208. d = "";
  209. 0 < c && (d = e.substring(c), e = e.substring(0, c));
  210. c = e.lastIndexOf(".");
  211. return 0 > c ? e + a + d : e.substring(0, c) + a + d
  212. },
  213. Pu: function(f, a, c) {
  214. if (0 === a.indexOf(".")) {
  215. return this.oI(f, a)
  216. }
  217. var d = f.indexOf("?"),
  218. e = "";
  219. c = c ? this.Yj(f) : "";
  220. 0 < d && (e = f.substring(d), f = f.substring(0, d));
  221. d = f.lastIndexOf("/");
  222. return f.substring(0, 0 >= d ? 0 : d + 1) + a + c + e
  223. }
  224. };
  225. b.S = {
  226. ZF: {},
  227. du: {},
  228. CQ: {},
  229. Ek: {},
  230. Jv: "",
  231. g2: "",
  232. Vc: {},
  233. cv: function() {
  234. return window.XMLHttpRequest ? new window.XMLHttpRequest : new ActiveXObject("MSXML2.XMLHTTP")
  235. },
  236. AF: function(f) {
  237. var a = f[0],
  238. c = f[1],
  239. d = f[2],
  240. e = ["", null, null];
  241. if (1 === f.length) {
  242. e[1] = a instanceof Array ? a : [a]
  243. } else {
  244. if (2 === f.length) {
  245. "function" === typeof c ? (e[1] = a instanceof Array ? a : [a], e[2] = c) : (e[0] = a || "", e[1] = c instanceof Array ? c : [c])
  246. } else {
  247. if (3 === f.length) {
  248. e[0] = a || "", e[1] = c instanceof Array ? c : [c], e[2] = d
  249. } else {
  250. throw "arguments error to load js!"
  251. }
  252. }
  253. }
  254. return e
  255. },
  256. zJ: function(d, e, f) {
  257. var g = this,
  258. h = g.ZF,
  259. k = g.AF(arguments),
  260. a = k[0],
  261. c = k[1],
  262. k = k[2]; - 1 < navigator.userAgent.indexOf("Trident/5") ? g.cG(a, c, 0, k) : b.async.map(c, function(m, i, j) {
  263. m = b.path.join(a, m);
  264. if (h[m]) {
  265. return j(null)
  266. }
  267. g.wE(m, !1, j)
  268. }, k)
  269. },
  270. AJ: function(f, a, c) {
  271. var d = this.EQ(),
  272. e = this.AF(arguments);
  273. this.zJ(e[0], e[1], function(g) {
  274. if (g) {
  275. throw g
  276. }
  277. d.parentNode.removeChild(d);
  278. if (e[2]) {
  279. e[2]()
  280. }
  281. })
  282. },
  283. wE: function(f, a, c) {
  284. var d = document,
  285. e = b.ac("script");
  286. e.async = a;
  287. this.ZF[f] = !0;
  288. b.Ma.ld.noCache && "string" === typeof f ? this.mG.test(f) ? e.src = f + "\x26_t\x3d" + (new Date - 0) : e.src = f + "?_t\x3d" + (new Date - 0) : e.src = f;
  289. b.Qa(e, "load", function() {
  290. e.parentNode.removeChild(e);
  291. this.removeEventListener("load", arguments.callee, !1);
  292. c()
  293. }, !1);
  294. b.Qa(e, "error", function() {
  295. e.parentNode.removeChild(e);
  296. c("Load " + f + " failed!")
  297. }, !1);
  298. d.body.appendChild(e)
  299. },
  300. cG: function(f, a, c, d) {
  301. if (c >= a.length) {
  302. d && d()
  303. } else {
  304. var e = this;
  305. e.wE(b.path.join(f, a[c]), !1, function(g) {
  306. if (g) {
  307. return d(g)
  308. }
  309. e.cG(f, a, c + 1, d)
  310. })
  311. }
  312. },
  313. EQ: function() {
  314. var d = document,
  315. a = d.getElementById("cocos2d_loadJsImg");
  316. if (!a) {
  317. a = b.ac("img");
  318. b.GQ && (a.src = b.GQ);
  319. d = d.getElementById(b.Ma.ld.id);
  320. d.style.backgroundColor = "black";
  321. d.parentNode.appendChild(a);
  322. var c = getComputedStyle ? getComputedStyle(d) : d.currentStyle;
  323. c || (c = {
  324. width: d.width,
  325. height: d.height
  326. });
  327. a.style.left = d.offsetLeft + (parseFloat(c.width) - a.width) / 2 + "px";
  328. a.style.top = d.offsetTop + (parseFloat(c.height) - a.height) / 2 + "px";
  329. a.style.position = "absolute"
  330. }
  331. return a
  332. },
  333. tv: function(e, a) {
  334. if (b.QF) {
  335. require("fs").v9(e, function(g, f) {
  336. g ? a(g) : a(null, f.toString())
  337. })
  338. } else {
  339. var c = this.cv(),
  340. d = "load " + e + " failed!";
  341. c.open("GET", e, !0);
  342. /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent) ? (c.setRequestHeader("Accept-Charset", "utf-8"), c.onreadystatechange = function() {
  343. 4 === c.readyState && (200 === c.status ? a(null, c.responseText) : a(d))
  344. }) : (c.overrideMimeType && c.overrideMimeType("text/plain; charset\x3dutf-8"), c.onload = function() {
  345. 4 === c.readyState && (200 === c.status ? a(null, c.responseText) : a(d))
  346. });
  347. c.send(null)
  348. }
  349. },
  350. dG: function(c) {
  351. if (b.QF) {
  352. return require("fs").w9(c).toString()
  353. }
  354. var a = this.cv();
  355. a.open("GET", c, !1);
  356. /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent) ? a.setRequestHeader("Accept-Charset", "utf-8") : a.overrideMimeType && a.overrideMimeType("text/plain; charset\x3dutf-8");
  357. a.send(null);
  358. return 4 === !a.readyState || 200 !== a.status ? null : a.responseText
  359. },
  360. iW: function(d, a) {
  361. var c = new XMLHttpRequest;
  362. c.open("GET", d, !0);
  363. c.responseType = "arraybuffer";
  364. c.onload = function() {
  365. var e = c.response;
  366. e && (window.c8 = e);
  367. 4 === c.readyState && (200 === c.status ? a(null, c.response) : a("load " + d + " failed!"))
  368. };
  369. c.send(null)
  370. },
  371. IB: function(c, a) {
  372. this.tv(c, function(e, f) {
  373. if (e) {
  374. a(e)
  375. } else {
  376. try {
  377. var g = JSON.parse(f)
  378. } catch (d) {
  379. throw "parse json [" + c + "] failed : " + d
  380. }
  381. a(null, g)
  382. }
  383. })
  384. },
  385. mE: function(a) {
  386. return null != /(\.png)|(\.jpg)|(\.bmp)|(\.jpeg)|(\.gif)/.exec(a)
  387. },
  388. Ah: function(d, e, f) {
  389. function g() {
  390. this.removeEventListener("error", g, !1);
  391. a.crossOrigin && "anonymous" === a.crossOrigin.toLowerCase() ? (k.Yf = !1, c.uc(d), b.S.Ah(d, k, f)) : "function" === typeof f && f("load image failed")
  392. }
  393. function h() {
  394. this.removeEventListener("load", h, !1);
  395. this.removeEventListener("error", g, !1);
  396. b.S.Vc[d] = a;
  397. f && f(null, a)
  398. }
  399. var k = {
  400. Yf: !0
  401. };
  402. void 0 !== f ? k.Yf = null === e.Yf ? k.Yf : e.Yf : void 0 !== e && (f = e);
  403. var a = this.De(d);
  404. if (a) {
  405. return f && f(null, a), a
  406. }
  407. a = new Image;
  408. k.Yf && "file://" !== location.origin && (a.crossOrigin = "Anonymous");
  409. var c = this;
  410. b.Qa(a, "load", h);
  411. b.Qa(a, "error", g);
  412. a.src = d;
  413. return a
  414. },
  415. FQ: function(f, g, a) {
  416. var c = this,
  417. d = null,
  418. e = f.type;
  419. e ? (e = "." + e.toLowerCase(), d = f.src ? f.src : f.name + e) : (d = f, e = b.path.Yj(d));
  420. if (g = c.De(d)) {
  421. return a(null, g)
  422. }
  423. g = null;
  424. e && (g = c.du[e.toLowerCase()]);
  425. if (!g) {
  426. return b.error("loader for [" + e + "] not exists!"), a()
  427. }
  428. e = g.eB ? g.eB() : c.Jv;
  429. e = c.nV(e, d);
  430. b.Ma.ld.noCache && "string" === typeof e && (e = c.mG.test(e) ? e + ("\x26_t\x3d" + (new Date - 0)) : e + ("?_t\x3d" + (new Date - 0)));
  431. g.load(e, d, f, function(i, h) {
  432. i ? (b.log(i), c.Vc[d] = null, delete c.Vc[d], a()) : (c.Vc[d] = h, a(null, h))
  433. })
  434. },
  435. mG: /\?/,
  436. nV: function(f, a) {
  437. var c = this.CQ,
  438. d = b.path;
  439. if (void 0 !== f && void 0 === a) {
  440. a = f;
  441. var e = d.Yj(a),
  442. e = e ? e.toLowerCase() : "";
  443. f = (e = this.du[e]) ? e.eB ? e.eB() : this.Jv : this.Jv
  444. }
  445. a = b.path.join(f || "", a);
  446. if (a.match(/[\/(\\\\)]lang[\/(\\\\)]/i)) {
  447. if (c[a]) {
  448. return c[a]
  449. }
  450. d = d.Yj(a) || "";
  451. a = c[a] = a.substring(0, a.length - d.length) + "_" + b.Z.language + d
  452. }
  453. return a
  454. },
  455. load: function(f, a, c) {
  456. var d = this,
  457. e = arguments.length;
  458. if (0 === e) {
  459. throw "arguments error!"
  460. }
  461. 3 === e ? "function" === typeof a && (a = "function" === typeof c ? {
  462. lk: a,
  463. xl: c
  464. } : {
  465. xl: a,
  466. bT: c
  467. }) : 2 === e ? "function" === typeof a && (a = {
  468. xl: a
  469. }) : 1 === e && (a = {});
  470. f instanceof Array || (f = [f]);
  471. e = new ea(f, 0, function(g, h, j, i) {
  472. d.FQ(g, h, function(n) {
  473. if (n) {
  474. return j(n)
  475. }
  476. var k = Array.prototype.slice.call(arguments, 1);
  477. a.lk && a.lk.call(a.Kba, k[0], i.size, i.XA);
  478. j(null, k[0])
  479. })
  480. }, a.xl, a.bT);
  481. e.Un();
  482. return e
  483. },
  484. IF: function(f, g) {
  485. var a = this.Ek,
  486. c = [],
  487. d;
  488. for (d in f) {
  489. var e = f[d];
  490. a[d] = e;
  491. c.push(e)
  492. }
  493. this.load(c, g)
  494. },
  495. U7: function(e, a) {
  496. var c = this,
  497. d = c.De(e);
  498. d ? c.IF(d.filenames, a) : c.load(e, function(g, f) {
  499. c.IF(f[0].filenames, a)
  500. })
  501. },
  502. Gh: function(e, a) {
  503. if (e && a) {
  504. if ("string" === typeof e) {
  505. return this.du[e.trim().toLowerCase()] = a
  506. }
  507. for (var c = 0, d = e.length; c < d; c++) {
  508. this.du["." + e[c].trim().toLowerCase()] = a
  509. }
  510. }
  511. },
  512. De: function(a) {
  513. return this.Vc[a] || this.Vc[this.Ek[a]]
  514. },
  515. uc: function(d) {
  516. var a = this.Vc,
  517. c = this.Ek;
  518. delete a[d];
  519. delete a[c[d]];
  520. delete c[d]
  521. },
  522. D9: function() {
  523. var d = this.Vc,
  524. a = this.Ek,
  525. c;
  526. for (c in d) {
  527. delete d[c]
  528. }
  529. for (c in a) {
  530. delete a[c]
  531. }
  532. }
  533. };
  534. b.YA = function() {
  535. var e = arguments,
  536. f = e.length;
  537. if (1 > f) {
  538. return ""
  539. }
  540. var g = e[0],
  541. h = !0;
  542. "object" === typeof g && (h = !1);
  543. for (var a = 1; a < f; ++a) {
  544. var c = e[a];
  545. if (h) {
  546. for (;;) {
  547. var d = null;
  548. if ("number" === typeof c && (d = g.match(/(%d)|(%s)/))) {
  549. g = g.replace(/(%d)|(%s)/, c);
  550. break
  551. }
  552. g = (d = g.match(/%s/)) ? g.replace(/%s/, c) : g + (" " + c);
  553. break
  554. }
  555. } else {
  556. g += " " + c
  557. }
  558. }
  559. return g
  560. };
  561. (function() {
  562. function f() {
  563. b.ka && b.Ma.Np && b.ka.dispatchEvent(b.Ma.Np);
  564. b.Ma.Sk && (window.cancelAnimationFrame(b.Ma.Sk), b.Ma.tz())
  565. }
  566. function a() {
  567. b.ka && b.Ma.Mp && b.ka.dispatchEvent(b.Ma.Mp)
  568. }
  569. var c = window,
  570. d, e;
  571. b.Gi(document.hidden) ? b.Gi(document.mozHidden) ? b.Gi(document.msHidden) ? b.Gi(document.webkitHidden) || (d = "webkitHidden", e = "webkitvisibilitychange") : (d = "msHidden", e = "msvisibilitychange") : (d = "mozHidden", e = "mozvisibilitychange") : (d = "hidden", e = "visibilitychange");
  572. d ? b.Qa(document, e, function() {
  573. document[d] ? a() : f()
  574. }, !1) : (b.Qa(c, "blur", a, !1), b.Qa(c, "focus", f, !1)); - 1 < navigator.userAgent.indexOf("MicroMessenger") && (c.onfocus = function() {
  575. f()
  576. });
  577. "onpageshow" in window && "onpagehide" in window && (b.Qa(c, "pagehide", a, !1), b.Qa(c, "pageshow", f, !1));
  578. e = c = null
  579. })();
  580. b.log = b.warn = b.error = b.assert = function() {};
  581. b.yI = function(f, g) {
  582. for (var a = ["webgl", "experimental-webgl", "webkit-3d", "moz-webgl"], c = null, d = 0; d < a.length; ++d) {
  583. try {
  584. c = f.getContext(a[d], g)
  585. } catch (e) {}
  586. if (c) {
  587. break
  588. }
  589. }
  590. return c
  591. };
  592. b.tQ = function(y, a) {
  593. b.dc = 0;
  594. b.Lb = 1;
  595. b.Z = {};
  596. var c = b.Z;
  597. c.gM = "en";
  598. c.t_ = "zh";
  599. c.v_ = "fr";
  600. c.y_ = "it";
  601. c.w_ = "de";
  602. c.F_ = "es";
  603. c.u_ = "du";
  604. c.E_ = "ru";
  605. c.A_ = "ko";
  606. c.z_ = "ja";
  607. c.x_ = "hu";
  608. c.D_ = "pt";
  609. c.s_ = "ar";
  610. c.B_ = "no";
  611. c.C_ = "pl";
  612. c.dp = "iOS";
  613. c.VC = "Android";
  614. c.XC = "Windows";
  615. c.X_ = "Marmalade";
  616. c.WC = "Linux";
  617. c.V_ = "Bada";
  618. c.W_ = "Blackberry";
  619. c.Cw = "OS X";
  620. c.$_ = "WP8";
  621. c.Z_ = "WINRT";
  622. c.JM = "Unknown";
  623. c.UD = 0;
  624. c.p_ = 1;
  625. c.mZ = 2;
  626. c.D0 = 3;
  627. c.I_ = 4;
  628. c.G_ = 5;
  629. c.sZ = 6;
  630. c.tZ = 7;
  631. c.H_ = 8;
  632. c.L_ = 9;
  633. c.b_ = 10;
  634. c.r0 = 11;
  635. c.c0 = 12;
  636. c.F0 = 13;
  637. c.E0 = 14;
  638. c.nM = 100;
  639. c.vL = 101;
  640. c.Sr = "wechat";
  641. c.xC = "androidbrowser";
  642. c.qk = "ie";
  643. c.hw = "qqbrowser";
  644. c.zC = "mqqbrowser";
  645. c.Rr = "ucbrowser";
  646. c.wC = "360browser";
  647. c.yC = "baiduboxapp";
  648. c.Qr = "baidubrowser";
  649. c.vZ = "maxthon";
  650. c.gw = "opera";
  651. c.AC = "oupeng";
  652. c.am = "miuibrowser";
  653. c.Wi = "firefox";
  654. c.rk = "safari";
  655. c.Vi = "chrome";
  656. c.cL = "liebao";
  657. c.wZ = "qzone";
  658. c.BC = "sogou";
  659. c.dL = "unknown";
  660. c.wJ = !1;
  661. var d = [c.Qr, c.gw, c.Wi, c.Vi, c.rk],
  662. e = [c.dp, c.XC, c.Cw, c.WC],
  663. f = [c.Qr, c.gw, c.Wi, c.Vi, c.yC, c.rk, c.Rr, c.hw, c.zC, c.qk],
  664. g = window,
  665. h = g.navigator,
  666. k = document,
  667. m = k.documentElement,
  668. n = h.userAgent.toLowerCase();
  669. c.yh = -1 !== n.indexOf("mobile") || -1 !== n.indexOf("android");
  670. c.platform = c.yh ? c.nM : c.vL;
  671. var p = h.language,
  672. p = (p = p ? p : h.browserLanguage) ? p.split("-")[0] : c.gM;
  673. c.language = p;
  674. var p = c.dL,
  675. s = n.match(/sogou|qzone|liebao|micromessenger|qqbrowser|ucbrowser|360 aphone|360browser|baiduboxapp|baidubrowser|maxthon|trident|oupeng|opera|miuibrowser|firefox/i) || n.match(/chrome|safari/i);
  676. s && 0 < s.length ? (p = s[0], "micromessenger" === p ? p = c.Sr : "safari" === p && n.match(/android.*applewebkit/) ? p = c.xC : "trident" === p ? p = c.qk : "360 aphone" === p && (p = c.wC)) : n.indexOf("iphone") && n.indexOf("mobile") && (p = "safari");
  677. c.Sf = p;
  678. p = n.match(/(iPad|iPhone|iPod)/i) ? !0 : !1;
  679. n = n.match(/android/i) || h.platform.match(/android/i) ? !0 : !1;
  680. s = c.JM; - 1 !== h.appVersion.indexOf("Win") ? s = c.XC : p ? s = c.dp : -1 !== h.appVersion.indexOf("Mac") ? s = c.Cw : -1 !== h.appVersion.indexOf("X11") && -1 === h.appVersion.indexOf("Linux") ? s = c.Y_ : n ? s = c.VC : -1 !== h.appVersion.indexOf("Linux") && (s = c.WC);
  681. c.dk = s;
  682. c.y1 = -1 < f.indexOf(c.Sf);
  683. var f = parseInt(y[a.sr]),
  684. n = b.Lb,
  685. s = b.ac("Canvas"),
  686. r = b.tu = !0,
  687. r = p ? !window.WebGLRenderingContext || -1 === e.indexOf(c.dk) : !window.WebGLRenderingContext || -1 === d.indexOf(c.Sf) || -1 === e.indexOf(c.dk);
  688. if (1 === f || 0 === f && r || "file://" === location.origin) {
  689. n = b.dc
  690. }
  691. c.jP = function() {
  692. var o = document.createElement("canvas");
  693. o.width = 1;
  694. o.height = 1;
  695. o = o.getContext("2d");
  696. o.fillStyle = "#000";
  697. o.fillRect(0, 0, 1, 1);
  698. o.globalCompositeOperation = "multiply";
  699. var i = document.createElement("canvas");
  700. i.width = 1;
  701. i.height = 1;
  702. var j = i.getContext("2d");
  703. j.fillStyle = "#fff";
  704. j.fillRect(0, 0, 1, 1);
  705. o.drawImage(i, 0, 0, 1, 1);
  706. return 0 === o.getImageData(0, 0, 1, 1).data[0]
  707. };
  708. c.Xz = c.jP();
  709. n !== b.Lb || g.WebGLRenderingContext && b.yI(s, {
  710. stencil: !0,
  711. preserveDrawingBuffer: !0
  712. }) || (0 === f ? n = b.dc : b.tu = !1);
  713. if (n === b.dc) {
  714. try {
  715. s.getContext("2d")
  716. } catch (u) {
  717. b.tu = !1
  718. }
  719. }
  720. b.ua = n;
  721. try {
  722. c.Yz = !!(g.AudioContext || g.webkitAudioContext || g.mozAudioContext)
  723. } catch (t) {
  724. c.Yz = !1
  725. }
  726. try {
  727. var v = c.localStorage = g.localStorage;
  728. v.setItem("storage", "");
  729. v.removeItem("storage");
  730. v = null
  731. } catch (x) {
  732. "SECURITY_ERR" !== x.name && "QuotaExceededError" !== x.name || b.warn("Warning: localStorage isn't enabled. Please confirm browser cookie or privacy option"), c.localStorage = function() {}
  733. }
  734. d = c.CA = {
  735. canvas: !0
  736. };
  737. b.ua === b.Lb && (d.opengl = !0);
  738. if (void 0 !== m.ontouchstart || void 0 !== k.ontouchstart || h.msPointerEnabled) {
  739. d.touches = !0
  740. }
  741. void 0 !== m.onmouseup && (d.mouse = !0);
  742. void 0 !== m.onkeyup && (d.keyboard = !0);
  743. if (g.DeviceMotionEvent || g.DeviceOrientationEvent) {
  744. d.accelerometer = !0
  745. }
  746. c.u4 = function() {};
  747. c.i3 = function() {};
  748. c.a$ = function() {};
  749. c.w2 = function() {};
  750. c.g3 = function() {
  751. var i;
  752. i = "" + ("isMobile : " + this.yh + "\r\n");
  753. i += "language : " + this.language + "\r\n";
  754. i += "browserType : " + this.Sf + "\r\n";
  755. i += "capabilities : " + JSON.stringify(this.CA) + "\r\n";
  756. i += "os : " + this.dk + "\r\n";
  757. i += "platform : " + this.platform + "\r\n";
  758. b.log(i)
  759. };
  760. c.y8 = function(i) {
  761. window.open(i)
  762. }
  763. };
  764. b.S_ = 0;
  765. b.T_ = 1;
  766. b.Q_ = 2;
  767. b.R_ = 3;
  768. b.Nk = null;
  769. b.s = null;
  770. b.Oa = null;
  771. b.BP = null;
  772. b.fu = !1;
  773. b.gH = !1;
  774. b.FR = function(f) {
  775. var g, a;
  776. if (!b.gH) {
  777. b.gH = !0;
  778. var c = window,
  779. d = b.hb(f) || b.hb("#" + f),
  780. e;
  781. b.Ma.YG();
  782. "CANVAS" === d.tagName ? (g = g || d.width, a = a || d.height, e = b.yl = b.ac("DIV"), f = b.Oa = d, f.parentNode.insertBefore(e, f), f.bI(e), e.setAttribute("id", "Cocos2dGameContainer")) : ("DIV" !== d.tagName && b.log("Warning: target element is not a DIV or CANVAS"), g = g || d.clientWidth, a = a || d.clientHeight, e = b.yl = d, f = b.Oa = b.hb(b.ac("CANVAS")), d.appendChild(f));
  783. f.YH("gameCanvas");
  784. f.setAttribute("width", g || 480);
  785. f.setAttribute("height", a || 320);
  786. f.setAttribute("tabindex", 99);
  787. f.style.outline = "none";
  788. d = e.style;
  789. d.width = (g || 480) + "px";
  790. d.height = (a || 320) + "px";
  791. d.margin = "0 auto";
  792. d.position = "relative";
  793. d.overflow = "hidden";
  794. e.top = "100%";
  795. b.ua === b.Lb && (b.s = b.eca = b.yI(f, {
  796. stencil: !0,
  797. preserveDrawingBuffer: !0,
  798. antialias: !b.Z.yh,
  799. alpha: !1
  800. }));
  801. b.s ? (c.gl = b.s, b.Nk = new b.GL(b.s), b.fu = !0, b.Ra.uQ(), b.Ge.$h()) : (b.s = new b.Vr(f.getContext("2d")), b.Nk = b.JC ? new b.JC(b.s) : null);
  802. b.BP = e;
  803. b.log(b.pw);
  804. b.qR();
  805. b.Z.yh && (g = b.ac("style"), g.type = "text/css", document.body.appendChild(g), g.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);}");
  806. b.view = b.nw.py();
  807. b.uJ.OW(b.Oa);
  808. b.I = b.Ja.py();
  809. b.I.Tv && b.I.Tv(b.view);
  810. b.N = b.I.Ea();
  811. b.n$ = new b.dD;
  812. b.BW = new b.WM
  813. }
  814. };
  815. b.oE = function() {
  816. if (b.ua !== b.Lb) {
  817. throw "This feature supports WebGL render mode only."
  818. }
  819. };
  820. b.OF = !1;
  821. b.qR = function() {
  822. b.OF = !1;
  823. b.Oa.oncontextmenu = function() {
  824. if (!b.OF) {
  825. return !1
  826. }
  827. }
  828. };
  829. b.Ma = {
  830. tL: 0,
  831. rL: 1,
  832. MZ: 2,
  833. DC: 3,
  834. sL: 4,
  835. NZ: 5,
  836. qL: 6,
  837. qw: "game_on_hide",
  838. Zr: "game_on_show",
  839. Mp: null,
  840. Np: null,
  841. i1: [],
  842. rf: {
  843. UA: "engineDir",
  844. N2: "dependencies",
  845. Oq: "debugMode",
  846. hY: "showFPS",
  847. Qq: "frameRate",
  848. id: "id",
  849. sr: "renderMode",
  850. $V: "jsList",
  851. cT: "classReleaseMode"
  852. },
  853. BG: !1,
  854. bu: !1,
  855. td: !0,
  856. Sk: null,
  857. Iy: null,
  858. vF: null,
  859. ld: null,
  860. LB: null,
  861. x8: null,
  862. W$: function(a) {
  863. this.ld[this.rf.Qq] = a;
  864. this.Sk && window.cancelAnimationFrame(this.Sk);
  865. this.td = !0;
  866. this.YG();
  867. this.tz()
  868. },
  869. YG: function() {
  870. this.Iy = new Date;
  871. this.vF = 1000 / b.Ma.ld[b.Ma.rf.Qq];
  872. b.Z.dk === b.Z.dp && b.Z.Sf === b.Z.Sr || 60 !== b.Ma.ld[b.Ma.rf.Qq] ? (window.WB = this.pH, window.cancelAnimationFrame = this.yE) : (window.WB = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || this.pH, window.cancelAnimationFrame = window.cancelAnimationFrame || window.cancelRequestAnimationFrame || window.msCancelRequestAnimationFrame || window.mozCancelRequestAnimationFrame || window.oCancelRequestAnimationFrame || window.webkitCancelRequestAnimationFrame || window.msCancelAnimationFrame || window.mozCancelAnimationFrame || window.webkitCancelAnimationFrame || window.oCancelAnimationFrame || this.yE)
  873. },
  874. pH: function(e) {
  875. var a = (new Date).getTime(),
  876. c = Math.max(0, b.Ma.vF - (a - b.Ma.Iy)),
  877. d = window.setTimeout(function() {
  878. e()
  879. }, c);
  880. b.Ma.Iy = a + c;
  881. return d
  882. },
  883. yE: function(a) {
  884. window.clearTimeout(a)
  885. },
  886. tz: function() {
  887. var d = this,
  888. a, c = b.I;
  889. c.tX(d.ld[d.rf.hY]);
  890. a = function() {
  891. d.td || (c.mW(), d.Sk && window.cancelAnimationFrame(d.Sk), d.Sk = window.WB(a))
  892. };
  893. window.WB(a);
  894. d.td = !1
  895. },
  896. Z9: function() {
  897. b.I.LJ(0);
  898. b.Fc && b.Fc.end();
  899. b.Ma.LB()
  900. },
  901. eX: function(d) {
  902. function a() {
  903. d && (c.ld[c.rf.id] = d);
  904. c.BG || c.HW(function() {
  905. c.bu = !0
  906. });
  907. b.tu && (c.kP = setInterval(function() {
  908. c.bu && (b.FR(c.ld[c.rf.id]), c.tz(), c.Mp = c.Mp || new b.vk(c.qw), c.Mp.setUserData(c), c.Np = c.Np || new b.vk(c.Zr), c.Np.setUserData(c), c.LB(), clearInterval(c.kP))
  909. }, 10))
  910. }
  911. var c = this;
  912. document.body ? a() : b.Qa(window, "load", function() {
  913. this.removeEventListener("load", arguments.callee, !1);
  914. a()
  915. }, !1)
  916. },
  917. mQ: function() {
  918. function g(i) {
  919. i[h.UA] = i[h.UA] || "frameworks/cocos2d-html5";
  920. null == i[h.Oq] && (i[h.Oq] = 0);
  921. i[h.Qq] = i[h.Qq] || 60;
  922. null == i[h.sr] && (i[h.sr] = 1);
  923. return i
  924. }
  925. var h = this.rf;
  926. if (document.ccConfig) {
  927. this.ld = g(document.ccConfig)
  928. } else {
  929. try {
  930. for (var k = document.getElementsByTagName("script"), m = 0; m < k.length; m++) {
  931. var n = k[m].getAttribute("cocos");
  932. if ("" === n || n) {
  933. break
  934. }
  935. }
  936. var a, c, d;
  937. if (m < k.length) {
  938. if (a = k[m].src) {
  939. d = /(.*)\//.exec(a)[0], b.S.Jv = d, a = b.path.join(d, "project.json")
  940. }
  941. c = b.S.dG(a)
  942. }
  943. c || (c = b.S.dG("project.json"));
  944. var e = JSON.parse(c);
  945. this.ld = g(e || {})
  946. } catch (f) {
  947. b.log("Failed to read or parse project.json"), this.ld = g({})
  948. }
  949. }
  950. b.tQ(this.ld, h)
  951. },
  952. zQ: {},
  953. CF: function(g, h, k) {
  954. var m = this.zQ;
  955. if (m[h]) {
  956. return null
  957. }
  958. k = k || "";
  959. var n = [],
  960. a = g[h];
  961. if (!a) {
  962. throw "can not find module [" + h + "]"
  963. }
  964. h = b.path;
  965. for (var c = 0, d = a.length; c < d; c++) {
  966. var e = a[c];
  967. if (!m[e]) {
  968. var f = h.Yj(e);
  969. f ? ".js" === f.toLowerCase() && n.push(h.join(k, e)) : (f = this.CF(g, e, k)) && (n = n.concat(f));
  970. m[e] = 1
  971. }
  972. }
  973. return n
  974. },
  975. HW: function(e) {
  976. var f = this,
  977. g = f.ld,
  978. h = f.rf,
  979. a = g[h.UA],
  980. c = b.S;
  981. if (!b.tu) {
  982. throw "The renderer doesn't support the renderMode " + g[h.sr]
  983. }
  984. f.BG = !0;
  985. var d = g[h.$V] || [];
  986. b.Ia ? c.AJ("", d, function(i) {
  987. if (i) {
  988. throw i
  989. }
  990. f.bu = !0;
  991. e && e()
  992. }) : (h = b.path.join(a, "moduleConfig.json"), c.IB(h, function(i, m) {
  993. if (i) {
  994. throw i
  995. }
  996. var r = g.modules || [],
  997. k = m.module,
  998. n = [];
  999. b.ua === b.Lb ? r.splice(0, 0, "shaders") : 0 > r.indexOf("core") && r.splice(0, 0, "core");
  1000. for (var p = 0, o = r.length; p < o; p++) {
  1001. var j = f.CF(k, r[p], a);
  1002. j && (n = n.concat(j))
  1003. }
  1004. n = n.concat(d);
  1005. b.S.AJ(n, function(s) {
  1006. if (s) {
  1007. throw s
  1008. }
  1009. f.bu = !0;
  1010. e && e()
  1011. })
  1012. }))
  1013. }
  1014. };
  1015. b.Ma.mQ();
  1016. Function.prototype.bind = Function.prototype.bind || function(f) {
  1017. function a() {
  1018. return e.apply(this instanceof c && f ? this : f, d.concat(Array.prototype.slice.call(arguments)))
  1019. }
  1020. function c() {}
  1021. if (!b.nd(this)) {
  1022. throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable")
  1023. }
  1024. var d = Array.prototype.slice.call(arguments, 1),
  1025. e = this;
  1026. c.prototype = this.prototype;
  1027. a.prototype = new c;
  1028. return a
  1029. };
  1030. b.j = {
  1031. uC: "cc.ActionManager.addAction(): action must be non-null",
  1032. $K: "cocos2d: removeAction: Target not found",
  1033. nZ: "cc.ActionManager.removeActionByTag(): an invalid tag",
  1034. oZ: "cc.ActionManager.removeActionByTag(): target must be non-null",
  1035. YK: "cc.ActionManager.getActionByTag(): an invalid tag",
  1036. ZK: "cocos2d : getActionByTag(tag \x3d %s): Action not found",
  1037. gT: "cocos2d: **** WARNING **** CC_ENABLE_PROFILERS is defined. Disable it when you finish profiling (from ccConfig.js)",
  1038. hT: "Expected 'data' dict, but not found. Config file: %s",
  1039. iT: "Please load the resource first : %s",
  1040. BL: "cocos2d: Director: Error in gettimeofday",
  1041. CL: "cocos2d: Director: unrecognized projection",
  1042. a_: "cocos2d: Director: unrecognized projection",
  1043. AL: "cocos2d: Director: Error in gettimeofday",
  1044. zL: "running scene should not null",
  1045. IC: "the scene should not null",
  1046. Hq: "element type is wrong!",
  1047. sN: "CCSheduler#scheduleCallback. Callback already scheduled. Updating interval from:%s to %s",
  1048. i0: "cc.scheduler.scheduleCallbackForTarget(): callback_fn should be non-null.",
  1049. tN: "cc.scheduler.scheduleCallbackForTarget(): target should be non-null.",
  1050. qN: "cc.Scheduler.pauseTarget():target should be non-null",
  1051. rN: "cc.Scheduler.resumeTarget():target should be non-null",
  1052. pN: "cc.Scheduler.isTargetPaused():target should be non-null",
  1053. wM: "getZOrder is deprecated. Please use getLocalZOrder instead.",
  1054. GM: "setZOrder is deprecated. Please use setLocalZOrder instead.",
  1055. uM: "RotationX !\x3d RotationY. Don't know which one to return",
  1056. vM: "ScaleX !\x3d ScaleY. Don't know which one to return",
  1057. M_: "An Node can't be added as a child of itself.",
  1058. N_: "child already added. It can't be added again",
  1059. rM: "child must be non-null",
  1060. AM: "removeFromParentAndCleanup is deprecated. Use removeFromParent instead",
  1061. sM: "boundingBox is deprecated. Use getBoundingBox instead",
  1062. yM: "argument tag is an invalid tag",
  1063. zM: "cocos2d: removeChildByTag(tag \x3d %s): child not found!",
  1064. P_: "removeAllChildrenWithCleanup is deprecated. Use removeAllChildren instead",
  1065. HM: "cc.Node.stopActionBy(): argument tag an invalid tag",
  1066. tM: "cc.Node.getActionByTag(): argument tag is an invalid tag",
  1067. CM: "resumeSchedulerAndActions is deprecated, please use resume instead.",
  1068. xM: "pauseSchedulerAndActions is deprecated, please use pause instead.",
  1069. qM: "Unknown callback function",
  1070. BM: "child must be non-null",
  1071. DM: "cc.Node.runAction(): action must be non-null",
  1072. EM: "callback function must be non-null",
  1073. FM: "interval must be positive",
  1074. O_: "cocos2d: Could not initialize cc.AtlasNode. Invalid Texture.",
  1075. aL: "cc.AtlasNode.updateAtlasValues(): Shall be overridden in subclasses",
  1076. rZ: "",
  1077. vC: "cocos2d: Could not initialize cc.AtlasNode. Invalid Texture.",
  1078. PO: "cc._EventListenerKeyboard.checkAvailable(): Invalid EventListenerKeyboard!",
  1079. RO: "cc._EventListenerTouchOneByOne.checkAvailable(): Invalid EventListenerTouchOneByOne!",
  1080. QO: "cc._EventListenerTouchAllAtOnce.checkAvailable(): Invalid EventListenerTouchAllAtOnce!",
  1081. OO: "cc._EventListenerAcceleration.checkAvailable(): _onAccelerationEvent must be non-nil",
  1082. OL: "Invalid parameter.",
  1083. Ts: "Don't call this method if the event is for touch.",
  1084. VT: "Invalid scene graph priority!",
  1085. WT: "0 priority is forbidden for fixed priority since it's used for scene graph based priority.",
  1086. $T: "Invalid listener type!",
  1087. aU: "Can't set fixed priority with scene graph based listener.",
  1088. XT: "Invalid parameters.",
  1089. YT: "listener must be a cc.EventListener object when adding a fixed priority listener",
  1090. ZT: "The listener has been registered, please don't register it again.",
  1091. jM: "parameters should not be ending with null in Javascript",
  1092. kM: "Invalid index in MultiplexLayer switchTo message",
  1093. lM: "Invalid index in MultiplexLayer switchTo message",
  1094. iM: "cc.Layer.addLayer(): layer should be non-null",
  1095. HL: "Resolution not valid",
  1096. IL: "should set resolutionPolicy",
  1097. MV: "The touches is more than MAX_TOUCHES, nUnusedIndex \x3d %s",
  1098. wo: "cc.swap is being modified from original macro, please check usage",
  1099. Pn: "WebGL error %s",
  1100. GS: "cocos2d: cc.AnimationCache: No animations were found in provided dictionary.",
  1101. HS: "cc.AnimationCache. Invalid animation format",
  1102. OS: "cc.AnimationCache.addAnimations(): File could not be found",
  1103. IS: "cocos2d: cc.AnimationCache: Animation '%s' found in dictionary without any frames - cannot add to animation cache.",
  1104. JS: "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.",
  1105. KS: "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.",
  1106. LS: "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.",
  1107. MS: "cocos2d: CCAnimationCache: Animation '%s' found in dictionary without any frames - cannot add to animation cache.",
  1108. NS: "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.",
  1109. PS: "cc.AnimationCache.addAnimations(): Invalid texture file name",
  1110. KN: "cc.Sprite.reorderChild(): this child is not in children list",
  1111. FN: "cc.Sprite.ignoreAnchorPointForPosition(): it is invalid in cc.Sprite when using SpriteBatchNode",
  1112. NN: "cc.Sprite.setDisplayFrameWithAnimationName(): Frame not found",
  1113. ON: "cc.Sprite.setDisplayFrameWithAnimationName(): Invalid frame index",
  1114. MN: "setDisplayFrame is deprecated, please use setSpriteFrame instead.",
  1115. BN: "cc.Sprite._updateBlendFunc(): _updateBlendFunc doesn't work when the sprite is rendered using a cc.CCSpriteBatchNode",
  1116. HN: "cc.Sprite.initWithSpriteFrame(): spriteFrame should be non-null",
  1117. IN: "cc.Sprite.initWithSpriteFrameName(): spriteFrameName should be non-null",
  1118. JN: " is null, please check.",
  1119. GN: "cc.Sprite.initWithFile(): filename should be non-null",
  1120. PN: "cc.Sprite.setDisplayFrameWithAnimationName(): animationName must be non-null",
  1121. LN: "cc.Sprite.reorderChild(): child should be non-null",
  1122. CN: "cc.Sprite.addChild(): cc.Sprite only supports cc.Sprites as children when using cc.SpriteBatchNode",
  1123. DN: "cc.Sprite.addChild(): cc.Sprite only supports a sprite using same texture as children when using cc.SpriteBatchNode",
  1124. k0: "cc.Sprite.addChild(): child should be non-null",
  1125. RN: "cc.Sprite.texture setter: Batched sprites should use the same texture as the batchnode",
  1126. o0: "cc.SpriteBatchNode.updateQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",
  1127. m0: "cc.SpriteBatchNode.insertQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",
  1128. jD: "cc.SpriteBatchNode.addChild(): cc.SpriteBatchNode only supports cc.Sprites as children",
  1129. EN: "cc.SpriteBatchNode.addChild(): cc.Sprite is not using the same texture",
  1130. l0: "Sprite.initWithTexture(): Argument must be non-nil ",
  1131. QN: "Invalid spriteFrameName",
  1132. SN: "Invalid argument: cc.Sprite.texture setter expects a CCTexture2D.",
  1133. p0: "cc.SpriteBatchNode.updateQuadFromSprite(): sprite should be non-null",
  1134. n0: "cc.SpriteBatchNode.insertQuadFromSprite(): sprite should be non-null",
  1135. uN: "cc.SpriteBatchNode.addQuadFromSprite(): SpriteBatchNode only supports cc.Sprites as children",
  1136. wN: "cocos2d: CCSpriteBatchNode: resizing TextureAtlas capacity from %s to %s.",
  1137. xN: "cocos2d: WARNING: Not enough memory to resize the atlas",
  1138. zN: "cc.SpriteBatchNode.addChild(): Child doesn't belong to Sprite",
  1139. yN: "cc.SpriteBatchNode.addChild(): sprite batch node should contain the child",
  1140. vN: "cc.SpriteBatchNode.addQuadFromSprite(): child should be non-null",
  1141. AN: "cc.SpriteBatchNode.addChild(): child should be non-null",
  1142. pY: "cocos2d: WARNING: originalWidth/Height not found on the cc.SpriteFrame. AnchorPoint won't work as expected. Regenrate the .plist",
  1143. qY: "cocos2d: WARNING: an alias with name %s already exists",
  1144. oY: "cocos2d: WARNING: Sprite frame: %s has already been added by another source, please fix name conflit",
  1145. mba: "cocos2d: cc.SpriteFrameCahce: Frame %s not found",
  1146. HK: "Please load the resource first : %s",
  1147. IK: "cc.SpriteFrameCache.addSpriteFrames(): plist should be non-null",
  1148. rY: "Argument must be non-nil",
  1149. kL: "cc.SpriteBatchNode.updateQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",
  1150. iL: "cc.SpriteBatchNode.insertQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",
  1151. FZ: "cc.SpriteBatchNode.addChild(): cc.SpriteBatchNode only supports cc.Sprites as children",
  1152. hL: "Sprite.initWithTexture(): Argument must be non-nil ",
  1153. fL: "cc.Sprite.addChild(): child should be non-null",
  1154. GZ: "Invalid spriteFrameName",
  1155. HZ: "Invalid argument: cc.Sprite texture setter expects a CCTexture2D.",
  1156. lL: "cc.SpriteBatchNode.updateQuadFromSprite(): sprite should be non-null",
  1157. jL: "cc.SpriteBatchNode.insertQuadFromSprite(): sprite should be non-null",
  1158. gL: "cc.SpriteBatchNode.addChild(): child should be non-null",
  1159. kO: "cocos2d: Could not open file: %s",
  1160. qD: "cc.TextureAtlas.insertQuad(): invalid totalQuads",
  1161. lO: "cc.TextureAtlas.initWithTexture():texture should be non-null",
  1162. vO: "cc.TextureAtlas.updateQuad(): quad should be non-null",
  1163. wO: "cc.TextureAtlas.updateQuad(): Invalid index",
  1164. oO: "cc.TextureAtlas.insertQuad(): Invalid index",
  1165. pO: "cc.TextureAtlas.insertQuad(): Invalid index + amount",
  1166. mO: "cc.TextureAtlas.insertQuadFromIndex(): Invalid newIndex",
  1167. nO: "cc.TextureAtlas.insertQuadFromIndex(): Invalid fromIndex",
  1168. tO: "cc.TextureAtlas.removeQuadAtIndex(): Invalid index",
  1169. uO: "cc.TextureAtlas.removeQuadsAtIndex(): index + amount out of bounds",
  1170. qO: "cc.TextureAtlas.moveQuadsFromIndex(): move is out of bounds",
  1171. rO: "cc.TextureAtlas.moveQuadsFromIndex(): Invalid newIndex",
  1172. sO: "cc.TextureAtlas.moveQuadsFromIndex(): Invalid oldIndex",
  1173. FY: "TextureCache:addPVRTCImage does not support on HTML5",
  1174. DY: "TextureCache:addPVRTCImage does not support on HTML5",
  1175. KY: "textureForKey is deprecated. Please use getTextureForKey instead.",
  1176. EY: "addPVRImage does not support on HTML5",
  1177. GY: "cocos2d: Couldn't add UIImage in TextureCache",
  1178. IY: "cocos2d: '%s' id\x3d%s %s x %s",
  1179. MK: "cocos2d: '%s' id\x3d HTMLCanvasElement %s x %s",
  1180. JY: "cocos2d: TextureCache dumpDebugInfo: %s textures, HTMLCanvasElement for %s KB (%s MB)",
  1181. HY: "cc.Texture.addUIImage(): image should be non-null",
  1182. bO: "initWithETCFile does not support on HTML5",
  1183. fO: "initWithPVRFile does not support on HTML5",
  1184. hO: "initWithPVRTCData does not support on HTML5",
  1185. YN: "cc.Texture.addImage(): path should be non-null",
  1186. dO: "cocos2d: cc.Texture2D. Can't create Texture. UIImage is nil",
  1187. eO: "cocos2d: WARNING: Image (%s x %s) is bigger than the supported %s x %s",
  1188. jO: "initWithString isn't supported on cocos2d-html5",
  1189. cO: "initWithETCFile does not support on HTML5",
  1190. gO: "initWithPVRFile does not support on HTML5",
  1191. iO: "initWithPVRTCData does not support on HTML5",
  1192. $N: "bitsPerPixelForFormat: %s, cannot give useful result, it's a illegal pixel format",
  1193. XN: "cocos2d: cc.Texture2D: Using RGB565 texture since image has no alpha",
  1194. ZN: "cc.Texture.addImage(): path should be non-null",
  1195. aO: "NSInternalInconsistencyException",
  1196. Og: "Missing file: %s",
  1197. OJ: "cc.radiansToDegress() should be called cc.radiansToDegrees()",
  1198. Rw: "Rect width exceeds maximum margin: %s",
  1199. Qw: "Rect height exceeds maximum margin: %s",
  1200. PL: "If program goes here, there should be event in dispatch.",
  1201. QL: "_inDispatch should be 1 here."
  1202. };
  1203. b.IQ = function(e) {
  1204. if (b.Oa) {
  1205. var a = b.HQ,
  1206. c = document;
  1207. if (!a) {
  1208. var d = c.createElement("Div"),
  1209. a = d.style;
  1210. d.setAttribute("id", "logInfoDiv");
  1211. b.Oa.parentNode.appendChild(d);
  1212. d.setAttribute("width", "200");
  1213. d.setAttribute("height", b.Oa.height);
  1214. a.zIndex = "99999";
  1215. a.position = "absolute";
  1216. a.top = "0";
  1217. a.left = "0";
  1218. a = b.HQ = c.createElement("textarea");
  1219. c = a.style;
  1220. a.setAttribute("rows", "20");
  1221. a.setAttribute("cols", "30");
  1222. a.setAttribute("disabled", !0);
  1223. d.appendChild(a);
  1224. c.backgroundColor = "transparent";
  1225. c.borderBottom = "1px solid #cccccc";
  1226. c.borderRightWidth = "0px";
  1227. c.borderLeftWidth = "0px";
  1228. c.borderTopWidth = "0px";
  1229. c.borderTopStyle = "none";
  1230. c.borderRightStyle = "none";
  1231. c.borderLeftStyle = "none";
  1232. c.padding = "0px";
  1233. c.margin = 0
  1234. }
  1235. a.value = a.value + e + "\r\n";
  1236. a.scrollTop = a.scrollHeight
  1237. }
  1238. };
  1239. b.tF = function(c) {
  1240. if (b.ar(c)) {
  1241. try {
  1242. return JSON.stringify(c)
  1243. } catch (a) {
  1244. return ""
  1245. }
  1246. } else {
  1247. return c
  1248. }
  1249. };
  1250. b.nQ = function() {
  1251. var d = b.Ma.ld[b.Ma.rf.Oq],
  1252. a = b.Ma;
  1253. if (d !== a.tL) {
  1254. var c;
  1255. d > a.DC ? (c = b.IQ.bind(b), b.error = function() {
  1256. c("ERROR : " + b.YA.apply(b, arguments))
  1257. }, b.assert = function(g, e) {
  1258. if (!g && e) {
  1259. for (var f = 2; f < arguments.length; f++) {
  1260. e = e.replace(/(%s)|(%d)/, b.tF(arguments[f]))
  1261. }
  1262. c("Assert: " + e)
  1263. }
  1264. }, d !== a.qL && (b.warn = function() {
  1265. c("WARN : " + b.YA.apply(b, arguments))
  1266. }), d === a.sL && (b.log = function() {
  1267. c(b.YA.apply(b, arguments))
  1268. })) : console && console.log.apply && (b.error = function() {
  1269. return console.error.apply(console, arguments)
  1270. }, b.assert = function(g, e) {
  1271. if (!g && e) {
  1272. for (var f = 2; f < arguments.length; f++) {
  1273. e = e.replace(/(%s)|(%d)/, b.tF(arguments[f]))
  1274. }
  1275. throw e
  1276. }
  1277. }, d !== a.DC && (b.warn = function() {
  1278. return console.warn.apply(console, arguments)
  1279. }), d === a.rL && (b.log = function() {
  1280. return console.log.apply(console, arguments)
  1281. }))
  1282. }
  1283. };
  1284. b.nQ();
  1285. b.S.hW = function(f, a) {
  1286. var c = this,
  1287. d = this.cv(),
  1288. e = "load " + f + " failed!";
  1289. d.open("GET", f, !0);
  1290. /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent) ? (d.setRequestHeader("Accept-Charset", "x-user-defined"), d.onreadystatechange = function() {
  1291. if (4 === d.readyState && 200 === d.status) {
  1292. var g = b.tE(d.responseBody);
  1293. a(null, c.su(g))
  1294. } else {
  1295. a(e)
  1296. }
  1297. }) : (d.overrideMimeType && d.overrideMimeType("text/plain; charset\x3dx-user-defined"), d.onload = function() {
  1298. 4 === d.readyState && 200 === d.status ? a(null, c.su(d.responseText)) : a(e)
  1299. });
  1300. d.send(null)
  1301. };
  1302. b.S.su = function(d) {
  1303. if (!d) {
  1304. return null
  1305. }
  1306. for (var a = new Uint8Array(d.length), c = 0; c < d.length; c++) {
  1307. a[c] = d.charCodeAt(c) & 255
  1308. }
  1309. return a
  1310. };
  1311. b.S.V7 = function(d) {
  1312. var a = this.cv(),
  1313. c = "load " + d + " failed!";
  1314. a.open("GET", d, !1);
  1315. d = null;
  1316. if (/msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent)) {
  1317. a.setRequestHeader("Accept-Charset", "x-user-defined");
  1318. a.send(null);
  1319. if (200 !== a.status) {
  1320. return b.log(c), null
  1321. }(a = b.tE(a.responseBody)) && (d = this.su(a))
  1322. } else {
  1323. a.overrideMimeType && a.overrideMimeType("text/plain; charset\x3dx-user-defined");
  1324. a.send(null);
  1325. if (200 !== a.status) {
  1326. return b.log(c), null
  1327. }
  1328. d = this.su(a.responseText)
  1329. }
  1330. return d
  1331. };
  1332. var Uint8Array = Uint8Array || Array;
  1333. if (/msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent)) {
  1334. var fa = b.ac("script");
  1335. fa.type = "text/vbscript";
  1336. fa.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';
  1337. document.body.appendChild(fa);
  1338. b.tE = function(e) {
  1339. for (var a = {}, c = 0; 256 > c; c++) {
  1340. for (var d = 0; 256 > d; d++) {
  1341. a[String.fromCharCode(c + 256 * d)] = String.fromCharCode(c) + String.fromCharCode(d)
  1342. }
  1343. }
  1344. c = IEBinaryToArray_ByteStr(e);
  1345. e = IEBinaryToArray_ByteStr_Last(e);
  1346. return c.replace(/[\s\S]/g, function(f) {
  1347. return a[f]
  1348. }) + e
  1349. }
  1350. }
  1351. b = b || {};
  1352. b.iG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAA8CAYAAADc3IdaAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6RUE0MDhDRkJEOTBEMTFFNUFEMTY4NDc1NjkyNTJCRjEiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6RUE0MDhDRkNEOTBEMTFFNUFEMTY4NDc1NjkyNTJCRjEiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpFQTQwOENGOUQ5MEQxMUU1QUQxNjg0NzU2OTI1MkJGMSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpFQTQwOENGQUQ5MEQxMUU1QUQxNjg0NzU2OTI1MkJGMSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Phgsdn8AAACwSURBVHja7NRBEQAACMMwwL/noWN3iYQ+ukkGoMFJABgWgGEBhgVgWACGBRgWgGEBGBZgWACGBWBYgGEBGBaAYQGGBWBYAIYFGBaAYQEYFmBYAIYFYFiAYQEYFoBhAYYFYFiAYQEYFoBhAYYFYFgAhgUYFoBhARgWYFgAhgVgWIBhARgWgGEBhgVgWACGBRgWgGEBGBZgWACGBWBYgGEBGBaAYQGGBWBYgGEBdHgBBgBpUgN1U79AxAAAAABJRU5ErkJggg==";
  1353. b.eG = "data:image/PEG;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAA8AAD/4QMsaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjUtYzAxNCA3OS4xNTE0ODEsIDIwMTMvMDMvMTMtMTI6MDk6MTUgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCBDQyAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpDOTczODY2RUQxRjExMUU0QTdGRDk1NkE2RjRFNEVCRiIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpDOTczODY2RkQxRjExMUU0QTdGRDk1NkE2RjRFNEVCRiI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkM5NzM4NjZDRDFGMTExRTRBN0ZEOTU2QTZGNEU0RUJGIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkM5NzM4NjZERDFGMTExRTRBN0ZEOTU2QTZGNEU0RUJGIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+/+4ADkFkb2JlAGTAAAAAAf/bAIQABgQEBAUEBgUFBgkGBQYJCwgGBggLDAoKCwoKDBAMDAwMDAwQDA4PEA8ODBMTFBQTExwbGxscHx8fHx8fHx8fHwEHBwcNDA0YEBAYGhURFRofHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8f/8AAEQgAtAC0AwERAAIRAQMRAf/EAaIAAAAHAQEBAQEAAAAAAAAAAAQFAwIGAQAHCAkKCwEAAgIDAQEBAQEAAAAAAAAAAQACAwQFBgcICQoLEAACAQMDAgQCBgcDBAIGAnMBAgMRBAAFIRIxQVEGE2EicYEUMpGhBxWxQiPBUtHhMxZi8CRygvElQzRTkqKyY3PCNUQnk6OzNhdUZHTD0uIIJoMJChgZhJRFRqS0VtNVKBry4/PE1OT0ZXWFlaW1xdXl9WZ2hpamtsbW5vY3R1dnd4eXp7fH1+f3OEhYaHiImKi4yNjo+Ck5SVlpeYmZqbnJ2en5KjpKWmp6ipqqusra6voRAAICAQIDBQUEBQYECAMDbQEAAhEDBCESMUEFURNhIgZxgZEyobHwFMHR4SNCFVJicvEzJDRDghaSUyWiY7LCB3PSNeJEgxdUkwgJChgZJjZFGidkdFU38qOzwygp0+PzhJSktMTU5PRldYWVpbXF1eX1RlZmdoaWprbG1ub2R1dnd4eXp7fH1+f3OEhYaHiImKi4yNjo+DlJWWl5iZmpucnZ6fkqOkpaanqKmqq6ytrq+v/aAAwDAQACEQMRAD8A4fd3ixERqR6p336AeOWY4WglDLK5k/etVq9K7ZliIDWSiYgySBwSRWvvUb1ybWUytp39TmzFixqxPvvk4tUgmklt9YtfUK1jLFQ3+UADTf2yR3abIKUpC0MjI5NPD8O2VU2mWzIdHtmmZYq1SoIH9MuiLdZqs3CLek+VPId1fsrQwEgEc26KvzY7ZkERiLk8pn1WbPIxxi/uD1PSvJGkadGJrwrKV3o3wxD/AJqymepkdo7NmLsqEBx55cXv2imE3mC3hIjtYeca7VPwLTwUAYx0xPMsM/beOB4cceIfIfBttT0a9UJewgcunqqGH0MMHgzj9LYO0tLmFZRV/wA4bfNA3nkbQb9S9q/pE9ChEifcTX8cI1Mo7SCy7Hwz9WKXD7jYYpqn5W3qlmgVbhOv7s0b/gTTLI54Hns48tJq8X0+seXP5MJ1fyVdROUkhZGB2VlKn8ct4ARsnH2vLGamDE+bHNQ8uXSwlWJ/djjGtKmhNSB4da5WYEO4wdrRl1Se60yVLcq6MGrsdgKe+VkbOzx62MuqUmwJLBgaMCAK03+nKhFy45wuW3OyMSI12HcKO9B74gNgyhq4rSkSmrdGP8o6bU2yZPc2CS6qRAFSxVQOQOxr3p128MjdIEt1CNQ7tIx/d7lQd9/lgq2a2WyVqmNlJ6kL8q9Mpy4AeTOOUjmgvTfnwp8VaUzB4TddXK4hV9GPvIZZWlJHxsajuAOlRmVEbKVeOSrmq7noB0HiKHJ2wR8DUoBuOxP9MlbVJHW4VD6q15AbbVFemTiGslMbST0yCSGQ9QK7Dv4ZMNUgmNzpyXMYljoT9oH260ywwtoM6T3yppzPMgI3Wn3ZPFj3ec7Z1HDEvovQoBpHlaNqUkKerxPd5Ps1+imU5PXloONpz+W0fGfqri+MuSEjt9U1WTmaulf7xto1+X9mZJnjxB02PBqtabO47z9ITVNM0nTI/rF9KrMP2pNlr/kr3zFlmnkNB3eLs7TaQceUgnz5fAIcecNAmkMMyERdFd0BUj5CpH3Y/lcg3HNj/L2lyHhmDw+cdv2ImLTtFvP32n3Hpv15QP0+a9Rg8bJHaQv3tseztLl9WGXCf6B/QvNvr1t9iSO9jH7L/C/3/wBuDixS6cLPwdbi+kxyx89pLJdVtXX0dTtGirsRKvNP1ZIYTzgba5dpQ+nPCUP6wsIC68n+WNUQtb0jY/75YEfSjVph/MZI7S+1h/JmlzC8Rr+qf0MV1j8p5mBNq0c4/l+w33Nt+OWDUwPPZxpdm6rF9EhP7CwbVvy+vLQlZbdoj1BZSPuPTLOCMhsWI7Ty4jWSJj72P3PlZ41ckFWp8Pw1rQ75E4qdlg7XjLqkk2kXCszshqcpILtMetEuqW3VvIZOPGvHY9d8iXNhnCxLZl6VrQU+jvhDaMoVfR9NORBqAf8AbwJE7Q/o/wCketw+DjSld/CuR8L1cXk38XopiISUKyrstQWpsK/MZWLcvicp+Lf4WPf3xJQSjICF2b7PtvhAaymVs+w68SRQ98k0yTC3SgLqwXj8VDXfem3y98nEsCU90mb4wrVIbx2oT4DL4ycHUSei+SdEFxqEESjaVgD7Cvxfhl4lwxJeL18vHyxx95+x7Jqiiaey09RRJG5yL/kJ2/XmFhNAy7nZdoR8SePB0kbP9UIfzNr7aUI7a1RRIyciT0QVoKLjpsIncpckds9qHTGOLEBxEfL4PONW1y5uJGklkaV/5ia/QPDMviERQdBDTZM0uLITIsfm1eVX3NMp8R2I7NiQqW3maSNwwchhuGBofoIyYzdC0T7Lo3HYsp0r8ytThorTiZB+zKOW3+ts344DixyHKvc2Q1eswdeMf0v182W2H5iaXcqEvIDHy6laSJ9xocpOkPOJtz8fb8D6c0CP9kEzit/LWpkPZyok3Ywtwcf7A/0yJnlhsftbhpdDqTxYyBL+iaPy/YrGx1y2/wB57lbqMdI5xRqfP+3I+JjlzFe5sOk1mL+7yDJHunz+a19XeIGPUrJ4lPVgBJGfvw+CD9BBYy7TlAVqMcojv+qP4+aCn8u+VNWB9JUSQ94Twb/gDt+GHxcsNi1DRaLU7wIEv6Jo/L9jG9W/KfmGNnKkleiuODfeKjLY6qJ5hx59j58Z/dzEvI7MF1f8tb6zJMtq8Y/mIqv/AAQqMsAhLkWk6vUYP7yBH3fNjlz5UlhBIU+2A4qczB2xGXVI7vSplYlgQg7Ab+1a5Dhp3WDWRl1Qf1dvU/GtO2BzfGFMJiIVASQodeQAINd6bgVpTwPzzGDtSrJZwtKBI3ppsWcLyOw68a7/AH40x4nQDirLKtaDZtqg1/GtMnAd6bRNuSlKCqdTTaowNck+0uaVZopYmHOM843ahAYbioaqnLI7uNPZPLCxrcIFPNWIJcCm7bnb2O2WCO7qdXmqL3D8rtLo73DCohTih/yn2/UDktTKoAd7znZePxNRKfSO3xP7Ga6cBc6xd3XVIQIIj+vMfL6cYHfu7LQjxdVkydI+gfpYF5u1H61qdzKDVA3BD/kp8I/VmZCPBjAedzz/ADGrnMcroe4bMLvZnDFuRB70yol3mnxJFcuSxNa+OVkOyhjCAaRhv+ORAbPDVLe84upc0SvxU60ywNctOExh1owykK3NaniT4ZITpwsugiUxsvMkoYEmm/XJjOXVZ+yhdhl2kfmBqkAAW5LoP2JfjX8d/wAcEoY5cwwhn1eD6ZkjuO7LtO/Ma2lAW8t6V6vEaj/gW/rlMtHe8S5+H2kI2zQ/0u/2H9aaxyeVdVoY3jWY9h+6evyNAcrvNj93zckDs7WcuHi8vTJEforVbYVsr0unaG4HIffvg8aEvqj8m7+TtTi/ucvEP5s9/tWnVL+3qNQsGCdDLD8aU9xv+vD4MZfTL5sT2hnxf3+KVd8NwhZtN8pavXkkayt3X9y9flsDkuLLj/Ftfh6DVcuES/0smIecPy2trbT5L21cyxoRzjdRyUH9qo67+2W4tQJnhI3cTVdnz0kfEhIygOYPN5L+iJP0l6XHbp02yzg3pyfz48HieQRI3GgH3ePz8MwQ9vaPs5X5cCdyN133HUjJwFsCEYlsJhwQcj/KKE/RTJcNtZlS0WrQgEcuYNPSIPQDrXERSJAozTyVeoqKfbQ/PpiHHynZ6F5ZthMFf0/hrxr4HrSmZWOLy3aubhiXvXle3XS/LHrkUd1aY/Tsg/VmPn9eWvg1dnf4PozlPMgy/UjIpDpnlqS4baVkaSvcvJsv6xkZ/vMtdOXybtPI6XQGZ+ogn/OlyeXahMVqK1B65mZTZef7NxUEgv5K8q7n28cpemwhJLteI27iv35EubFLJe/b3r4ZBuiohmJrTY/ThDOlvqlSD+rIksDFEQTsaA7b/RgtqljTO1uT/N8skC4mTACnNpfOKfFtlgm67LowU6tdQagqdstjlLqs3ZwLIdN8yana09C5cL/Ix5L9zVxlGEvqDXjzarT/AN3M+47j7WTWPnyUAC7tw/i8R4n/AIE7fjlEtED9Jdlg9qJw2zQ+Mf1FMtdsba705NStFFeIclRTlGfEeK5DTZDGfBL8Fze2tFjz6cajEN6v3x/WHeXLqK7spdOuPjCqQFP7UTbEfRXHV4zGXEPwU+z+rGbCcE9+EfOJ/UwP/BT/AOL/ANH0PHlX1Kf7q68/+B/HMrx48Hifi3S/kMn5j8r0vn/R7/l9r5V0iD61eC3DhI+JYu/YD5V3+WYAfT8hoWjXgEEzRc0Yqac1IcHYdCCfHJA0WJOyMsp7q0uUnt3KToeSyDf4vbJgkNZKZG6triKBRCUuRX6xJWvIkmlBTbbr45aZW1ysKkWnEOGjND2I23GDgLi5cuz0byJpck91DCB+8kcJ9JNDmRjPCCXjO1ZHLkGMfxGnuOrRgxWemxbCZ1WnhHGMw8J5yPR2XaUAY48Ef45Af5sUB57vBFaW9mm3M+ow/wAlPhX8TktHHcycf2lzemGEfxbn3DYPM75qk5dI24+jhQSS7Y0Ndgcg7rElNyVp1+gDAXKilk432+gYKboqLuCqIFAK9xtUdd8DYsPClKb9h/tYCAq6InuenbIsJI+Cu3h2OIDTIJtbsy9Tk3GnFNLRjtTCHFnBOrVjt+GTBcLJjTOA5ZCTqtTgDNvJWpiSKTTJqGlXgB7qftr/ABzG1uPlMfF3PsxrbjLTT6bx938Q/ShZ0l0bWOSAlEPKP/KibqPu2zIiRlx/jm6zPCXZ+rscgbHnE9GW0s/+OhxHL0aerT4vS+3TNV6r4fP7Xu/3deL/AEefXh5vge00ZmuJhJcxxC3+OVUejFGBJKE7HjtX55fwuynk2Q6xqJH9EkqDRCag0rsfpGLIo+1unUcZPiXwPam/fDEtUopzbKk5UIwDUIAJ6e1cui48yQyOys5IrhUDGSOtQdq7+wqMsFuq1eQUXsn5YaSpu/rPGi26cht+03wr/HJag8MK73m+zY+LqjLpAfadmeWo+ta9PL1jtEESf6zdf45jT9OMD+du7XTjxtbKXTFHhHvPNhvm+++s6tcMpqkX7pPkmx/4auZWGPDjHm892hm8fWSI+mPpHw/aw66IJOQdtp47JNd9SP8APwwF2UEpuAtaDqPDwyIcmKHu5bYwRrHGRMCebk7MO2EtsUtJ333bv4ZG2y2nZu/TIkra+KpoK7Ht74gMSmVvQlV2BHemWNUkyiKmlDU/5+ORk48k0tTQDfYdsIceSb2hoQa/dhBcWYTa3OTDgZgE00prhNStWtjSf1VCeG5oa+1MulRgQeVOnwSnHVYzj+viFMx8yW8d1dafbqP3ssjLX/ivauYGkmYiR6APX9v4I5smHGPqlI/6Xa079S39X6p+36fP0/8AiuvDMOjzek4oX4fXh5f0eT4DWwlBlUlAYEEslGWnEkfefi6DMunLu15BlFHJLqFVPDiBQDceGIQZk80aY7D6moUMt1yNa1IofwpTJU1b35Jhp66f9Tcs8kd8ZF4RD+6KAbknxrlsKacstmW+WUd5lDAMu24GWwDzXamQRiX0D5LtY9P8vNdMKGTlKf8AVUUUfTvlGpPFPhHuaOxqxaeWWXW5fAckx05zY6DNfSf3jh5zXuTsuRzDjycI9zfoJfl9FLNL6pAz+fJ5xeM7BmO5NSx9z3zNy83mNBAnc80iutzvlD0eEbJXcIzGi77E1+WLmxSe5psTuR1GRbwl07MWr0GR6twK7T9Nm1G8SztePrSA8eZAWiipqcnGNmgw1GojigZy5BD3MLwTyW8gAeJijgEEclNDuMhIU2Y5iQEhyLUfUbfLIWUyTK2LCNwCOJIrWlTSvTJBqkj7Y9DTG2iSbWo6f5jEOPJN7UdP4ZIONNN7foMsi63USZP5NszPqpmI+G2QsP8AWb4V/jjqpcOOu9j7P4PF1Zn0gPtOw/SyS1H1vzFPN1jsoxCnhzbr/HMOfpxAfzt3o9OPG7QnP+HDHhHvPNjX+Ix/ysWnL9x/vF7U+z/ycy/wf8Hrr9TrP5R/104v4P7v8f5z5FvbLUF0/TpZFiFs0fG3eOlWAY7vTep98qqnu55hKh3LvVT6vIhtVEjPySRWaiA0+E1rUUyRaa3VrdoBayPMH5HaMAArX/L8B4ZIcmuRN7M1j8mxi1W4S4q4jDsHA4/ZrtTGMg7LU9mVj4uLkLZB5J0meSaHip/esFjPYkkDMvFtuXzLtbKZkQHORr5vdNbC2ekW9jF+2UiH+qgFT+rMHHP1GR6PTYtBjyxjppHaVCup4Uu17U2OjR2ld3kANNv3cYBA++mWaQXMy7nE9tMcNPix4Ycp/dH9tMNud6g9MyJF5zRwoJHeLVqd/wBWVu5xpbdbqOO23TFyopclqJ7j0mcIDuT16eGIjZbJ5DEXSV3qqkjovxKjU5DoR/bgOzkYzYBUIrmRlEaAq0YLBk2YU3qSO3jiJJ8IWpW8SSly8gQKOQr3PXvlfNM5mNUGogK7GnhkUlMbR+Dqw+0NxUAjDdNck2ghb0VnJFGPTvkqcQ5BdJja0oP1401STu1kHpLHxGxry7/LJguLlTS36ZZAbul1k6DPvKkS2OhS3sgoZOUp/wBVBRcxdUeLIIj3PQez+MYNHLNL+K5fAckRp036O8t3GpS/3rq9yxPdjsg+k5DOOPKIj3OV2ZL8voZZ5fVK5n3n6XjX6Ub9NVr8deXLvWta/fm2venj/Bl4PH/Fd/F4Zeaul5cNJHbi0hfiWt4yeFV25HtXfwzWCT6mIV5q9xBHa3CQiZJWdVblGaqCexJoPfCAwFlN9Lt7G40W/lkcGSFk4jwD7V+/LI8nEzSIyAd4TnTNQv5bCS1eT1YWKxq9QX4915fLBGAu2/P2nlGCUSduT1n8rNGLX0UrA+nbqZBXpXov4nLc8uHH73h9JDxtYD/DDf8AU9F4C714igaOyjAoenN+v68xfpxf1i7aBOTX2P8AIx/2UmM+bLhZtXkjjAEduoiUDpUbt09zmVp48OMd5dD23qDn1pF2Mfp+PM/ax2QFpAo77VxLkYBQSi/iJ5U/veXEIOp98DsoJHMRvXYdhgcmKCaWBJi08ZkSh+GtPi8cIpslGRFA0zDy3eeW30ARvJHG8MfK/hcCrkdW4t9uvalcyMU4iNPO9o4tT+YsXRPpPd+p5jfSI15cNFGIYmkZo4htwQk8VH0HMKXN6vFtEWbKHVeXbkf2f8xkGdqyRujcHBVgNw2NIsHkmUcEsfAuvENuPfC0cYPJHW/hWtPpxapJtajwwhx5JzaU2yYcLKU5s4XldIkHxyEIo92NBmRj2F9zz2suchAc5Gvm9E1qIQ6Za6XB9qdkgWn8qUqcwNObmZnpu9j2tDg0+PTQ5zMYfAc0q/MrUI7DQIrKM8fVI2/4riA/42pktFG5mR6fpR7RZBDBDBH+Ij/Sx/bTwL6+36U9Xf0+fHl79afdmXxbuv8AAHg11Yhq8GkTW0E2miJLSaZhbwAf6VuAPj3OxPQdtsxKD2MDIGpc1KfRZtMueFzCFaLjI1Rzjox25EbbkUpkgKUZOIbJ1Bp1t/pUKzxPytgQYQFWqNyoQPnsclF1+pmQYHzTLy9p0TehyIYVLlSacgNgNssgHC7T1HDip79+X1gtjoT3UmwkJYE/yRj+tcq1RuQiOjr+w4iOKWWX8RJ+EU50dxb6Xc6lP9qYvO3yWtBkM4uYgOlByuypeHpp6if8RlP4dGByySO7Ssau5LMfcmpzPnts8hpAZyMzzO/xKXTycTUGhG9coJd9iGyWX5j4eornm25/zGJcrETdJFckcqfdkXMigHX4+pB7YW4KEtlKsAuEI2PwqQOW+1Rh4TzScsb4SgVsri4nlVzw4AsxNK/LtkDEks5ZoxArqgt1IYGjg7eO3Q9sq5N1IuDhJNzupGo61DKB9rpT5ZIebSQQKiEWCxIVnDhfhWh22+7AWPCBdI+AdOuLVJNrXsMIceadWY6ZYA6zUSoMy8l2X1jWI3IqlsplPzGy/iclqZcOL3uL2Jh8bWAn6cfq+PIfey5R9b8zeMWnxf8AJR/9v8Mwz6cP9Y/Y9NEeN2j/AEcEf9lL8fY81/NvWBLqksKmqWyiFQPEbt/wxzL00eHFfe6ftPJ4+uIHLGBH49fteO/pH9/6XL4a9KHrWuG93beB6b6sW0ZNJWdzqcUskaqfS9EhTz7cuh/HrmMA77IZdEU+p6pNA9uZ2Mcp/wBIZt3l4n4TIWLbjpthY8IBtMtDjhfU0WJSkUkZjKk1PLiev05OHN1+vkRjJ7ma+WNLf6zFGPjZQqih2qe345lYhTznbue6iHu97D9R0GDT4v7xwluviT1c/fmHhPFkMj03czXx8HRxwx+qVQ/W15plWy0SKyQ0MpWMf6iCrfjTHSjiyGTD2gyDBo44Y/xER+A3LCJT8NO2Zcy6DSQoJbeKygFhQMKr75US7jHySm5ldlCfsKeVPfxODicmIHNLbn0DxqSOVS+w+GnShw7ORAm91a20m0lRm5GZWHw7kEePTIzNO/7K0UcmMyydUg1G0WG6eNZ6enRlr1FfHGMgQ4mtwjDk4B6h+OaWwSh56XUjpE9S5XY9Nu2DisuPkiYj0jcLLm2iSCKVGLM5bbagUfZ+8ZGUWUJ2a7leKFWsEl5qCjMpB70ocQNmozqdUr2kirG6GMOz7Bz1WnhgBWcbIN8k0huGeJI2Gyd++ILQYUSUytBhDRkOyfWK1p4ZdAOk1s6D0vyRapa6VPfSbCVia/8AFcQ/rXMfWyuQiPxbuPZnEMennnl/Ef8AYxRuiyi10i71a42aUyXD/wCqlaDK9RvMQHTZzexpeHpp6mfOZlP4Dk+efPGtrJPK8jVkZmZj4kmv68z8kgBQdF2TilORmecjfzYB9fi+sU5D/Pfr/bmPxbvWeGeFK7t4HS3FrE0YSELPzpUy1PI1B3ypz4g72ihZsmnxXLswmkdlVCDwZQaVDHrucPmwMrJDIfL1lqFtcsJbQP6ciiSc7+iUI5bg035ZOHNwdSBIU9f/AC80+0uvMSiGpjgJmk5eK9B/wVMvyT4cZeZhDx9XDuHq+T0DXL70tWtuQJS14yU8SxqfwGVafFcD5su19XwarHfLHUvm7zhZ/WLOG/ibkkGzAdOElCG+/Bop8MjE9WftNpvFxRzRNiH3S6sNkCncmi5kTG7otLk2Su7PJySAK9adMqLucRoJbe2bD4gw9MdXNaA0JAoKnfAYuTDJfTdJJnopB+z1of65EFy4s00XQbaPSYHjX1GuEWSRmPxAsNwtOgGZmPHAjd0+Tt3UYchjCXCAeTzbzBa28Or3sKvI8KSMqSvuWYU5VNN98xJRo7PQ6TMckBKf1EWUDJPNcyqTQSIvpqoFNh1JxG27nZMkspHkKQ91LLNLzkoCAFHEBQAuw2GRkbceGMR2TnSrVRpn1pSkrK9fSPavw9++SgNrdfqMh8Xh3G3NQhgmeViIyK1ai9AMhRLlzHAN05jNuLSNFAaY/E8gpUf59Mn0cP1GZPRHWY3GANGU0yLTonYqFFSxoo8ScysQ73m+0MhJocy9Q1OM2Hl+DT4v72XhbqB3J3c5gYTx5DI8hu9b2jD8voY4I/VLhh/xSXfmHfJpXlNbOM8TLxiH+pGKt95pg0vqyGR97Lt6QwaSOCP8VR+Eef6Hyj5uv3lunAbueuW5Jbp7Kw8MQxH6xL63Llt1pXtWmUvQ8I4U70rRNav7w6fwjiMq+oZpaMVSN6MVKk9WNKd8BJDmaHRS1WTghz/Qjde8p6rpjQr631qCUkWwUEvRQC1V3p75IcmXaWhlpMvBLcdJd6M8s6g8EcFvDFLc3Xqs0cbMTEa7Ci9a9anLMZp0Oried1F6v5X8xywa+s9vAI2jb1HjQbmoo4YjsemZXDxAxPV4/NklglHLH+E/MdR8nrmuW0N7psWo2vxBVDhh3jbc/wDA5iaaZjPhP4LtO29LHPgGbH/CL98T+r9bXl26jubOSwn+LipAU9422I+iuHVY+GQkPwWHYOqGbCcE9+EfOJ/UxPU9Lns7ieFxVI2or+KndWzMEhOILzGbTz0mWUDuInn5dEnkhjLAPUCvxfLK5Rpz9PqomQvkmMFkrpycVJ2CHYU+jJQxjq7DWdrSgRDGQPtYvqGm22nag7IfUjWPm8T0JUk7AHISiIy25MMWplmx77ElKrK98xhJ1052Pqk8okINOXgp6fPIwMujscsMHhjxANjseqS60J1sLeC4i9K6geX1WZm5tyIIqh2UeFOuOQ7UebfpoXIzibhKqSGrVqv2j3Fa5RbnAtkPyCcfi7AdT4UyVqduaZw211aieGdTG8kXJR32I64QKO7RmG8T0tFaTqAt3Z2T1CyFATTav8D3wwkA1arGcgAJ5Ii2pUeH9uC2Mk9t0iDgRVK+J8cmA6zNM1uzjyTp/wBZ1e3BFUhrM/h8HT/hqZZnlw4j57Ou7Mw+PrYjpD1H4cvtZzP/AKX5kghG8djGZX8ObdP4ZhR9OEnrI/Y9Pm/f9oQh/DhjxH+seX6HnP5z6qXungVvgs4uJ/12+Jv4Zk6WNYr73Vds5/F1wx9MYr4ncvm/WHeV3cVILGh6CuUzNvSaTGYxCS+nJzr365B2XRm3liOz8veYWh1G5iRmgdCBXgpLKyFnoB8agmnbJ8Ivd23s/rYYs3HP0xMavz2TfzR57t9TsrbRtEjY3Ilq14OKK1arwj5eNftUGSJHIMO2tTjz5TKNkMfsbzU7PUvrFvbxQXOmpxmReh4/CWPxGrH2yIO7oJ4xKNHkU+0DzVqUGozXZKl7raSo2FaHt4ZfCfqdLr9HGUaHR77+WPmOK+sm02Zw7hTLCKg1Vvtr+NfvyvVx5TDj9hZq4tPPpvH3dQmTaTqenX31m1iM0MbEpxNSUPVWHXplgzQyRqRouvPZmp0mfxMUeOAPTu7iOaLa80K+crdgxSMKGOYFaV8GGVeHlgPTuPJ2R1mj1BrIOGXdIV9qEu/JFhcL6lnO0YPQGkifeN8MdZIfUHGy+zWOXqxTMf8AZBLLvy/rtmhKQi5CjZojy+9dm/DMmOpxy6173R5+wtXiJ244/wBHf7ObE3tFt7mR72A3Lyglw4oQ3bZsmIdebQdXLaP0EJFH9f0+5+sWSenKQ3MElkIZtgR7dMqox5O2GSGePDM2i3GgXmmyXOrcBqDtxnIFJCw/uxEB0ULQfryVwI9XNAGox5Rjxf3fTu87YfrselPNObNfSZSgiRQOJAHxbgDeuUZOE8neaY5IERkeLvKCmjtzOslrM/rKA1XFBUDs3b7shQvZzI5DMHxKVYWaW9gEkzTSyxkScq1BYfZBx682GXaNAcqpUtIbYALMxSXmAw7Be5wADqjKZhNI0tFPCMsx5Cj9gD1+dMntycSUpHcp5ZRxmX92SU7V65ZEbup1eQ8O71X8vrIQ2NxfPsHIRWP8iCrfifwynXS3EQ7D2WwVDJml1NfCPP8AHkmugSKLe+1ebZZ3eSp7RRAnKtTzjAdB9rsOxJXDLqpf5SRP+bF84fmZrs1zd3MpajTMzuOoqxrmZl9IEe50nZYObKcsucpEvJ7q9lKkO/wg1C16E96Zhl7XDGhSE9Yce3Wla7eGC2+nrN1+XOlyWSyPPJBdogM90W5KxG7swO+/Qb5fOFSou7PZ+M4TKB9QHwLH7TydJd3ciwyr6MYJ+szExoqruvI02qBtgGPd0k5GtwWvq62mmSgMhknIDow5OKVoeR6eOGqDHwZGdVshbGGe5uBEJFhG7Fn7he3zyMd2Go0xjG6tlvlHXtU06QTwGRJIjUTJX4RuOvvXLoSFEEWHSazswiQnA8M+ne9d0L8z9RkVRcLHcoKBnb92w+ZXb8MjLT4zy2a8efW44kyiJxj8CyqLzZ5evqR3i+mx/wB/KGX6HWuVnT5IfT9jaNdp84/ew4f6w/Sio9I0+Qevpd20Fe8T80+kVwePLlMWgdiYj6sE5Y/6psL+XmG1+0kd/GO6/A/8MH7qXfFhIa/DzEc0fL0yU5dU0e6/c6nbGJ+63EdR9DUrhGCcd4m/c0z7S0uX0aiBgf6cf0/2IK68i6BfqZLOQx16GNhIlfkd/wAcI1c4/ULaZ+z+nyjiwy4fceIMY1b8tNQjDtaqlyrCh4U50r2DU3+WXx1GOXPZ1ubsfWYjcayDyNH5Filx5GEZf11eJ6HjC4Kmo6VJy2OCMhYNuDl7VyYZcMoyifNIE8rqUuRPJ6UkS1jUivJhtQUynwTvbtMXaoNADiv7FC10fUvWBS0aTj8UbVC02pWp6jIiNdHafmxkGx2v7V11pdyl2oaMRmVeSKG5bAbknImC5tRUiDtSd6FpNnJA0kwLSo3HgdgD9HXLIwBHm0Y8nFPcehkENpEqgLGFK/Z4jLsMN93SdrZ4VUXpU8Z0vyrHaptM6LFQd3l3f9ZzAgfEzWeXP5PRamP5Ts4Yx9cgI/50uf6UP5xuF0jyd9VUhXlVbcf8Sk/Vjpx4mbiPvZ9rn8roI4RzlUP+K/Hm+XvODGSZ2cqFJpUncb9aDMrLu43ZOOohgVzEvIjc79hueu+YheoxckL9X+GvI8enHamRput9NS+UdZki9JwGjoAULp2zZHGLt7k6XHKNcXpUYPI+qQS+pFHGOtVYoymopupND1xMGqfZ2CQolYv5d3LIsU1uhiU1oHWrH3NcgcYbMeh04lZJRl35GlubWO3a0jVYhSIqyDj/AGHHww5OXT6aQ+7bkstfJOpW1vLbLErRSjf41FCdq9cmIgOty9laeUhK9x5KkPk3UkrygWlAKB1A2+RxoIy9mYJdfsRDeWdb5fu4wFH2R6i/jviC1ZOxdLIb/cqyWWu6XD9aQMnD7bxvuPf4TXJWDs6vP7M4jZxHhl5bJxpnnfWoIY2uONwjdBIKN/wS0P35RPTQPk83qNPq8EjHaddD+tkVp510S9j4XsXpD9rmBIg969R92Y50c47xLrM3a2H6dRAxvvHEEXBpmgX49fS7r03O/K2krT5r1GR/MZI7SF+9rHZWkzerBLgl/Ql+hUMHmS0/u5I7+MfsuOD/AH7frwcWGXQxP2MvB7Qw/SY5o+e0lr63aMPQ1Wze3rsRKnqJ99P4YRp5c4G/c1z7WxH0anHKH9YcUfn+xBTeT/K2pqXsyImPeFqjfxRq0yX5nJDaQ+bH+R9Hn9WE8J/on9CS3v5e38K0tWS4jAoAPgkp8m2/HL4ayB57OJLsjV4R+7InHu5H9TGdT8vXEI9O7gkhdfsFlINfY9MtjCMt4m3A1euyQjw5oGJ8wreXvLupXBMVrCZFJq7nZVPux2wkwxj1H9biaU6nUyrCCR38o/NnmmeT9P09BdalKsrx0ahPGJSPnu2YWTVyl6YCvvej0vYGHD+91EuIjffaI/Wrtew6xrdpDBVra1LTO5FAzDpt4VpiMZxYyTzOyTq4a7WY4Q3x47kT3n+1h/5w60i3Edly+G3jq3+vJuf+FAyzRQqBl3uL7QZDl1UcQ5QF/GTwPVl9V5HqrRgVqTTrt0yZFu00ceEBjF1aIW5bqx3Ap2O9aA7fRlMg7jGdkH9Uk58Kn/WoevWvTK+Fs4n0+NR1LZvrD0r1+H+mbOn1b8ti+mg1+ktQr/vS/wDwv9MaZjTYwPpd+k9R/wCWl/w/pjS/l8f80NnUtSG31l/mKf0xpjHDjP8AC79Kal/y0v8A8L/TGgn8tj/mh36U1L/lpf8A4X+mNBfy2P8Amhv9Kan/AMtT/wDC/wBMHCE/lsf80IrTtcmjl43rma3fZmIFV99huPEYJR7nH1GiBFw2KlrukfVVN7aVezb4iE34V7in7JwCV7OGODKOGY9bAvMGuLEHjVJWk4VjdaqOde/sBvXKpSILx3bXZuEgjh93TdBWvm9rOO3lErrMdpFB4spHfxGEZtt3g9Z2FGAEokifWtiHo+j/AJl6jDbwNJdrKroG9Of4u1T8WzfjjLBilvVJH53BEHi4hXKW/wBvNlGn/mjol2ipeRFFf9tKSRn/AGJo2Y0tEecTbZD2hhXDmgQP9NH8fNN4bTytqtHsZlSU7qYH4OPfgf6ZE5M0NpbjzZjQ9n6o8WIiM/6J4T8lb6h5htP95rtbuMdIrgUb/gv7cHiYpc48PuZ/k9dg/u8gyx7p8/mtfXGhX0tVsJIVPVgPUjP34Rp73hIH7Cxl2uYDh1OKUB/po/j5oa5802UEQh02EED7JK8I1+SihOWQ0cibmf1uJqfaTDjjw4I38KiPh1+xLIrXWdalEjFpEB2lf4Yl/wBUf0zIM8eEbftdLj0+s7RlxEkx7ztEe79if2dnpnl6CS6vLpVLAB5XoooN+KDqcwMuWec0A9XodBg7OiZzn6jzJ2+ADwX8xdZk1K4ur0KTFLK1H7UrRR9A2zYUIwEe50GljLNnnlP8Unm0epCFXWY8UJqWO527D54ISAG70sMd8kvlSOUc49670G25GY8t93NjtshOT+r39Try7/OuR6s31P8AVPLfGn17b/jIn9Mzrk+m+Lmu+Hf3OFl5a/5bf+Sif0wXJl+Yz/zfsb+oeWj/AMfv/JRP6Y3JH5jUfzfsb/R3lr/lt/5KJ/TG5dy+PqP5v2OGn+Wf+W7/AJKJ/TG5dyPzGo/m/YuXTfLRNPr1P+eif0yPFLuQdTqP5v2IPWNDmsCJUJltW6SU3Uns1PwOGGS3J0usGTY7SSvLHNTPR9YNmfQn+Ozc7jqUJ6kDw8RkJwvk4Wr0nH6o/V97tR0K2sJX1C1QPaT0Lsu5jB8D/Ifww4slHd0Ou0Y1mPwz6cg+39rzbz7ZaYtpPeiCOK4kdRCyLxbqOXTr8AOYuUUbcTtPsrDg0sQd8gocXU9/vYRaalqd3cx2NvMywxcgslGHGPxfjy+WQEreUy45zHALMY9w6IrTNRvkimuGkKRW9FYHqSSB9kkHJxmXV5OxePHKZG0fv/QzC08zyCaK00+6LpON5ZdviArxBpsadsyhPo87HsnJIfSeIyoU9A0rztrlrEjx3LPANqSjmhPT9rf8cplDHLmPk7aWg12k2jk4vI7sl0380baVzBf2hDCgd4TyFD3KN2Pzyieh/mn5scXtBOJMM+IiufDv9hTePUvJV7IJ1aDmnxSK/wC7Yf6yGnL8cgY547btscnZueQmBCx3+k/LqkfmX809OsImi04KWHwpK9AB/qp/X7snj0XWZ+DTq/aAn06aP+ceXwDyfzP57ub2B7h7kzzMSHUkkoB+AGZXFGAqIp1WPQ5M8+PNIyl5sOvfMM8ulN9dj/cRmkS7hi5B6r/stjlRmOrvMWkkCBFjJuobqGjGki0+Lv79PwxEgY07URMSghK8D1FSo2IPtvlJ2bwLRf1qD0fWoa/aptSuCxTHhPJ6ivmAbDl8zmze+/PSRV1rdssoW2kMiEbn3wgMMGuykepfa64BIpYAqTQ12FD3ywRcvHrJWnpuIAKk1ruAPDLBB2nHIoaS6rciMAUYg19sPhuNLLMS35I+IIy9B4YfCbzm4aT7Q9djiX9H6gQ9k44RyNuEr+y3+T+rMDPgINhxNVpuL149pd36Qpa5oclhJ60VXs3+y3UqT2b+ByOPJY35t+j1gyCj9X3pTlgc9kHlK5le5axch7ZkZwjb0O1QPY16ZTmFC3Vdp4oiPGOdsD87+W4Z7y/iilMUUEkvpQ05KAKmgqchLeIcPV6A58Inxb8Nsc8jvZxaZJ6CKl05dblSAX3PwnfenEimViIcTsfT4M2AC+GUZ2aO5rl8PJR8y3nk2O9SHUJLh76GOqxwim0n2uZ6dPpp064xERsXTe0pnPNEEwjwz9UR1hff3pT+ltOGs28+lTCe2j5g2klY6fCS7q777jpXv7YYOu12sw4dSMuHiMIkHfqeWw9z0O1u66VbfU5llWSISxmi0Ib4q8j4joMnGQennoceqlxkER2Ng80XHO0EQlojGgWVitWJ3OxHbfbGJouuz9hY8xlW1jokvmXUJLOGaZpfqskSF0ncUABHUg9j4YnMXS6r2VxHHxgioDn+v3sC0i51zWpY5o4hLAzEGWdgkfMDcGprT3plRy3zdbpfZ3LKHHjgZBT1G7n0G/jgaaK6adQ15a0HFRWoUn4tvD8ciJ7uVruyfBqBPqq/ckmuapeXbrPLIZApbhCPsKp3A26+3hhk14oCqSuAtLIiqQC5AH3+/tkAbbjsnVzpdgtlFLLe8rp2YSwIm6AD4TU065eIAjdp4yOSS/Urr6z6HHevDjXv+rKuA3TdxirZgt6TuppXr4Zsol6wIqG5NBua5aA2BFpdEdT8WWBtgn+n6xD9WjR5OLItPiB7eBy6NO602oxiNHoiZbiZpEdEIC7869a5bTj5NXGZFcgjbW+uXUFVAHdj0OGnIjKUxyTKCV2NGPIZVOLYAYm2UaDrqRKNO1Eh7OQcI5H3CV/Zb/J/Vmr1GCtxzcXVaTi/eY/qH2+YQuvaSNOugIzygmBaKvUU6qflgxz4hvzcvQ6rxY7/AFBE+T/+OwP+MT/wyOf6WrtX+6+LE/POpNb32qQxI7TvLIsZUVAYmlcjfpDgavWjHpgOpjTx7W7bVFle+vHa2lCq0Ln4GkUbfAV8NsomDzL59jnCJ4cZ5d3NKois11N9bjnl1G4Xlbu4Zy3Yk9zkPc5kzEY5Sy8XiGqJdfwwtaW0dsssl3ThLGEoVqTtstSeQIFa4C4sTI0Pl5/rTry/5putKsTpzWbfXLKX07iOQP8AuULAsxC7juaZKEtndDtzJgweHCA2HM9/uTHVNc8wXPm+xexuBNHxQ2x+JLUqQWbr9oUG565OZ9WzptJrtREDLM7xJ92/Rd5v8xa75gkisxZL60PqQyoeLRM0cdWOxqwUNyBNN+m+Am1GeeT0XwwlK66Ivypc6RN5csVsyyy26GC+V2B4zKTug6lT1J98QBKL6F7P5JSw8JA4Y7Cvtv39Et893VnEIUQsNVI9K9j4in1ZqMvOoqDy3HtkIxp0ftRPBOceEg5B1Hd5/oYcssbP6bkrC1PiO9BXw+WSkd3lOHa1l5AltdtHFKJbfqkq+/8AHFkDY816rPazI4ZTQLKGrzqaVWoByUbDGwVb9L3H139IVX16+pXiOPP/AFPs4fE3tHh7Jrpc8MtoiByLlGoy0/Z7EHLNFn448PUPVYJgx8wmCvxUePY5sA5MQmOlWhvb2OIfGv2nUA1IHUAZMObgxiRomh3sqawsxHxaIRwoRUVIoAd/ll/MbOZPRRhjlIbzpvUo7ODhHZsN61Cty27HvhxSl1dVoJ5J3xj7GrS6ESBGrWu/t8svDvMOQRFFNrS9A+FRyDbhh4jKs2HiZzkOiPVy0dT1yjNGmzAd2V+cv+PL5P8A8a5qsHVwuyf4vx3obyd/x2f+eT/ww6j6W7tX+6+LCvzBvLq01LUJbMtHJ68gdwKilfA4LIgKec7VxxniiJcqDDv8L6v5gtzcX0wS3eIfUJJZCSGbcsyoBUeFcxpSNbupwdjnNLix+iO31dfcwmbU9Z0fzHd23qxvcQB7Z5fTD1UGvJOW618fDIxlvYcPXY5zJx5PUY7Mt8hy6hbpdJqSS8tT/wBKiLH4XSn2gwrRgxrxPY5KBuwXe9gYsOPJEToZz/dk/wA3qAlfnvUrSzna1spY21CYf6a6faRAKKG/yvxGQO3Vu7e1+GRMcYHEdpFJ/LWj3l9DDdS6jHGkcqrHBKxLlYvi2BOy0XplmKHFRt43VaiUImHCeE9eiYR6ENTvZryxv4Uill9JmqYyvjTuad9t+2SlHe3Gx5TACBB2HNJri21nS9Sl0Ww/0qedlp9Wf4T/ACkn4enL+uQutnaY82TGBKMzGPMgfpTeC4stOvLwXeoH9IaeXMPqW68pWlUA8zyZm49KE7ZKMt3EzE5DxV9SSMkl9czGKAlmPP0YQzgA9WB/XiSJKSIAW4iIr6c9TIAQ+3Rh1rkhSLPRCXkNxbXAhuKEsoKAGvw9KV2yuU+9uhuNnUf7dT6leVdutKZh+N676Ob4HorqrQet6q+jX1K/Dx65Vj4uIcPNy43e3NPrf69xX6xx7U49fpptnQ4PFr107TDx1uzfyD6v16X0uP2N+nKtdqe3WuXz6NHaP0xrnfw+KYat+kf9K9X0uPM8vT5VpX/OuZceT0OPxfy4vlQ96WQdfh69ssa4XsilrxFetcsDlDkmFlyoKeOSZp3B/dZh527BzZf5z6WP+q/6lzUYOrh9k/xfjvQ3k7/js/8APJ/4YdR9Ld2r/dfEMX87fpD9Jah9S4+pznry6UqKfjgF8IrudD2x4P5fHx/zft6Mb8mfWP8AD9t9Zrx5Pw5Vr6fI8f8APwzGjw/xcmrTeL+V9H1b1+C8v82er/jG+4cv0hzb1PRpw9P0/h4/t8uH2q98q26Ok1fi+PK/q8vcm3kL9P8A1fUOVf0b9XPqerT7NR/dc9/D7O300zIwcVHudBr+HxMV3x36Of2MW1P6vztPQ9D0vTkp6H95x5n+9p/wuUmqDl4/qnXFz/i/Qhr/AOo/WIP0d6vocDy9Sv2v2qfR1pia/hZ4vG4P3vLo4V+GlfV5Dj4dP18skftSr3fL65+/9T1ufxej/eepUfZ4964ZV15MBdelZZ/W/Ql+t+p9X+sfF6nD1+W3Lly+OvDx2wx5FunxcAqqv7a+5G6X+may/oj1eVG58OP9zX9r6MMbvZxsnBw+pDPw9R/V9X61VuXGn0Vrv1yBtnGq2+lo15j1K+pQfa60+nMTLx9eTn4ODpzdmO5L/9k\x3d";
  1354. b.gG = "data:image/NGf;base64,iVBORw0KGgoAAAANSUhEUgAAAWwAAAAHCAYAAAAs23eUAAAACXBIWXMAAAsTAAALEwEAmpwYAAA6XWlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS41LWMwMTQgNzkuMTUxNDgxLCAyMDEzLzAzLzEzLTEyOjA5OjE1ICAgICAgICAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIgogICAgICAgICAgICB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIKICAgICAgICAgICAgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIKICAgICAgICAgICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICAgICAgICAgICB4bWxuczpwaG90b3Nob3A9Imh0dHA6Ly9ucy5hZG9iZS5jb20vcGhvdG9zaG9wLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOnRpZmY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vdGlmZi8xLjAvIgogICAgICAgICAgICB4bWxuczpleGlmPSJodHRwOi8vbnMuYWRvYmUuY29tL2V4aWYvMS4wLyI+CiAgICAgICAgIDx4bXA6Q3JlYXRvclRvb2w+QWRvYmUgUGhvdG9zaG9wIENDIChNYWNpbnRvc2gpPC94bXA6Q3JlYXRvclRvb2w+CiAgICAgICAgIDx4bXA6Q3JlYXRlRGF0ZT4yMDE1LTA0LTAzVDE1OjM5OjM2KzA4OjAwPC94bXA6Q3JlYXRlRGF0ZT4KICAgICAgICAgPHhtcDpNb2RpZnlEYXRlPjIwMTUtMDQtMDNUMTg6MDc6NDUrMDg6MDA8L3htcDpNb2RpZnlEYXRlPgogICAgICAgICA8eG1wOk1ldGFkYXRhRGF0ZT4yMDE1LTA0LTAzVDE4OjA3OjQ1KzA4OjAwPC94bXA6TWV0YWRhdGFEYXRlPgogICAgICAgICA8eG1wTU06SW5zdGFuY2VJRD54bXAuaWlkOjBjMWI1MTkwLWU2MmQtNDU0OS1iOWZiLWQxOWI0MjQ0Y2E0MTwveG1wTU06SW5zdGFuY2VJRD4KICAgICAgICAgPHhtcE1NOkRvY3VtZW50SUQ+eG1wLmRpZDpDOTczODY3M0QxRjExMUU0QTdGRDk1NkE2RjRFNEVCRjwveG1wTU06RG9jdW1lbnRJRD4KICAgICAgICAgPHhtcE1NOkRlcml2ZWRGcm9tIHJkZjpwYXJzZVR5cGU9IlJlc291cmNlIj4KICAgICAgICAgICAgPHN0UmVmOmluc3RhbmNlSUQ+eG1wLmlpZDpDOTczODY3MEQxRjExMUU0QTdGRDk1NkE2RjRFNEVCRjwvc3RSZWY6aW5zdGFuY2VJRD4KICAgICAgICAgICAgPHN0UmVmOmRvY3VtZW50SUQ+eG1wLmRpZDpDOTczODY3MUQxRjExMUU0QTdGRDk1NkE2RjRFNEVCRjwvc3RSZWY6ZG9jdW1lbnRJRD4KICAgICAgICAgPC94bXBNTTpEZXJpdmVkRnJvbT4KICAgICAgICAgPHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD54bXAuZGlkOkM5NzM4NjczRDFGMTExRTRBN0ZEOTU2QTZGNEU0RUJGPC94bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ+CiAgICAgICAgIDx4bXBNTTpIaXN0b3J5PgogICAgICAgICAgICA8cmRmOlNlcT4KICAgICAgICAgICAgICAgPHJkZjpsaSByZGY6cGFyc2VUeXBlPSJSZXNvdXJjZSI+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDphY3Rpb24+c2F2ZWQ8L3N0RXZ0OmFjdGlvbj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0Omluc3RhbmNlSUQ+eG1wLmlpZDowYzFiNTE5MC1lNjJkLTQ1NDktYjlmYi1kMTliNDI0NGNhNDE8L3N0RXZ0Omluc3RhbmNlSUQ+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDp3aGVuPjIwMTUtMDQtMDNUMTg6MDc6NDUrMDg6MDA8L3N0RXZ0OndoZW4+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDpzb2Z0d2FyZUFnZW50PkFkb2JlIFBob3Rvc2hvcCBDQyAoTWFjaW50b3NoKTwvc3RFdnQ6c29mdHdhcmVBZ2VudD4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OmNoYW5nZWQ+Lzwvc3RFdnQ6Y2hhbmdlZD4KICAgICAgICAgICAgICAgPC9yZGY6bGk+CiAgICAgICAgICAgIDwvcmRmOlNlcT4KICAgICAgICAgPC94bXBNTTpIaXN0b3J5PgogICAgICAgICA8ZGM6Zm9ybWF0PmltYWdlL3BuZzwvZGM6Zm9ybWF0PgogICAgICAgICA8cGhvdG9zaG9wOkNvbG9yTW9kZT4zPC9waG90b3Nob3A6Q29sb3JNb2RlPgogICAgICAgICA8cGhvdG9zaG9wOkRvY3VtZW50QW5jZXN0b3JzPgogICAgICAgICAgICA8cmRmOkJhZz4KICAgICAgICAgICAgICAgPHJkZjpsaT54bXAuZGlkOkY5RkM4OUM2RDFGODExRTRBN0ZEOTU2QTZGNEU0RUJGPC9yZGY6bGk+CiAgICAgICAgICAgIDwvcmRmOkJhZz4KICAgICAgICAgPC9waG90b3Nob3A6RG9jdW1lbnRBbmNlc3RvcnM+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgICAgIDx0aWZmOlhSZXNvbHV0aW9uPjcyMDAwMC8xMDAwMDwvdGlmZjpYUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6WVJlc29sdXRpb24+NzIwMDAwLzEwMDAwPC90aWZmOllSZXNvbHV0aW9uPgogICAgICAgICA8dGlmZjpSZXNvbHV0aW9uVW5pdD4yPC90aWZmOlJlc29sdXRpb25Vbml0PgogICAgICAgICA8ZXhpZjpDb2xvclNwYWNlPjY1NTM1PC9leGlmOkNvbG9yU3BhY2U+CiAgICAgICAgIDxleGlmOlBpeGVsWERpbWVuc2lvbj4zNjQ8L2V4aWY6UGl4ZWxYRGltZW5zaW9uPgogICAgICAgICA8ZXhpZjpQaXhlbFlEaW1lbnNpb24+NzwvZXhpZjpQaXhlbFlEaW1lbnNpb24+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgIAo8P3hwYWNrZXQgZW5kPSJ3Ij8+FYdguAAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAAArklEQVR42uzQIQrCUADH4f97CksblgXDovBA2Hk8gEUwiAcwaFXE4h3mKTyAacWB0bCwIlta0Gf3APLC7zvCZ/zVqWzcMYvrxShqI2O8fh1ucwEA/u4tqZK0lXQZlo3b52m14gUAgjOQNJVUSJLN4nrJCQAEb2OTqIt4AIDgTWzbxz0PABC8h3124zMPABC8nc3Tal027vTqk957QwkAhOMj6S5pJqn4AgAA//8DAP/AJ1Ic5b5jAAAAAElFTkSuQmCC";
  1355. b.fG = "data:image/NGf;base64,iVBORw0KGgoAAAANSUhEUgAAAWwAAAAHCAMAAAAbBYemAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2tpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDpGOUZDODlDNkQxRjgxMUU0QTdGRDk1NkE2RjRFNEVCRiIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpGN0IxRjQwOEQyMEQxMUU0OEMyNkRCQzE1OTYxM0YxRSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpGN0IxRjQwN0QyMEQxMUU0OEMyNkRCQzE1OTYxM0YxRSIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgKE1hY2ludG9zaCkiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDplZjVkMDgyYy1iMGQ3LTQ3M2EtYjQwOC01NGQ5Y2U2ZmVjZDciIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6RjlGQzg5QzZEMUY4MTFFNEE3RkQ5NTZBNkY0RTRFQkYiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7NnERNAAAABlBMVEX/wCgAAADNMH0JAAAAG0lEQVR42uzBAQEAAACCIP+vbkhAAQBwYgIMAAn7AAEA8CMoAAAAAElFTkSuQmCC";
  1356. var b = b || {},
  1357. ga = {
  1358. id: 0 | 998 * Math.random(),
  1359. OV: 0 | 998 * Math.random(),
  1360. sI: function(e, f, g) {
  1361. e = e.toString();
  1362. var h = e.substring(e.indexOf("(") + 1, e.indexOf(")")),
  1363. h = h.trim();
  1364. for (e = e.substring(e.indexOf("{") + 1, e.lastIndexOf("}")); - 1 !== e.indexOf("this._super");) {
  1365. var a = e.indexOf("this._super"),
  1366. c = e.indexOf("(", a),
  1367. d = e.substring(c + 1, e.indexOf(")", c)),
  1368. d = d.trim();
  1369. e = e.substring(0, a) + "ClassManager[" + g + "]." + f + ".call(this" + (d ? "," : "") + e.substring(c + 1)
  1370. }
  1371. return Function(h, e)
  1372. },
  1373. SI: function() {
  1374. return this.id++
  1375. },
  1376. SU: function() {
  1377. return this.OV++
  1378. }
  1379. };
  1380. ga.sI.LZ = ga;
  1381. (function() {
  1382. var c = /\b_super\b/,
  1383. a = b.Ma.ld[b.Ma.rf.cT];
  1384. a && console.log("release Mode");
  1385. b.Ia = function() {};
  1386. b.Ia.extend = function(u) {
  1387. function y() {
  1388. this.Y = ga.SU();
  1389. this.ctor && this.ctor.apply(this, arguments)
  1390. }
  1391. var d = this.prototype,
  1392. e = Object.create(d),
  1393. g = ga.SI();
  1394. ga[g] = d;
  1395. var f = {
  1396. writable: !0,
  1397. enumerable: !1,
  1398. configurable: !0
  1399. };
  1400. e.Y = null;
  1401. y.id = g;
  1402. f.value = g;
  1403. Object.defineProperty(e, "__pid", f);
  1404. y.prototype = e;
  1405. f.value = y;
  1406. Object.defineProperty(y.prototype, "constructor", f);
  1407. this.Sg && (y.Sg = b.k(this.Sg));
  1408. this.Tg && (y.Tg = b.k(this.Tg));
  1409. for (var r = 0, t = arguments.length; r < t; ++r) {
  1410. var v = arguments[r],
  1411. x;
  1412. for (x in v) {
  1413. var k = "function" === typeof v[x],
  1414. h = "function" === typeof d[x],
  1415. n = c.test(v[x]);
  1416. a && k && h && n ? (f.value = ga.sI(v[x], x, g), Object.defineProperty(e, x, f)) : k && h && n ? (f.value = function(j, i) {
  1417. return function() {
  1418. var o = this._super;
  1419. this._super = d[j];
  1420. var A = i.apply(this, arguments);
  1421. this._super = o;
  1422. return A
  1423. }
  1424. }(x, v[x]), Object.defineProperty(e, x, f)) : k ? (f.value = v[x], Object.defineProperty(e, x, f)) : e[x] = v[x];
  1425. if (k) {
  1426. var m, p;
  1427. if (this.Sg && this.Sg[x]) {
  1428. var k = this.Sg[x],
  1429. s;
  1430. for (s in this.Tg) {
  1431. if (this.Tg[s] === k) {
  1432. p = s;
  1433. break
  1434. }
  1435. }
  1436. b.l(e, k, v[x], v[p] ? v[p] : e[p], x, p)
  1437. }
  1438. if (this.Tg && this.Tg[x]) {
  1439. k = this.Tg[x];
  1440. for (s in this.Sg) {
  1441. if (this.Sg[s] === k) {
  1442. m = s;
  1443. break
  1444. }
  1445. }
  1446. b.l(e, k, v[m] ? v[m] : e[m], v[x], m, x)
  1447. }
  1448. }
  1449. }
  1450. }
  1451. y.extend = b.Ia.extend;
  1452. y.G6 = function(j) {
  1453. for (var i in j) {
  1454. e[i] = j[i]
  1455. }
  1456. };
  1457. return y
  1458. }
  1459. })();
  1460. b.l = function(a, c, e, h, k, m) {
  1461. if (a.__defineGetter__) {
  1462. e && a.__defineGetter__(c, e), h && a.__defineSetter__(c, h)
  1463. } else {
  1464. if (Object.defineProperty) {
  1465. var n = {
  1466. enumerable: !1,
  1467. configurable: !0
  1468. };
  1469. e && (n.get = e);
  1470. h && (n.set = h);
  1471. Object.defineProperty(a, c, n)
  1472. } else {
  1473. throw Error("browser does not support getters")
  1474. }
  1475. } if (!k && !m) {
  1476. for (var n = null != e, p = void 0 != h, r = Object.getOwnPropertyNames(a), d = 0; d < r.length; d++) {
  1477. var f = r[d];
  1478. if ((a.__lookupGetter__ ? !a.__lookupGetter__(f) : !Object.getOwnPropertyDescriptor(a, f)) && "function" === typeof a[f]) {
  1479. var g = a[f];
  1480. if (n && g === e && (k = f, !p || m)) {
  1481. break
  1482. }
  1483. if (p && g === h && (m = f, !n || k)) {
  1484. break
  1485. }
  1486. }
  1487. }
  1488. }
  1489. a = a.constructor;
  1490. k && (a.Sg || (a.Sg = {}), a.Sg[k] = c);
  1491. m && (a.Tg || (a.Tg = {}), a.Tg[m] = c)
  1492. };
  1493. b.k = function(e) {
  1494. var a = e.constructor ? new e.constructor : {},
  1495. c;
  1496. for (c in e) {
  1497. var d = e[c];
  1498. a[c] = "object" !== typeof d || !d || d instanceof b.f || d instanceof HTMLElement ? d : b.k(d)
  1499. }
  1500. return a
  1501. };
  1502. b.nv = function(d, a) {
  1503. for (var c in d) {
  1504. a[c] = d[c]
  1505. }
  1506. };
  1507. b = b || {};
  1508. b.na = b.na || {};
  1509. b.f2 = function() {};
  1510. b.q_ = {
  1511. i8: 0,
  1512. back: 6,
  1513. ff: 18,
  1514. i2: 8,
  1515. Bba: 9,
  1516. N3: 13,
  1517. shift: 16,
  1518. K2: 17,
  1519. alt: 18,
  1520. pause: 19,
  1521. q2: 20,
  1522. escape: 27,
  1523. jba: 32,
  1524. Y8: 33,
  1525. X8: 34,
  1526. end: 35,
  1527. home: 36,
  1528. left: 37,
  1529. Rba: 38,
  1530. right: 39,
  1531. X2: 40,
  1532. select: 41,
  1533. L6: 45,
  1534. ZZ: 46,
  1535. 0: 48,
  1536. 1: 49,
  1537. 2: 50,
  1538. 3: 51,
  1539. 4: 52,
  1540. 5: 53,
  1541. 6: 54,
  1542. 7: 55,
  1543. 8: 56,
  1544. 9: 57,
  1545. a: 65,
  1546. b: 66,
  1547. c: 67,
  1548. R: 68,
  1549. j3: 69,
  1550. S3: 70,
  1551. g: 71,
  1552. C6: 72,
  1553. F6: 73,
  1554. s7: 74,
  1555. t7: 75,
  1556. R7: 76,
  1557. Y7: 77,
  1558. wv: 78,
  1559. u8: 79,
  1560. d: 80,
  1561. q9: 81,
  1562. r: 82,
  1563. l$: 83,
  1564. Aba: 84,
  1565. u: 85,
  1566. v: 86,
  1567. M: 87,
  1568. x: 88,
  1569. y: 89,
  1570. z: 90,
  1571. j8: 96,
  1572. k8: 97,
  1573. l8: 98,
  1574. m8: 99,
  1575. n8: 100,
  1576. o8: 101,
  1577. p8: 102,
  1578. q8: 103,
  1579. r8: 104,
  1580. s8: 105,
  1581. "*": 106,
  1582. "+": 107,
  1583. "-": 109,
  1584. numdel: 110,
  1585. "/": 111,
  1586. T3: 112,
  1587. X3: 113,
  1588. Y3: 114,
  1589. Z3: 115,
  1590. a4: 116,
  1591. b4: 117,
  1592. c4: 118,
  1593. d4: 119,
  1594. e4: 120,
  1595. U3: 121,
  1596. V3: 122,
  1597. W3: 123,
  1598. t8: 144,
  1599. q$: 145,
  1600. ";": 186,
  1601. s$: 186,
  1602. O3: 187,
  1603. "\x3d": 187,
  1604. ",": 188,
  1605. A2: 188,
  1606. L2: 189,
  1607. ".": 190,
  1608. k9: 190,
  1609. l4: 191,
  1610. A6: 192,
  1611. "[": 219,
  1612. z8: 219,
  1613. h2: 220,
  1614. "]": 221,
  1615. x2: 221,
  1616. quote: 222,
  1617. a3: 1000,
  1618. b3: 1001,
  1619. c3: 1003,
  1620. Z2: 1004,
  1621. Y2: 1005
  1622. };
  1623. b.f_ = 0;
  1624. b.TL = 1;
  1625. b.UL = 2;
  1626. b.g_ = 3;
  1627. b.h_ = 4;
  1628. b.VL = 5;
  1629. b.n5 = function(a) {
  1630. 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.TL : 2 < a.length && (73 === a[0] && 73 === a[1] || 77 === a[0] && 77 === a[1] || 255 === a[0] && 216 === a[1]) ? b.UL : b.VL
  1631. };
  1632. b.H6 = function(d, a) {
  1633. function c() {}
  1634. c.prototype = a.prototype;
  1635. d.aw = a.prototype;
  1636. d.prototype = new c;
  1637. d.prototype.constructor = d
  1638. };
  1639. b.j2 = function(e, f, g) {
  1640. var h = arguments.callee.caller;
  1641. if (h.aw) {
  1642. return ret = h.aw.constructor.apply(e, Array.prototype.slice.call(arguments, 1))
  1643. }
  1644. for (var a = Array.prototype.slice.call(arguments, 2), c = !1, d = e.constructor; d; d = d.aw && d.aw.constructor) {
  1645. if (d.prototype[f] === h) {
  1646. c = !0
  1647. } else {
  1648. if (c) {
  1649. return d.prototype[f].apply(e, a)
  1650. }
  1651. }
  1652. }
  1653. if (e[f] === h) {
  1654. return e.constructor.prototype[f].apply(e, a)
  1655. }
  1656. throw Error("cc.base called from a method of one name to a method of a different name")
  1657. };
  1658. b.XM = function() {
  1659. this.y = this.x = 0
  1660. };
  1661. b.d = function(c, a) {
  1662. return void 0 === c ? {
  1663. x: 0,
  1664. y: 0
  1665. } : void 0 === a ? {
  1666. x: c.x,
  1667. y: c.y
  1668. } : {
  1669. x: c,
  1670. y: a
  1671. }
  1672. };
  1673. b.DW = function(c, a) {
  1674. return c && a && c.x === a.x && c.y === a.y
  1675. };
  1676. b.j0 = function(c, a) {
  1677. this.width = c || 0;
  1678. this.height = a || 0
  1679. };
  1680. b.size = function(c, a) {
  1681. return void 0 === c ? {
  1682. width: 0,
  1683. height: 0
  1684. } : void 0 === a ? {
  1685. width: c.width,
  1686. height: c.height
  1687. } : {
  1688. width: c,
  1689. height: a
  1690. }
  1691. };
  1692. b.hba = function(c, a) {
  1693. return c && a && c.width === a.width && c.height === a.height
  1694. };
  1695. b.Nh = function(e, a, c, d) {
  1696. this.x = e || 0;
  1697. this.y = a || 0;
  1698. this.width = c || 0;
  1699. this.height = d || 0
  1700. };
  1701. b.rect = function(e, a, c, d) {
  1702. return void 0 === e ? {
  1703. x: 0,
  1704. y: 0,
  1705. width: 0,
  1706. height: 0
  1707. } : void 0 === a ? {
  1708. x: e.x,
  1709. y: e.y,
  1710. width: e.width,
  1711. height: e.height
  1712. } : {
  1713. x: e,
  1714. y: a,
  1715. width: c,
  1716. height: d
  1717. }
  1718. };
  1719. b.RJ = function(c, a) {
  1720. return c && a && c.x === a.x && c.y === a.y && c.width === a.width && c.height === a.height
  1721. };
  1722. b.lz = function(a) {
  1723. return a && 0 === a.x && 0 === a.y && 0 === a.width && 0 === a.height
  1724. };
  1725. b.x9 = function(c, a) {
  1726. return c && a ? !(c.x >= a.x || c.y >= a.y || c.x + c.width <= a.x + a.width || c.y + c.height <= a.y + a.height) : !1
  1727. };
  1728. b.pr = function(a) {
  1729. return a.x + a.width
  1730. };
  1731. b.y9 = function(a) {
  1732. return a.x + a.width / 2
  1733. };
  1734. b.oo = function(a) {
  1735. return a.x
  1736. };
  1737. b.qr = function(a) {
  1738. return a.y + a.height
  1739. };
  1740. b.z9 = function(a) {
  1741. return a.y + a.height / 2
  1742. };
  1743. b.po = function(a) {
  1744. return a.y
  1745. };
  1746. b.QJ = function(c, a) {
  1747. return a.x >= b.oo(c) && a.x <= b.pr(c) && a.y >= b.po(c) && a.y <= b.qr(c)
  1748. };
  1749. b.B9 = function(f, a) {
  1750. var c = f.y + f.height,
  1751. d = a.x + a.width,
  1752. e = a.y + a.height;
  1753. return !(f.x + f.width < a.x || d < f.x || c < a.y || e < f.y)
  1754. };
  1755. b.C9 = function(c, a) {
  1756. return !(c.x + c.width < a.x || a.x + a.width < c.x || c.y + c.height < a.y || a.y + a.height < c.y)
  1757. };
  1758. b.Dv = function(d, a) {
  1759. var c = b.rect(0, 0, 0, 0);
  1760. c.x = Math.min(d.x, a.x);
  1761. c.y = Math.min(d.y, a.y);
  1762. c.width = Math.max(d.x + d.width, a.x + a.width) - c.x;
  1763. c.height = Math.max(d.y + d.height, a.y + a.height) - c.y;
  1764. return c
  1765. };
  1766. b.A9 = function(d, a) {
  1767. var c = b.rect(Math.max(b.oo(d), b.oo(a)), Math.max(b.po(d), b.po(a)), 0, 0);
  1768. c.width = Math.min(b.pr(d), b.pr(a)) - b.oo(c);
  1769. c.height = Math.min(b.qr(d), b.qr(a)) - b.po(c);
  1770. return c
  1771. };
  1772. b.dD = b.Ia.extend({
  1773. wG: null,
  1774. Ey: null,
  1775. ctor: function() {
  1776. window.DOMParser ? (this.Ey = !0, this.wG = new DOMParser) : this.Ey = !1
  1777. },
  1778. parse: function(a) {
  1779. return this.vG(a)
  1780. },
  1781. vG: function(c) {
  1782. var a;
  1783. this.Ey ? a = this.wG.parseFromString(c, "text/xml") : (a = new ActiveXObject("Microsoft.XMLDOM"), a.async = "false", a.loadXML(c));
  1784. return a
  1785. }
  1786. });
  1787. b.WM = b.dD.extend({
  1788. parse: function(e) {
  1789. e = this.vG(e).documentElement;
  1790. if ("plist" !== e.tagName) {
  1791. throw "Not a plist file!"
  1792. }
  1793. for (var a = null, c = 0, d = e.childNodes.length; c < d && (a = e.childNodes[c], 1 !== a.nodeType); c++) {}
  1794. return this.Yy(a)
  1795. },
  1796. Yy: function(d) {
  1797. var a = null,
  1798. c = d.tagName;
  1799. if ("dict" === c) {
  1800. a = this.TQ(d)
  1801. } else {
  1802. if ("array" === c) {
  1803. a = this.SQ(d)
  1804. } else {
  1805. if ("string" === c) {
  1806. if (1 === d.childNodes.length) {
  1807. a = d.firstChild.nodeValue
  1808. } else {
  1809. for (a = "", c = 0; c < d.childNodes.length; c++) {
  1810. a += d.childNodes[c].nodeValue
  1811. }
  1812. }
  1813. } else {
  1814. "false" === c ? a = !1 : "true" === c ? a = !0 : "real" === c ? a = parseFloat(d.firstChild.nodeValue) : "integer" === c && (a = parseInt(d.firstChild.nodeValue, 10))
  1815. }
  1816. }
  1817. }
  1818. return a
  1819. },
  1820. SQ: function(f) {
  1821. for (var a = [], c = 0, d = f.childNodes.length; c < d; c++) {
  1822. var e = f.childNodes[c];
  1823. 1 === e.nodeType && a.push(this.Yy(e))
  1824. }
  1825. return a
  1826. },
  1827. TQ: function(f) {
  1828. for (var g = {}, a = null, c = 0, d = f.childNodes.length; c < d; c++) {
  1829. var e = f.childNodes[c];
  1830. 1 === e.nodeType && ("key" === e.tagName ? a = e.firstChild.nodeValue : g[a] = this.Yy(e))
  1831. }
  1832. return g
  1833. }
  1834. });
  1835. b.TR = {
  1836. load: function(e, a, c, d) {
  1837. b.S.tv(e, d)
  1838. }
  1839. };
  1840. b.S.Gh(["txt", "xml", "vsh", "fsh", "atlas"], b.TR);
  1841. b.BQ = {
  1842. load: function(e, a, c, d) {
  1843. b.S.IB(e, d)
  1844. }
  1845. };
  1846. b.S.Gh(["json", "ExportJson"], b.BQ);
  1847. b.AQ = {
  1848. load: function(e, a, c, d) {
  1849. b.S.zJ(e, d)
  1850. }
  1851. };
  1852. b.S.Gh(["js"], b.AQ);
  1853. b.lQ = {
  1854. load: function(e, a, c, d) {
  1855. b.S.Vc[a] = b.S.Ah(e, function(g, f) {
  1856. if (g) {
  1857. return d(g)
  1858. }
  1859. b.Ra.fb(a);
  1860. d(null, f)
  1861. })
  1862. }
  1863. };
  1864. b.S.Gh("png jpg bmp jpeg gif ico".split(" "), b.lQ);
  1865. b.lR = {
  1866. load: function(e, a, c, d) {
  1867. b.S.Vc[a] = b.S.Ah(c.src, function(g, f) {
  1868. if (g) {
  1869. return d(g)
  1870. }
  1871. b.Ra.fb(a);
  1872. d(null, f)
  1873. })
  1874. }
  1875. };
  1876. b.S.Gh(["serverImg"], b.lR);
  1877. b.$Q = {
  1878. load: function(e, a, c, d) {
  1879. b.S.tv(e, function(g, f) {
  1880. if (g) {
  1881. return d(g)
  1882. }
  1883. d(null, b.BW.parse(f))
  1884. })
  1885. }
  1886. };
  1887. b.S.Gh(["plist"], b.$Q);
  1888. b.zP = {
  1889. VN: {
  1890. ".eot": "embedded-opentype",
  1891. ".ttf": "truetype",
  1892. ".woff": "woff",
  1893. ".svg": "svg"
  1894. },
  1895. bG: function(g, h, k) {
  1896. var m = document,
  1897. n = b.path,
  1898. a = this.VN,
  1899. c = b.ac("style");
  1900. c.type = "text/css";
  1901. m.body.appendChild(c);
  1902. var d = "@font-face { font-family:" + g + "; src:";
  1903. if (h instanceof Array) {
  1904. for (var e = 0, f = h.length; e < f; e++) {
  1905. k = n.Yj(h[e]).toLowerCase(), d += "url('" + h[e] + "') format('" + a[k] + "')", d += e === f - 1 ? ";" : ","
  1906. }
  1907. } else {
  1908. d += "url('" + h + "') format('" + a[k] + "');"
  1909. }
  1910. c.textContent += d + "};";
  1911. h = b.ac("div");
  1912. k = h.style;
  1913. k.fontFamily = g;
  1914. h.innerHTML = ".";
  1915. k.position = "absolute";
  1916. k.left = "-100px";
  1917. k.top = "-100px";
  1918. m.body.appendChild(h)
  1919. },
  1920. load: function(e, a, c, d) {
  1921. a = c.type;
  1922. e = c.name;
  1923. a = c.nba;
  1924. b.ge(c) ? (a = b.path.Yj(c), e = b.path.SS(c, a), this.bG(e, c, a)) : this.bG(e, a);
  1925. d(null, !0)
  1926. }
  1927. };
  1928. b.S.Gh(["font", "eot", "ttf", "woff", "svg"], b.zP);
  1929. b.M0 = {
  1930. load: function(e, a, c, d) {
  1931. b.S.hW(e, d)
  1932. }
  1933. };
  1934. b.oP = {
  1935. load: function(e, a, c, d) {
  1936. b.S.iW(e, d)
  1937. }
  1938. };
  1939. b.S.Gh(["csb"], b.oP);
  1940. window.CocosEngine = b.pw = "Cocos2d-JS v3.5";
  1941. b.uw = 0;
  1942. b.lw = b.d(0, 0);
  1943. b.wL = 0.5;
  1944. b.JZ = 1;
  1945. b.iD = 1;
  1946. b.IM = 0;
  1947. b.kD = 0;
  1948. b.lD = 0;
  1949. b.q0 = 0;
  1950. b.e0 = 1;
  1951. b.d0 = "-hd";
  1952. b.KO = 1;
  1953. b.Xw = 0;
  1954. b.g0 = 0;
  1955. b.fM = 0;
  1956. b.eM = 0;
  1957. b.ww = 1;
  1958. b.OZ = b.pw + "-canvas";
  1959. b.Xr = 1;
  1960. b.cg = 1;
  1961. b.hb = function(c) {
  1962. var a = this === b ? document : this;
  1963. if (c = c instanceof HTMLElement ? c : a.querySelector(c)) {
  1964. c.find = c.find || b.hb, c.wB = c.wB || function(d) {
  1965. return this.className.match(RegExp("(\\s|^)" + d + "(\\s|$)"))
  1966. }, c.YH = c.YH || function(d) {
  1967. this.wB(d) || (this.className && (this.className += " "), this.className += d);
  1968. return this
  1969. }, c.SW = c.SW || function(d) {
  1970. this.wB(d) && (this.className = this.className.replace(d, ""));
  1971. return this
  1972. }, c.remove = c.remove || function() {
  1973. this.parentNode && this.parentNode.removeChild(this);
  1974. return this
  1975. }, c.bI = c.bI || function(d) {
  1976. d.appendChild(this);
  1977. return this
  1978. }, c.IW = c.IW || function(d) {
  1979. d.childNodes[0] ? d.insertBefore(this, d.childNodes[0]) : d.appendChild(this);
  1980. return this
  1981. }, c.Er = c.Er || function() {
  1982. this.style[b.hb.PY] = b.hb.translate(this.position) + b.hb.rotate(this.rotation) + b.hb.scale(this.scale) + b.hb.vo(this.vo);
  1983. return this
  1984. }, c.position = c.position || {
  1985. x: 0,
  1986. y: 0
  1987. }, c.rotation = c.rotation || 0, c.scale = c.scale || {
  1988. x: 1,
  1989. y: 1
  1990. }, c.vo = c.vo || {
  1991. x: 0,
  1992. y: 0
  1993. }, c.Jba = function(e, d) {
  1994. this.position.x = e;
  1995. this.position.y = d;
  1996. this.Er();
  1997. return this
  1998. }, c.rotate = function(d) {
  1999. this.rotation = d;
  2000. this.Er();
  2001. return this
  2002. }, c.resize = function(e, d) {
  2003. this.scale.x = e;
  2004. this.scale.y = d;
  2005. this.Er();
  2006. return this
  2007. }, c.Baa = function(e, d) {
  2008. this.vo.x = e;
  2009. this.vo.y = d;
  2010. this.Er();
  2011. return this
  2012. }
  2013. }
  2014. return c
  2015. };
  2016. switch (b.Z.Sf) {
  2017. case b.Z.Wi:
  2018. b.hb.nr = "Moz";
  2019. b.hb.eo = !0;
  2020. break;
  2021. case b.Z.Vi:
  2022. case b.Z.rk:
  2023. b.hb.nr = "webkit";
  2024. b.hb.eo = !0;
  2025. break;
  2026. case b.Z.gw:
  2027. b.hb.nr = "O";
  2028. b.hb.eo = !1;
  2029. break;
  2030. case b.Z.qk:
  2031. b.hb.nr = "ms";
  2032. b.hb.eo = !1;
  2033. break;
  2034. default:
  2035. b.hb.nr = "webkit", b.hb.eo = !0
  2036. }
  2037. b.hb.PY = b.hb.nr + "Transform";
  2038. b.hb.translate = b.hb.eo ? function(a) {
  2039. return "translate3d(" + a.x + "px, " + a.y + "px, 0) "
  2040. } : function(a) {
  2041. return "translate(" + a.x + "px, " + a.y + "px) "
  2042. };
  2043. b.hb.rotate = b.hb.eo ? function(a) {
  2044. return "rotateZ(" + a + "deg) "
  2045. } : function(a) {
  2046. return "rotate(" + a + "deg) "
  2047. };
  2048. b.hb.scale = function(a) {
  2049. return "scale(" + a.x + ", " + a.y + ") "
  2050. };
  2051. b.hb.vo = function(a) {
  2052. return "skewX(" + -a.x + "deg) skewY(" + a.y + "deg)"
  2053. };
  2054. b.cZ = function(a) {
  2055. return b.hb(document.createElement(a))
  2056. };
  2057. b.hb.j4 = function(d) {
  2058. var a = 0,
  2059. c = 0;
  2060. do {
  2061. a += d.offsetLeft, c += d.offsetTop
  2062. } while (d = d.offsetParent);
  2063. return {
  2064. x: a,
  2065. y: c
  2066. }
  2067. };
  2068. b.o_ = -1;
  2069. b.PI = Math.PI;
  2070. b.SL = parseFloat("3.402823466e+38F");
  2071. b.e_ = parseFloat("1.175494351e-38F");
  2072. b.YM = b.PI / 180;
  2073. b.GC = 180 / b.PI;
  2074. b.TD = 4294967295;
  2075. b.wo = function(e, a, c) {
  2076. if (!b.ar(c) || b.Gi(c.x) || b.Gi(c.y)) {
  2077. b.log(b.j.wo)
  2078. } else {
  2079. var d = c[e];
  2080. c[e] = c[a];
  2081. c[a] = d
  2082. }
  2083. };
  2084. b.gW = function(d, a, c) {
  2085. return d + (a - d) * c
  2086. };
  2087. b.s9 = function() {
  2088. return 16777215 * Math.random()
  2089. };
  2090. b.u9 = function() {
  2091. return 2 * (Math.random() - 0.5)
  2092. };
  2093. b.t9 = Math.random;
  2094. b.Ce = function(a) {
  2095. return a * b.YM
  2096. };
  2097. b.QB = function(a) {
  2098. return a * b.GC
  2099. };
  2100. b.OJ = function(a) {
  2101. b.log(b.j.OJ);
  2102. return a * b.GC
  2103. };
  2104. b.fg = Number.MAX_VALUE - 1;
  2105. b.qf = b.IM ? 1 : 770;
  2106. b.pf = 771;
  2107. b.f8 = function(a) {
  2108. a.va && (a.va.Ub(), a.va.Ih())
  2109. };
  2110. b.M3 = function() {};
  2111. b.R2 = function() {};
  2112. b.Xf = function() {
  2113. b.df += 1
  2114. };
  2115. b.ps = 1.192092896e-7;
  2116. b.jb = b.ww ? function() {
  2117. return b.I.Kk
  2118. } : function() {
  2119. return 1
  2120. };
  2121. b.FW = function(c) {
  2122. var a = b.jb();
  2123. return b.d(c.x * a, c.y * a)
  2124. };
  2125. b.EW = function(c) {
  2126. var a = b.jb();
  2127. return b.d(c.x / a, c.y / a)
  2128. };
  2129. b.$y = function(d, a) {
  2130. var c = b.jb();
  2131. a.x = d.x / c;
  2132. a.y = d.y / c
  2133. };
  2134. b.kY = function(c) {
  2135. var a = b.jb();
  2136. return b.size(c.width * a, c.height * a)
  2137. };
  2138. b.jY = function(c) {
  2139. var a = b.jb();
  2140. return b.size(c.width / a, c.height / a)
  2141. };
  2142. b.lH = function(d, a) {
  2143. var c = b.jb();
  2144. a.width = d.width / c;
  2145. a.height = d.height / c
  2146. };
  2147. b.Cv = b.ww ? function(c) {
  2148. var a = b.jb();
  2149. return b.rect(c.x / a, c.y / a, c.width / a, c.height / a)
  2150. } : function(a) {
  2151. return a
  2152. };
  2153. b.rr = b.ww ? function(c) {
  2154. var a = b.jb();
  2155. return b.rect(c.x * a, c.y * a, c.width * a, c.height * a)
  2156. } : function(a) {
  2157. return a
  2158. };
  2159. b.ONE = 1;
  2160. b.ZERO = 0;
  2161. b.SRC_ALPHA = 770;
  2162. b.SRC_ALPHA_SATURATE = 776;
  2163. b.SRC_COLOR = 768;
  2164. b.DST_ALPHA = 772;
  2165. b.DST_COLOR = 774;
  2166. b.ONE_MINUS_SRC_ALPHA = 771;
  2167. b.ONE_MINUS_SRC_COLOR = 769;
  2168. b.ONE_MINUS_DST_ALPHA = 773;
  2169. b.ONE_MINUS_DST_COLOR = 775;
  2170. b.ONE_MINUS_CONSTANT_ALPHA = 32772;
  2171. b.ONE_MINUS_CONSTANT_COLOR = 32770;
  2172. b.LINEAR = 9729;
  2173. b.REPEAT = 10497;
  2174. b.CLAMP_TO_EDGE = 33071;
  2175. b.MIRRORED_REPEAT = 33648;
  2176. b.Pn = function() {
  2177. if (b.sr === b.Lb) {
  2178. var a = b.s.getError();
  2179. a && b.log(b.j.Pn, a)
  2180. }
  2181. };
  2182. b.VZ = 0;
  2183. b.TZ = 1;
  2184. b.WZ = 2;
  2185. b.UZ = 3;
  2186. b.SZ = 2;
  2187. b.B0 = 0;
  2188. b.ad = 1;
  2189. b.op = 2;
  2190. b.pm = 4;
  2191. b.pp = b.ad | b.op | b.pm;
  2192. b.k_ = 0;
  2193. b.ab = 0;
  2194. b.ne = 1;
  2195. b.Ed = 2;
  2196. b.C0 = 3;
  2197. b.mp = 0;
  2198. b.lp = 1;
  2199. b.om = 2;
  2200. b.Ns = 3;
  2201. b.Ms = 4;
  2202. b.Ls = 5;
  2203. b.np = 6;
  2204. b.jx = 7;
  2205. b.z0 = 8;
  2206. b.Ak = "ShaderPositionTextureColor";
  2207. b.gD = "ShaderPositionTextureColorAlphaTest";
  2208. b.zs = "ShaderPositionColor";
  2209. b.kp = "ShaderPositionTexture";
  2210. b.Vw = "ShaderPositionTexture_uColor";
  2211. b.Uw = "ShaderPositionTextureA8Color";
  2212. b.Ww = "ShaderPosition_uColor";
  2213. b.fD = "ShaderPositionLengthTextureColor";
  2214. b.FO = "CC_PMatrix";
  2215. b.DO = "CC_MVMatrix";
  2216. b.EO = "CC_MVPMatrix";
  2217. b.JO = "CC_Time";
  2218. b.IO = "CC_SinTime";
  2219. b.CO = "CC_CosTime";
  2220. b.GO = "CC_Random01";
  2221. b.HO = "CC_Texture0";
  2222. b.y0 = "CC_alpha_value";
  2223. b.Do = "a_color";
  2224. b.pk = "a_position";
  2225. b.$l = "a_texCoord";
  2226. b.cM = 32;
  2227. b.CC = 3233828865;
  2228. b.Os = 3233828866;
  2229. b.pM = 8801;
  2230. b.aN = 8802;
  2231. b.xL = 8803;
  2232. b.Hq = function(d, a) {
  2233. if (d && 0 < d.length) {
  2234. for (var c = 0; c < d.length; c++) {
  2235. if (!(d[c] instanceof a)) {
  2236. return b.log("element type is wrong!"), !1
  2237. }
  2238. }
  2239. }
  2240. return !0
  2241. };
  2242. b.fe = function(e, a) {
  2243. for (var c = 0, d = e.length; c < d; c++) {
  2244. if (e[c] === a) {
  2245. e.splice(c, 1);
  2246. break
  2247. }
  2248. }
  2249. };
  2250. b.e2 = function(e, a) {
  2251. for (var c = 0, d = a.length; c < d; c++) {
  2252. b.fe(e, a[c])
  2253. }
  2254. };
  2255. b.d2 = function(d, a, c) {
  2256. d.splice.apply(d, [c, 0].concat(a));
  2257. return d
  2258. };
  2259. b.xI = function(e) {
  2260. var a, c = e.length,
  2261. d = Array(c);
  2262. for (a = 0; a < c; a += 1) {
  2263. d[a] = e[a]
  2264. }
  2265. return d
  2266. };
  2267. b = b || {};
  2268. b.na = b.na || {};
  2269. b.na.lx = function() {
  2270. b.color = function(f, g, h, c, d, e) {
  2271. return void 0 === f ? new b.Bd(0, 0, 0, 255, d, e) : b.ge(f) ? (f = b.gJ(f), new b.Bd(f.r, f.g, f.b, f.a)) : b.ar(f) ? new b.Bd(f.r, f.g, f.b, f.a, f.arrayBuffer, f.offset) : new b.Bd(f, g, h, c, d, e)
  2272. };
  2273. b.Bd = function(e, f, g, h, k, c) {
  2274. this.zc = k || new ArrayBuffer(b.Bd.BYTES_PER_ELEMENT);
  2275. this.Eb = c || 0;
  2276. k = this.zc;
  2277. c = this.Eb;
  2278. var d = Uint8Array.BYTES_PER_ELEMENT;
  2279. this.kz = new Uint8Array(k, c, 1);
  2280. this.fy = new Uint8Array(k, c + d, 1);
  2281. this.xx = new Uint8Array(k, c + 2 * d, 1);
  2282. this.rx = new Uint8Array(k, c + 3 * d, 1);
  2283. this.kz[0] = e || 0;
  2284. this.fy[0] = f || 0;
  2285. this.xx[0] = g || 0;
  2286. this.rx[0] = null == h ? 255 : h;
  2287. void 0 === h && (this.aS = !0)
  2288. };
  2289. b.Bd.BYTES_PER_ELEMENT = 4;
  2290. var a = b.Bd.prototype;
  2291. a.YP = function() {
  2292. return this.kz[0]
  2293. };
  2294. a.vR = function(c) {
  2295. this.kz[0] = 0 > c ? 0 : c
  2296. };
  2297. a.QP = function() {
  2298. return this.fy[0]
  2299. };
  2300. a.sR = function(c) {
  2301. this.fy[0] = 0 > c ? 0 : c
  2302. };
  2303. a.iy = function() {
  2304. return this.xx[0]
  2305. };
  2306. a.yz = function(c) {
  2307. this.xx[0] = 0 > c ? 0 : c
  2308. };
  2309. a.gy = function() {
  2310. return this.rx[0]
  2311. };
  2312. a.vz = function(c) {
  2313. this.rx[0] = 0 > c ? 0 : c
  2314. };
  2315. b.l(a, "r", a.YP, a.vR);
  2316. b.l(a, "g", a.QP, a.sR);
  2317. b.l(a, "b", a.iy, a.yz);
  2318. b.l(a, "a", a.gy, a.vz);
  2319. z = function(f, c, d, e) {
  2320. this.zc = d || new ArrayBuffer(z.BYTES_PER_ELEMENT);
  2321. this.Eb = e || 0;
  2322. this.rl = new Float32Array(this.zc, this.Eb, 1);
  2323. this.sl = new Float32Array(this.zc, this.Eb + 4, 1);
  2324. this.rl[0] = f || 0;
  2325. this.sl[0] = c || 0
  2326. };
  2327. z.BYTES_PER_ELEMENT = 8;
  2328. a = z.prototype;
  2329. a.wy = function() {
  2330. return this.rl[0]
  2331. };
  2332. a.Mz = function(c) {
  2333. this.rl[0] = c
  2334. };
  2335. a.xy = function() {
  2336. return this.sl[0]
  2337. };
  2338. a.Nz = function(c) {
  2339. this.sl[0] = c
  2340. };
  2341. b.l(a, "x", a.wy, a.Mz);
  2342. b.l(a, "y", a.xy, a.Nz);
  2343. D = function(g, c, d, e, f) {
  2344. this.zc = e || new ArrayBuffer(D.BYTES_PER_ELEMENT);
  2345. this.Eb = f || 0;
  2346. e = this.zc;
  2347. f = this.Eb;
  2348. this.rl = new Float32Array(e, f, 1);
  2349. this.rl[0] = g || 0;
  2350. this.sl = new Float32Array(e, f + Float32Array.BYTES_PER_ELEMENT, 1);
  2351. this.sl[0] = c || 0;
  2352. this.rA = new Float32Array(e, f + 2 * Float32Array.BYTES_PER_ELEMENT, 1);
  2353. this.rA[0] = d || 0
  2354. };
  2355. D.BYTES_PER_ELEMENT = 12;
  2356. a = D.prototype;
  2357. a.wy = function() {
  2358. return this.rl[0]
  2359. };
  2360. a.Mz = function(c) {
  2361. this.rl[0] = c
  2362. };
  2363. a.xy = function() {
  2364. return this.sl[0]
  2365. };
  2366. a.Nz = function(c) {
  2367. this.sl[0] = c
  2368. };
  2369. a.kQ = function() {
  2370. return this.rA[0]
  2371. };
  2372. a.ER = function(c) {
  2373. this.rA[0] = c
  2374. };
  2375. b.l(a, "x", a.wy, a.Mz);
  2376. b.l(a, "y", a.xy, a.Nz);
  2377. b.l(a, "z", a.kQ, a.ER);
  2378. E = function(f, c, d, e) {
  2379. this.zc = d || new ArrayBuffer(E.BYTES_PER_ELEMENT);
  2380. this.Eb = e || 0;
  2381. this.fA = new Float32Array(this.zc, this.Eb, 1);
  2382. this.iA = new Float32Array(this.zc, this.Eb + 4, 1);
  2383. this.fA[0] = f || 0;
  2384. this.iA[0] = c || 0
  2385. };
  2386. E.BYTES_PER_ELEMENT = 8;
  2387. a = E.prototype;
  2388. a.eQ = function() {
  2389. return this.fA[0]
  2390. };
  2391. a.CR = function(c) {
  2392. this.fA[0] = c
  2393. };
  2394. a.hQ = function() {
  2395. return this.iA[0]
  2396. };
  2397. a.DR = function(c) {
  2398. this.iA[0] = c
  2399. };
  2400. b.l(a, "u", a.eQ, a.CR);
  2401. b.l(a, "v", a.hQ, a.DR);
  2402. b.Pw = function(f, g, h, c, d, e) {
  2403. this.zc = d || new ArrayBuffer(b.Pw.BYTES_PER_ELEMENT);
  2404. this.Eb = e || 0;
  2405. d = this.zc;
  2406. e = z.BYTES_PER_ELEMENT;
  2407. this.An = f ? new z(f.x, f.y, d, 0) : new z(0, 0, d, 0);
  2408. this.Dn = g ? new z(g.x, g.y, d, e) : new z(0, 0, d, e);
  2409. this.ym = h ? new z(h.x, h.y, d, 2 * e) : new z(0, 0, d, 2 * e);
  2410. this.Cm = c ? new z(c.x, c.y, d, 3 * e) : new z(0, 0, d, 3 * e)
  2411. };
  2412. b.Pw.BYTES_PER_ELEMENT = 32;
  2413. a = b.Pw.prototype;
  2414. a.sy = function() {
  2415. return this.An
  2416. };
  2417. a.Iz = function(c) {
  2418. this.An.x = c.x;
  2419. this.An.y = c.y
  2420. };
  2421. a.ty = function() {
  2422. return this.Dn
  2423. };
  2424. a.Jz = function(c) {
  2425. this.Dn.x = c.x;
  2426. this.Dn.y = c.y
  2427. };
  2428. a.jy = function() {
  2429. return this.ym
  2430. };
  2431. a.zz = function(c) {
  2432. this.ym.x = c.x;
  2433. this.ym.y = c.y
  2434. };
  2435. a.ky = function() {
  2436. return this.Cm
  2437. };
  2438. a.Az = function(c) {
  2439. this.Cm.x = c.x;
  2440. this.Cm.y = c.y
  2441. };
  2442. b.l(a, "tl", a.sy, a.Iz);
  2443. b.l(a, "tr", a.ty, a.Jz);
  2444. b.l(a, "bl", a.jy, a.zz);
  2445. b.l(a, "br", a.ky, a.Az);
  2446. b.cD = function(f, c, d, e) {
  2447. this.bl = f || new D(0, 0, 0);
  2448. this.br = c || new D(0, 0, 0);
  2449. this.tl = d || new D(0, 0, 0);
  2450. this.tr = e || new D(0, 0, 0)
  2451. };
  2452. b.uf = function(f, g, h, c, d) {
  2453. this.zc = c || new ArrayBuffer(b.uf.BYTES_PER_ELEMENT);
  2454. this.Eb = d || 0;
  2455. c = this.zc;
  2456. d = this.Eb;
  2457. var e = D.BYTES_PER_ELEMENT;
  2458. this.Ga = f ? new D(f.x, f.y, f.z, c, d) : new D(0, 0, 0, c, d);
  2459. this.Ep = g ? b.color(g.r, g.g, g.b, g.a, c, d + e) : b.color(0, 0, 0, 0, c, d + e);
  2460. this.Ye = h ? new E(h.u, h.v, c, d + e + b.Bd.BYTES_PER_ELEMENT) : new E(0, 0, c, d + e + b.Bd.BYTES_PER_ELEMENT)
  2461. };
  2462. b.uf.BYTES_PER_ELEMENT = 24;
  2463. a = b.uf.prototype;
  2464. a.vy = function() {
  2465. return this.Ga
  2466. };
  2467. a.Lz = function(d) {
  2468. var c = this.Ga;
  2469. c.x = d.x;
  2470. c.y = d.y;
  2471. c.z = d.z
  2472. };
  2473. a.ny = function() {
  2474. return this.Ep
  2475. };
  2476. a.Bz = function(d) {
  2477. var c = this.Ep;
  2478. c.r = d.r;
  2479. c.g = d.g;
  2480. c.b = d.b;
  2481. c.a = d.a
  2482. };
  2483. a.uy = function() {
  2484. return this.Ye
  2485. };
  2486. a.Kz = function(c) {
  2487. this.Ye.u = c.u;
  2488. this.Ye.v = c.v
  2489. };
  2490. b.l(a, "vertices", a.vy, a.Lz);
  2491. b.l(a, "colors", a.ny, a.Bz);
  2492. b.l(a, "texCoords", a.uy, a.Kz);
  2493. b.Qb = function(e, f, g, h, k, c) {
  2494. this.zc = k || new ArrayBuffer(b.Qb.BYTES_PER_ELEMENT);
  2495. this.Eb = c || 0;
  2496. k = this.zc;
  2497. c = this.Eb;
  2498. var d = b.uf.BYTES_PER_ELEMENT;
  2499. this.An = e ? new b.uf(e.vertices, e.colors, e.texCoords, k, c) : new b.uf(null, null, null, k, c);
  2500. this.ym = f ? new b.uf(f.vertices, f.colors, f.texCoords, k, c + d) : new b.uf(null, null, null, k, c + d);
  2501. this.Dn = g ? new b.uf(g.vertices, g.colors, g.texCoords, k, c + 2 * d) : new b.uf(null, null, null, k, c + 2 * d);
  2502. this.Cm = h ? new b.uf(h.vertices, h.colors, h.texCoords, k, c + 3 * d) : new b.uf(null, null, null, k, c + 3 * d)
  2503. };
  2504. b.Qb.BYTES_PER_ELEMENT = 96;
  2505. a = b.Qb.prototype;
  2506. a.sy = function() {
  2507. return this.An
  2508. };
  2509. a.Iz = function(d) {
  2510. var c = this.An;
  2511. c.vertices = d.vertices;
  2512. c.colors = d.colors;
  2513. c.texCoords = d.texCoords
  2514. };
  2515. a.jy = function() {
  2516. return this.ym
  2517. };
  2518. a.zz = function(d) {
  2519. var c = this.ym;
  2520. c.vertices = d.vertices;
  2521. c.colors = d.colors;
  2522. c.texCoords = d.texCoords
  2523. };
  2524. a.ty = function() {
  2525. return this.Dn
  2526. };
  2527. a.Jz = function(d) {
  2528. var c = this.Dn;
  2529. c.vertices = d.vertices;
  2530. c.colors = d.colors;
  2531. c.texCoords = d.texCoords
  2532. };
  2533. a.ky = function() {
  2534. return this.Cm
  2535. };
  2536. a.Az = function(d) {
  2537. var c = this.Cm;
  2538. c.vertices = d.vertices;
  2539. c.colors = d.colors;
  2540. c.texCoords = d.texCoords
  2541. };
  2542. a.GP = function() {
  2543. return this.zc
  2544. };
  2545. b.l(a, "tl", a.sy, a.Iz);
  2546. b.l(a, "tr", a.ty, a.Jz);
  2547. b.l(a, "bl", a.jy, a.zz);
  2548. b.l(a, "br", a.ky, a.Az);
  2549. b.l(a, "arrayBuffer", a.GP, null);
  2550. b.LO = function() {
  2551. return new b.Qb
  2552. };
  2553. b.VD = function(f) {
  2554. if (!f) {
  2555. return b.LO()
  2556. }
  2557. var c = f.tl,
  2558. d = f.bl,
  2559. e = f.tr;
  2560. f = f.br;
  2561. return {
  2562. tl: {
  2563. vertices: {
  2564. x: c.vertices.x,
  2565. y: c.vertices.y,
  2566. z: c.vertices.z
  2567. },
  2568. colors: {
  2569. r: c.colors.r,
  2570. g: c.colors.g,
  2571. b: c.colors.b,
  2572. a: c.colors.a
  2573. },
  2574. texCoords: {
  2575. u: c.texCoords.u,
  2576. v: c.texCoords.v
  2577. }
  2578. },
  2579. bl: {
  2580. vertices: {
  2581. x: d.vertices.x,
  2582. y: d.vertices.y,
  2583. z: d.vertices.z
  2584. },
  2585. colors: {
  2586. r: d.colors.r,
  2587. g: d.colors.g,
  2588. b: d.colors.b,
  2589. a: d.colors.a
  2590. },
  2591. texCoords: {
  2592. u: d.texCoords.u,
  2593. v: d.texCoords.v
  2594. }
  2595. },
  2596. tr: {
  2597. vertices: {
  2598. x: e.vertices.x,
  2599. y: e.vertices.y,
  2600. z: e.vertices.z
  2601. },
  2602. colors: {
  2603. r: e.colors.r,
  2604. g: e.colors.g,
  2605. b: e.colors.b,
  2606. a: e.colors.a
  2607. },
  2608. texCoords: {
  2609. u: e.texCoords.u,
  2610. v: e.texCoords.v
  2611. }
  2612. },
  2613. br: {
  2614. vertices: {
  2615. x: f.vertices.x,
  2616. y: f.vertices.y,
  2617. z: f.vertices.z
  2618. },
  2619. colors: {
  2620. r: f.colors.r,
  2621. g: f.colors.g,
  2622. b: f.colors.b,
  2623. a: f.colors.a
  2624. },
  2625. texCoords: {
  2626. u: f.texCoords.u,
  2627. v: f.texCoords.v
  2628. }
  2629. }
  2630. }
  2631. };
  2632. b.A0 = function(e) {
  2633. if (!e) {
  2634. return []
  2635. }
  2636. for (var c = [], d = 0; d < e.length; d++) {
  2637. c.push(b.VD(e[d]))
  2638. }
  2639. return c
  2640. };
  2641. b.$c = function(f, g, h, c, d) {
  2642. this.zc = c || new ArrayBuffer(b.$c.BYTES_PER_ELEMENT);
  2643. this.Eb = d || 0;
  2644. c = this.zc;
  2645. d = this.Eb;
  2646. var e = z.BYTES_PER_ELEMENT;
  2647. this.Ga = f ? new z(f.x, f.y, c, d) : new z(0, 0, c, d);
  2648. this.Ep = g ? b.color(g.r, g.g, g.b, g.a, c, d + e) : b.color(0, 0, 0, 0, c, d + e);
  2649. this.Ye = h ? new E(h.u, h.v, c, d + e + b.Bd.BYTES_PER_ELEMENT) : new E(0, 0, c, d + e + b.Bd.BYTES_PER_ELEMENT)
  2650. };
  2651. b.$c.BYTES_PER_ELEMENT = 20;
  2652. a = b.$c.prototype;
  2653. a.vy = function() {
  2654. return this.Ga
  2655. };
  2656. a.Lz = function(c) {
  2657. this.Ga.x = c.x;
  2658. this.Ga.y = c.y
  2659. };
  2660. a.ny = function() {
  2661. return this.Ep
  2662. };
  2663. a.Bz = function(d) {
  2664. var c = this.Ep;
  2665. c.r = d.r;
  2666. c.g = d.g;
  2667. c.b = d.b;
  2668. c.a = d.a
  2669. };
  2670. a.uy = function() {
  2671. return this.Ye
  2672. };
  2673. a.Kz = function(c) {
  2674. this.Ye.u = c.u;
  2675. this.Ye.v = c.v
  2676. };
  2677. b.l(a, "vertices", a.vy, a.Lz);
  2678. b.l(a, "colors", a.ny, a.Bz);
  2679. b.l(a, "texCoords", a.uy, a.Kz);
  2680. b.Kb = function(f, g, h, c, d) {
  2681. this.zc = c || new ArrayBuffer(b.Kb.BYTES_PER_ELEMENT);
  2682. this.Eb = d || 0;
  2683. c = this.zc;
  2684. d = this.Eb;
  2685. var e = b.$c.BYTES_PER_ELEMENT;
  2686. this.aE = f ? new b.$c(f.vertices, f.colors, f.texCoords, c, d) : new b.$c(null, null, null, c, d);
  2687. this.gE = g ? new b.$c(g.vertices, g.colors, g.texCoords, c, d + e) : new b.$c(null, null, null, c, d + e);
  2688. this.lE = h ? new b.$c(h.vertices, h.colors, h.texCoords, c, d + 2 * e) : new b.$c(null, null, null, c, d + 2 * e)
  2689. };
  2690. b.Kb.BYTES_PER_ELEMENT = 60;
  2691. a = b.Kb.prototype;
  2692. a.gy = function() {
  2693. return this.aE
  2694. };
  2695. a.vz = function(d) {
  2696. var c = this.aE;
  2697. c.vertices = d.vertices;
  2698. c.colors = d.colors;
  2699. c.texCoords = d.texCoords
  2700. };
  2701. a.iy = function() {
  2702. return this.gE
  2703. };
  2704. a.yz = function(d) {
  2705. var c = this.gE;
  2706. c.vertices = d.vertices;
  2707. c.colors = d.colors;
  2708. c.texCoords = d.texCoords
  2709. };
  2710. a.KP = function() {
  2711. return this.lE
  2712. };
  2713. a.oR = function(d) {
  2714. var c = this.lE;
  2715. c.vertices = d.vertices;
  2716. c.colors = d.colors;
  2717. c.texCoords = d.texCoords
  2718. };
  2719. b.l(a, "a", a.gy, a.vz);
  2720. b.l(a, "b", a.iy, a.yz);
  2721. b.l(a, "c", a.KP, a.oR)
  2722. };
  2723. b.na.Kw = function() {
  2724. var a = b.color;
  2725. a.iQ = function() {
  2726. return a(255, 255, 255)
  2727. };
  2728. a.jQ = function() {
  2729. return a(255, 255, 0)
  2730. };
  2731. a.IP = function() {
  2732. return a(0, 0, 255)
  2733. };
  2734. a.SP = function() {
  2735. return a(0, 255, 0)
  2736. };
  2737. a.ZP = function() {
  2738. return a(255, 0, 0)
  2739. };
  2740. a.UP = function() {
  2741. return a(255, 0, 255)
  2742. };
  2743. a.HP = function() {
  2744. return a(0, 0, 0)
  2745. };
  2746. a.XP = function() {
  2747. return a(255, 127, 0)
  2748. };
  2749. a.RP = function() {
  2750. return a(166, 166, 166)
  2751. };
  2752. b.l(a, "WHITE", a.iQ);
  2753. b.l(a, "YELLOW", a.jQ);
  2754. b.l(a, "BLUE", a.IP);
  2755. b.l(a, "GREEN", a.SP);
  2756. b.l(a, "RED", a.ZP);
  2757. b.l(a, "MAGENTA", a.UP);
  2758. b.l(a, "BLACK", a.HP);
  2759. b.l(a, "ORANGE", a.XP);
  2760. b.l(a, "GRAY", a.RP);
  2761. b.Wb.qP = function() {
  2762. return new b.Wb(b.ONE, b.ZERO)
  2763. };
  2764. b.Wb.cP = function() {
  2765. return new b.Wb(b.ONE, b.ONE_MINUS_SRC_ALPHA)
  2766. };
  2767. b.Wb.bP = function() {
  2768. return new b.Wb(b.SRC_ALPHA, b.ONE_MINUS_SRC_ALPHA)
  2769. };
  2770. b.Wb.aP = function() {
  2771. return new b.Wb(b.SRC_ALPHA, b.ONE)
  2772. };
  2773. b.l(b.Wb, "DISABLE", b.Wb.qP);
  2774. b.l(b.Wb, "ALPHA_PREMULTIPLIED", b.Wb.cP);
  2775. b.l(b.Wb, "ALPHA_NON_PREMULTIPLIED", b.Wb.bP);
  2776. b.l(b.Wb, "ADDITIVE", b.Wb.aP)
  2777. };
  2778. b.Bd = function(e, a, c, d) {
  2779. this.r = e || 0;
  2780. this.g = a || 0;
  2781. this.b = c || 0;
  2782. this.a = null == d ? 255 : d
  2783. };
  2784. b.color = function(e, a, c, d) {
  2785. return void 0 === e ? {
  2786. r: 0,
  2787. g: 0,
  2788. b: 0,
  2789. a: 255
  2790. } : b.ge(e) ? b.gJ(e) : b.ar(e) ? {
  2791. r: e.r,
  2792. g: e.g,
  2793. b: e.b,
  2794. a: null == e.a ? 255 : e.a
  2795. } : {
  2796. r: e,
  2797. g: a,
  2798. b: c,
  2799. a: null == d ? 255 : d
  2800. }
  2801. };
  2802. b.y2 = function(c, a) {
  2803. return c.r === a.r && c.g === a.g && c.b === a.b
  2804. };
  2805. function ha() {
  2806. this.timestamp = this.z = this.y = this.x = 0
  2807. }
  2808. function z(c, a) {
  2809. this.x = c || 0;
  2810. this.y = a || 0
  2811. }
  2812. b.dw = function(c, a) {
  2813. return new z(c, a)
  2814. };
  2815. function D(d, a, c) {
  2816. this.x = d || 0;
  2817. this.y = a || 0;
  2818. this.z = c || 0
  2819. }
  2820. b.aca = function(d, a, c) {
  2821. return new D(d, a, c)
  2822. };
  2823. function E(c, a) {
  2824. this.u = c || 0;
  2825. this.v = a || 0
  2826. }
  2827. b.Cba = function(c, a) {
  2828. return new E(c, a)
  2829. };
  2830. b.Wb = function(c, a) {
  2831. this.src = c;
  2832. this.ya = a
  2833. };
  2834. b.l2 = function() {
  2835. return new b.Wb(b.ONE, b.ZERO)
  2836. };
  2837. b.gJ = function(a) {
  2838. a = a.replace(/^#?/, "0x");
  2839. a = parseInt(a);
  2840. return b.color(a >> 16, (a >> 8) % 256, a % 256)
  2841. };
  2842. b.z2 = function(e) {
  2843. var a = e.r.toString(16),
  2844. c = e.g.toString(16),
  2845. d = e.b.toString(16);
  2846. return "#" + (16 > e.r ? "0" + a : a) + (16 > e.g ? "0" + c : c) + (16 > e.b ? "0" + d : d)
  2847. };
  2848. b.Es = 0;
  2849. b.mm = 1;
  2850. b.nD = 2;
  2851. b.qp = 0;
  2852. b.MO = 1;
  2853. b.WD = 2;
  2854. b.H0 = b.Ia.extend({
  2855. fn: null,
  2856. Aq: null,
  2857. px: 0,
  2858. ctor: function() {
  2859. this.fn = {};
  2860. this.Aq = {};
  2861. this.px = 2 << (0 | 10 * Math.random())
  2862. },
  2863. WO: function() {
  2864. this.px++;
  2865. return "key_" + this.px
  2866. },
  2867. maa: function(d, a) {
  2868. if (null != a) {
  2869. var c = this.WO();
  2870. this.fn[c] = a;
  2871. this.Aq[c] = d
  2872. }
  2873. },
  2874. tW: function(d) {
  2875. if (null == d) {
  2876. return null
  2877. }
  2878. var a = this.fn,
  2879. c;
  2880. for (c in a) {
  2881. if (a[c] === d) {
  2882. return this.Aq[c]
  2883. }
  2884. }
  2885. return null
  2886. },
  2887. Yba: function(a) {
  2888. return this.tW(a)
  2889. },
  2890. VW: function(d) {
  2891. if (null != d) {
  2892. var a = this.fn,
  2893. c;
  2894. for (c in a) {
  2895. if (a[c] === d) {
  2896. delete this.Aq[c];
  2897. delete a[c];
  2898. break
  2899. }
  2900. }
  2901. }
  2902. },
  2903. R9: function(c) {
  2904. if (null != c) {
  2905. for (var a = 0; a < c.length; a++) {
  2906. this.VW(c[a])
  2907. }
  2908. }
  2909. },
  2910. ES: function() {
  2911. var d = [],
  2912. a = this.fn,
  2913. c;
  2914. for (c in a) {
  2915. d.push(a[c])
  2916. }
  2917. return d
  2918. },
  2919. J9: function() {
  2920. this.fn = {};
  2921. this.Aq = {}
  2922. },
  2923. count: function() {
  2924. return this.ES().length
  2925. }
  2926. });
  2927. function ia(c) {
  2928. this.fontName = "Arial";
  2929. this.fontSize = 12;
  2930. this.textAlign = b.mm;
  2931. this.verticalAlign = b.qp;
  2932. this.fillStyle = b.color(255, 255, 255, 255);
  2933. this.boundingHeight = this.boundingWidth = 0;
  2934. this.nC = !1;
  2935. this.strokeStyle = b.color(255, 255, 255, 255);
  2936. this.lineWidth = 1;
  2937. this.fontWeight = this.fontStyle = this.lineHeight = "normal";
  2938. this.FK = !1;
  2939. this.shadowBlur = this.shadowOffsetY = this.shadowOffsetX = 0;
  2940. this.shadowOpacity = 1;
  2941. if (c && c instanceof Object) {
  2942. for (var a in c) {
  2943. this[a] = c[a]
  2944. }
  2945. }
  2946. }
  2947. function ja(a) {
  2948. return a.fontStyle + " " + a.fontWeight + " " + a.fontSize + "px/" + (a.lineHeight.charAt ? a.lineHeight : a.lineHeight + "px") + " '" + a.fontName + "'"
  2949. }
  2950. b.ua === b.Lb && (b.assert(b.nd(b.na.lx), b.j.Og, "CCTypesWebGL.js"), b.na.lx(), delete b.na.lx);
  2951. b.assert(b.nd(b.na.Kw), b.j.Og, "CCTypesPropertyDefine.js");
  2952. b.na.Kw();
  2953. delete b.na.Kw;
  2954. b.v0 = [];
  2955. b.w0 = {};
  2956. b.PZ = "device-dpi";
  2957. b.uL = "high-dpi";
  2958. b.RZ = "medium-dpi";
  2959. b.QZ = "low-dpi";
  2960. b.Ke = {
  2961. oa: function() {
  2962. this.iJ = document.getElementsByTagName("html")[0]
  2963. },
  2964. availWidth: function(a) {
  2965. return a && a !== this.iJ ? a.clientWidth : window.innerWidth
  2966. },
  2967. availHeight: function(a) {
  2968. return a && a !== this.iJ ? a.clientHeight : window.innerHeight
  2969. },
  2970. vv: {
  2971. width: "device-width",
  2972. "user-scalable": "no"
  2973. },
  2974. VH: b.Z.Sf
  2975. }; - 1 < window.navigator.userAgent.indexOf("OS 8_1_") && (b.Ke.VH = b.Z.am);
  2976. switch (b.Ke.VH) {
  2977. case b.Z.rk:
  2978. b.Ke.vv["minimal-ui"] = "true";
  2979. b.Ke.availWidth = function(a) {
  2980. return a.clientWidth
  2981. };
  2982. b.Ke.availHeight = function(a) {
  2983. return a.clientHeight
  2984. };
  2985. break;
  2986. case b.Z.Vi:
  2987. b.Ke.__defineGetter__("target-densitydpi", function() {
  2988. return b.view.xu
  2989. });
  2990. case b.Z.BC:
  2991. case b.Z.Rr:
  2992. b.Ke.availWidth = function(a) {
  2993. return a.clientWidth
  2994. };
  2995. b.Ke.availHeight = function(a) {
  2996. return a.clientHeight
  2997. };
  2998. break;
  2999. case b.Z.am:
  3000. b.Ke.oa = function(c) {
  3001. if (!c.up) {
  3002. var a = function() {
  3003. c.wr(c.lg.width, c.lg.height, c.ug);
  3004. window.removeEventListener("resize", a, !1)
  3005. };
  3006. window.addEventListener("resize", a, !1)
  3007. }
  3008. }
  3009. }
  3010. b.nw = b.Ia.extend({
  3011. R0: null,
  3012. te: null,
  3013. lg: null,
  3014. $k: null,
  3015. Nd: null,
  3016. Vj: null,
  3017. rz: !1,
  3018. wx: !0,
  3019. Mk: 1,
  3020. nA: "",
  3021. pz: null,
  3022. Ca: 1,
  3023. rG: 1,
  3024. ib: 1,
  3025. sG: 1,
  3026. an: 0,
  3027. Oy: 5,
  3028. ug: null,
  3029. RG: null,
  3030. VG: null,
  3031. UG: null,
  3032. SG: null,
  3033. TG: null,
  3034. Up: !1,
  3035. N0: !1,
  3036. E1: null,
  3037. GF: null,
  3038. HF: null,
  3039. z1: !1,
  3040. Nx: null,
  3041. zj: null,
  3042. ey: 1,
  3043. up: !1,
  3044. NF: !0,
  3045. xu: null,
  3046. ctor: function() {
  3047. var e = document,
  3048. a = b.Yi,
  3049. c = b.sf;
  3050. b.Ke.oa(this);
  3051. this.zj = b.yl.parentNode === e.body ? e.documentElement : b.yl.parentNode;
  3052. this.te = b.size(0, 0);
  3053. this.By();
  3054. var e = b.Oa.width,
  3055. d = b.Oa.height;
  3056. this.lg = b.size(e, d);
  3057. this.$k = b.size(e, d);
  3058. this.Nd = b.rect(0, 0, e, d);
  3059. this.Vj = b.rect(0, 0, e, d);
  3060. this.Nx = {
  3061. left: 0,
  3062. top: 0
  3063. };
  3064. this.nA = "Cocos2dHTML5";
  3065. e = b.Z;
  3066. this.FI(e.dk === e.dp || e.dk === e.Cw);
  3067. b.Yl && b.Yl.oa(this.Vj);
  3068. this.RG = new b.ke(a.Yr, c.rw);
  3069. this.VG = new b.ke(a.SM, c.SHOW_ALL);
  3070. this.UG = new b.ke(a.Yr, c.Aw);
  3071. this.SG = new b.ke(a.Yr, c.sw);
  3072. this.TG = new b.ke(a.Yr, c.tw);
  3073. this.GF = b.Oa;
  3074. this.HF = b.s;
  3075. this.xu = b.uL
  3076. },
  3077. kq: function() {
  3078. var d;
  3079. d = this.wr ? this : b.view;
  3080. var a = d.te.width,
  3081. c = d.te.height;
  3082. d.By();
  3083. if (d.te.width !== a || d.te.height !== c) {
  3084. d.pz && d.pz.call(), a = d.$k.width, c = d.$k.height, 0 < a && d.wr(a, c, d.ug)
  3085. }
  3086. },
  3087. Haa: function(a) {
  3088. this.xu = a;
  3089. this.fH()
  3090. },
  3091. b6: function() {
  3092. return this.xu
  3093. },
  3094. $W: function(a) {
  3095. a ? this.up || (this.up = !0, b.Qa(window, "resize", this.kq), b.Qa(window, "orientationchange", this.kq)) : this.up && (this.up = !1, window.removeEventListener("resize", this.kq), window.removeEventListener("orientationchange", this.kq))
  3096. },
  3097. waa: function(a) {
  3098. if (b.nd(a) || null == a) {
  3099. this.pz = a
  3100. }
  3101. },
  3102. By: function() {
  3103. var a = this.te;
  3104. a.width = b.Ke.availWidth(this.zj);
  3105. a.height = b.Ke.availHeight(this.zj)
  3106. },
  3107. J0: function() {
  3108. var c = this.$k.width,
  3109. a = this.$k.height;
  3110. 0 < c && this.wr(c, a, this.ug)
  3111. },
  3112. fH: function() {
  3113. if (this.NF) {
  3114. var f = document.getElementById("cocosMetaElement");
  3115. f && document.head.removeChild(f);
  3116. var a, c = (f = document.getElementsByName("viewport")) ? f[0] : null,
  3117. d, f = b.ac("meta");
  3118. f.id = "cocosMetaElement";
  3119. f.name = "viewport";
  3120. f.content = "";
  3121. a = b.Ke.vv;
  3122. d = c ? c.content : "";
  3123. for (var e in a) {
  3124. RegExp(e).test(d) || (d += "," + e + "\x3d" + a[e])
  3125. }
  3126. /^,/.test(d) && (d = d.substr(1));
  3127. f.content = d;
  3128. c && (c.content = d);
  3129. document.head.appendChild(f)
  3130. }
  3131. },
  3132. t1: function() {
  3133. var a = b.jb();
  3134. this.ib = this.Ca = a
  3135. },
  3136. o1: function() {
  3137. this.Ca = this.rG;
  3138. this.ib = this.sG
  3139. },
  3140. K0: function() {},
  3141. $q: function() {
  3142. this.Up = !0
  3143. },
  3144. vS: function(a) {
  3145. this.NF = a
  3146. },
  3147. FI: function(a) {
  3148. this.rz = a ? !0 : !1
  3149. },
  3150. f7: function() {
  3151. return this.rz
  3152. },
  3153. L3: function(a) {
  3154. this.wx = a ? !0 : !1
  3155. },
  3156. T6: function() {
  3157. return this.wx
  3158. },
  3159. end: function() {},
  3160. c7: function() {
  3161. return null !== this.GF && null !== this.HF
  3162. },
  3163. Y$: function(a) {
  3164. this.ey = a;
  3165. b.I.Sl(b.I.Zn())
  3166. },
  3167. xba: function() {},
  3168. daa: function() {},
  3169. J$: function(c, a) {
  3170. this.Nx = {
  3171. left: c,
  3172. top: a
  3173. }
  3174. },
  3175. L4: function() {
  3176. return this.Nx
  3177. },
  3178. f5: function() {
  3179. return b.size(this.te.width, this.te.height)
  3180. },
  3181. X$: function(c, a) {
  3182. this.te.width = c;
  3183. this.te.height = a;
  3184. this.zj.style.width = c + "px";
  3185. this.zj.style.height = a + "px";
  3186. this.kq();
  3187. b.I.Sl(b.I.Zn())
  3188. },
  3189. r2: function() {},
  3190. ao: function() {
  3191. return b.size(this.Vj.width, this.Vj.height)
  3192. },
  3193. bv: function() {
  3194. return b.d(this.Vj.x, this.Vj.y)
  3195. },
  3196. p2: function() {
  3197. return !0
  3198. },
  3199. J5: function() {
  3200. return this.ug
  3201. },
  3202. NX: function(c) {
  3203. if (c instanceof b.ke) {
  3204. this.ug = c
  3205. } else {
  3206. var a = b.ke;
  3207. c === a.rw && (this.ug = this.RG);
  3208. c === a.SHOW_ALL && (this.ug = this.VG);
  3209. c === a.Aw && (this.ug = this.UG);
  3210. c === a.sw && (this.ug = this.SG);
  3211. c === a.tw && (this.ug = this.TG)
  3212. }
  3213. },
  3214. wr: function(e, a, c) {
  3215. if (0 < e || 0 < a) {
  3216. if (this.NX(c), c = this.ug) {
  3217. c.Nl(this);
  3218. b.Z.yh && this.fH();
  3219. this.By();
  3220. this.$k.width = this.lg.width = e;
  3221. this.$k.height = this.lg.height = a;
  3222. var d = c.apply(this, this.lg);
  3223. d.scale && 2 === d.scale.length && (this.Ca = d.scale[0], this.ib = d.scale[1]);
  3224. d.viewport && (e = this.Nd, a = this.Vj, d = d.viewport, e.x = d.x, e.y = d.y, e.width = d.width, e.height = d.height, a.x = -e.x / this.Ca, a.y = -e.y / this.ib, a.width = b.Oa.width / this.Ca, a.height = b.Oa.height / this.ib, b.s.yr && b.s.yr(e.x, -e.y));
  3225. e = b.I;
  3226. e.Hb.width = this.lg.width;
  3227. e.Hb.height = this.lg.height;
  3228. c.Ml(this);
  3229. b.N.width = e.Hb.width;
  3230. b.N.height = e.Hb.height;
  3231. b.ua === b.Lb && (e.Im(), e.qK());
  3232. this.rG = this.Ca;
  3233. this.sG = this.ib;
  3234. b.yL && b.yL.n1();
  3235. b.Yl && b.Yl.oa(this.Vj)
  3236. } else {
  3237. b.log(b.j.IL)
  3238. }
  3239. } else {
  3240. b.log(b.j.HL)
  3241. }
  3242. },
  3243. fB: function() {
  3244. return b.size(this.lg.width, this.lg.height)
  3245. },
  3246. gY: function(e, f, g, h) {
  3247. var a = this.ey,
  3248. c = this.Ca,
  3249. d = this.ib;
  3250. b.s.viewport(e * c * a + this.Nd.x * a, f * d * a + this.Nd.y * a, g * c * a, h * d * a)
  3251. },
  3252. SX: function(e, f, g, h) {
  3253. var a = this.ey,
  3254. c = this.Ca,
  3255. d = this.ib;
  3256. b.s.scissor(e * c * a + this.Nd.x * a, f * d * a + this.Nd.y * a, g * c * a, h * d * a)
  3257. },
  3258. i7: function() {
  3259. var a = b.s;
  3260. return a.isEnabled(a.SCISSOR_TEST)
  3261. },
  3262. P5: function() {
  3263. var d = b.s,
  3264. a = this.Ca,
  3265. c = this.ib,
  3266. d = d.getParameter(d.SCISSOR_BOX);
  3267. return b.rect((d[0] - this.Nd.x) / a, (d[1] - this.Nd.y) / c, d[2] / a, d[3] / c)
  3268. },
  3269. dba: function(a) {
  3270. null != a && 0 < a.length && (this.nA = a)
  3271. },
  3272. q6: function() {
  3273. return this.nA
  3274. },
  3275. r6: function() {
  3276. return this.Nd
  3277. },
  3278. XI: function() {
  3279. return this.Ca
  3280. },
  3281. YI: function() {
  3282. return this.ib
  3283. },
  3284. T4: function() {
  3285. return this.Mk
  3286. },
  3287. HA: function(d, a, c) {
  3288. return {
  3289. x: this.Mk * (d - c.left),
  3290. y: this.Mk * (c.top + c.height - a)
  3291. }
  3292. },
  3293. mP: function(d, a) {
  3294. var c = this.Nd;
  3295. d.x = (this.Mk * (d.x - a.left) - c.x) / this.Ca;
  3296. d.y = (this.Mk * (a.top + a.height - d.y) - c.y) / this.ib
  3297. },
  3298. it: function(d) {
  3299. for (var e = this.Nd, f = this.Ca, g = this.ib, h, k, a, c = 0; c < d.length; c++) {
  3300. h = d[c], k = h.Dc, a = h.tg, h.Gz((k.x - e.x) / f, (k.y - e.y) / g), h.kl((a.x - e.x) / f, (a.y - e.y) / g)
  3301. }
  3302. }
  3303. });
  3304. b.nw.py = function() {
  3305. this.Ft || (this.Ft = this.Ft || new b.nw, this.Ft.$q());
  3306. return this.Ft
  3307. };
  3308. b.Yi = b.Ia.extend({
  3309. Nl: function() {},
  3310. apply: function() {},
  3311. Ml: function() {},
  3312. Oz: function(f, g, a) {
  3313. var c = f.zj;
  3314. b.view.wx && b.Z.yh && c === document.documentElement && b.screen.RS(c);
  3315. var c = b.Oa,
  3316. d = b.yl;
  3317. d.style.width = c.style.width = g + "px";
  3318. d.style.height = c.style.height = a + "px";
  3319. d = f.Mk = 1;
  3320. f.rz && (d = f.Mk = window.devicePixelRatio || 1);
  3321. c.width = g * d;
  3322. c.height = a * d;
  3323. b.s.XJ && b.s.XJ();
  3324. f = document.body;
  3325. var e;
  3326. f && (e = f.style) && (e.paddingTop = e.paddingTop || "0px", e.paddingRight = e.paddingRight || "0px", e.paddingBottom = e.paddingBottom || "0px", e.paddingLeft = e.paddingLeft || "0px", e.borderTop = e.borderTop || "0px", e.borderRight = e.borderRight || "0px", e.borderBottom = e.borderBottom || "0px", e.borderLeft = e.borderLeft || "0px", e.marginTop = e.marginTop || "0px", e.marginRight = e.marginRight || "0px", e.marginBottom = e.marginBottom || "0px", e.marginLeft = e.marginLeft || "0px")
  3327. },
  3328. rF: function() {
  3329. document.body.insertBefore(b.yl, document.body.firstChild);
  3330. var a = document.body.style;
  3331. a.width = window.innerWidth + "px";
  3332. a.height = window.innerHeight + "px";
  3333. a.overflow = "hidden";
  3334. a = b.yl.style;
  3335. a.position = "fixed";
  3336. a.left = a.top = "0px";
  3337. document.body.scrollTop = 0
  3338. }
  3339. });
  3340. b.sf = b.Ia.extend({
  3341. qz: {
  3342. scale: [1, 1],
  3343. viewport: null
  3344. },
  3345. Bp: function(f, g, a, c, d, e) {
  3346. 2 > Math.abs(f - a) && (a = f);
  3347. 2 > Math.abs(g - c) && (c = g);
  3348. f = b.rect(Math.round((f - a) / 2), Math.round((g - c) / 2), a, c);
  3349. this.qz.scale = [d, e];
  3350. this.qz.viewport = f;
  3351. return this.qz
  3352. },
  3353. Nl: function() {},
  3354. apply: function() {
  3355. return {
  3356. scale: [1, 1]
  3357. }
  3358. },
  3359. Ml: function() {}
  3360. });
  3361. (function() {
  3362. var f = b.Yi.extend({
  3363. apply: function(g) {
  3364. this.Oz(g, g.te.width, g.te.height)
  3365. }
  3366. }),
  3367. a = b.Yi.extend({
  3368. apply: function(h, j) {
  3369. var t = h.te.width,
  3370. u = h.te.height,
  3371. i = b.yl.style,
  3372. k = j.width,
  3373. p = j.height,
  3374. s = t / k,
  3375. r = u / p,
  3376. g, v;
  3377. s < r ? (g = t, v = p * s) : (g = k * r, v = u);
  3378. k = Math.round((t - g) / 2);
  3379. v = Math.round((u - v) / 2);
  3380. this.Oz(h, t - 2 * k, u - 2 * v);
  3381. i.marginLeft = k + "px";
  3382. i.marginRight = k + "px";
  3383. i.marginTop = v + "px";
  3384. i.marginBottom = v + "px"
  3385. }
  3386. });
  3387. f.extend({
  3388. Nl: function(g) {
  3389. this._super(g);
  3390. g.zj = document.documentElement
  3391. },
  3392. apply: function(g) {
  3393. this._super(g);
  3394. this.rF()
  3395. }
  3396. });
  3397. a.extend({
  3398. Nl: function(g) {
  3399. this._super(g);
  3400. g.zj = document.documentElement
  3401. },
  3402. apply: function(h, g) {
  3403. this._super(h, g);
  3404. this.rF()
  3405. }
  3406. });
  3407. var c = b.Yi.extend({
  3408. apply: function(g) {
  3409. this.Oz(g, b.Oa.width, b.Oa.height)
  3410. }
  3411. });
  3412. b.Yi.Yr = new f;
  3413. b.Yi.SM = new a;
  3414. b.Yi.U_ = new c;
  3415. var f = b.sf.extend({
  3416. apply: function(h, i) {
  3417. var j = b.Oa.width,
  3418. g = b.Oa.height;
  3419. return this.Bp(j, g, j, g, j / i.width, g / i.height)
  3420. }
  3421. }),
  3422. a = b.sf.extend({
  3423. apply: function(h, j) {
  3424. var t = b.Oa.width,
  3425. u = b.Oa.height,
  3426. i = j.width,
  3427. k = j.height,
  3428. p = t / i,
  3429. s = u / k,
  3430. r = 0,
  3431. g, v;
  3432. p < s ? (r = p, g = t, v = k * r) : (r = s, g = i * r, v = u);
  3433. return this.Bp(t, u, g, v, r, r)
  3434. }
  3435. }),
  3436. c = b.sf.extend({
  3437. apply: function(h, j) {
  3438. var t = b.Oa.width,
  3439. u = b.Oa.height,
  3440. i = j.width,
  3441. k = j.height,
  3442. p = t / i,
  3443. s = u / k,
  3444. r, g, v;
  3445. p < s ? (r = s, g = i * r, v = u) : (r = p, g = t, v = k * r);
  3446. return this.Bp(t, u, g, v, r, r)
  3447. }
  3448. }),
  3449. d = b.sf.extend({
  3450. apply: function(g, h) {
  3451. var i = b.Oa.width,
  3452. j = b.Oa.height,
  3453. k = j / h.height;
  3454. return this.Bp(i, j, i, j, k, k)
  3455. },
  3456. Ml: function(g) {
  3457. b.I.Hb = g.ao()
  3458. }
  3459. }),
  3460. e = b.sf.extend({
  3461. apply: function(g, h) {
  3462. var i = b.Oa.width,
  3463. j = b.Oa.height,
  3464. k = i / h.width;
  3465. return this.Bp(i, j, i, j, k, k)
  3466. },
  3467. Ml: function(g) {
  3468. b.I.Hb = g.ao()
  3469. }
  3470. });
  3471. b.sf.rw = new f;
  3472. b.sf.SHOW_ALL = new a;
  3473. b.sf.Aw = new c;
  3474. b.sf.sw = new d;
  3475. b.sf.tw = new e
  3476. })();
  3477. b.ke = b.Ia.extend({
  3478. gt: null,
  3479. ht: null,
  3480. ctor: function(c, a) {
  3481. this.qX(c);
  3482. this.rX(a)
  3483. },
  3484. Nl: function(a) {
  3485. this.gt.Nl(a);
  3486. this.ht.Nl(a)
  3487. },
  3488. apply: function(c, a) {
  3489. this.gt.apply(c, a);
  3490. return this.ht.apply(c, a)
  3491. },
  3492. Ml: function(a) {
  3493. this.gt.Ml(a);
  3494. this.ht.Ml(a)
  3495. },
  3496. qX: function(a) {
  3497. a instanceof b.Yi && (this.gt = a)
  3498. },
  3499. rX: function(a) {
  3500. a instanceof b.sf && (this.ht = a)
  3501. }
  3502. });
  3503. b.ke.rw = 0;
  3504. b.ke.Aw = 1;
  3505. b.ke.SHOW_ALL = 2;
  3506. b.ke.sw = 3;
  3507. b.ke.tw = 4;
  3508. b.ke.UD = 5;
  3509. b.screen = {
  3510. uu: !1,
  3511. ez: null,
  3512. dA: "",
  3513. Pk: null,
  3514. xP: [
  3515. ["requestFullscreen", "exitFullscreen", "fullscreenchange", "fullscreenEnabled", "fullscreenElement"],
  3516. ["requestFullScreen", "exitFullScreen", "fullScreenchange", "fullScreenEnabled", "fullScreenElement"],
  3517. ["webkitRequestFullScreen", "webkitCancelFullScreen", "webkitfullscreenchange", "webkitIsFullScreen", "webkitCurrentFullScreenElement"],
  3518. ["mozRequestFullScreen", "mozCancelFullScreen", "mozfullscreenchange", "mozFullScreen", "mozFullScreenElement"],
  3519. ["msRequestFullscreen", "msExitFullscreen", "MSFullscreenChange", "msFullscreenEnabled", "msFullscreenElement"]
  3520. ],
  3521. oa: function() {
  3522. this.Pk = {};
  3523. var e, a, c = this.xP,
  3524. d;
  3525. e = 0;
  3526. for (l = c.length; e < l; e++) {
  3527. if ((a = c[e]) && a[1] in document) {
  3528. e = 0;
  3529. for (d = a.length; e < d; e++) {
  3530. this.Pk[c[0][e]] = a[e]
  3531. }
  3532. break
  3533. }
  3534. }
  3535. this.uu = "undefined" !== typeof this.Pk.requestFullscreen;
  3536. this.dA = "ontouchstart" in window ? "touchstart" : "mousedown"
  3537. },
  3538. fullScreen: function() {
  3539. return this.uu && document[this.Pk.fullscreenElement]
  3540. },
  3541. WJ: function(d, a) {
  3542. if (this.uu) {
  3543. d = d || document.documentElement;
  3544. if (a) {
  3545. var c = this.Pk.o4;
  3546. this.ez && document.removeEventListener(c, this.ez);
  3547. this.ez = a;
  3548. b.Qa(document, c, a, !1)
  3549. }
  3550. return d[this.Pk.requestFullscreen]()
  3551. }
  3552. },
  3553. P3: function() {
  3554. return this.uu ? document[this.Pk.exitFullscreen]() : !0
  3555. },
  3556. RS: function(f, a) {
  3557. function c() {
  3558. e.WJ(f, a);
  3559. d.removeEventListener(e.dA, c)
  3560. }
  3561. f = f || document.body;
  3562. var d = b.Oa || f,
  3563. e = this;
  3564. this.WJ(f, a);
  3565. b.Qa(d, this.dA, c)
  3566. }
  3567. };
  3568. b.screen.oa();
  3569. b.Yl = {
  3570. NK: b.d(0, 0),
  3571. OK: b.d(0, 0),
  3572. top: b.d(0, 0),
  3573. gI: b.d(0, 0),
  3574. hI: b.d(0, 0),
  3575. bottom: b.d(0, 0),
  3576. nI: b.d(0, 0),
  3577. left: b.d(0, 0),
  3578. right: b.d(0, 0),
  3579. width: 0,
  3580. height: 0,
  3581. oa: function(f) {
  3582. var g = this.width = f.width,
  3583. a = this.height = f.height,
  3584. c = f.x;
  3585. f = f.y;
  3586. var d = f + a,
  3587. e = c + g;
  3588. this.NK.x = c;
  3589. this.NK.y = d;
  3590. this.OK.x = e;
  3591. this.OK.y = d;
  3592. this.top.x = c + g / 2;
  3593. this.top.y = d;
  3594. this.gI.x = c;
  3595. this.gI.y = f;
  3596. this.hI.x = e;
  3597. this.hI.y = f;
  3598. this.bottom.x = c + g / 2;
  3599. this.bottom.y = f;
  3600. this.nI.x = c + g / 2;
  3601. this.nI.y = f + a / 2;
  3602. this.left.x = c;
  3603. this.left.y = f + a / 2;
  3604. this.right.x = e;
  3605. this.right.y = f + a / 2
  3606. }
  3607. };
  3608. b.zO = -90;
  3609. b.AO = 90;
  3610. b.BO = 180;
  3611. b.x0 = 0;
  3612. b.uJ = {
  3613. jn: !1,
  3614. SF: !1,
  3615. zG: b.d(0, 0),
  3616. bR: b.d(0, 0),
  3617. AG: [],
  3618. fz: 0,
  3619. Qj: [],
  3620. eA: {},
  3621. an: 0,
  3622. Oy: 5,
  3623. sx: !1,
  3624. Vs: 1 / 30,
  3625. cE: 1,
  3626. rm: 0,
  3627. tx: null,
  3628. Us: null,
  3629. fQ: function() {
  3630. for (var c = this.an, a = 0; a < this.Oy; a++) {
  3631. if (!(c & 1)) {
  3632. return this.an |= 1 << a, a
  3633. }
  3634. c >>= 1
  3635. }
  3636. return -1
  3637. },
  3638. eR: function(a) {
  3639. 0 > a || a >= this.Oy || (a = ~(1 << a), this.an &= a)
  3640. },
  3641. Bj: null,
  3642. uB: function(h) {
  3643. for (var k, m, a, c = [], d = this.eA, e = 0, f = h.length; e < f; e++) {
  3644. if (k = h[e], a = k.ue, m = d[a], null == m) {
  3645. var g = this.fQ(); - 1 === g ? b.log(b.j.MV, g) : (m = this.Qj[g] = new b.Js(k.Dc.x, k.Dc.y, k.ue), m.kl(k.tg), d[a] = g, c.push(m))
  3646. }
  3647. }
  3648. 0 < c.length && (this.Bj.it(c), h = new b.tf(c), h.wj = b.tf.fm.fw, b.ka.dispatchEvent(h))
  3649. },
  3650. vB: function(e) {
  3651. for (var f, g, h = [], a = this.Qj, c = 0, d = e.length; c < d; c++) {
  3652. f = e[c], g = f.ue, g = this.eA[g], null != g && a[g] && (a[g].Gz(f.Dc), a[g].kl(f.tg), h.push(a[g]))
  3653. }
  3654. 0 < h.length && (this.Bj.it(h), e = new b.tf(h), e.wj = b.tf.fm.zw, b.ka.dispatchEvent(e))
  3655. },
  3656. gv: function(a) {
  3657. a = this.ZI(a);
  3658. 0 < a.length && (this.Bj.it(a), a = new b.tf(a), a.wj = b.tf.fm.ow, b.ka.dispatchEvent(a))
  3659. },
  3660. fJ: function(a) {
  3661. a = this.ZI(a);
  3662. 0 < a.length && (this.Bj.it(a), a = new b.tf(a), a.wj = b.tf.fm.iw, b.ka.dispatchEvent(a))
  3663. },
  3664. ZI: function(h) {
  3665. for (var k, m, a, c = [], d = this.Qj, e = this.eA, f = 0, g = h.length; f < g; f++) {
  3666. k = h[f], a = k.ue, m = e[a], null != m && d[m] && (d[m].Gz(k.Dc), d[m].kl(k.tg), c.push(d[m]), this.eR(m), delete e[a])
  3667. }
  3668. return c
  3669. },
  3670. Fg: function(e) {
  3671. var a = document.documentElement,
  3672. c = window,
  3673. d = null,
  3674. d = b.nd(e.getBoundingClientRect) ? e.getBoundingClientRect() : e instanceof HTMLCanvasElement ? {
  3675. left: 0,
  3676. top: 0,
  3677. width: e.width,
  3678. height: e.height
  3679. } : {
  3680. left: 0,
  3681. top: 0,
  3682. width: parseInt(e.style.width),
  3683. height: parseInt(e.style.height)
  3684. };
  3685. return {
  3686. left: d.left + c.pageXOffset - a.clientLeft,
  3687. top: d.top + c.pageYOffset - a.clientTop,
  3688. width: d.width,
  3689. height: d.height
  3690. }
  3691. },
  3692. ZU: function(f) {
  3693. for (var a = null, c = this.AG, d = f.ue, e = c.length - 1; 0 <= e; e--) {
  3694. if (c[e].ue === d) {
  3695. a = c[e];
  3696. break
  3697. }
  3698. }
  3699. a || (a = f);
  3700. return a
  3701. },
  3702. LX: function(f) {
  3703. for (var a = !1, c = this.AG, d = f.ue, e = c.length - 1; 0 <= e; e--) {
  3704. if (c[e].ue === d) {
  3705. c[e] = f;
  3706. a = !0;
  3707. break
  3708. }
  3709. }
  3710. a || (50 >= c.length ? c.push(f) : (c[this.fz] = f, this.fz = (this.fz + 1) % 50))
  3711. },
  3712. Xq: function(e, a, c) {
  3713. var d = this.zG;
  3714. e = this.Bj.HA(e, a, c);
  3715. a = new b.Js(e.x, e.y);
  3716. a.kl(d.x, d.y);
  3717. d.x = e.x;
  3718. d.y = e.y;
  3719. return a
  3720. },
  3721. Xn: function(e, a, c) {
  3722. var d = this.bR;
  3723. this.Bj.mP(e, a);
  3724. a = new b.oc(c);
  3725. a.AX(e.x, e.y);
  3726. a.uR(d.x, d.y);
  3727. d.x = e.x;
  3728. d.y = e.y;
  3729. return a
  3730. },
  3731. Yn: function(c, a) {
  3732. if (null != c.pageX) {
  3733. return {
  3734. x: c.pageX,
  3735. y: c.pageY
  3736. }
  3737. }
  3738. a.left -= document.body.scrollLeft;
  3739. a.top -= document.body.scrollTop;
  3740. return {
  3741. x: c.clientX,
  3742. y: c.clientY
  3743. }
  3744. },
  3745. av: function(g, h) {
  3746. for (var k = [], m = this.Bj, n, a, c = this.zG, d = g.changedTouches.length, e = 0; e < d; e++) {
  3747. if (n = g.changedTouches[e]) {
  3748. var f;
  3749. f = b.Z.Wi === b.Z.Sf ? m.HA(n.pageX, n.pageY, h) : m.HA(n.clientX, n.clientY, h);
  3750. null != n.identifier ? (n = new b.Js(f.x, f.y, n.identifier), a = this.ZU(n).Zj(), n.kl(a.x, a.y), this.LX(n)) : (n = new b.Js(f.x, f.y), n.kl(c.x, c.y));
  3751. c.x = f.x;
  3752. c.y = f.y;
  3753. k.push(n)
  3754. }
  3755. }
  3756. return k
  3757. },
  3758. OW: function(f) {
  3759. if (!this.SF) {
  3760. this.Bj = b.view;
  3761. var g = this,
  3762. a = "mouse" in b.Z.CA,
  3763. c = "touches" in b.Z.CA,
  3764. d = !1;
  3765. b.Z.yh && (d = !0);
  3766. a && (b.Qa(window, "mousedown", function() {
  3767. g.jn = !0
  3768. }, !1), b.Qa(window, "mouseup", function(i) {
  3769. if (!d) {
  3770. var j = g.jn;
  3771. g.jn = !1;
  3772. if (j) {
  3773. var j = g.Fg(f),
  3774. h = g.Yn(i, j);
  3775. b.QJ(new b.Nh(j.left, j.top, j.width, j.height), h) || (g.gv([g.Xq(h.x, h.y, j)]), j = g.Xn(h, j, b.oc.kx), j.Rl(i.button), b.ka.dispatchEvent(j))
  3776. }
  3777. }
  3778. }, !1), b.Qa(f, "mousedown", function(i) {
  3779. if (!d) {
  3780. g.jn = !0;
  3781. var j = g.Fg(f),
  3782. h = g.Yn(i, j);
  3783. g.uB([g.Xq(h.x, h.y, j)]);
  3784. j = g.Xn(h, j, b.oc.HC);
  3785. j.Rl(i.button);
  3786. b.ka.dispatchEvent(j);
  3787. i.stopPropagation();
  3788. i.preventDefault();
  3789. f.focus()
  3790. }
  3791. }, !1), b.Qa(f, "mouseup", function(i) {
  3792. if (!d) {
  3793. g.jn = !1;
  3794. var j = g.Fg(f),
  3795. h = g.Yn(i, j);
  3796. g.gv([g.Xq(h.x, h.y, j)]);
  3797. j = g.Xn(h, j, b.oc.kx);
  3798. j.Rl(i.button);
  3799. b.ka.dispatchEvent(j);
  3800. i.stopPropagation();
  3801. i.preventDefault()
  3802. }
  3803. }, !1), b.Qa(f, "mousemove", function(i) {
  3804. if (!d) {
  3805. var j = g.Fg(f),
  3806. h = g.Yn(i, j);
  3807. g.vB([g.Xq(h.x, h.y, j)]);
  3808. j = g.Xn(h, j, b.oc.RC);
  3809. g.jn ? j.Rl(i.button) : j.Rl(null);
  3810. b.ka.dispatchEvent(j);
  3811. i.stopPropagation();
  3812. i.preventDefault()
  3813. }
  3814. }, !1), b.Qa(f, "mousewheel", function(i) {
  3815. var j = g.Fg(f),
  3816. h = g.Yn(i, j),
  3817. j = g.Xn(h, j, b.oc.Tw);
  3818. j.Rl(i.button);
  3819. j.AK(0, i.wheelDelta);
  3820. b.ka.dispatchEvent(j);
  3821. i.stopPropagation();
  3822. i.preventDefault()
  3823. }, !1), b.Qa(f, "DOMMouseScroll", function(i) {
  3824. var j = g.Fg(f),
  3825. h = g.Yn(i, j),
  3826. j = g.Xn(h, j, b.oc.Tw);
  3827. j.Rl(i.button);
  3828. j.AK(0, -120 * i.detail);
  3829. b.ka.dispatchEvent(j);
  3830. i.stopPropagation();
  3831. i.preventDefault()
  3832. }, !1));
  3833. if (window.navigator.msPointerEnabled) {
  3834. var a = {
  3835. MSPointerDown: g.uB,
  3836. MSPointerMove: g.vB,
  3837. MSPointerUp: g.gv,
  3838. MSPointerCancel: g.fJ
  3839. },
  3840. e;
  3841. for (e in a) {
  3842. (function(i, h) {
  3843. b.Qa(f, i, function(j) {
  3844. var k = g.Fg(f);
  3845. k.left -= document.documentElement.scrollLeft;
  3846. k.top -= document.documentElement.scrollTop;
  3847. h.call(g, [g.Xq(j.clientX, j.clientY, k)]);
  3848. j.stopPropagation()
  3849. }, !1)
  3850. })(e, a[e])
  3851. }
  3852. }
  3853. c && (b.Qa(f, "touchstart", function(i) {
  3854. if (i.changedTouches) {
  3855. var h = g.Fg(f);
  3856. h.left -= document.body.scrollLeft;
  3857. h.top -= document.body.scrollTop;
  3858. g.uB(g.av(i, h));
  3859. i.stopPropagation();
  3860. i.preventDefault();
  3861. f.focus()
  3862. }
  3863. }, !1), b.Qa(f, "touchmove", function(i) {
  3864. if (i.changedTouches) {
  3865. var h = g.Fg(f);
  3866. h.left -= document.body.scrollLeft;
  3867. h.top -= document.body.scrollTop;
  3868. g.vB(g.av(i, h));
  3869. i.stopPropagation();
  3870. i.preventDefault()
  3871. }
  3872. }, !1), b.Qa(f, "touchend", function(i) {
  3873. if (i.changedTouches) {
  3874. var h = g.Fg(f);
  3875. h.left -= document.body.scrollLeft;
  3876. h.top -= document.body.scrollTop;
  3877. g.gv(g.av(i, h));
  3878. i.stopPropagation();
  3879. i.preventDefault()
  3880. }
  3881. }, !1), b.Qa(f, "touchcancel", function(i) {
  3882. if (i.changedTouches) {
  3883. var h = g.Fg(f);
  3884. h.left -= document.body.scrollLeft;
  3885. h.top -= document.body.scrollTop;
  3886. g.fJ(g.av(i, h));
  3887. i.stopPropagation();
  3888. i.preventDefault()
  3889. }
  3890. }, !1));
  3891. this.MG();
  3892. this.LG();
  3893. this.SF = !0
  3894. }
  3895. },
  3896. MG: function() {},
  3897. LG: function() {},
  3898. update: function(a) {
  3899. this.rm > this.Vs && (this.rm -= this.Vs, b.ka.dispatchEvent(new b.NL(this.tx)));
  3900. this.rm += a
  3901. }
  3902. };
  3903. var w = b.uJ;
  3904. w.v$ = function(a) {
  3905. this.sx !== a && (this.sx = a, a = b.I.th(), this.rm = 0, a.fk(this))
  3906. };
  3907. w.w$ = function(a) {
  3908. this.Vs !== a && (this.Vs = a)
  3909. };
  3910. w.MG = function() {
  3911. b.Qa(b.Oa, "keydown", function(a) {
  3912. b.ka.dispatchEvent(new b.KC(a.keyCode, !0));
  3913. a.stopPropagation();
  3914. a.preventDefault()
  3915. }, !1);
  3916. b.Qa(b.Oa, "keyup", function(a) {
  3917. b.ka.dispatchEvent(new b.KC(a.keyCode, !1));
  3918. a.stopPropagation();
  3919. a.preventDefault()
  3920. }, !1)
  3921. };
  3922. w.LG = function() {
  3923. var a = window;
  3924. this.tx = new ha;
  3925. this.Us = a.DeviceMotionEvent || a.DeviceOrientationEvent;
  3926. b.Z.Sf === b.Z.zC && (this.Us = window.DeviceOrientationEvent);
  3927. b.Qa(a, this.Us === a.DeviceMotionEvent ? "devicemotion" : "deviceorientation", this.vT.bind(this), !1)
  3928. };
  3929. w.vT = function(f) {
  3930. var g = window;
  3931. if (this.sx) {
  3932. var a = this.tx,
  3933. c, d, e;
  3934. this.Us === window.DeviceMotionEvent ? (e = f.accelerationIncludingGravity, c = this.cE * e.x * 0.1, d = this.cE * e.y * 0.1, e = 0.1 * e.z) : (c = f.gamma / 90 * 0.981, d = 0.981 * -(f.beta / 90), e = f.alpha / 90 * 0.981);
  3935. b.Z.dk === b.Z.VC ? (a.x = -c, a.y = -d) : (a.x = c, a.y = d);
  3936. a.z = e;
  3937. a.timestamp = f.timeStamp || Date.now();
  3938. f = a.x;
  3939. g.orientation === b.AO ? (a.x = -a.y, a.y = f) : g.orientation === b.zO ? (a.x = a.y, a.y = -f) : g.orientation === b.BO && (a.x = -a.x, a.y = -a.y)
  3940. }
  3941. };
  3942. delete w;
  3943. b.qZ = function(f, g, a, c, d, e) {
  3944. this.a = f;
  3945. this.b = g;
  3946. this.c = a;
  3947. this.R = c;
  3948. this.la = d;
  3949. this.ma = e
  3950. };
  3951. b.wS = function(c, a) {
  3952. return {
  3953. a: 1,
  3954. b: 0,
  3955. c: 0,
  3956. R: 1,
  3957. la: c,
  3958. ma: a
  3959. }
  3960. };
  3961. b.hf = function(e, a, c) {
  3962. var d;
  3963. void 0 === c ? (c = a, d = e.x, e = e.y) : (d = e, e = a);
  3964. return {
  3965. x: c.a * d + c.c * e + c.la,
  3966. y: c.b * d + c.R * e + c.ma
  3967. }
  3968. };
  3969. b.k1 = function(d, a, c) {
  3970. return b.hf(d, a, c)
  3971. };
  3972. b.gba = function(c, a) {
  3973. return {
  3974. width: a.a * c.width + a.c * c.height,
  3975. height: a.b * c.width + a.R * c.height
  3976. }
  3977. };
  3978. b.U1 = function() {
  3979. return {
  3980. a: 1,
  3981. b: 0,
  3982. c: 0,
  3983. R: 1,
  3984. la: 0,
  3985. ma: 0
  3986. }
  3987. };
  3988. b.T1 = function() {
  3989. return {
  3990. a: 1,
  3991. b: 0,
  3992. c: 0,
  3993. R: 1,
  3994. la: 0,
  3995. ma: 0
  3996. }
  3997. };
  3998. b.RB = function(h, k) {
  3999. var m = b.po(h),
  4000. a = b.oo(h),
  4001. c = b.pr(h),
  4002. d = b.qr(h),
  4003. e = b.hf(a, m, k),
  4004. m = b.hf(c, m, k),
  4005. a = b.hf(a, d, k),
  4006. f = b.hf(c, d, k),
  4007. c = Math.min(e.x, m.x, a.x, f.x),
  4008. d = Math.max(e.x, m.x, a.x, f.x),
  4009. g = Math.min(e.y, m.y, a.y, f.y),
  4010. e = Math.max(e.y, m.y, a.y, f.y);
  4011. return b.rect(c, g, d - c, e - g)
  4012. };
  4013. b.JG = function(h, k) {
  4014. var m = b.po(h),
  4015. a = b.oo(h),
  4016. c = b.pr(h),
  4017. d = b.qr(h),
  4018. e = b.hf(a, m, k),
  4019. m = b.hf(c, m, k),
  4020. a = b.hf(a, d, k),
  4021. f = b.hf(c, d, k),
  4022. c = Math.min(e.x, m.x, a.x, f.x),
  4023. d = Math.max(e.x, m.x, a.x, f.x),
  4024. g = Math.min(e.y, m.y, a.y, f.y),
  4025. e = Math.max(e.y, m.y, a.y, f.y);
  4026. h.x = c;
  4027. h.y = g;
  4028. h.width = d - c;
  4029. h.height = e - g;
  4030. return h
  4031. };
  4032. b.zS = function(d, a, c) {
  4033. return {
  4034. a: d.a,
  4035. b: d.b,
  4036. c: d.c,
  4037. R: d.R,
  4038. la: d.la + d.a * a + d.c * c,
  4039. ma: d.ma + d.b * a + d.R * c
  4040. }
  4041. };
  4042. b.yS = function(d, a, c) {
  4043. return {
  4044. a: d.a * a,
  4045. b: d.b * a,
  4046. c: d.c * c,
  4047. R: d.R * c,
  4048. la: d.la,
  4049. ma: d.ma
  4050. }
  4051. };
  4052. b.xS = function(e, a) {
  4053. var c = Math.sin(a),
  4054. d = Math.cos(a);
  4055. return {
  4056. a: e.a * d + e.c * c,
  4057. b: e.b * d + e.R * c,
  4058. c: e.c * d - e.a * c,
  4059. R: e.R * d - e.b * c,
  4060. la: e.la,
  4061. ma: e.ma
  4062. }
  4063. };
  4064. b.vl = function(c, a) {
  4065. return {
  4066. a: c.a * a.a + c.b * a.c,
  4067. b: c.a * a.b + c.b * a.R,
  4068. c: c.c * a.a + c.R * a.c,
  4069. R: c.c * a.b + c.R * a.R,
  4070. la: c.la * a.a + c.ma * a.c + a.la,
  4071. ma: c.la * a.b + c.ma * a.R + a.ma
  4072. }
  4073. };
  4074. b.S1 = function(c, a) {
  4075. return c.a === a.a && c.b === a.b && c.c === a.c && c.R === a.R && c.la === a.la && c.ma === a.ma
  4076. };
  4077. b.$H = function(c) {
  4078. var a = 1 / (c.a * c.R - c.b * c.c);
  4079. return {
  4080. a: a * c.R,
  4081. b: -a * c.b,
  4082. c: -a * c.c,
  4083. R: a * c.a,
  4084. la: a * (c.c * c.ma - c.R * c.la),
  4085. ma: a * (c.b * c.la - c.a * c.ma)
  4086. }
  4087. };
  4088. b.aD = parseFloat("1.192092896e-07F");
  4089. b.NB = function(a) {
  4090. return b.d(-a.x, -a.y)
  4091. };
  4092. b.Hg = function(c, a) {
  4093. return b.d(c.x + a.x, c.y + a.y)
  4094. };
  4095. b.od = function(c, a) {
  4096. return b.d(c.x - a.x, c.y - a.y)
  4097. };
  4098. b.Li = function(c, a) {
  4099. return b.d(c.x * a, c.y * a)
  4100. };
  4101. b.JJ = function(c, a) {
  4102. return b.Li(b.Hg(c, a), 0.5)
  4103. };
  4104. b.lo = function(c, a) {
  4105. return c.x * a.x + c.y * a.y
  4106. };
  4107. b.uW = function(c, a) {
  4108. return c.x * a.y - c.y * a.x
  4109. };
  4110. b.Bv = function(a) {
  4111. return b.d(-a.y, a.x)
  4112. };
  4113. b.P8 = function(a) {
  4114. return b.d(a.y, -a.x)
  4115. };
  4116. b.O8 = function(c, a) {
  4117. return b.Li(a, b.lo(c, a) / b.lo(a, a))
  4118. };
  4119. b.Q8 = function(c, a) {
  4120. return b.d(c.x * a.x - c.y * a.y, c.x * a.y + c.y * a.x)
  4121. };
  4122. b.V8 = function(c, a) {
  4123. return b.d(c.x * a.x + c.y * a.y, c.y * a.x - c.x * a.y)
  4124. };
  4125. b.HJ = function(a) {
  4126. return b.lo(a, a)
  4127. };
  4128. b.FJ = function(c, a) {
  4129. return b.HJ(b.od(c, a))
  4130. };
  4131. b.GJ = function(a) {
  4132. return Math.sqrt(b.HJ(a))
  4133. };
  4134. b.H8 = function(c, a) {
  4135. return b.GJ(b.od(c, a))
  4136. };
  4137. b.$f = function(c) {
  4138. var a = b.GJ(c);
  4139. return 0 === a ? b.d(c) : b.Li(c, 1 / a)
  4140. };
  4141. b.I8 = function(a) {
  4142. return b.d(Math.cos(a), Math.sin(a))
  4143. };
  4144. b.U8 = function(a) {
  4145. return Math.atan2(a.y, a.x)
  4146. };
  4147. b.Kq = function(e, a, c) {
  4148. if (a > c) {
  4149. var d = a;
  4150. a = c;
  4151. c = d
  4152. }
  4153. return e < a ? a : e < c ? e : c
  4154. };
  4155. b.EJ = function(d) {
  4156. var a = b.d(0, 0),
  4157. c = b.d(1, 1);
  4158. return b.d(b.Kq(d.x, a.x, c.x), b.Kq(d.y, a.y, c.y))
  4159. };
  4160. b.J8 = function(a) {
  4161. return b.d(a.width, a.height)
  4162. };
  4163. b.G8 = function(c, a) {
  4164. return b.d(a(c.x), a(c.y))
  4165. };
  4166. b.IJ = function(d, a, c) {
  4167. return b.Hg(b.Li(d, 1 - c), b.Li(a, c))
  4168. };
  4169. b.K8 = function(d, a, c) {
  4170. return d.x - c <= a.x && a.x <= d.x + c && d.y - c <= a.y && a.y <= d.y + c ? !0 : !1
  4171. };
  4172. b.F8 = function(c, a) {
  4173. return b.d(c.x * a.x, c.y * a.y)
  4174. };
  4175. b.DJ = function(e, a) {
  4176. var c = b.$f(e),
  4177. d = b.$f(a),
  4178. c = Math.atan2(c.x * d.y - c.y * d.x, b.lo(c, d));
  4179. return Math.abs(c) < b.aD ? 0 : c
  4180. };
  4181. b.E8 = function(d, a) {
  4182. var c = Math.acos(b.lo(b.$f(d), b.$f(a)));
  4183. return Math.abs(c) < b.aD ? 0 : c
  4184. };
  4185. b.KJ = function(f, a, c) {
  4186. f = b.od(f, a);
  4187. var d = Math.cos(c);
  4188. c = Math.sin(c);
  4189. var e = f.x;
  4190. f.x = e * d - f.y * c + a.x;
  4191. f.y = e * c + f.y * d + a.y;
  4192. return f
  4193. };
  4194. b.MB = function(d, e, f, g, h) {
  4195. if (d.x === e.x && d.y === e.y || f.x === g.x && f.y === g.y) {
  4196. return !1
  4197. }
  4198. var k = e.x - d.x;
  4199. e = e.y - d.y;
  4200. var a = g.x - f.x;
  4201. g = g.y - f.y;
  4202. var c = d.x - f.x;
  4203. d = d.y - f.y;
  4204. f = g * k - a * e;
  4205. h.x = a * d - g * c;
  4206. h.y = k * d - e * c;
  4207. if (0 === f) {
  4208. return 0 === h.x || 0 === h.y ? !0 : !1
  4209. }
  4210. h.x /= f;
  4211. h.y /= f;
  4212. return !0
  4213. };
  4214. b.S8 = function(f, a, c, d) {
  4215. var e = b.d(0, 0);
  4216. return b.MB(f, a, c, d, e) && 0 <= e.x && 1 >= e.x && 0 <= e.y && 1 >= e.y ? !0 : !1
  4217. };
  4218. b.M8 = function(f, a, c, d) {
  4219. var e = b.d(0, 0);
  4220. return b.MB(f, a, c, d, e) ? (c = b.d(0, 0), c.x = f.x + e.x * (a.x - f.x), c.y = f.y + e.x * (a.y - f.y), c) : b.d(0, 0)
  4221. };
  4222. b.R8 = function(c, a) {
  4223. return null != c && null != a ? c.x === a.x && c.y === a.y : !1
  4224. };
  4225. b.W8 = function(a) {
  4226. a.x = 0;
  4227. a.y = 0
  4228. };
  4229. b.L8 = function(c, a) {
  4230. c.x = a.x;
  4231. c.y = a.y
  4232. };
  4233. b.vW = function(c, a) {
  4234. c.x *= a;
  4235. c.y *= a
  4236. };
  4237. b.T8 = function(c, a) {
  4238. c.x -= a.x;
  4239. c.y -= a.y
  4240. };
  4241. b.D8 = function(c, a) {
  4242. c.x += a.x;
  4243. c.y += a.y
  4244. };
  4245. b.N8 = function(a) {
  4246. b.vW(a, 1 / Math.sqrt(a.x * a.x + a.y * a.y))
  4247. };
  4248. b.rC = function(m, r, a, c, e) {
  4249. e += c;
  4250. if (!(1 >= e)) {
  4251. r *= 0.5;
  4252. for (var n, p = e - 1, s = c; s < e; s++) {
  4253. n = 2 * s;
  4254. var t = b.d(m[2 * s], m[2 * s + 1]),
  4255. d;
  4256. if (0 === s) {
  4257. d = b.Bv(b.$f(b.od(t, b.d(m[2 * (s + 1)], m[2 * (s + 1) + 1]))))
  4258. } else {
  4259. if (s === p) {
  4260. d = b.Bv(b.$f(b.od(b.d(m[2 * (s - 1)], m[2 * (s - 1) + 1]), t)))
  4261. } else {
  4262. d = b.d(m[2 * (s - 1)], m[2 * (s - 1) + 1]);
  4263. var g = b.d(m[2 * (s + 1)], m[2 * (s + 1) + 1]),
  4264. k = b.$f(b.od(g, t)),
  4265. h = b.$f(b.od(d, t)),
  4266. f = Math.acos(b.lo(k, h));
  4267. d = f < b.Ce(70) ? b.Bv(b.$f(b.JJ(k, h))) : f < b.Ce(170) ? b.$f(b.JJ(k, h)) : b.Bv(b.$f(b.od(g, d)))
  4268. }
  4269. }
  4270. d = b.Li(d, r);
  4271. a[2 * n] = t.x + d.x;
  4272. a[2 * n + 1] = t.y + d.y;
  4273. a[2 * (n + 1)] = t.x - d.x;
  4274. a[2 * (n + 1) + 1] = t.y - d.y
  4275. }
  4276. for (s = 0 === c ? 0 : c - 1; s < p; s++) {
  4277. n = 2 * s, m = n + 2, r = b.dw(a[2 * n], a[2 * n + 1]), e = b.dw(a[2 * (n + 1)], a[2 * (n + 1) + 1]), n = b.dw(a[2 * m], a[2 * m]), c = b.dw(a[2 * (m + 1)], a[2 * (m + 1) + 1]), r = !b.YY(r.x, r.y, c.x, c.y, e.x, e.y, n.x, n.y), !r.cr && (0 > r.value || 1 < r.value) && (r.cr = !0), r.cr && (a[2 * m] = c.x, a[2 * m + 1] = c.y, a[2 * (m + 1)] = n.x, a[2 * (m + 1) + 1] = n.y)
  4278. }
  4279. }
  4280. };
  4281. b.YY = function(d, e, f, g, h, k, a, c) {
  4282. if (d === f && e === g || h === a && k === c) {
  4283. return {
  4284. cr: !1,
  4285. value: 0
  4286. }
  4287. }
  4288. f -= d;
  4289. g -= e;
  4290. h -= d;
  4291. k -= e;
  4292. a -= d;
  4293. c -= e;
  4294. d = Math.sqrt(f * f + g * g);
  4295. f /= d;
  4296. g /= d;
  4297. e = h * f + k * g;
  4298. k = k * f - h * g;
  4299. h = e;
  4300. e = a * f + c * g;
  4301. c = c * f - a * g;
  4302. a = e;
  4303. return k === c ? {
  4304. cr: !1,
  4305. value: 0
  4306. } : {
  4307. cr: !0,
  4308. value: (a + (h - a) * c / (c - k)) / d
  4309. }
  4310. };
  4311. b.bca = function(f) {
  4312. for (var a = 0, c = f.length; a < c; a++) {
  4313. var d = f[(a + 1) % c],
  4314. e = f[(a + 2) % c];
  4315. if (0 < b.uW(b.od(d, f[a]), b.od(e, d))) {
  4316. return !1
  4317. }
  4318. }
  4319. return !0
  4320. };
  4321. b.IZ = function(c, a) {
  4322. a[2] = a[3] = a[6] = a[7] = a[8] = a[9] = a[11] = a[14] = 0;
  4323. a[10] = a[15] = 1;
  4324. a[0] = c.a;
  4325. a[4] = c.c;
  4326. a[12] = c.la;
  4327. a[1] = c.b;
  4328. a[5] = c.R;
  4329. a[13] = c.ma
  4330. };
  4331. b.j_ = function(c, a) {
  4332. a.a = c[0];
  4333. a.c = c[4];
  4334. a.la = c[12];
  4335. a.b = c[1];
  4336. a.R = c[5];
  4337. a.ma = c[13]
  4338. };
  4339. b.Js = b.Ia.extend({
  4340. Dc: null,
  4341. tg: null,
  4342. ue: 0,
  4343. sH: !1,
  4344. oh: null,
  4345. ctor: function(d, a, c) {
  4346. this.Dc = b.d(d || 0, a || 0);
  4347. this.ue = c || 0
  4348. },
  4349. Zj: function() {
  4350. return {
  4351. x: this.Dc.x,
  4352. y: this.Dc.y
  4353. }
  4354. },
  4355. MU: function() {
  4356. return this.Dc.x
  4357. },
  4358. NU: function() {
  4359. return this.Dc.y
  4360. },
  4361. E5: function() {
  4362. return {
  4363. x: this.tg.x,
  4364. y: this.tg.y
  4365. }
  4366. },
  4367. V5: function() {
  4368. return {
  4369. x: this.oh.x,
  4370. y: this.oh.y
  4371. }
  4372. },
  4373. yU: function() {
  4374. return b.od(this.Dc, this.tg)
  4375. },
  4376. LU: function() {
  4377. return {
  4378. x: this.Dc.x,
  4379. y: this.Dc.y
  4380. }
  4381. },
  4382. F5: function() {
  4383. return {
  4384. x: this.tg.x,
  4385. y: this.tg.y
  4386. }
  4387. },
  4388. W5: function() {
  4389. return {
  4390. x: this.oh.x,
  4391. y: this.oh.y
  4392. }
  4393. },
  4394. l5: function() {
  4395. return this.ue
  4396. },
  4397. m5: function() {
  4398. b.log("getId is deprecated. Please use getID instead.");
  4399. return this.ue
  4400. },
  4401. Laa: function(d, a, c) {
  4402. this.tg = this.Dc;
  4403. this.Dc = b.d(a || 0, c || 0);
  4404. this.ue = d;
  4405. this.sH || (this.oh = b.d(this.Dc), this.sH = !0)
  4406. },
  4407. Gz: function(c, a) {
  4408. void 0 === a ? (this.Dc.x = c.x, this.Dc.y = c.y) : (this.Dc.x = c, this.Dc.y = a)
  4409. },
  4410. kl: function(c, a) {
  4411. this.tg = void 0 === a ? b.d(c.x, c.y) : b.d(c || 0, a || 0)
  4412. }
  4413. });
  4414. b.rb = b.Ia.extend({
  4415. Ec: 0,
  4416. Tk: !1,
  4417. Mb: null,
  4418. Cz: function(a) {
  4419. this.Mb = a
  4420. },
  4421. ctor: function(a) {
  4422. this.Ec = a
  4423. },
  4424. qB: function() {
  4425. return this.Ec
  4426. },
  4427. stopPropagation: function() {
  4428. this.Tk = !0
  4429. },
  4430. m7: function() {
  4431. return this.Tk
  4432. },
  4433. M4: function() {
  4434. return this.Mb
  4435. }
  4436. });
  4437. b.rb.Fs = 0;
  4438. b.rb.hm = 1;
  4439. b.rb.ok = 2;
  4440. b.rb.im = 3;
  4441. b.rb.Zo = 4;
  4442. b.rb.Fo = 6;
  4443. b.vk = b.rb.extend({
  4444. ay: null,
  4445. PH: null,
  4446. ctor: function(a) {
  4447. b.rb.prototype.ctor.call(this, b.rb.Fo);
  4448. this.ay = a
  4449. },
  4450. setUserData: function(a) {
  4451. this.PH = a
  4452. },
  4453. getUserData: function() {
  4454. return this.PH
  4455. },
  4456. Y4: function() {
  4457. return this.ay
  4458. }
  4459. });
  4460. b.oc = b.rb.extend({
  4461. mF: 0,
  4462. kE: 0,
  4463. Cg: 0,
  4464. de: 0,
  4465. gz: 0,
  4466. hz: 0,
  4467. WG: 0,
  4468. XG: 0,
  4469. ctor: function(a) {
  4470. b.rb.prototype.ctor.call(this, b.rb.im);
  4471. this.mF = a
  4472. },
  4473. AK: function(c, a) {
  4474. this.WG = c;
  4475. this.XG = a
  4476. },
  4477. Q5: function() {
  4478. return this.WG
  4479. },
  4480. R5: function() {
  4481. return this.XG
  4482. },
  4483. AX: function(c, a) {
  4484. this.Cg = c;
  4485. this.de = a
  4486. },
  4487. Zj: function() {
  4488. return {
  4489. x: this.Cg,
  4490. y: this.de
  4491. }
  4492. },
  4493. LU: function() {
  4494. return {
  4495. x: this.Cg,
  4496. y: b.view.lg.height - this.de
  4497. }
  4498. },
  4499. uR: function(c, a) {
  4500. this.gz = c;
  4501. this.hz = a
  4502. },
  4503. yU: function() {
  4504. return {
  4505. x: this.Cg - this.gz,
  4506. y: this.de - this.hz
  4507. }
  4508. },
  4509. R4: function() {
  4510. return this.Cg - this.gz
  4511. },
  4512. S4: function() {
  4513. return this.de - this.hz
  4514. },
  4515. Rl: function(a) {
  4516. this.kE = a
  4517. },
  4518. B4: function() {
  4519. return this.kE
  4520. },
  4521. MU: function() {
  4522. return this.Cg
  4523. },
  4524. NU: function() {
  4525. return this.de
  4526. }
  4527. });
  4528. b.oc.NONE = 0;
  4529. b.oc.HC = 1;
  4530. b.oc.kx = 2;
  4531. b.oc.RC = 3;
  4532. b.oc.Tw = 4;
  4533. b.oc.CZ = 0;
  4534. b.oc.EZ = 2;
  4535. b.oc.DZ = 1;
  4536. b.oc.xZ = 3;
  4537. b.oc.yZ = 4;
  4538. b.oc.zZ = 5;
  4539. b.oc.AZ = 6;
  4540. b.oc.BZ = 7;
  4541. b.tf = b.rb.extend({
  4542. wj: 0,
  4543. Qj: null,
  4544. ctor: function(a) {
  4545. b.rb.prototype.ctor.call(this, b.rb.Fs);
  4546. this.Qj = a || []
  4547. },
  4548. X4: function() {
  4549. return this.wj
  4550. },
  4551. g6: function() {
  4552. return this.Qj
  4553. },
  4554. q1: function(a) {
  4555. this.wj = a
  4556. },
  4557. v1: function(a) {
  4558. this.Qj = a
  4559. }
  4560. });
  4561. b.tf.J_ = 5;
  4562. b.tf.fm = {
  4563. fw: 0,
  4564. zw: 1,
  4565. ow: 2,
  4566. iw: 3
  4567. };
  4568. b.d_ = b.rb.extend({
  4569. QH: null,
  4570. RH: null,
  4571. ctor: function(c, a) {
  4572. b.rb.prototype.ctor.call(this, b.rb.Zo);
  4573. this.QH = a;
  4574. this.RH = c
  4575. }
  4576. });
  4577. b.ea = b.Ia.extend({
  4578. Uy: null,
  4579. Ec: 0,
  4580. fh: null,
  4581. xe: !1,
  4582. xj: 0,
  4583. p: null,
  4584. td: !0,
  4585. dn: !0,
  4586. ctor: function(d, a, c) {
  4587. this.Uy = c;
  4588. this.Ec = d || 0;
  4589. this.fh = a || ""
  4590. },
  4591. Fz: function(a) {
  4592. this.td = a
  4593. },
  4594. e1: function() {
  4595. return this.td
  4596. },
  4597. pn: function(a) {
  4598. this.xe = a
  4599. },
  4600. yQ: function() {
  4601. return this.xe
  4602. },
  4603. d1: function() {
  4604. return this.Ec
  4605. },
  4606. a1: function() {
  4607. return this.fh
  4608. },
  4609. Dz: function(a) {
  4610. this.xj = a
  4611. },
  4612. W0: function() {
  4613. return this.xj
  4614. },
  4615. lq: function(a) {
  4616. this.p = a
  4617. },
  4618. b1: function() {
  4619. return this.p
  4620. },
  4621. Ai: function() {
  4622. return null !== this.Uy
  4623. },
  4624. k: function() {
  4625. return null
  4626. },
  4627. Wc: function(a) {
  4628. this.dn = a
  4629. },
  4630. isEnabled: function() {
  4631. return this.dn
  4632. },
  4633. Kv: function() {},
  4634. uc: function() {}
  4635. });
  4636. b.ea.UD = 0;
  4637. b.ea.nm = 1;
  4638. b.ea.Yw = 2;
  4639. b.ea.hm = 3;
  4640. b.ea.im = 4;
  4641. b.ea.ok = 5;
  4642. b.ea.ok = 6;
  4643. b.ea.Fo = 8;
  4644. b.ea.Zo = 7;
  4645. b.sp = b.ea.extend({
  4646. dq: null,
  4647. ctor: function(d, a) {
  4648. this.dq = a;
  4649. var c = this;
  4650. b.ea.prototype.ctor.call(this, b.ea.Fo, d, function(e) {
  4651. null !== c.dq && c.dq(e)
  4652. })
  4653. },
  4654. Ai: function() {
  4655. return b.ea.prototype.Ai.call(this) && null !== this.dq
  4656. },
  4657. k: function() {
  4658. return new b.sp(this.fh, this.dq)
  4659. }
  4660. });
  4661. b.sp.create = function(c, a) {
  4662. return new b.sp(c, a)
  4663. };
  4664. b.nj = b.ea.extend({
  4665. xv: null,
  4666. Av: null,
  4667. yv: null,
  4668. zv: null,
  4669. ctor: function() {
  4670. var a = this;
  4671. b.ea.prototype.ctor.call(this, b.ea.im, b.nj.zb, function(d) {
  4672. var c = b.oc;
  4673. switch (d.mF) {
  4674. case c.HC:
  4675. a.xv && a.xv(d);
  4676. break;
  4677. case c.kx:
  4678. a.Av && a.Av(d);
  4679. break;
  4680. case c.RC:
  4681. a.yv && a.yv(d);
  4682. break;
  4683. case c.Tw:
  4684. a.zv && a.zv(d)
  4685. }
  4686. })
  4687. },
  4688. k: function() {
  4689. var a = new b.nj;
  4690. a.xv = this.xv;
  4691. a.Av = this.Av;
  4692. a.yv = this.yv;
  4693. a.zv = this.zv;
  4694. return a
  4695. },
  4696. Ai: function() {
  4697. return !0
  4698. }
  4699. });
  4700. b.nj.zb = "__cc_mouse";
  4701. b.nj.create = function() {
  4702. return new b.nj
  4703. };
  4704. b.Rg = b.ea.extend({
  4705. Gm: null,
  4706. ik: !1,
  4707. ck: null,
  4708. ir: null,
  4709. Ll: null,
  4710. hr: null,
  4711. ctor: function() {
  4712. b.ea.prototype.ctor.call(this, b.ea.nm, b.Rg.zb, null);
  4713. this.Gm = []
  4714. },
  4715. Faa: function(a) {
  4716. this.ik = a
  4717. },
  4718. n7: function() {
  4719. return this.ik
  4720. },
  4721. k: function() {
  4722. var a = new b.Rg;
  4723. a.ck = this.ck;
  4724. a.ir = this.ir;
  4725. a.Ll = this.Ll;
  4726. a.hr = this.hr;
  4727. a.ik = this.ik;
  4728. return a
  4729. },
  4730. Ai: function() {
  4731. return this.ck ? !0 : (b.log(b.j.RO), !1)
  4732. }
  4733. });
  4734. b.Rg.zb = "__cc_touch_one_by_one";
  4735. b.Rg.create = function() {
  4736. return new b.Rg
  4737. };
  4738. b.Qg = b.ea.extend({
  4739. jr: null,
  4740. mr: null,
  4741. lr: null,
  4742. kr: null,
  4743. ctor: function() {
  4744. b.ea.prototype.ctor.call(this, b.ea.Yw, b.Qg.zb, null)
  4745. },
  4746. k: function() {
  4747. var a = new b.Qg;
  4748. a.jr = this.jr;
  4749. a.mr = this.mr;
  4750. a.lr = this.lr;
  4751. a.kr = this.kr;
  4752. return a
  4753. },
  4754. Ai: function() {
  4755. return null === this.jr && null === this.mr && null === this.lr && null === this.kr ? (b.log(b.j.QO), !1) : !0
  4756. }
  4757. });
  4758. b.Qg.zb = "__cc_touch_all_at_once";
  4759. b.Qg.create = function() {
  4760. return new b.Qg
  4761. };
  4762. b.ea.create = function(e) {
  4763. b.assert(e && e.event, b.j.OL);
  4764. var a = e.event;
  4765. delete e.event;
  4766. var c = null;
  4767. a === b.ea.nm ? c = new b.Rg : a === b.ea.Yw ? c = new b.Qg : a === b.ea.im ? c = new b.nj : a === b.ea.Fo ? (c = new b.sp(e.bU, e.Eg), delete e.bU, delete e.Eg) : a === b.ea.hm ? c = new b.mj : a === b.ea.ok ? (c = new b.lj(e.Eg), delete e.Eg) : a === b.ea.Zo && (c = new b.tp);
  4768. for (var d in e) {
  4769. c[d] = e[d]
  4770. }
  4771. return c
  4772. };
  4773. b.tp = b.ea.extend({
  4774. k: function() {
  4775. var a = new b.tp;
  4776. a.er = this.er;
  4777. return a
  4778. },
  4779. Ai: function() {
  4780. return this.er ? !0 : (b.log("Invalid EventListenerFocus!"), !1)
  4781. },
  4782. er: null,
  4783. ctor: function() {
  4784. b.ea.prototype.ctor.call(this, b.ea.Zo, b.tp.zb, function(a) {
  4785. this.er && this.er(a.RH, a.QH)
  4786. })
  4787. }
  4788. });
  4789. b.tp.zb = "__cc_focus_event";
  4790. b.SO = b.Ia.extend({
  4791. Qe: null,
  4792. Ve: null,
  4793. eJ: 0,
  4794. ctor: function() {
  4795. this.Qe = [];
  4796. this.Ve = []
  4797. },
  4798. size: function() {
  4799. return this.Qe.length + this.Ve.length
  4800. },
  4801. empty: function() {
  4802. return 0 === this.Qe.length && 0 === this.Ve.length
  4803. },
  4804. push: function(a) {
  4805. 0 === a.xj ? this.Ve.push(a) : this.Qe.push(a)
  4806. },
  4807. eT: function() {
  4808. this.Ve.length = 0
  4809. },
  4810. dT: function() {
  4811. this.Qe.length = 0
  4812. },
  4813. clear: function() {
  4814. this.Ve.length = 0;
  4815. this.Qe.length = 0
  4816. },
  4817. a5: function() {
  4818. return this.Qe
  4819. },
  4820. O5: function() {
  4821. return this.Ve
  4822. }
  4823. });
  4824. b.Ts = function(d) {
  4825. var a = b.rb,
  4826. c = d.Ec;
  4827. if (c === a.ok) {
  4828. return b.lj.zb
  4829. }
  4830. if (c === a.Fo) {
  4831. return d.ay
  4832. }
  4833. if (c === a.hm) {
  4834. return b.mj.zb
  4835. }
  4836. if (c === a.im) {
  4837. return b.nj.zb
  4838. }
  4839. if (c === a.Zo) {
  4840. return b.tp.zb
  4841. }
  4842. c === a.Fs && b.log(b.j.Ts);
  4843. return ""
  4844. };
  4845. b.ka = {
  4846. mw: 0,
  4847. Wr: 1,
  4848. Io: 2,
  4849. XZ: 3,
  4850. Cf: {},
  4851. gq: {},
  4852. ih: {},
  4853. Pt: {},
  4854. FF: {},
  4855. Bn: [],
  4856. Ip: [],
  4857. Rk: 0,
  4858. dn: !1,
  4859. nG: 0,
  4860. wQ: [b.Ma.qw, b.Ma.Zr],
  4861. mu: function(d) {
  4862. null != this.ih[d.Y] && this.Ip.push(d);
  4863. d = d.K;
  4864. for (var a = 0, c = d.length; a < c; a++) {
  4865. this.mu(d[a])
  4866. }
  4867. },
  4868. mo: function(f, a) {
  4869. var c = this.ih[f.Y],
  4870. d, e;
  4871. if (c) {
  4872. for (d = 0, e = c.length; d < e; d++) {
  4873. c[d].Fz(!0)
  4874. }
  4875. }
  4876. if (!0 === a) {
  4877. for (c = f.K, d = 0, e = c.length; d < e; d++) {
  4878. this.mo(c[d], !0)
  4879. }
  4880. }
  4881. },
  4882. Mi: function(f, a) {
  4883. var c = this.ih[f.Y],
  4884. d, e;
  4885. if (c) {
  4886. for (d = 0, e = c.length; d < e; d++) {
  4887. c[d].Fz(!1)
  4888. }
  4889. }
  4890. this.mu(f);
  4891. if (!0 === a) {
  4892. for (c = f.K, d = 0, e = c.length; d < e; d++) {
  4893. this.Mi(c[d], !0)
  4894. }
  4895. }
  4896. },
  4897. $O: function(a) {
  4898. 0 === this.Rk ? this.sF(a) : this.Bn.push(a)
  4899. },
  4900. sF: function(d) {
  4901. var a = d.fh,
  4902. c = this.Cf[a];
  4903. c || (c = new b.SO, this.Cf[a] = c);
  4904. c.push(d);
  4905. 0 === d.xj ? (this.jl(a, this.Io), a = d.p, null === a && b.log(b.j.VT), this.eP(a, d), a.Hf && this.Mi(a)) : this.jl(a, this.Wr)
  4906. },
  4907. ry: function(a) {
  4908. return this.Cf[a]
  4909. },
  4910. XR: function() {
  4911. if (0 !== this.Ip.length) {
  4912. for (var d = this.Ip, e, f, g = this.ih, h = 0, k = d.length; h < k; h++) {
  4913. if (e = g[d[h].Y]) {
  4914. for (var a = 0, c = e.length; a < c; a++) {
  4915. (f = e[a]) && this.jl(f.fh, this.Io)
  4916. }
  4917. }
  4918. }
  4919. this.Ip.length = 0
  4920. }
  4921. },
  4922. NG: function(d) {
  4923. if (d) {
  4924. for (var a, c = 0; c < d.length;) {
  4925. a = d[c], a.pn(!1), null != a.p && (this.GE(a.p, a), a.lq(null)), 0 === this.Rk ? b.fe(d, a) : ++c
  4926. }
  4927. }
  4928. },
  4929. el: function(e) {
  4930. var a = this.Cf[e];
  4931. if (a) {
  4932. var c = a.Qe;
  4933. this.NG(a.Ve);
  4934. this.NG(c);
  4935. delete this.gq[e];
  4936. this.Rk || (a.clear(), delete this.Cf[e])
  4937. }
  4938. for (var c = this.Bn, d, a = 0; a < c.length;) {
  4939. (d = c[a]) && d.fh === e ? b.fe(c, d) : ++a
  4940. }
  4941. },
  4942. Rz: function(d) {
  4943. var a = this.mw,
  4944. c = this.gq;
  4945. c[d] && (a = c[d]);
  4946. a !== this.mw && (c[d] = this.mw, a & this.Wr && this.JR(d), a & this.Io && ((a = b.I.rc) ? this.LR(d, a) : c[d] = this.Io))
  4947. },
  4948. LR: function(e, a) {
  4949. var c = this.ry(e);
  4950. if (c) {
  4951. var d = c.Ve;
  4952. d && 0 !== d.length && (this.nG = 0, this.Pt = {}, this.oA(a, !0), c.Ve.sort(this.IR))
  4953. }
  4954. },
  4955. IR: function(d, a) {
  4956. var c = b.ka.Pt;
  4957. return d && a && d.p && a.p ? c[a.p.Y] - c[d.p.Y] : -1
  4958. },
  4959. JR: function(e) {
  4960. if (e = this.Cf[e]) {
  4961. var a = e.Qe;
  4962. if (a && 0 !== a.length) {
  4963. a.sort(this.KR);
  4964. for (var c = 0, d = a.length; c < d && !(0 <= a[c].xj);) {
  4965. ++c
  4966. }
  4967. e.eJ = c
  4968. }
  4969. }
  4970. },
  4971. KR: function(c, a) {
  4972. return c.xj - a.xj
  4973. },
  4974. Vy: function(f) {
  4975. if (f = this.Cf[f]) {
  4976. var a = f.Qe,
  4977. c = f.Ve,
  4978. d, e;
  4979. if (c) {
  4980. for (d = 0; d < c.length;) {
  4981. e = c[d], e.xe ? ++d : b.fe(c, e)
  4982. }
  4983. }
  4984. if (a) {
  4985. for (d = 0; d < a.length;) {
  4986. e = a[d], e.xe ? ++d : b.fe(a, e)
  4987. }
  4988. }
  4989. c && 0 === c.length && f.eT();
  4990. a && 0 === a.length && f.dT()
  4991. }
  4992. },
  4993. Du: function(d) {
  4994. var a = this.Rk;
  4995. b.assert(0 < a, b.j.PL);
  4996. if (!(1 < a)) {
  4997. d.Ec === b.rb.Fs ? (this.Vy(b.Rg.zb), this.Vy(b.Qg.zb)) : this.Vy(b.Ts(d));
  4998. b.assert(1 === a, b.j.QL);
  4999. d = this.Cf;
  5000. var a = this.gq,
  5001. c;
  5002. for (c in d) {
  5003. d[c].empty() && (delete a[c], delete d[c])
  5004. }
  5005. c = this.Bn;
  5006. if (0 !== c.length) {
  5007. d = 0;
  5008. for (a = c.length; d < a; d++) {
  5009. this.sF(c[d])
  5010. }
  5011. this.Bn.length = 0
  5012. }
  5013. }
  5014. },
  5015. PQ: function(d, e) {
  5016. if (!d.yQ) {
  5017. return !1
  5018. }
  5019. var f = e.event,
  5020. g = e.fK;
  5021. f.Cz(d.p);
  5022. var h = !1,
  5023. k, a = f.wj,
  5024. c = b.tf.fm;
  5025. a === c.fw ? d.ck && (h = d.ck(g, f)) && d.xe && d.Gm.push(g) : 0 < d.Gm.length && -1 !== (k = d.Gm.indexOf(g)) && (h = !0, a === c.zw && d.ir ? d.ir(g, f) : a === c.ow ? (d.Ll && d.Ll(g, f), d.xe && d.Gm.splice(k, 1)) : a === c.iw && (d.hr && d.hr(g, f), d.xe && d.Gm.splice(k, 1)));
  5026. return f.Tk ? (b.ka.Du(f), !0) : h && d.xe && d.ik ? (e.pW && e.touches.splice(g, 1), !0) : !1
  5027. },
  5028. rP: function(e) {
  5029. this.Rz(b.Rg.zb);
  5030. this.Rz(b.Qg.zb);
  5031. var f = this.ry(b.Rg.zb),
  5032. g = this.ry(b.Qg.zb);
  5033. if (null !== f || null !== g) {
  5034. var h = e.Qj,
  5035. a = b.xI(h),
  5036. c = {
  5037. event: e,
  5038. pW: f && g,
  5039. touches: a,
  5040. fK: null
  5041. };
  5042. if (f) {
  5043. for (var d = 0; d < h.length; d++) {
  5044. if (c.fK = h[d], this.Wx(f, this.PQ, c), e.Tk) {
  5045. return
  5046. }
  5047. }
  5048. }
  5049. if (g && 0 < a.length && (this.Wx(g, this.RQ, {
  5050. event: e,
  5051. touches: a
  5052. }), e.Tk)) {
  5053. return
  5054. }
  5055. this.Du(e)
  5056. }
  5057. },
  5058. RQ: function(f, g) {
  5059. if (!f.xe) {
  5060. return !1
  5061. }
  5062. var a = b.tf.fm,
  5063. c = g.event,
  5064. d = g.touches,
  5065. e = c.wj;
  5066. c.Cz(f.p);
  5067. e === a.fw && f.jr ? f.jr(d, c) : e === a.zw && f.mr ? f.mr(d, c) : e === a.ow && f.lr ? f.lr(d, c) : e === a.iw && f.kr && f.kr(d, c);
  5068. return c.Tk ? (b.ka.Du(c), !0) : !1
  5069. },
  5070. eP: function(d, a) {
  5071. var c = this.ih[d.Y];
  5072. c || (c = [], this.ih[d.Y] = c);
  5073. c.push(a)
  5074. },
  5075. GE: function(d, a) {
  5076. var c = this.ih[d.Y];
  5077. c && (b.fe(c, a), 0 === c.length && delete this.ih[d.Y])
  5078. },
  5079. Wx: function(d, e, f) {
  5080. var g = !1,
  5081. h = d.Qe,
  5082. k = d.Ve,
  5083. a = 0,
  5084. c;
  5085. if (h && 0 !== h.length) {
  5086. for (; a < d.eJ; ++a) {
  5087. if (c = h[a], c.isEnabled() && !c.td && c.xe && e(c, f)) {
  5088. g = !0;
  5089. break
  5090. }
  5091. }
  5092. }
  5093. if (k && !g) {
  5094. for (d = 0; d < k.length; d++) {
  5095. if (c = k[d], c.isEnabled() && !c.td && c.xe && e(c, f)) {
  5096. g = !0;
  5097. break
  5098. }
  5099. }
  5100. }
  5101. if (h && !g) {
  5102. for (; a < h.length && (c = h[a], !c.isEnabled() || c.td || !c.xe || !e(c, f)); ++a) {}
  5103. }
  5104. },
  5105. jl: function(d, a) {
  5106. var c = this.gq;
  5107. c[d] = null == c[d] ? a : a | c[d]
  5108. },
  5109. oA: function(h, k) {
  5110. var m = h.K,
  5111. a = 0,
  5112. c = m.length,
  5113. d = this.FF,
  5114. e = this.ih;
  5115. if (0 < c) {
  5116. for (var f; a < c; a++) {
  5117. if ((f = m[a]) && 0 > f.Xb) {
  5118. this.oA(f, !1)
  5119. } else {
  5120. break
  5121. }
  5122. }
  5123. null != e[h.Y] && (d[h.Yh] || (d[h.Yh] = []), d[h.Yh].push(h.Y));
  5124. for (; a < c; a++) {
  5125. (f = m[a]) && this.oA(f, !1)
  5126. }
  5127. } else {
  5128. null != e[h.Y] && (d[h.Yh] || (d[h.Yh] = []), d[h.Yh].push(h.Y))
  5129. } if (k) {
  5130. var m = [],
  5131. g;
  5132. for (g in d) {
  5133. m.push(g)
  5134. }
  5135. m.sort(this.MR);
  5136. g = m.length;
  5137. f = this.Pt;
  5138. for (a = 0; a < g; a++) {
  5139. for (c = d[m[a]], e = 0; e < c.length; e++) {
  5140. f[c[e]] = ++this.nG
  5141. }
  5142. }
  5143. this.FF = {}
  5144. }
  5145. },
  5146. MR: function(c, a) {
  5147. return c - a
  5148. },
  5149. addListener: function(c, a) {
  5150. b.assert(c && a, b.j.XT);
  5151. if (!(c instanceof b.ea)) {
  5152. b.assert(!b.GB(a), b.j.YT), c = b.ea.create(c)
  5153. } else {
  5154. if (c.xe) {
  5155. b.log(b.j.ZT);
  5156. return
  5157. }
  5158. } if (c.Ai()) {
  5159. if (b.GB(a)) {
  5160. if (0 === a) {
  5161. b.log(b.j.WT);
  5162. return
  5163. }
  5164. c.lq(null);
  5165. c.Dz(a);
  5166. c.pn(!0);
  5167. c.Fz(!1)
  5168. } else {
  5169. c.lq(a), c.Dz(0), c.pn(!0)
  5170. }
  5171. this.$O(c);
  5172. return c
  5173. }
  5174. },
  5175. vA: function(d, a) {
  5176. var c = new b.sp(d, a);
  5177. this.addListener(c, 1);
  5178. return c
  5179. },
  5180. removeListener: function(f) {
  5181. if (null != f) {
  5182. var g, a = this.Cf,
  5183. c;
  5184. for (c in a) {
  5185. var d = a[c],
  5186. e = d.Qe;
  5187. (g = this.OG(d.Ve, f)) ? this.jl(f.fh, this.Io): (g = this.OG(e, f)) && this.jl(f.fh, this.Wr);
  5188. d.empty() && (delete this.gq[f.fh], delete a[c]);
  5189. if (g) {
  5190. break
  5191. }
  5192. }
  5193. if (!g) {
  5194. for (g = this.Bn, a = 0, c = g.length; a < c; a++) {
  5195. if (d = g[a], d === f) {
  5196. b.fe(g, d);
  5197. d.pn(!1);
  5198. break
  5199. }
  5200. }
  5201. }
  5202. }
  5203. },
  5204. OG: function(f, a) {
  5205. if (null == f) {
  5206. return !1
  5207. }
  5208. for (var c = 0, d = f.length; c < d; c++) {
  5209. var e = f[c];
  5210. if (e === a) {
  5211. return e.pn(!1), null != e.p && (this.GE(e.p, e), e.lq(null)), 0 === this.Rk && b.fe(f, e), !0
  5212. }
  5213. }
  5214. return !1
  5215. },
  5216. UJ: function(f, a) {
  5217. if (f instanceof b.f) {
  5218. delete this.Pt[f.Y];
  5219. b.fe(this.Ip, f);
  5220. var c = this.ih[f.Y];
  5221. if (c) {
  5222. for (var d = b.xI(c), c = 0; c < d.length; c++) {
  5223. this.removeListener(d[c])
  5224. }
  5225. d.length = 0
  5226. }
  5227. d = this.Bn;
  5228. for (c = 0; c < d.length;) {
  5229. var e = d[c];
  5230. e.p === f ? (e.lq(null), e.pn(!1), d.splice(c, 1)) : ++c
  5231. }
  5232. if (!0 === a) {
  5233. for (d = f.K, c = 0, e = d.length; c < e; c++) {
  5234. this.UJ(d[c], !0)
  5235. }
  5236. }
  5237. } else {
  5238. f === b.ea.nm ? this.el(b.Rg.zb) : f === b.ea.Yw ? this.el(b.Qg.zb) : f === b.ea.im ? this.el(b.nj.zb) : f === b.ea.ok ? this.el(b.lj.zb) : f === b.ea.hm ? this.el(b.mj.zb) : b.log(b.j.$T)
  5239. }
  5240. },
  5241. O9: function(a) {
  5242. this.el(a)
  5243. },
  5244. RW: function() {
  5245. var d = this.Cf,
  5246. a = this.wQ,
  5247. c;
  5248. for (c in d) {
  5249. -1 === a.indexOf(c) && this.el(c)
  5250. }
  5251. },
  5252. saa: function(f, a) {
  5253. if (null != f) {
  5254. var c = this.Cf,
  5255. d;
  5256. for (d in c) {
  5257. var e = c[d].Qe;
  5258. if (e && -1 !== e.indexOf(f)) {
  5259. null != f.p && b.log(b.j.aU);
  5260. f.xj !== a && (f.Dz(a), this.jl(f.fh, this.Wr));
  5261. break
  5262. }
  5263. }
  5264. }
  5265. },
  5266. Wc: function(a) {
  5267. this.dn = a
  5268. },
  5269. isEnabled: function() {
  5270. return this.dn
  5271. },
  5272. dispatchEvent: function(c) {
  5273. if (this.dn) {
  5274. this.XR();
  5275. this.Rk++;
  5276. if (!c || !c.qB) {
  5277. throw "event is undefined"
  5278. }
  5279. if (c.Ec === b.rb.Fs) {
  5280. this.rP(c)
  5281. } else {
  5282. var a = b.Ts(c);
  5283. this.Rz(a);
  5284. a = this.Cf[a];
  5285. null != a && this.Wx(a, this.LQ, c);
  5286. this.Du(c)
  5287. }
  5288. this.Rk--
  5289. }
  5290. },
  5291. LQ: function(c, a) {
  5292. a.Cz(c.p);
  5293. c.Uy(a);
  5294. return a.Tk
  5295. },
  5296. U2: function(d, a) {
  5297. var c = new b.vk(d);
  5298. c.setUserData(a);
  5299. this.dispatchEvent(c)
  5300. }
  5301. };
  5302. b.dg = function() {};
  5303. b.dg.prototype = {
  5304. constructor: b.dg,
  5305. apply: function(a) {
  5306. a.addEventListener = b.dg.prototype.addEventListener;
  5307. a.xB = b.dg.prototype.xB;
  5308. a.removeEventListener = b.dg.prototype.removeEventListener;
  5309. a.dispatchEvent = b.dg.prototype.dispatchEvent
  5310. },
  5311. addEventListener: function(e, a, c) {
  5312. if ("load" === e && this.T) {
  5313. setTimeout(function() {
  5314. a.call(c)
  5315. }, 0)
  5316. } else {
  5317. void 0 === this.Fj && (this.Fj = {});
  5318. var d = this.Fj;
  5319. void 0 === d[e] && (d[e] = []);
  5320. this.xB(e, a, c) || d[e].push({
  5321. Eg: a,
  5322. VA: c
  5323. })
  5324. }
  5325. },
  5326. xB: function(f, g, a) {
  5327. if (void 0 === this.Fj) {
  5328. return !1
  5329. }
  5330. var c = this.Fj;
  5331. if (void 0 !== c[f]) {
  5332. f = 0;
  5333. for (var d = c.length; f < d; f++) {
  5334. var e = c[f];
  5335. if (e.Eg === g && e.VA === a) {
  5336. return !0
  5337. }
  5338. }
  5339. }
  5340. return !1
  5341. },
  5342. removeEventListener: function(e, a) {
  5343. if (void 0 !== this.Fj) {
  5344. var c = this.Fj[e];
  5345. if (void 0 !== c) {
  5346. for (var d = 0; d < c.length;) {
  5347. c[d].VA === a ? c.splice(d, 1) : d++
  5348. }
  5349. }
  5350. }
  5351. },
  5352. dispatchEvent: function(f, g) {
  5353. if (void 0 !== this.Fj) {
  5354. null == g && (g = !0);
  5355. var a = this.Fj[f];
  5356. if (void 0 !== a) {
  5357. for (var c = [], d = a.length, e = 0; e < d; e++) {
  5358. c[e] = a[e]
  5359. }
  5360. for (e = 0; e < d; e++) {
  5361. c[e].Eg.call(c[e].VA, this)
  5362. }
  5363. g && (a.length = 0)
  5364. }
  5365. }
  5366. }
  5367. };
  5368. b.NL = b.rb.extend({
  5369. bE: null,
  5370. ctor: function(a) {
  5371. b.rb.prototype.ctor.call(this, b.rb.ok);
  5372. this.bE = a
  5373. }
  5374. });
  5375. b.KC = b.rb.extend({
  5376. Hy: 0,
  5377. RF: !1,
  5378. ctor: function(c, a) {
  5379. b.rb.prototype.ctor.call(this, b.rb.hm);
  5380. this.Hy = c;
  5381. this.RF = a
  5382. }
  5383. });
  5384. b.lj = b.ea.extend({
  5385. St: null,
  5386. ctor: function(c) {
  5387. this.St = c;
  5388. var a = this;
  5389. b.ea.prototype.ctor.call(this, b.ea.ok, b.lj.zb, function(d) {
  5390. a.St(d.bE, d)
  5391. })
  5392. },
  5393. Ai: function() {
  5394. b.assert(this.St, b.j.OO);
  5395. return !0
  5396. },
  5397. k: function() {
  5398. return new b.lj(this.St)
  5399. }
  5400. });
  5401. b.lj.zb = "__cc_acceleration";
  5402. b.lj.create = function(a) {
  5403. return new b.lj(a)
  5404. };
  5405. b.mj = b.ea.extend({
  5406. fr: null,
  5407. gr: null,
  5408. ctor: function() {
  5409. var a = this;
  5410. b.ea.prototype.ctor.call(this, b.ea.hm, b.mj.zb, function(c) {
  5411. c.RF ? a.fr && a.fr(c.Hy, c) : a.gr && a.gr(c.Hy, c)
  5412. })
  5413. },
  5414. k: function() {
  5415. var a = new b.mj;
  5416. a.fr = this.fr;
  5417. a.gr = this.gr;
  5418. return a
  5419. },
  5420. Ai: function() {
  5421. return null === this.fr && null === this.gr ? (b.log(b.j.PO), !1) : !0
  5422. }
  5423. });
  5424. b.mj.zb = "__cc_keyboard";
  5425. b.mj.create = function() {
  5426. return new b.mj
  5427. };
  5428. b.YW = {
  5429. af: !0,
  5430. ui: [],
  5431. ni: [],
  5432. Ht: !1,
  5433. ct: {},
  5434. Em: [],
  5435. Uh: 0,
  5436. WI: function(a) {
  5437. return a.Fd()
  5438. },
  5439. wb: function(f) {
  5440. var g = this.ni,
  5441. a, c = b.view.Ca,
  5442. d = b.view.ib,
  5443. e = f || b.s;
  5444. e.tI();
  5445. f = 0;
  5446. for (a = g.length; f < a; f++) {
  5447. g[f].wb(e, c, d)
  5448. }
  5449. },
  5450. nz: function(e, f, g, h) {
  5451. e || b.log("The context of RenderTexture is invalid.");
  5452. g = b.Gi(g) ? 1 : g;
  5453. h = b.Gi(h) ? 1 : h;
  5454. f = f || this.Uh;
  5455. var a = this.ct[f],
  5456. c, d;
  5457. e.tI();
  5458. c = 0;
  5459. for (d = a.length; c < d; c++) {
  5460. a[c].wb(e, g, h)
  5461. }
  5462. a.length = 0;
  5463. e = this.Em;
  5464. delete this.ct[f];
  5465. b.fe(e, f);
  5466. 0 === e.length ? this.Ht = !1 : this.Uh = e[e.length - 1]
  5467. },
  5468. Au: function(a) {
  5469. this.Ht = !0;
  5470. a = a || 0;
  5471. this.ct[a] = []; - 1 === this.Em.indexOf(a) && this.Em.push(a);
  5472. this.Uh = a
  5473. },
  5474. SR: function() {
  5475. this.Ht = !1
  5476. },
  5477. ZJ: function() {
  5478. this.af = !1;
  5479. this.ui.length = 0
  5480. },
  5481. transform: function() {
  5482. var d = this.ui;
  5483. d.sort(this.Sz);
  5484. for (var a = 0, c = d.length; a < c; a++) {
  5485. 0 !== d[a].C && d[a].updateStatus()
  5486. }
  5487. d.length = 0
  5488. },
  5489. ba: function() {
  5490. return 0 < this.ui.length
  5491. },
  5492. Sz: function(c, a) {
  5493. return c.kg - a.kg
  5494. },
  5495. NJ: function(a) {
  5496. this.ui.push(a)
  5497. },
  5498. rI: function() {
  5499. this.ni.length = 0
  5500. },
  5501. Ig: function(c) {
  5502. if (c.Db) {
  5503. if (this.Ht) {
  5504. var a = this.ct[this.Uh]; - 1 === a.indexOf(c) && a.push(c)
  5505. } else {
  5506. -1 === this.ni.indexOf(c) && this.ni.push(c)
  5507. }
  5508. }
  5509. }
  5510. };
  5511. b.ua === b.dc && (b.Za = b.YW);
  5512. (function() {
  5513. b.Vr = function(c) {
  5514. this.bb = c;
  5515. this.nn = 0;
  5516. this.Ox = c.globalAlpha;
  5517. this.Px = c.globalCompositeOperation;
  5518. this.Qx = c.fillStyle;
  5519. this.Rx = c.strokeStyle;
  5520. this.Rt = this.Sy = 0;
  5521. this.iq = this.height;
  5522. this.vx = 0
  5523. };
  5524. var a = b.Vr.prototype;
  5525. a.XJ = function() {
  5526. var c = this.bb;
  5527. this.Ox = c.globalAlpha;
  5528. this.Px = c.globalCompositeOperation;
  5529. this.Qx = c.fillStyle;
  5530. this.Rx = c.strokeStyle;
  5531. this.iq = this.bb.canvas.height + this.Rt
  5532. };
  5533. a.yr = function(d, c) {
  5534. this.Sy = d;
  5535. this.Rt = c;
  5536. this.iq = this.bb.canvas.height + this.Rt
  5537. };
  5538. a.tI = function() {
  5539. this.iq = this.bb.canvas.height + this.Rt
  5540. };
  5541. a.eba = function(d, c) {
  5542. this.Ca = d;
  5543. this.ib = c
  5544. };
  5545. a.getContext = function() {
  5546. return this.bb
  5547. };
  5548. a.save = function() {
  5549. this.bb.save();
  5550. this.nn++
  5551. };
  5552. a.restore = function() {
  5553. this.bb.restore();
  5554. this.nn--
  5555. };
  5556. a.xr = function(c) {
  5557. 0 < this.nn ? this.bb.globalAlpha = c : this.Ox !== c && (this.Ox = c, this.bb.globalAlpha = c)
  5558. };
  5559. a.vr = function(c) {
  5560. 0 < this.nn ? this.bb.globalCompositeOperation = c : this.Px !== c && (this.Px = c, this.bb.globalCompositeOperation = c)
  5561. };
  5562. a.Kg = function(c) {
  5563. 0 < this.nn ? this.bb.fillStyle = c : this.Qx !== c && (this.Qx = c, this.bb.fillStyle = c)
  5564. };
  5565. a.Wv = function(c) {
  5566. 0 < this.nn ? this.bb.strokeStyle = c : this.Rx !== c && (this.Rx = c, this.bb.strokeStyle = c)
  5567. };
  5568. a.setTransform = function(e, c, d) {
  5569. 0 < this.vx ? (this.restore(), this.save(), this.bb.transform(e.a, -e.b, -e.c, e.R, e.la * c, -(e.ma * d))) : this.bb.setTransform(e.a, -e.b, -e.c, e.R, this.Sy + e.la * c, this.iq - e.ma * d)
  5570. };
  5571. a.A1 = function(f, c, d, e) {
  5572. f ? (this.vx++, this.bb.setTransform(c.a, c.c, c.b, c.R, this.Sy + c.la * d, this.iq - c.ma * e), this.save()) : (this.vx--, this.restore())
  5573. }
  5574. })();
  5575. b.ZW = {
  5576. af: !0,
  5577. ui: [],
  5578. ni: [],
  5579. Gt: !1,
  5580. bt: {},
  5581. Em: [],
  5582. Uh: 0,
  5583. WI: function(a) {
  5584. return a.Fd()
  5585. },
  5586. wb: function(e) {
  5587. var a = this.ni,
  5588. c, d = e || b.s;
  5589. e = 0;
  5590. for (c = a.length; e < c; e++) {
  5591. a[e].wb(d)
  5592. }
  5593. },
  5594. Au: function(a) {
  5595. this.Gt = !0;
  5596. a = a || 0;
  5597. this.bt[a] = [];
  5598. this.Em.push(a);
  5599. this.Uh = a
  5600. },
  5601. SR: function() {
  5602. this.Gt = !1
  5603. },
  5604. gR: function(f) {
  5605. f = f || this.Uh;
  5606. var g = this.bt[f],
  5607. a, c, d = b.s,
  5608. e = this.Em;
  5609. a = 0;
  5610. for (c = g.length; a < c; a++) {
  5611. g[a].wb(d)
  5612. }
  5613. g.length = 0;
  5614. delete this.bt[f];
  5615. b.fe(e, f);
  5616. 0 === e.length ? this.Gt = !1 : this.Uh = e[e.length - 1]
  5617. },
  5618. ZJ: function() {
  5619. this.af = !1;
  5620. this.ui.length = 0
  5621. },
  5622. transform: function() {
  5623. var d = this.ui;
  5624. d.sort(this.Sz);
  5625. for (var a = 0, c = d.length; a < c; a++) {
  5626. d[a].updateStatus()
  5627. }
  5628. d.length = 0
  5629. },
  5630. ba: function() {
  5631. return 0 < this.ui.length
  5632. },
  5633. Sz: function(c, a) {
  5634. return c.kg - a.kg
  5635. },
  5636. NJ: function(a) {
  5637. this.ui.push(a)
  5638. },
  5639. rI: function() {
  5640. this.ni.length = 0
  5641. },
  5642. Ig: function(c) {
  5643. if (c.Db) {
  5644. if (this.Gt) {
  5645. var a = this.bt[this.Uh]; - 1 === a.indexOf(c) && a.push(c)
  5646. } else {
  5647. -1 === this.ni.indexOf(c) && this.ni.push(c)
  5648. }
  5649. }
  5650. }
  5651. };
  5652. b.ua === b.Lb && (b.Za = b.ZW);
  5653. b.na.Jw = function() {
  5654. var a = b.f.prototype;
  5655. b.l(a, "x", a.pb, a.uK);
  5656. b.l(a, "y", a.qb, a.vK);
  5657. b.l(a, "width", a.mg, a.qn);
  5658. b.l(a, "height", a.Aj, a.on);
  5659. b.l(a, "anchorX", a.hy, a.wz);
  5660. b.l(a, "anchorY", a.FP, a.xz);
  5661. b.l(a, "skewX", a.gV, a.TX);
  5662. b.l(a, "skewY", a.hV, a.UX);
  5663. b.l(a, "zIndex", a.KU, a.sK);
  5664. b.l(a, "vertexZ", a.qV, a.eY);
  5665. b.l(a, "rotation", a.aV, a.PX);
  5666. b.l(a, "rotationX", a.bV, a.QX);
  5667. b.l(a, "rotationY", a.cV, a.RX);
  5668. b.l(a, "scale", a.dV, a.jf);
  5669. b.l(a, "scaleX", a.XI, a.zr);
  5670. b.l(a, "scaleY", a.YI, a.fC);
  5671. b.l(a, "children", a.sU);
  5672. b.l(a, "childrenCount", a.tU);
  5673. b.l(a, "parent", a.getParent, a.tK);
  5674. b.l(a, "visible", a.ZV, a.Yv);
  5675. b.l(a, "running", a.XV);
  5676. b.l(a, "ignoreAnchor", a.UV, a.iv);
  5677. b.l(a, "actionManager", a.Wu, a.gK);
  5678. b.l(a, "scheduler", a.th, a.zK);
  5679. b.l(a, "shaderProgram", a.$n, a.Tl);
  5680. b.l(a, "opacity", a.sh, a.yd);
  5681. b.l(a, "opacityModifyRGB", a.zh);
  5682. b.l(a, "cascadeOpacity", a.RV, a.mX);
  5683. b.l(a, "color", a.Uf, a.xb);
  5684. b.l(a, "cascadeColor", a.QV, a.lX)
  5685. };
  5686. b.UC = -1;
  5687. b.YB = 1;
  5688. b.f = b.Ia.extend({
  5689. Xb: 0,
  5690. Yh: 0,
  5691. Iu: 0,
  5692. oi: 0,
  5693. Kj: 0,
  5694. Ca: 1,
  5695. ib: 1,
  5696. Id: null,
  5697. Xk: null,
  5698. Gu: !1,
  5699. Ry: !1,
  5700. xg: 0,
  5701. yg: 0,
  5702. K: null,
  5703. jd: !0,
  5704. wf: null,
  5705. Q: null,
  5706. Hf: !1,
  5707. Ua: null,
  5708. Dj: !1,
  5709. tag: b.UC,
  5710. userData: null,
  5711. userObject: null,
  5712. ye: !1,
  5713. va: null,
  5714. arrivalOrder: 0,
  5715. Le: null,
  5716. Pc: null,
  5717. U0: null,
  5718. xp: !1,
  5719. Ws: null,
  5720. zf: null,
  5721. Fy: !1,
  5722. gc: "Node",
  5723. kH: !1,
  5724. kn: "",
  5725. mi: 255,
  5726. Ff: null,
  5727. ec: !1,
  5728. fc: !1,
  5729. i: null,
  5730. sj: null,
  5731. ctor: function() {
  5732. this.pQ();
  5733. this.rQ()
  5734. },
  5735. pQ: function() {
  5736. this.wf = b.d(0, 0);
  5737. this.Q = b.size(0, 0);
  5738. this.Id = b.d(0, 0);
  5739. this.Xk = b.d(0, 0);
  5740. this.K = [];
  5741. var a = b.I;
  5742. this.Le = a.Wu();
  5743. this.Pc = a.th();
  5744. this.Ws = {
  5745. a: 1,
  5746. b: 0,
  5747. c: 0,
  5748. R: 1,
  5749. la: 0,
  5750. ma: 0
  5751. };
  5752. b.oL && (this.zf = new b.oL(this));
  5753. this.mi = 255;
  5754. this.Ff = b.color(255, 255, 255, 255);
  5755. this.fc = this.ec = !1
  5756. },
  5757. oa: function() {
  5758. return !0
  5759. },
  5760. ig: function(f, a) {
  5761. if (f && 0 !== f.length) {
  5762. var c, d = f.length,
  5763. e;
  5764. c = b.f.Jf;
  5765. switch (a) {
  5766. case c.X:
  5767. for (c = 0; c < d; c++) {
  5768. (e = f[c]) && e.X()
  5769. }
  5770. break;
  5771. case c.Ib:
  5772. for (c = 0; c < d; c++) {
  5773. (e = f[c]) && e.Ib()
  5774. }
  5775. break;
  5776. case c.Kl:
  5777. for (c = 0; c < d; c++) {
  5778. (e = f[c]) && e.Kl()
  5779. }
  5780. break;
  5781. case c.Od:
  5782. for (c = 0; c < d; c++) {
  5783. (e = f[c]) && e.Od()
  5784. }
  5785. break;
  5786. case c.mf:
  5787. for (c = 0; c < d; c++) {
  5788. (e = f[c]) && e.mf()
  5789. }
  5790. break;
  5791. case c.Eh:
  5792. for (c = 0; c < d; c++) {
  5793. (e = f[c]) && e.Eh()
  5794. }
  5795. break;
  5796. case c.kf:
  5797. for (c = 0; c < d; c++) {
  5798. (e = f[c]) && e.kf()
  5799. }
  5800. break;
  5801. default:
  5802. b.assert(0, b.j.qM)
  5803. }
  5804. }
  5805. },
  5806. $e: function(c) {
  5807. for (var a in c) {
  5808. this[a] = c[a]
  5809. }
  5810. },
  5811. gV: function() {
  5812. return this.xg
  5813. },
  5814. TX: function(a) {
  5815. this.xg = a;
  5816. this.i.ia(b.f.L.ba)
  5817. },
  5818. hV: function() {
  5819. return this.yg
  5820. },
  5821. UX: function(a) {
  5822. this.yg = a;
  5823. this.i.ia(b.f.L.ba)
  5824. },
  5825. sK: function(a) {
  5826. this.Xb = a;
  5827. this.Ua && this.Ua.ur(this, a);
  5828. b.ka.mu(this)
  5829. },
  5830. bH: function(a) {
  5831. this.Xb = a
  5832. },
  5833. KU: function() {
  5834. return this.Xb
  5835. },
  5836. t6: function() {
  5837. b.log(b.j.wM);
  5838. return this.Xb
  5839. },
  5840. fba: function(a) {
  5841. b.log(b.j.GM);
  5842. this.sK(a)
  5843. },
  5844. aaa: function(a) {
  5845. this.Yh !== a && (this.Yh = a, b.ka.mu(this))
  5846. },
  5847. i5: function() {
  5848. return this.Yh
  5849. },
  5850. qV: function() {
  5851. return this.Iu
  5852. },
  5853. eY: function(a) {
  5854. this.Iu = a
  5855. },
  5856. aV: function() {
  5857. this.oi !== this.Kj && b.log(b.j.uM);
  5858. return this.oi
  5859. },
  5860. PX: function(a) {
  5861. this.oi = this.Kj = a;
  5862. this.i.ia(b.f.L.ba)
  5863. },
  5864. bV: function() {
  5865. return this.oi
  5866. },
  5867. QX: function(a) {
  5868. this.oi = a;
  5869. this.i.ia(b.f.L.ba)
  5870. },
  5871. cV: function() {
  5872. return this.Kj
  5873. },
  5874. RX: function(a) {
  5875. this.Kj = a;
  5876. this.i.ia(b.f.L.ba)
  5877. },
  5878. dV: function() {
  5879. this.Ca !== this.ib && b.log(b.j.vM);
  5880. return this.Ca
  5881. },
  5882. jf: function(c, a) {
  5883. this.Ca = c;
  5884. this.ib = a || 0 === a ? a : c;
  5885. this.i.ia(b.f.L.ba)
  5886. },
  5887. XI: function() {
  5888. return this.Ca
  5889. },
  5890. zr: function(a) {
  5891. this.Ca = a;
  5892. this.i.ia(b.f.L.ba)
  5893. },
  5894. YI: function() {
  5895. return this.ib
  5896. },
  5897. fC: function(a) {
  5898. this.ib = a;
  5899. this.i.ia(b.f.L.ba)
  5900. },
  5901. G: function(d, a) {
  5902. var c = this.Id;
  5903. if (void 0 === a) {
  5904. if (c.x === d.x && c.y === d.y) {
  5905. return
  5906. }
  5907. c.x = d.x;
  5908. c.y = d.y
  5909. } else {
  5910. if (c.x === d.x && c.y === a) {
  5911. return
  5912. }
  5913. c.x = d;
  5914. c.y = a
  5915. }
  5916. this.Gu = !1;
  5917. this.i.ia(b.f.L.ba)
  5918. },
  5919. kaa: function(d, a) {
  5920. var c = this.Xk;
  5921. void 0 === a ? (c.x = d.x, c.y = d.y) : (c.x = d, c.y = a);
  5922. this.Ry = this.Gu = !0;
  5923. this.i.ia(b.f.L.ba)
  5924. },
  5925. Vq: function() {
  5926. return b.d(this.Id)
  5927. },
  5928. v5: function() {
  5929. return b.d(this.Xk)
  5930. },
  5931. pb: function() {
  5932. return this.Id.x
  5933. },
  5934. uK: function(a) {
  5935. this.Id.x = a;
  5936. this.i.ia(b.f.L.ba)
  5937. },
  5938. qb: function() {
  5939. return this.Id.y
  5940. },
  5941. vK: function(a) {
  5942. this.Id.y = a;
  5943. this.i.ia(b.f.L.ba)
  5944. },
  5945. tU: function() {
  5946. return this.K.length
  5947. },
  5948. sU: function() {
  5949. return this.K
  5950. },
  5951. ZV: function() {
  5952. return this.jd
  5953. },
  5954. Yv: function(a) {
  5955. this.jd !== a && (this.jd = a, this.i.ia(b.f.L.ba), b.Za.af = !0)
  5956. },
  5957. w4: function() {
  5958. return b.d(this.wf)
  5959. },
  5960. Xa: function(d, a) {
  5961. var c = this.wf;
  5962. if (void 0 === a) {
  5963. if (d.x === c.x && d.y === c.y) {
  5964. return
  5965. }
  5966. c.x = d.x;
  5967. c.y = d.y
  5968. } else {
  5969. if (d === c.x && a === c.y) {
  5970. return
  5971. }
  5972. c.x = d;
  5973. c.y = a
  5974. }
  5975. ka(this.i)
  5976. },
  5977. hy: function() {
  5978. return this.wf.x
  5979. },
  5980. wz: function(a) {
  5981. this.wf.x !== a && (this.wf.x = a, ka(this.i))
  5982. },
  5983. FP: function() {
  5984. return this.wf.y
  5985. },
  5986. xz: function(a) {
  5987. this.wf.y !== a && (this.wf.y = a, ka(this.i))
  5988. },
  5989. Tq: function() {
  5990. return this.i.Tq()
  5991. },
  5992. mg: function() {
  5993. return this.Q.width
  5994. },
  5995. qn: function(a) {
  5996. this.Q.width = a;
  5997. ka(this.i)
  5998. },
  5999. Aj: function() {
  6000. return this.Q.height
  6001. },
  6002. on: function(a) {
  6003. this.Q.height = a;
  6004. ka(this.i)
  6005. },
  6006. eb: function() {
  6007. return b.size(this.Q)
  6008. },
  6009. he: function(d, a) {
  6010. var c = this.Q;
  6011. if (void 0 === a) {
  6012. if (d.width === c.width && d.height === c.height) {
  6013. return
  6014. }
  6015. c.width = d.width;
  6016. c.height = d.height
  6017. } else {
  6018. if (d === c.width && a === c.height) {
  6019. return
  6020. }
  6021. c.width = d;
  6022. c.height = a
  6023. }
  6024. ka(this.i)
  6025. },
  6026. XV: function() {
  6027. return this.Hf
  6028. },
  6029. getParent: function() {
  6030. return this.Ua
  6031. },
  6032. tK: function(a) {
  6033. this.Ua = a
  6034. },
  6035. UV: function() {
  6036. return this.Dj
  6037. },
  6038. iv: function(a) {
  6039. a !== this.Dj && (this.Dj = a, this.i.ia(b.f.L.ba))
  6040. },
  6041. oB: function() {
  6042. return this.tag
  6043. },
  6044. Xv: function(a) {
  6045. this.tag = a
  6046. },
  6047. EX: function(a) {
  6048. this.kn = a
  6049. },
  6050. getName: function() {
  6051. return this.kn
  6052. },
  6053. getUserData: function() {
  6054. return this.userData
  6055. },
  6056. setUserData: function(a) {
  6057. this.userData = a
  6058. },
  6059. n6: function() {
  6060. return this.userObject
  6061. },
  6062. aba: function(a) {
  6063. this.userObject !== a && (this.userObject = a)
  6064. },
  6065. z5: function() {
  6066. return this.arrivalOrder
  6067. },
  6068. GX: function(a) {
  6069. this.arrivalOrder = a
  6070. },
  6071. Wu: function() {
  6072. this.Le || (this.Le = b.I.Wu());
  6073. return this.Le
  6074. },
  6075. gK: function(a) {
  6076. this.Le !== a && (this.mC(), this.Le = a)
  6077. },
  6078. th: function() {
  6079. this.Pc || (this.Pc = b.I.th());
  6080. return this.Pc
  6081. },
  6082. zK: function(a) {
  6083. this.Pc !== a && (this.Hr(), this.Pc = a)
  6084. },
  6085. m2: function() {
  6086. b.log(b.j.sM);
  6087. return this.rU()
  6088. },
  6089. rU: function() {
  6090. var a = b.rect(0, 0, this.Q.width, this.Q.height);
  6091. return b.JG(a, this.Pd())
  6092. },
  6093. Od: function() {
  6094. this.mC();
  6095. this.Hr();
  6096. b.ka.UJ(this);
  6097. this.ig(this.K, b.f.Jf.Od)
  6098. },
  6099. Ci: function(e) {
  6100. var a = this.K;
  6101. if (null !== a) {
  6102. for (var c = 0; c < a.length; c++) {
  6103. var d = a[c];
  6104. if (d && d.tag === e) {
  6105. return d
  6106. }
  6107. }
  6108. }
  6109. return null
  6110. },
  6111. G4: function(e) {
  6112. if (!e) {
  6113. return b.log("Invalid name"), null
  6114. }
  6115. for (var a = this.K, c = 0, d = a.length; c < d; c++) {
  6116. if (a[c].kn === e) {
  6117. return a[c]
  6118. }
  6119. }
  6120. return null
  6121. },
  6122. B: function(f, a, c) {
  6123. a = void 0 === a ? f.Xb : a;
  6124. var d, e = !1;
  6125. b.Gi(c) ? (c = void 0, d = f.kn) : b.ge(c) ? (d = c, c = void 0) : b.GB(c) && (e = !0, d = "");
  6126. b.assert(f, b.j.rM);
  6127. b.assert(null === f.Ua, "child already added. It can't be added again");
  6128. this.ZO(f, a, c, d, e)
  6129. },
  6130. ZO: function(f, a, c, d, e) {
  6131. this.K || (this.K = []);
  6132. this.vQ(f, a);
  6133. e ? f.Xv(c) : f.EX(d);
  6134. f.tK(this);
  6135. f.GX(b.YB++);
  6136. this.Hf && (f.X(), this.Fy && f.Kl());
  6137. this.ec && f.i.ia(b.f.L.ra);
  6138. this.fc && f.i.ia(b.f.L.pa)
  6139. },
  6140. vc: function(a) {
  6141. this.Ua && (null == a && (a = !0), this.Ua.removeChild(this, a))
  6142. },
  6143. P9: function(a) {
  6144. b.log(b.j.AM);
  6145. this.vc(a)
  6146. },
  6147. removeChild: function(c, a) {
  6148. 0 !== this.K.length && (null == a && (a = !0), -1 < this.K.indexOf(c) && this.pP(c, a), b.Za.af = !0)
  6149. },
  6150. UB: function(d, a) {
  6151. d === b.UC && b.log(b.j.yM);
  6152. var c = this.Ci(d);
  6153. null == c ? b.log(b.j.zM, d) : this.removeChild(c, a)
  6154. },
  6155. I9: function(a) {
  6156. this.qo(a)
  6157. },
  6158. qo: function(e) {
  6159. var a = this.K;
  6160. if (null !== a) {
  6161. null == e && (e = !0);
  6162. for (var c = 0; c < a.length; c++) {
  6163. var d = a[c];
  6164. d && (this.Hf && (d.Eh(), d.Ib()), e && d.Od(), d.parent = null)
  6165. }
  6166. this.K.length = 0
  6167. }
  6168. },
  6169. pP: function(c, a) {
  6170. this.Hf && (c.Eh(), c.Ib());
  6171. a && c.Od();
  6172. c.parent = null;
  6173. c.i.LA();
  6174. b.fe(this.K, c)
  6175. },
  6176. vQ: function(c, a) {
  6177. b.Za.af = this.ye = !0;
  6178. this.K.push(c);
  6179. c.bH(a)
  6180. },
  6181. Oi: function() {
  6182. this.i.ia(b.f.L.ba)
  6183. },
  6184. ur: function(c, a) {
  6185. b.assert(c, b.j.BM);
  6186. b.Za.af = this.ye = !0;
  6187. c.arrivalOrder = b.YB;
  6188. b.YB++;
  6189. c.bH(a)
  6190. },
  6191. kf: function() {
  6192. if (this.ye) {
  6193. var f = this.K,
  6194. a = f.length,
  6195. c, d, e;
  6196. for (c = 1; c < a; c++) {
  6197. e = f[c];
  6198. for (d = c - 1; 0 <= d;) {
  6199. if (e.Xb < f[d].Xb) {
  6200. f[d + 1] = f[d]
  6201. } else {
  6202. if (e.Xb === f[d].Xb && e.arrivalOrder < f[d].arrivalOrder) {
  6203. f[d + 1] = f[d]
  6204. } else {
  6205. break
  6206. }
  6207. }
  6208. d--
  6209. }
  6210. f[d + 1] = e
  6211. }
  6212. this.ye = !1
  6213. }
  6214. },
  6215. AT: function() {},
  6216. QY: function() {
  6217. null !== this.Ua && (this.Ua.QY(), this.Ua.transform())
  6218. },
  6219. X: function() {
  6220. this.Fy = !1;
  6221. this.Hf = !0;
  6222. this.ig(this.K, b.f.Jf.X);
  6223. this.ek()
  6224. },
  6225. Kl: function() {
  6226. this.Fy = !0;
  6227. this.ig(this.K, b.f.Jf.Kl)
  6228. },
  6229. Eh: function() {
  6230. this.ig(this.K, b.f.Jf.Eh)
  6231. },
  6232. Ib: function() {
  6233. this.Hf = !1;
  6234. this.pause();
  6235. this.ig(this.K, b.f.Jf.Ib);
  6236. this.QW()
  6237. },
  6238. ha: function(a) {
  6239. b.assert(a, b.j.DM);
  6240. this.actionManager.eS(a, this, !this.Hf);
  6241. return a
  6242. },
  6243. mC: function() {
  6244. this.actionManager && this.actionManager.TJ(this)
  6245. },
  6246. yY: function(a) {
  6247. this.actionManager.SJ(a)
  6248. },
  6249. zY: function(a) {
  6250. a === b.Zl ? b.log(b.j.HM) : this.actionManager.PW(a, this)
  6251. },
  6252. dB: function(a) {
  6253. return a === b.Zl ? (b.log(b.j.tM), null) : this.actionManager.dB(a, this)
  6254. },
  6255. x5: function() {
  6256. return this.actionManager.sW(this)
  6257. },
  6258. fk: function() {
  6259. this.fX(0)
  6260. },
  6261. fX: function(a) {
  6262. this.scheduler.fk(this, a, !this.Hf)
  6263. },
  6264. Si: function() {
  6265. this.scheduler.Si(this)
  6266. },
  6267. Ni: function(f, g, a, c, d) {
  6268. var e = arguments.length;
  6269. "function" === typeof f ? 1 === e ? (g = 0, a = b.fg, c = 0, d = this.Y) : 2 === e ? "number" === typeof g ? (a = b.fg, c = 0, d = this.Y) : (d = g, g = 0, a = b.fg, c = 0) : 3 === e ? ("string" === typeof a ? (d = a, a = b.fg) : d = this.Y, c = 0) : 4 === e && (d = this.Y) : 1 === e ? (g = 0, a = b.fg, c = 0) : 2 === e && (a = b.fg, c = 0);
  6270. b.assert(f, b.j.EM);
  6271. b.assert(0 <= g, b.j.FM);
  6272. a = null == a ? b.fg : a;
  6273. this.scheduler.Ni(f, this, g || 0, a, c || 0, !this.Hf, d)
  6274. },
  6275. Ql: function(d, a, c) {
  6276. void 0 === c && (c = this.Y);
  6277. this.Ni(d, 0, 0, a, c)
  6278. },
  6279. Ri: function(a) {
  6280. a && this.scheduler.Ri(a, this)
  6281. },
  6282. Hr: function() {
  6283. this.scheduler.QK(this)
  6284. },
  6285. e$: function() {
  6286. b.log(b.j.CM);
  6287. this.ek()
  6288. },
  6289. ek: function() {
  6290. this.scheduler.Mi(this);
  6291. this.actionManager && this.actionManager.Mi(this);
  6292. b.ka.Mi(this)
  6293. },
  6294. j9: function() {
  6295. b.log(b.j.xM);
  6296. this.pause()
  6297. },
  6298. pause: function() {
  6299. this.scheduler.mo(this);
  6300. this.actionManager && this.actionManager.mo(this);
  6301. b.ka.mo(this)
  6302. },
  6303. x$: function(a) {
  6304. if (null == a) {
  6305. return this.xp = !1
  6306. }
  6307. this.Ws = a;
  6308. this.i.ia(b.f.L.ba);
  6309. this.xp = !0
  6310. },
  6311. lB: function() {
  6312. this.i.lB()
  6313. },
  6314. a9: function() {
  6315. return this.lB()
  6316. },
  6317. $j: function() {
  6318. for (var c = this.Pd(), a = this.Ua; null !== a; a = a.parent) {
  6319. c = b.vl(c, a.Pd())
  6320. }
  6321. return c
  6322. },
  6323. h8: function() {
  6324. return this.$j()
  6325. },
  6326. cJ: function() {
  6327. return b.$H(this.$j())
  6328. },
  6329. gca: function() {
  6330. return this.cJ()
  6331. },
  6332. Rn: function(a) {
  6333. return b.hf(a, this.cJ())
  6334. },
  6335. wI: function(a) {
  6336. a = a || b.d(0, 0);
  6337. return b.hf(a, this.$j())
  6338. },
  6339. lT: function(a) {
  6340. return b.od(this.Rn(a), this.i.Tq())
  6341. },
  6342. B2: function(a) {
  6343. a = a || b.d(0, 0);
  6344. a = b.Hg(a, this.i.Tq());
  6345. return this.wI(a)
  6346. },
  6347. P0: function(a) {
  6348. a = this.wI(a);
  6349. return b.I.vI(a)
  6350. },
  6351. C2: function(a) {
  6352. return this.Rn(a.Zj())
  6353. },
  6354. D2: function(a) {
  6355. a = b.I.uI(a.Zj());
  6356. return this.lT(a)
  6357. },
  6358. update: function(a) {
  6359. this.zf && !this.zf.Y6() && this.zf.ga(a)
  6360. },
  6361. mf: function() {
  6362. this.ig(this.K, b.f.Jf.mf)
  6363. },
  6364. Kv: function() {},
  6365. uc: function() {},
  6366. wU: function(a) {
  6367. return this.zf ? this.zf.wU(a) : null
  6368. },
  6369. H1: function(a) {
  6370. this.zf && this.zf.add(a)
  6371. },
  6372. N9: function(a) {
  6373. return this.zf ? this.zf.remove(a) : !1
  6374. },
  6375. QW: function() {
  6376. this.zf && this.zf.G9()
  6377. },
  6378. ev: null,
  6379. ga: function(a) {
  6380. this.i.ga(a)
  6381. },
  6382. transform: function(c, a) {
  6383. this.i.transform(c, a)
  6384. },
  6385. g8: function() {
  6386. return this.Pd()
  6387. },
  6388. Pd: function() {
  6389. return this.i.Pd()
  6390. },
  6391. Wn: function() {
  6392. this.sj || (this.sj = new b.Go);
  6393. return this.sj
  6394. },
  6395. j5: function() {
  6396. return this.ev
  6397. },
  6398. baa: function(a) {
  6399. this.ev = a
  6400. },
  6401. $n: function() {
  6402. return this.i.$n()
  6403. },
  6404. Tl: function(a) {
  6405. this.i.Tl(a)
  6406. },
  6407. h5: function() {
  6408. return 0
  6409. },
  6410. $$: function() {},
  6411. A4: function() {
  6412. var f = b.rect(0, 0, this.Q.width, this.Q.height),
  6413. a = this.$j(),
  6414. f = b.RB(f, a);
  6415. if (!this.K) {
  6416. return f
  6417. }
  6418. for (var c = this.K, d = 0; d < c.length; d++) {
  6419. var e = c[d];
  6420. e && e.jd && (e = e.Rp(a)) && (f = b.Dv(f, e))
  6421. }
  6422. return f
  6423. },
  6424. Rp: function(f) {
  6425. var a = b.rect(0, 0, this.Q.width, this.Q.height);
  6426. f = null == f ? this.Pd() : b.vl(this.Pd(), f);
  6427. a = b.RB(a, f);
  6428. if (!this.K) {
  6429. return a
  6430. }
  6431. for (var c = this.K, d = 0; d < c.length; d++) {
  6432. var e = c[d];
  6433. e && e.jd && (e = e.Rp(f)) && (a = b.Dv(a, e))
  6434. }
  6435. return a
  6436. },
  6437. sh: function() {
  6438. return this.mi
  6439. },
  6440. Xu: function() {
  6441. return this.i.Xu()
  6442. },
  6443. yd: function(a) {
  6444. this.mi = a;
  6445. this.i.ia(b.f.L.pa)
  6446. },
  6447. TK: function(a) {
  6448. F(this.i, a)
  6449. },
  6450. RV: function() {
  6451. return this.fc
  6452. },
  6453. mX: function(a) {
  6454. this.fc !== a && (this.fc = a, a = this.i, a.Fx = !0, a.ia(b.f.L.pa))
  6455. },
  6456. Uf: function() {
  6457. var a = this.Ff;
  6458. return b.color(a.r, a.g, a.b, a.a)
  6459. },
  6460. Uq: function() {
  6461. return this.i.Uq()
  6462. },
  6463. xb: function(c) {
  6464. var a = this.Ff;
  6465. a.r = c.r;
  6466. a.g = c.g;
  6467. a.b = c.b;
  6468. this.i.ia(b.f.L.ra)
  6469. },
  6470. SK: function(a) {
  6471. this.i.Rf(a)
  6472. },
  6473. QV: function() {
  6474. return this.ec
  6475. },
  6476. lX: function(a) {
  6477. this.ec !== a && (this.ec = a, a = this.i, a.Ex = !0, a.ia(b.f.L.ra))
  6478. },
  6479. Pi: function() {},
  6480. zh: function() {
  6481. return !1
  6482. },
  6483. rQ: function() {
  6484. this.i = b.Za.WI(this)
  6485. },
  6486. Fd: function() {
  6487. return b.ua === b.dc ? new b.f.A(this) : new b.f.F(this)
  6488. }
  6489. });
  6490. b.f.create = function() {
  6491. return new b.f
  6492. };
  6493. b.f.Jf = {
  6494. X: 1,
  6495. Ib: 2,
  6496. Od: 3,
  6497. Kl: 4,
  6498. mf: 5,
  6499. Eh: 6,
  6500. kf: 7
  6501. };
  6502. b.assert(b.nd(b.na.Jw), b.j.Og, "BaseNodesPropertyDefine.js");
  6503. b.na.Jw();
  6504. delete b.na.Jw;
  6505. b.pL = function(c, a) {
  6506. this.Db = !0;
  6507. this.Sc = c;
  6508. this.bd = a;
  6509. this.wb = function(f, d, e) {
  6510. this.bd && this.bd.call(this.Sc, f, d, e)
  6511. }
  6512. };
  6513. b.f.L = {
  6514. ba: 1,
  6515. cca: 2,
  6516. ra: 4,
  6517. pa: 8,
  6518. n2: 16,
  6519. A8: 32,
  6520. jk: 64,
  6521. Wf: 128,
  6522. all: 255
  6523. };
  6524. b.f.qd = function(a) {
  6525. this.C = 1;
  6526. this.p = a;
  6527. this.Db = !1;
  6528. this.xf = new b.XM;
  6529. this.En = {
  6530. a: 1,
  6531. b: 0,
  6532. c: 0,
  6533. R: 1,
  6534. la: 0,
  6535. ma: 0
  6536. };
  6537. this.ql = {
  6538. a: 1,
  6539. b: 0,
  6540. c: 0,
  6541. R: 1,
  6542. la: 0,
  6543. ma: 0
  6544. };
  6545. this.MF = {
  6546. a: 1,
  6547. b: 0,
  6548. c: 0,
  6549. R: 1,
  6550. la: 0,
  6551. ma: 0
  6552. };
  6553. this.pc = 255;
  6554. this.mb = b.color(255, 255, 255, 255);
  6555. this.Fx = this.Ex = !1;
  6556. this.kg = -1
  6557. };
  6558. b.f.qd.prototype = {
  6559. constructor: b.f.qd,
  6560. Tq: function() {
  6561. return b.d(this.xf)
  6562. },
  6563. Uq: function() {
  6564. var a = this.mb;
  6565. return b.color(a.r, a.g, a.b, a.a)
  6566. },
  6567. Xu: function() {
  6568. return this.pc
  6569. },
  6570. lB: function() {
  6571. this.C & b.f.L.ba && (this.MF = b.$H(this.Pd()));
  6572. return this.MF
  6573. },
  6574. LA: function() {},
  6575. ia: function(a) {
  6576. 0 === this.C && 0 !== a && b.Za.NJ(this);
  6577. this.C |= a
  6578. },
  6579. Rf: function(f) {
  6580. var a = this.p,
  6581. c = this.mb,
  6582. d = a.Ff,
  6583. e;
  6584. if (this.Ex && !a.ec) {
  6585. c.r = d.r;
  6586. c.g = d.g;
  6587. c.b = d.b;
  6588. c = new b.Bd(255, 255, 255, 255);
  6589. f = a.K;
  6590. a = 0;
  6591. for (d = f.length; a < d; a++) {
  6592. (e = f[a]) && e.i && e.i.Rf(c)
  6593. }
  6594. this.Ex = !1
  6595. } else {
  6596. if (void 0 === f && (f = (f = a.Ua) && f.ec ? f.Uq() : b.color.WHITE), c.r = 0 | d.r * f.r / 255, c.g = 0 | d.g * f.g / 255, c.b = 0 | d.b * f.b / 255, a.ec) {
  6597. for (f = a.K, a = 0, d = f.length; a < d; a++) {
  6598. (e = f[a]) && e.i && (e.i.Rf(c), e.i.Va())
  6599. }
  6600. }
  6601. }
  6602. this.C ^= this.C & b.f.L.ra
  6603. },
  6604. Va: function() {},
  6605. updateStatus: function() {
  6606. var e = b.f.L,
  6607. a = this.C,
  6608. c = a & e.ra,
  6609. d = a & e.pa;
  6610. c && this.Rf();
  6611. d && F(this);
  6612. (c || d) && this.Va();
  6613. a & e.ba && (this.transform(G(this), !0), this.C ^= this.C & b.f.L.ba)
  6614. }
  6615. };
  6616. function la(e) {
  6617. var a, c = e.p;
  6618. if (void 0 === a) {
  6619. var d = c.Ua;
  6620. a = 255;
  6621. d && d.fc && (a = d.Xu())
  6622. }
  6623. e.pc = c.mi * a / 255
  6624. }
  6625. function ma(e) {
  6626. var a, c = e.p;
  6627. e = e.mb;
  6628. var d = c.Ff;
  6629. void 0 === a && (a = (a = c.Ua) && a.ec ? a.Uq() : b.color.WHITE);
  6630. e.r = 0 | d.r * a.r / 255;
  6631. e.g = 0 | d.g * a.g / 255;
  6632. e.b = 0 | d.b * a.b / 255
  6633. }
  6634. function F(f, g) {
  6635. var a = f.p,
  6636. c, d, e;
  6637. if (f.Fx && !a.fc) {
  6638. f.pc = a.mi;
  6639. d = a.K;
  6640. a = 0;
  6641. for (c = d.length; a < c; a++) {
  6642. (e = d[a]) && e.i && F(e.i, 255)
  6643. }
  6644. f.Fx = !1
  6645. } else {
  6646. if (void 0 === g && (c = a.Ua, g = 255, c && c.fc && (g = c.Xu())), f.pc = a.mi * g / 255, a.fc) {
  6647. for (d = a.K, a = 0, c = d.length; a < c; a++) {
  6648. (e = d[a]) && e.i && (F(e.i, f.pc), e.i.Va())
  6649. }
  6650. }
  6651. }
  6652. f.C ^= f.C & b.f.L.pa
  6653. }
  6654. function G(a) {
  6655. return a.p && a.p.Ua && a.p.Ua.i ? a.p.Ua.i : null
  6656. }
  6657. function ka(e) {
  6658. var a = e.xf,
  6659. c = e.p.Q,
  6660. d = e.p.wf;
  6661. a.x = c.width * d.x;
  6662. a.y = c.height * d.y;
  6663. e.ia(b.f.L.ba)
  6664. }(function() {
  6665. b.f.A = function(c) {
  6666. b.f.qd.call(this, c);
  6667. this.Cp = null;
  6668. this.Th = !1
  6669. };
  6670. var a = b.f.A.prototype = Object.create(b.f.qd.prototype);
  6671. a.constructor = b.f.A;
  6672. a.transform = function(g, c) {
  6673. var d = this.Pd(),
  6674. e = this.ql;
  6675. this.Th = !0;
  6676. if (g) {
  6677. var f = g.ql;
  6678. e.a = d.a * f.a + d.b * f.c;
  6679. e.b = d.a * f.b + d.b * f.R;
  6680. e.c = d.c * f.a + d.R * f.c;
  6681. e.R = d.c * f.b + d.R * f.R;
  6682. e.la = f.a * d.la + f.c * d.ma + f.la;
  6683. e.ma = f.R * d.ma + f.ma + f.b * d.la
  6684. } else {
  6685. e.a = d.a, e.b = d.b, e.c = d.c, e.R = d.R, e.la = d.la, e.ma = d.ma
  6686. } if (c && (d = this.p.K) && 0 !== d.length) {
  6687. for (e = 0, f = d.length; e < f; e++) {
  6688. d[e].i.transform(this, c)
  6689. }
  6690. }
  6691. };
  6692. a.Pd = function() {
  6693. var c = this.p,
  6694. d = !1;
  6695. c.Gu && c.Ua && (d = c.Ua.Q, c.Id.x = c.Xk.x * d.width, c.Id.y = c.Xk.y * d.height, c.Ry = !1, d = !0);
  6696. if (d || this.C & b.f.L.ba) {
  6697. d = this.En;
  6698. d.la = c.Id.x;
  6699. d.ma = c.Id.y;
  6700. var f = 1,
  6701. k = 0,
  6702. m = 0,
  6703. p = 1;
  6704. c.oi && (p = 0.017453292519943295 * c.oi, m = Math.sin(p), p = Math.cos(p));
  6705. c.Kj && (k = 0.017453292519943295 * c.Kj, f = Math.cos(k), k = -Math.sin(k));
  6706. d.a = f;
  6707. d.b = k;
  6708. d.c = m;
  6709. d.R = p;
  6710. var r = c.Ca,
  6711. t = c.ib,
  6712. e = this.xf.x,
  6713. g = this.xf.y,
  6714. h = 0.000001 > r && -0.000001 < r ? 0.000001 : r,
  6715. n = 0.000001 > t && -0.000001 < t ? 0.000001 : t;
  6716. if (1 !== r || 1 !== t) {
  6717. f = d.a *= h, k = d.b *= h, m = d.c *= n, p = d.R *= n
  6718. }
  6719. if (c.xg || c.yg) {
  6720. r = Math.tan(-c.xg * Math.PI / 180), t = Math.tan(-c.yg * Math.PI / 180), Infinity === r && (r = 99999999), Infinity === t && (t = 99999999), h = g * r, n = e * t, d.a = f - m * t, d.b = k - p * t, d.c = m - f * r, d.R = p - k * r, d.la += f * h + m * n, d.ma += k * h + p * n
  6721. }
  6722. d.la -= f * e + m * g;
  6723. d.ma -= k * e + p * g;
  6724. c.Dj && (d.la += e, d.ma += g);
  6725. c.xp && (this.En = b.vl(d, c.Ws))
  6726. }
  6727. return this.En
  6728. };
  6729. a.ga = function(f) {
  6730. var c = this.p;
  6731. if (c.jd) {
  6732. if (f = f || G(this)) {
  6733. this.kg = f.kg + 1
  6734. }
  6735. var d = c.K,
  6736. e;
  6737. this.We(f);
  6738. f = d.length;
  6739. if (0 < f) {
  6740. c.kf();
  6741. for (c = 0; c < f; c++) {
  6742. if (e = d[c], 0 > e.Xb) {
  6743. e.i.ga(this)
  6744. } else {
  6745. break
  6746. }
  6747. }
  6748. for (b.Za.Ig(this); c < f; c++) {
  6749. d[c].i.ga(this)
  6750. }
  6751. } else {
  6752. b.Za.Ig(this)
  6753. }
  6754. this.C = 0
  6755. }
  6756. };
  6757. a.We = function(g) {
  6758. var c = b.f.L,
  6759. d = this.C,
  6760. e = g ? g.p : null;
  6761. e && e.ec && g.C & c.ra && (d |= c.ra);
  6762. e && e.fc && g.C & c.pa && (d |= c.pa);
  6763. g && g.C & c.ba && (d |= c.ba);
  6764. var e = d & c.ra,
  6765. f = d & c.pa,
  6766. c = d & c.ba;
  6767. this.C = d;
  6768. e && ma(this);
  6769. f && la(this);
  6770. e && this.Va();
  6771. c && this.transform(g)
  6772. };
  6773. a.ia = function(c) {
  6774. b.f.qd.prototype.ia.call(this, c);
  6775. this.pR();
  6776. this.Cp && this.Cp.ia(c)
  6777. };
  6778. a.pR = function() {
  6779. !1 === this.Th && (this.Th = !0)
  6780. };
  6781. a.lu = function(f) {
  6782. if (this.Cp !== f) {
  6783. this.Cp = f;
  6784. for (var c = this.p.K, d = 0, e = c.length; d < e; d++) {
  6785. c[d].i.lu(f)
  6786. }
  6787. }
  6788. };
  6789. a.LA = function() {
  6790. this.Cp = null;
  6791. for (var f = this.p.K, c, d = 0, e = f.length; d < e; d++) {
  6792. (c = f[d]) && c.i && c.i.LA()
  6793. }
  6794. };
  6795. a.Tl = function() {};
  6796. a.$n = function() {
  6797. return null
  6798. };
  6799. b.f.A.BF = function(c) {
  6800. return c ? c.src === b.SRC_ALPHA && c.ya === b.ONE || c.src === b.ONE && c.ya === b.ONE ? "lighter" : c.src === b.ZERO && c.ya === b.SRC_ALPHA ? "destination-in" : c.src === b.ZERO && c.ya === b.ONE_MINUS_SRC_ALPHA ? "destination-out" : "source-over" : "source-over"
  6801. }
  6802. })();
  6803. (function() {
  6804. b.f.F = function(d) {
  6805. b.f.qd.call(this, d);
  6806. d = new b.e.U;
  6807. var c = d.m;
  6808. c[2] = c[3] = c[6] = c[7] = c[8] = c[9] = c[11] = c[14] = 0;
  6809. c[10] = c[15] = 1;
  6810. this.RR = d;
  6811. this.Rc = new b.e.U;
  6812. this.sj = this.va = null
  6813. };
  6814. var a = b.f.F.prototype = Object.create(b.f.qd.prototype);
  6815. a.constructor = b.f.F;
  6816. a.Pd = function() {
  6817. var r = this.p;
  6818. if (r.Gu && r.Ua) {
  6819. var s = r.Ua.Q;
  6820. r.Id.x = r.Xk.x * s.width;
  6821. r.Id.y = r.Xk.y * s.height;
  6822. r.Ry = !1
  6823. }
  6824. if (this.C & b.f.L.ba) {
  6825. var s = r.Id.x,
  6826. v = r.Id.y,
  6827. c = this.xf.x,
  6828. d = -c,
  6829. f = this.xf.y,
  6830. t = -f,
  6831. u = r.Ca,
  6832. e = r.ib,
  6833. n = 0.017453292519943295 * r.oi,
  6834. p = 0.017453292519943295 * r.Kj;
  6835. r.Dj && (s += c, v += f);
  6836. var h = 1,
  6837. g = 0,
  6838. m = 1,
  6839. k = 0;
  6840. if (0 !== r.oi || 0 !== r.Kj) {
  6841. h = Math.cos(-n), g = Math.sin(-n), m = Math.cos(-p), k = Math.sin(-p)
  6842. }
  6843. n = r.xg || r.yg;
  6844. n || 0 === c && 0 === f || (s += m * d * u + -g * t * e, v += k * d * u + h * t * e);
  6845. p = this.En;
  6846. p.a = m * u;
  6847. p.b = k * u;
  6848. p.c = -g * e;
  6849. p.R = h * e;
  6850. p.la = s;
  6851. p.ma = v;
  6852. n && (p = b.vl({
  6853. a: 1,
  6854. b: Math.tan(b.Ce(r.yg)),
  6855. c: Math.tan(b.Ce(r.xg)),
  6856. R: 1,
  6857. la: 0,
  6858. ma: 0
  6859. }, p), 0 !== c || 0 !== f) && (p = b.zS(p, d, t));
  6860. r.xp && (p = b.vl(p, r.Ws), r.xp = !1);
  6861. this.En = p
  6862. }
  6863. return this.En
  6864. };
  6865. a.We = function(f) {
  6866. var c = b.f.L,
  6867. d = this.C,
  6868. e = f ? f.p : null;
  6869. e && e.ec && f.C & c.ra && (d |= c.ra);
  6870. e && e.fc && f.C & c.pa && (d |= c.pa);
  6871. f && f.C & c.ba && (d |= c.ba);
  6872. e = d & c.ra;
  6873. c = d & c.pa;
  6874. this.C = d;
  6875. e && ma(this);
  6876. c && la(this);
  6877. (e || c) && this.Va();
  6878. this.transform(f)
  6879. };
  6880. a.Va = function() {};
  6881. a.ga = function(f) {
  6882. var c = this.p;
  6883. if (c.jd) {
  6884. f = f || G(this);
  6885. c.Ua && c.Ua.i && (this.kg = c.Ua.i.kg + 1);
  6886. var d = b.vb;
  6887. d.stack.push(d.top);
  6888. this.We(f);
  6889. d.top = this.Rc;
  6890. if ((f = c.K) && 0 < f.length) {
  6891. var e = f.length;
  6892. c.kf();
  6893. for (c = 0; c < e; c++) {
  6894. if (f[c] && 0 > f[c].Xb) {
  6895. f[c].i.ga(this)
  6896. } else {
  6897. break
  6898. }
  6899. }
  6900. for (b.Za.Ig(this); c < e; c++) {
  6901. f[c] && f[c].i.ga(this)
  6902. }
  6903. } else {
  6904. b.Za.Ig(this)
  6905. }
  6906. this.C = 0;
  6907. d.top = d.stack.pop()
  6908. }
  6909. };
  6910. a.transform = function(c, e) {
  6911. var f = this.RR,
  6912. g = this.Rc,
  6913. h = this.p,
  6914. k = (c = c || G(this)) ? c.Rc : b.vb.top,
  6915. m = this.Pd();
  6916. this.C ^= this.C & b.f.L.ba;
  6917. var d = f.m;
  6918. d[0] = m.a;
  6919. d[4] = m.c;
  6920. d[12] = m.la;
  6921. d[1] = m.b;
  6922. d[5] = m.R;
  6923. d[13] = m.ma;
  6924. d[14] = h.Iu;
  6925. b.sv(g, k, f);
  6926. null === h.sj || null !== h.ev && h.ev.wp || (k = this.xf.x, m = this.xf.y, 0 !== k || 0 !== m ? (b.iD || (k |= 0, m |= 0), d = b.e.U.Wj(k, m, 0, f), g.multiply(d), h.sj.Ky(g), d = b.e.U.Wj(-k, -m, 0, d), g.multiply(d), f.wd()) : h.sj.Ky(g));
  6927. if (e && h.K && 0 !== h.K.length) {
  6928. for (h = h.K, f = 0, g = h.length; f < g; f++) {
  6929. h[f].i.transform(this, e)
  6930. }
  6931. }
  6932. };
  6933. a.Tl = function(c) {
  6934. this.va = c
  6935. };
  6936. a.$n = function() {
  6937. return this.va
  6938. }
  6939. })();
  6940. b.Jc = b.f.extend({
  6941. textureAtlas: null,
  6942. quadsToDraw: 0,
  6943. en: 0,
  6944. WF: 0,
  6945. bi: 0,
  6946. dh: 0,
  6947. hc: !1,
  6948. O: null,
  6949. Dt: !1,
  6950. gc: "AtlasNode",
  6951. C1: null,
  6952. ctor: function(e, a, c, d) {
  6953. b.f.prototype.ctor.call(this);
  6954. this.O = {
  6955. src: b.qf,
  6956. ya: b.pf
  6957. };
  6958. this.Dt = !1;
  6959. void 0 !== d && this.JV(e, a, c, d)
  6960. },
  6961. Fd: function() {
  6962. this.i = b.ua === b.dc ? new b.Jc.A(this) : new b.Jc.F(this)
  6963. },
  6964. Bo: function() {
  6965. b.log(b.j.aL)
  6966. },
  6967. Uf: function() {
  6968. return this.hc ? this.i.uj : b.f.prototype.Uf.call(this)
  6969. },
  6970. Pi: function(c) {
  6971. var a = this.color;
  6972. this.hc = c;
  6973. this.xb(a)
  6974. },
  6975. zh: function() {
  6976. return this.hc
  6977. },
  6978. Vn: function() {
  6979. return this.O
  6980. },
  6981. Hh: function(c, a) {
  6982. this.O = void 0 === a ? c : {
  6983. src: c,
  6984. ya: a
  6985. }
  6986. },
  6987. Ar: function(a) {
  6988. this.textureAtlas = a
  6989. },
  6990. ak: function() {
  6991. return this.textureAtlas
  6992. },
  6993. H5: function() {
  6994. return this.quadsToDraw
  6995. },
  6996. taa: function(a) {
  6997. this.quadsToDraw = a
  6998. },
  6999. JV: function(e, a, c, d) {
  7000. if (!e) {
  7001. throw "cc.AtlasNode.initWithTileFile(): title should not be null"
  7002. }
  7003. e = b.Ra.lc(e);
  7004. return this.Pa(e, a, c, d)
  7005. },
  7006. Pa: function(e, a, c, d) {
  7007. return this.i.Pa(e, a, c, d)
  7008. },
  7009. xb: function(a) {
  7010. this.i.xb(a)
  7011. },
  7012. yd: function(a) {
  7013. this.i.yd(a)
  7014. },
  7015. kb: function() {
  7016. return this.i.kb()
  7017. },
  7018. $a: function(a) {
  7019. this.i.$a(a)
  7020. },
  7021. Ez: function(a) {
  7022. this.Dt = a
  7023. }
  7024. });
  7025. w = b.Jc.prototype;
  7026. b.l(w, "opacity", w.sh, w.yd);
  7027. b.l(w, "color", w.Uf, w.xb);
  7028. b.l(w, "texture", w.kb, w.$a);
  7029. b.dg.prototype.apply(w);
  7030. b.Jc.create = function(e, a, c, d) {
  7031. return new b.Jc(e, a, c, d)
  7032. };
  7033. (function() {
  7034. b.Jc.A = function(c) {
  7035. b.f.A.call(this, c);
  7036. this.Db = !1;
  7037. this.uj = b.color.WHITE;
  7038. this.P = this.Fb = null
  7039. };
  7040. var a = b.Jc.A.prototype = Object.create(b.f.A.prototype);
  7041. a.constructor = b.Jc.A;
  7042. a.Pa = function(g, c, d, e) {
  7043. var f = this.p;
  7044. f.bi = c;
  7045. f.dh = d;
  7046. f.hc = !0;
  7047. this.Fb = g;
  7048. if (!this.Fb) {
  7049. return b.log(b.j.vC), !1
  7050. }
  7051. this.P = this.Fb;
  7052. this.Dx();
  7053. f.quadsToDraw = e;
  7054. return !0
  7055. };
  7056. a.xb = function(d) {
  7057. var c = this.p.Ff;
  7058. if (c.r !== d.r || c.g !== d.g || c.b !== d.b) {
  7059. this.uj = d, this.Fm()
  7060. }
  7061. };
  7062. a.Fm = b.Z.Xz ? function() {
  7063. var f = this.p,
  7064. c = f.kb();
  7065. if (c && this.Fb) {
  7066. var d = this.Fb.xa;
  7067. if (d) {
  7068. var e = c.xa,
  7069. c = b.rect(0, 0, d.width, d.height);
  7070. e instanceof HTMLCanvasElement ? b.o.A.Wm(d, this.uj, c, e) : (e = b.o.A.Wm(d, this.uj, c), c = new b.ca, c.mc(e), c.fb(), f.$a(c))
  7071. }
  7072. }
  7073. } : function() {
  7074. var f = this.p,
  7075. c, d = f.kb();
  7076. if (d && this.Fb && (c = d.xa)) {
  7077. var e = this.Fb.xa;
  7078. if (d = b.Ra.pB(e)) {
  7079. e = b.rect(0, 0, e.width, e.height), c instanceof HTMLCanvasElement ? b.o.A.Vm(c, d, this.mb, e, c) : (c = b.o.A.Vm(c, d, this.mb, e), d = new b.ca, d.mc(c), d.fb(), f.$a(d))
  7080. }
  7081. }
  7082. };
  7083. a.yd = function(c) {
  7084. b.f.prototype.yd.call(this.p, c)
  7085. };
  7086. a.kb = function() {
  7087. return this.P
  7088. };
  7089. a.$a = function(c) {
  7090. this.P = c
  7091. };
  7092. a.Dx = function() {
  7093. var d = this.p,
  7094. c = this.P.eb();
  7095. d.WF = 0 | c.height / d.dh;
  7096. d.en = 0 | c.width / d.bi
  7097. }
  7098. })();
  7099. (function() {
  7100. b.Jc.F = function(c) {
  7101. b.f.F.call(this, c);
  7102. this.Db = !0;
  7103. this.cb = null;
  7104. this.uj = b.color.WHITE;
  7105. this.gA = this.et = null;
  7106. this.va = b.Ge.Hc(b.Vw);
  7107. this.gA = b.s.getUniformLocation(this.va.Zu(), "u_color")
  7108. };
  7109. var a = b.Jc.F.prototype = Object.create(b.f.F.prototype);
  7110. a.constructor = b.Jc.F;
  7111. a.pl = function() {
  7112. var c = this.p;
  7113. this.cb.texture.co() || (c.O.src = b.SRC_ALPHA, c.O.ya = b.ONE_MINUS_SRC_ALPHA)
  7114. };
  7115. a.JH = function() {
  7116. this.p.hc = this.cb.texture.co()
  7117. };
  7118. a.wb = function(d) {
  7119. d = d || b.s;
  7120. var c = this.p;
  7121. this.va.Ub();
  7122. this.va.wg(this.Rc);
  7123. b.Vf(c.O.src, c.O.ya);
  7124. this.gA && this.et && (d.uniform4fv(this.gA, this.et), this.cb.DI(c.quadsToDraw))
  7125. };
  7126. a.Pa = function(g, c, d, e) {
  7127. var f = this.p;
  7128. f.bi = c;
  7129. f.dh = d;
  7130. this.uj = b.color.WHITE;
  7131. f.hc = !0;
  7132. f.O.src = b.qf;
  7133. f.O.ya = b.pf;
  7134. c = f.Ff;
  7135. this.et = new Float32Array([c.r / 255, c.g / 255, c.b / 255, f.mi / 255]);
  7136. this.cb = new b.Ph;
  7137. this.cb.Pa(g, e);
  7138. if (!this.cb) {
  7139. return b.log(b.j.vC), !1
  7140. }
  7141. this.pl();
  7142. this.JH();
  7143. this.Dx();
  7144. f.quadsToDraw = e;
  7145. return !0
  7146. };
  7147. a.xb = function(e) {
  7148. var c = b.color(e.r, e.g, e.b),
  7149. d = this.p;
  7150. this.uj = e;
  7151. e = this.pc;
  7152. d.hc && (c.r = c.r * e / 255, c.g = c.g * e / 255, c.b = c.b * e / 255);
  7153. b.f.prototype.xb.call(d, c)
  7154. };
  7155. a.yd = function(d) {
  7156. var c = this.p;
  7157. b.f.prototype.yd.call(c, d);
  7158. c.hc && (c.color = this.uj)
  7159. };
  7160. a.Va = function() {
  7161. var c = this.mb;
  7162. this.et = new Float32Array([c.r / 255, c.g / 255, c.b / 255, this.pc / 255])
  7163. };
  7164. a.kb = function() {
  7165. return this.cb.texture
  7166. };
  7167. a.$a = function(c) {
  7168. this.cb.texture = c;
  7169. this.pl();
  7170. this.JH()
  7171. };
  7172. a.Dx = function() {
  7173. var e = this.p,
  7174. c = this.cb.texture,
  7175. d = c.eb();
  7176. e.Dt && (d = c.Q);
  7177. e.WF = 0 | d.height / e.dh;
  7178. e.en = 0 | d.width / e.bi
  7179. }
  7180. })();
  7181. b.na.mx = function() {
  7182. b.ca = b.Ia.extend({
  7183. j1: !0,
  7184. kh: null,
  7185. ji: 0,
  7186. ii: 0,
  7187. kn: "",
  7188. Q: null,
  7189. Bh: 0,
  7190. Ch: 0,
  7191. Ct: !1,
  7192. $m: !1,
  7193. shaderProgram: null,
  7194. T: !1,
  7195. xa: null,
  7196. Ze: null,
  7197. url: null,
  7198. ctor: function() {
  7199. this.Q = b.size(0, 0);
  7200. this.kh = b.ca.CI
  7201. },
  7202. SB: function() {
  7203. this.Ze && b.s.deleteTexture(this.Ze);
  7204. b.S.uc(this.url)
  7205. },
  7206. UI: function() {
  7207. return this.kh
  7208. },
  7209. nB: function() {
  7210. return this.ji
  7211. },
  7212. mB: function() {
  7213. return this.ii
  7214. },
  7215. getName: function() {
  7216. return this.Ze
  7217. },
  7218. eb: function() {
  7219. return b.size(this.Q.width / b.jb(), this.Q.height / b.jb())
  7220. },
  7221. mg: function() {
  7222. return this.Q.width / b.jb()
  7223. },
  7224. Aj: function() {
  7225. return this.Q.height / b.jb()
  7226. },
  7227. xU: function() {
  7228. return this.Q
  7229. },
  7230. PU: function() {
  7231. return this.Bh
  7232. },
  7233. BX: function(a) {
  7234. this.Bh = a
  7235. },
  7236. QU: function() {
  7237. return this.Ch
  7238. },
  7239. CX: function(a) {
  7240. this.Ch = a
  7241. },
  7242. $n: function() {
  7243. return this.shaderProgram
  7244. },
  7245. Tl: function(a) {
  7246. this.shaderProgram = a
  7247. },
  7248. co: function() {
  7249. return this.Ct
  7250. },
  7251. xV: function() {
  7252. return this.$m
  7253. },
  7254. description: function() {
  7255. return "\x3ccc.Texture2D | Name \x3d " + this.kn + " | Dimensions \x3d " + this.ji + " x " + this.ii + " | Coordinates \x3d (" + this.Bh + ", " + this.Ch + ")\x3e"
  7256. },
  7257. Ol: function() {},
  7258. bW: function(a) {
  7259. return a
  7260. },
  7261. Zq: function(g, h, k, m, n) {
  7262. var a = b.ca,
  7263. c = b.s,
  7264. d = c.RGBA,
  7265. e = c.UNSIGNED_BYTE,
  7266. f = k * b.ca.XD[h] / 8;
  7267. 0 === f % 8 ? c.pixelStorei(c.UNPACK_ALIGNMENT, 8) : 0 === f % 4 ? c.pixelStorei(c.UNPACK_ALIGNMENT, 4) : 0 === f % 2 ? c.pixelStorei(c.UNPACK_ALIGNMENT, 2) : c.pixelStorei(c.UNPACK_ALIGNMENT, 1);
  7268. this.Ze = c.createTexture();
  7269. b.Ee(this);
  7270. c.texParameteri(c.TEXTURE_2D, c.TEXTURE_MIN_FILTER, c.LINEAR);
  7271. c.texParameteri(c.TEXTURE_2D, c.TEXTURE_MAG_FILTER, c.LINEAR);
  7272. c.texParameteri(c.TEXTURE_2D, c.TEXTURE_WRAP_S, c.CLAMP_TO_EDGE);
  7273. c.texParameteri(c.TEXTURE_2D, c.TEXTURE_WRAP_T, c.CLAMP_TO_EDGE);
  7274. switch (h) {
  7275. case a.dj:
  7276. d = c.RGBA;
  7277. break;
  7278. case a.gp:
  7279. d = c.RGB;
  7280. break;
  7281. case a.vs:
  7282. e = c.UNSIGNED_SHORT_4_4_4_4;
  7283. break;
  7284. case a.us:
  7285. e = c.UNSIGNED_SHORT_5_5_5_1;
  7286. break;
  7287. case a.fp:
  7288. e = c.UNSIGNED_SHORT_5_6_5;
  7289. break;
  7290. case a.Ew:
  7291. d = c.LUMINANCE_ALPHA;
  7292. break;
  7293. case a.ep:
  7294. d = c.ALPHA;
  7295. break;
  7296. case a.Fw:
  7297. d = c.LUMINANCE;
  7298. break;
  7299. default:
  7300. b.assert(0, b.j.aO)
  7301. }
  7302. c.texImage2D(c.TEXTURE_2D, 0, d, k, m, 0, d, e, g);
  7303. this.Q.width = n.width;
  7304. this.Q.height = n.height;
  7305. this.ji = k;
  7306. this.ii = m;
  7307. this.kh = h;
  7308. this.Bh = n.width / k;
  7309. this.Ch = n.height / m;
  7310. this.$m = this.Ct = !1;
  7311. this.shaderProgram = b.Ge.Hc(b.kp);
  7312. return this.T = !0
  7313. },
  7314. BT: function(e) {
  7315. var a = [0, this.Ch, this.Bh, this.Ch, 0, 0, this.Bh, 0],
  7316. c = this.ji * this.Bh,
  7317. d = this.ii * this.Ch;
  7318. e = [e.x, e.y, 0, c + e.x, e.y, 0, e.x, d + e.y, 0, c + e.x, d + e.y, 0];
  7319. b.tc(b.ad | b.pm);
  7320. this.va.Ub();
  7321. this.va.DK();
  7322. b.Ee(this);
  7323. c = b.s;
  7324. c.vertexAttribPointer(b.ab, 2, c.FLOAT, !1, 0, e);
  7325. c.vertexAttribPointer(b.Ed, 2, c.FLOAT, !1, 0, a);
  7326. c.drawArrays(c.TRIANGLE_STRIP, 0, 4)
  7327. },
  7328. DT: function(d) {
  7329. var a = [0, this.Ch, this.Bh, this.Ch, 0, 0, this.Bh, 0];
  7330. d = [d.x, d.y, d.x + d.width, d.y, d.x, d.y + d.height, d.x + d.width, d.y + d.height];
  7331. b.tc(b.ad | b.pm);
  7332. this.va.Ub();
  7333. this.va.DK();
  7334. b.Ee(this);
  7335. var c = b.s;
  7336. c.vertexAttribPointer(b.ab, 2, c.FLOAT, !1, 0, d);
  7337. c.vertexAttribPointer(b.Ed, 2, c.FLOAT, !1, 0, a);
  7338. c.drawArrays(c.TRIANGLE_STRIP, 0, 4)
  7339. },
  7340. oJ: function(e) {
  7341. if (null == e) {
  7342. return b.log(b.j.dO), !1
  7343. }
  7344. var a = e.sV(),
  7345. c = e.EU(),
  7346. d = b.Qn.aq;
  7347. if (a > d || c > d) {
  7348. return b.log(b.j.eO, a, c, d, d), !1
  7349. }
  7350. this.T = !0;
  7351. return this.qQ(e, a, c)
  7352. },
  7353. mc: function(a) {
  7354. a && (this.Ze = b.s.createTexture(), this.xa = a, this.T = !0)
  7355. },
  7356. GU: function() {
  7357. return this.xa
  7358. },
  7359. VV: function() {
  7360. return this.T
  7361. },
  7362. fb: function(c) {
  7363. c = void 0 === c ? !1 : c;
  7364. if (b.fu) {
  7365. if (!this.xa) {
  7366. var a = b.S.De(this.url);
  7367. if (!a) {
  7368. return
  7369. }
  7370. this.mc(a)
  7371. }
  7372. this.xa.width && this.xa.height && (a = b.s, b.Ee(this), a.pixelStorei(a.UNPACK_ALIGNMENT, 4), c && a.pixelStorei(a.UNPACK_PREMULTIPLY_ALPHA_WEBGL, 1), a.texImage2D(a.TEXTURE_2D, 0, a.RGBA, a.RGBA, a.UNSIGNED_BYTE, this.xa), 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.Ge.Hc(b.kp), b.Ee(null), c && a.pixelStorei(a.UNPACK_PREMULTIPLY_ALPHA_WEBGL, 0), a = this.xa.height, this.ji = this.Q.width = this.xa.width, this.ii = this.Q.height = a, this.kh = b.ca.dj, this.Ch = this.Bh = 1, this.Ct = c, this.$m = !1, this.dispatchEvent("load"))
  7373. }
  7374. },
  7375. Qd: function() {
  7376. b.log(b.j.jO);
  7377. return null
  7378. },
  7379. BV: function() {
  7380. b.log(b.j.cO);
  7381. return !1
  7382. },
  7383. DV: function() {
  7384. b.log(b.j.gO);
  7385. return !1
  7386. },
  7387. EV: function() {
  7388. b.log(b.j.iO);
  7389. return !1
  7390. },
  7391. YX: function(f, a, c, d) {
  7392. var e = b.s;
  7393. void 0 !== a && (f = {
  7394. CJ: f,
  7395. BJ: a,
  7396. Lr: c,
  7397. Mr: d
  7398. });
  7399. b.assert(this.ji === b.cj(this.ji) && this.ii === b.cj(this.ii) || f.Lr === e.CLAMP_TO_EDGE && f.Mr === e.CLAMP_TO_EDGE, "WebGLRenderingContext.CLAMP_TO_EDGE should be used in NPOT textures");
  7400. b.Ee(this);
  7401. e.texParameteri(e.TEXTURE_2D, e.TEXTURE_MIN_FILTER, f.CJ);
  7402. e.texParameteri(e.TEXTURE_2D, e.TEXTURE_MAG_FILTER, f.BJ);
  7403. e.texParameteri(e.TEXTURE_2D, e.TEXTURE_WRAP_S, f.Lr);
  7404. e.texParameteri(e.TEXTURE_2D, e.TEXTURE_WRAP_T, f.Mr)
  7405. },
  7406. iX: function() {
  7407. var a = b.s;
  7408. b.Ee(this);
  7409. this.$m ? a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MIN_FILTER, a.LINEAR_MIPMAP_NEAREST) : a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MIN_FILTER, a.LINEAR);
  7410. a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MAG_FILTER, a.LINEAR)
  7411. },
  7412. hK: function() {
  7413. var a = b.s;
  7414. b.Ee(this);
  7415. this.$m ? a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MIN_FILTER, a.NEAREST_MIPMAP_NEAREST) : a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MIN_FILTER, a.NEAREST);
  7416. a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MAG_FILTER, a.NEAREST)
  7417. },
  7418. generateMipmap: function() {
  7419. b.assert(this.ji === b.cj(this.ji) && this.ii === b.cj(this.ii), "Mimpap texture only works in POT textures");
  7420. b.Ee(this);
  7421. b.s.generateMipmap(b.s.TEXTURE_2D);
  7422. this.$m = !0
  7423. },
  7424. BY: function() {
  7425. return b.ca.UO[this.kh]
  7426. },
  7427. XS: function(c) {
  7428. c = c || this.kh;
  7429. var a = b.ca.XD[c];
  7430. if (null != a) {
  7431. return a
  7432. }
  7433. b.log(b.j.$N, c);
  7434. return -1
  7435. },
  7436. qQ: function(d, g, h) {
  7437. var k = b.ca,
  7438. m = d.getData(),
  7439. n = null,
  7440. n = null,
  7441. p = d.D6(),
  7442. a = b.size(d.sV(), d.EU()),
  7443. c = k.CI,
  7444. e = d.z4();
  7445. p || (8 <= e ? c = k.gp : (b.log(b.j.XN), c = k.fp));
  7446. var f = g * h;
  7447. if (c === k.fp) {
  7448. if (p) {
  7449. for (m = new Uint16Array(g * h), n = d.getData(), e = 0; e < f; ++e) {
  7450. m[e] = (n[e] >> 0 & 255) >> 3 << 11 | (n[e] >> 8 & 255) >> 2 << 5 | (n[e] >> 16 & 255) >> 3 << 0
  7451. }
  7452. } else {
  7453. for (m = new Uint16Array(g * h), n = d.getData(), e = 0; e < f; ++e) {
  7454. m[e] = (n[e] & 255) >> 3 << 11 | (n[e] & 255) >> 2 << 5 | (n[e] & 255) >> 3 << 0
  7455. }
  7456. }
  7457. } else {
  7458. if (c === k.vs) {
  7459. for (m = new Uint16Array(g * h), n = d.getData(), e = 0; e < f; ++e) {
  7460. m[e] = (n[e] >> 0 & 255) >> 4 << 12 | (n[e] >> 8 & 255) >> 4 << 8 | (n[e] >> 16 & 255) >> 4 << 4 | (n[e] >> 24 & 255) >> 4 << 0
  7461. }
  7462. } else {
  7463. if (c === k.us) {
  7464. for (m = new Uint16Array(g * h), n = d.getData(), e = 0; e < f; ++e) {
  7465. m[e] = (n[e] >> 0 & 255) >> 3 << 11 | (n[e] >> 8 & 255) >> 3 << 6 | (n[e] >> 16 & 255) >> 3 << 1 | (n[e] >> 24 & 255) >> 7 << 0
  7466. }
  7467. } else {
  7468. if (c === k.ep) {
  7469. for (m = new Uint8Array(g * h), n = d.getData(), e = 0; e < f; ++e) {
  7470. m[e] = n >> 24 & 255
  7471. }
  7472. }
  7473. }
  7474. }
  7475. } if (p && c === k.gp) {
  7476. for (n = d.getData(), m = new Uint8Array(g * h * 3), e = 0; e < f; ++e) {
  7477. m[3 * e] = n >> 0 & 255, m[3 * e + 1] = n >> 8 & 255, m[3 * e + 2] = n >> 16 & 255
  7478. }
  7479. }
  7480. this.Zq(m, c, g, h, a);
  7481. d.getData();
  7482. this.Ct = d.e7();
  7483. return !0
  7484. },
  7485. Gq: function(c, a) {
  7486. this.addEventListener("load", c, a)
  7487. },
  7488. UW: function(a) {
  7489. this.removeEventListener("load", a)
  7490. }
  7491. })
  7492. };
  7493. b.na.nx = function() {
  7494. var a = b.Ph.prototype;
  7495. a.jH = function() {
  7496. var c = b.s;
  7497. this.Me[0] = c.createBuffer();
  7498. this.Me[1] = c.createBuffer();
  7499. this.cl = c.createBuffer();
  7500. this.Nt()
  7501. };
  7502. a.Nt = function() {
  7503. var c = b.s;
  7504. c.bindBuffer(c.ARRAY_BUFFER, this.cl);
  7505. c.bufferData(c.ARRAY_BUFFER, this.ve, c.DYNAMIC_DRAW);
  7506. c.bindBuffer(c.ELEMENT_ARRAY_BUFFER, this.Me[1]);
  7507. c.bufferData(c.ELEMENT_ARRAY_BUFFER, this.Nb, c.STATIC_DRAW)
  7508. };
  7509. a.DI = function(e) {
  7510. var c;
  7511. c = 0;
  7512. if (0 !== e && this.texture && this.texture.T) {
  7513. var d = b.s;
  7514. b.Ee(this.texture);
  7515. b.tc(b.pp);
  7516. d.bindBuffer(d.ARRAY_BUFFER, this.cl);
  7517. this.dirty && (d.bufferData(d.ARRAY_BUFFER, this.ve, d.DYNAMIC_DRAW), this.dirty = !1);
  7518. d.vertexAttribPointer(b.ab, 3, d.FLOAT, !1, 24, 0);
  7519. d.vertexAttribPointer(b.ne, 4, d.UNSIGNED_BYTE, !0, 24, 12);
  7520. d.vertexAttribPointer(b.Ed, 2, d.FLOAT, !1, 24, 16);
  7521. d.bindBuffer(d.ELEMENT_ARRAY_BUFFER, this.Me[1]);
  7522. b.kD ? d.drawElements(d.TRIANGLE_STRIP, 6 * e, d.UNSIGNED_SHORT, 6 * c * this.Nb.BYTES_PER_ELEMENT) : d.drawElements(d.TRIANGLES, 6 * e, d.UNSIGNED_SHORT, 6 * c * this.Nb.BYTES_PER_ELEMENT);
  7523. b.df++
  7524. }
  7525. }
  7526. };
  7527. b.na.ox = function() {
  7528. var a = b.Ra;
  7529. a.fb = function(e) {
  7530. var c = this.jc;
  7531. b.fu || (c = this.$p);
  7532. var d = c[e];
  7533. d || (d = c[e] = new b.ca, d.url = e);
  7534. d.fb()
  7535. };
  7536. a.lc = function(g, c, d) {
  7537. b.assert(g, b.j.ZN);
  7538. var e = this.jc;
  7539. b.fu || (e = this.$p);
  7540. var f = e[g] || e[b.S.Ek[g]];
  7541. if (f) {
  7542. return c && c.call(d, f), f
  7543. }
  7544. f = e[g] = new b.ca;
  7545. f.url = g;
  7546. (b.S.mE(g) ? b.S.load : b.S.Ah).call(b.S, g, function(h) {
  7547. if (h) {
  7548. return c && c.call(d, h)
  7549. }
  7550. b.Ra.fb(g);
  7551. h = e[g];
  7552. c && c.call(d, h)
  7553. });
  7554. return f
  7555. };
  7556. a.pS = a.lc;
  7557. a = null
  7558. };
  7559. b.na.Nw = function() {
  7560. var c = b.ca;
  7561. c.b0 = function(d) {
  7562. b.TM = d
  7563. };
  7564. c.dj = 2;
  7565. c.gp = 3;
  7566. c.fp = 4;
  7567. c.ep = 5;
  7568. c.Fw = 6;
  7569. c.Ew = 7;
  7570. c.vs = 8;
  7571. c.us = 7;
  7572. c.$C = 9;
  7573. c.ZC = 10;
  7574. c.LM = c.dj;
  7575. var a = b.ca.UO = {};
  7576. a[c.dj] = "RGBA8888";
  7577. a[c.gp] = "RGB888";
  7578. a[c.fp] = "RGB565";
  7579. a[c.ep] = "A8";
  7580. a[c.Fw] = "I8";
  7581. a[c.Ew] = "AI88";
  7582. a[c.vs] = "RGBA4444";
  7583. a[c.us] = "RGB5A1";
  7584. a[c.$C] = "PVRTC4";
  7585. a[c.ZC] = "PVRTC2";
  7586. a = b.ca.XD = {};
  7587. a[c.dj] = 32;
  7588. a[c.gp] = 24;
  7589. a[c.fp] = 16;
  7590. a[c.ep] = 8;
  7591. a[c.Fw] = 8;
  7592. a[c.Ew] = 16;
  7593. a[c.vs] = 16;
  7594. a[c.us] = 16;
  7595. a[c.$C] = 4;
  7596. a[c.ZC] = 3;
  7597. a = b.ca.prototype;
  7598. b.l(a, "name", a.getName);
  7599. b.l(a, "pixelFormat", a.UI);
  7600. b.l(a, "pixelsWidth", a.nB);
  7601. b.l(a, "pixelsHeight", a.mB);
  7602. b.l(a, "width", a.mg);
  7603. b.l(a, "height", a.Aj);
  7604. c.CI = c.LM
  7605. };
  7606. b.na.Ow = function() {
  7607. var a = b.Ph.prototype;
  7608. b.l(a, "totalQuads", a.bJ);
  7609. b.l(a, "capacity", a.NI);
  7610. b.l(a, "quads", a.VI, a.xK)
  7611. };
  7612. b.gZ = 51;
  7613. b.jZ = 19;
  7614. b.lZ = 18;
  7615. b.iZ = 50;
  7616. b.fZ = 34;
  7617. b.dZ = 35;
  7618. b.eZ = 33;
  7619. b.hZ = 49;
  7620. b.kZ = 17;
  7621. b.TM = !1;
  7622. b.ua === b.dc ? (b.ca = b.Ia.extend({
  7623. Q: null,
  7624. T: !1,
  7625. xa: null,
  7626. url: null,
  7627. $t: null,
  7628. ctor: function() {
  7629. this.Q = b.size(0, 0);
  7630. this.T = !1;
  7631. this.xa = null;
  7632. this.$t = ""
  7633. },
  7634. nB: function() {
  7635. return this.Q.width
  7636. },
  7637. mB: function() {
  7638. return this.Q.height
  7639. },
  7640. eb: function() {
  7641. var a = b.jb();
  7642. return b.size(this.Q.width / a, this.Q.height / a)
  7643. },
  7644. mg: function() {
  7645. return this.Q.width / b.jb()
  7646. },
  7647. Aj: function() {
  7648. return this.Q.height / b.jb()
  7649. },
  7650. xU: function() {
  7651. return this.Q
  7652. },
  7653. mc: function(a) {
  7654. a && (this.xa = a, this.Q.width = a.width, this.Q.height = a.height, this.T = !0)
  7655. },
  7656. GU: function() {
  7657. return this.xa
  7658. },
  7659. VV: function() {
  7660. return this.T
  7661. },
  7662. fb: function() {
  7663. if (!this.T) {
  7664. if (!this.xa) {
  7665. var a = b.S.De(this.url);
  7666. if (!a) {
  7667. return
  7668. }
  7669. this.mc(a)
  7670. }
  7671. a = this.xa;
  7672. this.Q.width = a.width;
  7673. this.Q.height = a.height;
  7674. this.dispatchEvent("load")
  7675. }
  7676. },
  7677. description: function() {
  7678. return "\x3ccc.Texture2D | width \x3d " + this.Q.width + " height " + this.Q.height + "\x3e"
  7679. },
  7680. Zq: function() {
  7681. return !1
  7682. },
  7683. oJ: function() {
  7684. return !1
  7685. },
  7686. Qd: function() {
  7687. return !1
  7688. },
  7689. SB: function() {
  7690. b.S.uc(this.url)
  7691. },
  7692. getName: function() {
  7693. return null
  7694. },
  7695. PU: function() {
  7696. return 1
  7697. },
  7698. BX: function() {},
  7699. QU: function() {
  7700. return 1
  7701. },
  7702. CX: function() {},
  7703. UI: function() {
  7704. return null
  7705. },
  7706. $n: function() {
  7707. return null
  7708. },
  7709. Tl: function() {},
  7710. co: function() {
  7711. return !1
  7712. },
  7713. xV: function() {
  7714. return !1
  7715. },
  7716. Ol: function() {},
  7717. bW: function(a) {
  7718. return a
  7719. },
  7720. BT: function() {},
  7721. DT: function() {},
  7722. BV: function() {
  7723. b.log(b.j.bO);
  7724. return !1
  7725. },
  7726. DV: function() {
  7727. b.log(b.j.fO);
  7728. return !1
  7729. },
  7730. EV: function() {
  7731. b.log(b.j.hO);
  7732. return !1
  7733. },
  7734. YX: function(e, a, c, d) {
  7735. void 0 !== a && (e = {
  7736. CJ: e,
  7737. BJ: a,
  7738. Lr: c,
  7739. Mr: d
  7740. });
  7741. this.$t = e.Lr === b.REPEAT && e.Mr === b.REPEAT ? "repeat" : e.Lr === b.REPEAT ? "repeat-x" : e.Mr === b.REPEAT ? "repeat-y" : ""
  7742. },
  7743. iX: function() {},
  7744. hK: function() {},
  7745. generateMipmap: function() {},
  7746. BY: function() {
  7747. return ""
  7748. },
  7749. XS: function() {
  7750. return -1
  7751. },
  7752. Gq: function(c, a) {
  7753. this.addEventListener("load", c, a)
  7754. },
  7755. UW: function(a) {
  7756. this.removeEventListener("load", a)
  7757. },
  7758. yy: null,
  7759. yx: null,
  7760. Dy: !1,
  7761. B1: function(a) {
  7762. this.T && this.Dy !== a && ((this.Dy = a) ? (this.yx = this.xa, this.yy || (this.yy = b.ca.DP(this.xa)), this.xa = this.yy) : null !== this.yx && (this.xa = this.yx))
  7763. }
  7764. }), b.ca.DP = function(f) {
  7765. var g, a;
  7766. if (null === f) {
  7767. return null
  7768. }
  7769. a = a || b.ac("canvas");
  7770. g = g || b.rect(0, 0, f.width, f.height);
  7771. a.width = g.width;
  7772. a.height = g.height;
  7773. var c = a.getContext("2d");
  7774. c.drawImage(f, g.x, g.y, g.width, g.height, 0, 0, g.width, g.height);
  7775. f = c.getImageData(0, 0, g.width, g.height);
  7776. g = f.data;
  7777. for (var d = 0, e = g.length; d < e; d += 4) {
  7778. g[d] = g[d + 1] = g[d + 2] = 0.34 * g[d] + 0.5 * g[d + 1] + 0.16 * g[d + 2]
  7779. }
  7780. c.putImageData(f, 0, 0);
  7781. return a
  7782. }) : (b.assert(b.nd(b.na.mx), b.j.Og, "TexturesWebGL.js"), b.na.mx(), delete b.na.mx);
  7783. b.dg.prototype.apply(b.ca.prototype);
  7784. b.assert(b.nd(b.na.Nw), b.j.Og, "TexturesPropertyDefine.js");
  7785. b.na.Nw();
  7786. delete b.na.Nw;
  7787. b.Ra = {
  7788. jc: {},
  7789. tq: {},
  7790. cA: 0 | 1000 * Math.random(),
  7791. $p: {},
  7792. uQ: function() {
  7793. var e, a = this.$p,
  7794. c = this.jc;
  7795. for (e in a) {
  7796. var d = a[e];
  7797. d.fb();
  7798. c[e] = d
  7799. }
  7800. this.$p = {}
  7801. },
  7802. L1: function() {
  7803. b.log(b.j.FY)
  7804. },
  7805. I1: function() {
  7806. b.log(b.j.DY)
  7807. },
  7808. description: function() {
  7809. return "\x3cTextureCache | Number of textures \x3d " + this.jc.length + "\x3e"
  7810. },
  7811. Dba: function(a) {
  7812. b.log(b.j.KY);
  7813. return this.Wq(a)
  7814. },
  7815. Wq: function(a) {
  7816. return this.jc[a] || this.jc[b.S.Ek[a]]
  7817. },
  7818. HU: function(c) {
  7819. for (var a in this.jc) {
  7820. if (this.jc[a] === c) {
  7821. return a
  7822. }
  7823. }
  7824. return null
  7825. },
  7826. CP: function() {
  7827. this.cA++;
  7828. return "_textureKey_" + this.cA
  7829. },
  7830. pB: function(c) {
  7831. var a = this.HU(c);
  7832. a || (a = c instanceof HTMLImageElement ? c.src : this.CP());
  7833. this.tq[a] || (this.tq[a] = b.o.A.Um(c));
  7834. return this.tq[a]
  7835. },
  7836. K1: function() {
  7837. b.log(b.j.EY)
  7838. },
  7839. K9: function() {
  7840. var c = this.jc,
  7841. a;
  7842. for (a in c) {
  7843. c[a] && c[a].SB()
  7844. }
  7845. this.jc = {}
  7846. },
  7847. X9: function(d) {
  7848. if (d) {
  7849. var a = this.jc,
  7850. c;
  7851. for (c in a) {
  7852. a[c] === d && (a[c].SB(), delete a[c])
  7853. }
  7854. }
  7855. },
  7856. Y9: function(a) {
  7857. null != a && this.jc[a] && delete this.jc[a]
  7858. },
  7859. o2: function(d, a) {
  7860. if (a instanceof b.ca) {
  7861. this.jc[d] = a
  7862. } else {
  7863. var c = new b.ca;
  7864. c.mc(a);
  7865. c.fb();
  7866. this.jc[d] = c
  7867. }
  7868. },
  7869. R1: function(d, a) {
  7870. b.assert(d, b.j.HY);
  7871. if (a && this.jc[a]) {
  7872. return this.jc[a]
  7873. }
  7874. var c = new b.ca;
  7875. c.oJ(d);
  7876. null != a ? this.jc[a] = c : b.log(b.j.GY);
  7877. return c
  7878. },
  7879. h3: function() {
  7880. var e = 0,
  7881. f = 0,
  7882. g = this.jc,
  7883. h;
  7884. for (h in g) {
  7885. var a = g[h];
  7886. e++;
  7887. a.xa instanceof HTMLImageElement ? b.log(b.j.IY, h, a.xa.src, a.pixelsWidth, a.pixelsHeight) : b.log(b.j.MK, h, a.pixelsWidth, a.pixelsHeight);
  7888. f += a.pixelsWidth * a.pixelsHeight * 4
  7889. }
  7890. g = this.tq;
  7891. for (h in g) {
  7892. var a = g[h],
  7893. c;
  7894. for (c in a) {
  7895. var d = a[c];
  7896. e++;
  7897. b.log(b.j.MK, h, d.width, d.height);
  7898. f += d.width * d.height * 4
  7899. }
  7900. }
  7901. b.log(b.j.JY, e, f / 1024, (f / 1048576).toFixed(2))
  7902. },
  7903. tj: function() {
  7904. this.jc = {};
  7905. this.tq = {};
  7906. this.cA = 0 | 1000 * Math.random();
  7907. this.$p = {}
  7908. }
  7909. };
  7910. b.ua === b.dc ? (w = b.Ra, w.fb = function(d) {
  7911. var a = this.jc,
  7912. c = a[d];
  7913. c || (c = a[d] = new b.ca, c.url = d);
  7914. c.fb()
  7915. }, w.lc = function(f, a, c) {
  7916. b.assert(f, b.j.YN);
  7917. var d = this.jc,
  7918. e = d[f] || d[b.S.Ek[f]];
  7919. if (e) {
  7920. return a && a.call(c, e), e
  7921. }
  7922. e = d[f] = new b.ca;
  7923. e.url = f;
  7924. (b.S.mE(f) ? b.S.load : b.S.Ah).call(b.S, f, function(g) {
  7925. if (g) {
  7926. return a && a.call(c, g)
  7927. }
  7928. b.Ra.fb(f);
  7929. g = d[f];
  7930. a && a.call(c, g)
  7931. });
  7932. return e
  7933. }, w.pS = w.lc, w = null) : (b.assert(b.nd(b.na.ox), b.j.Og, "TexturesWebGL.js"), b.na.ox(), delete b.na.ox);
  7934. b.Ph = b.Ia.extend({
  7935. dirty: !1,
  7936. texture: null,
  7937. Nb: null,
  7938. Me: null,
  7939. Vd: 0,
  7940. Zd: null,
  7941. ve: null,
  7942. cl: null,
  7943. Ue: null,
  7944. ctor: function(c, a) {
  7945. this.Me = [];
  7946. b.ge(c) ? this.kv(c, a) : c instanceof b.ca && this.Pa(c, a)
  7947. },
  7948. bJ: function() {
  7949. return this.Da
  7950. },
  7951. NI: function() {
  7952. return this.Vd
  7953. },
  7954. kb: function() {
  7955. return this.texture
  7956. },
  7957. $a: function(a) {
  7958. this.texture = a
  7959. },
  7960. mK: function(a) {
  7961. this.dirty = a
  7962. },
  7963. DB: function() {
  7964. return this.dirty
  7965. },
  7966. VI: function() {
  7967. return this.Zd
  7968. },
  7969. xK: function(a) {
  7970. this.Zd = a
  7971. },
  7972. Q0: function(d, a) {
  7973. if (d) {
  7974. for (var c = 0; c < d.length; c++) {
  7975. this.nu(d[c], a + c)
  7976. }
  7977. }
  7978. },
  7979. nu: function(d, a) {
  7980. var c = this.Zd;
  7981. c[a] ? (c[a].bl = d.bl, c[a].br = d.br, c[a].tl = d.tl, c[a].tr = d.tr) : c[a] = new b.Qb(d.tl, d.bl, d.tr, d.br, this.ve, a * b.Qb.BYTES_PER_ELEMENT)
  7982. },
  7983. description: function() {
  7984. return "\x3ccc.TextureAtlas | totalQuads \x3d" + this.Da + "\x3e"
  7985. },
  7986. hH: function() {
  7987. if (0 !== this.Vd) {
  7988. for (var d = this.Nb, a = this.Vd, c = 0; c < a; c++) {
  7989. b.kD ? (d[6 * c + 0] = 4 * c + 0, d[6 * c + 1] = 4 * c + 0, d[6 * c + 2] = 4 * c + 2, d[6 * c + 3] = 4 * c + 1, d[6 * c + 4] = 4 * c + 3, d[6 * c + 5] = 4 * c + 3) : (d[6 * c + 0] = 4 * c + 0, d[6 * c + 1] = 4 * c + 1, d[6 * c + 2] = 4 * c + 2, d[6 * c + 3] = 4 * c + 3, d[6 * c + 4] = 4 * c + 2, d[6 * c + 5] = 4 * c + 1)
  7990. }
  7991. }
  7992. },
  7993. jH: function() {
  7994. var a = b.s;
  7995. this.Me[0] = a.createBuffer();
  7996. this.Me[1] = a.createBuffer();
  7997. this.cl = a.createBuffer();
  7998. this.Nt()
  7999. },
  8000. Nt: function() {
  8001. var a = b.s;
  8002. a.bindBuffer(a.ARRAY_BUFFER, this.cl);
  8003. a.bufferData(a.ARRAY_BUFFER, this.ve, a.DYNAMIC_DRAW);
  8004. a.bindBuffer(a.ELEMENT_ARRAY_BUFFER, this.Me[1]);
  8005. a.bufferData(a.ELEMENT_ARRAY_BUFFER, this.Nb, a.STATIC_DRAW)
  8006. },
  8007. kv: function(d, a) {
  8008. var c = b.Ra.lc(d);
  8009. if (c) {
  8010. return this.Pa(c, a)
  8011. }
  8012. b.log(b.j.kO, d);
  8013. return !1
  8014. },
  8015. Pa: function(f, a) {
  8016. b.assert(f, b.j.lO);
  8017. this.Vd = a |= 0;
  8018. this.Da = 0;
  8019. this.texture = f;
  8020. this.Zd = [];
  8021. this.Nb = new Uint16Array(6 * a);
  8022. var c = b.Qb.BYTES_PER_ELEMENT;
  8023. this.ve = new ArrayBuffer(c * a);
  8024. this.Ue = new Uint8Array(this.ve);
  8025. if ((!this.Zd || !this.Nb) && 0 < a) {
  8026. return !1
  8027. }
  8028. for (var d = this.Zd, e = 0; e < a; e++) {
  8029. d[e] = new b.Qb(null, null, null, null, this.ve, e * c)
  8030. }
  8031. this.hH();
  8032. this.jH();
  8033. return this.dirty = !0
  8034. },
  8035. cw: function(c, a) {
  8036. b.assert(c, b.j.vO);
  8037. b.assert(0 <= a && a < this.Vd, b.j.wO);
  8038. this.Da = Math.max(a + 1, this.Da);
  8039. this.nu(c, a);
  8040. this.dirty = !0
  8041. },
  8042. ho: function(f, a) {
  8043. b.assert(a < this.Vd, b.j.oO);
  8044. this.Da++;
  8045. if (this.Da > this.Vd) {
  8046. b.log(b.j.qD)
  8047. } else {
  8048. var c = b.Qb.BYTES_PER_ELEMENT,
  8049. d = a * c,
  8050. e = (this.Da - 1 - a) * c;
  8051. this.Zd[this.Da - 1] = new b.Qb(null, null, null, null, this.ve, (this.Da - 1) * c);
  8052. this.Ue.set(this.Ue.subarray(d, d + e), d + c);
  8053. this.nu(f, a);
  8054. this.dirty = !0
  8055. }
  8056. },
  8057. O6: function(d, e, f) {
  8058. f = f || d.length;
  8059. b.assert(e + f <= this.Vd, b.j.pO);
  8060. var g = b.Qb.BYTES_PER_ELEMENT;
  8061. this.Da += f;
  8062. if (this.Da > this.Vd) {
  8063. b.log(b.j.qD)
  8064. } else {
  8065. var h = e * g,
  8066. k = (this.Da - 1 - e - f) * g,
  8067. a = this.Da - 1 - f,
  8068. c;
  8069. for (c = 0; c < f; c++) {
  8070. this.Zd[a + c] = new b.Qb(null, null, null, null, this.ve, (this.Da - 1) * g)
  8071. }
  8072. this.Ue.set(this.Ue.subarray(h, h + k), h + g * f);
  8073. for (c = 0; c < f; c++) {
  8074. this.nu(d[c], e + c)
  8075. }
  8076. this.dirty = !0
  8077. }
  8078. },
  8079. M6: function(f, g) {
  8080. if (f !== g) {
  8081. b.assert(0 <= g || g < this.Da, b.j.mO);
  8082. b.assert(0 <= f || f < this.Da, b.j.nO);
  8083. var a = b.Qb.BYTES_PER_ELEMENT,
  8084. c = this.Ue,
  8085. d = c.subarray(f * a, a),
  8086. e;
  8087. f > g ? (e = g * a, c.set(c.subarray(e, e + (f - g) * a), e + a), c.set(d, e)) : (e = (f + 1) * a, c.set(c.subarray(e, e + (g - f) * a), e - a), c.set(d, g * a));
  8088. this.dirty = !0
  8089. }
  8090. },
  8091. Fv: function(d) {
  8092. b.assert(d < this.Da, b.j.tO);
  8093. var a = b.Qb.BYTES_PER_ELEMENT;
  8094. this.Da--;
  8095. this.Zd.length = this.Da;
  8096. if (d !== this.Da) {
  8097. var c = (d + 1) * a;
  8098. this.Ue.set(this.Ue.subarray(c, c + (this.Da - d) * a), c - a)
  8099. }
  8100. this.dirty = !0
  8101. },
  8102. S9: function(e, a) {
  8103. b.assert(e + a <= this.Da, b.j.uO);
  8104. this.Da -= a;
  8105. if (e !== this.Da) {
  8106. var c = b.Qb.BYTES_PER_ELEMENT,
  8107. d = (e + a) * c;
  8108. this.Ue.set(this.Ue.subarray(d, d + (this.Da - e) * c), e * c)
  8109. }
  8110. this.dirty = !0
  8111. },
  8112. Ev: function() {
  8113. this.Da = this.Zd.length = 0
  8114. },
  8115. jl: function(a) {
  8116. this.dirty = a
  8117. },
  8118. $J: function(d) {
  8119. if (d === this.Vd) {
  8120. return !0
  8121. }
  8122. var e = b.Qb.BYTES_PER_ELEMENT,
  8123. f = this.Vd;
  8124. this.Da = Math.min(this.Da, d);
  8125. var g = this.Vd = 0 | d,
  8126. h = this.Da;
  8127. if (null === this.Zd) {
  8128. for (this.Zd = [], this.ve = new ArrayBuffer(e * g), this.Ue = new Uint8Array(this.ve), d = 0; d < g; d++) {
  8129. this.Zd = new b.Qb(null, null, null, null, this.ve, d * e)
  8130. }
  8131. } else {
  8132. var k, a, c = this.Zd;
  8133. if (g > f) {
  8134. k = [];
  8135. a = new ArrayBuffer(e * g);
  8136. for (d = 0; d < h; d++) {
  8137. k[d] = new b.Qb(c[d].tl, c[d].bl, c[d].tr, c[d].br, a, d * e)
  8138. }
  8139. for (; d < g; d++) {
  8140. k[d] = new b.Qb(null, null, null, null, a, d * e)
  8141. }
  8142. } else {
  8143. for (h = Math.max(h, g), k = [], a = new ArrayBuffer(e * g), d = 0; d < h; d++) {
  8144. k[d] = new b.Qb(c[d].tl, c[d].bl, c[d].tr, c[d].br, a, d * e)
  8145. }
  8146. }
  8147. this.Ue = new Uint8Array(a);
  8148. this.Zd = k;
  8149. this.ve = a
  8150. }
  8151. null === this.Nb ? this.Nb = new Uint16Array(6 * g) : g > f ? (e = new Uint16Array(6 * g), e.set(this.Nb, 0), this.Nb = e) : this.Nb = this.Nb.subarray(0, 6 * g);
  8152. this.hH();
  8153. this.Nt();
  8154. return this.dirty = !0
  8155. },
  8156. zV: function(a) {
  8157. this.Da += a
  8158. },
  8159. b8: function(h, k, m) {
  8160. if (void 0 === m) {
  8161. if (m = k, k = this.Da - h, b.assert(m + (this.Da - h) <= this.Vd, b.j.qO), 0 === k) {
  8162. return
  8163. }
  8164. } else {
  8165. if (b.assert(m + k <= this.Da, b.j.rO), b.assert(h < this.Da, b.j.sO), h === m) {
  8166. return
  8167. }
  8168. }
  8169. var a = b.Qb.BYTES_PER_ELEMENT,
  8170. c = h * a,
  8171. d = k * a,
  8172. e = this.Ue,
  8173. f = e.subarray(c, c + d),
  8174. g = m * a;
  8175. m < h ? (k = m * a, e.set(e.subarray(k, k + (h - m) * a), k + d)) : (k = (h + k) * a, e.set(e.subarray(k, k + (m - h) * a), c));
  8176. e.set(f, g);
  8177. this.dirty = !0
  8178. },
  8179. i4: function(f, a) {
  8180. for (var c = a * b.Qb.BYTES_PER_ELEMENT, d = new Uint8Array(this.ve, f * b.Qb.BYTES_PER_ELEMENT, c), e = 0; e < c; e++) {
  8181. d[e] = 0
  8182. }
  8183. },
  8184. HT: function() {
  8185. this.DI(this.Da)
  8186. },
  8187. m1: function() {
  8188. var a = b.s;
  8189. this.Me && (this.Me[0] && a.deleteBuffer(this.Me[0]), this.Me[1] && a.deleteBuffer(this.Me[1]));
  8190. this.cl && a.deleteBuffer(this.cl)
  8191. }
  8192. });
  8193. w = b.Ph.prototype;
  8194. b.l(w, "totalQuads", w.bJ);
  8195. b.l(w, "capacity", w.NI);
  8196. b.l(w, "quads", w.VI, w.xK);
  8197. b.Ph.create = function(c, a) {
  8198. return new b.Ph(c, a)
  8199. };
  8200. b.Ph.KA = b.Ph.create;
  8201. b.ua === b.Lb && (b.assert(b.nd(b.na.nx), b.j.Og, "TexturesWebGL.js"), b.na.nx(), delete b.na.nx);
  8202. b.assert(b.nd(b.na.Ow), b.j.Og, "TexturesPropertyDefine.js");
  8203. b.na.Ow();
  8204. delete b.na.Ow;
  8205. b.Pg = b.f.extend({
  8206. gc: "Scene",
  8207. ctor: function() {
  8208. b.f.prototype.ctor.call(this);
  8209. this.Dj = !0;
  8210. this.Xa(0.5, 0.5);
  8211. this.he(b.I.Ea())
  8212. }
  8213. });
  8214. b.Pg.create = function() {
  8215. return new b.Pg
  8216. };
  8217. b.yw = b.Pg.extend({
  8218. bh: null,
  8219. dd: null,
  8220. un: null,
  8221. Vk: null,
  8222. ci: null,
  8223. gc: "LoaderScene",
  8224. oa: function() {
  8225. var d = this,
  8226. a = d.Ax = new b.sb(b.color(51, 51, 51, 255));
  8227. d.B(a, 0);
  8228. b.eG && b.S.Ah(b.eG, {
  8229. Yf: !1
  8230. }, function(f, e) {
  8231. logoWidth = e.width;
  8232. logoHeight = e.height;
  8233. d.Cy(e, 686)
  8234. });
  8235. b.iG && b.S.Ah(b.iG, {
  8236. Yf: !1
  8237. }, function(f, e) {
  8238. d.Cy(e, 476)
  8239. });
  8240. b.hG && b.S.Ah(b.hG, {
  8241. Yf: !1
  8242. }, function(f, e) {
  8243. d.sQ(e, 244)
  8244. });
  8245. b.fG && b.S.Ah(b.fG, {
  8246. Yf: !1
  8247. }, function(f, e) {
  8248. d.oQ(e, 244)
  8249. });
  8250. b.gG && b.S.Ah(b.gG, {
  8251. Yf: !1
  8252. }, function(f, e) {
  8253. d.Cy(e, 244)
  8254. });
  8255. var c = d.dd = new b.J("\u9996\u6b21\u52a0\u8f7d\u65f6\u95f4\u7a0d\u957f\uff0c\u8bf7\u8010\u5fc3\u7b49\u5f85...", "Microsoft YaHei", 22);
  8256. c.G(b.Hg(b.Yl.bottom, b.d(0, 298)));
  8257. c.xb(b.color(128, 128, 128));
  8258. a.B(this.dd, 10);
  8259. return !0
  8260. },
  8261. Cy: function(d, a) {
  8262. var c = new b.ca;
  8263. c.mc(d);
  8264. c.fb();
  8265. this.ci = new b.o(c);
  8266. this.ci.Xa(0, 0.5);
  8267. this.ci.x = 0.5 * (b.Yl.width - this.ci.eb().width);
  8268. this.ci.y = a;
  8269. this.Ax.B(this.ci, 8)
  8270. },
  8271. sQ: function(d, a) {
  8272. var c = new b.ca;
  8273. c.mc(d);
  8274. c.fb();
  8275. this.un = new b.o(c);
  8276. this.un.x = this.ci.Vq().x - 10;
  8277. this.un.y = a;
  8278. this.Ax.B(this.un, 11);
  8279. c = new b.km(new b.ip(2, 360));
  8280. this.un.ha(c)
  8281. },
  8282. oQ: function(d, a) {
  8283. var c = new b.ca;
  8284. c.mc(d);
  8285. c.fb();
  8286. this.Vk = new b.o(c);
  8287. this.Vk.zr(0);
  8288. this.Vk.Xa(0, 0.5);
  8289. this.Vk.x = this.ci.Vq().x - 24;
  8290. this.Vk.y = a;
  8291. this.Ax.B(this.Vk, 10)
  8292. },
  8293. X: function() {
  8294. b.f.prototype.X.call(this);
  8295. this.Ni(this.rH, 0.3)
  8296. },
  8297. Ib: function() {
  8298. b.f.prototype.Ib.call(this)
  8299. },
  8300. FV: function(c, a) {
  8301. b.ge(c) && (c = [c]);
  8302. this.aX = c || [];
  8303. this.xl = a
  8304. },
  8305. rH: function() {
  8306. var a = this;
  8307. a.Ri(a.rH);
  8308. b.S.load(a.aX, function(d, e, c) {
  8309. d = Math.min(c / e * 100 | 0, 100);
  8310. a.Vk.zr(0.01 * d + 0.03)
  8311. }, function() {
  8312. a.xl && a.xl()
  8313. })
  8314. }
  8315. });
  8316. b.yw.GW = function(d) {
  8317. var a = na,
  8318. c = b;
  8319. c.uv || (c.uv = new b.yw, c.uv.oa());
  8320. c.uv.FV(a, d);
  8321. b.I.Jg(c.uv)
  8322. };
  8323. b.wa = b.f.extend({
  8324. gc: "Layer",
  8325. ctor: function() {
  8326. var a = b.f.prototype;
  8327. a.ctor.call(this);
  8328. this.Dj = !0;
  8329. a.Xa.call(this, 0.5, 0.5);
  8330. a.he.call(this, b.N)
  8331. },
  8332. oa: function() {
  8333. this.Dj = !0;
  8334. this.Xa(0.5, 0.5);
  8335. this.he(b.N);
  8336. this.fc = this.ec = !1;
  8337. return !0
  8338. },
  8339. AA: function() {
  8340. this.i.AA()
  8341. },
  8342. Gr: function() {
  8343. this.i.Gr()
  8344. },
  8345. PV: function() {
  8346. return this.ai
  8347. },
  8348. B: function(d, a, c) {
  8349. b.f.prototype.B.call(this, d, a, c);
  8350. this.i.hE(d)
  8351. },
  8352. Fd: function() {
  8353. return b.ua === b.dc ? new b.wa.A(this) : new b.wa.F(this)
  8354. }
  8355. });
  8356. b.wa.create = function() {
  8357. return new b.wa
  8358. };
  8359. b.sb = b.wa.extend({
  8360. O: null,
  8361. gc: "LayerColor",
  8362. Vn: function() {
  8363. return this.O
  8364. },
  8365. u2: function(c, a) {
  8366. this.width = c;
  8367. this.height = a
  8368. },
  8369. t2: function(a) {
  8370. this.width = a
  8371. },
  8372. s2: function(a) {
  8373. this.height = a
  8374. },
  8375. Pi: function() {},
  8376. zh: function() {
  8377. return !1
  8378. },
  8379. ctor: function(d, a, c) {
  8380. b.wa.prototype.ctor.call(this);
  8381. this.O = new b.Wb(b.qf, b.pf);
  8382. b.sb.prototype.oa.call(this, d, a, c)
  8383. },
  8384. oa: function(e, a, c) {
  8385. b.ua !== b.dc && (this.shaderProgram = b.Ge.Hc(b.zs));
  8386. var d = b.I.Ea();
  8387. e = e || b.color(0, 0, 0, 255);
  8388. a = void 0 === a ? d.width : a;
  8389. c = void 0 === c ? d.height : c;
  8390. d = this.Ff;
  8391. d.r = e.r;
  8392. d.g = e.g;
  8393. d.b = e.b;
  8394. this.mi = e.a;
  8395. this.i.ia(b.f.L.ra | b.f.L.pa);
  8396. b.sb.prototype.he.call(this, a, c);
  8397. return !0
  8398. },
  8399. Hh: function(d, a) {
  8400. var c = this.O;
  8401. void 0 === a ? (c.src = d.src, c.ya = d.ya) : (c.src = d, c.ya = a);
  8402. this.i.Ir(c)
  8403. },
  8404. qn: function(a) {
  8405. b.f.prototype.qn.call(this, a);
  8406. this.i.NH(a)
  8407. },
  8408. on: function(a) {
  8409. b.f.prototype.on.call(this, a);
  8410. this.i.MH(a)
  8411. },
  8412. he: function(c, a) {
  8413. b.wa.prototype.he.call(this, c, a);
  8414. this.i.LH(c, a)
  8415. },
  8416. Fd: function() {
  8417. return b.ua === b.dc ? new b.sb.A(this) : new b.sb.F(this)
  8418. }
  8419. });
  8420. b.sb.create = function(d, a, c) {
  8421. return new b.sb(d, a, c)
  8422. };
  8423. var oa = b.sb.prototype;
  8424. b.l(oa, "width", oa.mg, oa.qn);
  8425. b.l(oa, "height", oa.Aj, oa.on);
  8426. b.Td = b.sb.extend({
  8427. Kp: null,
  8428. wn: 255,
  8429. Lm: 255,
  8430. oj: null,
  8431. Mx: !1,
  8432. gc: "LayerGradient",
  8433. Wd: [],
  8434. ctor: function(e, a, c, d) {
  8435. b.sb.prototype.ctor.call(this);
  8436. this.Kp = b.color(0, 0, 0, 255);
  8437. this.oj = b.d(0, -1);
  8438. this.Lm = this.wn = 255;
  8439. d && d instanceof Array ? (this.Wd = d, d.splice(0, 0, {
  8440. d: 0,
  8441. color: e || b.color.BLACK
  8442. }), d.push({
  8443. d: 1,
  8444. color: a || b.color.BLACK
  8445. })) : this.Wd = [{
  8446. d: 0,
  8447. color: e || b.color.BLACK
  8448. }, {
  8449. d: 1,
  8450. color: a || b.color.BLACK
  8451. }];
  8452. b.Td.prototype.oa.call(this, e, a, c, d)
  8453. },
  8454. oa: function(e, a, c) {
  8455. e = e || b.color(0, 0, 0, 255);
  8456. a = a || b.color(0, 0, 0, 255);
  8457. c = c || b.d(0, -1);
  8458. var d = this.Kp;
  8459. this.wn = e.a;
  8460. d.r = a.r;
  8461. d.g = a.g;
  8462. d.b = a.b;
  8463. this.Lm = a.a;
  8464. this.oj = c;
  8465. this.Mx = !0;
  8466. b.sb.prototype.oa.call(this, b.color(e.r, e.g, e.b, 255));
  8467. this.i.ia(b.f.L.ra | b.f.L.pa | b.f.L.Wf);
  8468. return !0
  8469. },
  8470. he: function(c, a) {
  8471. b.sb.prototype.he.call(this, c, a);
  8472. this.i.ia(b.f.L.Wf)
  8473. },
  8474. qn: function(a) {
  8475. b.sb.prototype.qn.call(this, a);
  8476. this.i.ia(b.f.L.Wf)
  8477. },
  8478. on: function(a) {
  8479. b.sb.prototype.on.call(this, a);
  8480. this.i.ia(b.f.L.Wf)
  8481. },
  8482. jV: function() {
  8483. return b.color(this.Ff)
  8484. },
  8485. WX: function(c) {
  8486. this.color = c;
  8487. var a = this.Wd;
  8488. a && 0 < a.length && (a = a[0].color, a.r = c.r, a.g = c.g, a.b = c.b)
  8489. },
  8490. vX: function(c) {
  8491. var a = this.Kp;
  8492. a.r = c.r;
  8493. a.g = c.g;
  8494. a.b = c.b;
  8495. (a = this.Wd) && 0 < a.length && (a = a[a.length - 1].color, a.r = c.r, a.g = c.g, a.b = c.b);
  8496. this.i.ia(b.f.L.ra)
  8497. },
  8498. CU: function() {
  8499. return b.color(this.Kp)
  8500. },
  8501. XX: function(c) {
  8502. this.wn = c;
  8503. var a = this.Wd;
  8504. a && 0 < a.length && (a[0].color.a = c);
  8505. this.i.ia(b.f.L.pa)
  8506. },
  8507. kV: function() {
  8508. return this.wn
  8509. },
  8510. wX: function(c) {
  8511. this.Lm = c;
  8512. var a = this.Wd;
  8513. a && 0 < a.length && (a[a.length - 1].color.a = c);
  8514. this.i.ia(b.f.L.pa)
  8515. },
  8516. DU: function() {
  8517. return this.Lm
  8518. },
  8519. cY: function(a) {
  8520. this.oj.x = a.x;
  8521. this.oj.y = a.y;
  8522. this.i.ia(b.f.L.Wf)
  8523. },
  8524. oV: function() {
  8525. return b.d(this.oj.x, this.oj.y)
  8526. },
  8527. W6: function() {
  8528. return this.Mx
  8529. },
  8530. H$: function(a) {
  8531. this.Mx = a;
  8532. this.i.ia(b.f.L.Wf)
  8533. },
  8534. vU: function() {
  8535. return this.Wd
  8536. },
  8537. pX: function(a) {
  8538. this.Wd = a;
  8539. this.i.ia(b.f.L.ra | b.f.L.pa | b.f.L.Wf)
  8540. },
  8541. Fd: function() {
  8542. return b.ua === b.dc ? new b.Td.A(this) : new b.Td.F(this)
  8543. }
  8544. });
  8545. b.Td.create = function(e, a, c, d) {
  8546. return new b.Td(e, a, c, d)
  8547. };
  8548. var I = b.Td.prototype;
  8549. b.l(I, "startColor", I.jV, I.WX);
  8550. b.l(I, "endColor", I.CU, I.vX);
  8551. b.l(I, "startOpacity", I.kV, I.XX);
  8552. b.l(I, "endOpacity", I.DU, I.wX);
  8553. b.l(I, "vector", I.oV, I.cY);
  8554. b.l(I, "colorStops", I.vU, I.pX);
  8555. b.ts = b.wa.extend({
  8556. Ok: 0,
  8557. eh: null,
  8558. gc: "LayerMultiplex",
  8559. ctor: function(a) {
  8560. b.wa.prototype.ctor.call(this);
  8561. a instanceof Array ? b.ts.prototype.qJ.call(this, a) : b.ts.prototype.qJ.call(this, Array.prototype.slice.call(arguments))
  8562. },
  8563. qJ: function(a) {
  8564. 0 < a.length && null == a[a.length - 1] && b.log(b.j.jM);
  8565. this.eh = a;
  8566. this.Ok = 0;
  8567. this.B(this.eh[this.Ok]);
  8568. return !0
  8569. },
  8570. yba: function(a) {
  8571. a >= this.eh.length ? b.log(b.j.kM) : (this.removeChild(this.eh[this.Ok], !0), this.Ok = a, this.B(this.eh[a]))
  8572. },
  8573. zba: function(a) {
  8574. a >= this.eh.length ? b.log(b.j.lM) : (this.removeChild(this.eh[this.Ok], !0), this.eh[this.Ok] = null, this.Ok = a, this.B(this.eh[a]))
  8575. },
  8576. J1: function(a) {
  8577. a ? this.eh.push(a) : b.log(b.j.iM)
  8578. }
  8579. });
  8580. b.ts.create = function() {
  8581. return new b.ts(Array.prototype.slice.call(arguments))
  8582. };
  8583. (function() {
  8584. b.wa.A = function(c) {
  8585. b.f.A.call(this, c);
  8586. this.ai = !1;
  8587. this.qj = null
  8588. };
  8589. var a = b.wa.A.prototype = Object.create(b.f.A.prototype);
  8590. a.constructor = b.wa.A;
  8591. a.AA = function() {
  8592. if (!this.ai) {
  8593. this.Db = !0;
  8594. this.ai = this.Th = b.Za.af = !0;
  8595. for (var e = this.p.K, c = 0, d = e.length; c < d; c++) {
  8596. e[c].i.lu(this)
  8597. }
  8598. this.qj || (this.qj = new b.eL, this.qj.Xa(0, 0))
  8599. }
  8600. };
  8601. a.Gr = function() {
  8602. if (this.ai) {
  8603. b.Za.af = !0;
  8604. this.ai = this.Db = !1;
  8605. this.Th = !0;
  8606. for (var e = this.p.K, c = 0, d = e.length; c < d; c++) {
  8607. e[c].i.lu(null)
  8608. }
  8609. }
  8610. };
  8611. a.PV = function() {
  8612. return this.ai
  8613. };
  8614. a.wb = function() {
  8615. if (this.Th) {
  8616. var f = this.p,
  8617. g = f.K,
  8618. h = this.qj;
  8619. this.transform(G(this), !0);
  8620. var c = this.ly();
  8621. c.width = 0 | c.width + 0.5;
  8622. c.height = 0 | c.height + 0.5;
  8623. var d = h.Vg,
  8624. e = d.getContext();
  8625. h.YJ(c.width, c.height);
  8626. d.yr(0 - c.x, e.canvas.height - c.height + c.y);
  8627. h.G(c.x, c.y);
  8628. f.kf();
  8629. b.Za.Au(this.Y);
  8630. f = 0;
  8631. for (c = g.length; f < c; f++) {
  8632. g[f].ga(this)
  8633. }
  8634. b.Za.nz(d, this.Y);
  8635. h.transform();
  8636. this.Th = !1
  8637. }
  8638. };
  8639. a.ga = function(e) {
  8640. if (this.ai) {
  8641. var c = this.p,
  8642. d = c.K.length;
  8643. c.jd && 0 !== d && (this.We(e), b.Za.Ig(this), this.qj.ga(this), this.C = 0)
  8644. } else {
  8645. b.f.A.prototype.ga.call(this, e)
  8646. }
  8647. };
  8648. a.hE = function(c) {
  8649. c.Ua === this.p && this.ai && c.i.lu(this)
  8650. };
  8651. a.ly = function() {
  8652. var f = null,
  8653. g = this.p;
  8654. if (!g.K || 0 === g.K.length) {
  8655. return b.rect(0, 0, 10, 10)
  8656. }
  8657. for (var h = g.$j(), g = g.K, c = 0, d = g.length; c < d; c++) {
  8658. var e = g[c];
  8659. e && e.jd && (f ? (e = e.Rp(h)) && (f = b.Dv(f, e)) : f = e.Rp(h))
  8660. }
  8661. return f
  8662. }
  8663. })();
  8664. (function() {
  8665. b.sb.A = function(c) {
  8666. b.wa.A.call(this, c);
  8667. this.Db = !0;
  8668. this.Fk = "source-over";
  8669. this.gP = new b.pL(this, this.hP)
  8670. };
  8671. var a = b.sb.A.prototype = Object.create(b.wa.A.prototype);
  8672. a.constructor = b.sb.A;
  8673. a.Gr = function() {
  8674. b.wa.A.prototype.Gr.call(this);
  8675. this.Db = !0
  8676. };
  8677. a.wb = function(c, e, f) {
  8678. c = c || b.s;
  8679. var g = c.getContext(),
  8680. h = this.p,
  8681. k = this.mb,
  8682. m = this.pc / 255,
  8683. d = h.Q.width,
  8684. h = h.Q.height;
  8685. 0 !== m && (c.vr(this.Fk), c.xr(m), c.Kg("rgba(" + (0 | k.r) + "," + (0 | k.g) + "," + (0 | k.b) + ", 1)"), c.setTransform(this.ql, e, f), g.fillRect(0, 0, d * e, -h * f), b.df++)
  8686. };
  8687. a.Ir = function(c) {
  8688. this.Fk = b.f.A.BF(c)
  8689. };
  8690. a.LH = a.NH = a.MH = function() {};
  8691. a.hP = function() {
  8692. if (this.Th) {
  8693. var e = this.p,
  8694. f = this.qj,
  8695. g = e.K,
  8696. h = g.length;
  8697. this.transform(G(this), !0);
  8698. var k = this.ly();
  8699. k.width = 0 | k.width + 0.5;
  8700. k.height = 0 | k.height + 0.5;
  8701. var c = f.Vg,
  8702. d = c.getContext();
  8703. f.YJ(k.width, k.height);
  8704. c.yr(0 - k.x, d.canvas.height - k.height + k.y);
  8705. f.G(k.x, k.y);
  8706. b.Za.Au(this.Y);
  8707. if (0 < h) {
  8708. e.kf();
  8709. for (e = 0; e < h; e++) {
  8710. if (k = g[e], 0 > k.Xb) {
  8711. k.i.ga(this)
  8712. } else {
  8713. break
  8714. }
  8715. }
  8716. for (b.Za.Ig(this); e < h; e++) {
  8717. g[e].i.ga(this)
  8718. }
  8719. } else {
  8720. b.Za.Ig(this)
  8721. }
  8722. b.Za.nz(c, this.Y);
  8723. f.transform();
  8724. this.Th = !1
  8725. }
  8726. };
  8727. a.ga = function(c) {
  8728. this.ai ? this.p.jd && (this.We(c), b.Za.Ig(this.gP), this.qj.i.ia(b.f.L.ba), this.qj.ga(this), this.C = 0) : b.f.A.prototype.ga.call(this)
  8729. };
  8730. a.ly = function() {
  8731. var g = this.p,
  8732. c = b.rect(0, 0, g.Q.width, g.Q.height),
  8733. d = g.$j(),
  8734. c = b.RB(c, g.$j());
  8735. if (!g.K || 0 === g.K.length) {
  8736. return c
  8737. }
  8738. for (var g = g.K, e = 0; e < g.length; e++) {
  8739. var f = g[e];
  8740. f && f.jd && (f = f.Rp(d), c = b.Dv(c, f))
  8741. }
  8742. return c
  8743. }
  8744. })();
  8745. b.Td.qd = {
  8746. updateStatus: function() {
  8747. var e = b.f.L,
  8748. a = this.C,
  8749. c = a & e.ra,
  8750. d = a & e.pa;
  8751. c && this.Rf();
  8752. d && F(this);
  8753. a & e.ba && this.transform(null, !0);
  8754. (c || d || a & e.Wf) && this.Va();
  8755. this.C = 0
  8756. }
  8757. };
  8758. (function() {
  8759. b.Td.A = function(c) {
  8760. b.sb.A.call(this, c);
  8761. this.Db = !0;
  8762. this.oh = b.d(0, 0);
  8763. this.pt = b.d(0, 0);
  8764. this.lF = this.tH = null
  8765. };
  8766. var a = b.Td.A.prototype = Object.create(b.sb.A.prototype);
  8767. b.nv(b.Td.qd, a);
  8768. a.constructor = b.Td.A;
  8769. a.wb = function(h, k, m) {
  8770. h = h || b.s;
  8771. var n = h.getContext(),
  8772. c = this.p,
  8773. d = this.pc / 255;
  8774. if (0 !== d) {
  8775. var e = c.Q.width,
  8776. f = c.Q.height;
  8777. h.vr(this.Fk);
  8778. h.xr(d);
  8779. d = n.createLinearGradient(this.oh.x * k, this.oh.y * m, this.pt.x * k, this.pt.y * m);
  8780. if (c.Wd) {
  8781. for (var g = 0; g < c.Wd.length; g++) {
  8782. d.addColorStop(c.Wd[g].d, this.rE[g])
  8783. }
  8784. } else {
  8785. d.addColorStop(0, this.tH), d.addColorStop(1, this.lF)
  8786. }
  8787. h.Kg(d);
  8788. h.setTransform(this.ql, k, m);
  8789. n.fillRect(0, 0, e * k, -f * m);
  8790. b.df++
  8791. }
  8792. };
  8793. a.We = function(g) {
  8794. var c = b.f.L,
  8795. d = this.C,
  8796. e = g ? g.p : null;
  8797. e && e.ec && g.C & c.ra && (d |= c.ra);
  8798. e && e.fc && g.C & c.pa && (d |= c.pa);
  8799. g && g.C & c.ba && (d |= c.ba);
  8800. var e = d & c.ra,
  8801. f = d & c.pa;
  8802. this.C = d;
  8803. e && ma(this);
  8804. f && la(this);
  8805. d & c.ba && this.transform(g);
  8806. (e || f || d & c.Wf) && this.Va()
  8807. };
  8808. a.Va = function() {
  8809. var g = this.p,
  8810. c = g.Q,
  8811. d = 0.5 * c.width,
  8812. c = 0.5 * c.height;
  8813. this.C ^= this.C & b.f.L.Wf;
  8814. var e = b.DJ(b.d(0, -1), g.oj),
  8815. e = b.KJ(b.d(0, -1), b.d(0, 0), e),
  8816. f = Math.min(Math.abs(1 / e.x), Math.abs(1 / e.y));
  8817. this.oh.x = d * -e.x * f + d;
  8818. this.oh.y = c * e.y * f - c;
  8819. this.pt.x = d * e.x * f + d;
  8820. this.pt.y = c * -e.y * f - c;
  8821. d = this.mb;
  8822. c = g.Kp;
  8823. e = g.Lm / 255;
  8824. this.tH = "rgba(" + Math.round(d.r) + "," + Math.round(d.g) + "," + Math.round(d.b) + "," + (g.wn / 255).toFixed(4) + ")";
  8825. this.lF = "rgba(" + Math.round(c.r) + "," + Math.round(c.g) + "," + Math.round(c.b) + "," + e.toFixed(4) + ")";
  8826. if (g.Wd) {
  8827. for (this.Lm = this.wn = 0, this.rE = [], d = 0; d < g.Wd.length; d++) {
  8828. c = g.Wd[d].color, this.rE.push("rgba(" + Math.round(c.r) + "," + Math.round(c.g) + "," + Math.round(c.b) + "," + (null == c.a ? 1 : c.a / 255).toFixed(4) + ")")
  8829. }
  8830. }
  8831. }
  8832. })();
  8833. (function() {
  8834. b.wa.F = function(c) {
  8835. b.f.F.call(this, c)
  8836. };
  8837. var a = b.wa.F.prototype = Object.create(b.f.F.prototype);
  8838. a.constructor = b.wa.F;
  8839. a.AA = function() {};
  8840. a.Gr = function() {};
  8841. a.hE = function() {}
  8842. })();
  8843. (function() {
  8844. b.sb.F = function(f) {
  8845. b.wa.F.call(this, f);
  8846. this.Db = !0;
  8847. this.pu = new ArrayBuffer(32);
  8848. this.ou = new ArrayBuffer(16);
  8849. f = this.pu;
  8850. var c = this.ou,
  8851. d = z.BYTES_PER_ELEMENT,
  8852. e = b.Bd.BYTES_PER_ELEMENT;
  8853. this.tn = [new z(0, 0, f, 0), new z(0, 0, f, d), new z(0, 0, f, 2 * d), new z(0, 0, f, 3 * d)];
  8854. this.oH = [b.color(0, 0, 0, 255, c, 0), b.color(0, 0, 0, 255, c, e), b.color(0, 0, 0, 255, c, 2 * e), b.color(0, 0, 0, 255, c, 3 * e)];
  8855. this.mA = b.s.createBuffer();
  8856. this.Lx = b.s.createBuffer()
  8857. };
  8858. var a = b.sb.F.prototype = Object.create(b.wa.F.prototype);
  8859. a.constructor = b.sb.F;
  8860. a.wb = function(d) {
  8861. d = d || b.s;
  8862. var c = this.p;
  8863. this.va.Ub();
  8864. this.va.wg(this.Rc);
  8865. b.tc(b.ad | b.op);
  8866. b.Vf(c.O.src, c.O.ya);
  8867. d.bindBuffer(d.ARRAY_BUFFER, this.mA);
  8868. d.vertexAttribPointer(b.ab, 2, d.FLOAT, !1, 0, 0);
  8869. d.bindBuffer(d.ARRAY_BUFFER, this.Lx);
  8870. d.vertexAttribPointer(b.ne, 4, d.UNSIGNED_BYTE, !0, 0, 0);
  8871. d.drawArrays(d.TRIANGLE_STRIP, 0, this.tn.length)
  8872. };
  8873. a.LH = function(e, c) {
  8874. var d = this.tn;
  8875. void 0 === c ? (d[1].x = e.width, d[2].y = e.height, d[3].x = e.width, d[3].y = e.height) : (d[1].x = e, d[2].y = c, d[3].x = e, d[3].y = c);
  8876. this.Zs()
  8877. };
  8878. a.NH = function(d) {
  8879. var c = this.tn;
  8880. c[1].x = d;
  8881. c[3].x = d;
  8882. this.Zs()
  8883. };
  8884. a.MH = function(d) {
  8885. var c = this.tn;
  8886. c[2].y = d;
  8887. c[3].y = d;
  8888. this.Zs()
  8889. };
  8890. a.Va = function() {
  8891. for (var f = this.mb, c = this.pc, d = this.oH, e = 0; 4 > e; e++) {
  8892. d[e].r = f.r, d[e].g = f.g, d[e].b = f.b, d[e].a = c
  8893. }
  8894. this.jE()
  8895. };
  8896. a.Zs = function() {
  8897. var c = b.s;
  8898. c.bindBuffer(c.ARRAY_BUFFER, this.mA);
  8899. c.bufferData(c.ARRAY_BUFFER, this.pu, c.STATIC_DRAW)
  8900. };
  8901. a.jE = function() {
  8902. var c = b.s;
  8903. c.bindBuffer(c.ARRAY_BUFFER, this.Lx);
  8904. c.bufferData(c.ARRAY_BUFFER, this.ou, c.STATIC_DRAW)
  8905. };
  8906. a.Ir = function() {}
  8907. })();
  8908. (function() {
  8909. b.Td.F = function(c) {
  8910. b.sb.F.call(this, c);
  8911. this.Db = !0;
  8912. this.pE = new b.Nh;
  8913. this.qE = !1
  8914. };
  8915. var a = b.Td.F.prototype = Object.create(b.sb.F.prototype);
  8916. b.nv(b.Td.qd, a);
  8917. a.constructor = b.Td.F;
  8918. a.We = function(g) {
  8919. var c = b.f.L,
  8920. d = this.C,
  8921. e = g ? g.p : null;
  8922. e && e.ec && g.C & c.ra && (d |= c.ra);
  8923. e && e.fc && g.C & c.pa && (d |= c.pa);
  8924. g && g.C & c.ba && (d |= c.ba);
  8925. var e = d & c.ra,
  8926. f = d & c.pa;
  8927. this.C = d;
  8928. e && ma(this);
  8929. f && la(this);
  8930. this.transform(g);
  8931. (e || f || d & c.Wf) && this.Va()
  8932. };
  8933. a.Va = function() {
  8934. this.C ^= this.C & b.f.L.Wf;
  8935. var c = this.p,
  8936. d = c.Wd;
  8937. if (d && !(2 > d.length)) {
  8938. this.qE = !0;
  8939. var f = d.length,
  8940. k = 2 * f,
  8941. m, p = c.Q;
  8942. this.pu = new ArrayBuffer(8 * k);
  8943. this.ou = new ArrayBuffer(4 * k);
  8944. var r = this.tn,
  8945. t = this.oH;
  8946. r.length = 0;
  8947. t.length = 0;
  8948. var e = this.pu,
  8949. g = this.ou,
  8950. h = z.BYTES_PER_ELEMENT,
  8951. n = b.Bd.BYTES_PER_ELEMENT;
  8952. for (m = 0; m < k; m++) {
  8953. r.push(new z(0, 0, e, h * m)), t.push(b.color(0, 0, 0, 255, g, n * m))
  8954. }
  8955. m = Math.PI + b.DJ(b.d(0, -1), c.oj);
  8956. c = b.d(p.width / 2, p.height / 2);
  8957. e = Math.round(b.QB(m));
  8958. k = b.wS(c.x, c.y);
  8959. k = b.xS(k, m);
  8960. 90 > e ? (e = b.d(-c.x, c.y), g = b.d(c.x, c.y)) : 180 > e ? (e = b.d(c.x, c.y), g = b.d(c.x, -c.y)) : 270 > e ? (e = b.d(c.x, -c.y), g = b.d(-c.x, -c.y)) : (e = b.d(-c.x, -c.y), g = b.d(-c.x, c.y));
  8961. h = Math.sin(m);
  8962. m = Math.cos(m);
  8963. k = b.yS(k, Math.abs((e.x * m - e.y * h) / c.x), Math.abs((g.x * h + g.y * m) / c.y));
  8964. for (m = 0; m < f; m++) {
  8965. e = d[m].d * p.height, g = b.hf(-c.x, e - c.y, k), r[2 * m].x = g.x, r[2 * m].y = g.y, e = b.hf(p.width - c.x, e - c.y, k), r[2 * m + 1].x = e.x, r[2 * m + 1].y = e.y
  8966. }
  8967. p = this.pc / 255;
  8968. for (m = 0; m < f; m++) {
  8969. r = d[m].color, c = t[2 * m], k = t[2 * m + 1], c.r = r.r, c.g = r.g, c.b = r.b, c.a = r.a * p, k.r = r.r, k.g = r.g, k.b = r.b, k.a = r.a * p
  8970. }
  8971. this.Zs();
  8972. this.jE()
  8973. }
  8974. };
  8975. a.wb = function(e) {
  8976. e = e || b.s;
  8977. var c = this.p,
  8978. d = this.LP();
  8979. e.enable(e.SCISSOR_TEST);
  8980. b.view.SX(d.x, d.y, d.width, d.height);
  8981. this.va.Ub();
  8982. this.va.wg(this.Rc);
  8983. b.tc(b.ad | b.op);
  8984. b.Vf(c.O.src, c.O.ya);
  8985. e.bindBuffer(e.ARRAY_BUFFER, this.mA);
  8986. e.vertexAttribPointer(b.ab, 2, e.FLOAT, !1, 0, 0);
  8987. e.bindBuffer(e.ARRAY_BUFFER, this.Lx);
  8988. e.vertexAttribPointer(b.ne, 4, e.UNSIGNED_BYTE, !0, 0, 0);
  8989. e.drawArrays(e.TRIANGLE_STRIP, 0, this.tn.length);
  8990. e.disable(e.SCISSOR_TEST)
  8991. };
  8992. a.LP = function() {
  8993. if (this.qE) {
  8994. var d = this.p,
  8995. c = b.rect(0, 0, d.Q.width, d.Q.height),
  8996. d = d.$j();
  8997. this.pE = b.JG(c, d)
  8998. }
  8999. return this.pE
  9000. }
  9001. })();
  9002. b.na.Mw = function() {
  9003. var a = b.o.prototype;
  9004. b.l(a, "opacityModifyRGB", a.zh, a.Pi);
  9005. b.l(a, "opacity", a.sh, a.yd);
  9006. b.l(a, "color", a.Uf, a.xb);
  9007. b.l(a, "flippedX", a.SV, a.xX);
  9008. b.l(a, "flippedY", a.TV, a.yX);
  9009. b.l(a, "offsetX", a.VP);
  9010. b.l(a, "offsetY", a.WP);
  9011. b.l(a, "texture", a.kb, a.$a);
  9012. b.l(a, "textureRectRotated", a.YV);
  9013. b.l(a, "batchNode", a.qU, a.Mv);
  9014. b.l(a, "quad", a.$u)
  9015. };
  9016. b.o = b.f.extend({
  9017. dirty: !1,
  9018. atlasIndex: 0,
  9019. textureAtlas: null,
  9020. lb: null,
  9021. dl: null,
  9022. Zm: null,
  9023. ll: !1,
  9024. Fn: null,
  9025. O: null,
  9026. P: null,
  9027. Aa: null,
  9028. we: !1,
  9029. ed: null,
  9030. ol: null,
  9031. hc: !1,
  9032. Ac: !1,
  9033. Bc: !1,
  9034. T: !1,
  9035. gc: "Sprite",
  9036. ctor: function(d, a, c) {
  9037. b.f.prototype.ctor.call(this);
  9038. this.ll = !1;
  9039. this.ed = b.d(0, 0);
  9040. this.ol = b.d(0, 0);
  9041. this.O = {
  9042. src: b.qf,
  9043. ya: b.pf
  9044. };
  9045. this.Aa = b.rect(0, 0, 0, 0);
  9046. this.HR(d, a, c)
  9047. },
  9048. Cr: function() {
  9049. return this.T
  9050. },
  9051. Gq: function(c, a) {
  9052. this.addEventListener("load", c, a)
  9053. },
  9054. DB: function() {
  9055. return this.dirty
  9056. },
  9057. mK: function(a) {
  9058. this.dirty = a
  9059. },
  9060. YV: function() {
  9061. return this.we
  9062. },
  9063. y4: function() {
  9064. return this.atlasIndex
  9065. },
  9066. z$: function(a) {
  9067. this.atlasIndex = a
  9068. },
  9069. aJ: function() {
  9070. return b.rect(this.Aa)
  9071. },
  9072. ak: function() {
  9073. return this.textureAtlas
  9074. },
  9075. Ar: function(a) {
  9076. this.textureAtlas = a
  9077. },
  9078. UU: function() {
  9079. return b.d(this.ed)
  9080. },
  9081. VP: function() {
  9082. return this.ed.x
  9083. },
  9084. WP: function() {
  9085. return this.ed.y
  9086. },
  9087. Vn: function() {
  9088. return this.O
  9089. },
  9090. wh: function(c) {
  9091. b.assert(c, b.j.HN);
  9092. c.T || (this.T = !1, c.addEventListener("load", this.i.nH, this));
  9093. var a = b.ua === b.dc ? !1 : c.ze,
  9094. a = this.Pa(c.kb(), c.Ei(), a);
  9095. this.Ul(c);
  9096. return a
  9097. },
  9098. J6: function(c) {
  9099. b.assert(c, b.j.IN);
  9100. var a = b.W.V(c);
  9101. b.assert(a, c + b.j.JN);
  9102. return this.wh(a)
  9103. },
  9104. Vba: function(a) {
  9105. this.textureAtlas = a.ak();
  9106. this.lb = a
  9107. },
  9108. dY: function(c) {
  9109. var a = this.Aa;
  9110. a.x = c.x;
  9111. a.y = c.y;
  9112. a.width = c.width;
  9113. a.height = c.height
  9114. },
  9115. kf: function() {
  9116. if (this.ye) {
  9117. var f = this.K,
  9118. a = f.length,
  9119. c, d, e;
  9120. for (c = 1; c < a; c++) {
  9121. e = f[c];
  9122. for (d = c - 1; 0 <= d;) {
  9123. if (e.Xb < f[d].Xb) {
  9124. f[d + 1] = f[d]
  9125. } else {
  9126. if (e.Xb === f[d].Xb && e.arrivalOrder < f[d].arrivalOrder) {
  9127. f[d + 1] = f[d]
  9128. } else {
  9129. break
  9130. }
  9131. }
  9132. d--
  9133. }
  9134. f[d + 1] = e
  9135. }
  9136. this.lb && this.ig(f, b.f.Jf.kf);
  9137. this.ye = !1
  9138. }
  9139. },
  9140. ur: function(c, a) {
  9141. b.assert(c, b.j.LN); - 1 === this.K.indexOf(c) ? b.log(b.j.KN) : a !== c.zIndex && (this.lb && !this.ye && (this.Hz(), this.lb.VJ(!0)), b.f.prototype.ur.call(this, c, a))
  9142. },
  9143. removeChild: function(c, a) {
  9144. this.lb && this.lb.Gv(c);
  9145. b.f.prototype.removeChild.call(this, c, a)
  9146. },
  9147. Yv: function(a) {
  9148. b.f.prototype.Yv.call(this, a);
  9149. this.i.bC(!0)
  9150. },
  9151. qo: function(f) {
  9152. var a = this.K,
  9153. c = this.lb;
  9154. if (c && null != a) {
  9155. for (var d = 0, e = a.length; d < e; d++) {
  9156. c.Gv(a[d])
  9157. }
  9158. }
  9159. b.f.prototype.qo.call(this, f);
  9160. this.Zm = !1
  9161. },
  9162. iv: function(a) {
  9163. this.lb ? b.log(b.j.FN) : b.f.prototype.iv.call(this, a)
  9164. },
  9165. xX: function(a) {
  9166. this.Ac !== a && (this.Ac = a, this.wc(this.Aa, this.we, this.Q), this.Oi(!0))
  9167. },
  9168. yX: function(a) {
  9169. this.Bc !== a && (this.Bc = a, this.wc(this.Aa, this.we, this.Q), this.Oi(!0))
  9170. },
  9171. SV: function() {
  9172. return this.Ac
  9173. },
  9174. TV: function() {
  9175. return this.Bc
  9176. },
  9177. Pi: function(a) {
  9178. this.hc !== a && (this.hc = a, this.i.$G())
  9179. },
  9180. zh: function() {
  9181. return this.hc
  9182. },
  9183. R$: function(d, a) {
  9184. b.assert(d, b.j.PN);
  9185. var c = b.Ku.MI(d);
  9186. c ? (c = c.sd[a]) ? this.Ul(c.V()) : b.log(b.j.ON) : b.log(b.j.NN)
  9187. },
  9188. qU: function() {
  9189. return this.lb
  9190. },
  9191. Hz: function() {
  9192. if (!this.ye) {
  9193. this.ye = !0;
  9194. for (var a = this.Ua; a && a !== this.lb;) {
  9195. a.Hz(), a = a.parent
  9196. }
  9197. }
  9198. },
  9199. kb: function() {
  9200. return this.P
  9201. },
  9202. HR: function(d, a, c) {
  9203. if (void 0 === d) {
  9204. b.o.prototype.oa.call(this)
  9205. } else {
  9206. if (b.ge(d)) {
  9207. "#" === d[0] ? (d = b.W.V(d.substr(1, d.length - 1)), this.wh(d)) : b.o.prototype.oa.call(this, d, a)
  9208. } else {
  9209. if (b.ar(d)) {
  9210. if (d instanceof b.ca) {
  9211. this.Pa(d, a, c)
  9212. } else {
  9213. if (d instanceof b.Dd) {
  9214. this.wh(d)
  9215. } else {
  9216. if (d instanceof HTMLImageElement || d instanceof HTMLCanvasElement) {
  9217. a = new b.ca, a.mc(d), a.fb(), this.Pa(a)
  9218. }
  9219. }
  9220. }
  9221. }
  9222. }
  9223. }
  9224. },
  9225. $u: function() {
  9226. return this.i.$u()
  9227. },
  9228. Hh: function(d, a) {
  9229. var c = this.O;
  9230. void 0 === a ? (c.src = d.src, c.ya = d.ya) : (c.src = d, c.ya = a);
  9231. this.i.Ir(c)
  9232. },
  9233. oa: function() {
  9234. if (0 < arguments.length) {
  9235. return this.kv(arguments[0], arguments[1])
  9236. }
  9237. b.f.prototype.oa.call(this);
  9238. this.dirty = this.dl = !1;
  9239. this.O.src = b.qf;
  9240. this.O.ya = b.pf;
  9241. this.texture = null;
  9242. this.Ac = this.Bc = !1;
  9243. this.anchorY = this.anchorX = 0.5;
  9244. this.ed.x = 0;
  9245. this.ed.y = 0;
  9246. this.Zm = !1;
  9247. this.i.$h();
  9248. this.wc(b.rect(0, 0, 0, 0), !1, b.size(0, 0));
  9249. return !0
  9250. },
  9251. kv: function(e, a) {
  9252. b.assert(e, b.j.GN);
  9253. var c = b.Ra.Wq(e);
  9254. if (c) {
  9255. if (!a) {
  9256. var d = c.eb();
  9257. a = b.rect(0, 0, d.width, d.height)
  9258. }
  9259. return this.Pa(c, a)
  9260. }
  9261. c = b.Ra.lc(e);
  9262. return this.Pa(c, a || b.rect(0, 0, c.Q.width, c.Q.height))
  9263. },
  9264. Pa: function(f, a, c, d) {
  9265. b.assert(0 !== arguments.length, b.j.hL);
  9266. c = c || !1;
  9267. f = this.i.KF(f, a, c, d);
  9268. if (!b.f.prototype.oa.call(this)) {
  9269. return !1
  9270. }
  9271. this.lb = null;
  9272. this.dirty = this.dl = !1;
  9273. this.hc = !0;
  9274. this.O.src = b.qf;
  9275. this.O.ya = b.pf;
  9276. this.Ac = this.Bc = !1;
  9277. this.Xa(0.5, 0.5);
  9278. this.ed.x = 0;
  9279. this.ed.y = 0;
  9280. this.Zm = !1;
  9281. this.i.$h();
  9282. var e = f.T;
  9283. this.T = e;
  9284. if (!e) {
  9285. return this.we = c, a && (this.Aa.x = a.x, this.Aa.y = a.y, this.Aa.width = a.width, this.Aa.height = a.height), this.texture && this.texture.removeEventListener("load", this), f.addEventListener("load", this.i.wH, this), this.texture = f, !0
  9286. }
  9287. a || (a = b.rect(0, 0, f.width, f.height));
  9288. this.i.nE(f, a, c);
  9289. this.texture = f;
  9290. this.wc(a, c);
  9291. this.Mv(null);
  9292. return !0
  9293. },
  9294. wc: function(e, a, c, d) {
  9295. this.we = a || !1;
  9296. this.he(c || e);
  9297. this.dY(e);
  9298. this.i.eH(e, d);
  9299. e = this.ol.x;
  9300. a = this.ol.y;
  9301. this.Ac && (e = -e);
  9302. this.Bc && (a = -a);
  9303. c = this.Aa;
  9304. this.ed.x = e + (this.Q.width - c.width) / 2;
  9305. this.ed.y = a + (this.Q.height - c.height) / 2;
  9306. this.lb ? this.dirty = !0 : this.i.oz()
  9307. },
  9308. mf: function() {
  9309. this.i.mf()
  9310. },
  9311. B: function(d, a, c) {
  9312. b.assert(d, b.j.fL);
  9313. null == a && (a = d.Xb);
  9314. null == c && (c = d.tag);
  9315. this.i.ZG(d) && (b.f.prototype.B.call(this, d, a, c), this.Zm = !0)
  9316. },
  9317. Ul: function(d) {
  9318. var a = this;
  9319. b.ge(d) && (d = b.W.V(d), b.assert(d, b.j.QN));
  9320. this.Oi(!0);
  9321. var c = d.TI();
  9322. a.ol.x = c.x;
  9323. a.ol.y = c.y;
  9324. c = d.kb();
  9325. d.T ? (c !== a.P && (a.texture = c), a.wc(d.Ei(), d.ze, d.Yu())) : (a.T = !1, d.addEventListener("load", function(f) {
  9326. a.T = !0;
  9327. var e = f.kb();
  9328. e !== a.P && (a.texture = e);
  9329. a.wc(f.Ei(), f.ze, f.Yu());
  9330. a.dispatchEvent("load");
  9331. a.xb(a.color)
  9332. }, a));
  9333. this.i.IH(c)
  9334. },
  9335. Q$: function(a) {
  9336. b.log(b.j.MN);
  9337. this.Ul(a)
  9338. },
  9339. FB: function(a) {
  9340. return this.i.FB(a)
  9341. },
  9342. wT: function() {
  9343. return this.V()
  9344. },
  9345. V: function() {
  9346. return new b.Dd(this.P, b.rr(this.Aa), this.we, b.FW(this.ol), b.kY(this.Q))
  9347. },
  9348. Mv: function(a) {
  9349. (this.lb = a) ? (this.Fn = {
  9350. a: 1,
  9351. b: 0,
  9352. c: 0,
  9353. R: 1,
  9354. la: 0,
  9355. ma: 0
  9356. }, this.textureAtlas = this.lb.ak()) : (this.atlasIndex = b.o.OC, this.textureAtlas = null, this.dirty = this.dl = !1, this.i.oz())
  9357. },
  9358. $a: function(a) {
  9359. if (!a) {
  9360. return this.i.mq(null)
  9361. }
  9362. b.ge(a) ? (a = b.Ra.lc(a), a.T ? (this.i.mq(a), this.Jx(a.eb()), this.xb(this.Ff), this.T = !0) : a.addEventListener("load", function() {
  9363. this.i.mq(a);
  9364. this.Jx(a.eb());
  9365. this.xb(this.Ff);
  9366. this.T = !0
  9367. }, this)) : (b.assert(a instanceof b.ca, b.j.SN), this.Jx(a.eb()), this.i.mq(a))
  9368. },
  9369. Jx: function(c) {
  9370. if (c && (c.width || c.height)) {
  9371. var a = this.aJ();
  9372. a.height || a.width || (c.x = c.x || 0, c.y = c.y || 0, c.width = c.width || 0, c.height = c.height || 0, this.wc(c))
  9373. }
  9374. },
  9375. Fd: function() {
  9376. return b.ua === b.dc ? new b.o.A(this) : new b.o.F(this)
  9377. }
  9378. });
  9379. b.o.create = function(d, a, c) {
  9380. return new b.o(d, a, c)
  9381. };
  9382. b.o.KA = b.o.create;
  9383. b.o.J2 = b.o.create;
  9384. b.o.JA = b.o.create;
  9385. b.o.OC = -1;
  9386. b.dg.prototype.apply(b.o.prototype);
  9387. b.assert(b.nd(b.na.Mw), b.j.Og, "SpritesPropertyDefine.js");
  9388. b.na.Mw();
  9389. delete b.na.Mw;
  9390. (function() {
  9391. b.o.A = function(c) {
  9392. b.f.A.call(this, c);
  9393. this.Db = !0;
  9394. this.ti = {
  9395. Hv: 0,
  9396. Iv: 0,
  9397. x: 0,
  9398. y: 0,
  9399. width: 0,
  9400. height: 0,
  9401. Kr: !1
  9402. };
  9403. this.Fk = "source-over";
  9404. this.jg = !1;
  9405. this.Fb = null
  9406. };
  9407. var a = b.o.A.prototype = Object.create(b.f.A.prototype);
  9408. a.constructor = b.o.A;
  9409. a.$h = function() {};
  9410. a.bC = function() {};
  9411. a.oz = function() {};
  9412. a.mq = function(d) {
  9413. var c = this.p;
  9414. c.P !== d && (d ? (d.xa instanceof HTMLImageElement && (this.Fb = d), c.T = d.T) : c.T = !1, c.P = d)
  9415. };
  9416. a.$G = function() {
  9417. this.ia(b.f.L.ra | b.f.L.pa)
  9418. };
  9419. a.FB = function(d) {
  9420. var c = this.p;
  9421. return d.kb() !== c.P ? !1 : b.RJ(d.Ei(), c.Aa)
  9422. };
  9423. a.Ir = function(c) {
  9424. this.Fk = b.f.A.BF(c)
  9425. };
  9426. a.ZG = function() {
  9427. return !0
  9428. };
  9429. a.KF = function(f, c, d, e) {
  9430. d && f.T && (f = f.xa, f = b.o.A.Sx(f, c, e), e = new b.ca, e.mc(f), e.fb(), f = e, c.x = c.y = 0, this.p.Aa = b.rect(0, 0, c.width, c.height));
  9431. return f
  9432. };
  9433. a.nE = function(e, c) {
  9434. if (e && e.url) {
  9435. var d = c.y + c.height;
  9436. c.x + c.width > e.width && b.error(b.j.Rw, e.url);
  9437. d > e.height && b.error(b.j.Qw, e.url)
  9438. }
  9439. this.p.Fb = e
  9440. };
  9441. a.wb = function(c, e, h) {
  9442. var k = this.p,
  9443. m = this.ti,
  9444. n = this.pc / 255;
  9445. if ((!k.P || 0 !== m.width && 0 !== m.height && k.P.T) && 0 !== n) {
  9446. c = c || b.s;
  9447. var p = c.getContext(),
  9448. r = k.ed.x,
  9449. d = k.Aa.height,
  9450. f = k.Aa.width,
  9451. g = -k.ed.y - d;
  9452. c.setTransform(this.ql, e, h);
  9453. c.vr(this.Fk);
  9454. c.xr(n);
  9455. (k.Ac || k.Bc) && c.save();
  9456. k.Ac && (r = -r - f, p.scale(-1, 1));
  9457. k.Bc && (g = k.ed.y, p.scale(1, -1));
  9458. k.P ? (n = k.P.xa, "" !== k.P.$t ? (c.Kg(p.createPattern(n, k.P.$t)), p.fillRect(r * e, g * h, f * e, d * h)) : this.jg ? p.drawImage(n, 0, 0, m.width, m.height, r * e, g * h, f * e, d * h) : p.drawImage(n, m.Hv, m.Iv, m.width, m.height, r * e, g * h, f * e, d * h)) : (n = k.Q, m.Kr && (m = this.mb, c.Kg("rgba(" + m.r + "," + m.g + "," + m.b + ",1)"), p.fillRect(r * e, g * h, n.width * e, n.height * h)));
  9459. (k.Ac || k.Bc) && c.restore();
  9460. b.df++
  9461. }
  9462. };
  9463. a.Va = b.Z.Xz ? function() {
  9464. var g = this.p,
  9465. c = this.mb;
  9466. if (255 === c.r && 255 === c.g && 255 === c.b) {
  9467. this.jg && (this.jg = !1, g.texture = this.Fb)
  9468. } else {
  9469. var d, e = g.P,
  9470. f = this.ti;
  9471. e && f.Kr && this.Fb && (d = e.xa) && (this.jg = !0, d instanceof HTMLCanvasElement && !this.we && !this.lG && this.Fb.xa !== d ? b.o.A.Wm(this.Fb.xa, c, f, d) : (d = b.o.A.Wm(this.Fb.xa, c, f), e = new b.ca, e.mc(d), e.fb(), g.texture = e))
  9472. }
  9473. } : function() {
  9474. var g = this.p,
  9475. c = this.mb;
  9476. if (255 === c.r && 255 === c.g && 255 === c.b) {
  9477. this.jg && (this.jg = !1, g.texture = this.Fb)
  9478. } else {
  9479. var d, e = g.P,
  9480. f = this.ti;
  9481. e && f.Kr && this.Fb && (d = e.xa) && (e = b.Ra.pB(this.Fb.xa)) && (this.jg = !0, d instanceof HTMLCanvasElement && !this.we && !this.lG ? b.o.A.Vm(d, e, c, f, d) : (d = b.o.A.Vm(d, e, c, f), e = new b.ca, e.mc(d), e.fb(), g.texture = e))
  9482. }
  9483. };
  9484. a.$u = function() {
  9485. return null
  9486. };
  9487. a.IH = function(e, c) {
  9488. var d = this.p;
  9489. d.we && (d.Fb = e);
  9490. this.jg = !1;
  9491. this.ti.Hv = this.ti.x;
  9492. this.ti.Iv = this.ti.y;
  9493. c && (d = d.Uf(), 255 === d.r && 255 === d.g && 255 === d.b || this.Va())
  9494. };
  9495. a.mf = function() {
  9496. var d = this.p;
  9497. if (d.dirty) {
  9498. var c = d.Ua;
  9499. !d.jd || c && c !== d.lb && c.ll ? d.ll = !0 : (d.ll = !1, d.Fn = c && c !== d.lb ? b.vl(this.Pd(), c.Fn) : this.Pd());
  9500. d.dl = !1;
  9501. d.dirty = !1
  9502. }
  9503. d.Zm && d.ig(d.K, b.f.Jf.mf)
  9504. };
  9505. a.Rf = function(c) {
  9506. b.f.A.prototype.Rf.call(this, c)
  9507. };
  9508. a.nH = function(c) {
  9509. this.wc(c.Ei(), c.ze, c.Yu());
  9510. this.i.Va();
  9511. this.dispatchEvent("load")
  9512. };
  9513. a.wH = function(e) {
  9514. if (!this.T) {
  9515. this.T = !0;
  9516. var c = this.Aa,
  9517. d = this.i;
  9518. c ? b.lz(c) && (c.width = e.width, c.height = e.height) : c = b.rect(0, 0, e.width, e.height);
  9519. this.texture = d.Fb = e;
  9520. this.wc(c, this.we);
  9521. e = d.mb;
  9522. 255 === e.r && 255 === e.g && 255 === e.b || d.Va();
  9523. this.Mv(this.lb);
  9524. this.dispatchEvent("load")
  9525. }
  9526. };
  9527. a.eH = function(f, c) {
  9528. void 0 === c && (c = !0);
  9529. var d = this.ti,
  9530. e = c ? b.jb() : 1;
  9531. d.Hv = d.x = 0 | f.x * e;
  9532. d.Iv = d.y = 0 | f.y * e;
  9533. d.width = 0 | f.width * e;
  9534. d.height = 0 | f.height * e;
  9535. d.Kr = !(0 === d.width || 0 === d.height || 0 > d.x || 0 > d.y);
  9536. this.jg && (this.p.P = this.Fb, this.jg = !1, this.Va())
  9537. };
  9538. b.o.A.Wm = function(g, c, d, e) {
  9539. e = e || b.ac("canvas");
  9540. d = d || b.rect(0, 0, g.width, g.height);
  9541. var f = e.getContext("2d");
  9542. e.width !== d.width || e.height !== d.height ? (e.width = d.width, e.height = d.height) : f.globalCompositeOperation = "source-over";
  9543. f.fillStyle = "rgb(" + (0 | c.r) + "," + (0 | c.g) + "," + (0 | c.b) + ")";
  9544. f.fillRect(0, 0, d.width, d.height);
  9545. f.globalCompositeOperation = "multiply";
  9546. f.drawImage(g, d.x, d.y, d.width, d.height, 0, 0, d.width, d.height);
  9547. f.globalCompositeOperation = "destination-atop";
  9548. f.drawImage(g, d.x, d.y, d.width, d.height, 0, 0, d.width, d.height);
  9549. return e
  9550. };
  9551. b.o.A.Vm = function(g, h, k, m, n) {
  9552. m || (m = b.rect(0, 0, g.width, g.height));
  9553. g = k.r / 255;
  9554. var p = k.g / 255;
  9555. k = k.b / 255;
  9556. var c = Math.min(m.width, h[0].width),
  9557. d = Math.min(m.height, h[0].height),
  9558. e;
  9559. n ? (e = n.getContext("2d"), e.clearRect(0, 0, c, d)) : (n = b.ac("canvas"), n.width = c, n.height = d, e = n.getContext("2d"));
  9560. e.save();
  9561. e.globalCompositeOperation = "lighter";
  9562. var f = e.globalAlpha;
  9563. 0 < g && (e.globalAlpha = g * f, e.drawImage(h[0], m.x, m.y, c, d, 0, 0, c, d));
  9564. 0 < p && (e.globalAlpha = p * f, e.drawImage(h[1], m.x, m.y, c, d, 0, 0, c, d));
  9565. 0 < k && (e.globalAlpha = k * f, e.drawImage(h[2], m.x, m.y, c, d, 0, 0, c, d));
  9566. 1 > g + p + k && (e.globalAlpha = f, e.drawImage(h[3], m.x, m.y, c, d, 0, 0, c, d));
  9567. e.restore();
  9568. return n
  9569. };
  9570. b.o.A.Um = function(f) {
  9571. function c() {
  9572. var k = b.o.A.Um,
  9573. n = f.width,
  9574. p = f.height;
  9575. d[0].width = n;
  9576. d[0].height = p;
  9577. d[1].width = n;
  9578. d[1].height = p;
  9579. d[2].width = n;
  9580. d[2].height = p;
  9581. d[3].width = n;
  9582. d[3].height = p;
  9583. k.canvas.width = n;
  9584. k.canvas.height = p;
  9585. var r = k.canvas.getContext("2d");
  9586. r.drawImage(f, 0, 0);
  9587. k.oC.width = n;
  9588. k.oC.height = p;
  9589. for (var r = r.getImageData(0, 0, n, p).data, h = 0; 4 > h; h++) {
  9590. var j = d[h].getContext("2d");
  9591. j.getImageData(0, 0, n, p).data;
  9592. k.LK.drawImage(f, 0, 0);
  9593. for (var m = k.LK.getImageData(0, 0, n, p), i = m.data, g = 0; g < r.length; g += 4) {
  9594. i[g] = 0 === h ? r[g] : 0, i[g + 1] = 1 === h ? r[g + 1] : 0, i[g + 2] = 2 === h ? r[g + 2] : 0, i[g + 3] = r[g + 3]
  9595. }
  9596. j.putImageData(m, 0, 0)
  9597. }
  9598. f.onload = null
  9599. }
  9600. if (f.pI) {
  9601. return f.pI
  9602. }
  9603. var d = [b.ac("canvas"), b.ac("canvas"), b.ac("canvas"), b.ac("canvas")];
  9604. try {
  9605. c()
  9606. } catch (e) {
  9607. f.onload = c
  9608. }
  9609. return f.pI = d
  9610. };
  9611. b.o.A.Um.canvas = b.ac("canvas");
  9612. b.o.A.Um.oC = b.ac("canvas");
  9613. b.o.A.Um.LK = b.o.A.Um.oC.getContext("2d");
  9614. b.o.A.Sx = function(g, c, d) {
  9615. if (!g) {
  9616. return null
  9617. }
  9618. if (!c) {
  9619. return g
  9620. }
  9621. d = null == d ? !0 : d;
  9622. var e = b.ac("canvas");
  9623. e.width = c.width;
  9624. e.height = c.height;
  9625. var f = e.getContext("2d");
  9626. f.translate(e.width / 2, e.height / 2);
  9627. d ? f.rotate(-1.5707963267948966) : f.rotate(1.5707963267948966);
  9628. f.drawImage(g, c.x, c.y, c.height, c.width, -c.height / 2, -c.width / 2, c.height, c.width);
  9629. return e
  9630. }
  9631. })();
  9632. (function() {
  9633. b.o.F = function(c) {
  9634. b.f.F.call(this, c);
  9635. this.Db = !0;
  9636. this.ki = new b.Qb;
  9637. this.DG = b.s.createBuffer();
  9638. this.li = !0;
  9639. this.dl = this.Ka = !1
  9640. };
  9641. var a = b.o.F.prototype = Object.create(b.f.F.prototype);
  9642. a.constructor = b.o.F;
  9643. a.Ir = function() {};
  9644. a.ia = function(c) {
  9645. b.f.F.prototype.ia.call(this, c);
  9646. this.Ka = !0
  9647. };
  9648. a.bC = function(g) {
  9649. this.Ka = this.dl = g;
  9650. for (var c = this.p.K, d, e = c ? c.length : 0, f = 0; f < e; f++) {
  9651. d = c[f], d instanceof b.o && d.i.bC(g)
  9652. }
  9653. };
  9654. a.ZG = function(d) {
  9655. var c = this.p;
  9656. if (c.lb) {
  9657. if (!(d instanceof b.o)) {
  9658. return b.log(b.j.CN), !1
  9659. }
  9660. d.texture.Ze !== c.textureAtlas.texture.Ze && b.log(b.j.DN);
  9661. c.lb.appendChild(d);
  9662. c.ye || c.Hz()
  9663. }
  9664. return !0
  9665. };
  9666. a.KF = function(c) {
  9667. return c
  9668. };
  9669. a.FB = function(d) {
  9670. var c = this.p;
  9671. return b.RJ(d.Ei(), c.Aa) && d.kb().getName() === c.P.getName() && b.DW(d.TI(), c.ol)
  9672. };
  9673. a.$h = function() {
  9674. var d = {
  9675. r: 255,
  9676. g: 255,
  9677. b: 255,
  9678. a: 255
  9679. },
  9680. c = this.ki;
  9681. c.bl.colors = d;
  9682. c.br.colors = d;
  9683. c.tl.colors = d;
  9684. c.tr.colors = d;
  9685. this.li = !0
  9686. };
  9687. a.oz = function() {
  9688. var g = this.p,
  9689. c = g.ed.x,
  9690. d = g.ed.y,
  9691. e = c + g.Aa.width,
  9692. g = d + g.Aa.height,
  9693. f = this.ki;
  9694. f.bl.vertices = {
  9695. x: c,
  9696. y: d,
  9697. z: 0
  9698. };
  9699. f.br.vertices = {
  9700. x: e,
  9701. y: d,
  9702. z: 0
  9703. };
  9704. f.tl.vertices = {
  9705. x: c,
  9706. y: g,
  9707. z: 0
  9708. };
  9709. f.tr.vertices = {
  9710. x: e,
  9711. y: g,
  9712. z: 0
  9713. };
  9714. this.li = !0
  9715. };
  9716. a.$u = function() {
  9717. return this.ki
  9718. };
  9719. a.IH = function() {};
  9720. a.nH = function(c) {
  9721. this.wc(c.Ei(), c.ze, c.Yu());
  9722. this.dispatchEvent("load")
  9723. };
  9724. a.wH = function(e) {
  9725. var c = this.i;
  9726. if (!this.T) {
  9727. this.T = !0;
  9728. var d = this.Aa;
  9729. d ? b.lz(d) && (d.width = e.width, d.height = e.height) : d = b.rect(0, 0, e.width, e.height);
  9730. this.texture = e;
  9731. this.wc(d, this.we);
  9732. this.Mv(this.lb);
  9733. c.li = !0;
  9734. this.dispatchEvent("load")
  9735. }
  9736. };
  9737. a.eH = function(h, k) {
  9738. void 0 === k && (k = !0);
  9739. k && (h = b.rr(h));
  9740. var m = this.p,
  9741. n = m.lb ? m.textureAtlas.texture : m.P;
  9742. if (n) {
  9743. var c = n.pixelsWidth,
  9744. d = n.pixelsHeight,
  9745. e, f, g = this.ki;
  9746. m.we ? (b.uw ? (n = (2 * h.x + 1) / (2 * c), c = n + (2 * h.height - 2) / (2 * c), e = (2 * h.y + 1) / (2 * d), d = e + (2 * h.width - 2) / (2 * d)) : (n = h.x / c, c = (h.x + h.height) / c, e = h.y / d, d = (h.y + h.width) / d), m.Ac && (f = e, e = d, d = f), m.Bc && (f = n, n = c, c = f), g.bl.texCoords.u = n, g.bl.texCoords.v = e, g.br.texCoords.u = n, g.br.texCoords.v = d, g.tl.texCoords.u = c, g.tl.texCoords.v = e, g.tr.texCoords.u = c, g.tr.texCoords.v = d) : (b.uw ? (n = (2 * h.x + 1) / (2 * c), c = n + (2 * h.width - 2) / (2 * c), e = (2 * h.y + 1) / (2 * d), d = e + (2 * h.height - 2) / (2 * d)) : (n = h.x / c, c = (h.x + h.width) / c, e = h.y / d, d = (h.y + h.height) / d), m.Ac && (f = n, n = c, c = f), m.Bc && (f = e, e = d, d = f), g.bl.texCoords.u = n, g.bl.texCoords.v = d, g.br.texCoords.u = c, g.br.texCoords.v = d, g.tl.texCoords.u = n, g.tl.texCoords.v = e, g.tr.texCoords.u = c, g.tr.texCoords.v = e);
  9747. this.li = !0
  9748. }
  9749. };
  9750. a.transform = function(d, c) {
  9751. b.f.F.prototype.transform.call(this, d, c);
  9752. this.Ka = !0
  9753. };
  9754. a.$G = function() {};
  9755. a.Va = function() {
  9756. var e = this.mb,
  9757. c = this.pc,
  9758. d = this.p,
  9759. e = {
  9760. r: e.r,
  9761. g: e.g,
  9762. b: e.b,
  9763. a: c
  9764. };
  9765. d.hc && (e.r *= c / 255, e.g *= c / 255, e.b *= c / 255);
  9766. c = this.ki;
  9767. c.bl.colors = e;
  9768. c.br.colors = e;
  9769. c.tl.colors = e;
  9770. c.tr.colors = e;
  9771. d.lb && (d.atlasIndex !== b.o.OC ? d.textureAtlas.cw(c, d.atlasIndex) : this.Ka = !0);
  9772. this.li = !0
  9773. };
  9774. a.pl = function() {
  9775. if (this.lb) {
  9776. b.log(b.j.BN)
  9777. } else {
  9778. var c = this.p;
  9779. c.P && c.P.co() ? (c.O.src = b.qf, c.O.ya = b.pf, c.opacityModifyRGB = !0) : (c.O.src = b.SRC_ALPHA, c.O.ya = b.ONE_MINUS_SRC_ALPHA, c.opacityModifyRGB = !1)
  9780. }
  9781. };
  9782. a.mq = function(d) {
  9783. var c = this.p;
  9784. if (c.lb) {
  9785. if (c.lb.texture !== d) {
  9786. b.log(b.j.RN);
  9787. return
  9788. }
  9789. } else {
  9790. c.P !== d && (c.T = d ? d.T : !1, c.P = d, this.pl())
  9791. }
  9792. this.va = d ? b.Ge.Hc(b.Ak) : b.Ge.Hc(b.zs)
  9793. };
  9794. a.mf = function() {
  9795. var n = this.p;
  9796. if (this.Ka) {
  9797. var t = this.ki,
  9798. u = n.Ua;
  9799. if (!n.jd || u && u !== n.lb && u.ll) {
  9800. t.br.vertices = t.tl.vertices = t.tr.vertices = t.bl.vertices = {
  9801. x: 0,
  9802. y: 0,
  9803. z: 0
  9804. }, n.ll = !0
  9805. } else {
  9806. n.ll = !1;
  9807. 0 !== this.C && (this.updateStatus(), this.C = 0);
  9808. n.Fn = u && u !== n.lb ? b.vl(this.Pd(), u.Fn) : this.Pd();
  9809. var x = n.Fn,
  9810. c = n.Aa,
  9811. u = n.ed.x,
  9812. d = n.ed.y,
  9813. g = u + c.width,
  9814. v = d + c.height,
  9815. f = x.la,
  9816. r = x.ma,
  9817. s = x.a,
  9818. h = x.b,
  9819. e = x.R,
  9820. m = -x.c,
  9821. x = u * s - d * m + f,
  9822. c = u * h + d * e + r,
  9823. k = g * s - d * m + f,
  9824. d = g * h + d * e + r,
  9825. p = g * s - v * m + f,
  9826. g = g * h + v * e + r,
  9827. f = u * s - v * m + f,
  9828. u = u * h + v * e + r,
  9829. v = n.Iu;
  9830. b.iD || (x |= 0, c |= 0, k |= 0, d |= 0, p |= 0, g |= 0, f |= 0, u |= 0);
  9831. t.bl.vertices = {
  9832. x: x,
  9833. y: c,
  9834. z: v
  9835. };
  9836. t.br.vertices = {
  9837. x: k,
  9838. y: d,
  9839. z: v
  9840. };
  9841. t.tl.vertices = {
  9842. x: f,
  9843. y: u,
  9844. z: v
  9845. };
  9846. t.tr.vertices = {
  9847. x: p,
  9848. y: g,
  9849. z: v
  9850. }
  9851. }
  9852. n.textureAtlas.cw(t, n.atlasIndex);
  9853. this.Ka = n.dl = !1
  9854. }
  9855. n.Zm && n.ig(n.K, b.f.Jf.mf)
  9856. };
  9857. a.nE = function(e, c, d) {
  9858. e && e.url && (d ? (d = c.x + c.height, c = c.y + c.width) : (d = c.x + c.width, c = c.y + c.height), d > e.width && b.error(b.j.Rw, e.url), c > e.height && b.error(b.j.Qw, e.url))
  9859. };
  9860. a.wb = function(e) {
  9861. var c = this.p,
  9862. d = c.P;
  9863. d && !d.T || 0 === this.pc || (e = e || b.s, d ? d.T && (this.va.Ub(), this.va.wg(this.Rc), b.Vf(c.O.src, c.O.ya), b.sB(0, d), b.tc(b.pp), e.bindBuffer(e.ARRAY_BUFFER, this.DG), this.li && (e.bufferData(e.ARRAY_BUFFER, this.ki.arrayBuffer, e.DYNAMIC_DRAW), this.li = !1), e.vertexAttribPointer(0, 3, e.FLOAT, !1, 24, 0), e.vertexAttribPointer(1, 4, e.UNSIGNED_BYTE, !0, 24, 12), e.vertexAttribPointer(2, 2, e.FLOAT, !1, 24, 16), e.drawArrays(e.TRIANGLE_STRIP, 0, 4)) : (this.va.Ub(), this.va.wg(this.Rc), b.Vf(c.O.src, c.O.ya), b.Ee(null), b.tc(b.ad | b.op), e.bindBuffer(e.ARRAY_BUFFER, this.DG), this.li && (e.bufferData(e.ARRAY_BUFFER, this.ki.arrayBuffer, e.STATIC_DRAW), this.li = !1), e.vertexAttribPointer(b.ab, 3, e.FLOAT, !1, 24, 0), e.vertexAttribPointer(b.ne, 4, e.UNSIGNED_BYTE, !0, 24, 12), e.drawArrays(e.TRIANGLE_STRIP, 0, 4)), b.df++, 0 === b.Xw && !c.kH) || (b.Gg(b.Mg), b.vb.stack.push(b.vb.top), b.vb.top = this.Rc, 1 === b.Xw || c.kH ? (c = this.ki, c = [b.d(c.tl.vertices.x, c.tl.vertices.y), b.d(c.bl.vertices.x, c.bl.vertices.y), b.d(c.br.vertices.x, c.br.vertices.y), b.d(c.tr.vertices.x, c.tr.vertices.y)], b.Nk.Tf(c, 4, !0)) : 2 === b.Xw && (d = c.aJ(), c = c.UU(), c = [b.d(c.x, c.y), b.d(c.x + d.width, c.y), b.d(c.x + d.width, c.y + d.height), b.d(c.x, c.y + d.height)], b.Nk.Tf(c, 4, !0)), b.vb.top = b.vb.stack.pop())
  9864. }
  9865. })();
  9866. b.Sa = b.f.extend({
  9867. O: null,
  9868. re: null,
  9869. gc: "SpriteBatchNode",
  9870. ctor: function(d, a) {
  9871. b.f.prototype.ctor.call(this);
  9872. this.re = [];
  9873. this.O = new b.Wb(b.qf, b.pf);
  9874. var c;
  9875. a = a || b.Sa.EC;
  9876. b.ge(d) ? (c = b.Ra.Wq(d)) || (c = b.Ra.lc(d)) : d instanceof b.ca && (c = d);
  9877. c && this.Pa(c, a)
  9878. },
  9879. P1: function(e, f, g) {
  9880. b.assert(e, b.j.vN);
  9881. if (!(e instanceof b.o)) {
  9882. return b.log(b.j.uN), null
  9883. }
  9884. e.atlasIndex = f;
  9885. var h = 0,
  9886. a, c = this.re;
  9887. if (c && 0 < c.length) {
  9888. for (h = 0, a = c.length; h < a; h++) {
  9889. var d = c[h];
  9890. if (d && d.atlasIndex >= f) {
  9891. break
  9892. }
  9893. }
  9894. }
  9895. c.splice(h, 0, e);
  9896. b.f.prototype.B.call(this, e, f, g);
  9897. this.VJ(!1);
  9898. return this
  9899. },
  9900. ak: function() {
  9901. return this.i.ak()
  9902. },
  9903. Ar: function() {},
  9904. zU: function() {
  9905. return this.re
  9906. },
  9907. kv: function(d, a) {
  9908. var c = b.Ra.Wq(d);
  9909. c || (c = b.Ra.lc(d));
  9910. return this.Pa(c, a)
  9911. },
  9912. s1: function() {},
  9913. oa: function(d, a) {
  9914. var c = b.Ra.Wq(d);
  9915. c || (c = b.Ra.lc(d));
  9916. return this.Pa(c, a)
  9917. },
  9918. Yq: function() {
  9919. this.i.Yq()
  9920. },
  9921. M9: function(c, a) {
  9922. this.removeChild(this.K[c], a)
  9923. },
  9924. PJ: function(f, a) {
  9925. var c = f.children;
  9926. if (c && 0 < c.length) {
  9927. for (var d = 0; d < c.length; d++) {
  9928. var e = c[d];
  9929. e && 0 > e.zIndex && (a = this.PJ(e, a))
  9930. }
  9931. }!f === this && (f.atlasIndex = a, a++);
  9932. if (c && 0 < c.length) {
  9933. for (d = 0; d < c.length; d++) {
  9934. (e = c[d]) && 0 <= e.zIndex && (a = this.PJ(e, a))
  9935. }
  9936. }
  9937. return a
  9938. },
  9939. AB: function(c) {
  9940. var a = c.children;
  9941. return a && 0 !== a.length ? this.AB(a[a.length - 1]) : c.atlasIndex
  9942. },
  9943. lW: function(c) {
  9944. var a = c.children;
  9945. return a && 0 !== a.length ? this.lW(a[a.length - 1]) : c.atlasIndex
  9946. },
  9947. QS: function(f, g) {
  9948. var a = f.parent,
  9949. c = a.children,
  9950. d = c.indexOf(f),
  9951. e = null;
  9952. 0 < d && d < b.TD && (e = c[d - 1]);
  9953. return a === this ? 0 === d ? 0 : this.AB(e) + 1 : 0 === d ? 0 > g ? a.atlasIndex : a.atlasIndex + 1 : 0 > e.zIndex && 0 > g || 0 <= e.zIndex && 0 <= g ? this.AB(e) + 1 : a.atlasIndex + 1
  9954. },
  9955. VJ: function(a) {
  9956. this.ye = a
  9957. },
  9958. Hh: function(c, a) {
  9959. this.O = void 0 === a ? c : {
  9960. src: c,
  9961. ya: a
  9962. }
  9963. },
  9964. Vn: function() {
  9965. return new b.Wb(this.O.src, this.O.ya)
  9966. },
  9967. ur: function(c, a) {
  9968. b.assert(c, b.j.AN); - 1 === this.K.indexOf(c) ? b.log(b.j.zN) : a !== c.zIndex && b.f.prototype.ur.call(this, c, a)
  9969. },
  9970. removeChild: function(c, a) {
  9971. null != c && (-1 === this.K.indexOf(c) ? b.log(b.j.yN) : (this.Gv(c), b.f.prototype.removeChild.call(this, c, a)))
  9972. },
  9973. Tba: function(c, a) {
  9974. b.assert(c, b.j.lL);
  9975. c instanceof b.o ? (this.i.qI(), c.batchNode = this, c.atlasIndex = a, c.dirty = !0, c.mf()) : b.log(b.j.kL)
  9976. },
  9977. N6: function(c, a) {
  9978. b.assert(c, b.j.jL);
  9979. c instanceof b.o ? (this.i.ho(c, a), c.batchNode = this, c.atlasIndex = a, c.dirty = !0, c.mf(), this.i.AI(c, a)) : b.log(b.j.iL)
  9980. },
  9981. Pa: function(c, a) {
  9982. this.K.length = 0;
  9983. this.re.length = 0;
  9984. a = a || b.Sa.EC;
  9985. this.i.Pa(c, a);
  9986. return !0
  9987. },
  9988. NV: function(f, g) {
  9989. f.batchNode = this;
  9990. f.atlasIndex = g;
  9991. f.dirty = !0;
  9992. this.i.ho(f, g);
  9993. this.re.splice(g, 0, f);
  9994. var a = g + 1,
  9995. c = this.re;
  9996. if (c && 0 < c.length) {
  9997. for (; a < c.length; a++) {
  9998. c[a].atlasIndex++
  9999. }
  10000. }
  10001. var c = f.children,
  10002. d, e;
  10003. if (c) {
  10004. for (a = 0, e = c.length || 0; a < e; a++) {
  10005. (d = c[a]) && this.NV(d, this.QS(d, d.zIndex))
  10006. }
  10007. }
  10008. },
  10009. appendChild: function(d) {
  10010. this.ye = !0;
  10011. d.batchNode = this;
  10012. d.dirty = !0;
  10013. this.re.push(d);
  10014. var a = this.re.length - 1;
  10015. d.atlasIndex = a;
  10016. this.i.ho(d, a);
  10017. d = d.children;
  10018. for (var a = 0, c = d.length || 0; a < c; a++) {
  10019. this.appendChild(d[a])
  10020. }
  10021. },
  10022. Gv: function(e) {
  10023. this.i.Fv(e.atlasIndex);
  10024. e.batchNode = null;
  10025. var a = this.re,
  10026. c = a.indexOf(e);
  10027. if (-1 !== c) {
  10028. a.splice(c, 1);
  10029. for (var d = a.length; c < d; ++c) {
  10030. a[c].atlasIndex--
  10031. }
  10032. }
  10033. if (e = e.children) {
  10034. for (a = 0, c = e.length || 0; a < c; a++) {
  10035. e[a] && this.Gv(e[a])
  10036. }
  10037. }
  10038. },
  10039. kb: function() {
  10040. return this.i.kb()
  10041. },
  10042. $a: function(a) {
  10043. this.i.$a(a)
  10044. },
  10045. B: function(d, a, c) {
  10046. b.assert(null != d, b.j.gL);
  10047. this.i.xJ(d) && (a = null == a ? d.zIndex : a, c = null == c ? d.tag : c, b.f.prototype.B.call(this, d, a, c), this.appendChild(d))
  10048. },
  10049. qo: function(e) {
  10050. var a = this.re;
  10051. if (a && 0 < a.length) {
  10052. for (var c = 0, d = a.length; c < d; c++) {
  10053. a[c] && (a[c].batchNode = null)
  10054. }
  10055. }
  10056. b.f.prototype.qo.call(this, e);
  10057. this.re.length = 0;
  10058. this.i.Ev()
  10059. },
  10060. kf: function() {
  10061. if (this.ye) {
  10062. var f = this.K,
  10063. g, a = 0,
  10064. c = f.length,
  10065. d;
  10066. for (g = 1; g < c; g++) {
  10067. var e = f[g],
  10068. a = g - 1;
  10069. for (d = f[a]; 0 <= a && (e.Xb < d.Xb || e.Xb === d.Xb && e.arrivalOrder < d.arrivalOrder);) {
  10070. f[a + 1] = d, a -= 1, d = f[a]
  10071. }
  10072. f[a + 1] = e
  10073. }
  10074. 0 < f.length && (this.ig(f, b.f.Jf.kf), this.i.RK(f));
  10075. this.ye = !1
  10076. }
  10077. },
  10078. Fd: function() {
  10079. return b.ua === b.dc ? new b.Sa.A(this) : new b.Sa.F(this)
  10080. }
  10081. });
  10082. w = b.Sa.prototype;
  10083. b.l(w, "texture", w.kb, w.$a);
  10084. b.l(w, "textureAtlas", w.ak, w.Ar);
  10085. b.l(w, "descendants", w.zU);
  10086. b.Sa.EC = 29;
  10087. b.Sa.create = function(c, a) {
  10088. return new b.Sa(c, a)
  10089. };
  10090. b.Sa.KA = b.Sa.create;
  10091. (function() {
  10092. b.Sa.A = function(c) {
  10093. b.f.A.call(this, c);
  10094. this.Fb = this.P = null
  10095. };
  10096. var a = b.Sa.A.prototype = Object.create(b.f.A.prototype);
  10097. a.constructor = b.Sa.A;
  10098. a.qI = function() {};
  10099. a.xJ = function(c) {
  10100. return c instanceof b.o ? !0 : (b.log(b.j.jD), !1)
  10101. };
  10102. a.Pa = function(c) {
  10103. this.P = this.Fb = c
  10104. };
  10105. a.ho = function() {};
  10106. a.Yq = function() {};
  10107. a.Fv = function() {};
  10108. a.Ev = function() {};
  10109. a.kb = function() {
  10110. return this.P
  10111. };
  10112. a.$a = function(e) {
  10113. this.P = e;
  10114. for (var c = this.p.K, d = 0; d < c.length; d++) {
  10115. c[d].$a(e)
  10116. }
  10117. };
  10118. a.RK = function(e) {
  10119. for (var c = this.p.re.length = 0, d = e.length; c < d; c++) {
  10120. this.Bu(e[c])
  10121. }
  10122. };
  10123. a.Bu = function(g) {
  10124. var c = this.p.re,
  10125. d = g.children,
  10126. e, f = d.length;
  10127. for (e = 0; e < f; e++) {
  10128. if (0 > d[e].Xb) {
  10129. c.push(d[e])
  10130. } else {
  10131. break
  10132. }
  10133. }
  10134. for (c.push(g); e < f; e++) {
  10135. c.push(d[e])
  10136. }
  10137. };
  10138. a.ak = function() {};
  10139. a.Ar = function() {};
  10140. a.AI = function(d, c) {
  10141. this.p.K.splice(c, 0, d)
  10142. }
  10143. })();
  10144. (function() {
  10145. b.Sa.F = function(c) {
  10146. b.f.F.call(this, c);
  10147. this.Db = !0;
  10148. this.cb = null
  10149. };
  10150. var a = b.Sa.F.prototype = Object.create(b.f.F.prototype);
  10151. a.constructor = b.Sa.F;
  10152. a.xJ = function(c) {
  10153. return c instanceof b.o ? c.texture != this.kb() ? (b.log(b.j.EN), !1) : !0 : (b.log(b.j.jD), !1)
  10154. };
  10155. a.wb = function() {
  10156. var c = this.p;
  10157. 0 !== this.cb.totalQuads && (this.va.Ub(), this.va.wg(this.Rc), c.ig(c.K, b.f.Jf.mf), b.Vf(c.O.src, c.O.ya), this.cb.HT())
  10158. };
  10159. a.ga = function(e) {
  10160. var c = this.p;
  10161. if (c.jd) {
  10162. c.Ua && c.Ua.i && (this.kg = c.Ua.i.kg + 1);
  10163. var d = b.vb;
  10164. d.stack.push(d.top);
  10165. this.C & b.f.L.ba || this.transform(e);
  10166. this.updateStatus(e);
  10167. d.top = this.Rc;
  10168. c.kf();
  10169. b.Za.Ig(this);
  10170. this.C = 0;
  10171. d.top = d.stack.pop()
  10172. }
  10173. };
  10174. a.qI = function(d) {
  10175. for (var c = this.cb; d >= c.capacity || c.capacity === c.totalQuads;) {
  10176. this.Yq()
  10177. }
  10178. };
  10179. a.Yq = function() {
  10180. var d = this.cb.capacity,
  10181. c = Math.floor(4 * (d + 1) / 3);
  10182. b.log(b.j.wN, d, c);
  10183. this.cb.$J(c) || b.log(b.j.xN)
  10184. };
  10185. a.Pa = function(d, c) {
  10186. this.cb = new b.Ph;
  10187. this.cb.Pa(d, c);
  10188. this.pl();
  10189. this.va = b.Ge.Hc(b.Ak)
  10190. };
  10191. a.ho = function(e, c) {
  10192. var d = this.cb;
  10193. d.totalQuads >= d.capacity && this.Yq();
  10194. d.ho(e.quad, c)
  10195. };
  10196. a.Fv = function(c) {
  10197. this.cb.Fv(c)
  10198. };
  10199. a.kb = function() {
  10200. return this.cb.texture
  10201. };
  10202. a.$a = function(c) {
  10203. this.cb.$a(c);
  10204. c && this.pl()
  10205. };
  10206. a.Ev = function() {
  10207. this.cb.Ev()
  10208. };
  10209. a.wu = function(e, f) {
  10210. var g = this.p.re,
  10211. h = this.cb,
  10212. k = h.quads,
  10213. c = g[e],
  10214. d = b.VD(k[e]);
  10215. g[f].atlasIndex = e;
  10216. g[e] = g[f];
  10217. h.cw(k[f], e);
  10218. g[f] = c;
  10219. h.cw(d, f)
  10220. };
  10221. a.Bu = function(f, g) {
  10222. var h = 0,
  10223. c = f.children;
  10224. c && (h = c.length);
  10225. var d = 0;
  10226. if (0 === h) {
  10227. d = f.atlasIndex, f.atlasIndex = g, f.arrivalOrder = 0, d !== g && this.wu(d, g), g++
  10228. } else {
  10229. d = !0;
  10230. 0 <= c[0].zIndex && (d = f.atlasIndex, f.atlasIndex = g, f.arrivalOrder = 0, d !== g && this.wu(d, g), g++, d = !1);
  10231. for (h = 0; h < c.length; h++) {
  10232. var e = c[h];
  10233. d && 0 <= e.zIndex && (d = f.atlasIndex, f.atlasIndex = g, f.arrivalOrder = 0, d !== g && this.wu(d, g), g++, d = !1);
  10234. g = this.Bu(e, g)
  10235. }
  10236. d && (d = f.atlasIndex, f.atlasIndex = g, f.arrivalOrder = 0, d !== g && this.wu(d, g), g++)
  10237. }
  10238. return g
  10239. };
  10240. a.RK = function(e) {
  10241. for (var c = 0, d = 0; d < e.length; d++) {
  10242. c = this.Bu(e[d], c)
  10243. }
  10244. };
  10245. a.pl = function() {
  10246. if (!this.cb.texture.co()) {
  10247. var c = this.p.O;
  10248. c.src = b.SRC_ALPHA;
  10249. c.ya = b.ONE_MINUS_SRC_ALPHA
  10250. }
  10251. };
  10252. a.ak = function() {
  10253. return this.cb
  10254. };
  10255. a.Ar = function(c) {
  10256. c !== this.cb && (this.cb = c)
  10257. };
  10258. a.AI = function() {}
  10259. })();
  10260. b.eL = b.o.extend({
  10261. rj: null,
  10262. Vg: null,
  10263. ctor: function() {
  10264. b.o.prototype.ctor.call(this);
  10265. var c = document.createElement("canvas");
  10266. c.width = c.height = 10;
  10267. this.rj = c;
  10268. this.Vg = new b.Vr(c.getContext("2d"));
  10269. var a = new b.ca;
  10270. a.mc(c);
  10271. a.fb();
  10272. this.$a(a)
  10273. },
  10274. D4: function() {
  10275. return this.Vg
  10276. },
  10277. C4: function() {
  10278. return this.rj
  10279. },
  10280. YJ: function(d, a) {
  10281. void 0 === a && (a = d.height, d = d.width);
  10282. var c = this.rj;
  10283. c.width = d;
  10284. c.height = a;
  10285. this.kb().fb();
  10286. this.wc(b.rect(0, 0, d, a), !1)
  10287. }
  10288. });
  10289. b.of = b.Ia.extend({
  10290. sn: null,
  10291. rd: 0,
  10292. Jn: null,
  10293. ctor: function(d, a, c) {
  10294. this.sn = d || null;
  10295. this.rd = a || 0;
  10296. this.Jn = c || null
  10297. },
  10298. k: function() {
  10299. var a = new b.of;
  10300. a.wh(this.sn.k(), this.rd, this.Jn);
  10301. return a
  10302. },
  10303. Ru: function() {
  10304. return b.k(this)
  10305. },
  10306. copy: function() {
  10307. var a = new b.of;
  10308. a.wh(this.sn.k(), this.rd, this.Jn);
  10309. return a
  10310. },
  10311. wh: function(d, a, c) {
  10312. this.sn = d;
  10313. this.rd = a;
  10314. this.Jn = c;
  10315. return !0
  10316. },
  10317. V: function() {
  10318. return this.sn
  10319. },
  10320. Ul: function(a) {
  10321. this.sn = a
  10322. },
  10323. O4: function() {
  10324. return this.rd
  10325. },
  10326. M$: function(a) {
  10327. this.rd = a
  10328. },
  10329. m6: function() {
  10330. return this.Jn
  10331. },
  10332. $aa: function(a) {
  10333. this.Jn = a
  10334. }
  10335. });
  10336. b.of.create = function(d, a, c) {
  10337. return new b.of(d, a, c)
  10338. };
  10339. b.Kh = b.Ia.extend({
  10340. sd: null,
  10341. di: 0,
  10342. hl: !1,
  10343. q: 0,
  10344. rd: 0,
  10345. ph: 0,
  10346. ctor: function(e, a, c) {
  10347. this.sd = [];
  10348. if (void 0 === e) {
  10349. this.tJ(null, 0)
  10350. } else {
  10351. var d = e[0];
  10352. d && (d instanceof b.Dd ? this.tJ(e, a, c) : d instanceof b.of && this.jv(e, a, c))
  10353. }
  10354. },
  10355. g5: function() {
  10356. return this.sd
  10357. },
  10358. Z$: function(a) {
  10359. this.sd = a
  10360. },
  10361. yA: function(c) {
  10362. var a = new b.of;
  10363. a.wh(c, 1, null);
  10364. this.sd.push(a);
  10365. this.ph++
  10366. },
  10367. N1: function(c) {
  10368. c = b.Ra.lc(c);
  10369. var a = b.rect(0, 0, 0, 0);
  10370. a.width = c.width;
  10371. a.height = c.height;
  10372. c = new b.Dd(c, a);
  10373. this.yA(c)
  10374. },
  10375. O1: function(d, a) {
  10376. var c = new b.Dd(d, a);
  10377. this.yA(c)
  10378. },
  10379. jv: function(e, a, c) {
  10380. b.Hq(e, b.of);
  10381. this.rd = a;
  10382. this.di = void 0 === c ? 1 : c;
  10383. this.ph = 0;
  10384. a = this.sd;
  10385. for (c = a.length = 0; c < e.length; c++) {
  10386. var d = e[c];
  10387. a.push(d);
  10388. this.ph += d.rd
  10389. }
  10390. return !0
  10391. },
  10392. k: function() {
  10393. var a = new b.Kh;
  10394. a.jv(this.uE(), this.rd, this.di);
  10395. a.Uv(this.hl);
  10396. return a
  10397. },
  10398. Ru: function() {
  10399. var a = new b.Kh;
  10400. a.jv(this.uE(), this.rd, this.di);
  10401. a.Uv(this.hl);
  10402. return a
  10403. },
  10404. uE: function() {
  10405. for (var c = [], a = 0; a < this.sd.length; a++) {
  10406. c.push(this.sd[a].k())
  10407. }
  10408. return c
  10409. },
  10410. copy: function() {
  10411. return this.Ru(null)
  10412. },
  10413. p5: function() {
  10414. return this.di
  10415. },
  10416. gaa: function(a) {
  10417. this.di = a
  10418. },
  10419. Uv: function(a) {
  10420. this.hl = a
  10421. },
  10422. K5: function() {
  10423. return this.hl
  10424. },
  10425. gB: function() {
  10426. return this.ph * this.rd
  10427. },
  10428. N4: function() {
  10429. return this.rd
  10430. },
  10431. L$: function(a) {
  10432. this.rd = a
  10433. },
  10434. e6: function() {
  10435. return this.ph
  10436. },
  10437. tJ: function(f, a, c) {
  10438. b.Hq(f, b.Dd);
  10439. this.di = void 0 === c ? 1 : c;
  10440. this.rd = a || 0;
  10441. this.ph = 0;
  10442. a = this.sd;
  10443. a.length = 0;
  10444. if (f) {
  10445. for (c = 0; c < f.length; c++) {
  10446. var d = f[c],
  10447. e = new b.of;
  10448. e.wh(d, 1, null);
  10449. a.push(e)
  10450. }
  10451. this.ph += f.length
  10452. }
  10453. return !0
  10454. },
  10455. Kv: function() {},
  10456. uc: function() {}
  10457. });
  10458. b.Kh.create = function(d, a, c) {
  10459. return new b.Kh(d, a, c)
  10460. };
  10461. b.Kh.H2 = b.Kh.create;
  10462. b.Ku = {
  10463. um: {},
  10464. WH: function(c, a) {
  10465. this.um[a] = c
  10466. },
  10467. L9: function(a) {
  10468. a && this.um[a] && delete this.um[a]
  10469. },
  10470. MI: function(a) {
  10471. return this.um[a] ? this.um[a] : null
  10472. },
  10473. YO: function(d, e) {
  10474. var f = d.animations;
  10475. if (f) {
  10476. var g = 1,
  10477. h = d.properties;
  10478. if (h) {
  10479. for (var g = null != h.format ? parseInt(h.format) : g, h = h.spritesheets, k = b.W, a = b.path, c = 0; c < h.length; c++) {
  10480. k.Ju(a.Pu(e, h[c]))
  10481. }
  10482. }
  10483. switch (g) {
  10484. case 1:
  10485. this.UQ(f);
  10486. break;
  10487. case 2:
  10488. this.VQ(f);
  10489. break;
  10490. default:
  10491. b.log(b.j.HS)
  10492. }
  10493. } else {
  10494. b.log(b.j.GS)
  10495. }
  10496. },
  10497. F1: function(c) {
  10498. b.assert(c, b.j.PS);
  10499. var a = b.S.De(c);
  10500. a ? this.YO(a, c) : b.log(b.j.OS)
  10501. },
  10502. UQ: function(h) {
  10503. var k = b.W,
  10504. m;
  10505. for (m in h) {
  10506. var a = h[m],
  10507. c = a.frames,
  10508. a = parseFloat(a.delay) || 0,
  10509. d = null;
  10510. if (c) {
  10511. for (var d = [], e = 0; e < c.length; e++) {
  10512. var f = k.V(c[e]);
  10513. if (f) {
  10514. var g = new b.of;
  10515. g.wh(f, 1, null);
  10516. d.push(g)
  10517. } else {
  10518. b.log(b.j.JS, m, c[e])
  10519. }
  10520. }
  10521. 0 === d.length ? b.log(b.j.KS, m) : (d.length !== c.length && b.log(b.j.LS, m), d = new b.Kh(d, a, 1), b.Ku.WH(d, m))
  10522. } else {
  10523. b.log(b.j.IS, m)
  10524. }
  10525. }
  10526. },
  10527. VQ: function(n) {
  10528. var a = b.W,
  10529. c;
  10530. for (c in n) {
  10531. var e = n[c],
  10532. k = parseInt(e.loops),
  10533. k = e.loop ? b.fg : isNaN(k) ? 1 : k,
  10534. m = e.restoreOriginalFrame && !0 == e.restoreOriginalFrame ? !0 : !1,
  10535. p = e.frames;
  10536. if (p) {
  10537. for (var r = [], t = 0; t < p.length; t++) {
  10538. var d = p[t],
  10539. f = d.spriteframe,
  10540. g = a.V(f);
  10541. if (g) {
  10542. var f = parseFloat(d.delayUnits) || 0,
  10543. d = d.notification,
  10544. h = new b.of;
  10545. h.wh(g, f, d);
  10546. r.push(h)
  10547. } else {
  10548. b.log(b.j.NS, c, f)
  10549. }
  10550. }
  10551. e = parseFloat(e.delayPerUnit) || 0;
  10552. p = new b.Kh;
  10553. p.jv(r, e, k);
  10554. p.Uv(m);
  10555. b.Ku.WH(p, c)
  10556. } else {
  10557. b.log(b.j.MS, c)
  10558. }
  10559. }
  10560. },
  10561. tj: function() {
  10562. this.um = {}
  10563. }
  10564. };
  10565. b.Dd = b.Ia.extend({
  10566. Eb: null,
  10567. Hj: null,
  10568. $d: null,
  10569. ze: !1,
  10570. Aa: null,
  10571. Df: null,
  10572. Se: null,
  10573. P: null,
  10574. zn: "",
  10575. T: !1,
  10576. ctor: function(f, a, c, d, e) {
  10577. this.Eb = b.d(0, 0);
  10578. this.Df = b.d(0, 0);
  10579. this.Hj = b.size(0, 0);
  10580. this.ze = !1;
  10581. this.Se = b.size(0, 0);
  10582. this.zn = "";
  10583. this.P = null;
  10584. this.T = !1;
  10585. void 0 !== f && void 0 !== a && (void 0 === c || void 0 === d || void 0 === e ? this.Pa(f, a) : this.Pa(f, a, c, d, e))
  10586. },
  10587. Cr: function() {
  10588. return this.T
  10589. },
  10590. Gq: function(c, a) {
  10591. this.addEventListener("load", c, a)
  10592. },
  10593. $U: function() {
  10594. var a = this.$d;
  10595. return b.rect(a.x, a.y, a.width, a.height)
  10596. },
  10597. vaa: function(a) {
  10598. this.$d || (this.$d = b.rect(0, 0, 0, 0));
  10599. this.$d.x = a.x;
  10600. this.$d.y = a.y;
  10601. this.$d.width = a.width;
  10602. this.$d.height = a.height;
  10603. this.Aa = b.Cv(a)
  10604. },
  10605. g7: function() {
  10606. return this.ze
  10607. },
  10608. zaa: function(a) {
  10609. this.ze = a
  10610. },
  10611. Ei: function() {
  10612. var a = this.Aa;
  10613. return b.rect(a.x, a.y, a.width, a.height)
  10614. },
  10615. yK: function(a) {
  10616. this.Aa || (this.Aa = b.rect(0, 0, 0, 0));
  10617. this.Aa.x = a.x;
  10618. this.Aa.y = a.y;
  10619. this.Aa.width = a.width;
  10620. this.Aa.height = a.height;
  10621. this.$d = b.rr(this.Aa)
  10622. },
  10623. y5: function() {
  10624. return b.d(this.Df)
  10625. },
  10626. naa: function(a) {
  10627. this.Df.x = a.x;
  10628. this.Df.y = a.y;
  10629. b.$y(this.Df, this.Eb)
  10630. },
  10631. A5: function() {
  10632. return b.size(this.Se)
  10633. },
  10634. paa: function(a) {
  10635. this.Se.width = a.width;
  10636. this.Se.height = a.height
  10637. },
  10638. Yu: function() {
  10639. return b.size(this.Hj)
  10640. },
  10641. oaa: function(a) {
  10642. this.Hj.width = a.width;
  10643. this.Hj.height = a.height
  10644. },
  10645. kb: function() {
  10646. if (this.P) {
  10647. return this.P
  10648. }
  10649. if ("" !== this.zn) {
  10650. var a = b.Ra.lc(this.zn);
  10651. a && (this.T = a.T);
  10652. return a
  10653. }
  10654. return null
  10655. },
  10656. $a: function(c) {
  10657. if (this.P !== c) {
  10658. var a = c.T;
  10659. this.T = a;
  10660. this.P = c;
  10661. a || c.addEventListener("load", function(f) {
  10662. this.T = !0;
  10663. if (this.ze && b.ua === b.dc) {
  10664. var d = f.xa,
  10665. d = b.o.A.Sx(d, this.Ei()),
  10666. e = new b.ca;
  10667. e.mc(d);
  10668. e.fb();
  10669. this.$a(e);
  10670. d = this.Ei();
  10671. this.yK(b.rect(0, 0, d.width, d.height))
  10672. }
  10673. d = this.Aa;
  10674. 0 === d.width && 0 === d.height && (d = f.width, f = f.height, this.Aa.width = d, this.Aa.height = f, this.$d = b.rr(this.Aa), this.Se.width = this.$d.width, this.Se.height = this.$d.height, this.Hj.width = d, this.Hj.height = f);
  10675. this.dispatchEvent("load")
  10676. }, this)
  10677. }
  10678. },
  10679. TI: function() {
  10680. return b.d(this.Eb)
  10681. },
  10682. yr: function(a) {
  10683. this.Eb.x = a.x;
  10684. this.Eb.y = a.y
  10685. },
  10686. k: function() {
  10687. var a = new b.Dd;
  10688. a.Pa(this.zn, this.$d, this.ze, this.Df, this.Se);
  10689. a.$a(this.P);
  10690. return a
  10691. },
  10692. Ru: function() {
  10693. var a = new b.Dd;
  10694. a.Pa(this.zn, this.$d, this.ze, this.Df, this.Se);
  10695. a.$a(this.P);
  10696. return a
  10697. },
  10698. copy: function() {
  10699. return this.Ru()
  10700. },
  10701. Pa: function(e, f, g, h, a) {
  10702. 2 === arguments.length && (f = b.rr(f));
  10703. h = h || b.d(0, 0);
  10704. a = a || f;
  10705. g = g || !1;
  10706. b.ge(e) ? (this.P = null, this.zn = e) : e instanceof b.ca && this.$a(e);
  10707. e = this.kb();
  10708. this.$d = f;
  10709. f = this.Aa = b.Cv(f);
  10710. if (e && e.url && e.T) {
  10711. var c, d;
  10712. g ? (c = f.x + f.height, d = f.y + f.width) : (c = f.x + f.width, d = f.y + f.height);
  10713. c > e.nB() && b.error(b.j.Rw, e.url);
  10714. d > e.mB() && b.error(b.j.Qw, e.url)
  10715. }
  10716. this.Df.x = h.x;
  10717. this.Df.y = h.y;
  10718. b.$y(h, this.Eb);
  10719. this.Se.width = a.width;
  10720. this.Se.height = a.height;
  10721. b.lH(a, this.Hj);
  10722. this.ze = g;
  10723. return !0
  10724. }
  10725. });
  10726. b.dg.prototype.apply(b.Dd.prototype);
  10727. b.Dd.create = function(f, a, c, d, e) {
  10728. return new b.Dd(f, a, c, d, e)
  10729. };
  10730. b.Dd.KA = b.Dd.create;
  10731. b.Dd.V0 = function(f, g, a, c, d) {
  10732. var e = new b.Dd;
  10733. e.P = f;
  10734. e.$d = g;
  10735. e.Aa = b.Cv(g);
  10736. e.Df.x = c.x;
  10737. e.Df.y = c.y;
  10738. b.$y(e.Df, e.Eb);
  10739. e.Se.width = d.width;
  10740. e.Se.height = d.height;
  10741. b.lH(e.Se, e.Hj);
  10742. e.ze = a;
  10743. return e
  10744. };
  10745. b.W = {
  10746. YD: /^\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*$/,
  10747. NO: /^\s*\{\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*,\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*\}\s*$/,
  10748. zg: {},
  10749. ri: {},
  10750. ah: {},
  10751. KG: function(a) {
  10752. return (a = this.NO.exec(a)) ? b.rect(parseFloat(a[1]), parseFloat(a[2]), parseFloat(a[3]), parseFloat(a[4])) : b.rect(0, 0, 0, 0)
  10753. },
  10754. yG: function(a) {
  10755. return (a = this.YD.exec(a)) ? b.d(parseFloat(a[1]), parseFloat(a[2])) : b.d(0, 0)
  10756. },
  10757. Qz: function(a) {
  10758. return (a = this.YD.exec(a)) ? b.size(parseFloat(a[1]), parseFloat(a[2])) : b.size(0, 0)
  10759. },
  10760. OP: function(c) {
  10761. var a = b.S.De(c);
  10762. b.assert(a, b.j.HK, c);
  10763. b.S.uc(c);
  10764. if (a.bn) {
  10765. return this.ah[c] = a
  10766. }
  10767. this.ah[c] = this.uG(a);
  10768. return this.ah[c]
  10769. },
  10770. PP: function(c, a) {
  10771. b.assert(a, b.j.HK, c);
  10772. this.ah[c] = this.uG(a);
  10773. return this.ah[c]
  10774. },
  10775. uG: function(h) {
  10776. var k = h.frames,
  10777. m = h.metadata || h.meta;
  10778. h = {};
  10779. var a = {},
  10780. c = 0;
  10781. m && (c = m.format, c = 1 >= c.length ? parseInt(c) : c, a.yV = m.textureFileName || m.textureFileName || m.image);
  10782. for (var d in k) {
  10783. var e = k[d];
  10784. if (e) {
  10785. m = {};
  10786. if (0 == c) {
  10787. m.rect = b.rect(e.x, e.y, e.width, e.height);
  10788. m.Lv = !1;
  10789. m.offset = b.d(e.offsetX, e.offsetY);
  10790. var f = e.originalWidth,
  10791. e = e.originalHeight;
  10792. f && e || b.log(b.j.pY);
  10793. f = Math.abs(f);
  10794. e = Math.abs(e);
  10795. m.size = b.size(f, e)
  10796. } else {
  10797. if (1 == c || 2 == c) {
  10798. m.rect = this.KG(e.frame), m.Lv = e.rotated || !1, m.offset = this.yG(e.offset), m.size = this.Qz(e.sourceSize)
  10799. } else {
  10800. if (3 == c) {
  10801. var f = this.Qz(e.spriteSize),
  10802. g = this.KG(e.textureRect);
  10803. f && (g = b.rect(g.x, g.y, f.width, f.height));
  10804. m.rect = g;
  10805. m.Lv = e.textureRotated || !1;
  10806. m.offset = this.yG(e.spriteOffset);
  10807. m.size = this.Qz(e.spriteSourceSize);
  10808. m.BS = e.aliases
  10809. } else {
  10810. f = e.frame, g = e.sourceSize, d = e.filename || d, m.rect = b.rect(f.x, f.y, f.w, f.h), m.Lv = e.rotated || !1, m.offset = b.d(0, 0), m.size = b.size(g.w, g.h)
  10811. }
  10812. }
  10813. }
  10814. h[d] = m
  10815. }
  10816. }
  10817. return {
  10818. bn: !0,
  10819. frames: h,
  10820. vv: a
  10821. }
  10822. },
  10823. I0: function(d, a, c) {
  10824. b.assert(d, b.j.IK);
  10825. a && a.frames && (a = this.ah[d] || this.PP(d, a), this.xE(d, a, c))
  10826. },
  10827. xE: function(g, h, k) {
  10828. var m = h.frames;
  10829. h = h.vv;
  10830. k ? k instanceof b.ca || (b.ge(k) ? k = b.Ra.lc(k) : b.assert(0, b.j.rY)) : k = b.Ra.lc(b.path.Pu(g, h.yV || ".png"));
  10831. g = this.ri;
  10832. h = this.zg;
  10833. for (var n in m) {
  10834. var a = m[n],
  10835. c = h[n];
  10836. if (!c) {
  10837. c = new b.Dd(k, a.rect, a.Lv, a.offset, a.size);
  10838. if (a = a.BS) {
  10839. for (var d = 0, e = a.length; d < e; d++) {
  10840. var f = a[d];
  10841. g[f] && b.log(b.j.qY, f);
  10842. g[f] = n
  10843. }
  10844. }
  10845. b.ua === b.dc && c.ze && c.kb().T && (a = c.kb().xa, a = b.o.A.Sx(a, c.$U()), d = new b.ca, d.mc(a), d.fb(), c.$a(d), a = c.Aa, c.yK(b.rect(0, 0, a.width, a.height)));
  10846. h[n] = c
  10847. }
  10848. }
  10849. },
  10850. Ju: function(d, a) {
  10851. b.assert(d, b.j.IK);
  10852. var c = this.ah[d] || b.S.De(d);
  10853. c && c.frames && (c = this.ah[d] || this.OP(d), this.xE(d, c, a))
  10854. },
  10855. O0: function(c) {
  10856. c = c.frames;
  10857. for (var a in c) {
  10858. this.zg[a] && b.log(b.j.oY, a)
  10859. }
  10860. },
  10861. yA: function(c, a) {
  10862. this.zg[a] = c
  10863. },
  10864. U9: function() {
  10865. this.zg = {};
  10866. this.ri = {}
  10867. },
  10868. T9: function(a) {
  10869. a && (this.ri[a] && delete this.ri[a], this.zg[a] && delete this.zg[a])
  10870. },
  10871. V9: function(f) {
  10872. var a = this.zg,
  10873. c = this.ri;
  10874. if (f = this.ah[f]) {
  10875. f = f.frames;
  10876. for (var d in f) {
  10877. if (a[d]) {
  10878. delete a[d];
  10879. for (var e in c) {
  10880. c[e] === d && delete c[e]
  10881. }
  10882. }
  10883. }
  10884. }
  10885. },
  10886. W9: function(f) {
  10887. var g = this.zg,
  10888. a = this.ri,
  10889. c;
  10890. for (c in g) {
  10891. var d = g[c];
  10892. if (d && d.kb() === f) {
  10893. delete g[c];
  10894. for (var e in a) {
  10895. a[e] === c && delete a[e]
  10896. }
  10897. }
  10898. }
  10899. },
  10900. V: function(d) {
  10901. var a = this.zg[d];
  10902. if (!a) {
  10903. var c = this.ri[d];
  10904. c && ((a = this.zg[c.toString()]) || delete this.ri[d])
  10905. }
  10906. return a
  10907. },
  10908. tj: function() {
  10909. this.zg = {};
  10910. this.ri = {};
  10911. this.ah = {}
  10912. }
  10913. };
  10914. b.Qn = {
  10915. c_: 0,
  10916. h0: 1,
  10917. INT: 2,
  10918. YZ: 3,
  10919. uZ: 4,
  10920. aq: 0,
  10921. JQ: 0,
  10922. aA: !1,
  10923. vu: !1,
  10924. Zz: !1,
  10925. $z: !1,
  10926. bA: !1,
  10927. h1: 0,
  10928. Ny: 0,
  10929. Qs: "",
  10930. zq: {},
  10931. bn: !1,
  10932. $h: function() {
  10933. var a = this.zq;
  10934. a["cocos2d.x.version"] = b.pw;
  10935. a["cocos2d.x.compiled_with_profiler"] = !1;
  10936. a["cocos2d.x.compiled_with_gl_state_cache"] = b.cg;
  10937. this.bn = !0
  10938. },
  10939. r5: function() {
  10940. return this.aq
  10941. },
  10942. q5: function() {
  10943. return this.JQ
  10944. },
  10945. s5: function() {
  10946. return this.Ny
  10947. },
  10948. tba: function() {
  10949. return this.vu
  10950. },
  10951. uba: function() {
  10952. return this.aA
  10953. },
  10954. sba: function() {
  10955. return !1
  10956. },
  10957. vba: function() {
  10958. return !1
  10959. },
  10960. pba: function() {
  10961. return !1
  10962. },
  10963. qba: function() {
  10964. return this.Zz
  10965. },
  10966. rba: function() {
  10967. return this.$z
  10968. },
  10969. wba: function() {
  10970. return this.bA
  10971. },
  10972. On: function(a) {
  10973. return -1 < this.Qs.indexOf(a)
  10974. },
  10975. o6: function(d, a) {
  10976. this.bn || this.$h();
  10977. var c = this.zq;
  10978. return c[d] ? c[d] : a
  10979. },
  10980. bba: function(c, a) {
  10981. this.zq[c] = a
  10982. },
  10983. KT: function() {
  10984. 0 === b.cg && (b.log(""), b.log(b.j.gT), b.log(""))
  10985. },
  10986. oU: function() {
  10987. if (b.ua !== b.dc) {
  10988. this.bn || this.$h();
  10989. var e = b.s,
  10990. a = this.zq;
  10991. a["gl.vendor"] = e.getParameter(e.VENDOR);
  10992. a["gl.renderer"] = e.getParameter(e.RENDERER);
  10993. a["gl.version"] = e.getParameter(e.VERSION);
  10994. this.Qs = "";
  10995. for (var c = e.getSupportedExtensions(), d = 0; d < c.length; d++) {
  10996. this.Qs += c[d] + " "
  10997. }
  10998. this.aq = e.getParameter(e.MAX_TEXTURE_SIZE);
  10999. a["gl.max_texture_size"] = this.aq;
  11000. this.Ny = e.getParameter(e.MAX_COMBINED_TEXTURE_IMAGE_UNITS);
  11001. a["gl.max_texture_units"] = this.Ny;
  11002. this.aA = this.On("GL_IMG_texture_compression_pvrtc");
  11003. a["gl.supports_PVRTC"] = this.aA;
  11004. this.vu = !1;
  11005. a["gl.supports_NPOT"] = this.vu;
  11006. this.Zz = this.On("GL_IMG_texture_format_BGRA888");
  11007. a["gl.supports_BGRA8888"] = this.Zz;
  11008. this.$z = this.On("GL_EXT_discard_framebuffer");
  11009. a["gl.supports_discard_framebuffer"] = this.$z;
  11010. this.bA = this.On("vertex_array_object");
  11011. a["gl.supports_vertex_array_object"] = this.bA;
  11012. b.Pn()
  11013. }
  11014. },
  11015. W7: function(d) {
  11016. this.bn || this.$h();
  11017. var a = b.S.De(d);
  11018. if (!a) {
  11019. throw "Please load the resource first : " + d
  11020. }
  11021. b.assert(a, b.j.iT, d);
  11022. if (a = a.data) {
  11023. for (var c in a) {
  11024. this.zq[c] = a[c]
  11025. }
  11026. } else {
  11027. b.log(b.j.hT, d)
  11028. }
  11029. }
  11030. };
  11031. b.df = 0;
  11032. b.LC = function(c) {
  11033. b.dr(b.Ng, c);
  11034. var a = new b.e.U;
  11035. b.dr(b.Mg, a);
  11036. c.multiply(a)
  11037. };
  11038. b.Ja = b.Ia.extend({
  11039. g1: !1,
  11040. bq: !1,
  11041. td: !1,
  11042. cu: !1,
  11043. Mj: !1,
  11044. tm: 0,
  11045. Ty: 0,
  11046. hq: 0,
  11047. sm: 0,
  11048. Kk: 1,
  11049. Jp: !1,
  11050. vj: 0,
  11051. dy: 0,
  11052. Ie: null,
  11053. Je: null,
  11054. Oe: null,
  11055. Hb: null,
  11056. Ej: null,
  11057. hh: null,
  11058. Qt: null,
  11059. rg: null,
  11060. nh: null,
  11061. jz: null,
  11062. rc: null,
  11063. sd: 0,
  11064. wq: 0,
  11065. uz: 0,
  11066. T0: null,
  11067. Pc: null,
  11068. Le: null,
  11069. st: null,
  11070. Yx: null,
  11071. $x: null,
  11072. Zx: null,
  11073. ctor: function() {
  11074. var a = this;
  11075. a.Ej = Date.now();
  11076. b.ka.vA(b.Ma.Zr, function() {
  11077. a.Ej = Date.now()
  11078. })
  11079. },
  11080. oa: function() {
  11081. this.Ty = this.tm = 1 / b.sT;
  11082. this.nh = [];
  11083. this.hq = b.Ja.RM;
  11084. this.jz = null;
  11085. this.dy = this.sm = 0;
  11086. this.Jp = !1;
  11087. this.wq = this.sd = 0;
  11088. this.Ej = Date.now();
  11089. this.cu = this.td = !1;
  11090. this.Hb = b.size(0, 0);
  11091. this.rg = null;
  11092. this.Kk = 1;
  11093. this.Pc = new b.lm;
  11094. b.tC ? (this.Le = new b.tC, this.Pc.fk(this.Le, b.lm.hp, !1)) : this.Le = null;
  11095. this.Yx = new b.vk(b.Ja.JL);
  11096. this.Yx.setUserData(this);
  11097. this.$x = new b.vk(b.Ja.LL);
  11098. this.$x.setUserData(this);
  11099. this.Zx = new b.vk(b.Ja.KL);
  11100. this.Zx.setUserData(this);
  11101. this.st = new b.vk(b.Ja.ML);
  11102. this.st.setUserData(this);
  11103. return !0
  11104. },
  11105. ZS: function() {
  11106. var a = Date.now();
  11107. this.bq ? (this.vj = 0, this.bq = !1) : this.vj = (a - this.Ej) / 1000;
  11108. 0 < b.Ma.ld[b.Ma.rf.Oq] && 0.2 < this.vj && (this.vj = 1 / 60);
  11109. this.Ej = a
  11110. },
  11111. uI: null,
  11112. vI: null,
  11113. IT: function() {
  11114. var a = b.Za;
  11115. this.ZS();
  11116. this.td || (this.Pc.update(this.vj), b.ka.dispatchEvent(this.Zx));
  11117. this.tj();
  11118. this.hh && this.FX();
  11119. this.zx && this.zx();
  11120. this.rc && (!0 === a.af ? (b.Za.rI(), this.rc.i.kg = 0, this.rc.ga(), a.ZJ()) : !0 === a.ba() && a.transform(), b.ka.dispatchEvent(this.$x));
  11121. this.Qt && this.Qt.ga();
  11122. this.Jp && this.GR();
  11123. this.ux && this.ux();
  11124. a.wb(b.s);
  11125. b.ka.dispatchEvent(this.Yx);
  11126. this.wq++;
  11127. this.Jp && this.iP()
  11128. },
  11129. zx: null,
  11130. ux: null,
  11131. end: function() {
  11132. this.cu = !0
  11133. },
  11134. K4: function() {
  11135. return this.Kk
  11136. },
  11137. w5: function() {
  11138. return this.Qt
  11139. },
  11140. Ea: function() {
  11141. return b.size(this.Hb)
  11142. },
  11143. rB: function() {
  11144. return b.size(this.Hb.width * this.Kk, this.Hb.height * this.Kk)
  11145. },
  11146. ao: null,
  11147. bv: null,
  11148. bo: null,
  11149. pause: function() {
  11150. this.td || (this.Ty = this.tm, this.jK(0.25), this.td = !0)
  11151. },
  11152. l9: function() {
  11153. b.assert(this.rc, b.j.zL);
  11154. this.nh.pop();
  11155. var a = this.nh.length;
  11156. 0 === a ? this.end() : (this.Mj = !0, this.hh = this.nh[a - 1])
  11157. },
  11158. KW: function() {
  11159. b.Ku.tj();
  11160. b.W.tj();
  11161. b.Ra.tj()
  11162. },
  11163. LW: function() {
  11164. this.th().TY();
  11165. b.ka && b.ka.Wc(!1);
  11166. this.rc && (this.rc.Eh(), this.rc.Ib(), this.rc.Od());
  11167. this.hh = this.rc = null;
  11168. this.nh.length = 0;
  11169. this.KK();
  11170. this.KW();
  11171. b.Pn()
  11172. },
  11173. MW: function(a) {
  11174. b.assert(a, b.j.IC);
  11175. this.Mj = !1;
  11176. this.nh.push(a);
  11177. this.hh = a
  11178. },
  11179. Jg: function(c) {
  11180. b.assert(c, b.j.IC);
  11181. if (this.rc) {
  11182. var a = this.nh.length;
  11183. 0 === a ? (this.Mj = !0, this.nh[a] = c) : (this.Mj = !0, this.nh[a - 1] = c);
  11184. this.hh = c
  11185. } else {
  11186. this.MW(c), this.JK()
  11187. }
  11188. },
  11189. ek: function() {
  11190. this.td && (this.jK(this.Ty), (this.Ej = Date.now()) || b.log(b.j.BL), this.td = !1, this.vj = 0)
  11191. },
  11192. I$: function(a) {
  11193. a !== this.Kk && (this.Kk = a, this.Im())
  11194. },
  11195. aC: null,
  11196. K$: function() {},
  11197. iaa: function(a) {
  11198. this.bq = a
  11199. },
  11200. FX: function() {
  11201. var c = !1,
  11202. a = !1;
  11203. b.aa && (c = this.rc ? this.rc instanceof b.aa : !1, a = this.hh ? this.hh instanceof b.aa : !1);
  11204. if (!a) {
  11205. if (a = this.rc) {
  11206. a.Eh(), a.Ib()
  11207. }
  11208. this.Mj && a && a.Od()
  11209. }
  11210. this.rc = this.hh;
  11211. b.Za.af = !0;
  11212. this.hh = null;
  11213. c || null === this.rc || (this.rc.X(), this.rc.Kl())
  11214. },
  11215. laa: function(a) {
  11216. this.Qt = a
  11217. },
  11218. P4: function() {
  11219. return this.jz
  11220. },
  11221. N$: function(a) {
  11222. this.jz = a
  11223. },
  11224. Tv: null,
  11225. Sl: null,
  11226. jC: null,
  11227. VU: null,
  11228. Zn: null,
  11229. iK: null,
  11230. GR: function() {
  11231. this.sd++;
  11232. this.sm += this.vj;
  11233. this.Ie && this.Je && this.Oe ? (this.sm > b.wL && (this.Je.string = this.uz.toFixed(3), this.dy = this.sd / this.sm, this.sm = this.sd = 0, this.Ie.string = this.dy.toFixed(1), this.Oe.string = (0 | b.df).toString()), this.Ie.ga(), this.Je.ga(), this.Oe.ga()) : this.Im();
  11234. b.df = 0
  11235. },
  11236. k7: function() {
  11237. return this.Mj
  11238. },
  11239. N5: function() {
  11240. return this.rc
  11241. },
  11242. x4: function() {
  11243. return this.tm
  11244. },
  11245. X6: function() {
  11246. return this.Jp
  11247. },
  11248. tX: function(a) {
  11249. this.Jp = a
  11250. },
  11251. S5: function() {
  11252. return this.uz
  11253. },
  11254. b7: function() {
  11255. return this.bq
  11256. },
  11257. d7: function() {
  11258. return this.td
  11259. },
  11260. f6: function() {
  11261. return this.wq
  11262. },
  11263. m9: function() {
  11264. this.LJ(1)
  11265. },
  11266. LJ: function(e) {
  11267. b.assert(this.rc, b.j.AL);
  11268. var a = this.nh,
  11269. c = a.length;
  11270. if (0 === c) {
  11271. this.end()
  11272. } else {
  11273. if (!(e > c)) {
  11274. for (; c > e;) {
  11275. var d = a.pop();
  11276. d.running && (d.Eh(), d.Ib());
  11277. d.Od();
  11278. c--
  11279. }
  11280. this.hh = a[a.length - 1];
  11281. this.Mj = !1
  11282. }
  11283. }
  11284. },
  11285. th: function() {
  11286. return this.Pc
  11287. },
  11288. zK: function(a) {
  11289. this.Pc !== a && (this.Pc = a)
  11290. },
  11291. Wu: function() {
  11292. return this.Le
  11293. },
  11294. gK: function(a) {
  11295. this.Le !== a && (this.Le = a)
  11296. },
  11297. Q4: function() {
  11298. return this.vj
  11299. },
  11300. Im: null,
  11301. iP: function() {
  11302. this.uz = (Date.now() - this.Ej) / 1000
  11303. }
  11304. });
  11305. b.Ja.ML = "director_projection_changed";
  11306. b.Ja.JL = "director_after_draw";
  11307. b.Ja.LL = "director_after_visit";
  11308. b.Ja.KL = "director_after_update";
  11309. b.DL = b.Ja.extend({
  11310. ov: !1,
  11311. JK: function() {
  11312. this.bq = !0;
  11313. this.ov = !1
  11314. },
  11315. mW: function() {
  11316. this.cu ? (this.cu = !1, this.LW()) : this.ov || this.IT()
  11317. },
  11318. KK: function() {
  11319. this.ov = !0
  11320. },
  11321. jK: function(a) {
  11322. this.tm = a;
  11323. this.ov || (this.KK(), this.JK())
  11324. }
  11325. });
  11326. b.Ja.lC = null;
  11327. b.Ja.II = !0;
  11328. b.Ja.py = function() {
  11329. b.Ja.II && (b.Ja.II = !1, b.Ja.lC = new b.DL, b.Ja.lC.oa());
  11330. return b.Ja.lC
  11331. };
  11332. b.sT = 60;
  11333. b.Ja.PM = 0;
  11334. b.Ja.bD = 1;
  11335. b.Ja.QM = 3;
  11336. b.Ja.RM = b.Ja.bD;
  11337. b.ua === b.dc ? (w = b.Ja.prototype, w.Sl = function(a) {
  11338. this.hq = a;
  11339. b.ka.dispatchEvent(this.st)
  11340. }, w.aC = function() {}, w.Tv = function(a) {
  11341. this.Hb.width = b.Oa.width;
  11342. this.Hb.height = b.Oa.height;
  11343. this.rg = a || b.view;
  11344. b.ka && b.ka.Wc(!0)
  11345. }, w.tj = function() {
  11346. var c = this.rg.Nd,
  11347. a = b.s.getContext();
  11348. a.setTransform(1, 0, 0, 1, 0, 0);
  11349. a.clearRect(-c.x, c.y, c.width, c.height)
  11350. }, w.Im = function() {
  11351. var a = 0,
  11352. a = this.Hb.width > this.Hb.height ? 0 | this.Hb.height / 320 * 24 : 0 | this.Hb.width / 320 * 24;
  11353. this.Ie = new b.J("000.0", "Arial", a);
  11354. this.Je = new b.J("0.000", "Arial", a);
  11355. this.Oe = new b.J("0000", "Arial", a);
  11356. a = b.lw;
  11357. this.Oe.G(this.Oe.width / 2 + a.x, 5 * this.Oe.height / 2 + a.y);
  11358. this.Je.G(this.Je.width / 2 + a.x, 3 * this.Je.height / 2 + a.y);
  11359. this.Ie.G(this.Ie.width / 2 + a.x, this.Ie.height / 2 + a.y)
  11360. }, w.ao = function() {
  11361. return this.Ea()
  11362. }, w.bv = function() {
  11363. return b.d(0, 0)
  11364. }) : (b.Ja.Op = new Image, b.Qa(b.Ja.Op, "load", function() {
  11365. b.Ja.uF = !0
  11366. }), b.Op && (b.Ja.Op.src = b.Op));
  11367. b.ua === b.Lb && function() {
  11368. b.$Z = b.Ia.extend({
  11369. Sba: function() {}
  11370. });
  11371. var a = b.Ja.prototype;
  11372. a.Sl = function(e) {
  11373. var f = this.Hb;
  11374. this.jC();
  11375. var g = this.rg,
  11376. h = g.Nd.x / g.Ca,
  11377. g = g.Nd.y / g.ib;
  11378. switch (e) {
  11379. case b.Ja.PM:
  11380. b.Gg(b.Ng);
  11381. b.io();
  11382. f = b.e.U.IA(-h, f.width - h, -g, f.height - g, -1024, 1024);
  11383. b.jo(f);
  11384. b.Gg(b.Mg);
  11385. b.io();
  11386. break;
  11387. case b.Ja.bD:
  11388. var k = this.bo(),
  11389. c = new b.e.U,
  11390. d = new b.e.U;
  11391. b.Gg(b.Ng);
  11392. b.io();
  11393. c = b.e.U.rT(f.width / f.height, 2 * k);
  11394. b.jo(c);
  11395. b.Gg(b.Mg);
  11396. b.io();
  11397. d.JB(new b.e.ta(-h + f.width / 2, -g + f.height / 2, k), new b.e.ta(-h + f.width / 2, -g + f.height / 2, 0), new b.e.ta(0, 1, 0));
  11398. b.jo(d);
  11399. break;
  11400. case b.Ja.QM:
  11401. break;
  11402. default:
  11403. b.log(b.j.CL)
  11404. }
  11405. this.hq = e;
  11406. b.ka.dispatchEvent(this.st);
  11407. b.wK();
  11408. b.Za.af = !0
  11409. };
  11410. a.aC = function(d) {
  11411. var c = b.s;
  11412. d ? (c.clearDepth(1), c.enable(c.DEPTH_TEST), c.depthFunc(c.LEQUAL)) : c.disable(c.DEPTH_TEST)
  11413. };
  11414. a.Tv = function(c) {
  11415. this.Hb.width = b.Oa.width;
  11416. this.Hb.height = b.Oa.height;
  11417. this.rg = c || b.view;
  11418. c = b.Qn;
  11419. c.oU();
  11420. c.KT();
  11421. this.Im();
  11422. this.qK();
  11423. b.ka && b.ka.Wc(!0)
  11424. };
  11425. a.tj = function() {
  11426. var c = b.s;
  11427. c.clear(c.COLOR_BUFFER_BIT | c.DEPTH_BUFFER_BIT)
  11428. };
  11429. a.zx = function() {
  11430. b.rv()
  11431. };
  11432. a.ux = function() {
  11433. b.qv()
  11434. };
  11435. a.Im = function() {
  11436. if (!b.Zc) {
  11437. this.nP()
  11438. } else {
  11439. if (null != b.Ja.uF && !1 !== b.Ja.uF) {
  11440. var e = new b.ca;
  11441. e.mc(b.Ja.Op);
  11442. e.fb();
  11443. var c = b.view.fB().height / 320;
  11444. 0 === c && (c = this.Hb.height / 320);
  11445. var d = new b.Zc;
  11446. d.Ez(!0);
  11447. d.Qd("00.0", e, 12, 32, ".");
  11448. d.scale = c;
  11449. this.Ie = d;
  11450. d = new b.Zc;
  11451. d.Ez(!0);
  11452. d.Qd("0.000", e, 12, 32, ".");
  11453. d.scale = c;
  11454. this.Je = d;
  11455. d = new b.Zc;
  11456. d.Ez(!0);
  11457. d.Qd("000", e, 12, 32, ".");
  11458. d.scale = c;
  11459. this.Oe = d;
  11460. e = b.lw;
  11461. this.Oe.G(e.x, 34 * c + e.y);
  11462. this.Je.G(e.x, 17 * c + e.y);
  11463. this.Ie.G(e)
  11464. }
  11465. }
  11466. };
  11467. a.nP = function() {
  11468. var c = 0,
  11469. c = this.Hb.width > this.Hb.height ? 0 | this.Hb.height / 320 * 24 : 0 | this.Hb.width / 320 * 24;
  11470. this.Ie = new b.J("000.0", "Arial", c);
  11471. this.Je = new b.J("0.000", "Arial", c);
  11472. this.Oe = new b.J("0000", "Arial", c);
  11473. c = b.lw;
  11474. this.Oe.G(this.Oe.width / 2 + c.x, 5 * this.Oe.height / 2 + c.y);
  11475. this.Je.G(this.Je.width / 2 + c.x, 3 * this.Je.height / 2 + c.y);
  11476. this.Ie.G(this.Ie.width / 2 + c.x, this.Ie.height / 2 + c.y)
  11477. };
  11478. a.uI = function(f) {
  11479. var c = new b.e.U;
  11480. b.LC(c);
  11481. var d = c.inverse(),
  11482. c = c.m[14] / c.m[15],
  11483. e = this.rg.fB();
  11484. f = new b.e.ta(2 * f.x / e.width - 1, 1 - 2 * f.y / e.height, c);
  11485. f.PK(d);
  11486. return b.d(f.x, f.y)
  11487. };
  11488. a.vI = function(d) {
  11489. var c = new b.e.U;
  11490. b.LC(c);
  11491. d = new b.e.ta(d.x, d.y, 0);
  11492. d.PK(c);
  11493. c = this.rg.fB();
  11494. return b.d(c.width * (0.5 * d.x + 0.5), c.height * (0.5 * -d.y + 0.5))
  11495. };
  11496. a.ao = function() {
  11497. return this.rg.ao()
  11498. };
  11499. a.bv = function() {
  11500. return this.rg.bv()
  11501. };
  11502. a.bo = function() {
  11503. return this.Hb.height / 1.1566
  11504. };
  11505. a.jC = function() {
  11506. var d = this.rg;
  11507. if (d) {
  11508. var c = this.Hb;
  11509. d.gY(-d.Nd.x / d.Ca, -d.Nd.y / d.ib, c.width, c.height)
  11510. }
  11511. };
  11512. a.VU = function() {
  11513. return this.rg
  11514. };
  11515. a.Zn = function() {
  11516. return this.hq
  11517. };
  11518. a.iK = function(c) {
  11519. c ? b.Vf(b.qf, b.pf) : b.Vf(b.s.ONE, b.s.ZERO)
  11520. };
  11521. a.qK = function() {
  11522. this.iK(!0);
  11523. this.aC(!1);
  11524. this.Sl(this.hq);
  11525. b.s.clearColor(0, 0, 0, 1)
  11526. }
  11527. }();
  11528. b.Go = b.Ia.extend({
  11529. Om: null,
  11530. Pm: null,
  11531. Qm: null,
  11532. Gk: null,
  11533. Hk: null,
  11534. Ik: null,
  11535. Gn: null,
  11536. Hn: null,
  11537. In: null,
  11538. Ka: !1,
  11539. gn: null,
  11540. ctor: function() {
  11541. this.gn = new b.e.U;
  11542. this.restore()
  11543. },
  11544. description: function() {
  11545. return "\x3cCCCamera | center \x3d(" + this.Gk + "," + this.Hk + "," + this.Ik + ")\x3e"
  11546. },
  11547. mK: function(a) {
  11548. this.Ka = a
  11549. },
  11550. DB: function() {
  11551. return this.Ka
  11552. },
  11553. restore: function() {
  11554. this.Om = this.Pm = 0;
  11555. this.Qm = b.Go.bo();
  11556. this.Gn = this.Gk = this.Hk = this.Ik = 0;
  11557. this.Hn = 1;
  11558. this.In = 0;
  11559. this.gn.wd();
  11560. this.Ka = !1
  11561. },
  11562. X7: function() {
  11563. this.Ka && (this.gn.JB(new b.e.ta(this.Om, this.Pm, this.Qm), new b.e.ta(this.Gk, this.Hk, this.Ik), new b.e.ta(this.Gn, this.Hn, this.In)), this.Ka = !1);
  11564. b.jo(this.gn)
  11565. },
  11566. Ky: function(a) {
  11567. this.Ka && (this.gn.JB(new b.e.ta(this.Om, this.Pm, this.Qm), new b.e.ta(this.Gk, this.Hk, this.Ik), new b.e.ta(this.Gn, this.Hn, this.In)), this.Ka = !1);
  11568. a.multiply(this.gn)
  11569. },
  11570. S$: function(d, a, c) {
  11571. this.oK(d, a, c)
  11572. },
  11573. oK: function(d, a, c) {
  11574. this.Om = d;
  11575. this.Pm = a;
  11576. this.Qm = c;
  11577. this.Ka = !0
  11578. },
  11579. D$: function(d, a, c) {
  11580. this.nX(d, a, c)
  11581. },
  11582. nX: function(d, a, c) {
  11583. this.Gk = d;
  11584. this.Hk = a;
  11585. this.Ik = c;
  11586. this.Ka = !0
  11587. },
  11588. Zaa: function(d, a, c) {
  11589. this.bY(d, a, c)
  11590. },
  11591. bY: function(d, a, c) {
  11592. this.Gn = d;
  11593. this.Hn = a;
  11594. this.In = c;
  11595. this.Ka = !0
  11596. },
  11597. Z4: function() {
  11598. return {
  11599. x: this.Om,
  11600. y: this.Pm,
  11601. z: this.Qm
  11602. }
  11603. },
  11604. QI: function() {
  11605. return {
  11606. x: this.Om,
  11607. y: this.Pm,
  11608. z: this.Qm
  11609. }
  11610. },
  11611. F4: function() {
  11612. return {
  11613. x: this.Gk,
  11614. y: this.Hk,
  11615. z: this.Ik
  11616. }
  11617. },
  11618. OI: function() {
  11619. return {
  11620. x: this.Gk,
  11621. y: this.Hk,
  11622. z: this.Ik
  11623. }
  11624. },
  11625. l6: function() {
  11626. return {
  11627. x: this.Gn,
  11628. y: this.Hn,
  11629. z: this.In
  11630. }
  11631. },
  11632. mV: function() {
  11633. return {
  11634. x: this.Gn,
  11635. y: this.Hn,
  11636. z: this.In
  11637. }
  11638. },
  11639. G0: function() {}
  11640. });
  11641. b.Go.bo = function() {
  11642. return b.ps
  11643. };
  11644. b.a0 = b.hp + 1;
  11645. b.QC = function(e, a, c, d) {
  11646. this.next = null;
  11647. this.Eg = e;
  11648. this.target = a;
  11649. this.no = c;
  11650. this.paused = d;
  11651. this.Ki = !1
  11652. };
  11653. b.NC = function(e, a, c, d) {
  11654. this.list = e;
  11655. this.cf = a;
  11656. this.target = c;
  11657. this.Eg = null;
  11658. this.hv = d
  11659. };
  11660. b.YL = b.E6 = function(e, f, g, h, a, c, d) {
  11661. this.ie = e;
  11662. this.target = f;
  11663. this.zo = g;
  11664. this.Lq = h;
  11665. this.Mq = a;
  11666. this.paused = c;
  11667. this.hv = d
  11668. };
  11669. b.gx = b.Ia.extend({
  11670. Pc: null,
  11671. Ab: 0,
  11672. iu: !1,
  11673. yq: !1,
  11674. nl: 0,
  11675. gu: 0,
  11676. Hp: 0,
  11677. bh: 0,
  11678. o5: function() {
  11679. return this.bh
  11680. },
  11681. setInterval: function(a) {
  11682. this.bh = a
  11683. },
  11684. EK: function(d, a, c) {
  11685. this.Ab = -1;
  11686. this.bh = d;
  11687. this.Hp = c;
  11688. this.yq = 0 < this.Hp;
  11689. this.gu = a;
  11690. this.iu = this.gu === b.fg
  11691. },
  11692. lk: function() {
  11693. return 0
  11694. },
  11695. cancel: function() {
  11696. return 0
  11697. },
  11698. ctor: function() {
  11699. this.Pc = null;
  11700. this.Ab = -1;
  11701. this.yq = this.iu = !1;
  11702. this.bh = this.Hp = this.gu = this.nl = 0
  11703. },
  11704. update: function(a) {
  11705. -1 === this.Ab ? this.nl = this.Ab = 0 : (this.Ab += a, this.iu && !this.yq ? this.Ab >= this.bh && (this.lk(), this.Ab = 0) : (this.yq ? this.Ab >= this.Hp && (this.lk(), this.Ab -= this.Hp, this.nl += 1, this.yq = !1) : this.Ab >= this.bh && (this.lk(), this.Ab = 0, this.nl += 1), !this.iu && this.nl > this.gu && this.cancel()))
  11706. }
  11707. });
  11708. b.yO = b.gx.extend({
  11709. Sc: null,
  11710. Lj: null,
  11711. ctor: function() {
  11712. this.Lj = this.Sc = null
  11713. },
  11714. GV: function(f, g, a, c, d, e) {
  11715. this.Pc = f;
  11716. this.Sc = a;
  11717. this.Lj = g;
  11718. this.EK(c, d, e);
  11719. return !0
  11720. },
  11721. U5: function() {
  11722. return this.Lj
  11723. },
  11724. lk: function() {
  11725. this.Sc && this.Lj && this.Sc.call(this.Lj, this.Ab)
  11726. },
  11727. cancel: function() {
  11728. this.Pc.Ri(this.Lj, this.Sc)
  11729. }
  11730. });
  11731. b.xO = b.gx.extend({
  11732. Sc: null,
  11733. bd: null,
  11734. Gy: null,
  11735. ctor: function() {
  11736. this.bd = this.Sc = null
  11737. },
  11738. Hl: function(e, f, g, h, a, c, d) {
  11739. this.Pc = e;
  11740. this.Sc = g;
  11741. this.bd = f;
  11742. this.Gy = h;
  11743. this.EK(a, c, d);
  11744. return !0
  11745. },
  11746. E4: function() {
  11747. return this.bd
  11748. },
  11749. getKey: function() {
  11750. return this.Gy
  11751. },
  11752. lk: function() {
  11753. this.bd && this.bd.call(this.Sc, this.Ab)
  11754. },
  11755. cancel: function() {
  11756. this.Pc.Ri(this.Gy, this.Sc)
  11757. }
  11758. });
  11759. b.lm = b.Ia.extend({
  11760. vq: 1,
  11761. Sj: null,
  11762. Rj: null,
  11763. Tj: null,
  11764. Zh: null,
  11765. vm: null,
  11766. og: null,
  11767. Mb: null,
  11768. Yg: !1,
  11769. xq: !1,
  11770. ctor: function() {
  11771. this.vq = 1;
  11772. this.Sj = [];
  11773. this.Rj = [];
  11774. this.Tj = [];
  11775. this.og = {};
  11776. this.Zh = {};
  11777. this.Mb = null;
  11778. this.xq = this.Yg = !1;
  11779. this.vm = []
  11780. },
  11781. kR: function(f, a, c, d) {
  11782. var e = this.og[a.Y];
  11783. if (e && e.cf) {
  11784. if (e.cf.no !== c) {
  11785. if (this.xq) {
  11786. b.log("warning: you CANNOT change update priority in scheduled function");
  11787. e.cf.Ki = !1;
  11788. e.cf.paused = d;
  11789. return
  11790. }
  11791. this.Si(a)
  11792. } else {
  11793. e.cf.Ki = !1;
  11794. e.cf.paused = d;
  11795. return
  11796. }
  11797. }
  11798. 0 === c ? this.dP(this.Rj, f, a, d) : 0 > c ? this.CG(this.Sj, f, a, c, d) : this.CG(this.Tj, f, a, c, d)
  11799. },
  11800. mz: function(a) {
  11801. delete this.Zh[a.target.Y];
  11802. b.fe(this.vm, a);
  11803. a.gx = null;
  11804. a.target = null
  11805. },
  11806. eu: function(a) {
  11807. if (a = this.og[a.target.Y]) {
  11808. b.fe(a.list, a.cf), delete this.og[a.target.Y], a.cf = null, a.target = null
  11809. }
  11810. },
  11811. CG: function(f, g, a, c, d) {
  11812. g = new b.QC(g, a, c, d);
  11813. if (f) {
  11814. d = f.length - 1;
  11815. for (var e = 0; e <= d && !(c < f[e].no); e++) {}
  11816. f.splice(e, 0, g)
  11817. } else {
  11818. f = [], f.push(g)
  11819. }
  11820. this.og[a.Y] = new b.NC(f, g, a);
  11821. return f
  11822. },
  11823. dP: function(e, a, c, d) {
  11824. a = new b.QC(a, c, 0, d);
  11825. e.push(a);
  11826. this.og[c.Y] = new b.NC(e, a, c, null)
  11827. },
  11828. BK: function(a) {
  11829. this.vq = a
  11830. },
  11831. d6: function() {
  11832. return this.vq
  11833. },
  11834. update: function(f) {
  11835. this.xq = !0;
  11836. 1 !== this.vq && (f *= this.vq);
  11837. var a, c, d, e;
  11838. a = 0;
  11839. c = this.Sj;
  11840. for (d = c.length; a < d; a++) {
  11841. e = c[a], e.paused || e.Ki || e.Eg(f)
  11842. }
  11843. a = 0;
  11844. c = this.Rj;
  11845. for (d = c.length; a < d; a++) {
  11846. e = c[a], e.paused || e.Ki || e.Eg(f)
  11847. }
  11848. a = 0;
  11849. c = this.Tj;
  11850. for (d = c.length; a < d; a++) {
  11851. e = c[a], e.paused || e.Ki || e.Eg(f)
  11852. }
  11853. d = this.vm;
  11854. for (a = 0; a < d.length; a++) {
  11855. this.Mb = c = d[a];
  11856. this.Yg = !1;
  11857. if (!c.paused) {
  11858. for (c.zo = 0; c.zo < c.ie.length; ++c.zo) {
  11859. c.Lq = c.ie[c.zo], c.Mq = !1, c.Lq.update(f), c.Lq = null
  11860. }
  11861. }
  11862. this.Yg && 0 === this.Mb.ie.length && this.mz(this.Mb)
  11863. }
  11864. a = 0;
  11865. for (c = this.Sj; a < c.length;) {
  11866. e = c[a], e.Ki ? this.eu(e) : a++
  11867. }
  11868. a = 0;
  11869. for (c = this.Rj; a < c.length;) {
  11870. e = c[a], e.Ki ? this.eu(e) : a++
  11871. }
  11872. a = 0;
  11873. for (c = this.Tj; a < c.length;) {
  11874. e = c[a], e.Ki ? this.eu(e) : a++
  11875. }
  11876. this.xq = !1;
  11877. this.Mb = null
  11878. },
  11879. o$: function(f, g, a, c, d, e) {
  11880. this.Ni(g, f, a, c, d, e, f.Y + "")
  11881. },
  11882. Ni: function(a, c, e, h, k, m, n) {
  11883. var p = !1;
  11884. if ("function" !== typeof a) {
  11885. var r = a,
  11886. p = !0
  11887. }!1 === p ? 5 === arguments.length && (n = k, m = h, k = 0, h = b.fg) : 4 === arguments.length && (m = h, h = b.fg, k = 0);
  11888. b.assert(c, b.j.tN);
  11889. !1 === p && b.assert(n, "key should not be empty!");
  11890. var d = this.Zh[c.Y];
  11891. d ? b.assert(d.paused === m, "") : (d = new b.YL(null, c, 0, null, null, m, null), this.vm.push(d), this.Zh[c.Y] = d);
  11892. var f, g;
  11893. if (null == d.ie) {
  11894. d.ie = []
  11895. } else {
  11896. if (!1 === p) {
  11897. for (g = 0; g < d.ie.length; g++) {
  11898. if (f = d.ie[g], a === f.bd) {
  11899. b.log(b.j.sN, f.bh.toFixed(4), e.toFixed(4));
  11900. f.bh = e;
  11901. return
  11902. }
  11903. }
  11904. } else {
  11905. for (g = 0; g < d.ie.length; ++g) {
  11906. if ((f = d.ie[g]) && r === f.Lj) {
  11907. b.log("CCScheduler#scheduleSelector. Selector already scheduled. Updating interval from: %.4f to %.4f", f.bh, e);
  11908. f.setInterval(e);
  11909. return
  11910. }
  11911. }
  11912. }
  11913. }!1 === p ? (f = new b.xO, f.Hl(this, a, c, n, e, h, k)) : (f = new b.yO, f.GV(this, r, c, e, h, k));
  11914. d.ie.push(f)
  11915. },
  11916. fk: function(d, a, c) {
  11917. this.kR(function(e) {
  11918. d.update(e)
  11919. }, d, a, c)
  11920. },
  11921. gQ: function(c, a) {
  11922. switch (typeof c) {
  11923. case "number":
  11924. case "string":
  11925. return c === a.getKey();
  11926. case "function":
  11927. return c === a.bd;
  11928. default:
  11929. return c === a.Lj
  11930. }
  11931. },
  11932. Ri: function(e, f) {
  11933. if (f && e) {
  11934. var g = this.Zh[f.Y];
  11935. if (g) {
  11936. for (var h = g.ie, a = 0, c = h.length; a < c; a++) {
  11937. var d = h[a];
  11938. if (this.gQ(e, d)) {
  11939. d !== g.Lq || g.Mq || (g.Mq = !0);
  11940. h.splice(a, 1);
  11941. g.zo >= a && g.zo--;
  11942. 0 === h.length && (this.Mb === g ? this.Yg = !0 : this.mz(g));
  11943. break
  11944. }
  11945. }
  11946. }
  11947. }
  11948. },
  11949. Si: function(a) {
  11950. null != a && (a = this.og[a.Y]) && (this.xq ? a.cf.Ki = !0 : this.eu(a.cf))
  11951. },
  11952. QK: function(c) {
  11953. if (null != c) {
  11954. var a = this.Zh[c.Y];
  11955. a && (-1 < a.ie.indexOf(a.Lq) && !a.Mq && (a.Mq = !0), a.ie.length = 0, this.Mb === a ? this.Yg = !0 : this.mz(a));
  11956. this.Si(c)
  11957. }
  11958. },
  11959. TY: function() {
  11960. this.qC(b.lm.hp)
  11961. },
  11962. qC: function(e) {
  11963. var a, c, d = this.vm;
  11964. for (a = 0; a < d.length; a++) {
  11965. c = d[a], this.QK(c.target)
  11966. }
  11967. if (0 > e) {
  11968. for (a = 0; a < this.Sj.length; a++) {
  11969. (c = this.Sj[a]) && c.no >= e && this.Si(c.target)
  11970. }
  11971. }
  11972. if (0 >= e) {
  11973. for (a = 0; a < this.Rj.length; a++) {
  11974. (c = this.Rj[a]) && this.Si(c.target)
  11975. }
  11976. }
  11977. for (a = 0; a < this.Tj.length; a++) {
  11978. (c = this.Tj[a]) && c.no >= e && this.Si(c.target)
  11979. }
  11980. },
  11981. h7: function(e, a) {
  11982. b.assert(e, "Argument key must not be empty");
  11983. b.assert(a, "Argument target must be non-nullptr");
  11984. var c = this.og[a.Y];
  11985. if (!c) {
  11986. return !1
  11987. }
  11988. if (null != c.ie) {
  11989. for (var c = c.ie, d = 0; d < c.length; ++d) {
  11990. if (e === c[d].getKey()) {
  11991. return !0
  11992. }
  11993. }
  11994. }
  11995. return !1
  11996. },
  11997. g9: function() {
  11998. return this.yW(b.lm.hp)
  11999. },
  12000. yW: function(f) {
  12001. var g = [],
  12002. a, c = this.vm,
  12003. d, e;
  12004. d = 0;
  12005. for (e = c.length; d < e; d++) {
  12006. if (a = c[d]) {
  12007. a.paused = !0, g.push(a.target)
  12008. }
  12009. }
  12010. if (0 > f) {
  12011. for (d = 0; d < this.Sj.length; d++) {
  12012. (c = this.Sj[d]) && c.no >= f && (a.paused = !0, g.push(a.target))
  12013. }
  12014. }
  12015. if (0 >= f) {
  12016. for (d = 0; d < this.Rj.length; d++) {
  12017. if (c = this.Rj[d]) {
  12018. a.paused = !0, g.push(a.target)
  12019. }
  12020. }
  12021. }
  12022. for (d = 0; d < this.Tj.length; d++) {
  12023. (c = this.Tj[d]) && c.no >= f && (a.paused = !0, g.push(a.target))
  12024. }
  12025. return g
  12026. },
  12027. cX: function(c) {
  12028. if (c) {
  12029. for (var a = 0; a < c.length; a++) {
  12030. this.Mi(c[a])
  12031. }
  12032. }
  12033. },
  12034. mo: function(c) {
  12035. b.assert(c, b.j.qN);
  12036. var a = this.Zh[c.Y];
  12037. a && (a.paused = !0);
  12038. if (c = this.og[c.Y]) {
  12039. c.cf.paused = !0
  12040. }
  12041. },
  12042. Mi: function(c) {
  12043. b.assert(c, b.j.rN);
  12044. var a = this.Zh[c.Y];
  12045. a && (a.paused = !1);
  12046. if (c = this.og[c.Y]) {
  12047. c.cf.paused = !1
  12048. }
  12049. },
  12050. o7: function(c) {
  12051. b.assert(c, b.j.pN);
  12052. var a = this.Zh[c.Y];
  12053. return a ? a.paused : (c = this.og[c.Y]) ? c.cf.paused : !1
  12054. },
  12055. p$: function(d, a, c) {
  12056. this.fk(d, a, c)
  12057. },
  12058. Pba: function(c, a) {
  12059. this.Ri(a, c)
  12060. },
  12061. Qba: function(a) {
  12062. this.Si(a)
  12063. },
  12064. Nba: function(a) {
  12065. this.Ri(a.Y + "", a)
  12066. },
  12067. Hr: function() {
  12068. this.qC(b.lm.hp)
  12069. },
  12070. Oba: function(a) {
  12071. this.qC(a)
  12072. }
  12073. });
  12074. b.lm.hp = -2147483648;
  12075. b.YC = 2 * Math.PI;
  12076. b.JC = b.Ia.extend({
  12077. Cx: [],
  12078. s: null,
  12079. ctor: function(a) {
  12080. this.s = a
  12081. },
  12082. ET: function(f, a) {
  12083. a || (a = 1);
  12084. var c = b.view.Ca,
  12085. d = b.d(f.x * c, f.y * b.view.ib),
  12086. e = this.s.getContext();
  12087. e.beginPath();
  12088. e.arc(d.x, -d.y, a * c, 0, 2 * Math.PI, !1);
  12089. e.closePath();
  12090. e.fill()
  12091. },
  12092. FT: function(e, f, g) {
  12093. if (null != e) {
  12094. g || (g = 1);
  12095. f = this.s.getContext();
  12096. var h = b.view.Ca,
  12097. a = b.view.ib;
  12098. f.beginPath();
  12099. for (var c = 0, d = e.length; c < d; c++) {
  12100. f.arc(e[c].x * h, -e[c].y * a, g * h, 0, 2 * Math.PI, !1)
  12101. }
  12102. f.closePath();
  12103. f.fill()
  12104. }
  12105. },
  12106. Bi: function(f, a) {
  12107. var c = this.s.getContext(),
  12108. d = b.view.Ca,
  12109. e = b.view.ib;
  12110. c.beginPath();
  12111. c.moveTo(f.x * d, -f.y * e);
  12112. c.lineTo(a.x * d, -a.y * e);
  12113. c.closePath();
  12114. c.stroke()
  12115. },
  12116. RA: function(c, a) {
  12117. this.Bi(b.d(c.x, c.y), b.d(a.x, c.y));
  12118. this.Bi(b.d(a.x, c.y), b.d(a.x, a.y));
  12119. this.Bi(b.d(a.x, a.y), b.d(c.x, a.y));
  12120. this.Bi(b.d(c.x, a.y), b.d(c.x, c.y))
  12121. },
  12122. JT: function(d, a, c) {
  12123. d = [d, b.d(a.x, d.y), a, b.d(d.x, a.y)];
  12124. this.TA(d, 4, c)
  12125. },
  12126. Tf: function(d, e, f, g) {
  12127. g = g || !1;
  12128. if (null != d) {
  12129. if (3 > d.length) {
  12130. throw Error("Polygon's point must greater than 2")
  12131. }
  12132. var h = d[0];
  12133. e = this.s.getContext();
  12134. var k = b.view.Ca,
  12135. a = b.view.ib;
  12136. e.beginPath();
  12137. e.moveTo(h.x * k, -h.y * a);
  12138. for (var h = 1, c = d.length; h < c; h++) {
  12139. e.lineTo(d[h].x * k, -d[h].y * a)
  12140. }
  12141. f && e.closePath();
  12142. g ? e.fill() : e.stroke()
  12143. }
  12144. },
  12145. TA: function(d, a, c) {
  12146. this.to(c.r, c.g, c.b, c.a);
  12147. this.Tf(d, a, !0, !0)
  12148. },
  12149. NA: function(e, f, g, h, a) {
  12150. a = a || !1;
  12151. h = this.s.getContext();
  12152. var c = b.view.Ca,
  12153. d = b.view.ib;
  12154. h.beginPath();
  12155. h.arc(0 | e.x * c, 0 | -(e.y * d), f * c, -g, -(g - 2 * Math.PI), !1);
  12156. a && h.lineTo(0 | e.x * c, 0 | -(e.y * d));
  12157. h.stroke()
  12158. },
  12159. QA: function(e, f, g, h) {
  12160. for (var a = this.Cx, c = a.length = 0, d = 0; d < h; d++) {
  12161. a.push(b.d(Math.pow(1 - c, 2) * e.x + 2 * (1 - c) * c * f.x + c * c * g.x, Math.pow(1 - c, 2) * e.y + 2 * (1 - c) * c * f.y + c * c * g.y)), c += 1 / h
  12162. }
  12163. a.push(b.d(g.x, g.y));
  12164. this.Tf(a, h + 1, !1, !1)
  12165. },
  12166. OA: function(d, e, f, g, h) {
  12167. for (var k = this.Cx, a = k.length = 0, c = 0; c < h; c++) {
  12168. k.push(b.d(Math.pow(1 - a, 3) * d.x + 3 * Math.pow(1 - a, 2) * a * e.x + 3 * (1 - a) * a * a * f.x + a * a * a * g.x, Math.pow(1 - a, 3) * d.y + 3 * Math.pow(1 - a, 2) * a * e.y + 3 * (1 - a) * a * a * f.y + a * a * a * g.y)), a += 1 / h
  12169. }
  12170. k.push(b.d(g.x, g.y));
  12171. this.Tf(k, h + 1, !1, !1)
  12172. },
  12173. MA: function(c, a) {
  12174. this.Bl(c, 0.5, a)
  12175. },
  12176. Bl: function(d, e, f) {
  12177. b.s.Wv("rgba(255,255,255,1)");
  12178. var g = this.Cx;
  12179. g.length = 0;
  12180. for (var h, k, a = 1 / d.length, c = 0; c < f + 1; c++) {
  12181. k = c / f, 1 === k ? (h = d.length - 1, k = 1) : (h = 0 | k / a, k = (k - a * h) / a), h = b.KZ(b.Gc(d, h - 1), b.Gc(d, h - 0), b.Gc(d, h + 1), b.Gc(d, h + 2), e, k), g.push(h)
  12182. }
  12183. this.Tf(g, f + 1, !1, !1)
  12184. },
  12185. drawImage: function(e, f, g, h, a) {
  12186. var c = arguments.length,
  12187. d = this.s.getContext();
  12188. switch (c) {
  12189. case 2:
  12190. d.drawImage(e, f.x, -(f.y + e.height));
  12191. break;
  12192. case 3:
  12193. d.drawImage(e, f.x, -(f.y + g.height), g.width, g.height);
  12194. break;
  12195. case 5:
  12196. d.drawImage(e, f.x, f.y, g.width, g.height, h.x, -(h.y + a.height), a.width, a.height);
  12197. break;
  12198. default:
  12199. throw Error("Argument must be non-nil")
  12200. }
  12201. },
  12202. f3: function(f, g, a) {
  12203. f = f || this.s;
  12204. var c = f.getContext();
  12205. g *= b.view.Ca;
  12206. a = "rgba(" + (0 | a.r) + "," + (0 | a.g) + "," + (0 | a.b);
  12207. f.Kg(a + ",1)");
  12208. var d = g / 10;
  12209. c.beginPath();
  12210. c.moveTo(-g, g);
  12211. c.lineTo(0, d);
  12212. c.lineTo(g, g);
  12213. c.lineTo(d, 0);
  12214. c.lineTo(g, -g);
  12215. c.lineTo(0, -d);
  12216. c.lineTo(-g, -g);
  12217. c.lineTo(-d, 0);
  12218. c.lineTo(-g, g);
  12219. c.closePath();
  12220. c.fill();
  12221. var e = c.createRadialGradient(0, 0, d, 0, 0, g);
  12222. e.addColorStop(0, a + ", 1)");
  12223. e.addColorStop(0.3, a + ", 0.8)");
  12224. e.addColorStop(1, a + ", 0.0)");
  12225. f.Kg(e);
  12226. c.beginPath();
  12227. c.arc(0, 0, g - d, 0, b.YC, !1);
  12228. c.closePath();
  12229. c.fill()
  12230. },
  12231. d3: function(f, a, c) {
  12232. f = f || this.s;
  12233. var d = f.getContext();
  12234. a *= b.view.Ca;
  12235. c = "rgba(" + (0 | c.r) + "," + (0 | c.g) + "," + (0 | c.b);
  12236. var e = d.createRadialGradient(0, 0, a / 10, 0, 0, a);
  12237. e.addColorStop(0, c + ", 1)");
  12238. e.addColorStop(0.3, c + ", 0.8)");
  12239. e.addColorStop(0.6, c + ", 0.4)");
  12240. e.addColorStop(1, c + ", 0.0)");
  12241. f.Kg(e);
  12242. d.beginPath();
  12243. d.arc(0, 0, a, 0, b.YC, !1);
  12244. d.closePath();
  12245. d.fill()
  12246. },
  12247. fillText: function(d, a, c) {
  12248. this.s.getContext().fillText(d, a, -c)
  12249. },
  12250. to: function(e, a, c, d) {
  12251. this.s.Kg("rgba(" + e + "," + a + "," + c + "," + d / 255 + ")");
  12252. this.s.Wv("rgba(" + e + "," + a + "," + c + "," + d / 255 + ")")
  12253. },
  12254. IX: function() {},
  12255. dC: function(a) {
  12256. this.s.getContext().lineWidth = a * b.view.Ca
  12257. }
  12258. });
  12259. b.GL = b.Ia.extend({
  12260. s: null,
  12261. Up: !1,
  12262. Zb: null,
  12263. Wg: -1,
  12264. oe: null,
  12265. bz: -1,
  12266. az: -1,
  12267. ctor: function(a) {
  12268. null == a && (a = b.s);
  12269. if (!a instanceof WebGLRenderingContext) {
  12270. throw "Can't initialise DrawingPrimitiveWebGL. context need is WebGLRenderingContext"
  12271. }
  12272. this.s = a;
  12273. this.oe = new Float32Array([1, 1, 1, 1])
  12274. },
  12275. Ii: function() {
  12276. this.Up || (this.Zb = b.Ge.Hc(b.Ww), this.Wg = this.s.getUniformLocation(this.Zb.Zu(), "u_color"), this.bz = this.s.getUniformLocation(this.Zb.Zu(), "u_pointSize"), this.Up = !0)
  12277. },
  12278. e3: function() {
  12279. this.Up = !1
  12280. },
  12281. ET: function(d) {
  12282. this.Ii();
  12283. var a = this.s;
  12284. this.Zb.Ub();
  12285. this.Zb.Ih();
  12286. b.tc(b.ad);
  12287. a.uniform4fv(this.Wg, this.oe);
  12288. this.Zb.iC(this.bz, this.az);
  12289. var c = a.createBuffer();
  12290. a.bindBuffer(a.ARRAY_BUFFER, c);
  12291. a.bufferData(a.ARRAY_BUFFER, new Float32Array([d.x, d.y]), a.STATIC_DRAW);
  12292. a.vertexAttribPointer(b.ab, 2, a.FLOAT, !1, 0, 0);
  12293. a.drawArrays(a.POINTS, 0, 1);
  12294. a.deleteBuffer(c);
  12295. b.Xf()
  12296. },
  12297. FT: function(d) {
  12298. if (d && 0 !== d.length) {
  12299. this.Ii();
  12300. var a = this.s;
  12301. this.Zb.Ub();
  12302. this.Zb.Ih();
  12303. b.tc(b.ad);
  12304. a.uniform4fv(this.Wg, this.oe);
  12305. this.Zb.iC(this.bz, this.az);
  12306. var c = a.createBuffer();
  12307. a.bindBuffer(a.ARRAY_BUFFER, c);
  12308. a.bufferData(a.ARRAY_BUFFER, this.au(d), a.STATIC_DRAW);
  12309. a.vertexAttribPointer(b.ab, 2, a.FLOAT, !1, 0, 0);
  12310. a.drawArrays(a.POINTS, 0, d.length);
  12311. a.deleteBuffer(c);
  12312. b.Xf()
  12313. }
  12314. },
  12315. au: function(d) {
  12316. for (var a = new Float32Array(2 * d.length), c = 0; c < d.length; c++) {
  12317. a[2 * c] = d[c].x, a[2 * c + 1] = d[c].y
  12318. }
  12319. return a
  12320. },
  12321. Bi: function(e, a) {
  12322. this.Ii();
  12323. var c = this.s;
  12324. this.Zb.Ub();
  12325. this.Zb.Ih();
  12326. b.tc(b.ad);
  12327. c.uniform4fv(this.Wg, this.oe);
  12328. var d = c.createBuffer();
  12329. c.bindBuffer(c.ARRAY_BUFFER, d);
  12330. c.bufferData(c.ARRAY_BUFFER, this.au([e, a]), c.STATIC_DRAW);
  12331. c.vertexAttribPointer(b.ab, 2, c.FLOAT, !1, 0, 0);
  12332. c.drawArrays(c.LINES, 0, 2);
  12333. c.deleteBuffer(d);
  12334. b.Xf()
  12335. },
  12336. RA: function(c, a) {
  12337. this.Bi(b.d(c.x, c.y), b.d(a.x, c.y));
  12338. this.Bi(b.d(a.x, c.y), b.d(a.x, a.y));
  12339. this.Bi(b.d(a.x, a.y), b.d(c.x, a.y));
  12340. this.Bi(b.d(c.x, a.y), b.d(c.x, c.y))
  12341. },
  12342. JT: function(d, a, c) {
  12343. d = [d, b.d(a.x, d.y), a, b.d(d.x, a.y)];
  12344. this.TA(d, 4, c)
  12345. },
  12346. Tf: function(e, a, c) {
  12347. this.Ii();
  12348. a = this.s;
  12349. this.Zb.Ub();
  12350. this.Zb.Ih();
  12351. b.tc(b.ad);
  12352. a.uniform4fv(this.Wg, this.oe);
  12353. var d = a.createBuffer();
  12354. a.bindBuffer(a.ARRAY_BUFFER, d);
  12355. a.bufferData(a.ARRAY_BUFFER, this.au(e), a.STATIC_DRAW);
  12356. a.vertexAttribPointer(b.ab, 2, a.FLOAT, !1, 0, 0);
  12357. c ? a.drawArrays(a.LINE_LOOP, 0, e.length) : a.drawArrays(a.LINE_STRIP, 0, e.length);
  12358. a.deleteBuffer(d);
  12359. b.Xf()
  12360. },
  12361. TA: function(d, a, c) {
  12362. this.Ii();
  12363. c && this.to(c.r, c.g, c.b, c.a);
  12364. a = this.s;
  12365. this.Zb.Ub();
  12366. this.Zb.Ih();
  12367. b.tc(b.ad);
  12368. a.uniform4fv(this.Wg, this.oe);
  12369. c = a.createBuffer();
  12370. a.bindBuffer(a.ARRAY_BUFFER, c);
  12371. a.bufferData(a.ARRAY_BUFFER, this.au(d), a.STATIC_DRAW);
  12372. a.vertexAttribPointer(b.ab, 2, a.FLOAT, !1, 0, 0);
  12373. a.drawArrays(a.TRIANGLE_FAN, 0, d.length);
  12374. a.deleteBuffer(c);
  12375. b.Xf()
  12376. },
  12377. NA: function(g, h, k, m, n) {
  12378. this.Ii();
  12379. var a = 1;
  12380. n && a++;
  12381. var c = 2 * Math.PI / m;
  12382. if (n = new Float32Array(2 * (m + 2))) {
  12383. for (var d = 0; d <= m; d++) {
  12384. var e = d * c,
  12385. f = h * Math.sin(e + k) + g.y;
  12386. n[2 * d] = h * Math.cos(e + k) + g.x;
  12387. n[2 * d + 1] = f
  12388. }
  12389. n[2 * (m + 1)] = g.x;
  12390. n[2 * (m + 1) + 1] = g.y;
  12391. g = this.s;
  12392. this.Zb.Ub();
  12393. this.Zb.Ih();
  12394. b.tc(b.ad);
  12395. g.uniform4fv(this.Wg, this.oe);
  12396. h = g.createBuffer();
  12397. g.bindBuffer(g.ARRAY_BUFFER, h);
  12398. g.bufferData(g.ARRAY_BUFFER, n, g.STATIC_DRAW);
  12399. g.vertexAttribPointer(b.ab, 2, g.FLOAT, !1, 0, 0);
  12400. g.drawArrays(g.LINE_STRIP, 0, m + a);
  12401. g.deleteBuffer(h);
  12402. b.Xf()
  12403. }
  12404. },
  12405. QA: function(e, f, g, h) {
  12406. this.Ii();
  12407. for (var a = new Float32Array(2 * (h + 1)), c = 0, d = 0; d < h; d++) {
  12408. a[2 * d] = Math.pow(1 - c, 2) * e.x + 2 * (1 - c) * c * f.x + c * c * g.x, a[2 * d + 1] = Math.pow(1 - c, 2) * e.y + 2 * (1 - c) * c * f.y + c * c * g.y, c += 1 / h
  12409. }
  12410. a[2 * h] = g.x;
  12411. a[2 * h + 1] = g.y;
  12412. e = this.s;
  12413. this.Zb.Ub();
  12414. this.Zb.Ih();
  12415. b.tc(b.ad);
  12416. e.uniform4fv(this.Wg, this.oe);
  12417. f = e.createBuffer();
  12418. e.bindBuffer(e.ARRAY_BUFFER, f);
  12419. e.bufferData(e.ARRAY_BUFFER, a, e.STATIC_DRAW);
  12420. e.vertexAttribPointer(b.ab, 2, e.FLOAT, !1, 0, 0);
  12421. e.drawArrays(e.LINE_STRIP, 0, h + 1);
  12422. e.deleteBuffer(f);
  12423. b.Xf()
  12424. },
  12425. OA: function(d, e, f, g, h) {
  12426. this.Ii();
  12427. for (var k = new Float32Array(2 * (h + 1)), a = 0, c = 0; c < h; c++) {
  12428. k[2 * c] = Math.pow(1 - a, 3) * d.x + 3 * Math.pow(1 - a, 2) * a * e.x + 3 * (1 - a) * a * a * f.x + a * a * a * g.x, k[2 * c + 1] = Math.pow(1 - a, 3) * d.y + 3 * Math.pow(1 - a, 2) * a * e.y + 3 * (1 - a) * a * a * f.y + a * a * a * g.y, a += 1 / h
  12429. }
  12430. k[2 * h] = g.x;
  12431. k[2 * h + 1] = g.y;
  12432. d = this.s;
  12433. this.Zb.Ub();
  12434. this.Zb.Ih();
  12435. b.tc(b.ad);
  12436. d.uniform4fv(this.Wg, this.oe);
  12437. e = d.createBuffer();
  12438. d.bindBuffer(d.ARRAY_BUFFER, e);
  12439. d.bufferData(d.ARRAY_BUFFER, k, d.STATIC_DRAW);
  12440. d.vertexAttribPointer(b.ab, 2, d.FLOAT, !1, 0, 0);
  12441. d.drawArrays(d.LINE_STRIP, 0, h + 1);
  12442. d.deleteBuffer(e);
  12443. b.Xf()
  12444. },
  12445. MA: function(c, a) {
  12446. this.Bl(c, 0.5, a)
  12447. },
  12448. Bl: function(d, e, f) {
  12449. this.Ii();
  12450. for (var g = new Float32Array(2 * (f + 1)), h, k, a = 1 / d.length, c = 0; c < f + 1; c++) {
  12451. k = c / f, 1 === k ? (h = d.length - 1, k = 1) : (h = 0 | k / a, k = (k - a * h) / a), h = b.Ou(b.Gc(d, h - 1), b.Gc(d, h), b.Gc(d, h + 1), b.Gc(d, h + 2), e, k), g[2 * c] = h.x, g[2 * c + 1] = h.y
  12452. }
  12453. d = this.s;
  12454. this.Zb.Ub();
  12455. this.Zb.Ih();
  12456. b.tc(b.ad);
  12457. d.uniform4fv(this.Wg, this.oe);
  12458. e = d.createBuffer();
  12459. d.bindBuffer(d.ARRAY_BUFFER, e);
  12460. d.bufferData(d.ARRAY_BUFFER, g, d.STATIC_DRAW);
  12461. d.vertexAttribPointer(b.ab, 2, d.FLOAT, !1, 0, 0);
  12462. d.drawArrays(d.LINE_STRIP, 0, f + 1);
  12463. d.deleteBuffer(e);
  12464. b.Xf()
  12465. },
  12466. to: function(e, a, c, d) {
  12467. this.oe[0] = e / 255;
  12468. this.oe[1] = a / 255;
  12469. this.oe[2] = c / 255;
  12470. this.oe[3] = d / 255
  12471. },
  12472. IX: function(a) {
  12473. this.az = a * b.jb()
  12474. },
  12475. dC: function(a) {
  12476. this.s.lineWidth && this.s.lineWidth(a)
  12477. }
  12478. });
  12479. b.na.Lw = function() {
  12480. var a = b.J.prototype;
  12481. b.l(a, "color", a.Uf, a.xb);
  12482. b.l(a, "opacity", a.sh, a.yd);
  12483. b.l(a, "string", a.Fl, a.zd);
  12484. b.l(a, "textAlign", a.FU, a.zX);
  12485. b.l(a, "verticalAlign", a.rV, a.fY);
  12486. b.l(a, "fontSize", a.iB, a.Qv);
  12487. b.l(a, "fontName", a.hB, a.Pv);
  12488. b.l(a, "font", a.NP, a.rR);
  12489. b.l(a, "boundingWidth", a.my, a.nR);
  12490. b.l(a, "boundingHeight", a.JP, a.mR);
  12491. b.l(a, "fillStyle", a.MP, a.pK);
  12492. b.l(a, "strokeStyle", a.dQ, a.BR);
  12493. b.l(a, "lineWidth", a.TP, a.tR);
  12494. b.l(a, "shadowOffsetX", a.aQ, a.xR);
  12495. b.l(a, "shadowOffsetY", a.bQ, a.yR);
  12496. b.l(a, "shadowOpacity", a.cQ, a.zR);
  12497. b.l(a, "shadowBlur", a.$P, a.wR)
  12498. };
  12499. b.J = b.o.extend({
  12500. Rb: null,
  12501. Cj: b.mm,
  12502. Uj: b.qp,
  12503. Bb: null,
  12504. Cb: 0,
  12505. Pb: "",
  12506. Vt: null,
  12507. Qc: !1,
  12508. fd: null,
  12509. qi: 0,
  12510. Oj: 0,
  12511. rn: null,
  12512. Lf: !1,
  12513. ml: null,
  12514. si: 0,
  12515. yn: null,
  12516. Vz: 0,
  12517. Wz: 0,
  12518. ln: !1,
  12519. Jy: null,
  12520. gc: "LabelTTF",
  12521. Wh: "normal",
  12522. Xh: "normal",
  12523. Zp: "normal",
  12524. Qd: function(f, g, a, c, d, e) {
  12525. f = f ? f + "" : "";
  12526. a = a || 16;
  12527. c = c || b.size(0, 0);
  12528. d = d || b.Es;
  12529. e = e || b.qp;
  12530. this.hc = !1;
  12531. this.Rb = b.size(c.width, c.height);
  12532. this.Bb = g || "Arial";
  12533. this.Cj = d;
  12534. this.Uj = e;
  12535. this.Cb = a;
  12536. this.i.Nj(this.Bb, a, this.Wh, this.Xh);
  12537. this.string = f;
  12538. this.i.vg();
  12539. this.i.xi();
  12540. this.Yb();
  12541. return !0
  12542. },
  12543. Yb: function() {
  12544. this.ln = !0;
  12545. this.i.ia(b.f.L.jk)
  12546. },
  12547. ctor: function(f, g, a, c, d, e) {
  12548. b.o.prototype.ctor.call(this);
  12549. this.Rb = b.size(0, 0);
  12550. this.Cj = b.Es;
  12551. this.Uj = b.qp;
  12552. this.hc = !1;
  12553. this.Bb = "Arial";
  12554. this.Qc = !1;
  12555. this.fd = b.d(0, 0);
  12556. this.Oj = this.qi = 0;
  12557. this.Lf = !1;
  12558. this.ml = b.color(255, 255, 255, 255);
  12559. this.si = 0;
  12560. this.yn = b.color(255, 255, 255, 255);
  12561. this.Wz = this.Vz = 0;
  12562. this.ln = !1;
  12563. this.Jy = [];
  12564. this.i.vg();
  12565. this.T = !0;
  12566. g && g instanceof ia ? this.IV(f, g) : b.J.prototype.Qd.call(this, f, g, a, c, d, e)
  12567. },
  12568. oa: function() {
  12569. return this.Qd(" ", this.Bb, this.Cb)
  12570. },
  12571. description: function() {
  12572. return "\x3ccc.LabelTTF | FontName \x3d" + this.Bb + " FontSize \x3d " + this.Cb.toFixed(1) + "\x3e"
  12573. },
  12574. kB: function() {
  12575. return !this.Zp || this.Zp.charAt ? this.i.yj : this.Zp || this.i.yj
  12576. },
  12577. faa: function(a) {
  12578. this.Zp = a
  12579. },
  12580. Fl: function() {
  12581. return this.Pb
  12582. },
  12583. FU: function() {
  12584. return this.Cj
  12585. },
  12586. rV: function() {
  12587. return this.Uj
  12588. },
  12589. U4: function() {
  12590. return b.size(this.Rb)
  12591. },
  12592. iB: function() {
  12593. return this.Cb
  12594. },
  12595. hB: function() {
  12596. return this.Bb
  12597. },
  12598. IV: function(c, a) {
  12599. this.OH(a, !1);
  12600. this.string = c;
  12601. return !0
  12602. },
  12603. Iaa: function(a) {
  12604. a && this.OH(a, !0)
  12605. },
  12606. c6: function() {
  12607. return this.aR(!1)
  12608. },
  12609. TT: function(e, a, c, d) {
  12610. null != e.r && null != e.g && null != e.b && null != e.a ? this.wP(e, a, c) : this.jF(e, a, c, d)
  12611. },
  12612. jF: function(f, a, c, d) {
  12613. c = c || 0.5;
  12614. !1 === this.Qc && (this.Qc = !0);
  12615. var e = this.fd;
  12616. if (e && e.x !== f || e.de !== a) {
  12617. e.x = f, e.y = a
  12618. }
  12619. this.qi !== c && (this.qi = c);
  12620. this.i.vg();
  12621. this.Oj !== d && (this.Oj = d);
  12622. this.Yb()
  12623. },
  12624. wP: function(d, a, c) {
  12625. this.rn || (this.rn = b.color(255, 255, 255, 128));
  12626. this.rn.r = d.r;
  12627. this.rn.g = d.g;
  12628. this.rn.b = d.b;
  12629. this.jF(a.width || a.x || 0, a.height || a.y || 0, null != d.a ? d.a / 255 : 0.5, c)
  12630. },
  12631. aQ: function() {
  12632. return this.fd.x
  12633. },
  12634. xR: function(a) {
  12635. !1 === this.Qc && (this.Qc = !0);
  12636. this.fd.x !== a && (this.fd.x = a, this.Yb())
  12637. },
  12638. bQ: function() {
  12639. return this.fd.de
  12640. },
  12641. yR: function(a) {
  12642. !1 === this.Qc && (this.Qc = !0);
  12643. this.fd.de !== a && (this.fd.de = a, this.Yb())
  12644. },
  12645. c1: function() {
  12646. return b.d(this.fd.x, this.fd.y)
  12647. },
  12648. u1: function(a) {
  12649. !1 === this.Qc && (this.Qc = !0);
  12650. if (this.fd.x !== a.x || this.fd.y !== a.y) {
  12651. this.fd.x = a.x, this.fd.y = a.y, this.Yb()
  12652. }
  12653. },
  12654. cQ: function() {
  12655. return this.qi
  12656. },
  12657. zR: function(a) {
  12658. !1 === this.Qc && (this.Qc = !0);
  12659. this.qi !== a && (this.qi = a, this.i.vg(), this.Yb())
  12660. },
  12661. $P: function() {
  12662. return this.Oj
  12663. },
  12664. wR: function(a) {
  12665. !1 === this.Qc && (this.Qc = !0);
  12666. this.Oj !== a && (this.Oj = a, this.Yb())
  12667. },
  12668. S2: function() {
  12669. this.Qc && (this.Qc = !1, this.Yb())
  12670. },
  12671. UT: function(d, a) {
  12672. !1 === this.Lf && (this.Lf = !0);
  12673. var c = this.ml;
  12674. if (c.r !== d.r || c.g !== d.g || c.b !== d.b) {
  12675. c.r = d.r, c.g = d.g, c.b = d.b, this.i.vg()
  12676. }
  12677. this.si !== a && (this.si = a || 0);
  12678. this.Yb()
  12679. },
  12680. dQ: function() {
  12681. return this.ml
  12682. },
  12683. BR: function(c) {
  12684. !1 === this.Lf && (this.Lf = !0);
  12685. var a = this.ml;
  12686. if (a.r !== c.r || a.g !== c.g || a.b !== c.b) {
  12687. a.r = c.r, a.g = c.g, a.b = c.b, this.i.vg(), this.Yb()
  12688. }
  12689. },
  12690. TP: function() {
  12691. return this.si
  12692. },
  12693. tR: function(a) {
  12694. !1 === this.Lf && (this.Lf = !0);
  12695. this.si !== a && (this.si = a || 0, this.Yb())
  12696. },
  12697. T2: function() {
  12698. this.Lf && (this.Lf = !1, this.Yb())
  12699. },
  12700. pK: function(c) {
  12701. var a = this.yn;
  12702. if (a.r !== c.r || a.g !== c.g || a.b !== c.b) {
  12703. a.r = c.r, a.g = c.g, a.b = c.b, this.i.vg(), this.ln = !0
  12704. }
  12705. },
  12706. MP: function() {
  12707. return this.yn
  12708. },
  12709. OH: function(d, a) {
  12710. d.k4 ? (this.Rb.width = d.boundingWidth, this.Rb.height = d.boundingHeight) : (this.Rb.width = 0, this.Rb.height = 0);
  12711. this.Cj = d.textAlign;
  12712. this.Uj = d.verticalAlign;
  12713. this.Bb = d.fontName;
  12714. this.Cb = d.fontSize || 12;
  12715. this.Zp = d.lineHeight ? d.lineHeight : this.Cb;
  12716. this.i.Nj(d);
  12717. d.FK && this.TT(d.shadowOffsetX, d.shadowOffsetY, d.shadowOpacity, d.shadowBlur);
  12718. d.nC && this.UT(d.strokeStyle, d.lineWidth);
  12719. this.pK(d.fillStyle);
  12720. a && this.i.xi();
  12721. var c = b.f.L;
  12722. this.i.ia(c.ra | c.pa | c.jk)
  12723. },
  12724. aR: function(d) {
  12725. var a = new ia;
  12726. d ? (a.fontSize = this.Cb, a.boundingWidth = b.jb() * this.Rb.width, a.boundingHeight = b.jb() * this.Rb.height) : (a.fontSize = this.Cb, a.boundingWidth = this.Rb.width, a.boundingHeight = this.Rb.height);
  12727. a.fontName = this.Bb;
  12728. a.textAlign = this.Cj;
  12729. a.verticalAlign = this.Uj;
  12730. if (this.Lf) {
  12731. a.nC = !0;
  12732. var c = this.ml;
  12733. a.strokeStyle = b.color(c.r, c.g, c.b);
  12734. a.lineWidth = this.si
  12735. } else {
  12736. a.nC = !1
  12737. }
  12738. this.Qc ? (a.FK = !0, a.shadowBlur = this.Oj, a.shadowOpacity = this.qi, a.shadowOffsetX = (d ? b.jb() : 1) * this.fd.x, a.shadowOffsetY = (d ? b.jb() : 1) * this.fd.y) : a.Qc = !1;
  12739. d = this.yn;
  12740. a.fillStyle = b.color(d.r, d.g, d.b);
  12741. return a
  12742. },
  12743. zd: function(a) {
  12744. a = String(a);
  12745. this.Vt !== a && (this.Vt = a + "", this.Eu(), this.Yb(), this.i.ia(b.f.L.ba))
  12746. },
  12747. Eu: function() {
  12748. this.Pb && "" !== this.Pb || this.Pb === this.Vt || (b.Za.af = !0);
  12749. this.Pb = this.Vt
  12750. },
  12751. zX: function(a) {
  12752. a !== this.Cj && (this.Cj = a, this.Yb())
  12753. },
  12754. fY: function(a) {
  12755. a !== this.Uj && (this.Uj = a, this.Yb())
  12756. },
  12757. O$: function(d, a) {
  12758. var c;
  12759. void 0 === a ? (c = d.width, a = d.height) : c = d;
  12760. if (c !== this.Rb.width || a !== this.Rb.height) {
  12761. this.Rb.width = c, this.Rb.height = a, this.Eu(), this.Yb()
  12762. }
  12763. },
  12764. my: function() {
  12765. return this.Rb.width
  12766. },
  12767. nR: function(a) {
  12768. a !== this.Rb.width && (this.Rb.width = a, this.Eu(), this.Yb())
  12769. },
  12770. JP: function() {
  12771. return this.Rb.height
  12772. },
  12773. mR: function(a) {
  12774. a !== this.Rb.height && (this.Rb.height = a, this.Eu(), this.Yb())
  12775. },
  12776. Qv: function(a) {
  12777. this.Cb !== a && (this.Cb = a, this.i.Nj(this.Bb, this.Cb, this.Wh, this.Xh), this.Yb())
  12778. },
  12779. Pv: function(a) {
  12780. this.Bb && this.Bb !== a && (this.Bb = a, this.i.Nj(this.Bb, this.Cb, this.Wh, this.Xh), this.Yb())
  12781. },
  12782. NP: function() {
  12783. return this.i.oy()
  12784. },
  12785. rR: function(a) {
  12786. if (a = b.J.AP.exec(a)) {
  12787. this.Cb = parseInt(a[1]), this.Bb = a[2], this.i.Nj(this.Bb, this.Cb, this.Wh, this.Xh), this.Yb()
  12788. }
  12789. },
  12790. eb: function() {
  12791. this.ln && this.i.Fu();
  12792. return b.o.prototype.eb.call(this)
  12793. },
  12794. mg: function() {
  12795. this.ln && this.i.Fu();
  12796. return b.o.prototype.mg.call(this)
  12797. },
  12798. Aj: function() {
  12799. this.ln && this.i.Fu();
  12800. return b.o.prototype.Aj.call(this)
  12801. },
  12802. wc: function(d, a, c) {
  12803. b.o.prototype.wc.call(this, d, a, c, !1)
  12804. },
  12805. Fd: function() {
  12806. return b.ua === b.dc ? new b.J.A(this) : new b.J.F(this)
  12807. },
  12808. Nj: function(a) {
  12809. this.Wh !== a && (this.Wh = a, this.i.Nj(this.Bb, this.Cb, this.Wh, this.Xh), this.Yb())
  12810. },
  12811. oy: function() {
  12812. return this.Wh
  12813. },
  12814. r1: function(a) {
  12815. this.Xh !== a && (this.Xh = a, this.i.Nj(this.Bb, this.Cb, this.Wh, this.Xh), this.Yb())
  12816. },
  12817. Y0: function() {
  12818. return this.Xh
  12819. }
  12820. });
  12821. b.assert(b.nd(b.na.Lw), b.j.Og, "LabelTTFPropertyDefine.js");
  12822. b.na.Lw();
  12823. delete b.na.Lw;
  12824. b.J.AP = /^(\d+)px\s+['"]?([\w\s\d]+)['"]?$/;
  12825. b.J.create = function(f, g, a, c, d, e) {
  12826. return new b.J(f, g, a, c, d, e)
  12827. };
  12828. b.J.I2 = b.J.create;
  12829. b.J.VO = b.KO ? b.Ak : b.Uw;
  12830. b.J.Qh = b.ac("div");
  12831. b.J.Qh.style.fontFamily = "Arial";
  12832. b.J.Qh.style.position = "absolute";
  12833. b.J.Qh.style.left = "-100px";
  12834. b.J.Qh.style.top = "-100px";
  12835. b.J.Qh.style.lineHeight = "normal";
  12836. document.body ? document.body.appendChild(b.J.Qh) : b.Qa(window, "load", function() {
  12837. this.removeEventListener("load", arguments.callee, !1);
  12838. document.body.appendChild(b.J.Qh)
  12839. }, !1);
  12840. b.J.$D = function(e, a) {
  12841. if (e instanceof ia) {
  12842. var c = b.J.Ss[ja(e)];
  12843. if (0 < c) {
  12844. return c
  12845. }
  12846. var d = b.J.Qh;
  12847. d.innerHTML = "ajghl~!";
  12848. d.style.fontFamily = e.fontName;
  12849. d.style.fontSize = e.fontSize + "px";
  12850. d.style.fontStyle = e.fontStyle;
  12851. d.style.fontWeight = e.fontWeight;
  12852. c = d.clientHeight;
  12853. b.J.Ss[ja(e)] = c;
  12854. d.innerHTML = "";
  12855. return c
  12856. }
  12857. c = b.J.Ss[e + "." + a];
  12858. if (0 < c) {
  12859. return c
  12860. }
  12861. d = b.J.Qh;
  12862. d.innerHTML = "ajghl~!";
  12863. d.style.fontFamily = e;
  12864. d.style.fontSize = a + "px";
  12865. c = d.clientHeight;
  12866. b.J.Ss[e + "." + a] = c;
  12867. d.innerHTML = "";
  12868. return c
  12869. };
  12870. b.J.Ss = {};
  12871. b.J.PR = ["left", "center", "right"];
  12872. b.J.QR = ["top", "middle", "bottom"];
  12873. b.J.XK = !0;
  12874. b.J.SH = /([a-zA-Z0-9\u00c4\u00d6\u00dc\u00e4\u00f6\u00fc\u00df\u00e9\u00e8\u00e7\u00e0\u00f9\u00ea\u00e2\u00ee\u00f4\u00fb]+|\S)/;
  12875. b.J.vH = /^[!,.:;}\]%\?>\u3001\u2018\u201c\u300b\uff1f\u3002\uff0c\uff01]/;
  12876. b.J.aG = /([a-zA-Z0-9\u00c4\u00d6\u00dc\u00e4\u00f6\u00fc\u00df\u00e9\u00e8\u00e7\u00e0\u00f9\u00ea\u00e2\u00ee\u00f4\u00fb]+|\S)$/;
  12877. b.J.$F = /[a-zA-Z0-9\u00c4\u00d6\u00dc\u00e4\u00f6\u00fc\u00df\u00e9\u00e8\u00e7\u00e0\u00f9\u00ea\u00e2\u00ee\u00f4\u00fb]+$/;
  12878. b.J.qF = /^[a-zA-Z0-9\u00c4\u00d6\u00dc\u00e4\u00f6\u00fc\u00df\u00e9\u00e8\u00e7\u00e0\u00f9\u00ea\u00e2\u00ee\u00f4\u00fb]/;
  12879. (function() {
  12880. b.J.qd = function() {
  12881. this.yj = 18;
  12882. this.Qk = "";
  12883. this.Pz = "rgba(128, 128, 128, 0.5)";
  12884. this.Uz = "";
  12885. this.cy = "rgba(255,255,255,1)";
  12886. this.Kt = this.Jt = null;
  12887. this.Jy = [];
  12888. this.Bg = [];
  12889. this.Vp = !1
  12890. };
  12891. var a = b.J.qd.prototype;
  12892. a.constructor = b.J.qd;
  12893. a.qy = function() {
  12894. if (this.Kt) {
  12895. return this.Kt
  12896. }
  12897. var e = this.p;
  12898. if (!this.Jt) {
  12899. var c = b.ac("canvas");
  12900. c.width = 1;
  12901. c.height = 1;
  12902. var d = new b.ca;
  12903. d.mc(c);
  12904. e.$a(d);
  12905. this.Jt = c
  12906. }
  12907. return this.Kt = this.Jt.getContext("2d")
  12908. };
  12909. a.Nj = function(f, c, d, e) {
  12910. f instanceof ia ? (this.Qk = ja(f), this.yj = b.J.$D(f)) : (this.Qk = d + " " + e + " " + c + "px '" + f + "'", this.yj = b.J.$D(f, c))
  12911. };
  12912. a.oy = function() {
  12913. return this.Qk
  12914. };
  12915. a.X0 = function() {
  12916. return this.yj
  12917. };
  12918. a.xi = function() {
  12919. this.C ^= this.C & b.f.L.jk;
  12920. var f = this.p,
  12921. g = this.qy(),
  12922. h = this.Jt,
  12923. c = f.Q;
  12924. if (0 === f.Pb.length) {
  12925. h.width = 1, h.height = c.height || 1, f.P && f.P.fb(), f.wc(b.rect(0, 0, 1, c.height))
  12926. } else {
  12927. g.font = this.Qk;
  12928. this.Fu();
  12929. var d = c.width,
  12930. c = c.height,
  12931. e = h.width === d && h.height === c;
  12932. h.width = d;
  12933. h.height = c;
  12934. e && g.clearRect(0, 0, d, c);
  12935. this.vP(g);
  12936. f.P && f.P.fb();
  12937. f.wc(b.rect(0, 0, d, c))
  12938. }
  12939. };
  12940. a.KQ = function() {
  12941. this.qy().font = this.Qk
  12942. };
  12943. a.hn = function(c) {
  12944. return this.qy().measureText(c).width
  12945. };
  12946. a.Fu = function() {
  12947. var f = this.p,
  12948. g = f.Rb.width,
  12949. h, c, d = this.Jy;
  12950. d.length = 0;
  12951. this.Vp = !1;
  12952. this.KQ();
  12953. if (0 !== g) {
  12954. for (this.Bg = f.Pb.split("\n"), h = 0; h < this.Bg.length; h++) {
  12955. this.Kx(this.Bg, h, g)
  12956. }
  12957. } else {
  12958. for (this.Bg = f.Pb.split("\n"), h = 0, c = this.Bg.length; h < c; h++) {
  12959. d.push(this.hn(this.Bg[h]))
  12960. }
  12961. }
  12962. 0 < this.Bg.length && (this.Vp = !0);
  12963. c = h = 0;
  12964. f.Lf && (h = c = 2 * f.si);
  12965. if (f.Qc) {
  12966. var e = f.fd;
  12967. h += 2 * Math.abs(e.x);
  12968. c += 2 * Math.abs(e.y)
  12969. }
  12970. g = 0 === g ? this.Vp ? b.size(Math.ceil(Math.max.apply(Math, d) + h), Math.ceil(this.yj * this.Bg.length + c)) : b.size(Math.ceil(this.hn(f.Pb) + h), Math.ceil(this.yj + c)) : 0 === f.Rb.height ? this.Vp ? b.size(Math.ceil(g + h), Math.ceil(f.kB() * this.Bg.length + c)) : b.size(Math.ceil(g + h), Math.ceil(f.kB() + c)) : b.size(Math.ceil(g + h), Math.ceil(f.Rb.height + c));
  12971. "normal" !== f.oy() && (g.width = Math.ceil(g.width + 0.3 * f.Cb));
  12972. f.he(g);
  12973. f.Vz = h;
  12974. f.Wz = c;
  12975. f = f.wf;
  12976. this.xf.x = 0.5 * h + (g.width - h) * f.x;
  12977. this.xf.y = 0.5 * c + (g.height - c) * f.y
  12978. };
  12979. a.vP = function(c) {
  12980. if (c) {
  12981. var e = this.p,
  12982. h = e.Vz,
  12983. k = e.Wz,
  12984. m = e.Q.height - k,
  12985. n = e.Uj,
  12986. p = e.Cj,
  12987. r = e.si;
  12988. c.setTransform(1, 0, 0, 1, 0.5 * h, m + 0.5 * k);
  12989. c.font !== this.Qk && (c.font = this.Qk);
  12990. c.fillStyle = this.cy;
  12991. var d = k = 0,
  12992. f = e.Lf;
  12993. f && (c.lineWidth = 2 * r, c.strokeStyle = this.Uz);
  12994. e.Qc && (r = e.fd, c.shadowColor = this.Pz, c.shadowOffsetX = r.x, c.shadowOffsetY = -r.y, c.shadowBlur = e.Oj);
  12995. c.textBaseline = b.J.QR[n];
  12996. c.textAlign = b.J.PR[p];
  12997. var g = e.Q.width - h,
  12998. h = e.kB(),
  12999. r = (h - this.yj) / 2,
  13000. k = p === b.nD ? k + g : p === b.mm ? k + g / 2 : k + 0;
  13001. if (this.Vp) {
  13002. for (e = this.Bg.length, n === b.WD ? d = h - 2 * r + m - h * e : n === b.MO && (d = (h - 2 * r) / 2 + (m - h * e) / 2), n = 0; n < e; n++) {
  13003. p = this.Bg[n], g = -m + (h * n + r) + d, f && c.strokeText(p, k, g), c.fillText(p, k, g)
  13004. }
  13005. } else {
  13006. n !== b.WD && (d = n === b.qp ? d - m : d - 0.5 * m), f && c.strokeText(e.Pb, k, d), c.fillText(e.Pb, k, d)
  13007. }
  13008. }
  13009. };
  13010. a.Kx = function(c, e, h) {
  13011. var k = c[e],
  13012. m = this.hn(k);
  13013. if (m > h && 1 < k.length) {
  13014. for (var n = h / m * k.length | 0, p = k.substr(n), r = m - this.hn(p), d, f = 0, g = 0; r > h && 100 > g++;) {
  13015. n *= h / r, n |= 0, p = k.substr(n), r = m - this.hn(p)
  13016. }
  13017. for (g = 0; r < h && 100 > g++;) {
  13018. p && (f = (d = b.J.SH.exec(p)) ? d[0].length : 1, d = p), n += f, p = k.substr(n), r = m - this.hn(p)
  13019. }
  13020. n -= f;
  13021. 0 === n && (n = 1, d = d.substr(1));
  13022. h = k.substr(0, n);
  13023. b.J.XK && b.J.vH.test(d || p) && (m = b.J.aG.exec(h), n -= m ? m[0].length : 0, d = k.substr(n), h = k.substr(0, n));
  13024. b.J.qF.test(d) && (m = b.J.$F.exec(h)) && h !== m[0] && (n -= m[0].length, d = k.substr(n), h = k.substr(0, n));
  13025. c[e] = d || p;
  13026. c.splice(e, 0, h)
  13027. }
  13028. }
  13029. })();
  13030. (function() {
  13031. b.J.A = function(c) {
  13032. b.o.A.call(this, c);
  13033. b.J.qd.call(this)
  13034. };
  13035. b.J.A.prototype = Object.create(b.o.A.prototype);
  13036. b.nv(b.J.qd.prototype, b.J.A.prototype);
  13037. var a = b.J.A.prototype;
  13038. a.constructor = b.J.A;
  13039. a.updateStatus = function() {
  13040. var f = b.f.L,
  13041. c = this.C,
  13042. d = c & f.ra,
  13043. e = c & f.pa;
  13044. d && this.Rf();
  13045. e && F(this);
  13046. d ? this.Va() : c & f.jk && this.xi();
  13047. this.C & f.ba && (this.transform(G(this), !0), this.C ^= this.C & b.f.L.ba)
  13048. };
  13049. a.We = function(g) {
  13050. var c = b.f.L,
  13051. d = this.C,
  13052. e = g ? g.p : null;
  13053. e && e.ec && g.C & c.ra && (d |= c.ra);
  13054. e && e.fc && g.C & c.pa && (d |= c.pa);
  13055. g && g.C & c.ba && (d |= c.ba);
  13056. var e = d & c.ra,
  13057. f = d & c.pa;
  13058. this.C = d;
  13059. e && ma(this);
  13060. f && la(this);
  13061. e ? this.Va() : d & c.jk && this.xi();
  13062. d & c.ba && this.transform(g)
  13063. };
  13064. a.vg = function() {
  13065. var g = this.mb,
  13066. c = this.p,
  13067. d = c.rn || this.mb,
  13068. e = c.ml,
  13069. f = c.yn;
  13070. this.Pz = "rgba(" + (0 | 0.5 * d.r) + "," + (0 | 0.5 * d.g) + "," + (0 | 0.5 * d.b) + "," + c.qi + ")";
  13071. this.cy = "rgba(" + (0 | g.r / 255 * f.r) + "," + (0 | g.g / 255 * f.g) + "," + (0 | g.b / 255 * f.b) + ", 1)";
  13072. this.Uz = "rgba(" + (0 | g.r / 255 * e.r) + "," + (0 | g.g / 255 * e.g) + "," + (0 | g.b / 255 * e.b) + ", 1)"
  13073. };
  13074. a.Va = function() {
  13075. this.vg();
  13076. this.xi()
  13077. }
  13078. })();
  13079. (function() {
  13080. b.J.F = function(c) {
  13081. b.o.F.call(this, c);
  13082. b.J.qd.call(this);
  13083. this.Tl(b.Ge.Hc(b.J.VO))
  13084. };
  13085. var a = b.J.F.prototype = Object.create(b.o.F.prototype);
  13086. b.nv(b.J.qd.prototype, a);
  13087. a.constructor = b.J.F;
  13088. a.vg = function() {
  13089. this.ia(b.f.L.jk);
  13090. var e = this.p,
  13091. c = e.ml,
  13092. d = e.yn;
  13093. this.Pz = "rgba(128,128,128," + e.qi + ")";
  13094. this.cy = "rgba(" + (0 | d.r) + "," + (0 | d.g) + "," + (0 | d.b) + ", 1)";
  13095. this.Uz = "rgba(" + (0 | c.r) + "," + (0 | c.g) + "," + (0 | c.b) + ", 1)"
  13096. };
  13097. a.updateStatus = function() {
  13098. var f = b.f.L,
  13099. c = this.C,
  13100. d = c & f.ra,
  13101. e = c & f.pa;
  13102. d && this.Rf();
  13103. e && F(this);
  13104. d || e ? (this.vg(), this.Va(), this.xi()) : c & f.jk && this.xi();
  13105. this.C & f.ba && (this.transform(G(this), !0), this.C ^= this.C & b.f.L.ba)
  13106. };
  13107. a.We = function(g) {
  13108. var c = b.f.L,
  13109. d = this.C,
  13110. e = g ? g.p : null;
  13111. e && e.ec && g.C & c.ra && (d |= c.ra);
  13112. e && e.fc && g.C & c.pa && (d |= c.pa);
  13113. g && g.C & c.ba && (d |= c.ba);
  13114. var e = d & c.ra,
  13115. f = d & c.pa;
  13116. this.C = d;
  13117. e && ma(this);
  13118. f && la(this);
  13119. e || f ? (this.vg(), this.Va(), this.xi()) : d & c.jk && this.xi();
  13120. this.transform(g)
  13121. }
  13122. })();
  13123. b.XL = b.Ia.extend({
  13124. Tb: null,
  13125. target: null,
  13126. ul: 0,
  13127. Be: null,
  13128. zl: !1,
  13129. paused: !1,
  13130. hv: null,
  13131. ctor: function() {
  13132. this.Tb = [];
  13133. this.target = null;
  13134. this.ul = 0;
  13135. this.Be = null;
  13136. this.paused = this.zl = !1;
  13137. this.hv = null
  13138. }
  13139. });
  13140. b.tC = b.Ia.extend({
  13141. pg: null,
  13142. wm: null,
  13143. Mb: null,
  13144. Yg: !1,
  13145. p1: function(d, a) {
  13146. for (var c = 0; c < d.length; c++) {
  13147. if (a === d[c].target) {
  13148. return d[c]
  13149. }
  13150. }
  13151. return null
  13152. },
  13153. ctor: function() {
  13154. this.pg = {};
  13155. this.wm = [];
  13156. this.Mb = null;
  13157. this.Yg = !1
  13158. },
  13159. eS: function(e, a, c) {
  13160. if (!e) {
  13161. throw "cc.ActionManager.addAction(): action must be non-null"
  13162. }
  13163. if (!a) {
  13164. throw "cc.ActionManager.addAction(): action must be non-null"
  13165. }
  13166. var d = this.pg[a.Y];
  13167. d || (d = new b.XL, d.paused = c, d.target = a, this.pg[a.Y] = d, this.wm.push(d));
  13168. this.XO(d);
  13169. d.Tb.push(e);
  13170. e.H(a)
  13171. },
  13172. H9: function() {
  13173. for (var d = this.wm, a = 0; a < d.length; a++) {
  13174. var c = d[a];
  13175. c && this.TJ(c.target, !0)
  13176. }
  13177. },
  13178. TJ: function(d, a) {
  13179. if (null != d) {
  13180. var c = this.pg[d.Y];
  13181. c && (-1 === c.Tb.indexOf(c.Be) || c.zl || (c.zl = !0), c.Tb.length = 0, this.Mb !== c || a ? this.Ux(c) : this.Yg = !0)
  13182. }
  13183. },
  13184. SJ: function(d) {
  13185. if (null != d) {
  13186. var a = this.pg[d.originalTarget.Y];
  13187. if (a) {
  13188. for (var c = 0; c < a.Tb.length; c++) {
  13189. if (a.Tb[c] === d) {
  13190. a.Tb.splice(c, 1);
  13191. break
  13192. }
  13193. }
  13194. } else {
  13195. b.log(b.j.$K)
  13196. }
  13197. }
  13198. },
  13199. PW: function(f, g) {
  13200. f === b.Zl && b.log(b.j.uC);
  13201. b.assert(g, b.j.uC);
  13202. var a = this.pg[g.Y];
  13203. if (a) {
  13204. for (var c = a.Tb.length, d = 0; d < c; ++d) {
  13205. var e = a.Tb[d];
  13206. if (e && e.oB() === f && e.originalTarget === g) {
  13207. this.dR(d, a);
  13208. break
  13209. }
  13210. }
  13211. }
  13212. },
  13213. dB: function(f, a) {
  13214. f === b.Zl && b.log(b.j.YK);
  13215. var c = this.pg[a.Y];
  13216. if (c) {
  13217. if (null != c.Tb) {
  13218. for (var d = 0; d < c.Tb.length; ++d) {
  13219. var e = c.Tb[d];
  13220. if (e && e.oB() === f) {
  13221. return e
  13222. }
  13223. }
  13224. }
  13225. b.log(b.j.ZK, f)
  13226. }
  13227. return null
  13228. },
  13229. sW: function(a) {
  13230. return (a = this.pg[a.Y]) ? a.Tb ? a.Tb.length : 0 : 0
  13231. },
  13232. mo: function(a) {
  13233. if (a = this.pg[a.Y]) {
  13234. a.paused = !0
  13235. }
  13236. },
  13237. Mi: function(a) {
  13238. if (a = this.pg[a.Y]) {
  13239. a.paused = !1
  13240. }
  13241. },
  13242. f9: function() {
  13243. for (var e = [], a = this.wm, c = 0; c < a.length; c++) {
  13244. var d = a[c];
  13245. d && !d.paused && (d.paused = !0, e.push(d.target))
  13246. }
  13247. return e
  13248. },
  13249. cX: function(c) {
  13250. if (c) {
  13251. for (var a = 0; a < c.length; a++) {
  13252. c[a] && this.Mi(c[a])
  13253. }
  13254. }
  13255. },
  13256. o9: function() {
  13257. b.I.th().Si(this)
  13258. },
  13259. dR: function(c, a) {
  13260. a.Tb[c] !== a.Be || a.zl || (a.zl = !0);
  13261. a.Tb.splice(c, 1);
  13262. a.ul >= c && a.ul--;
  13263. 0 === a.Tb.length && (this.Mb === a ? this.Yg = !0 : this.Ux(a))
  13264. },
  13265. Ux: function(a) {
  13266. a && (delete this.pg[a.target.Y], b.fe(this.wm, a), a.Tb = null, a.target = null)
  13267. },
  13268. XO: function(a) {
  13269. null == a.Tb && (a.Tb = [])
  13270. },
  13271. update: function(f) {
  13272. for (var a = this.wm, c, d = 0; d < a.length; d++) {
  13273. c = this.Mb = a[d];
  13274. if (!c.paused) {
  13275. for (c.ul = 0; c.ul < (c.Tb ? c.Tb.length : 0); c.ul++) {
  13276. if (c.Be = c.Tb[c.ul], c.Be) {
  13277. c.zl = !1;
  13278. c.Be.step(f * (c.Be.nq ? c.Be.Kd : 1));
  13279. if (c.zl) {
  13280. c.Be = null
  13281. } else {
  13282. if (c.Be.Zf()) {
  13283. c.Be.stop();
  13284. var e = c.Be;
  13285. c.Be = null;
  13286. this.SJ(e)
  13287. }
  13288. }
  13289. c.Be = null
  13290. }
  13291. }
  13292. }
  13293. this.Yg && 0 === c.Tb.length && this.Ux(c)
  13294. }
  13295. }
  13296. });
  13297. b.e = b.e || {};
  13298. b.e.Kc = 0.015625;
  13299. b.e.nc = function(a) {
  13300. return a * a
  13301. };
  13302. b.e.a2 = function(c, a) {
  13303. return c + b.e.Kc > a && c - b.e.Kc < a
  13304. };
  13305. (function(c) {
  13306. c.e.qm = function(e, d) {
  13307. void 0 === d ? (this.x = e.x, this.y = e.y) : (this.x = e || 0, this.y = d || 0)
  13308. };
  13309. var a = c.e.qm.prototype;
  13310. a.fill = function(e, d) {
  13311. this.x = e;
  13312. this.y = d
  13313. };
  13314. a.length = function() {
  13315. return Math.sqrt(c.e.nc(this.x) + c.e.nc(this.y))
  13316. };
  13317. a.ko = function() {
  13318. return c.e.nc(this.x) + c.e.nc(this.y)
  13319. };
  13320. a.normalize = function() {
  13321. var d = 1 / this.length();
  13322. this.x *= d;
  13323. this.y *= d;
  13324. return this
  13325. };
  13326. c.e.qm.add = function(f, d, e) {
  13327. f.x = d.x + e.x;
  13328. f.y = d.y + e.y;
  13329. return f
  13330. };
  13331. a.add = function(d) {
  13332. this.x += d.x;
  13333. this.y += d.y;
  13334. return this
  13335. };
  13336. a.Xj = function(d) {
  13337. return this.x * d.x + this.y * d.y
  13338. };
  13339. c.e.qm.Wl = function(f, d, e) {
  13340. f.x = d.x - e.x;
  13341. f.y = d.y - e.y;
  13342. return f
  13343. };
  13344. a.Wl = function(d) {
  13345. this.x -= d.x;
  13346. this.y -= d.y;
  13347. return this
  13348. };
  13349. a.transform = function(f) {
  13350. var d = this.x,
  13351. e = this.y;
  13352. this.x = d * f.m[0] + e * f.m[3] + f.m[6];
  13353. this.y = d * f.m[1] + e * f.m[4] + f.m[7];
  13354. return this
  13355. };
  13356. c.e.qm.scale = function(f, d, e) {
  13357. f.x = d.x * e;
  13358. f.y = d.y * e;
  13359. return f
  13360. };
  13361. a.scale = function(d) {
  13362. this.x *= d;
  13363. this.y *= d;
  13364. return this
  13365. };
  13366. a.Uu = function(d) {
  13367. return this.x < d.x + c.e.Kc && this.x > d.x - c.e.Kc && this.y < d.y + c.e.Kc && this.y > d.y - c.e.Kc
  13368. }
  13369. })(b);
  13370. (function(c) {
  13371. c.L7 = c.e.ta = function(f, d, e) {
  13372. f && void 0 === d ? (this.x = f.x, this.y = f.y, this.z = f.z) : (this.x = f || 0, this.y = d || 0, this.z = e || 0)
  13373. };
  13374. c.e.Zba = function(e, f, d) {
  13375. return new c.e.ta(e, f, d)
  13376. };
  13377. var a = c.e.ta.prototype;
  13378. a.fill = function(f, d, e) {
  13379. f && void 0 === d ? (this.x = f.x, this.y = f.y, this.z = f.z) : (this.x = f, this.y = d, this.z = e);
  13380. return this
  13381. };
  13382. a.length = function() {
  13383. return Math.sqrt(c.e.nc(this.x) + c.e.nc(this.y) + c.e.nc(this.z))
  13384. };
  13385. a.ko = function() {
  13386. return c.e.nc(this.x) + c.e.nc(this.y) + c.e.nc(this.z)
  13387. };
  13388. a.normalize = function() {
  13389. var d = 1 / this.length();
  13390. this.x *= d;
  13391. this.y *= d;
  13392. this.z *= d;
  13393. return this
  13394. };
  13395. a.rh = function(g) {
  13396. var d = this.x,
  13397. e = this.y,
  13398. f = this.z;
  13399. this.x = e * g.z - f * g.y;
  13400. this.y = f * g.x - d * g.z;
  13401. this.z = d * g.y - e * g.x
  13402. };
  13403. a.Xj = function(d) {
  13404. return this.x * d.x + this.y * d.y + this.z * d.z
  13405. };
  13406. a.add = function(d) {
  13407. this.x += d.x;
  13408. this.y += d.y;
  13409. this.z += d.z;
  13410. return this
  13411. };
  13412. a.Wl = function(d) {
  13413. this.x -= d.x;
  13414. this.y -= d.y;
  13415. this.z -= d.z;
  13416. return this
  13417. };
  13418. a.transform = function(g) {
  13419. var d = this.x,
  13420. e = this.y,
  13421. f = this.z;
  13422. g = g.m;
  13423. this.x = d * g[0] + e * g[4] + f * g[8] + g[12];
  13424. this.y = d * g[1] + e * g[5] + f * g[9] + g[13];
  13425. this.z = d * g[2] + e * g[6] + f * g[10] + g[14];
  13426. return this
  13427. };
  13428. a.Iba = function(g) {
  13429. var d = this.x,
  13430. e = this.y,
  13431. f = this.z;
  13432. g = g.m;
  13433. this.x = d * g[0] + e * g[4] + f * g[8];
  13434. this.y = d * g[1] + e * g[5] + f * g[9];
  13435. this.z = d * g[2] + e * g[6] + f * g[10];
  13436. return this
  13437. };
  13438. a.PK = function(e) {
  13439. var d = new c.e.rp(this.x, this.y, this.z, 1);
  13440. d.transform(e);
  13441. this.x = d.x / d.M;
  13442. this.y = d.y / d.M;
  13443. this.z = d.z / d.M
  13444. };
  13445. a.scale = function(d) {
  13446. this.x *= d;
  13447. this.y *= d;
  13448. this.z *= d;
  13449. return this
  13450. };
  13451. a.Uu = function(e) {
  13452. var d = c.e.Kc;
  13453. return this.x < e.x + d && this.x > e.x - d && this.y < e.y + d && this.y > e.y - d && this.z < e.z + d && this.z > e.z - d
  13454. };
  13455. a.P6 = function(e) {
  13456. e = e.m;
  13457. var d = new c.e.ta(this.x - e[12], this.y - e[13], this.z - e[14]);
  13458. this.x = d.x * e[0] + d.y * e[1] + d.z * e[2];
  13459. this.y = d.x * e[4] + d.y * e[5] + d.z * e[6];
  13460. this.z = d.x * e[8] + d.y * e[9] + d.z * e[10];
  13461. return this
  13462. };
  13463. a.Q6 = function(g) {
  13464. var d = this.x,
  13465. e = this.y,
  13466. f = this.z;
  13467. g = g.m;
  13468. this.x = d * g[0] + e * g[1] + f * g[2];
  13469. this.y = d * g[4] + e * g[5] + f * g[6];
  13470. this.z = d * g[8] + e * g[9] + f * g[10];
  13471. return this
  13472. };
  13473. a.ud = function(d) {
  13474. if (!d) {
  13475. return this
  13476. }
  13477. this.x = d.x;
  13478. this.y = d.y;
  13479. this.z = d.z;
  13480. return this
  13481. };
  13482. c.e.ta.hca = function(d) {
  13483. d.x = d.y = d.z = 0;
  13484. return d
  13485. };
  13486. a.NY = function() {
  13487. var d = new Float32Array(3);
  13488. d[0] = this.x;
  13489. d[1] = this.y;
  13490. d[2] = this.z;
  13491. return d
  13492. }
  13493. })(b);
  13494. (function(c) {
  13495. c.e.rp = function(g, d, e, f) {
  13496. g && void 0 === d ? (this.x = g.x, this.y = g.y, this.z = g.z, this.M = g.M) : (this.x = g || 0, this.y = d || 0, this.z = e || 0, this.M = f || 0)
  13497. };
  13498. c.M7 = c.e.rp;
  13499. var a = c.e.rp.prototype;
  13500. a.fill = function(g, d, e, f) {
  13501. g && void 0 === d ? (this.x = g.x, this.y = g.y, this.z = g.z, this.M = g.M) : (this.x = g, this.y = d, this.z = e, this.M = f)
  13502. };
  13503. a.add = function(d) {
  13504. if (!d) {
  13505. return this
  13506. }
  13507. this.x += d.x;
  13508. this.y += d.y;
  13509. this.z += d.z;
  13510. this.M += d.M;
  13511. return this
  13512. };
  13513. a.Xj = function(d) {
  13514. return this.x * d.x + this.y * d.y + this.z * d.z + this.M * d.M
  13515. };
  13516. a.length = function() {
  13517. return Math.sqrt(c.e.nc(this.x) + c.e.nc(this.y) + c.e.nc(this.z) + c.e.nc(this.M))
  13518. };
  13519. a.ko = function() {
  13520. return c.e.nc(this.x) + c.e.nc(this.y) + c.e.nc(this.z) + c.e.nc(this.M)
  13521. };
  13522. a.gW = function() {
  13523. return this
  13524. };
  13525. a.normalize = function() {
  13526. var d = 1 / this.length();
  13527. this.x *= d;
  13528. this.y *= d;
  13529. this.z *= d;
  13530. this.M *= d;
  13531. return this
  13532. };
  13533. a.scale = function(d) {
  13534. this.normalize();
  13535. this.x *= d;
  13536. this.y *= d;
  13537. this.z *= d;
  13538. this.M *= d;
  13539. return this
  13540. };
  13541. a.Wl = function(d) {
  13542. this.x -= d.x;
  13543. this.y -= d.y;
  13544. this.z -= d.z;
  13545. this.M -= d.M
  13546. };
  13547. a.transform = function(g) {
  13548. var h = this.x,
  13549. d = this.y,
  13550. e = this.z,
  13551. f = this.M;
  13552. g = g.m;
  13553. this.x = h * g[0] + d * g[4] + e * g[8] + f * g[12];
  13554. this.y = h * g[1] + d * g[5] + e * g[9] + f * g[13];
  13555. this.z = h * g[2] + d * g[6] + e * g[10] + f * g[14];
  13556. this.M = h * g[3] + d * g[7] + e * g[11] + f * g[15];
  13557. return this
  13558. };
  13559. c.e.rp.Hba = function(d, f) {
  13560. for (var g = [], h = 0; h < d.length; h++) {
  13561. var e = new c.e.rp(d[h]);
  13562. e.transform(f);
  13563. g.push(e)
  13564. }
  13565. return g
  13566. };
  13567. a.Uu = function(e) {
  13568. var d = c.e.Kc;
  13569. return this.x < e.x + d && this.x > e.x - d && this.y < e.y + d && this.y > e.y - d && this.z < e.z + d && this.z > e.z - d && this.M < e.M + d && this.M > e.M - d
  13570. };
  13571. a.ud = function(d) {
  13572. this.x = d.x;
  13573. this.y = d.y;
  13574. this.z = d.z;
  13575. this.M = d.M;
  13576. return this
  13577. };
  13578. a.NY = function() {
  13579. var d = new Float32Array(4);
  13580. d[0] = this.x;
  13581. d[1] = this.y;
  13582. d[2] = this.z;
  13583. d[3] = this.M;
  13584. return d
  13585. }
  13586. })(b);
  13587. (function(a) {
  13588. a.e.$M = function(d, c) {
  13589. this.start = d || new a.e.qm;
  13590. this.dir = c || new a.e.qm
  13591. };
  13592. a.e.$M.prototype.fill = function(f, c, d, e) {
  13593. this.start.x = f;
  13594. this.start.y = c;
  13595. this.dir.x = d;
  13596. this.dir.y = e
  13597. }
  13598. })(b);
  13599. var Float32Array = Float32Array || Array;
  13600. (function(d) {
  13601. d.e.xc = function(e) {
  13602. this.m = e && e.m ? new Float32Array(e.m) : new Float32Array(9)
  13603. };
  13604. d.z7 = d.e.xc;
  13605. var a = d.e.xc.prototype;
  13606. a.fill = function(f) {
  13607. var e = this.m;
  13608. f = f.m;
  13609. e[0] = f[0];
  13610. e[1] = f[1];
  13611. e[2] = f[2];
  13612. e[3] = f[3];
  13613. e[4] = f[4];
  13614. e[5] = f[5];
  13615. e[6] = f[6];
  13616. e[7] = f[7];
  13617. e[8] = f[8];
  13618. return this
  13619. };
  13620. a.uS = function() {
  13621. var g = this.m,
  13622. m = g[0],
  13623. n = g[1],
  13624. p = g[2],
  13625. r = g[3],
  13626. t = g[4],
  13627. f = g[5],
  13628. h = g[6],
  13629. k = g[7],
  13630. e = g[8];
  13631. g[0] = t * e - f * k;
  13632. g[1] = p * k - n * e;
  13633. g[2] = n * f - p * t;
  13634. g[3] = f * h - r * e;
  13635. g[4] = m * e - p * h;
  13636. g[5] = p * r - m * f;
  13637. g[6] = r * k - t * h;
  13638. g[8] = m * t - n * r
  13639. };
  13640. a.wd = function() {
  13641. var e = this.m;
  13642. e[1] = e[2] = e[3] = e[5] = e[6] = e[7] = 0;
  13643. e[0] = e[4] = e[8] = 1;
  13644. return this
  13645. };
  13646. var c = new d.e.xc;
  13647. a.inverse = function(e) {
  13648. if (0 === e) {
  13649. return this
  13650. }
  13651. c.ud(this);
  13652. e = 1 / e;
  13653. this.uS();
  13654. this.oW(e);
  13655. return this
  13656. };
  13657. a.vJ = function() {
  13658. var e = this.m;
  13659. return 1 === e[0] && 0 === e[1] && 0 === e[2] && 0 === e[3] && 1 === e[4] && 0 === e[5] && 0 === e[6] && 0 === e[7] && 1 === e[8]
  13660. };
  13661. a.RY = function() {
  13662. var e = this.m,
  13663. g = e[1],
  13664. h = e[2],
  13665. k = e[5],
  13666. m = e[6],
  13667. f = e[7];
  13668. e[1] = e[3];
  13669. e[2] = m;
  13670. e[3] = g;
  13671. e[5] = f;
  13672. e[6] = h;
  13673. e[7] = k;
  13674. return this
  13675. };
  13676. a.Q2 = function() {
  13677. var f = this.m,
  13678. e = f[0] * f[4] * f[8] + f[1] * f[5] * f[6] + f[2] * f[3] * f[7];
  13679. return e -= f[2] * f[4] * f[6] + f[0] * f[5] * f[7] + f[1] * f[3] * f[8]
  13680. };
  13681. a.multiply = function(x) {
  13682. var y = this.m,
  13683. A = x.m;
  13684. x = y[0];
  13685. var B = y[1],
  13686. C = y[2],
  13687. H = y[3],
  13688. e = y[4],
  13689. f = y[5],
  13690. k = y[6],
  13691. p = y[7],
  13692. n = y[8],
  13693. s = A[0],
  13694. r = A[1],
  13695. u = A[2],
  13696. v = A[3],
  13697. g = A[4],
  13698. h = A[5],
  13699. m = A[6],
  13700. t = A[7],
  13701. A = A[8];
  13702. y[0] = x * s + H * r + k * u;
  13703. y[1] = B * s + e * r + p * u;
  13704. y[2] = C * s + f * r + n * u;
  13705. y[3] = C * s + f * r + n * u;
  13706. y[4] = B * v + e * g + p * h;
  13707. y[5] = C * v + f * g + n * h;
  13708. y[6] = x * m + H * t + k * A;
  13709. y[7] = B * m + e * t + p * A;
  13710. y[8] = C * m + f * t + n * A;
  13711. return this
  13712. };
  13713. a.oW = function(f) {
  13714. var e = this.m;
  13715. e[0] *= f;
  13716. e[1] *= f;
  13717. e[2] *= f;
  13718. e[3] *= f;
  13719. e[4] *= f;
  13720. e[5] *= f;
  13721. e[6] *= f;
  13722. e[7] *= f;
  13723. e[8] *= f
  13724. };
  13725. d.e.xc.h$ = function(h, k) {
  13726. var m = Math.cos(k),
  13727. f = Math.sin(k),
  13728. g = new d.e.xc,
  13729. e = g.m;
  13730. e[0] = m + h.x * h.x * (1 - m);
  13731. e[1] = h.z * f + h.y * h.x * (1 - m);
  13732. e[2] = -h.y * f + h.z * h.x * (1 - m);
  13733. e[3] = -h.z * f + h.x * h.y * (1 - m);
  13734. e[4] = m + h.y * h.y * (1 - m);
  13735. e[5] = h.x * f + h.z * h.y * (1 - m);
  13736. e[6] = h.y * f + h.x * h.z * (1 - m);
  13737. e[7] = -h.x * f + h.y * h.z * (1 - m);
  13738. e[8] = m + h.z * h.z * (1 - m);
  13739. return g
  13740. };
  13741. a.ud = function(f) {
  13742. if (this === f) {
  13743. return d.log("cc.math.Matrix3.assign(): current matrix equals matIn"), this
  13744. }
  13745. var e = this.m;
  13746. f = f.m;
  13747. e[0] = f[0];
  13748. e[1] = f[1];
  13749. e[2] = f[2];
  13750. e[3] = f[3];
  13751. e[4] = f[4];
  13752. e[5] = f[5];
  13753. e[6] = f[6];
  13754. e[7] = f[7];
  13755. e[8] = f[8];
  13756. return this
  13757. };
  13758. a.Uu = function(f) {
  13759. if (this === f) {
  13760. return !0
  13761. }
  13762. var g = d.e.Kc,
  13763. h = this.m;
  13764. f = f.m;
  13765. for (var e = 0; 9 > e; ++e) {
  13766. if (!(h[e] + g > f[e] && h[e] - g < f[e])) {
  13767. return !1
  13768. }
  13769. }
  13770. return !0
  13771. };
  13772. d.e.xc.oT = function(f) {
  13773. var g = new d.e.xc,
  13774. e = g.m;
  13775. e[0] = 1;
  13776. e[1] = 0;
  13777. e[2] = 0;
  13778. e[3] = 0;
  13779. e[4] = Math.cos(f);
  13780. e[5] = Math.sin(f);
  13781. e[6] = 0;
  13782. e[7] = -Math.sin(f);
  13783. e[8] = Math.cos(f);
  13784. return g
  13785. };
  13786. d.e.xc.pT = function(f) {
  13787. var g = new d.e.xc,
  13788. e = g.m;
  13789. e[0] = Math.cos(f);
  13790. e[1] = 0;
  13791. e[2] = -Math.sin(f);
  13792. e[3] = 0;
  13793. e[4] = 1;
  13794. e[5] = 0;
  13795. e[6] = Math.sin(f);
  13796. e[7] = 0;
  13797. e[8] = Math.cos(f);
  13798. return g
  13799. };
  13800. d.e.xc.qT = function(f) {
  13801. var g = new d.e.xc,
  13802. e = g.m;
  13803. e[0] = Math.cos(f);
  13804. e[1] = -Math.sin(f);
  13805. e[2] = 0;
  13806. e[3] = Math.sin(f);
  13807. e[4] = Math.cos(f);
  13808. e[5] = 0;
  13809. e[6] = 0;
  13810. e[7] = 0;
  13811. e[8] = 1;
  13812. return g
  13813. };
  13814. d.e.xc.F2 = function(f) {
  13815. var g = new d.e.xc,
  13816. e = g.m;
  13817. e[0] = Math.cos(f);
  13818. e[1] = Math.sin(f);
  13819. e[2] = 0;
  13820. e[3] = -Math.sin(f);
  13821. e[4] = Math.cos(f);
  13822. e[5] = 0;
  13823. e[6] = 0;
  13824. e[7] = 0;
  13825. e[8] = 1;
  13826. return g
  13827. };
  13828. d.e.xc.zI = function(f, g) {
  13829. var e = new d.e.xc;
  13830. e.wd();
  13831. e.m[0] = f;
  13832. e.m[4] = g;
  13833. return e
  13834. };
  13835. d.e.xc.Wj = function(f, g) {
  13836. var e = new d.e.xc;
  13837. e.wd();
  13838. e.m[6] = f;
  13839. e.m[7] = g;
  13840. return e
  13841. };
  13842. d.e.xc.nT = function(f) {
  13843. if (!f) {
  13844. return null
  13845. }
  13846. var g = new d.e.xc,
  13847. e = g.m;
  13848. e[0] = 1 - 2 * (f.y * f.y + f.z * f.z);
  13849. e[1] = 2 * (f.x * f.y - f.M * f.z);
  13850. e[2] = 2 * (f.x * f.z + f.M * f.y);
  13851. e[3] = 2 * (f.x * f.y + f.M * f.z);
  13852. e[4] = 1 - 2 * (f.x * f.x + f.z * f.z);
  13853. e[5] = 2 * (f.y * f.z - f.M * f.x);
  13854. e[6] = 2 * (f.x * f.z - f.M * f.y);
  13855. e[7] = 2 * (f.y * f.z + f.M * f.x);
  13856. e[8] = 1 - 2 * (f.x * f.x + f.y * f.y);
  13857. return g
  13858. };
  13859. a.j$ = function() {
  13860. return d.e.eg.dK(this).pC()
  13861. }
  13862. })(b);
  13863. (function(e) {
  13864. e.e.U = function(f) {
  13865. this.m = f && f.m ? new Float32Array(f.m) : new Float32Array(16)
  13866. };
  13867. e.A7 = e.e.U;
  13868. var a = e.e.U.prototype;
  13869. a.fill = function(h) {
  13870. for (var f = this.m, g = 0; 16 > g; g++) {
  13871. f[g] = h[g]
  13872. }
  13873. return this
  13874. };
  13875. e.C7 = function(g) {
  13876. var f = g.m;
  13877. f[1] = f[2] = f[3] = f[4] = f[6] = f[7] = f[8] = f[9] = f[11] = f[12] = f[13] = f[14] = 0;
  13878. f[0] = f[5] = f[10] = f[15] = 1;
  13879. return g
  13880. };
  13881. a.wd = function() {
  13882. var f = this.m;
  13883. f[1] = f[2] = f[3] = f[4] = f[6] = f[7] = f[8] = f[9] = f[11] = f[12] = f[13] = f[14] = 0;
  13884. f[0] = f[5] = f[10] = f[15] = 1;
  13885. return this
  13886. };
  13887. a.get = function(g, f) {
  13888. return this.m[g + 4 * f]
  13889. };
  13890. a.set = function(h, f, g) {
  13891. this.m[h + 4 * f] = g
  13892. };
  13893. a.wo = function(f, h, m, n) {
  13894. var g = this.m,
  13895. i = g[f + 4 * h];
  13896. g[f + 4 * h] = g[m + 4 * n];
  13897. g[m + 4 * n] = i
  13898. };
  13899. e.e.U.zF = function(f, g) {
  13900. var i, t = 0,
  13901. u = 0,
  13902. h, m, p, r, n = [0, 0, 0, 0],
  13903. v = [0, 0, 0, 0],
  13904. s = [0, 0, 0, 0];
  13905. for (i = 0; 4 > i; i++) {
  13906. for (h = r = 0; 4 > h; h++) {
  13907. if (1 !== s[h]) {
  13908. for (m = 0; 4 > m; m++) {
  13909. 0 === s[m] && (p = Math.abs(f.get(h, m)), p >= r && (r = p, u = h, t = m))
  13910. }
  13911. }
  13912. }++s[t];
  13913. if (u !== t) {
  13914. for (h = 0; 4 > h; h++) {
  13915. f.wo(u, h, t, h)
  13916. }
  13917. for (h = 0; 4 > h; h++) {
  13918. g.wo(u, h, t, h)
  13919. }
  13920. }
  13921. v[i] = u;
  13922. n[i] = t;
  13923. if (0 === f.get(t, t)) {
  13924. return !1
  13925. }
  13926. m = 1 / f.get(t, t);
  13927. f.set(t, t, 1);
  13928. for (h = 0; 4 > h; h++) {
  13929. f.set(t, h, f.get(t, h) * m)
  13930. }
  13931. for (h = 0; 4 > h; h++) {
  13932. g.set(t, h, g.get(t, h) * m)
  13933. }
  13934. for (m = 0; 4 > m; m++) {
  13935. if (m !== t) {
  13936. p = f.get(m, t);
  13937. f.set(m, t, 0);
  13938. for (h = 0; 4 > h; h++) {
  13939. f.set(m, h, f.get(m, h) - f.get(t, h) * p)
  13940. }
  13941. for (h = 0; 4 > h; h++) {
  13942. g.set(m, h, f.get(m, h) - g.get(t, h) * p)
  13943. }
  13944. }
  13945. }
  13946. }
  13947. for (h = 3; 0 <= h; h--) {
  13948. if (v[h] !== n[h]) {
  13949. for (m = 0; 4 > m; m++) {
  13950. f.wo(m, v[h], m, n[h])
  13951. }
  13952. }
  13953. }
  13954. return !0
  13955. };
  13956. var c = (new e.e.U).wd();
  13957. e.D7 = function(g, h) {
  13958. var f = new e.e.U(h);
  13959. if (!1 === e.e.U.zF(f, c)) {
  13960. return null
  13961. }
  13962. g.ud(f);
  13963. return g
  13964. };
  13965. a.inverse = function() {
  13966. var f = new e.e.U(this);
  13967. return !1 === e.e.U.zF(f, c) ? null : f
  13968. };
  13969. a.vJ = function() {
  13970. var f = this.m;
  13971. return 1 === f[0] && 0 === f[1] && 0 === f[2] && 0 === f[3] && 0 === f[4] && 1 === f[5] && 0 === f[6] && 0 === f[7] && 0 === f[8] && 0 === f[9] && 1 === f[10] && 0 === f[11] && 0 === f[12] && 0 === f[13] && 0 === f[14] && 1 === f[15]
  13972. };
  13973. a.RY = function() {
  13974. var f = this.m,
  13975. g = f[1],
  13976. i = f[2],
  13977. t = f[3],
  13978. u = f[6],
  13979. h = f[7],
  13980. m = f[8],
  13981. p = f[9],
  13982. r = f[11],
  13983. n = f[12],
  13984. v = f[13],
  13985. s = f[14];
  13986. f[1] = f[4];
  13987. f[2] = m;
  13988. f[3] = n;
  13989. f[4] = g;
  13990. f[6] = p;
  13991. f[7] = v;
  13992. f[8] = i;
  13993. f[9] = u;
  13994. f[11] = s;
  13995. f[12] = t;
  13996. f[13] = h;
  13997. f[14] = r;
  13998. return this
  13999. };
  14000. e.sv = function(t, u, x) {
  14001. t = t.m;
  14002. var B = u.m,
  14003. f = x.m;
  14004. x = B[0];
  14005. u = B[1];
  14006. var g = B[2],
  14007. i = B[3],
  14008. s = B[4],
  14009. C = B[5],
  14010. y = B[6],
  14011. Q = B[7],
  14012. H = B[8],
  14013. T = B[9],
  14014. V = B[10],
  14015. m = B[11],
  14016. p = B[12],
  14017. v = B[13],
  14018. R = B[14],
  14019. B = B[15],
  14020. X = f[0],
  14021. Y = f[1],
  14022. Z = f[2],
  14023. ag = f[3],
  14024. ah = f[4],
  14025. ai = f[5],
  14026. aj = f[6],
  14027. A = f[7],
  14028. S = f[8],
  14029. U = f[9],
  14030. aa = f[10],
  14031. r = f[11],
  14032. W = f[12],
  14033. h = f[13],
  14034. n = f[14],
  14035. f = f[15];
  14036. t[0] = X * x + Y * s + Z * H + ag * p;
  14037. t[1] = X * u + Y * C + Z * T + ag * v;
  14038. t[2] = X * g + Y * y + Z * V + ag * R;
  14039. t[3] = X * i + Y * Q + Z * m + ag * B;
  14040. t[4] = ah * x + ai * s + aj * H + A * p;
  14041. t[5] = ah * u + ai * C + aj * T + A * v;
  14042. t[6] = ah * g + ai * y + aj * V + A * R;
  14043. t[7] = ah * i + ai * Q + aj * m + A * B;
  14044. t[8] = S * x + U * s + aa * H + r * p;
  14045. t[9] = S * u + U * C + aa * T + r * v;
  14046. t[10] = S * g + U * y + aa * V + r * R;
  14047. t[11] = S * i + U * Q + aa * m + r * B;
  14048. t[12] = W * x + h * s + n * H + f * p;
  14049. t[13] = W * u + h * C + n * T + f * v;
  14050. t[14] = W * g + h * y + n * V + f * R;
  14051. t[15] = W * i + h * Q + n * m + f * B
  14052. };
  14053. a.multiply = function(t) {
  14054. var u = this.m,
  14055. x = t.m;
  14056. t = u[0];
  14057. var B = u[1],
  14058. f = u[2],
  14059. g = u[3],
  14060. i = u[4],
  14061. s = u[5],
  14062. C = u[6],
  14063. y = u[7],
  14064. Q = u[8],
  14065. H = u[9],
  14066. T = u[10],
  14067. V = u[11],
  14068. m = u[12],
  14069. p = u[13],
  14070. v = u[14],
  14071. R = u[15],
  14072. X = x[0],
  14073. Y = x[1],
  14074. Z = x[2],
  14075. ag = x[3],
  14076. ah = x[4],
  14077. ai = x[5],
  14078. aj = x[6],
  14079. A = x[7],
  14080. S = x[8],
  14081. U = x[9],
  14082. aa = x[10],
  14083. r = x[11],
  14084. W = x[12],
  14085. h = x[13],
  14086. n = x[14],
  14087. x = x[15];
  14088. u[0] = X * t + Y * i + Z * Q + ag * m;
  14089. u[1] = X * B + Y * s + Z * H + ag * p;
  14090. u[2] = X * f + Y * C + Z * T + ag * v;
  14091. u[3] = X * g + Y * y + Z * V + ag * R;
  14092. u[4] = ah * t + ai * i + aj * Q + A * m;
  14093. u[5] = ah * B + ai * s + aj * H + A * p;
  14094. u[6] = ah * f + ai * C + aj * T + A * v;
  14095. u[7] = ah * g + ai * y + aj * V + A * R;
  14096. u[8] = S * t + U * i + aa * Q + r * m;
  14097. u[9] = S * B + U * s + aa * H + r * p;
  14098. u[10] = S * f + U * C + aa * T + r * v;
  14099. u[11] = S * g + U * y + aa * V + r * R;
  14100. u[12] = W * t + h * i + n * Q + x * m;
  14101. u[13] = W * B + h * s + n * H + x * p;
  14102. u[14] = W * f + h * C + n * T + x * v;
  14103. u[15] = W * g + h * y + n * V + x * R;
  14104. return this
  14105. };
  14106. e.OU = function() {
  14107. var h = b.Fh.top.m,
  14108. f = b.Dh.top.m,
  14109. g = new Float32Array(16);
  14110. g[0] = h[0] * f[0] + h[4] * f[1] + h[8] * f[2] + h[12] * f[3];
  14111. g[1] = h[1] * f[0] + h[5] * f[1] + h[9] * f[2] + h[13] * f[3];
  14112. g[2] = h[2] * f[0] + h[6] * f[1] + h[10] * f[2] + h[14] * f[3];
  14113. g[3] = h[3] * f[0] + h[7] * f[1] + h[11] * f[2] + h[15] * f[3];
  14114. g[4] = h[0] * f[4] + h[4] * f[5] + h[8] * f[6] + h[12] * f[7];
  14115. g[5] = h[1] * f[4] + h[5] * f[5] + h[9] * f[6] + h[13] * f[7];
  14116. g[6] = h[2] * f[4] + h[6] * f[5] + h[10] * f[6] + h[14] * f[7];
  14117. g[7] = h[3] * f[4] + h[7] * f[5] + h[11] * f[6] + h[15] * f[7];
  14118. g[8] = h[0] * f[8] + h[4] * f[9] + h[8] * f[10] + h[12] * f[11];
  14119. g[9] = h[1] * f[8] + h[5] * f[9] + h[9] * f[10] + h[13] * f[11];
  14120. g[10] = h[2] * f[8] + h[6] * f[9] + h[10] * f[10] + h[14] * f[11];
  14121. g[11] = h[3] * f[8] + h[7] * f[9] + h[11] * f[10] + h[15] * f[11];
  14122. g[12] = h[0] * f[12] + h[4] * f[13] + h[8] * f[14] + h[12] * f[15];
  14123. g[13] = h[1] * f[12] + h[5] * f[13] + h[9] * f[14] + h[13] * f[15];
  14124. g[14] = h[2] * f[12] + h[6] * f[13] + h[10] * f[14] + h[14] * f[15];
  14125. g[15] = h[3] * f[12] + h[7] * f[13] + h[11] * f[14] + h[15] * f[15];
  14126. return g
  14127. };
  14128. e.B7 = function(i, f) {
  14129. if (i === f) {
  14130. return e.log("cc.kmMat4Assign(): pOut equals pIn"), i
  14131. }
  14132. var h = i.m,
  14133. g = f.m;
  14134. h[0] = g[0];
  14135. h[1] = g[1];
  14136. h[2] = g[2];
  14137. h[3] = g[3];
  14138. h[4] = g[4];
  14139. h[5] = g[5];
  14140. h[6] = g[6];
  14141. h[7] = g[7];
  14142. h[8] = g[8];
  14143. h[9] = g[9];
  14144. h[10] = g[10];
  14145. h[11] = g[11];
  14146. h[12] = g[12];
  14147. h[13] = g[13];
  14148. h[14] = g[14];
  14149. h[15] = g[15];
  14150. return i
  14151. };
  14152. a.ud = function(g) {
  14153. if (this === g) {
  14154. return e.log("cc.mat.Matrix4.assignFrom(): mat4 equals current matrix"), this
  14155. }
  14156. var f = this.m;
  14157. g = g.m;
  14158. f[0] = g[0];
  14159. f[1] = g[1];
  14160. f[2] = g[2];
  14161. f[3] = g[3];
  14162. f[4] = g[4];
  14163. f[5] = g[5];
  14164. f[6] = g[6];
  14165. f[7] = g[7];
  14166. f[8] = g[8];
  14167. f[9] = g[9];
  14168. f[10] = g[10];
  14169. f[11] = g[11];
  14170. f[12] = g[12];
  14171. f[13] = g[13];
  14172. f[14] = g[14];
  14173. f[15] = g[15];
  14174. return this
  14175. };
  14176. a.Uu = function(i) {
  14177. if (this === i) {
  14178. return e.log("cc.kmMat4AreEqual(): pMat1 and pMat2 are same object."), !0
  14179. }
  14180. var f = this.m;
  14181. i = i.m;
  14182. for (var h = e.e.Kc, g = 0; 16 > g; g++) {
  14183. if (!(f[g] + h > i[g] && f[g] - h < i[g])) {
  14184. return !1
  14185. }
  14186. }
  14187. return !0
  14188. };
  14189. e.e.U.oT = function(g, h) {
  14190. h = h || new e.e.U;
  14191. var f = h.m;
  14192. f[0] = 1;
  14193. f[3] = f[2] = f[1] = 0;
  14194. f[4] = 0;
  14195. f[5] = Math.cos(g);
  14196. f[6] = Math.sin(g);
  14197. f[7] = 0;
  14198. f[8] = 0;
  14199. f[9] = -Math.sin(g);
  14200. f[10] = Math.cos(g);
  14201. f[11] = 0;
  14202. f[14] = f[13] = f[12] = 0;
  14203. f[15] = 1;
  14204. return h
  14205. };
  14206. e.e.U.pT = function(g, h) {
  14207. h = h || new e.e.U;
  14208. var f = h.m;
  14209. f[0] = Math.cos(g);
  14210. f[1] = 0;
  14211. f[2] = -Math.sin(g);
  14212. f[3] = 0;
  14213. f[7] = f[6] = f[4] = 0;
  14214. f[5] = 1;
  14215. f[8] = Math.sin(g);
  14216. f[9] = 0;
  14217. f[10] = Math.cos(g);
  14218. f[11] = 0;
  14219. f[14] = f[13] = f[12] = 0;
  14220. f[15] = 1;
  14221. return h
  14222. };
  14223. e.e.U.qT = function(g, h) {
  14224. h = h || new e.e.U;
  14225. var f = h.m;
  14226. f[0] = Math.cos(g);
  14227. f[1] = Math.sin(g);
  14228. f[3] = f[2] = 0;
  14229. f[4] = -Math.sin(g);
  14230. f[5] = Math.cos(g);
  14231. f[7] = f[6] = 0;
  14232. f[11] = f[9] = f[8] = 0;
  14233. f[10] = 1;
  14234. f[14] = f[13] = f[12] = 0;
  14235. f[15] = 1;
  14236. return h
  14237. };
  14238. e.e.U.E2 = function(i, m, p, r) {
  14239. r = r || new e.e.U;
  14240. var s = Math.cos(i);
  14241. i = Math.sin(i);
  14242. var h = Math.cos(m);
  14243. m = Math.sin(m);
  14244. var k = Math.cos(p);
  14245. p = Math.sin(p);
  14246. var n = i * m,
  14247. g = s * m,
  14248. f = r.m;
  14249. f[0] = h * k;
  14250. f[4] = h * p;
  14251. f[8] = -m;
  14252. f[1] = n * k - s * p;
  14253. f[5] = n * p + s * k;
  14254. f[9] = i * h;
  14255. f[2] = g * k + i * p;
  14256. f[6] = g * p - i * k;
  14257. f[10] = s * h;
  14258. f[3] = f[7] = f[11] = 0;
  14259. f[15] = 1;
  14260. return r
  14261. };
  14262. e.e.U.nT = function(g, h) {
  14263. h = h || new e.e.U;
  14264. var f = h.m;
  14265. f[0] = 1 - 2 * (g.y * g.y + g.z * g.z);
  14266. f[1] = 2 * (g.x * g.y + g.z * g.M);
  14267. f[2] = 2 * (g.x * g.z - g.y * g.M);
  14268. f[3] = 0;
  14269. f[4] = 2 * (g.x * g.y - g.z * g.M);
  14270. f[5] = 1 - 2 * (g.x * g.x + g.z * g.z);
  14271. f[6] = 2 * (g.z * g.y + g.x * g.M);
  14272. f[7] = 0;
  14273. f[8] = 2 * (g.x * g.z + g.y * g.M);
  14274. f[9] = 2 * (g.y * g.z - g.x * g.M);
  14275. f[10] = 1 - 2 * (g.x * g.x + g.y * g.y);
  14276. f[11] = 0;
  14277. f[14] = f[13] = f[12] = 0;
  14278. f[15] = 1;
  14279. return h
  14280. };
  14281. e.e.U.G2 = function(i, f, h) {
  14282. h = h || new e.e.U;
  14283. var g = h.m;
  14284. i = i.m;
  14285. g[0] = i[0];
  14286. g[1] = i[1];
  14287. g[2] = i[2];
  14288. g[3] = 0;
  14289. g[4] = i[3];
  14290. g[5] = i[4];
  14291. g[6] = i[5];
  14292. g[7] = 0;
  14293. g[8] = i[6];
  14294. g[9] = i[7];
  14295. g[10] = i[8];
  14296. g[11] = 0;
  14297. g[12] = f.x;
  14298. g[13] = f.y;
  14299. g[14] = f.z;
  14300. g[15] = 1;
  14301. return h
  14302. };
  14303. e.e.U.zI = function(h, i, k, g) {
  14304. g = g || new e.e.U;
  14305. var f = g.m;
  14306. f[0] = h;
  14307. f[5] = i;
  14308. f[10] = k;
  14309. f[15] = 1;
  14310. f[1] = f[2] = f[3] = f[4] = f[6] = f[7] = f[8] = f[9] = f[11] = f[12] = f[13] = f[14] = 0;
  14311. return g
  14312. };
  14313. e.I7 = function(h, i, f, g) {
  14314. h.m[0] = h.m[5] = h.m[10] = h.m[15] = 1;
  14315. h.m[1] = h.m[2] = h.m[3] = h.m[4] = h.m[6] = h.m[7] = h.m[8] = h.m[9] = h.m[11] = 0;
  14316. h.m[12] = i;
  14317. h.m[13] = f;
  14318. h.m[14] = g;
  14319. return h
  14320. };
  14321. e.e.U.Wj = function(i, f, h, g) {
  14322. g = g || new e.e.U;
  14323. g.wd();
  14324. g.m[12] = i;
  14325. g.m[13] = f;
  14326. g.m[14] = h;
  14327. return g
  14328. };
  14329. a.k6 = function() {
  14330. var f = this.m;
  14331. return (new e.e.ta(f[4], f[5], f[6])).normalize()
  14332. };
  14333. a.M5 = function() {
  14334. var f = this.m;
  14335. return (new e.e.ta(f[0], f[1], f[2])).normalize()
  14336. };
  14337. a.d5 = function() {
  14338. var f = this.m;
  14339. return (new e.e.ta(f[8], f[9], f[10])).normalize()
  14340. };
  14341. e.G7 = function(h, k, m, g, f) {
  14342. var i = e.Ce(k / 2);
  14343. k = f - g;
  14344. var n = Math.sin(i);
  14345. if (0 === k || 0 === n || 0 === m) {
  14346. return null
  14347. }
  14348. i = Math.cos(i) / n;
  14349. h.wd();
  14350. h.m[0] = i / m;
  14351. h.m[5] = i;
  14352. h.m[10] = -(f + g) / k;
  14353. h.m[11] = -1;
  14354. h.m[14] = -2 * g * f / k;
  14355. h.m[15] = 0;
  14356. return h
  14357. };
  14358. e.e.U.rT = function(h, k) {
  14359. var m = e.Ce(30),
  14360. g = k - 0.1,
  14361. f = Math.sin(m);
  14362. if (0 === g || 0 === f || 0 === h) {
  14363. return null
  14364. }
  14365. var m = Math.cos(m) / f,
  14366. f = new e.e.U,
  14367. i = f.m;
  14368. f.wd();
  14369. i[0] = m / h;
  14370. i[5] = m;
  14371. i[10] = -(k + 0.1) / g;
  14372. i[11] = -1;
  14373. i[14] = -0.2 * k / g;
  14374. i[15] = 0;
  14375. return f
  14376. };
  14377. e.F7 = function(f, h, m, n, g, i, p) {
  14378. f.wd();
  14379. f.m[0] = 2 / (m - h);
  14380. f.m[5] = 2 / (g - n);
  14381. f.m[10] = -2 / (p - i);
  14382. f.m[12] = -((m + h) / (m - h));
  14383. f.m[13] = -((g + n) / (g - n));
  14384. f.m[14] = -((p + i) / (p - i));
  14385. return f
  14386. };
  14387. e.e.U.IA = function(f, k, m, i, g, h) {
  14388. var n = new e.e.U,
  14389. p = n.m;
  14390. n.wd();
  14391. p[0] = 2 / (k - f);
  14392. p[5] = 2 / (i - m);
  14393. p[10] = -2 / (h - g);
  14394. p[12] = -((k + f) / (k - f));
  14395. p[13] = -((i + m) / (i - m));
  14396. p[14] = -((h + g) / (h - g));
  14397. return n
  14398. };
  14399. e.E7 = function(h, i, k, g) {
  14400. k = new e.e.ta(k);
  14401. var f = new e.e.ta(g);
  14402. k.Wl(i);
  14403. k.normalize();
  14404. f.normalize();
  14405. g = new e.e.ta(k);
  14406. g.rh(f);
  14407. g.normalize();
  14408. f = new e.e.ta(g);
  14409. f.rh(k);
  14410. g.normalize();
  14411. h.wd();
  14412. h.m[0] = g.x;
  14413. h.m[4] = g.y;
  14414. h.m[8] = g.z;
  14415. h.m[1] = f.x;
  14416. h.m[5] = f.y;
  14417. h.m[9] = f.z;
  14418. h.m[2] = -k.x;
  14419. h.m[6] = -k.y;
  14420. h.m[10] = -k.z;
  14421. i = e.e.U.Wj(-i.x, -i.y, -i.z);
  14422. h.multiply(i);
  14423. return h
  14424. };
  14425. var d = new e.e.U;
  14426. a.JB = function(i, k, g) {
  14427. k = new e.e.ta(k);
  14428. var h = new e.e.ta(g);
  14429. g = this.m;
  14430. k.Wl(i);
  14431. k.normalize();
  14432. h.normalize();
  14433. var f = new e.e.ta(k);
  14434. f.rh(h);
  14435. f.normalize();
  14436. h = new e.e.ta(f);
  14437. h.rh(k);
  14438. f.normalize();
  14439. this.wd();
  14440. g[0] = f.x;
  14441. g[4] = f.y;
  14442. g[8] = f.z;
  14443. g[1] = h.x;
  14444. g[5] = h.y;
  14445. g[9] = h.z;
  14446. g[2] = -k.x;
  14447. g[6] = -k.y;
  14448. g[10] = -k.z;
  14449. d = e.e.U.Wj(-i.x, -i.y, -i.z, d);
  14450. this.multiply(d)
  14451. };
  14452. e.H7 = function(i, f, h) {
  14453. var g = Math.cos(h);
  14454. h = Math.sin(h);
  14455. f = new e.e.ta(f);
  14456. f.normalize();
  14457. i.m[0] = g + f.x * f.x * (1 - g);
  14458. i.m[1] = f.z * h + f.y * f.x * (1 - g);
  14459. i.m[2] = -f.y * h + f.z * f.x * (1 - g);
  14460. i.m[3] = 0;
  14461. i.m[4] = -f.z * h + f.x * f.y * (1 - g);
  14462. i.m[5] = g + f.y * f.y * (1 - g);
  14463. i.m[6] = f.x * h + f.z * f.y * (1 - g);
  14464. i.m[7] = 0;
  14465. i.m[8] = f.y * h + f.x * f.z * (1 - g);
  14466. i.m[9] = -f.x * h + f.y * f.z * (1 - g);
  14467. i.m[10] = g + f.z * f.z * (1 - g);
  14468. i.m[11] = 0;
  14469. i.m[12] = 0;
  14470. i.m[13] = 0;
  14471. i.m[14] = 0;
  14472. i.m[15] = 1;
  14473. return i
  14474. };
  14475. e.e.U.mT = function(h, i, k) {
  14476. k = k || new e.e.U;
  14477. var g = this.m,
  14478. f = Math.cos(i);
  14479. i = Math.sin(i);
  14480. h = new e.e.ta(h);
  14481. h.normalize();
  14482. g[0] = f + h.x * h.x * (1 - f);
  14483. g[1] = h.z * i + h.y * h.x * (1 - f);
  14484. g[2] = -h.y * i + h.z * h.x * (1 - f);
  14485. g[3] = 0;
  14486. g[4] = -h.z * i + h.x * h.y * (1 - f);
  14487. g[5] = f + h.y * h.y * (1 - f);
  14488. g[6] = h.x * i + h.z * h.y * (1 - f);
  14489. g[7] = 0;
  14490. g[8] = h.y * i + h.x * h.z * (1 - f);
  14491. g[9] = -h.x * i + h.y * h.z * (1 - f);
  14492. g[10] = f + h.z * h.z * (1 - f);
  14493. g[11] = 0;
  14494. g[12] = g[13] = g[14] = 0;
  14495. g[15] = 1;
  14496. return k
  14497. };
  14498. a.cU = function() {
  14499. var g = new e.e.xc,
  14500. h = this.m,
  14501. f = g.m;
  14502. f[0] = h[0];
  14503. f[1] = h[1];
  14504. f[2] = h[2];
  14505. f[3] = h[4];
  14506. f[4] = h[5];
  14507. f[5] = h[6];
  14508. f[6] = h[8];
  14509. f[7] = h[9];
  14510. f[8] = h[10];
  14511. return g
  14512. };
  14513. a.R3 = function(g) {
  14514. var h = new e.e.Jb,
  14515. f = this.m;
  14516. switch (g) {
  14517. case e.e.Jb.ZM:
  14518. h.a = f[3] - f[0];
  14519. h.b = f[7] - f[4];
  14520. h.c = f[11] - f[8];
  14521. h.R = f[15] - f[12];
  14522. break;
  14523. case e.e.Jb.hM:
  14524. h.a = f[3] + f[0];
  14525. h.b = f[7] + f[4];
  14526. h.c = f[11] + f[8];
  14527. h.R = f[15] + f[12];
  14528. break;
  14529. case e.e.Jb.bL:
  14530. h.a = f[3] + f[1];
  14531. h.b = f[7] + f[5];
  14532. h.c = f[11] + f[9];
  14533. h.R = f[15] + f[13];
  14534. break;
  14535. case e.e.Jb.UN:
  14536. h.a = f[3] - f[1];
  14537. h.b = f[7] - f[5];
  14538. h.c = f[11] - f[9];
  14539. h.R = f[15] - f[13];
  14540. break;
  14541. case e.e.Jb.RL:
  14542. h.a = f[3] - f[2];
  14543. h.b = f[7] - f[6];
  14544. h.c = f[11] - f[10];
  14545. h.R = f[15] - f[14];
  14546. break;
  14547. case e.e.Jb.oM:
  14548. h.a = f[3] + f[2];
  14549. h.b = f[7] + f[6];
  14550. h.c = f[11] + f[10];
  14551. h.R = f[15] + f[14];
  14552. break;
  14553. default:
  14554. e.log("cc.math.Matrix4.extractPlane: Invalid plane index")
  14555. }
  14556. g = Math.sqrt(h.a * h.a + h.b * h.b + h.c * h.c);
  14557. h.a /= g;
  14558. h.b /= g;
  14559. h.c /= g;
  14560. h.R /= g;
  14561. return h
  14562. };
  14563. a.pC = function() {
  14564. var f = this.cU();
  14565. return e.e.eg.dK(f).pC()
  14566. }
  14567. })(b);
  14568. (function(c) {
  14569. c.e.Jb = function(g, d, e, f) {
  14570. g && void 0 === d ? (this.a = g.a, this.b = g.b, this.c = g.c, this.R = g.R) : (this.a = g || 0, this.b = d || 0, this.c = e || 0, this.R = f || 0)
  14571. };
  14572. c.J7 = c.e.Jb;
  14573. var a = c.e.Jb.prototype;
  14574. c.e.Jb.hM = 0;
  14575. c.e.Jb.ZM = 1;
  14576. c.e.Jb.bL = 2;
  14577. c.e.Jb.UN = 3;
  14578. c.e.Jb.oM = 4;
  14579. c.e.Jb.RL = 5;
  14580. c.e.Jb.NM = 0;
  14581. c.e.Jb.MM = 1;
  14582. c.e.Jb.OM = 2;
  14583. a.Xj = function(d) {
  14584. return this.a * d.x + this.b * d.y + this.c * d.z + this.R * d.M
  14585. };
  14586. a.V2 = function(d) {
  14587. return this.a * d.x + this.b * d.y + this.c * d.z + this.R
  14588. };
  14589. a.W2 = function(d) {
  14590. return this.a * d.x + this.b * d.y + this.c * d.z
  14591. };
  14592. c.e.Jb.m4 = function(e, d) {
  14593. return new c.e.Jb(d.x, d.y, d.z, -d.Xj(e))
  14594. };
  14595. c.e.Jb.n4 = function(e, f, g) {
  14596. f = new c.e.ta(f);
  14597. g = new c.e.ta(g);
  14598. var d = new c.e.Jb;
  14599. f.Wl(e);
  14600. g.Wl(e);
  14601. f.rh(g);
  14602. f.normalize();
  14603. d.a = f.x;
  14604. d.b = f.y;
  14605. d.c = f.z;
  14606. d.R = f.scale(-1).Xj(e);
  14607. return d
  14608. };
  14609. a.normalize = function() {
  14610. var e = new c.e.ta(this.a, this.b, this.c),
  14611. d = 1 / e.length();
  14612. e.normalize();
  14613. this.a = e.x;
  14614. this.b = e.y;
  14615. this.c = e.z;
  14616. this.R *= d;
  14617. return this
  14618. };
  14619. a.v2 = function(d) {
  14620. d = this.a * d.x + this.b * d.y + this.c * d.z + this.R;
  14621. return 0.001 < d ? c.e.Jb.NM : -0.001 > d ? c.e.Jb.MM : c.e.Jb.OM
  14622. }
  14623. })(b);
  14624. (function(c) {
  14625. c.e.eg = function(g, d, e, f) {
  14626. g && void 0 === d ? (this.x = g.x, this.y = g.y, this.z = g.z, this.M = g.M) : (this.x = g || 0, this.y = d || 0, this.z = e || 0, this.M = f || 0)
  14627. };
  14628. c.K7 = c.e.eg;
  14629. var a = c.e.eg.prototype;
  14630. a.jT = function(d) {
  14631. this.x = -d.x;
  14632. this.y = -d.y;
  14633. this.z = -d.z;
  14634. this.M = d.M;
  14635. return this
  14636. };
  14637. a.Xj = function(d) {
  14638. return this.M * d.M + this.x * d.x + this.y * d.y + this.z * d.z
  14639. };
  14640. a.Q3 = function() {
  14641. return this
  14642. };
  14643. a.wd = function() {
  14644. this.z = this.y = this.x = 0;
  14645. this.M = 1;
  14646. return this
  14647. };
  14648. a.inverse = function() {
  14649. var d = this.length();
  14650. if (Math.abs(d) > c.e.Kc) {
  14651. return this.M = this.z = this.y = this.x = 0, this
  14652. }
  14653. this.jT(this).scale(1 / d);
  14654. return this
  14655. };
  14656. a.vJ = function() {
  14657. return 0 === this.x && 0 === this.y && 0 === this.z && 1 === this.M
  14658. };
  14659. a.length = function() {
  14660. return Math.sqrt(this.ko())
  14661. };
  14662. a.ko = function() {
  14663. return this.x * this.x + this.y * this.y + this.z * this.z + this.M * this.M
  14664. };
  14665. a.multiply = function(g) {
  14666. var h = this.x,
  14667. d = this.y,
  14668. e = this.z,
  14669. f = this.M;
  14670. this.M = f * g.M - h * g.x - d * g.y - e * g.z;
  14671. this.x = f * g.x + h * g.M + d * g.z - e * g.y;
  14672. this.y = f * g.y + d * g.M + e * g.x - h * g.z;
  14673. this.z = f * g.z + e * g.M + h * g.y - d * g.x;
  14674. return this
  14675. };
  14676. a.normalize = function() {
  14677. var d = this.length();
  14678. if (Math.abs(d) <= c.e.Kc) {
  14679. throw "current quaternion is an invalid value"
  14680. }
  14681. this.scale(1 / d);
  14682. return this
  14683. };
  14684. a.cK = function(f) {
  14685. var d = 0.5 * Math.PI,
  14686. e = Math.sin(d);
  14687. this.M = Math.cos(d);
  14688. this.x = f.x * e;
  14689. this.y = f.y * e;
  14690. this.z = f.z * e
  14691. };
  14692. c.e.eg.dK = function(d) {
  14693. if (!d) {
  14694. return null
  14695. }
  14696. var f, g, h;
  14697. f = [];
  14698. g = d.m;
  14699. d = 0;
  14700. f[0] = g[0];
  14701. f[1] = g[3];
  14702. f[2] = g[6];
  14703. f[4] = g[1];
  14704. f[5] = g[4];
  14705. f[6] = g[7];
  14706. f[8] = g[2];
  14707. f[9] = g[5];
  14708. f[10] = g[8];
  14709. f[15] = 1;
  14710. var e = f[0];
  14711. d = e[0] + e[5] + e[10] + 1;
  14712. d > c.e.Kc ? (d = 2 * Math.sqrt(d), f = (e[9] - e[6]) / d, g = (e[2] - e[8]) / d, h = (e[4] - e[1]) / d, d *= 0.25) : e[0] > e[5] && e[0] > e[10] ? (d = 2 * Math.sqrt(1 + e[0] - e[5] - e[10]), f = 0.25 * d, g = (e[4] + e[1]) / d, h = (e[2] + e[8]) / d, d = (e[9] - e[6]) / d) : e[5] > e[10] ? (d = 2 * Math.sqrt(1 + e[5] - e[0] - e[10]), f = (e[4] + e[1]) / d, g = 0.25 * d, h = (e[9] + e[6]) / d, d = (e[2] - e[8]) / d) : (d = 2 * Math.sqrt(1 + e[10] - e[0] - e[5]), f = (e[2] + e[8]) / d, g = (e[9] + e[6]) / d, h = 0.25 * d, d = (e[4] - e[1]) / d);
  14713. return new c.e.eg(f, g, h, d)
  14714. };
  14715. c.e.eg.k$ = function(k, m, n) {
  14716. var p, d, e, f, g;
  14717. p = c.Ce(m) / 2;
  14718. d = c.Ce(k) / 2;
  14719. e = c.Ce(n) / 2;
  14720. n = Math.cos(p);
  14721. k = Math.cos(d);
  14722. m = Math.cos(e);
  14723. p = Math.sin(p);
  14724. d = Math.sin(d);
  14725. e = Math.sin(e);
  14726. f = k * m;
  14727. g = d * e;
  14728. var h = new c.e.eg;
  14729. h.M = n * f + p * g;
  14730. h.x = p * f - n * g;
  14731. h.y = n * d * m + p * k * e;
  14732. h.z = n * k * e - p * d * m;
  14733. h.normalize();
  14734. return h
  14735. };
  14736. a.iba = function(h, k) {
  14737. if (this.x === h.x && this.y === h.y && this.z === h.z && this.M === h.M) {
  14738. return this
  14739. }
  14740. var d = this.Xj(h),
  14741. f = Math.acos(d),
  14742. d = Math.sqrt(1 - c.e.nc(d)),
  14743. g = Math.sin(k * f) / d,
  14744. e = new c.e.eg(h);
  14745. this.scale(Math.sin((1 - k) * f) / d);
  14746. e.scale(g);
  14747. this.add(e);
  14748. return this
  14749. };
  14750. a.pC = function() {
  14751. var e, f, d = new c.e.ta;
  14752. e = Math.acos(this.M);
  14753. f = Math.sqrt(c.e.nc(this.x) + c.e.nc(this.y) + c.e.nc(this.z));
  14754. f > -c.e.Kc && f < c.e.Kc || f < 2 * Math.PI + c.e.Kc && f > 2 * Math.PI - c.e.Kc ? (e = 0, d.x = 0, d.y = 0, d.z = 1) : (e *= 2, d.x = this.x / f, d.y = this.y / f, d.z = this.z / f, d.normalize());
  14755. return {
  14756. axis: d,
  14757. c2: e
  14758. }
  14759. };
  14760. a.scale = function(d) {
  14761. this.x *= d;
  14762. this.y *= d;
  14763. this.z *= d;
  14764. this.M *= d;
  14765. return this
  14766. };
  14767. a.ud = function(d) {
  14768. this.x = d.x;
  14769. this.y = d.y;
  14770. this.z = d.z;
  14771. this.M = d.M;
  14772. return this
  14773. };
  14774. a.add = function(d) {
  14775. this.x += d.x;
  14776. this.y += d.y;
  14777. this.z += d.z;
  14778. this.M += d.M;
  14779. return this
  14780. };
  14781. c.e.eg.i$ = function(h, k, d) {
  14782. var f = new c.e.ta(h),
  14783. g = new c.e.ta(k);
  14784. f.normalize();
  14785. g.normalize();
  14786. var e = f.Xj(g);
  14787. k = new c.e.eg;
  14788. if (1 <= e) {
  14789. return k.wd(), k
  14790. } - 0.999999 > e ? Math.abs(d.ko()) < c.e.Kc ? k.cK(d) : (f = new c.e.ta(1, 0, 0), f.rh(h), Math.abs(f.ko()) < c.e.Kc && (f.fill(0, 1, 0), f.rh(h)), f.normalize(), k.cK(f)) : (h = Math.sqrt(2 * (1 + e)), d = 1 / h, f.rh(g), k.x = f.x * d, k.y = f.y * d, k.z = f.z * d, k.M = 0.5 * h, k.normalize());
  14791. return k
  14792. };
  14793. a.d8 = function(h) {
  14794. var k = this.x,
  14795. d = this.y,
  14796. f = this.z,
  14797. g = new c.e.ta(h),
  14798. e = new c.e.ta(k, d, f),
  14799. k = new c.e.ta(k, d, f);
  14800. e.rh(h);
  14801. k.rh(e);
  14802. e.scale(2 * q.M);
  14803. k.scale(2);
  14804. g.add(e);
  14805. g.add(k);
  14806. return g
  14807. }
  14808. })(b);
  14809. b.e.Nr = function(c, a) {
  14810. this.min = c || new b.e.ta;
  14811. this.max = a || new b.e.ta
  14812. };
  14813. b.e.Nr.prototype.kT = function(a) {
  14814. return a.x >= this.min.x && a.x <= this.max.x && a.y >= this.min.y && a.y <= this.max.y && a.z >= this.min.z && a.z <= this.max.z
  14815. };
  14816. b.e.Nr.kT = function(c, a) {
  14817. return c.x >= a.min.x && c.x <= a.max.x && c.y >= a.min.y && c.y <= a.max.y && c.z >= a.min.z && c.z <= a.max.z
  14818. };
  14819. b.e.Nr.prototype.ud = function(a) {
  14820. this.min.ud(a.min);
  14821. this.max.ud(a.max)
  14822. };
  14823. b.e.Nr.assign = function(c, a) {
  14824. c.min.ud(a.min);
  14825. c.max.ud(a.max);
  14826. return c
  14827. };
  14828. (function(c) {
  14829. c.e.cp = function(e, d) {
  14830. this.top = e;
  14831. this.stack = d || []
  14832. };
  14833. c.N7 = c.e.cp;
  14834. var a = c.e.cp.prototype;
  14835. a.$q = function() {
  14836. this.stack.length = 0;
  14837. this.top = null
  14838. };
  14839. c.P7 = function(e, d) {
  14840. e.stack.push(e.top);
  14841. e.top = new c.e.U(d)
  14842. };
  14843. c.O7 = function(d) {
  14844. d.top = d.stack.pop()
  14845. };
  14846. c.Q7 = function(d) {
  14847. d.stack = null;
  14848. d.top = null
  14849. };
  14850. a.push = function(d) {
  14851. d = d || this.top;
  14852. this.stack.push(this.top);
  14853. this.top = new c.e.U(d)
  14854. };
  14855. a.pop = function() {
  14856. this.top = this.stack.pop()
  14857. };
  14858. a.uc = function() {
  14859. this.jG = this.top = this.stack = null
  14860. };
  14861. a.Z0 = function(e) {
  14862. var d = this.jG;
  14863. if (0 === d.length) {
  14864. return new c.e.U(e)
  14865. }
  14866. d = d.pop();
  14867. d.ud(e);
  14868. return d
  14869. };
  14870. a.l1 = function(d) {
  14871. this.jG.push(d)
  14872. }
  14873. })(b);
  14874. (function(d) {
  14875. d.Mg = 5888;
  14876. d.Ng = 5889;
  14877. d.PC = 5890;
  14878. d.Dh = new d.e.cp;
  14879. d.Fh = new d.e.cp;
  14880. d.yo = new d.e.cp;
  14881. d.vb = null;
  14882. d.fW = function() {
  14883. var e = new d.e.U;
  14884. d.Dh.$q();
  14885. d.Fh.$q();
  14886. d.yo.$q();
  14887. d.vb = d.Dh;
  14888. d.LV = !0;
  14889. e.wd();
  14890. d.Dh.push(e);
  14891. d.Fh.push(e);
  14892. d.yo.push(e)
  14893. };
  14894. d.fW();
  14895. d.eW = function() {
  14896. d.Dh.uc();
  14897. d.Dh = null;
  14898. d.Fh.uc();
  14899. d.Fh = null;
  14900. d.yo.uc();
  14901. d.yo = null;
  14902. d.LV = !1;
  14903. d.vb = null
  14904. };
  14905. d.rv = function() {
  14906. d.vb.push(d.vb.top)
  14907. };
  14908. d.v7 = function(e) {
  14909. d.vb.stack.push(d.vb.top);
  14910. e.ud(d.vb.top);
  14911. d.vb.top = e
  14912. };
  14913. d.qv = function() {
  14914. d.vb.top = d.vb.stack.pop()
  14915. };
  14916. d.Gg = function(e) {
  14917. switch (e) {
  14918. case d.Mg:
  14919. d.vb = d.Dh;
  14920. break;
  14921. case d.Ng:
  14922. d.vb = d.Fh;
  14923. break;
  14924. case d.PC:
  14925. d.vb = d.yo;
  14926. break;
  14927. default:
  14928. throw "Invalid matrix mode specified"
  14929. }
  14930. };
  14931. d.io = function() {
  14932. d.vb.top.wd()
  14933. };
  14934. d.u7 = function(e) {
  14935. d.vb.top.ud(e)
  14936. };
  14937. d.jo = function(e) {
  14938. d.vb.top.multiply(e)
  14939. };
  14940. var a = new d.e.U;
  14941. d.y7 = function(f, g, e) {
  14942. f = d.e.U.Wj(f, g, e, a);
  14943. d.vb.top.multiply(f)
  14944. };
  14945. var c = new d.e.ta;
  14946. d.w7 = function(f, g, h, e) {
  14947. c.fill(g, h, e);
  14948. f = d.e.U.mT(c, d.Ce(f), a);
  14949. d.vb.top.multiply(f)
  14950. };
  14951. d.x7 = function(f, g, e) {
  14952. f = d.e.U.zI(f, g, e, a);
  14953. d.vb.top.multiply(f)
  14954. };
  14955. d.dr = function(f, e) {
  14956. switch (f) {
  14957. case d.Mg:
  14958. e.ud(d.Dh.top);
  14959. break;
  14960. case d.Ng:
  14961. e.ud(d.Fh.top);
  14962. break;
  14963. case d.PC:
  14964. e.ud(d.yo.top);
  14965. break;
  14966. default:
  14967. throw "Invalid matrix mode specified"
  14968. }
  14969. }
  14970. })(b);
  14971. b.nN = "precision lowp float;\nvarying vec4 v_fragmentColor;\nvoid main() \n{ \n gl_FragColor \x3d v_fragmentColor; \n}\n";
  14972. b.oN = "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}";
  14973. b.bN = "precision lowp float; \nvarying vec4 v_fragmentColor; \nvoid main() \n{ \n gl_FragColor \x3d v_fragmentColor; \n} ";
  14974. b.eN = "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}";
  14975. b.cN = "// #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}";
  14976. b.dN = "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}";
  14977. b.jN = "precision lowp float; \nvarying vec2 v_texCoord; \nvoid main() \n{ \n gl_FragColor \x3d texture2D(CC_Texture0, v_texCoord); \n}";
  14978. b.mN = "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}";
  14979. b.kN = "precision lowp float; \nuniform vec4 u_color; \nvarying vec2 v_texCoord; \nvoid main() \n{ \n gl_FragColor \x3d texture2D(CC_Texture0, v_texCoord) * u_color; \n}";
  14980. b.lN = "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}";
  14981. b.fN = "precision lowp float; \nvarying vec4 v_fragmentColor; \nvarying vec2 v_texCoord; \nvoid main() \n{ \n gl_FragColor \x3d vec4( v_fragmentColor.rgb, \n v_fragmentColor.a * texture2D(CC_Texture0, v_texCoord).a \n ); \n}";
  14982. b.gN = "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}";
  14983. b.iN = "precision lowp float;\nvarying vec4 v_fragmentColor; \nvarying vec2 v_texCoord; \nvoid main() \n{ \n gl_FragColor \x3d v_fragmentColor * texture2D(CC_Texture0, v_texCoord); \n}";
  14984. b.hD = "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}";
  14985. b.hN = "precision lowp float; \nvarying vec4 v_fragmentColor; \nvarying vec2 v_texCoord; \nuniform float CC_alpha_value; \nvoid main() \n{ \n vec4 texColor \x3d texture2D(CC_Texture0, v_texCoord); \n if ( texColor.a \x3c\x3d CC_alpha_value ) \n discard; \n gl_FragColor \x3d texColor * v_fragmentColor; \n}";
  14986. b.f0 = "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}";
  14987. b.Ge = {
  14988. ax: 0,
  14989. bx: 1,
  14990. Zw: 2,
  14991. $w: 3,
  14992. dx: 4,
  14993. cx: 5,
  14994. ex: 6,
  14995. pD: 7,
  14996. u0: 8,
  14997. Oc: {},
  14998. $h: function() {
  14999. this.jW();
  15000. return !0
  15001. },
  15002. Yd: function(c, a) {
  15003. switch (a) {
  15004. case this.ax:
  15005. c.xh(b.hD, b.iN);
  15006. c.Uc(b.pk, b.ab);
  15007. c.Uc(b.Do, b.ne);
  15008. c.Uc(b.$l, b.Ed);
  15009. break;
  15010. case this.bx:
  15011. c.xh(b.hD, b.hN);
  15012. c.Uc(b.pk, b.ab);
  15013. c.Uc(b.Do, b.ne);
  15014. c.Uc(b.$l, b.Ed);
  15015. break;
  15016. case this.Zw:
  15017. c.xh(b.eN, b.bN);
  15018. c.Uc(b.pk, b.ab);
  15019. c.Uc(b.Do, b.ne);
  15020. break;
  15021. case this.$w:
  15022. c.xh(b.mN, b.jN);
  15023. c.Uc(b.pk, b.ab);
  15024. c.Uc(b.$l, b.Ed);
  15025. break;
  15026. case this.dx:
  15027. c.xh(b.lN, b.kN);
  15028. c.Uc(b.pk, b.ab);
  15029. c.Uc(b.$l, b.Ed);
  15030. break;
  15031. case this.cx:
  15032. c.xh(b.gN, b.fN);
  15033. c.Uc(b.pk, b.ab);
  15034. c.Uc(b.Do, b.ne);
  15035. c.Uc(b.$l, b.Ed);
  15036. break;
  15037. case this.ex:
  15038. c.xh(b.oN, b.nN);
  15039. c.Uc("aVertex", b.ab);
  15040. break;
  15041. case this.pD:
  15042. c.xh(b.dN, b.cN);
  15043. c.Uc(b.pk, b.ab);
  15044. c.Uc(b.$l, b.Ed);
  15045. c.Uc(b.Do, b.ne);
  15046. break;
  15047. default:
  15048. b.log("cocos2d: cc.shaderCache._loadDefaultShader, error shader type");
  15049. return
  15050. }
  15051. c.link();
  15052. c.XY()
  15053. },
  15054. jW: function() {
  15055. var a = new b.Cd;
  15056. this.Yd(a, this.ax);
  15057. this.Oc[b.Ak] = a;
  15058. this.Oc.ShaderPositionTextureColor = a;
  15059. a = new b.Cd;
  15060. this.Yd(a, this.bx);
  15061. this.Oc[b.gD] = a;
  15062. this.Oc.ShaderPositionTextureColorAlphaTest = a;
  15063. a = new b.Cd;
  15064. this.Yd(a, this.Zw);
  15065. this.Oc[b.zs] = a;
  15066. this.Oc.ShaderPositionColor = a;
  15067. a = new b.Cd;
  15068. this.Yd(a, this.$w);
  15069. this.Oc[b.kp] = a;
  15070. this.Oc.ShaderPositionTexture = a;
  15071. a = new b.Cd;
  15072. this.Yd(a, this.dx);
  15073. this.Oc[b.Vw] = a;
  15074. this.Oc.ShaderPositionTextureUColor = a;
  15075. a = new b.Cd;
  15076. this.Yd(a, this.cx);
  15077. this.Oc[b.Uw] = a;
  15078. this.Oc.ShaderPositionTextureA8Color = a;
  15079. a = new b.Cd;
  15080. this.Yd(a, this.ex);
  15081. this.Oc[b.Ww] = a;
  15082. this.Oc.ShaderPositionUColor = a;
  15083. a = new b.Cd;
  15084. this.Yd(a, this.pD);
  15085. this.Oc[b.fD] = a;
  15086. this.Oc.ShaderPositionLengthTextureColor = a
  15087. },
  15088. F9: function() {
  15089. var a = this.Hc(b.Ak);
  15090. a.reset();
  15091. this.Yd(a, this.ax);
  15092. a = this.Hc(b.gD);
  15093. a.reset();
  15094. this.Yd(a, this.bx);
  15095. a = this.Hc(b.zs);
  15096. a.reset();
  15097. this.Yd(a, this.Zw);
  15098. a = this.Hc(b.kp);
  15099. a.reset();
  15100. this.Yd(a, this.$w);
  15101. a = this.Hc(b.Vw);
  15102. a.reset();
  15103. this.Yd(a, this.dx);
  15104. a = this.Hc(b.Uw);
  15105. a.reset();
  15106. this.Yd(a, this.cx);
  15107. a = this.Hc(b.Ww);
  15108. a.reset();
  15109. this.Yd(a, this.ex)
  15110. },
  15111. Hc: function(a) {
  15112. return this.Oc[a]
  15113. },
  15114. Zu: function(a) {
  15115. return this.Oc[a]
  15116. },
  15117. M1: function(c, a) {
  15118. this.Oc[a] = c
  15119. }
  15120. };
  15121. b.ZL = function() {
  15122. this.location = this.value = void 0;
  15123. this.hv = {}
  15124. };
  15125. b.Cd = b.Ia.extend({
  15126. da: null,
  15127. ob: null,
  15128. Ae: null,
  15129. Bf: null,
  15130. Ba: null,
  15131. ng: null,
  15132. hA: !1,
  15133. be: function(f, a) {
  15134. if (null == f) {
  15135. return !1
  15136. }
  15137. for (var c = !0, d = null, e = 0; e < this.ng.length; e++) {
  15138. this.ng[e].location == f && (d = this.ng[e])
  15139. }
  15140. d ? d.value == a ? c = !1 : d.value = a : (d = new b.ZL, d.location = f, d.value = a, this.ng.push(d));
  15141. return c
  15142. },
  15143. S0: function() {
  15144. return "\x3cCCGLProgram \x3d " + this.toString() + " | Program \x3d " + this.ob.toString() + ", VertexShader \x3d " + this.Ae.toString() + ", FragmentShader \x3d " + this.Bf.toString() + "\x3e"
  15145. },
  15146. sE: function(d, a, c) {
  15147. if (!c || !d) {
  15148. return !1
  15149. }
  15150. c = (b.Cd.xQ() ? "precision highp float;\n" : "precision mediump float;\n") + "uniform 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; \nuniform sampler2D CC_Texture0; \n//CC INCLUDES END \n" + c;
  15151. this.da.shaderSource(d, c);
  15152. this.da.compileShader(d);
  15153. c = this.da.getShaderParameter(d, this.da.COMPILE_STATUS);
  15154. c || (b.log("cocos2d: ERROR: Failed to compile shader:\n" + this.da.getShaderSource(d)), a === this.da.VERTEX_SHADER ? b.log("cocos2d: \n" + this.ZY()) : b.log("cocos2d: \n" + this.hU()));
  15155. return !0 === c
  15156. },
  15157. ctor: function(d, a, c) {
  15158. this.Ba = [];
  15159. this.ng = [];
  15160. this.da = c || b.s;
  15161. d && a && this.oa(d, a)
  15162. },
  15163. P2: function() {
  15164. this.ng = this.Ba = this.Bf = this.Ae = null;
  15165. this.da.deleteProgram(this.ob)
  15166. },
  15167. xh: function(d, a) {
  15168. var c = this.da;
  15169. this.ob = c.createProgram();
  15170. this.Bf = this.Ae = null;
  15171. d && (this.Ae = c.createShader(c.VERTEX_SHADER), this.sE(this.Ae, c.VERTEX_SHADER, d) || b.log("cocos2d: ERROR: Failed to compile vertex shader"));
  15172. a && (this.Bf = c.createShader(c.FRAGMENT_SHADER), this.sE(this.Bf, c.FRAGMENT_SHADER, a) || b.log("cocos2d: ERROR: Failed to compile fragment shader"));
  15173. this.Ae && c.attachShader(this.ob, this.Ae);
  15174. b.Pn();
  15175. this.Bf && c.attachShader(this.ob, this.Bf);
  15176. this.ng.length = 0;
  15177. b.Pn();
  15178. return !0
  15179. },
  15180. Qd: function(c, a) {
  15181. return this.xh(c, a)
  15182. },
  15183. KV: function(e, a) {
  15184. var c = b.S.De(e);
  15185. if (!c) {
  15186. throw "Please load the resource firset : " + e
  15187. }
  15188. var d = b.S.De(a);
  15189. if (!d) {
  15190. throw "Please load the resource firset : " + a
  15191. }
  15192. return this.xh(c, d)
  15193. },
  15194. oa: function(c, a) {
  15195. return this.KV(c, a)
  15196. },
  15197. Uc: function(c, a) {
  15198. this.da.bindAttribLocation(this.ob, a, c)
  15199. },
  15200. link: function() {
  15201. if (!this.ob) {
  15202. return b.log("cc.GLProgram.link(): Cannot link invalid program"), !1
  15203. }
  15204. this.da.linkProgram(this.ob);
  15205. this.Ae && this.da.deleteShader(this.Ae);
  15206. this.Bf && this.da.deleteShader(this.Bf);
  15207. this.Bf = this.Ae = null;
  15208. return b.Ma.ld[b.Ma.rf.Oq] && !this.da.getProgramParameter(this.ob, this.da.LINK_STATUS) ? (b.log("cocos2d: ERROR: Failed to link program: " + this.da.getProgramInfoLog(this.ob)), b.tV(this.ob), this.ob = null, !1) : !0
  15209. },
  15210. Ub: function() {
  15211. b.dJ(this.ob)
  15212. },
  15213. XY: function() {
  15214. this.Ba[b.mp] = this.da.getUniformLocation(this.ob, b.FO);
  15215. this.Ba[b.lp] = this.da.getUniformLocation(this.ob, b.DO);
  15216. this.Ba[b.om] = this.da.getUniformLocation(this.ob, b.EO);
  15217. this.Ba[b.Ns] = this.da.getUniformLocation(this.ob, b.JO);
  15218. this.Ba[b.Ms] = this.da.getUniformLocation(this.ob, b.IO);
  15219. this.Ba[b.Ls] = this.da.getUniformLocation(this.ob, b.CO);
  15220. this.hA = null != this.Ba[b.Ns] || null != this.Ba[b.Ms] || null != this.Ba[b.Ls];
  15221. this.Ba[b.np] = this.da.getUniformLocation(this.ob, b.GO);
  15222. this.Ba[b.jx] = this.da.getUniformLocation(this.ob, b.HO);
  15223. this.Ub();
  15224. this.CK(this.Ba[b.jx], 0)
  15225. },
  15226. h6: function(a) {
  15227. if (!a) {
  15228. throw "cc.GLProgram.getUniformLocationForName(): uniform name should be non-null"
  15229. }
  15230. if (!this.ob) {
  15231. throw "cc.GLProgram.getUniformLocationForName(): Invalid operation. Cannot get uniform location when program is not initialized"
  15232. }
  15233. return this.da.getUniformLocation(this.ob, a)
  15234. },
  15235. i6: function() {
  15236. return this.Ba[b.om]
  15237. },
  15238. j6: function() {
  15239. return this.Ba[b.jx]
  15240. },
  15241. CK: function(c, a) {
  15242. this.be(c, a) && this.da.uniform1i(c, a)
  15243. },
  15244. Raa: function(d, a, c) {
  15245. this.be(d, [a, c]) && this.da.uniform2i(d, a, c)
  15246. },
  15247. Uaa: function(e, a, c, d) {
  15248. this.be(e, [a, c, d]) && this.da.uniform3i(e, a, c, d)
  15249. },
  15250. Xaa: function(f, a, c, d, e) {
  15251. this.be(f, [a, c, d, e]) && this.da.uniform4i(f, a, c, d, e)
  15252. },
  15253. Saa: function(c, a) {
  15254. this.be(c, a) && this.da.uniform2iv(c, a)
  15255. },
  15256. Vaa: function(c, a) {
  15257. this.be(c, a) && this.da.uniform3iv(c, a)
  15258. },
  15259. Yaa: function(c, a) {
  15260. this.be(c, a) && this.da.uniform4iv(c, a)
  15261. },
  15262. Paa: function(c, a) {
  15263. this.CK(c, a)
  15264. },
  15265. iC: function(c, a) {
  15266. this.be(c, a) && this.da.uniform1f(c, a)
  15267. },
  15268. $X: function(d, a, c) {
  15269. this.be(d, [a, c]) && this.da.uniform2f(d, a, c)
  15270. },
  15271. aY: function(e, a, c, d) {
  15272. this.be(e, [a, c, d]) && this.da.uniform3f(e, a, c, d)
  15273. },
  15274. Qi: function(f, a, c, d, e) {
  15275. this.be(f, [a, c, d, e]) && this.da.uniform4f(f, a, c, d, e)
  15276. },
  15277. Qaa: function(c, a) {
  15278. this.be(c, a) && this.da.uniform2fv(c, a)
  15279. },
  15280. Taa: function(c, a) {
  15281. this.be(c, a) && this.da.uniform3fv(c, a)
  15282. },
  15283. Waa: function(c, a) {
  15284. this.be(c, a) && this.da.uniform4fv(c, a)
  15285. },
  15286. uo: function(c, a) {
  15287. this.be(c, a) && this.da.uniformMatrix4fv(c, !1, a)
  15288. },
  15289. Oaa: function() {
  15290. if (!(2 > arguments.length)) {
  15291. switch (arguments.length) {
  15292. case 2:
  15293. this.iC(arguments[0], arguments[1]);
  15294. break;
  15295. case 3:
  15296. this.$X(arguments[0], arguments[1], arguments[2]);
  15297. break;
  15298. case 4:
  15299. this.aY(arguments[0], arguments[1], arguments[2], arguments[3]);
  15300. break;
  15301. case 5:
  15302. this.Qi(arguments[0], arguments[1], arguments[2], arguments[3], arguments[4])
  15303. }
  15304. }
  15305. },
  15306. DK: function() {
  15307. var d = new b.e.U,
  15308. a = new b.e.U,
  15309. c = new b.e.U;
  15310. b.dr(b.Ng, d);
  15311. b.dr(b.Mg, a);
  15312. b.sv(c, d, a);
  15313. this.uo(this.Ba[b.mp], d.m, 1);
  15314. this.uo(this.Ba[b.lp], a.m, 1);
  15315. this.uo(this.Ba[b.om], c.m, 1);
  15316. this.hA && (d = b.I, d = d.wq * d.tm, this.Qi(this.Ba[b.Ns], d / 10, d, 2 * d, 4 * d), this.Qi(this.Ba[b.Ms], d / 8, d / 4, d / 2, Math.sin(d)), this.Qi(this.Ba[b.Ls], d / 8, d / 4, d / 2, Math.cos(d))); - 1 !== this.Ba[b.np] && this.Qi(this.Ba[b.np], Math.random(), Math.random(), Math.random(), Math.random())
  15317. },
  15318. w1: function(d) {
  15319. if (d && d.i) {
  15320. var a = new b.e.U,
  15321. c = new b.e.U;
  15322. b.dr(b.Ng, a);
  15323. b.sv(c, a, d.i.Rc);
  15324. this.uo(this.Ba[b.mp], a.m, 1);
  15325. this.uo(this.Ba[b.lp], d.i.Rc.m, 1);
  15326. this.uo(this.Ba[b.om], c.m, 1);
  15327. this.hA && (d = b.I, d = d.wq * d.tm, this.Qi(this.Ba[b.Ns], d / 10, d, 2 * d, 4 * d), this.Qi(this.Ba[b.Ms], d / 8, d / 4, d / 2, Math.sin(d)), this.Qi(this.Ba[b.Ls], d / 8, d / 4, d / 2, Math.cos(d))); - 1 !== this.Ba[b.np] && this.Qi(this.Ba[b.np], Math.random(), Math.random(), Math.random(), Math.random())
  15328. }
  15329. },
  15330. Maa: function() {
  15331. this.da.uniformMatrix4fv(this.Ba[b.om], !1, b.OU())
  15332. },
  15333. Naa: function(a) {
  15334. b.sv(a, b.Fh.top, b.Dh.top);
  15335. this.da.uniformMatrix4fv(this.Ba[b.om], !1, a.m)
  15336. },
  15337. Ih: function() {
  15338. this.da.uniformMatrix4fv(this.Ba[b.lp], !1, b.Dh.top.m);
  15339. this.da.uniformMatrix4fv(this.Ba[b.mp], !1, b.Fh.top.m)
  15340. },
  15341. wg: function(a) {
  15342. if (!a) {
  15343. throw "modelView matrix is undefined."
  15344. }
  15345. this.da.uniformMatrix4fv(this.Ba[b.lp], !1, a.m);
  15346. this.da.uniformMatrix4fv(this.Ba[b.mp], !1, b.Fh.top.m)
  15347. },
  15348. ZY: function() {
  15349. return this.da.getShaderInfoLog(this.Ae)
  15350. },
  15351. p6: function() {
  15352. return this.da.getShaderInfoLog(this.Ae)
  15353. },
  15354. e5: function() {
  15355. return this.da.getShaderInfoLog(this.Ae)
  15356. },
  15357. hU: function() {
  15358. return this.da.getShaderInfoLog(this.Bf)
  15359. },
  15360. n9: function() {
  15361. return this.da.getProgramInfoLog(this.ob)
  15362. },
  15363. G5: function() {
  15364. return this.da.getProgramInfoLog(this.ob)
  15365. },
  15366. reset: function() {
  15367. this.Bf = this.Ae = null;
  15368. this.Ba.length = 0;
  15369. this.da.deleteProgram(this.ob);
  15370. this.ob = null;
  15371. for (var a = 0; a < this.ng.length; a++) {
  15372. this.ng[a].value = null, this.ng[a] = null
  15373. }
  15374. this.ng.length = 0
  15375. },
  15376. Zu: function() {
  15377. return this.ob
  15378. },
  15379. Kv: function() {},
  15380. uc: function() {}
  15381. });
  15382. b.Cd.create = function(c, a) {
  15383. return new b.Cd(c, a)
  15384. };
  15385. b.Cd.zy = null;
  15386. b.Cd.xQ = function() {
  15387. if (null == b.Cd.zy) {
  15388. var a = b.s;
  15389. b.Cd.zy = 0 !== a.getShaderPrecisionFormat(a.FRAGMENT_SHADER, a.HIGH_FLOAT).precision
  15390. }
  15391. return b.Cd.zy
  15392. };
  15393. b.MX = function(e, a) {
  15394. e.shaderProgram = a;
  15395. var c = e.children;
  15396. if (c) {
  15397. for (var d = 0; d < c.length; d++) {
  15398. b.MX(c[d], a)
  15399. }
  15400. }
  15401. };
  15402. b.zE = -1;
  15403. b.kA = !1;
  15404. b.jA = !1;
  15405. b.lA = !1;
  15406. b.cg && (b.mM = 16, b.Gp = -1, b.Fp = [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], b.Am = -1, b.zm = -1, b.TO = 0, b.lD && (b.BH = 0));
  15407. b.z6 = function() {
  15408. b.eW();
  15409. b.zE = -1;
  15410. b.kA = !1;
  15411. b.jA = !1;
  15412. b.lA = !1;
  15413. if (b.cg) {
  15414. b.Gp = -1;
  15415. for (var a = 0; a < b.mM; a++) {
  15416. b.Fp[a] = -1
  15417. }
  15418. b.Am = -1;
  15419. b.zm = -1;
  15420. b.TO = 0
  15421. }
  15422. };
  15423. b.dJ = function(a) {
  15424. a !== b.Gp && (b.Gp = a, b.s.useProgram(a))
  15425. };
  15426. b.cg || (b.dJ = function(a) {
  15427. b.s.useProgram(a)
  15428. });
  15429. b.tV = function(a) {
  15430. b.cg && a === b.Gp && (b.Gp = -1);
  15431. gl.deleteProgram(a)
  15432. };
  15433. b.Vf = function(c, a) {
  15434. if (c !== b.Am || a !== b.zm) {
  15435. b.Am = c, b.zm = a, b.Nv(c, a)
  15436. }
  15437. };
  15438. b.Nv = function(d, a) {
  15439. var c = b.s;
  15440. d === c.ONE && a === c.ZERO ? c.disable(c.BLEND) : (c.enable(c.BLEND), b.s.blendFunc(d, a))
  15441. };
  15442. b.v6 = function(d, a) {
  15443. if (d !== b.Am || a !== b.zm) {
  15444. b.Am = d;
  15445. b.zm = a;
  15446. var c = b.s;
  15447. d === c.ONE && a === c.ZERO ? c.disable(c.BLEND) : (c.enable(c.BLEND), c.blendFuncSeparate(c.SRC_ALPHA, a, d, a))
  15448. }
  15449. };
  15450. b.cg || (b.Vf = b.Nv);
  15451. b.w6 = function() {
  15452. var a = b.s;
  15453. a.blendEquation(a.FUNC_ADD);
  15454. b.cg ? b.Nv(b.Am, b.zm) : b.Nv(a.qf, a.pf)
  15455. };
  15456. b.wK = function() {
  15457. b.zE = -1
  15458. };
  15459. b.tc = function(d) {
  15460. var a = b.s,
  15461. c = d & b.ad;
  15462. c !== b.kA && (c ? a.enableVertexAttribArray(b.ab) : a.disableVertexAttribArray(b.ab), b.kA = c);
  15463. c = d & b.op;
  15464. c !== b.jA && (c ? a.enableVertexAttribArray(b.ne) : a.disableVertexAttribArray(b.ne), b.jA = c);
  15465. d &= b.pm;
  15466. d !== b.lA && (d ? a.enableVertexAttribArray(b.Ed) : a.disableVertexAttribArray(b.Ed), b.lA = d)
  15467. };
  15468. b.Ee = function(a) {
  15469. b.sB(0, a)
  15470. };
  15471. b.sB = function(d, a) {
  15472. if (b.Fp[d] !== a) {
  15473. b.Fp[d] = a;
  15474. var c = b.s;
  15475. c.activeTexture(c.TEXTURE0 + d);
  15476. a ? c.bindTexture(c.TEXTURE_2D, a.Ze) : c.bindTexture(c.TEXTURE_2D, null)
  15477. }
  15478. };
  15479. b.cg || (b.sB = function(d, a) {
  15480. var c = b.s;
  15481. c.activeTexture(c.TEXTURE0 + d);
  15482. a ? c.bindTexture(c.TEXTURE_2D, a.Ze) : c.bindTexture(c.TEXTURE_2D, null)
  15483. });
  15484. b.x6 = function(a) {
  15485. b.uV(a)
  15486. };
  15487. b.uV = function(a) {
  15488. b.cg && a === b.Fp[0] && (b.Fp[0] = -1);
  15489. b.s.deleteTexture(a)
  15490. };
  15491. b.u6 = function(a) {
  15492. b.lD && b.cg && b.BH !== a && (b.BH = a)
  15493. };
  15494. b.y6 = function() {};
  15495. b.Zc = b.Jc.extend({
  15496. Pb: null,
  15497. Ly: null,
  15498. T: !1,
  15499. gc: "LabelAtlas",
  15500. ctor: function(f, a, c, d, e) {
  15501. b.Jc.prototype.ctor.call(this);
  15502. this.i.lK();
  15503. a && b.Zc.prototype.Qd.call(this, f, a, c, d, e)
  15504. },
  15505. Fd: function() {
  15506. return b.ua === b.Lb ? new b.Zc.F(this) : new b.Zc.A(this)
  15507. },
  15508. Cr: function() {
  15509. return this.T
  15510. },
  15511. Gq: function(c, a) {
  15512. this.addEventListener("load", c, a)
  15513. },
  15514. Qd: function(h, k, m, a, c) {
  15515. var d = h + "",
  15516. e, f;
  15517. if (void 0 === m) {
  15518. m = b.S.De(k);
  15519. if (1 !== parseInt(m.version, 10)) {
  15520. return b.log("cc.LabelAtlas.initWithString(): Unsupported version. Upgrade cocos2d version"), !1
  15521. }
  15522. k = b.path.Pu(k, m.textureFilename);
  15523. a = b.jb();
  15524. e = parseInt(m.itemWidth, 10) / a;
  15525. f = parseInt(m.itemHeight, 10) / a;
  15526. m = String.fromCharCode(parseInt(m.firstChar, 10))
  15527. } else {
  15528. e = m || 0, f = a || 0, m = c || " "
  15529. }
  15530. var g = null,
  15531. g = k instanceof b.ca ? k : b.Ra.lc(k);
  15532. this.T = k = g.T;
  15533. k || (this.Pb = d, g.addEventListener("load", function() {
  15534. this.Pa(g, e, f, d.length);
  15535. this.string = this.Pb;
  15536. this.xb(this.i.mb);
  15537. this.dispatchEvent("load")
  15538. }, this));
  15539. return this.Pa(g, e, f, d.length) ? (this.Ly = m, this.string = d, !0) : !1
  15540. },
  15541. xb: function(a) {
  15542. b.Jc.prototype.xb.call(this, a);
  15543. this.i.Bo()
  15544. },
  15545. Fl: function() {
  15546. return this.Pb
  15547. },
  15548. B: function(d, a, c) {
  15549. this.i.fE(d);
  15550. b.f.prototype.B.call(this, d, a, c)
  15551. },
  15552. Bo: function() {
  15553. this.i.Bo()
  15554. },
  15555. zd: function(c) {
  15556. c = String(c);
  15557. var a = c.length;
  15558. this.Pb = c;
  15559. this.he(a * this.bi, this.dh);
  15560. this.i.zd(c);
  15561. this.i.Bo();
  15562. this.quadsToDraw = a
  15563. }
  15564. });
  15565. var pa = b.Zc.prototype;
  15566. b.l(pa, "opacity", pa.sh, pa.yd);
  15567. b.l(pa, "color", pa.Uf, pa.xb);
  15568. b.l(pa, "string", pa.Fl, pa.zd);
  15569. b.Zc.create = function(f, a, c, d, e) {
  15570. return new b.Zc(f, a, c, d, e)
  15571. };
  15572. (function() {
  15573. b.Zc.A = function(c) {
  15574. b.Jc.A.call(this, c);
  15575. this.Db = !1
  15576. };
  15577. var a = b.Zc.A.prototype = Object.create(b.Jc.A.prototype);
  15578. a.constructor = b.Zc.A;
  15579. a.lK = function() {
  15580. var c = this.p;
  15581. c.fc = !0;
  15582. c.ec = !1
  15583. };
  15584. a.Bo = function() {
  15585. for (var g = this.p, h = g.Pb || "", k = h.length, m = this.P, n = g.bi, p = g.dh, c = 0; c < k; c++) {
  15586. var d = h.charCodeAt(c) - g.Ly.charCodeAt(0),
  15587. d = b.rect(parseInt(d % g.en, 10) * n, parseInt(d / g.en, 10) * p, n, p),
  15588. e = h.charCodeAt(c),
  15589. f = g.Ci(c);
  15590. f ? 32 === e ? (f.oa(), f.wc(b.rect(0, 0, 10, 10), !1, b.size(0, 0))) : (f.Pa(m, d), f.visible = !0) : (f = new b.o, 32 === e ? (f.oa(), f.wc(b.rect(0, 0, 10, 10), !1, b.size(0, 0))) : f.Pa(m, d), b.f.prototype.B.call(g, f, 0, c));
  15591. f.G(c * n + n / 2, p / 2)
  15592. }
  15593. };
  15594. a.zd = function() {
  15595. var f = this.p;
  15596. if (f.K) {
  15597. for (var f = f.K, c = f.length, d = 0; d < c; d++) {
  15598. var e = f[d];
  15599. e && !e.DQ && (e.visible = !1)
  15600. }
  15601. }
  15602. };
  15603. a.fE = function() {
  15604. child.DQ = !0
  15605. }
  15606. })();
  15607. (function() {
  15608. b.Zc.F = function(c) {
  15609. b.Jc.F.call(this, c);
  15610. this.Db = !0
  15611. };
  15612. var a = b.Zc.F.prototype = Object.create(b.Jc.F.prototype);
  15613. a.constructor = b.Zc.F;
  15614. a.lK = function() {
  15615. var c = this.p;
  15616. c.fc = !0;
  15617. c.ec = !0
  15618. };
  15619. a.wb = function(c) {
  15620. b.Jc.F.prototype.wb.call(this, c);
  15621. b.eM && (c = this.p.eb(), c = [b.d(0, 0), b.d(c.width, 0), b.d(c.width, c.height), b.d(0, c.height)], b.Nk.Tf(c, 4, !0))
  15622. };
  15623. a.Bo = function() {
  15624. var v = this.p,
  15625. x = v.Pb,
  15626. y = x.length,
  15627. A = this.cb,
  15628. B = A.texture,
  15629. C = B.pixelsWidth,
  15630. B = B.pixelsHeight,
  15631. c = v.bi,
  15632. d = v.dh;
  15633. v.Dt || (c = v.bi * b.jb(), d = v.dh * b.jb());
  15634. y > A.Vd && b.log("cc.LabelAtlas._updateAtlasValues(): Invalid String length");
  15635. for (var e = A.quads, f = this.mb, f = {
  15636. r: f.r,
  15637. g: f.g,
  15638. b: f.b,
  15639. a: v.pc
  15640. }, k = v.bi, p = 0; p < y; p++) {
  15641. var n = x.charCodeAt(p) - v.Ly.charCodeAt(0),
  15642. s = n % v.en,
  15643. r = 0 | n / v.en,
  15644. t;
  15645. b.uw ? (s = (2 * s * c + 1) / (2 * C), n = s + (2 * c - 2) / (2 * C), r = (2 * r * d + 1) / (2 * B), t = r + (2 * d - 2) / (2 * B)) : (s = s * c / C, n = s + c / C, r = r * d / B, t = r + d / B);
  15646. var u = e[p],
  15647. g = u.tl,
  15648. h = u.tr,
  15649. m = u.bl,
  15650. u = u.br;
  15651. g.texCoords.u = s;
  15652. g.texCoords.v = r;
  15653. h.texCoords.u = n;
  15654. h.texCoords.v = r;
  15655. m.texCoords.u = s;
  15656. m.texCoords.v = t;
  15657. u.texCoords.u = n;
  15658. u.texCoords.v = t;
  15659. m.vertices.x = p * k;
  15660. m.vertices.y = 0;
  15661. m.vertices.z = 0;
  15662. u.vertices.x = p * k + k;
  15663. u.vertices.y = 0;
  15664. u.vertices.z = 0;
  15665. g.vertices.x = p * k;
  15666. g.vertices.y = v.dh;
  15667. g.vertices.z = 0;
  15668. h.vertices.x = p * k + k;
  15669. h.vertices.y = v.dh;
  15670. h.vertices.z = 0;
  15671. g.colors = f;
  15672. h.colors = f;
  15673. m.colors = f;
  15674. u.colors = f
  15675. }
  15676. 0 < y && (A.dirty = !0, v = A.totalQuads, y > v && A.zV(y - v))
  15677. };
  15678. a.zd = function(c) {
  15679. c = c.length;
  15680. c > this.cb.totalQuads && this.cb.$J(c)
  15681. };
  15682. a.fE = function() {}
  15683. })();
  15684. b.r_ = -1;
  15685. b.Sd = b.Sa.extend({
  15686. hc: !1,
  15687. Pb: "",
  15688. Ne: null,
  15689. wt: "",
  15690. cn: "",
  15691. yp: b.mm,
  15692. Cq: -1,
  15693. Mt: !1,
  15694. Et: null,
  15695. QG: null,
  15696. T: !1,
  15697. gc: "LabelBMFont",
  15698. Fd: function() {
  15699. return b.ua === b.Lb ? new b.Sd.F(this) : new b.Sd.A(this)
  15700. },
  15701. dH: function(f, a) {
  15702. a ? this.cn = f : this.Pb = f;
  15703. var c = this.K;
  15704. if (c) {
  15705. for (var d = 0; d < c.length; d++) {
  15706. var e = c[d];
  15707. e && e.Yv(!1)
  15708. }
  15709. }
  15710. this.T && (this.Su(), a && this.ag())
  15711. },
  15712. ctor: function(f, a, c, d, e) {
  15713. b.Sa.prototype.ctor.call(this);
  15714. this.Et = b.d(0, 0);
  15715. this.QG = [];
  15716. this.fc = this.ec = !0;
  15717. this.Qd(f, a, c, d, e)
  15718. },
  15719. Cr: function() {
  15720. return this.T
  15721. },
  15722. Gq: function(c, a) {
  15723. this.addEventListener("load", c, a)
  15724. },
  15725. zh: function() {
  15726. return this.hc
  15727. },
  15728. Pi: function(d) {
  15729. this.hc = d;
  15730. if (d = this.K) {
  15731. for (var a = 0; a < d.length; a++) {
  15732. var c = d[a];
  15733. c && (c.opacityModifyRGB = this.hc)
  15734. }
  15735. }
  15736. },
  15737. Fm: function() {
  15738. this.i.Fm()
  15739. },
  15740. oa: function() {
  15741. return this.Qd(null, null, null, null, null)
  15742. },
  15743. Qd: function(f, g, a, c, d) {
  15744. f = f || "";
  15745. this.Ne && b.log("cc.LabelBMFont.initWithString(): re-init is no longer supported");
  15746. if (g) {
  15747. var e = b.S.De(g);
  15748. if (!e) {
  15749. return b.log("cc.LabelBMFont.initWithString(): Impossible to create font. Please check file"), !1
  15750. }
  15751. this.Ne = e;
  15752. this.wt = g;
  15753. g = b.Ra.lc(e.cI);
  15754. (this.T = e = g.T) || g.addEventListener("load", function(h) {
  15755. this.T = !0;
  15756. this.Pa(h, this.cn.length);
  15757. this.zd(this.cn, !0);
  15758. this.dispatchEvent("load")
  15759. }, this)
  15760. } else {
  15761. g = new b.ca, e = new Image, g.mc(e), this.T = !1
  15762. }
  15763. return this.Pa(g, f.length) ? (this.yp = c || b.Es, this.Et = d || b.d(0, 0), this.Cq = null == a ? -1 : a, this.mi = 255, this.Ff = b.color(255, 255, 255, 255), this.Q.width = 0, this.Q.height = 0, this.Xa(0.5, 0.5), this.i.LF(), this.zd(f, !0), !0) : !1
  15764. },
  15765. Su: function() {
  15766. var m = this.i.P || this.textureAtlas.texture,
  15767. r = 0,
  15768. t = b.size(0, 0),
  15769. u = 0,
  15770. x = 1,
  15771. a = this.Pb,
  15772. d = a ? a.length : 0;
  15773. if (0 !== d) {
  15774. var g, v = this.Ne,
  15775. f = v.cW,
  15776. p = v.GA,
  15777. s = v.gU;
  15778. for (g = 0; g < d - 1; g++) {
  15779. 10 === a.charCodeAt(g) && x++
  15780. }
  15781. var e = p * x,
  15782. x = -(p - p * x),
  15783. c = -1;
  15784. for (g = 0; g < d; g++) {
  15785. if (p = a.charCodeAt(g), 0 !== p) {
  15786. if (10 === p) {
  15787. r = 0, x -= v.GA
  15788. } else {
  15789. var k = f[c << 16 | p & 65535] || 0,
  15790. h = s[p];
  15791. if (h) {
  15792. var n = b.rect(h.rect.x, h.rect.y, h.rect.width, h.rect.height),
  15793. n = b.Cv(n);
  15794. n.x += this.Et.x;
  15795. n.y += this.Et.y;
  15796. (c = this.Ci(g)) ? this.i.GH(c, n, p): (c = new b.o, c.Pa(m, n, !1), c.lG = !0, this.B(c, 0, g));
  15797. c.opacityModifyRGB = this.hc;
  15798. this.i.FH(c);
  15799. n = b.d(r + h.$Y + 0.5 * h.rect.width + k, x + (v.GA - h.aZ) - 0.5 * n.height * b.jb());
  15800. c.G(b.EW(n));
  15801. r += h.sC + k;
  15802. c = p;
  15803. u < r && (u = r)
  15804. } else {
  15805. b.log("cocos2d: LabelBMFont: character not found " + a[g])
  15806. }
  15807. }
  15808. }
  15809. }
  15810. t.width = h && h.sC < h.rect.width ? u - h.sC + h.rect.width : u;
  15811. t.height = e;
  15812. this.he(b.jY(t))
  15813. }
  15814. },
  15815. Uba: function(f) {
  15816. var a = this.K;
  15817. if (a) {
  15818. for (var c = 0, d = a.length; c < d; c++) {
  15819. var e = a[c];
  15820. e && (e.visible = !1)
  15821. }
  15822. }
  15823. this.Ne && this.Su();
  15824. f || this.ag()
  15825. },
  15826. Fl: function() {
  15827. return this.cn
  15828. },
  15829. zd: function(c, a) {
  15830. c = String(c);
  15831. null == a && (a = !0);
  15832. null != c && b.ge(c) || (c += "");
  15833. this.cn = c;
  15834. this.dH(c, a)
  15835. },
  15836. AR: function(a) {
  15837. this.zd(a, !1)
  15838. },
  15839. C$: function(a) {
  15840. this.zd(a, !0)
  15841. },
  15842. zt: function(d, a) {
  15843. if (0 >= a) {
  15844. return 0
  15845. }
  15846. var c = this.Ci(d);
  15847. return this.DF(this.Ci(d + a)) - this.DF(c)
  15848. },
  15849. Kx: function(a, c, e, h) {
  15850. for (var k = a[c], m = 0, n = 0; n < c; n++) {
  15851. m += a[n].length
  15852. }
  15853. var m = m + c - h,
  15854. p = this.zt(m, a[c].length - 1);
  15855. if (p > e && 1 < k.length) {
  15856. h = e / p * k.length | 0;
  15857. for (var n = k.substr(h), r = p - this.zt(m + h, n.length - 1), d, f = 0, g = 0; r > e && 100 > g++;) {
  15858. h *= e / r, h |= 0, n = k.substr(h), r = p - this.zt(m + h, n.length - 1)
  15859. }
  15860. for (g = 0; r < e && 100 > g++;) {
  15861. n && (f = (d = b.J.SH.exec(n)) ? d[0].length : 1, d = n), this.Mt && (f = 0), h += f, n = k.substr(h), r = p - this.zt(m + h, n.length - 1)
  15862. }
  15863. h -= f;
  15864. 0 === h && (h = 1, d = d.substr(1));
  15865. e = k.substr(0, h);
  15866. b.J.XK && b.J.vH.test(d || n) && (f = (m = b.J.aG.exec(e)) ? m[0].length : 0, this.Mt && (f = 0), h -= f, d = k.substr(h), e = k.substr(0, h));
  15867. b.J.qF.test(d) && (m = b.J.$F.exec(e)) && e !== m[0] && (f = m[0].length, this.Mt && (f = 0), h -= f, d = k.substr(h), e = k.substr(0, h));
  15868. a[c] = d || n;
  15869. a.splice(c, 0, e)
  15870. }
  15871. },
  15872. ag: function() {
  15873. this.string = this.cn;
  15874. var h, k, m;
  15875. if (0 < this.Cq) {
  15876. var a = this.string.split("\n"),
  15877. c = "",
  15878. d = 0,
  15879. e = 0;
  15880. for (h = 0; h < a.length; h++) {
  15881. e = a.length, this.Kx(a, h, this.Cq * this.Ca, d), e < a.length && d++, 0 < h && (c += "\n"), c += a[h]
  15882. }
  15883. c += String.fromCharCode(0);
  15884. this.dH(c, !1)
  15885. }
  15886. if (this.yp !== b.Es) {
  15887. for (a = h = 0, c = this.Pb.length, d = [], e = 0; e < c; e++) {
  15888. if (10 === this.Pb[e].charCodeAt(0) || 0 === this.Pb[e].charCodeAt(0)) {
  15889. k = 0;
  15890. var f = d.length;
  15891. if (0 === f) {
  15892. a++
  15893. } else {
  15894. if (m = h + f - 1 + a, !(0 > m)) {
  15895. var g = this.Ci(m);
  15896. if (null != g) {
  15897. k = g.pb() + g.mg() / 2;
  15898. g = 0;
  15899. switch (this.yp) {
  15900. case b.mm:
  15901. g = this.width / 2 - k / 2;
  15902. break;
  15903. case b.nD:
  15904. g = this.width - k
  15905. }
  15906. if (0 !== g) {
  15907. for (k = 0; k < f; k++) {
  15908. m = h + k + a, 0 > m || (m = this.Ci(m)) && (m.x += g)
  15909. }
  15910. }
  15911. h += f;
  15912. a++;
  15913. d.length = 0
  15914. }
  15915. }
  15916. }
  15917. } else {
  15918. d.push(this.Pb[h])
  15919. }
  15920. }
  15921. }
  15922. },
  15923. gX: function(a) {
  15924. this.yp = a;
  15925. this.ag()
  15926. },
  15927. EP: function() {
  15928. return this.yp
  15929. },
  15930. kX: function(a) {
  15931. this.Cq = a;
  15932. this.ag()
  15933. },
  15934. my: function() {
  15935. return this.Cq
  15936. },
  15937. eaa: function(a) {
  15938. this.Mt = a;
  15939. this.ag()
  15940. },
  15941. jf: function(c, a) {
  15942. b.f.prototype.jf.call(this, c, a);
  15943. this.ag()
  15944. },
  15945. zr: function(a) {
  15946. b.f.prototype.zr.call(this, a);
  15947. this.ag()
  15948. },
  15949. fC: function(a) {
  15950. b.f.prototype.fC.call(this, a);
  15951. this.ag()
  15952. },
  15953. U$: function(c) {
  15954. if (null != c && c !== this.wt) {
  15955. var a = b.S.De(c);
  15956. a ? (this.wt = c, this.Ne = a, c = b.Ra.lc(a.cI), this.T = a = c.T, this.texture = c, this.i.HH(), a ? this.Su() : c.addEventListener("load", function(d) {
  15957. this.T = !0;
  15958. this.texture = d;
  15959. this.Su();
  15960. this.Fm();
  15961. this.ag();
  15962. this.dispatchEvent("load")
  15963. }, this)) : b.log("cc.LabelBMFont.setFntFile() : Impossible to create font. Please check file")
  15964. }
  15965. },
  15966. b5: function() {
  15967. return this.wt
  15968. },
  15969. $a: function(a) {
  15970. this.i.$a(a)
  15971. },
  15972. Xa: function(c, a) {
  15973. b.f.prototype.Xa.call(this, c, a);
  15974. this.ag()
  15975. },
  15976. wz: function(a) {
  15977. b.f.prototype.wz.call(this, a);
  15978. this.ag()
  15979. },
  15980. xz: function(a) {
  15981. b.f.prototype.xz.call(this, a);
  15982. this.ag()
  15983. },
  15984. L0: function() {},
  15985. f1: function(e, a) {
  15986. var c = 0;
  15987. if (this.lP.dW) {
  15988. var d = this.lP.dW[(e << 16 | a & 65535).toString()];
  15989. d && (c = d.b2)
  15990. }
  15991. return c
  15992. },
  15993. DF: function(a) {
  15994. return a.pb() * this.Ca - a.mg() * this.Ca * a.hy()
  15995. },
  15996. $0: function(a) {
  15997. return a.pb() * this.Ca + a.mg() * this.Ca * a.hy()
  15998. },
  15999. UF: function(a) {
  16000. a = a.charCodeAt(0);
  16001. 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
  16002. },
  16003. D1: function(d) {
  16004. var a = d.length;
  16005. if (!(0 >= a) && (a -= 1, this.UF(d[a]))) {
  16006. for (var c = a - 1; 0 <= c; --c) {
  16007. if (this.UF(d[c])) {
  16008. a = c
  16009. } else {
  16010. break
  16011. }
  16012. }
  16013. this.ZR(d, a)
  16014. }
  16015. },
  16016. ZR: function(d, a) {
  16017. var c = d.length;
  16018. a >= c || 0 > a || d.splice(a, c)
  16019. }
  16020. });
  16021. var J = b.Sd.prototype;
  16022. b.dg.prototype.apply(J);
  16023. b.l(J, "string", J.Fl, J.AR);
  16024. b.l(J, "boundingWidth", J.my, J.kX);
  16025. b.l(J, "textAlign", J.EP, J.gX);
  16026. b.Sd.create = function(f, a, c, d, e) {
  16027. return new b.Sd(f, a, c, d, e)
  16028. };
  16029. b.yP = {
  16030. $L: /info [^\n]*(\n|$)/gi,
  16031. nL: /common [^\n]*(\n|$)/gi,
  16032. KM: /page [^\n]*(\n|$)/gi,
  16033. mL: /char [^\n]*(\n|$)/gi,
  16034. dM: /kerning [^\n]*(\n|$)/gi,
  16035. bM: /\w+=[^ \r\n]+/gi,
  16036. aM: /^[\-]?\d+$/,
  16037. eq: function(e) {
  16038. e = e.match(this.bM);
  16039. var f = {};
  16040. if (e) {
  16041. for (var g = 0, h = e.length; g < h; g++) {
  16042. var a = e[g],
  16043. c = a.indexOf("\x3d"),
  16044. d = a.substring(0, c),
  16045. a = a.substring(c + 1);
  16046. a.match(this.aM) ? a = parseInt(a) : '"' === a[0] && (a = a.substring(1, a.length - 1));
  16047. f[d] = a
  16048. }
  16049. }
  16050. return f
  16051. },
  16052. xW: function(d, e) {
  16053. var f = {};
  16054. this.eq(d.match(this.$L)[0]);
  16055. var g = this.eq(d.match(this.nL)[0]);
  16056. f.GA = g.lineHeight;
  16057. if (b.ua === b.Lb) {
  16058. var h = b.Qn.aq;
  16059. (g.scaleW > h.width || g.scaleH > h.height) && b.log("cc.LabelBMFont._parseCommonArguments(): page can't be larger than supported")
  16060. }
  16061. 1 !== g.pages && b.log("cc.LabelBMFont._parseCommonArguments(): only supports 1 page");
  16062. g = this.eq(d.match(this.KM)[0]);
  16063. 0 !== g.id && b.log("cc.LabelBMFont._parseImageFileName() : file could not be found");
  16064. f.cI = b.path.Pu(e, g.file);
  16065. for (var k = d.match(this.mL), a = f.gU = {}, g = 0, h = k.length; g < h; g++) {
  16066. var c = this.eq(k[g]);
  16067. a[c.id] = {
  16068. rect: {
  16069. x: c.x,
  16070. y: c.y,
  16071. width: c.width,
  16072. height: c.height
  16073. },
  16074. $Y: c.xoffset,
  16075. aZ: c.yoffset,
  16076. sC: c.xadvance
  16077. }
  16078. }
  16079. k = f.cW = {};
  16080. if (a = d.match(this.dM)) {
  16081. for (g = 0, h = a.length; g < h; g++) {
  16082. c = this.eq(a[g]), k[c.first << 16 | c.second & 65535] = c.amount
  16083. }
  16084. }
  16085. return f
  16086. },
  16087. load: function(f, a, c, d) {
  16088. var e = this;
  16089. b.S.tv(f, function(h, g) {
  16090. if (h) {
  16091. return d(h)
  16092. }
  16093. d(null, e.xW(g, a))
  16094. })
  16095. }
  16096. };
  16097. b.S.Gh(["fnt"], b.yP);
  16098. (function() {
  16099. b.Sd.A = function(c) {
  16100. b.Sa.A.call(this, c);
  16101. this.Db = !0
  16102. };
  16103. var a = b.Sd.A.prototype = Object.create(b.Sa.A.prototype);
  16104. a.constructor = b.Sd.A;
  16105. a.wb = function() {
  16106. void 0
  16107. };
  16108. a.GH = function(e, c, d) {
  16109. 32 === d ? e.wc(c, !1, b.size(0, 0)) : (e.wc(c, !1), e.visible = !0)
  16110. };
  16111. a.FH = function(c) {
  16112. c.mb = this.mb;
  16113. c.i.ia(b.f.L.ra);
  16114. c.pc = this.pc;
  16115. c.i.ia(b.f.L.pa)
  16116. };
  16117. a.HH = function() {
  16118. var c = this.p;
  16119. c.Fb = c.texture
  16120. };
  16121. a.$a = function(e) {
  16122. for (var f = this.p.K, g = this.mb, h = 0; h < f.length; h++) {
  16123. var k = f[h],
  16124. c = k.i,
  16125. d = c.mb;
  16126. if (this.P === c.P || d.r === g.r && d.g === g.g && d.b === g.b) {
  16127. k.texture = e
  16128. }
  16129. }
  16130. this.P = e
  16131. };
  16132. a.Fm = b.Z.Xz ? function() {
  16133. var g = this.p,
  16134. c = g.kb();
  16135. if (c && 0 < c.eb().width) {
  16136. var d = this.Fb.xa;
  16137. if (d) {
  16138. var e = c.xa,
  16139. f = b.rect(0, 0, d.width, d.height);
  16140. e instanceof HTMLCanvasElement && !g.we ? b.o.A.Wm(d, this.mb, f, e) : (e = b.o.A.Wm(d, this.mb, f), c = new b.ca, c.mc(e), c.fb());
  16141. g.$a(c)
  16142. }
  16143. }
  16144. } : function() {
  16145. var f = this.p,
  16146. c, d = f.kb();
  16147. if (d && 0 < d.eb().width && (c = d.xa)) {
  16148. var e = b.Ra.pB(this.Fb.xa);
  16149. e && (c instanceof HTMLCanvasElement && !this.we ? (b.o.A.Vm(c, e, this.mb, null, c), this.$a(d)) : (c = b.o.A.Vm(c, e, this.mb), d = new b.ca, d.mc(c), d.fb(), f.$a(d)))
  16150. }
  16151. };
  16152. a.WR = function(c) {
  16153. b.f.prototype.TK.call(c, this.pc)
  16154. };
  16155. a.VR = function(c) {
  16156. b.f.prototype.SK.call(c, this.mb)
  16157. };
  16158. a.LF = function() {}
  16159. })();
  16160. (function() {
  16161. b.Sd.F = function(c) {
  16162. b.Sa.F.call(this, c);
  16163. this.Db = !0
  16164. };
  16165. var a = b.Sd.F.prototype = Object.create(b.Sa.F.prototype);
  16166. a.constructor = b.Sd.F;
  16167. a.GH = function(d, c) {
  16168. d.wc(c, !1);
  16169. d.visible = !0
  16170. };
  16171. a.HH = function() {};
  16172. a.Fm = function() {};
  16173. a.WR = function(c) {
  16174. c.TK(this.pc)
  16175. };
  16176. a.VR = function(c) {
  16177. c.SK(this.mb)
  16178. };
  16179. a.LF = function() {
  16180. var e = this.p,
  16181. c = e.textureAtlas.texture;
  16182. e.hc = c.co();
  16183. var d = e.QG = new b.o;
  16184. d.Pa(c, b.rect(0, 0, 0, 0), !1);
  16185. d.batchNode = e
  16186. };
  16187. a.wb = function(d) {
  16188. b.Sa.F.prototype.wb.call(this, d);
  16189. d = this.p;
  16190. if (b.fM) {
  16191. d = d.eb();
  16192. var c = b.d(0 | -this.xf.x, 0 | -this.xf.y);
  16193. d = [b.d(c.x, c.y), b.d(c.x + d.width, c.y), b.d(c.x + d.width, c.y + d.height), b.d(c.x, c.y + d.height)];
  16194. b.Nk.to(0, 255, 0, 255);
  16195. b.Nk.Tf(d, 4, !0)
  16196. }
  16197. };
  16198. a.FH = function() {}
  16199. })();
  16200. b.zk = b.f.extend({
  16201. texture: null,
  16202. Tn: !1,
  16203. Jh: !1,
  16204. O: null,
  16205. sq: 0,
  16206. by: 0,
  16207. Wk: 0,
  16208. My: 0,
  16209. Gj: 0,
  16210. iz: 0,
  16211. dz: null,
  16212. cz: null,
  16213. Ga: null,
  16214. Hm: null,
  16215. Ye: null,
  16216. hd: null,
  16217. ft: null,
  16218. yu: null,
  16219. gc: "MotionStreak",
  16220. ctor: function(f, a, c, d, e) {
  16221. b.f.prototype.ctor.call(this);
  16222. this.Ef = b.d(0, 0);
  16223. this.O = new b.Wb(b.SRC_ALPHA, b.ONE_MINUS_SRC_ALPHA);
  16224. this.Jh = this.Tn = !1;
  16225. this.texture = null;
  16226. this.iz = this.Gj = this.My = this.Wk = this.by = this.sq = 0;
  16227. this.yu = this.ft = this.hd = this.Ye = this.Hm = this.Ga = this.cz = this.dz = null;
  16228. void 0 !== e && this.CV(f, a, c, d, e)
  16229. },
  16230. kb: function() {
  16231. return this.texture
  16232. },
  16233. $a: function(a) {
  16234. this.texture !== a && (this.texture = a)
  16235. },
  16236. Vn: function() {
  16237. return this.O
  16238. },
  16239. Hh: function(c, a) {
  16240. void 0 === a ? this.O = c : (this.O.src = c, this.O.ya = a)
  16241. },
  16242. sh: function() {
  16243. b.log("cc.MotionStreak.getOpacity has not been supported.");
  16244. return 0
  16245. },
  16246. yd: function() {
  16247. b.log("cc.MotionStreak.setOpacity has not been supported.")
  16248. },
  16249. Pi: function() {},
  16250. zh: function() {
  16251. return !1
  16252. },
  16253. Z6: function() {
  16254. return this.Tn
  16255. },
  16256. T$: function(a) {
  16257. this.Tn = a
  16258. },
  16259. l7: function() {
  16260. return this.Jh
  16261. },
  16262. Caa: function(a) {
  16263. this.Jh = a
  16264. },
  16265. CV: function(f, a, c, d, e) {
  16266. if (!e) {
  16267. throw "cc.MotionStreak.initWithFade(): Invalid filename or texture"
  16268. }
  16269. b.ge(e) && (e = b.Ra.lc(e));
  16270. b.f.prototype.G.call(this, b.d(0, 0));
  16271. this.anchorY = this.anchorX = 0;
  16272. this.ignoreAnchor = !0;
  16273. this.Jh = !1;
  16274. this.Tn = !0;
  16275. this.Wk = -1 === a ? c / 5 : a;
  16276. this.Wk *= this.Wk;
  16277. this.sq = c;
  16278. this.by = 1 / f;
  16279. this.My = f = (0 | 60 * f) + 2;
  16280. this.Gj = 0;
  16281. this.cz = new Float32Array(f);
  16282. this.dz = new Float32Array(2 * f);
  16283. this.Ga = new Float32Array(4 * f);
  16284. this.Ye = new Float32Array(4 * f);
  16285. this.Hm = new Uint8Array(8 * f);
  16286. this.hd = gl.createBuffer();
  16287. this.yu = gl.createBuffer();
  16288. this.ft = gl.createBuffer();
  16289. this.O.src = gl.SRC_ALPHA;
  16290. this.O.ya = gl.ONE_MINUS_SRC_ALPHA;
  16291. this.texture = e;
  16292. this.color = d;
  16293. this.fk();
  16294. gl.bindBuffer(gl.ARRAY_BUFFER, this.hd);
  16295. gl.bufferData(gl.ARRAY_BUFFER, this.Ga, gl.DYNAMIC_DRAW);
  16296. gl.bindBuffer(gl.ARRAY_BUFFER, this.yu);
  16297. gl.bufferData(gl.ARRAY_BUFFER, this.Ye, gl.DYNAMIC_DRAW);
  16298. gl.bindBuffer(gl.ARRAY_BUFFER, this.ft);
  16299. gl.bufferData(gl.ARRAY_BUFFER, this.Hm, gl.DYNAMIC_DRAW);
  16300. return !0
  16301. },
  16302. Gba: function(e) {
  16303. this.color = e;
  16304. for (var a = this.Hm, c = 0, d = 2 * this.Gj; c < d; c++) {
  16305. a[4 * c] = e.r, a[4 * c + 1] = e.g, a[4 * c + 2] = e.b
  16306. }
  16307. },
  16308. reset: function() {
  16309. this.Gj = 0
  16310. },
  16311. G: function(c, a) {
  16312. this.Jh = !0;
  16313. void 0 === a ? (this.Ef.x = c.x, this.Ef.y = c.y) : (this.Ef.x = c, this.Ef.y = a)
  16314. },
  16315. pb: function() {
  16316. return this.Ef.x
  16317. },
  16318. uK: function(a) {
  16319. this.Ef.x = a;
  16320. this.Jh || (this.Jh = !0)
  16321. },
  16322. qb: function() {
  16323. return this.Ef.y
  16324. },
  16325. vK: function(a) {
  16326. this.Ef.y = a;
  16327. this.Jh || (this.Jh = !0)
  16328. },
  16329. update: function(d) {
  16330. if (this.Jh) {
  16331. this.i.Rf();
  16332. d *= this.by;
  16333. var g, h, k, m, n = 0,
  16334. p = this.Gj,
  16335. a = this.cz,
  16336. c = this.dz,
  16337. e = this.Ga,
  16338. f = this.Hm;
  16339. for (k = 0; k < p; k++) {
  16340. a[k] -= d, 0 >= a[k] ? n++ : (g = k - n, 0 < n ? (a[g] = a[k], c[2 * g] = c[2 * k], c[2 * g + 1] = c[2 * k + 1], m = 2 * k, h = 2 * g, e[2 * h] = e[2 * m], e[2 * h + 1] = e[2 * m + 1], e[2 * (h + 1)] = e[2 * (m + 1)], e[2 * (h + 1) + 1] = e[2 * (m + 1) + 1], m *= 4, h *= 4, f[h + 0] = f[m + 0], f[h + 1] = f[m + 1], f[h + 2] = f[m + 2], f[h + 4] = f[m + 4], f[h + 5] = f[m + 5], f[h + 6] = f[m + 6]) : h = 8 * g, g = 255 * a[g], f[h + 3] = g, f[h + 7] = g)
  16341. }
  16342. p -= n;
  16343. k = !0;
  16344. p >= this.My ? k = !1 : 0 < p && (d = b.FJ(b.d(c[2 * (p - 1)], c[2 * (p - 1) + 1]), this.Ef) < this.Wk, h = 1 === p ? !1 : b.FJ(b.d(c[2 * (p - 2)], c[2 * (p - 2) + 1]), this.Ef) < 2 * this.Wk, d || h) && (k = !1);
  16345. k && (c[2 * p] = this.Ef.x, c[2 * p + 1] = this.Ef.y, a[p] = 1, a = 8 * p, k = this.Uq(), f[a] = k.r, f[a + 1] = k.g, f[a + 2] = k.b, f[a + 4] = k.r, f[a + 5] = k.g, f[a + 6] = k.b, f[a + 3] = 255, f[a + 7] = 255, 0 < p && this.Tn && (1 < p ? b.rC(c, this.sq, this.Ga, p, 1) : b.rC(c, this.sq, this.Ga, 0, 2)), p++);
  16346. this.Tn || b.rC(c, this.sq, this.Ga, 0, p);
  16347. if (p && this.iz !== p) {
  16348. c = 1 / p;
  16349. f = this.Ye;
  16350. for (k = 0; k < p; k++) {
  16351. f[4 * k] = 0, f[4 * k + 1] = c * k, f[2 * (2 * k + 1)] = 1, f[2 * (2 * k + 1) + 1] = c * k
  16352. }
  16353. this.iz = p
  16354. }
  16355. this.Gj = p
  16356. }
  16357. },
  16358. Fd: function() {
  16359. return b.ua === b.Lb ? new b.zk.F(this) : null
  16360. }
  16361. });
  16362. b.zk.create = function(f, a, c, d, e) {
  16363. return new b.zk(f, a, c, d, e)
  16364. };
  16365. b.zk.F = function(a) {
  16366. b.f.F.call(this, a);
  16367. this.Db = !0;
  16368. this.va = b.Ge.Hc(b.Ak)
  16369. };
  16370. b.zk.F.prototype = Object.create(b.f.F.prototype);
  16371. b.zk.F.prototype.constructor = b.o.F;
  16372. b.zk.F.prototype.wb = function(c) {
  16373. var a = this.p;
  16374. 1 >= a.Gj || !a.texture || !a.texture.T || (c = c || b.s, this.va.Ub(), this.va.wg(this.Rc), b.tc(b.pp), b.Vf(a.O.src, a.O.ya), b.Ee(a.texture), c.bindBuffer(c.ARRAY_BUFFER, a.hd), c.bufferData(c.ARRAY_BUFFER, a.Ga, c.DYNAMIC_DRAW), c.vertexAttribPointer(b.ab, 2, c.FLOAT, !1, 0, 0), c.bindBuffer(c.ARRAY_BUFFER, a.yu), c.bufferData(c.ARRAY_BUFFER, a.Ye, c.DYNAMIC_DRAW), c.vertexAttribPointer(b.Ed, 2, c.FLOAT, !1, 0, 0), c.bindBuffer(c.ARRAY_BUFFER, a.ft), c.bufferData(c.ARRAY_BUFFER, a.Hm, c.DYNAMIC_DRAW), c.vertexAttribPointer(b.ne, 4, c.UNSIGNED_BYTE, !0, 0, 0), c.drawArrays(c.TRIANGLE_STRIP, 0, 2 * a.Gj), b.df++)
  16375. };
  16376. b.gm = b.Ia.extend({
  16377. wp: !1,
  16378. Jj: 0,
  16379. cd: null,
  16380. P: null,
  16381. Kf: null,
  16382. Ym: null,
  16383. Uk: !1,
  16384. va: null,
  16385. FE: 0,
  16386. Ka: !1,
  16387. ctor: function(d, a, c) {
  16388. b.oE();
  16389. this.wp = !1;
  16390. this.Jj = 0;
  16391. this.P = this.cd = null;
  16392. this.Kf = b.d(0, 0);
  16393. this.Ym = null;
  16394. this.Uk = !1;
  16395. this.va = null;
  16396. this.FE = 0;
  16397. this.Ka = !1;
  16398. void 0 !== d && this.CB(d, a, c)
  16399. },
  16400. R6: function() {
  16401. return this.wp
  16402. },
  16403. setActive: function(c) {
  16404. this.wp = c;
  16405. if (!c) {
  16406. c = b.I;
  16407. var a = c.Zn();
  16408. c.Sl(a)
  16409. }
  16410. },
  16411. L5: function() {
  16412. return this.Jj
  16413. },
  16414. xaa: function(a) {
  16415. this.Jj = a
  16416. },
  16417. k5: function() {
  16418. return b.size(this.cd.width, this.cd.height)
  16419. },
  16420. caa: function(a) {
  16421. this.cd.width = parseInt(a.width);
  16422. this.cd.height = parseInt(a.height)
  16423. },
  16424. X5: function() {
  16425. return b.d(this.Kf.x, this.Kf.y)
  16426. },
  16427. Daa: function(a) {
  16428. this.Kf.x = a.x;
  16429. this.Kf.y = a.y
  16430. },
  16431. p7: function() {
  16432. return this.Uk
  16433. },
  16434. Jaa: function(a) {
  16435. this.Uk !== a && (this.Uk = a, this.Nu())
  16436. },
  16437. CB: function(e, f, g) {
  16438. if (!f) {
  16439. var h = b.I.rB(),
  16440. a = b.cj(h.width),
  16441. c = b.cj(h.height),
  16442. d = new Uint8Array(a * c * 4);
  16443. if (!d) {
  16444. return b.log("cocos2d: CCGrid: not enough memory."), !1
  16445. }
  16446. f = new b.ca;
  16447. f.Zq(d, b.ca.dj, a, c, h);
  16448. if (!f) {
  16449. return b.log("cocos2d: CCGrid: error creating texture"), !1
  16450. }
  16451. }
  16452. this.wp = !1;
  16453. this.Jj = 0;
  16454. this.cd = e;
  16455. this.P = f;
  16456. this.Uk = g || !1;
  16457. this.Kf.x = this.P.width / e.width;
  16458. this.Kf.y = this.P.height / e.height;
  16459. this.Ym = new b.WL;
  16460. if (!this.Ym) {
  16461. return !1
  16462. }
  16463. this.Ym.wV(this.P);
  16464. this.va = b.Ge.Hc(b.kp);
  16465. this.Nu();
  16466. return !0
  16467. },
  16468. k2: function() {
  16469. this.FE = b.I.Zn();
  16470. this.Ym.TS(this.P)
  16471. },
  16472. V1: function(e) {
  16473. this.Ym.AS(this.P);
  16474. if (e && e.Wn().DB()) {
  16475. var a = e.Tq(),
  16476. c = e.i.Rc,
  16477. d = b.e.U.Wj(a.x, a.y, 0);
  16478. c.multiply(d);
  16479. e.sj.Ky(c);
  16480. d = b.e.U.Wj(-a.x, -a.y, 0, d);
  16481. c.multiply(d)
  16482. }
  16483. b.Ee(this.P);
  16484. this.dI();
  16485. this.BA(e);
  16486. this.aI()
  16487. },
  16488. dI: function() {},
  16489. aI: function() {},
  16490. BA: function() {
  16491. b.log("cc.GridBase.blit(): Shall be overridden in subclass.")
  16492. },
  16493. so: function() {
  16494. b.log("cc.GridBase.reuse(): Shall be overridden in subclass.")
  16495. },
  16496. Nu: function() {
  16497. b.log("cc.GridBase.calculateVertexPoints(): Shall be overridden in subclass.")
  16498. },
  16499. u$: function() {
  16500. var a = b.I.rB();
  16501. b.s.viewport(0, 0, a.width, a.height);
  16502. b.Gg(b.Ng);
  16503. b.io();
  16504. a = b.e.U.IA(0, a.width, 0, a.height, -1, 1);
  16505. b.jo(a);
  16506. b.Gg(b.Mg);
  16507. b.io();
  16508. b.wK()
  16509. }
  16510. });
  16511. b.gm.create = function(d, a, c) {
  16512. return new b.gm(d, a, c)
  16513. };
  16514. b.MC = b.gm.extend({
  16515. Mf: null,
  16516. Ga: null,
  16517. fi: null,
  16518. Nb: null,
  16519. Xe: null,
  16520. hd: null,
  16521. Re: null,
  16522. Ot: !1,
  16523. pG: !1,
  16524. qG: !1,
  16525. ctor: function(d, a, c) {
  16526. b.gm.prototype.ctor.call(this);
  16527. this.Re = this.hd = this.Xe = this.Nb = this.fi = this.Ga = this.Mf = null;
  16528. void 0 !== d && this.CB(d, a, c)
  16529. },
  16530. $ba: function(a) {
  16531. return this.pV(a)
  16532. },
  16533. pV: function(c) {
  16534. c.x === (0 | c.x) && c.y === (0 | c.y) || b.log("cc.Grid3D.vertex() : Numbers must be integers");
  16535. c = 0 | 3 * (c.x * (this.cd.height + 1) + c.y);
  16536. var a = this.Ga;
  16537. return new D(a[c], a[c + 1], a[c + 2])
  16538. },
  16539. C8: function(a) {
  16540. return this.XU(a)
  16541. },
  16542. XU: function(c) {
  16543. c.x === (0 | c.x) && c.y === (0 | c.y) || b.log("cc.Grid3D.originalVertex() : Numbers must be integers");
  16544. c = 0 | 3 * (c.x * (this.cd.height + 1) + c.y);
  16545. var a = this.fi;
  16546. return new D(a[c], a[c + 1], a[c + 2])
  16547. },
  16548. cba: function(e, a) {
  16549. e.x === (0 | e.x) && e.y === (0 | e.y) || b.log("cc.Grid3D.setVertex() : Numbers must be integers");
  16550. var c = 0 | 3 * (e.x * (this.cd.height + 1) + e.y),
  16551. d = this.Ga;
  16552. d[c] = a.x;
  16553. d[c + 1] = a.y;
  16554. d[c + 2] = a.z;
  16555. this.Ka = !0
  16556. },
  16557. dI: function() {
  16558. if (this.Ot) {
  16559. var a = b.s;
  16560. this.pG = a.isEnabled(a.DEPTH_TEST);
  16561. this.qG = a.getParameter(a.DEPTH_WRITEMASK);
  16562. a.enable(a.DEPTH_TEST);
  16563. a.depthMask(!0)
  16564. }
  16565. },
  16566. aI: function() {
  16567. if (this.Ot) {
  16568. var a = b.s;
  16569. this.pG ? a.enable(a.DEPTH_TEST) : a.disable(a.DEPTH_TEST);
  16570. a.depthMask(this.qG)
  16571. }
  16572. },
  16573. BA: function(d) {
  16574. var a = this.cd.width * this.cd.height;
  16575. b.tc(b.ad | b.pm);
  16576. this.va.Ub();
  16577. this.va.wg(d.i.Rc);
  16578. d = b.s;
  16579. var c = this.Ka;
  16580. d.bindBuffer(d.ARRAY_BUFFER, this.hd);
  16581. c && d.bufferData(d.ARRAY_BUFFER, this.Ga, d.DYNAMIC_DRAW);
  16582. d.vertexAttribPointer(b.ab, 3, d.FLOAT, !1, 0, 0);
  16583. d.bindBuffer(d.ARRAY_BUFFER, this.Xe);
  16584. c && d.bufferData(d.ARRAY_BUFFER, this.Mf, d.DYNAMIC_DRAW);
  16585. d.vertexAttribPointer(b.Ed, 2, d.FLOAT, !1, 0, 0);
  16586. d.bindBuffer(d.ELEMENT_ARRAY_BUFFER, this.Re);
  16587. c && d.bufferData(d.ELEMENT_ARRAY_BUFFER, this.Nb, d.STATIC_DRAW);
  16588. d.drawElements(d.TRIANGLES, 6 * a, d.UNSIGNED_SHORT, 0);
  16589. c && (this.Ka = !1);
  16590. b.Xf()
  16591. },
  16592. so: function() {
  16593. if (0 < this.Jj) {
  16594. for (var e = this.fi, a = this.Ga, c = 0, d = this.Ga.length; c < d; c++) {
  16595. e[c] = a[c]
  16596. }--this.Jj
  16597. }
  16598. },
  16599. Nu: function() {
  16600. var u = b.s,
  16601. v = this.P.pixelsWidth,
  16602. x = this.P.pixelsHeight,
  16603. y = this.P.Q.height,
  16604. A = this.cd,
  16605. B = (A.width + 1) * (A.height + 1);
  16606. this.Ga = new Float32Array(3 * B);
  16607. this.Mf = new Float32Array(2 * B);
  16608. this.Nb = new Uint16Array(A.width * A.height * 6);
  16609. this.hd && u.deleteBuffer(this.hd);
  16610. this.hd = u.createBuffer();
  16611. this.Xe && u.deleteBuffer(this.Xe);
  16612. this.Xe = u.createBuffer();
  16613. this.Re && u.deleteBuffer(this.Re);
  16614. this.Re = u.createBuffer();
  16615. for (var C, a, c = this.Nb, d = this.Mf, e = this.Uk, h = this.Ga, B = 0; B < A.width; ++B) {
  16616. for (C = 0; C < A.height; ++C) {
  16617. var n = C * A.width + B;
  16618. a = B * this.Kf.x;
  16619. var m = a + this.Kf.x,
  16620. r = C * this.Kf.y,
  16621. p = r + this.Kf.y,
  16622. s = B * (A.height + 1) + C,
  16623. t = (B + 1) * (A.height + 1) + C,
  16624. f = (B + 1) * (A.height + 1) + (C + 1),
  16625. g = B * (A.height + 1) + (C + 1);
  16626. c[6 * n] = s;
  16627. c[6 * n + 1] = t;
  16628. c[6 * n + 2] = g;
  16629. c[6 * n + 3] = t;
  16630. c[6 * n + 4] = f;
  16631. c[6 * n + 5] = g;
  16632. var n = [3 * s, 3 * t, 3 * f, 3 * g],
  16633. k = [{
  16634. x: a,
  16635. y: r,
  16636. z: 0
  16637. }, {
  16638. x: m,
  16639. y: r,
  16640. z: 0
  16641. }, {
  16642. x: m,
  16643. y: p,
  16644. z: 0
  16645. }, {
  16646. x: a,
  16647. y: p,
  16648. z: 0
  16649. }],
  16650. s = [2 * s, 2 * t, 2 * f, 2 * g],
  16651. m = [b.d(a, r), b.d(m, r), b.d(m, p), b.d(a, p)];
  16652. for (a = 0; 4 > a; ++a) {
  16653. h[n[a]] = k[a].x, h[n[a] + 1] = k[a].y, h[n[a] + 2] = k[a].z, d[s[a]] = m[a].x / v, d[s[a] + 1] = e ? (y - m[a].y) / x : m[a].y / x
  16654. }
  16655. }
  16656. }
  16657. this.fi = new Float32Array(this.Ga);
  16658. u.bindBuffer(u.ARRAY_BUFFER, this.hd);
  16659. u.bufferData(u.ARRAY_BUFFER, this.Ga, u.DYNAMIC_DRAW);
  16660. u.bindBuffer(u.ARRAY_BUFFER, this.Xe);
  16661. u.bufferData(u.ARRAY_BUFFER, this.Mf, u.DYNAMIC_DRAW);
  16662. u.bindBuffer(u.ELEMENT_ARRAY_BUFFER, this.Re);
  16663. u.bufferData(u.ELEMENT_ARRAY_BUFFER, this.Nb, u.STATIC_DRAW);
  16664. this.Ka = !0
  16665. },
  16666. haa: function(a) {
  16667. this.Ot = a
  16668. },
  16669. u5: function() {
  16670. return this.Ot
  16671. }
  16672. });
  16673. b.MC.create = function(d, a, c) {
  16674. return new b.MC(d, a, c)
  16675. };
  16676. b.rD = b.gm.extend({
  16677. Mf: null,
  16678. Ga: null,
  16679. fi: null,
  16680. Nb: null,
  16681. Xe: null,
  16682. hd: null,
  16683. Re: null,
  16684. ctor: function(d, a, c) {
  16685. b.gm.prototype.ctor.call(this);
  16686. this.Re = this.hd = this.Xe = this.Nb = this.fi = this.Ga = this.Mf = null;
  16687. void 0 !== d && this.CB(d, a, c)
  16688. },
  16689. Eba: function(a) {
  16690. return this.lV(a)
  16691. },
  16692. lV: function(c) {
  16693. c.x === (0 | c.x) && c.y === (0 | c.y) || b.log("cc.TiledGrid3D.tile() : Numbers must be integers");
  16694. c = 12 * (this.cd.height * c.x + c.y);
  16695. var a = this.Ga;
  16696. return new b.cD(new D(a[c], a[c + 1], a[c + 2]), new D(a[c + 3], a[c + 4], a[c + 5]), new D(a[c + 6], a[c + 7], a[c + 8]), new D(a[c + 9], a[c + 10], a[c + 11]))
  16697. },
  16698. WU: function(c) {
  16699. c.x === (0 | c.x) && c.y === (0 | c.y) || b.log("cc.TiledGrid3D.originalTile() : Numbers must be integers");
  16700. c = 12 * (this.cd.height * c.x + c.y);
  16701. var a = this.fi;
  16702. return new b.cD(new D(a[c], a[c + 1], a[c + 2]), new D(a[c + 3], a[c + 4], a[c + 5]), new D(a[c + 6], a[c + 7], a[c + 8]), new D(a[c + 9], a[c + 10], a[c + 11]))
  16703. },
  16704. B8: function(a) {
  16705. return this.WU(a)
  16706. },
  16707. Kaa: function(e, a) {
  16708. e.x === (0 | e.x) && e.y === (0 | e.y) || b.log("cc.TiledGrid3D.setTile() : Numbers must be integers");
  16709. var c = 12 * (this.cd.height * e.x + e.y),
  16710. d = this.Ga;
  16711. d[c] = a.bl.x;
  16712. d[c + 1] = a.bl.y;
  16713. d[c + 2] = a.bl.z;
  16714. d[c + 3] = a.br.x;
  16715. d[c + 4] = a.br.y;
  16716. d[c + 5] = a.br.z;
  16717. d[c + 6] = a.tl.x;
  16718. d[c + 7] = a.tl.y;
  16719. d[c + 8] = a.tl.z;
  16720. d[c + 9] = a.tr.x;
  16721. d[c + 10] = a.tr.y;
  16722. d[c + 11] = a.tr.z;
  16723. this.Ka = !0
  16724. },
  16725. BA: function(d) {
  16726. var a = this.cd.width * this.cd.height;
  16727. this.va.Ub();
  16728. this.va.wg(d.i.Rc);
  16729. d = b.s;
  16730. var c = this.Ka;
  16731. b.tc(b.ad | b.pm);
  16732. d.bindBuffer(d.ARRAY_BUFFER, this.hd);
  16733. c && d.bufferData(d.ARRAY_BUFFER, this.Ga, d.DYNAMIC_DRAW);
  16734. d.vertexAttribPointer(b.ab, 3, d.FLOAT, !1, 0, this.Ga);
  16735. d.bindBuffer(d.ARRAY_BUFFER, this.Xe);
  16736. c && d.bufferData(d.ARRAY_BUFFER, this.Mf, d.DYNAMIC_DRAW);
  16737. d.vertexAttribPointer(b.Ed, 2, d.FLOAT, !1, 0, this.Mf);
  16738. d.bindBuffer(d.ELEMENT_ARRAY_BUFFER, this.Re);
  16739. c && d.bufferData(d.ELEMENT_ARRAY_BUFFER, this.Nb, d.STATIC_DRAW);
  16740. d.drawElements(d.TRIANGLES, 6 * a, d.UNSIGNED_SHORT, 0);
  16741. c && (this.Ka = !1);
  16742. b.Xf()
  16743. },
  16744. so: function() {
  16745. if (0 < this.Jj) {
  16746. for (var d = this.Ga, a = this.fi, c = 0; c < d.length; c++) {
  16747. a[c] = d[c]
  16748. }--this.Jj
  16749. }
  16750. },
  16751. Nu: function() {
  16752. var x = this.P.pixelsWidth,
  16753. y = this.P.pixelsHeight,
  16754. A = this.P.Q.height,
  16755. a = this.cd,
  16756. c = a.width * a.height;
  16757. this.Ga = new Float32Array(12 * c);
  16758. this.Mf = new Float32Array(8 * c);
  16759. this.Nb = new Uint16Array(6 * c);
  16760. var d = b.s;
  16761. this.hd && d.deleteBuffer(this.hd);
  16762. this.hd = d.createBuffer();
  16763. this.Xe && d.deleteBuffer(this.Xe);
  16764. this.Xe = d.createBuffer();
  16765. this.Re && d.deleteBuffer(this.Re);
  16766. this.Re = d.createBuffer();
  16767. var e, f, g = 0,
  16768. h = this.Kf,
  16769. k = this.Ga,
  16770. n = this.Mf,
  16771. r = this.Uk;
  16772. for (e = 0; e < a.width; e++) {
  16773. for (f = 0; f < a.height; f++) {
  16774. var p = e * h.x,
  16775. t = p + h.x,
  16776. s = f * h.y,
  16777. u = s + h.y;
  16778. k[12 * g] = p;
  16779. k[12 * g + 1] = s;
  16780. k[12 * g + 2] = 0;
  16781. k[12 * g + 3] = t;
  16782. k[12 * g + 4] = s;
  16783. k[12 * g + 5] = 0;
  16784. k[12 * g + 6] = p;
  16785. k[12 * g + 7] = u;
  16786. k[12 * g + 8] = 0;
  16787. k[12 * g + 9] = t;
  16788. k[12 * g + 10] = u;
  16789. k[12 * g + 11] = 0;
  16790. var v = s,
  16791. m = u;
  16792. r && (v = A - s, m = A - u);
  16793. n[8 * g] = p / x;
  16794. n[8 * g + 1] = v / y;
  16795. n[8 * g + 2] = t / x;
  16796. n[8 * g + 3] = v / y;
  16797. n[8 * g + 4] = p / x;
  16798. n[8 * g + 5] = m / y;
  16799. n[8 * g + 6] = t / x;
  16800. n[8 * g + 7] = m / y;
  16801. g++
  16802. }
  16803. }
  16804. x = this.Nb;
  16805. for (e = 0; e < c; e++) {
  16806. x[6 * e + 0] = 4 * e + 0, x[6 * e + 1] = 4 * e + 1, x[6 * e + 2] = 4 * e + 2, x[6 * e + 3] = 4 * e + 1, x[6 * e + 4] = 4 * e + 2, x[6 * e + 5] = 4 * e + 3
  16807. }
  16808. this.fi = new Float32Array(this.Ga);
  16809. d.bindBuffer(d.ARRAY_BUFFER, this.hd);
  16810. d.bufferData(d.ARRAY_BUFFER, this.Ga, d.DYNAMIC_DRAW);
  16811. d.bindBuffer(d.ARRAY_BUFFER, this.Xe);
  16812. d.bufferData(d.ARRAY_BUFFER, this.Mf, d.DYNAMIC_DRAW);
  16813. d.bindBuffer(d.ELEMENT_ARRAY_BUFFER, this.Re);
  16814. d.bufferData(d.ELEMENT_ARRAY_BUFFER, this.Nb, d.DYNAMIC_DRAW);
  16815. this.Ka = !0
  16816. }
  16817. });
  16818. b.rD.create = function(d, a, c) {
  16819. return new b.rD(d, a, c)
  16820. };
  16821. b.WL = b.Ia.extend({
  16822. Ps: null,
  16823. jh: null,
  16824. oG: null,
  16825. Xm: null,
  16826. ctor: function() {
  16827. b.oE();
  16828. this.Xm = b.s;
  16829. this.oG = [0, 0, 0, 0];
  16830. this.jh = null;
  16831. this.Ps = this.Xm.createFramebuffer()
  16832. },
  16833. wV: function(c) {
  16834. var a = this.Xm;
  16835. this.jh = a.getParameter(a.FRAMEBUFFER_BINDING);
  16836. a.bindFramebuffer(a.FRAMEBUFFER, this.Ps);
  16837. a.framebufferTexture2D(a.FRAMEBUFFER, a.COLOR_ATTACHMENT0, a.TEXTURE_2D, c.Ze, 0);
  16838. a.checkFramebufferStatus(a.FRAMEBUFFER) !== a.FRAMEBUFFER_COMPLETE && b.log("Frame Grabber: could not attach texture to frmaebuffer");
  16839. a.bindFramebuffer(a.FRAMEBUFFER, this.jh)
  16840. },
  16841. TS: function() {
  16842. var a = this.Xm;
  16843. this.jh = a.getParameter(a.FRAMEBUFFER_BINDING);
  16844. a.bindFramebuffer(a.FRAMEBUFFER, this.Ps);
  16845. this.oG = a.getParameter(a.COLOR_CLEAR_VALUE);
  16846. a.clearColor(0, 0, 0, 0);
  16847. a.clear(a.COLOR_BUFFER_BIT | a.DEPTH_BUFFER_BIT)
  16848. },
  16849. AS: function() {
  16850. var a = this.Xm;
  16851. a.bindFramebuffer(a.FRAMEBUFFER, this.jh);
  16852. a.colorMask(!0, !0, !0, !0)
  16853. },
  16854. O2: function() {
  16855. this.Xm.deleteFramebuffer(this.Ps)
  16856. }
  16857. });
  16858. b.Xba = function() {
  16859. return {
  16860. x: 0,
  16861. y: 0
  16862. }
  16863. };
  16864. b.nk = function(c, a) {
  16865. return {
  16866. x: c,
  16867. y: a
  16868. }
  16869. };
  16870. b.Rd = function(c, a) {
  16871. return b.nk(c.x + a.x, c.y + a.y)
  16872. };
  16873. b.Vb = function(c, a) {
  16874. return b.nk(c.x - a.x, c.y - a.y)
  16875. };
  16876. b.Xc = function(c, a) {
  16877. return b.nk(c.x * a, c.y * a)
  16878. };
  16879. b.Co = function(a) {
  16880. return b.nk(-a.y, a.x)
  16881. };
  16882. b.nf = function(a) {
  16883. return b.nk(-a.x, -a.y)
  16884. };
  16885. b.VK = function(c, a) {
  16886. return c.x * a.x + c.y * a.y
  16887. };
  16888. b.Wba = function(a) {
  16889. return b.nk(Math.cos(a), Math.sin(a))
  16890. };
  16891. b.Jr = function(a) {
  16892. a = b.$f(b.d(a.x, a.y));
  16893. return b.nk(a.x, a.y)
  16894. };
  16895. b.Ud = function(a) {
  16896. return b.nk(a.x, a.y)
  16897. };
  16898. b.za = function(a) {
  16899. return {
  16900. u: a.x,
  16901. v: a.y
  16902. }
  16903. };
  16904. b.EL = b.f.extend({
  16905. Na: null,
  16906. O: null,
  16907. Cc: 1,
  16908. Gd: null,
  16909. gc: "DrawNodeCanvas",
  16910. ctor: function() {
  16911. b.f.prototype.ctor.call(this);
  16912. var a = this.i;
  16913. a.Na = this.Na = [];
  16914. a.Gd = this.Gd = b.color(255, 255, 255, 255);
  16915. a.O = this.O = new b.Wb(b.qf, b.pf);
  16916. this.oa()
  16917. },
  16918. Vn: function() {
  16919. return this.O
  16920. },
  16921. Hh: function(c, a) {
  16922. void 0 === a ? (this.O.src = c.src, this.O.ya = c.ya) : (this.O.src = c, this.O.ya = a)
  16923. },
  16924. dC: function(a) {
  16925. this.Cc = a
  16926. },
  16927. JU: function() {
  16928. return this.Cc
  16929. },
  16930. to: function(c) {
  16931. var a = this.Gd;
  16932. a.r = c.r;
  16933. a.g = c.g;
  16934. a.b = c.b;
  16935. a.a = null == c.a ? 255 : c.a
  16936. },
  16937. md: function() {
  16938. return b.color(this.Gd.r, this.Gd.g, this.Gd.b, this.Gd.a)
  16939. },
  16940. RA: function(f, a, c, d, e) {
  16941. d = null == d ? this.Cc : d;
  16942. e = e || this.md();
  16943. null == e.a && (e.a = 255);
  16944. f = [f, b.d(a.x, f.y), a, b.d(f.x, a.y)];
  16945. a = new b.kj(b.Ya.fj);
  16946. a.bg = f;
  16947. a.lineWidth = d;
  16948. a.Ji = e;
  16949. a.pv = !0;
  16950. a.bk = !0;
  16951. a.lineCap = "butt";
  16952. if (a.fillColor = c) {
  16953. null == c.a && (c.a = 255), a.EB = !0
  16954. }
  16955. this.Na.push(a)
  16956. },
  16957. NA: function(d, g, h, k, m, n, p) {
  16958. n = n || this.Cc;
  16959. p = p || this.md();
  16960. null == p.a && (p.a = 255);
  16961. for (var a = 2 * Math.PI / k, c = [], e = 0; e <= k; e++) {
  16962. var f = e * a;
  16963. c.push(b.d(g * Math.cos(f + h) + d.x, g * Math.sin(f + h) + d.y))
  16964. }
  16965. m && c.push(b.d(d.x, d.y));
  16966. d = new b.kj(b.Ya.fj);
  16967. d.bg = c;
  16968. d.lineWidth = n;
  16969. d.Ji = p;
  16970. d.pv = !0;
  16971. d.bk = !0;
  16972. this.Na.push(d)
  16973. },
  16974. QA: function(h, k, m, a, c, d) {
  16975. c = c || this.Cc;
  16976. d = d || this.md();
  16977. null == d.a && (d.a = 255);
  16978. for (var e = [], f = 0, g = 0; g < a; g++) {
  16979. e.push(b.d(Math.pow(1 - f, 2) * h.x + 2 * (1 - f) * f * k.x + f * f * m.x, Math.pow(1 - f, 2) * h.y + 2 * (1 - f) * f * k.y + f * f * m.y)), f += 1 / a
  16980. }
  16981. e.push(b.d(m.x, m.y));
  16982. h = new b.kj(b.Ya.fj);
  16983. h.bg = e;
  16984. h.lineWidth = c;
  16985. h.Ji = d;
  16986. h.bk = !0;
  16987. h.lineCap = "round";
  16988. this.Na.push(h)
  16989. },
  16990. OA: function(g, h, k, m, n, a, c) {
  16991. a = a || this.Cc;
  16992. c = c || this.md();
  16993. null == c.a && (c.a = 255);
  16994. for (var d = [], e = 0, f = 0; f < n; f++) {
  16995. d.push(b.d(Math.pow(1 - e, 3) * g.x + 3 * Math.pow(1 - e, 2) * e * h.x + 3 * (1 - e) * e * e * k.x + e * e * e * m.x, Math.pow(1 - e, 3) * g.y + 3 * Math.pow(1 - e, 2) * e * h.y + 3 * (1 - e) * e * e * k.y + e * e * e * m.y)), e += 1 / n
  16996. }
  16997. d.push(b.d(m.x, m.y));
  16998. g = new b.kj(b.Ya.fj);
  16999. g.bg = d;
  17000. g.lineWidth = a;
  17001. g.Ji = c;
  17002. g.bk = !0;
  17003. g.lineCap = "round";
  17004. this.Na.push(g)
  17005. },
  17006. MA: function(e, a, c, d) {
  17007. this.Bl(e, 0.5, a, c, d)
  17008. },
  17009. Bl: function(g, h, k, m, n) {
  17010. m = m || this.Cc;
  17011. n = n || this.md();
  17012. null == n.a && (n.a = 255);
  17013. for (var a = [], c, d, e = 1 / g.length, f = 0; f < k + 1; f++) {
  17014. d = f / k, 1 === d ? (c = g.length - 1, d = 1) : (c = 0 | d / e, d = (d - e * c) / e), c = b.Ou(b.Gc(g, c - 1), b.Gc(g, c - 0), b.Gc(g, c + 1), b.Gc(g, c + 2), h, d), a.push(c)
  17015. }
  17016. g = new b.kj(b.Ya.fj);
  17017. g.bg = a;
  17018. g.lineWidth = m;
  17019. g.Ji = n;
  17020. g.bk = !0;
  17021. g.lineCap = "round";
  17022. this.Na.push(g)
  17023. },
  17024. PA: function(e, a, c) {
  17025. c = c || this.md();
  17026. null == c.a && (c.a = 255);
  17027. var d = new b.kj(b.Ya.oD);
  17028. d.bg = [e];
  17029. d.lineWidth = a;
  17030. d.fillColor = c;
  17031. this.Na.push(d)
  17032. },
  17033. CT: function(f, a, c) {
  17034. if (f && 0 != f.length) {
  17035. c = c || this.md();
  17036. null == c.a && (c.a = 255);
  17037. for (var d = 0, e = f.length; d < e; d++) {
  17038. this.PA(f[d], a, c)
  17039. }
  17040. }
  17041. },
  17042. SA: function(f, a, c, d) {
  17043. c = c || this.Cc;
  17044. d = d || this.md();
  17045. null == d.a && (d.a = 255);
  17046. var e = new b.kj(b.Ya.fj);
  17047. e.bg = [f, a];
  17048. e.lineWidth = 2 * c;
  17049. e.Ji = d;
  17050. e.bk = !0;
  17051. e.lineCap = "round";
  17052. this.Na.push(e)
  17053. },
  17054. GT: function(f, a, c, d) {
  17055. c = null == c ? this.Cc : c;
  17056. d = d || this.md();
  17057. null == d.a && (d.a = 255);
  17058. var e = new b.kj(b.Ya.fj);
  17059. e.bg = f;
  17060. e.fillColor = a;
  17061. e.lineWidth = c;
  17062. e.Ji = d;
  17063. e.pv = !0;
  17064. e.bk = !0;
  17065. e.lineCap = "round";
  17066. a && (e.EB = !0);
  17067. this.Na.push(e)
  17068. },
  17069. Tf: function(f, g, a, c) {
  17070. for (var d = [], e = 0; e < f.length; e++) {
  17071. d.push(b.d(f[e].x, f[e].y))
  17072. }
  17073. return this.GT(d, g, a, c)
  17074. },
  17075. clear: function() {
  17076. this.Na.length = 0
  17077. },
  17078. Fd: function() {
  17079. return new b.Ya.A(this)
  17080. }
  17081. });
  17082. b.FL = b.f.extend({
  17083. Dm: 0,
  17084. Na: null,
  17085. vi: null,
  17086. AH: null,
  17087. zH: null,
  17088. Cc: 1,
  17089. Gd: null,
  17090. O: null,
  17091. Ka: !1,
  17092. gc: "DrawNodeWebGL",
  17093. Vn: function() {
  17094. return this.O
  17095. },
  17096. Hh: function(c, a) {
  17097. void 0 === a ? (this.O.src = c.src, this.O.ya = c.ya) : (this.O.src = c, this.O.ya = a)
  17098. },
  17099. ctor: function() {
  17100. b.f.prototype.ctor.call(this);
  17101. this.Na = [];
  17102. this.O = new b.Wb(b.qf, b.pf);
  17103. this.Gd = b.color(255, 255, 255, 255);
  17104. this.oa()
  17105. },
  17106. oa: function() {
  17107. return b.f.prototype.oa.call(this) ? (this.shaderProgram = b.Ge.Hc(b.fD), this.Lp(64), this.AH = b.s.createBuffer(), this.Ka = !0) : !1
  17108. },
  17109. dC: function(a) {
  17110. this.Cc = a
  17111. },
  17112. JU: function() {
  17113. return this.Cc
  17114. },
  17115. to: function(c) {
  17116. var a = this.Gd;
  17117. a.r = c.r;
  17118. a.g = c.g;
  17119. a.b = c.b;
  17120. a.a = c.a
  17121. },
  17122. md: function() {
  17123. return b.color(this.Gd.r, this.Gd.g, this.Gd.b, this.Gd.a)
  17124. },
  17125. RA: function(f, a, c, d, e) {
  17126. d = null == d ? this.Cc : d;
  17127. e = e || this.md();
  17128. null == e.a && (e.a = 255);
  17129. f = [f, b.d(a.x, f.y), a, b.d(f.x, a.y)];
  17130. null == c ? this.mt(f, d, e, !0) : this.Tf(f, c, d, e)
  17131. },
  17132. NA: function(d, g, h, k, m, n, p) {
  17133. n = n || this.Cc;
  17134. p = p || this.md();
  17135. null == p.a && (p.a = 255);
  17136. var a = 2 * Math.PI / k,
  17137. c = [],
  17138. e;
  17139. for (e = 0; e <= k; e++) {
  17140. var f = e * a;
  17141. c.push(b.d(g * Math.cos(f + h) + d.x, g * Math.sin(f + h) + d.y))
  17142. }
  17143. m && c.push(b.d(d.x, d.y));
  17144. n *= 0.5;
  17145. e = 0;
  17146. for (d = c.length; e < d - 1; e++) {
  17147. this.SA(c[e], c[e + 1], n, p)
  17148. }
  17149. },
  17150. QA: function(h, k, m, a, c, d) {
  17151. c = c || this.Cc;
  17152. d = d || this.md();
  17153. null == d.a && (d.a = 255);
  17154. for (var e = [], f = 0, g = 0; g < a; g++) {
  17155. e.push(b.d(Math.pow(1 - f, 2) * h.x + 2 * (1 - f) * f * k.x + f * f * m.x, Math.pow(1 - f, 2) * h.y + 2 * (1 - f) * f * k.y + f * f * m.y)), f += 1 / a
  17156. }
  17157. e.push(b.d(m.x, m.y));
  17158. this.mt(e, c, d, !1)
  17159. },
  17160. OA: function(g, h, k, m, n, a, c) {
  17161. a = a || this.Cc;
  17162. c = c || this.md();
  17163. null == c.a && (c.a = 255);
  17164. for (var d = [], e = 0, f = 0; f < n; f++) {
  17165. d.push(b.d(Math.pow(1 - e, 3) * g.x + 3 * Math.pow(1 - e, 2) * e * h.x + 3 * (1 - e) * e * e * k.x + e * e * e * m.x, Math.pow(1 - e, 3) * g.y + 3 * Math.pow(1 - e, 2) * e * h.y + 3 * (1 - e) * e * e * k.y + e * e * e * m.y)), e += 1 / n
  17166. }
  17167. d.push(b.d(m.x, m.y));
  17168. this.mt(d, a, c, !1)
  17169. },
  17170. MA: function(e, a, c, d) {
  17171. this.Bl(e, 0.5, a, c, d)
  17172. },
  17173. Bl: function(g, h, k, m, n) {
  17174. m = m || this.Cc;
  17175. n = n || this.md();
  17176. null == n.a && (n.a = 255);
  17177. for (var a = [], c, d, e = 1 / g.length, f = 0; f < k + 1; f++) {
  17178. d = f / k, 1 === d ? (c = g.length - 1, d = 1) : (c = 0 | d / e, d = (d - e * c) / e), c = b.Ou(b.Gc(g, c - 1), b.Gc(g, c - 0), b.Gc(g, c + 1), b.Gc(g, c + 2), h, d), a.push(c)
  17179. }
  17180. m *= 0.5;
  17181. g = 0;
  17182. for (h = a.length; g < h - 1; g++) {
  17183. this.SA(a[g], a[g + 1], m, n)
  17184. }
  17185. },
  17186. fR: function() {
  17187. var c = b.s;
  17188. b.tc(b.pp);
  17189. c.bindBuffer(c.ARRAY_BUFFER, this.AH);
  17190. this.Ka && (c.bufferData(c.ARRAY_BUFFER, this.vi, c.STREAM_DRAW), this.Ka = !1);
  17191. var a = b.$c.BYTES_PER_ELEMENT;
  17192. c.vertexAttribPointer(b.ab, 2, c.FLOAT, !1, a, 0);
  17193. c.vertexAttribPointer(b.ne, 4, c.UNSIGNED_BYTE, !0, a, 8);
  17194. c.vertexAttribPointer(b.Ed, 2, c.FLOAT, !1, a, 12);
  17195. c.drawArrays(c.TRIANGLES, 0, 3 * this.Na.length);
  17196. b.Xf()
  17197. },
  17198. Lp: function(f) {
  17199. var a = this.Na;
  17200. if (a.length + f > this.Dm) {
  17201. var c = b.Kb.BYTES_PER_ELEMENT;
  17202. this.Dm += Math.max(this.Dm, f);
  17203. if (null == a || 0 === a.length) {
  17204. this.Na = [], this.vi = new ArrayBuffer(c * this.Dm), this.zH = new Uint8Array(this.vi)
  17205. } else {
  17206. f = [];
  17207. for (var d = new ArrayBuffer(c * this.Dm), e = 0; e < a.length; e++) {
  17208. f[e] = new b.Kb(a[e].a, a[e].b, a[e].c, d, e * c)
  17209. }
  17210. this.zH = new Uint8Array(d);
  17211. this.vi = d;
  17212. this.Na = f
  17213. }
  17214. }
  17215. },
  17216. PA: function(f, g, a) {
  17217. a = a || this.md();
  17218. null == a.a && (a.a = 255);
  17219. var c = {
  17220. r: 0 | a.r,
  17221. g: 0 | a.g,
  17222. b: 0 | a.b,
  17223. a: 0 | a.a
  17224. };
  17225. a = {
  17226. vertices: {
  17227. x: f.x - g,
  17228. y: f.y - g
  17229. },
  17230. colors: c,
  17231. texCoords: {
  17232. u: -1,
  17233. v: -1
  17234. }
  17235. };
  17236. var d = {
  17237. vertices: {
  17238. x: f.x - g,
  17239. y: f.y + g
  17240. },
  17241. colors: c,
  17242. texCoords: {
  17243. u: -1,
  17244. v: 1
  17245. }
  17246. },
  17247. e = {
  17248. vertices: {
  17249. x: f.x + g,
  17250. y: f.y + g
  17251. },
  17252. colors: c,
  17253. texCoords: {
  17254. u: 1,
  17255. v: 1
  17256. }
  17257. };
  17258. f = {
  17259. vertices: {
  17260. x: f.x + g,
  17261. y: f.y - g
  17262. },
  17263. colors: c,
  17264. texCoords: {
  17265. u: 1,
  17266. v: -1
  17267. }
  17268. };
  17269. this.Lp(6);
  17270. this.Na.push(new b.Kb(a, d, e, this.vi, this.Na.length * b.Kb.BYTES_PER_ELEMENT));
  17271. this.Na.push(new b.Kb(a, e, f, this.vi, this.Na.length * b.Kb.BYTES_PER_ELEMENT));
  17272. this.Ka = !0
  17273. },
  17274. CT: function(f, a, c) {
  17275. if (f && 0 !== f.length) {
  17276. c = c || this.md();
  17277. null == c.a && (c.a = 255);
  17278. for (var d = 0, e = f.length; d < e; d++) {
  17279. this.PA(f[d], a, c)
  17280. }
  17281. }
  17282. },
  17283. SA: function(n, r, s, v) {
  17284. v = v || this.md();
  17285. null == v.a && (v.a = 255);
  17286. s = s || 0.5 * this.Cc;
  17287. this.Lp(18);
  17288. v = {
  17289. r: 0 | v.r,
  17290. g: 0 | v.g,
  17291. b: 0 | v.b,
  17292. a: 0 | v.a
  17293. };
  17294. var a = b.Ud(n);
  17295. r = b.Ud(r);
  17296. n = b.Jr(b.Co(b.Vb(r, a)));
  17297. var c = b.Co(n),
  17298. e = b.Xc(n, s);
  17299. s = b.Xc(c, s);
  17300. var t = b.Rd(r, b.Vb(e, s)),
  17301. u = b.Vb(r, e),
  17302. d = b.Rd(r, e),
  17303. m = b.Vb(a, e),
  17304. p = b.Rd(a, e),
  17305. g = b.Vb(a, b.Vb(e, s)),
  17306. a = b.Rd(a, b.Rd(e, s)),
  17307. f = b.Kb.BYTES_PER_ELEMENT,
  17308. k = this.vi,
  17309. h = this.Na;
  17310. h.push(new b.Kb({
  17311. vertices: b.Vb(r, b.Rd(e, s)),
  17312. colors: v,
  17313. texCoords: b.za(b.nf(b.Rd(n, c)))
  17314. }, {
  17315. vertices: t,
  17316. colors: v,
  17317. texCoords: b.za(b.Vb(n, c))
  17318. }, {
  17319. vertices: u,
  17320. colors: v,
  17321. texCoords: b.za(b.nf(n))
  17322. }, k, h.length * f));
  17323. h.push(new b.Kb({
  17324. vertices: d,
  17325. colors: v,
  17326. texCoords: b.za(n)
  17327. }, {
  17328. vertices: t,
  17329. colors: v,
  17330. texCoords: b.za(b.Vb(n, c))
  17331. }, {
  17332. vertices: u,
  17333. colors: v,
  17334. texCoords: b.za(b.nf(n))
  17335. }, k, h.length * f));
  17336. h.push(new b.Kb({
  17337. vertices: d,
  17338. colors: v,
  17339. texCoords: b.za(n)
  17340. }, {
  17341. vertices: m,
  17342. colors: v,
  17343. texCoords: b.za(b.nf(n))
  17344. }, {
  17345. vertices: u,
  17346. colors: v,
  17347. texCoords: b.za(b.nf(n))
  17348. }, k, h.length * f));
  17349. h.push(new b.Kb({
  17350. vertices: d,
  17351. colors: v,
  17352. texCoords: b.za(n)
  17353. }, {
  17354. vertices: m,
  17355. colors: v,
  17356. texCoords: b.za(b.nf(n))
  17357. }, {
  17358. vertices: p,
  17359. colors: v,
  17360. texCoords: b.za(n)
  17361. }, k, h.length * f));
  17362. h.push(new b.Kb({
  17363. vertices: g,
  17364. colors: v,
  17365. texCoords: b.za(b.Vb(c, n))
  17366. }, {
  17367. vertices: m,
  17368. colors: v,
  17369. texCoords: b.za(b.nf(n))
  17370. }, {
  17371. vertices: p,
  17372. colors: v,
  17373. texCoords: b.za(n)
  17374. }, k, h.length * f));
  17375. h.push(new b.Kb({
  17376. vertices: g,
  17377. colors: v,
  17378. texCoords: b.za(b.Vb(c, n))
  17379. }, {
  17380. vertices: a,
  17381. colors: v,
  17382. texCoords: b.za(b.Rd(n, c))
  17383. }, {
  17384. vertices: p,
  17385. colors: v,
  17386. texCoords: b.za(n)
  17387. }, k, h.length * f));
  17388. this.Ka = !0
  17389. },
  17390. Tf: function(y, a, c, d) {
  17391. if (null == a) {
  17392. this.mt(y, c, d, !0)
  17393. } else {
  17394. null == a.a && (a.a = 255);
  17395. null == d.a && (d.a = 255);
  17396. c = null == c ? this.Cc : c;
  17397. c *= 0.5;
  17398. a = {
  17399. r: 0 | a.r,
  17400. g: 0 | a.g,
  17401. b: 0 | a.b,
  17402. a: 0 | a.a
  17403. };
  17404. d = {
  17405. r: 0 | d.r,
  17406. g: 0 | d.g,
  17407. b: 0 | d.b,
  17408. a: 0 | d.a
  17409. };
  17410. var e = [],
  17411. f, g, h, k, m = y.length;
  17412. for (f = 0; f < m; f++) {
  17413. g = b.Ud(y[(f - 1 + m) % m]);
  17414. h = b.Ud(y[f]);
  17415. k = b.Ud(y[(f + 1) % m]);
  17416. var n = b.Jr(b.Co(b.Vb(h, g)));
  17417. h = b.Jr(b.Co(b.Vb(k, h)));
  17418. e[f] = {
  17419. offset: b.Xc(b.Rd(n, h), 1 / (b.VK(n, h) + 1)),
  17420. wv: h
  17421. }
  17422. }
  17423. n = 0 < c;
  17424. this.Lp(3 * (3 * m - 2));
  17425. var p = b.Kb.BYTES_PER_ELEMENT,
  17426. s = this.vi,
  17427. r = this.Na,
  17428. u = !1 == n ? 0.5 : 0;
  17429. for (f = 0; f < m - 2; f++) {
  17430. g = b.Vb(b.Ud(y[0]), b.Xc(e[0].offset, u)), h = b.Vb(b.Ud(y[f + 1]), b.Xc(e[f + 1].offset, u)), k = b.Vb(b.Ud(y[f + 2]), b.Xc(e[f + 2].offset, u)), r.push(new b.Kb({
  17431. vertices: g,
  17432. colors: a,
  17433. texCoords: b.za({
  17434. x: 0,
  17435. y: 0
  17436. })
  17437. }, {
  17438. vertices: h,
  17439. colors: a,
  17440. texCoords: b.za({
  17441. x: 0,
  17442. y: 0
  17443. })
  17444. }, {
  17445. vertices: k,
  17446. colors: a,
  17447. texCoords: b.za({
  17448. x: 0,
  17449. y: 0
  17450. })
  17451. }, s, r.length * p))
  17452. }
  17453. for (f = 0; f < m; f++) {
  17454. u = (f + 1) % m;
  17455. g = b.Ud(y[f]);
  17456. h = b.Ud(y[u]);
  17457. k = e[f].wv;
  17458. var t = e[f].offset,
  17459. v = e[u].offset,
  17460. u = n ? b.Vb(g, b.Xc(t, c)) : b.Vb(g, b.Xc(t, 0.5)),
  17461. x = n ? b.Vb(h, b.Xc(v, c)) : b.Vb(h, b.Xc(v, 0.5));
  17462. g = n ? b.Rd(g, b.Xc(t, c)) : b.Rd(g, b.Xc(t, 0.5));
  17463. h = n ? b.Rd(h, b.Xc(v, c)) : b.Rd(h, b.Xc(v, 0.5));
  17464. n ? (r.push(new b.Kb({
  17465. vertices: u,
  17466. colors: d,
  17467. texCoords: b.za(b.nf(k))
  17468. }, {
  17469. vertices: x,
  17470. colors: d,
  17471. texCoords: b.za(b.nf(k))
  17472. }, {
  17473. vertices: h,
  17474. colors: d,
  17475. texCoords: b.za(k)
  17476. }, s, r.length * p)), r.push(new b.Kb({
  17477. vertices: u,
  17478. colors: d,
  17479. texCoords: b.za(b.nf(k))
  17480. }, {
  17481. vertices: g,
  17482. colors: d,
  17483. texCoords: b.za(k)
  17484. }, {
  17485. vertices: h,
  17486. colors: d,
  17487. texCoords: b.za(k)
  17488. }, s, r.length * p))) : (r.push(new b.Kb({
  17489. vertices: u,
  17490. colors: a,
  17491. texCoords: b.za({
  17492. x: 0,
  17493. y: 0
  17494. })
  17495. }, {
  17496. vertices: x,
  17497. colors: a,
  17498. texCoords: b.za({
  17499. x: 0,
  17500. y: 0
  17501. })
  17502. }, {
  17503. vertices: h,
  17504. colors: a,
  17505. texCoords: b.za(k)
  17506. }, s, r.length * p)), r.push(new b.Kb({
  17507. vertices: u,
  17508. colors: a,
  17509. texCoords: b.za({
  17510. x: 0,
  17511. y: 0
  17512. })
  17513. }, {
  17514. vertices: g,
  17515. colors: a,
  17516. texCoords: b.za(k)
  17517. }, {
  17518. vertices: h,
  17519. colors: a,
  17520. texCoords: b.za(k)
  17521. }, s, r.length * p)))
  17522. }
  17523. this.Ka = !0
  17524. }
  17525. },
  17526. mt: function(n, r, s, v) {
  17527. r = null == r ? this.Cc : r;
  17528. s = s || this.Gd;
  17529. null == s.a && (s.a = 255);
  17530. r *= 0.5;
  17531. if (!(0 >= r)) {
  17532. s = {
  17533. r: 0 | s.r,
  17534. g: 0 | s.g,
  17535. b: 0 | s.b,
  17536. a: 0 | s.a
  17537. };
  17538. var a = [],
  17539. c, e, t, u, d = n.length;
  17540. for (c = 0; c < d; c++) {
  17541. e = b.Ud(n[(c - 1 + d) % d]);
  17542. t = b.Ud(n[c]);
  17543. u = b.Ud(n[(c + 1) % d]);
  17544. var m = b.Jr(b.Co(b.Vb(t, e)));
  17545. t = b.Jr(b.Co(b.Vb(u, t)));
  17546. a[c] = {
  17547. offset: b.Xc(b.Rd(m, t), 1 / (b.VK(m, t) + 1)),
  17548. wv: t
  17549. }
  17550. }
  17551. this.Lp(3 * (3 * d - 2));
  17552. u = b.Kb.BYTES_PER_ELEMENT;
  17553. var m = this.vi,
  17554. p = this.Na;
  17555. v = v ? d : d - 1;
  17556. for (c = 0; c < v; c++) {
  17557. var g = (c + 1) % d;
  17558. e = b.Ud(n[c]);
  17559. t = b.Ud(n[g]);
  17560. var f = a[c].wv,
  17561. k = a[c].offset,
  17562. g = a[g].offset,
  17563. h = b.Vb(e, b.Xc(k, r));
  17564. e = b.Rd(e, b.Xc(k, r));
  17565. k = b.Rd(t, b.Xc(g, r));
  17566. p.push(new b.Kb({
  17567. vertices: h,
  17568. colors: s,
  17569. texCoords: b.za(b.nf(f))
  17570. }, {
  17571. vertices: b.Vb(t, b.Xc(g, r)),
  17572. colors: s,
  17573. texCoords: b.za(b.nf(f))
  17574. }, {
  17575. vertices: k,
  17576. colors: s,
  17577. texCoords: b.za(f)
  17578. }, m, p.length * u));
  17579. p.push(new b.Kb({
  17580. vertices: h,
  17581. colors: s,
  17582. texCoords: b.za(b.nf(f))
  17583. }, {
  17584. vertices: e,
  17585. colors: s,
  17586. texCoords: b.za(f)
  17587. }, {
  17588. vertices: k,
  17589. colors: s,
  17590. texCoords: b.za(f)
  17591. }, m, p.length * u))
  17592. }
  17593. this.Ka = !0
  17594. }
  17595. },
  17596. clear: function() {
  17597. this.Na.length = 0;
  17598. this.Ka = !0
  17599. },
  17600. Fd: function() {
  17601. return new b.Ya.F(this)
  17602. }
  17603. });
  17604. b.Ya = b.ua === b.Lb ? b.FL : b.EL;
  17605. b.Ya.create = function() {
  17606. return new b.Ya
  17607. };
  17608. b.kj = function(a) {
  17609. this.type = a;
  17610. this.fillColor = this.bg = null;
  17611. this.lineWidth = 0;
  17612. this.Ji = null;
  17613. this.lineCap = "butt";
  17614. this.bk = this.EB = this.pv = !1
  17615. };
  17616. b.Ya.oD = 0;
  17617. b.Ya.WN = 1;
  17618. b.Ya.fj = 2;
  17619. b.Ya.A = function(a) {
  17620. b.f.A.call(this, a);
  17621. this.Db = !0;
  17622. this.O = this.Gd = this.Na = null
  17623. };
  17624. b.Ya.A.prototype = Object.create(b.f.A.prototype);
  17625. b.Ya.A.prototype.constructor = b.Ya.A;
  17626. b.Ya.A.prototype.wb = function(e, f, g) {
  17627. e = e || b.s;
  17628. e.getContext();
  17629. var h = this.p.pc / 255;
  17630. if (0 !== h) {
  17631. e.setTransform(this.ql, f, g);
  17632. e.xr(h);
  17633. this.O && this.O.src === b.SRC_ALPHA && this.O.ya === b.ONE && e.vr("lighter");
  17634. for (var h = this.Na, a = 0, c = h.length; a < c; a++) {
  17635. var d = h[a];
  17636. switch (d.type) {
  17637. case b.Ya.oD:
  17638. this.sP(e, d, f, g);
  17639. break;
  17640. case b.Ya.WN:
  17641. this.uP(e, d, f, g);
  17642. break;
  17643. case b.Ya.fj:
  17644. this.tP(e, d, f, g)
  17645. }
  17646. }
  17647. }
  17648. };
  17649. b.Ya.A.prototype.sP = function(e, f, g, h) {
  17650. var a = f.fillColor,
  17651. c = f.bg[0];
  17652. f = f.lineWidth;
  17653. var d = e.getContext();
  17654. e.Kg("rgba(" + (0 | a.r) + "," + (0 | a.g) + "," + (0 | a.b) + "," + a.a / 255 + ")");
  17655. d.beginPath();
  17656. d.arc(c.x * g, -c.y * h, f * g, 0, 2 * Math.PI, !1);
  17657. d.closePath();
  17658. d.fill()
  17659. };
  17660. b.Ya.A.prototype.uP = function(h, k, m, a) {
  17661. var c = k.Ji,
  17662. d = k.bg[0],
  17663. e = k.bg[1],
  17664. f = k.lineWidth;
  17665. k = k.lineCap;
  17666. var g = h.getContext();
  17667. h.Wv("rgba(" + (0 | c.r) + "," + (0 | c.g) + "," + (0 | c.b) + "," + c.a / 255 + ")");
  17668. g.lineWidth = f * m;
  17669. g.beginPath();
  17670. g.lineCap = k;
  17671. g.moveTo(d.x * m, -d.y * a);
  17672. g.lineTo(e.x * m, -e.y * a);
  17673. g.stroke()
  17674. };
  17675. b.Ya.A.prototype.tP = function(n, a, c, e) {
  17676. var k = a.bg,
  17677. m = a.lineCap;
  17678. if (null != k) {
  17679. var p = a.fillColor,
  17680. r = a.lineWidth,
  17681. t = a.Ji,
  17682. d = a.pv,
  17683. f = a.EB;
  17684. a = a.bk;
  17685. var g = n.getContext(),
  17686. h = k[0];
  17687. g.lineCap = m;
  17688. p && n.Kg("rgba(" + (0 | p.r) + "," + (0 | p.g) + "," + (0 | p.b) + "," + p.a / 255 + ")");
  17689. r && (g.lineWidth = r * c);
  17690. t && n.Wv("rgba(" + (0 | t.r) + "," + (0 | t.g) + "," + (0 | t.b) + "," + t.a / 255 + ")");
  17691. g.beginPath();
  17692. g.moveTo(h.x * c, -h.y * e);
  17693. n = 1;
  17694. for (m = k.length; n < m; n++) {
  17695. g.lineTo(k[n].x * c, -k[n].y * e)
  17696. }
  17697. d && g.closePath();
  17698. f && g.fill();
  17699. a && g.stroke()
  17700. }
  17701. };
  17702. b.Ya.F = function(a) {
  17703. b.f.F.call(this, a);
  17704. this.Db = !0
  17705. };
  17706. b.Ya.F.prototype = Object.create(b.f.F.prototype);
  17707. b.Ya.F.prototype.constructor = b.Ya.F;
  17708. b.Ya.F.prototype.wb = function() {
  17709. var a = this.p;
  17710. b.Vf(a.O.src, a.O.ya);
  17711. this.va.Ub();
  17712. this.va.wg(this.Rc);
  17713. a.fR()
  17714. };
  17715. b.Zl = -1;
  17716. b.Yc = b.Ia.extend({
  17717. originalTarget: null,
  17718. target: null,
  17719. tag: b.Zl,
  17720. ctor: function() {
  17721. this.target = this.originalTarget = null;
  17722. this.tag = b.Zl
  17723. },
  17724. copy: function() {
  17725. b.log("copy is deprecated. Please use clone instead.");
  17726. return this.k()
  17727. },
  17728. k: function() {
  17729. var a = new b.Yc;
  17730. a.originalTarget = null;
  17731. a.target = null;
  17732. a.tag = this.tag;
  17733. return a
  17734. },
  17735. Zf: function() {
  17736. return !0
  17737. },
  17738. H: function(a) {
  17739. this.target = this.originalTarget = a
  17740. },
  17741. stop: function() {
  17742. this.target = null
  17743. },
  17744. step: function() {
  17745. b.log("[Action step]. override me")
  17746. },
  17747. update: function() {
  17748. b.log("[Action update]. override me")
  17749. },
  17750. Z5: function() {
  17751. return this.target
  17752. },
  17753. gk: function(a) {
  17754. this.target = a
  17755. },
  17756. B5: function() {
  17757. return this.originalTarget
  17758. },
  17759. qaa: function(a) {
  17760. this.originalTarget = a
  17761. },
  17762. oB: function() {
  17763. return this.tag
  17764. },
  17765. Xv: function(a) {
  17766. this.tag = a
  17767. },
  17768. Kv: function() {},
  17769. uc: function() {}
  17770. });
  17771. b.action = function() {
  17772. return new b.Yc
  17773. };
  17774. b.Yc.create = b.action;
  17775. b.Mh = b.Yc.extend({
  17776. q: 0,
  17777. ctor: function() {
  17778. b.Yc.prototype.ctor.call(this);
  17779. this.q = 0
  17780. },
  17781. gB: function() {
  17782. return this.q * (this.Of || 1)
  17783. },
  17784. uX: function(a) {
  17785. this.q = a
  17786. },
  17787. reverse: function() {
  17788. b.log("cocos2d: FiniteTimeAction#reverse: Implement me");
  17789. return null
  17790. },
  17791. k: function() {
  17792. return new b.Mh
  17793. }
  17794. });
  17795. b.Ds = b.Yc.extend({
  17796. Kd: 0,
  17797. Ta: null,
  17798. ctor: function(c, a) {
  17799. b.Yc.prototype.ctor.call(this);
  17800. this.Kd = 0;
  17801. this.Ta = null;
  17802. c && this.$(c, a)
  17803. },
  17804. iV: function() {
  17805. return this.Kd
  17806. },
  17807. VX: function(a) {
  17808. this.Kd = a
  17809. },
  17810. $: function(c, a) {
  17811. if (!c) {
  17812. throw "cc.Speed.initWithAction(): action must be non nil"
  17813. }
  17814. this.Ta = c;
  17815. this.Kd = a;
  17816. return !0
  17817. },
  17818. k: function() {
  17819. var a = new b.Ds;
  17820. a.$(this.Ta.k(), this.Kd);
  17821. return a
  17822. },
  17823. H: function(a) {
  17824. b.Yc.prototype.H.call(this, a);
  17825. this.Ta.H(a)
  17826. },
  17827. stop: function() {
  17828. this.Ta.stop();
  17829. b.Yc.prototype.stop.call(this)
  17830. },
  17831. step: function(a) {
  17832. this.Ta.step(a * this.Kd)
  17833. },
  17834. Zf: function() {
  17835. return this.Ta.Zf()
  17836. },
  17837. reverse: function() {
  17838. return new b.Ds(this.Ta.reverse(), this.Kd)
  17839. },
  17840. rK: function(a) {
  17841. this.Ta !== a && (this.Ta = a)
  17842. },
  17843. jB: function() {
  17844. return this.Ta
  17845. }
  17846. });
  17847. b.speed = function(c, a) {
  17848. return new b.Ds(c, a)
  17849. };
  17850. b.Ds.create = b.speed;
  17851. b.vw = b.Yc.extend({
  17852. Rm: null,
  17853. Bm: !1,
  17854. at: !1,
  17855. Bt: null,
  17856. Pp: null,
  17857. qA: null,
  17858. Jl: 0,
  17859. Pl: 0,
  17860. Xl: 0,
  17861. wl: 0,
  17862. ctor: function(c, a) {
  17863. b.Yc.prototype.ctor.call(this);
  17864. this.Rm = null;
  17865. this.at = this.Bm = !1;
  17866. this.Pp = this.Bt = null;
  17867. this.wl = this.Xl = this.Pl = this.Jl = 0;
  17868. this.qA = b.rect(0, 0, 0, 0);
  17869. c && (a ? this.fo(c, a) : this.fo(c))
  17870. },
  17871. k: function() {
  17872. var c = new b.vw,
  17873. a = this.qA;
  17874. c.fo(this.Rm, new b.Nh(a.x, a.y, a.width, a.height));
  17875. return c
  17876. },
  17877. V6: function() {
  17878. return this.Bm
  17879. },
  17880. B$: function(a) {
  17881. this.Bm = a
  17882. },
  17883. fo: function(d, a) {
  17884. if (!d) {
  17885. throw "cc.Follow.initWithAction(): followedNode must be non nil"
  17886. }
  17887. a = a || b.rect(0, 0, 0, 0);
  17888. this.Rm = d;
  17889. this.qA = a;
  17890. this.Bm = !b.lz(a);
  17891. this.at = !1;
  17892. var c = b.I.Ea();
  17893. this.Pp = b.d(c.width, c.height);
  17894. this.Bt = b.Li(this.Pp, 0.5);
  17895. this.Bm && (this.Jl = -(a.x + a.width - this.Pp.x), this.Pl = -a.x, this.Xl = -a.y, this.wl = -(a.y + a.height - this.Pp.y), this.Pl < this.Jl && (this.Pl = this.Jl = (this.Jl + this.Pl) / 2), this.Xl < this.wl && (this.Xl = this.wl = (this.Xl + this.wl) / 2), this.Xl === this.wl && this.Jl === this.Pl && (this.at = !0));
  17896. return !0
  17897. },
  17898. step: function() {
  17899. var c = this.Rm.x,
  17900. a = this.Rm.y,
  17901. c = this.Bt.x - c,
  17902. a = this.Bt.y - a;
  17903. this.target.i.C = 0;
  17904. this.Bm ? this.at || this.target.G(b.Kq(c, this.Jl, this.Pl), b.Kq(a, this.wl, this.Xl)) : this.target.G(c, a)
  17905. },
  17906. Zf: function() {
  17907. return !this.Rm.running
  17908. },
  17909. stop: function() {
  17910. this.target = null;
  17911. b.Yc.prototype.stop.call(this)
  17912. }
  17913. });
  17914. b.fU = function(c, a) {
  17915. return new b.vw(c, a)
  17916. };
  17917. b.vw.create = b.fU;
  17918. b.D = b.Mh.extend({
  17919. Ab: 0,
  17920. vt: !1,
  17921. Af: null,
  17922. Of: 1,
  17923. jq: !1,
  17924. fl: !1,
  17925. Kd: 1,
  17926. nq: !1,
  17927. ctor: function(a) {
  17928. this.Of = this.Kd = 1;
  17929. this.jq = !1;
  17930. this.MAX_VALUE = 2;
  17931. this.nq = this.fl = !1;
  17932. b.Mh.prototype.ctor.call(this);
  17933. void 0 !== a && this.n(a)
  17934. },
  17935. W4: function() {
  17936. return this.Ab
  17937. },
  17938. n: function(a) {
  17939. this.q = 0 === a ? b.ps : a;
  17940. this.Ab = 0;
  17941. return this.vt = !0
  17942. },
  17943. Zf: function() {
  17944. return this.Ab >= this.q
  17945. },
  17946. qa: function(a) {
  17947. a.jq = this.jq;
  17948. a.Kd = this.Kd;
  17949. a.Of = this.Of;
  17950. a.Af = this.Af;
  17951. a.nq = this.nq;
  17952. a.fl = this.fl
  17953. },
  17954. Jd: function(c) {
  17955. if (this.Af) {
  17956. c.Af = [];
  17957. for (var a = 0; a < this.Af.length; a++) {
  17958. c.Af.push(this.Af[a].reverse())
  17959. }
  17960. }
  17961. },
  17962. k: function() {
  17963. var a = new b.D(this.q);
  17964. this.qa(a);
  17965. return a
  17966. },
  17967. Ha: function(c) {
  17968. this.Af ? this.Af.length = 0 : this.Af = [];
  17969. for (var a = 0; a < arguments.length; a++) {
  17970. this.Af.push(arguments[a])
  17971. }
  17972. return this
  17973. },
  17974. Lc: function(e) {
  17975. var a = this.Af;
  17976. if (!a || 0 === a.length) {
  17977. return e
  17978. }
  17979. for (var c = 0, d = a.length; c < d; c++) {
  17980. e = a[c].Ha(e)
  17981. }
  17982. return e
  17983. },
  17984. step: function(a) {
  17985. this.vt ? (this.vt = !1, this.Ab = 0) : this.Ab += a;
  17986. a = this.Ab / (1.192092896e-7 < this.q ? this.q : 1.192092896e-7);
  17987. a = 1 > a ? a : 1;
  17988. this.update(0 < a ? a : 0);
  17989. this.fl && 1 < this.Of && this.Zf() && (this.jq || this.Of--, this.H(this.target), this.step(this.Ab - this.q))
  17990. },
  17991. H: function(a) {
  17992. b.Yc.prototype.H.call(this, a);
  17993. this.Ab = 0;
  17994. this.vt = !0
  17995. },
  17996. reverse: function() {
  17997. b.log("cc.IntervalAction: reverse not implemented.");
  17998. return null
  17999. },
  18000. y$: function() {
  18001. b.log("cc.ActionInterval.setAmplitudeRate(): it should be overridden in subclass.")
  18002. },
  18003. v4: function() {
  18004. b.log("cc.ActionInterval.getAmplitudeRate(): it should be overridden in subclass.");
  18005. return 0
  18006. },
  18007. speed: function(a) {
  18008. if (0 >= a) {
  18009. return b.log("The speed parameter error"), this
  18010. }
  18011. this.nq = !0;
  18012. this.Kd *= a;
  18013. return this
  18014. },
  18015. iV: function() {
  18016. return this.Kd
  18017. },
  18018. VX: function(a) {
  18019. this.Kd = a;
  18020. return this
  18021. },
  18022. repeat: function(a) {
  18023. a = Math.round(a);
  18024. if (isNaN(a) || 1 > a) {
  18025. return b.log("The repeat parameter error"), this
  18026. }
  18027. this.fl = !0;
  18028. this.Of *= a;
  18029. return this
  18030. },
  18031. VB: function() {
  18032. this.fl = !0;
  18033. this.Of = this.MAX_VALUE;
  18034. this.jq = !0;
  18035. return this
  18036. }
  18037. });
  18038. b.cS = function(a) {
  18039. return new b.D(a)
  18040. };
  18041. b.D.create = b.cS;
  18042. b.yc = b.D.extend({
  18043. Ug: null,
  18044. mH: null,
  18045. Yp: 0,
  18046. ctor: function(f) {
  18047. b.D.prototype.ctor.call(this);
  18048. this.Ug = [];
  18049. var a = f instanceof Array ? f : arguments,
  18050. c = a.length - 1;
  18051. 0 <= c && null == a[c] && b.log("parameters should not be ending with null in Javascript");
  18052. if (0 <= c) {
  18053. for (var d = a[0], e = 1; e < c; e++) {
  18054. a[e] && (d = b.yc.Rh(d, a[e]))
  18055. }
  18056. this.Il(d, a[c])
  18057. }
  18058. },
  18059. Il: function(c, a) {
  18060. if (!c || !a) {
  18061. throw "cc.Sequence.initWithTwoActions(): arguments must all be non nil"
  18062. }
  18063. this.n(c.q + a.q);
  18064. this.Ug[0] = c;
  18065. this.Ug[1] = a;
  18066. return !0
  18067. },
  18068. k: function() {
  18069. var a = new b.yc;
  18070. this.qa(a);
  18071. a.Il(this.Ug[0].k(), this.Ug[1].k());
  18072. return a
  18073. },
  18074. H: function(a) {
  18075. b.D.prototype.H.call(this, a);
  18076. this.mH = this.Ug[0].q / this.q;
  18077. this.Yp = -1
  18078. },
  18079. stop: function() {
  18080. -1 !== this.Yp && this.Ug[this.Yp].stop();
  18081. b.Yc.prototype.stop.call(this)
  18082. },
  18083. update: function(f) {
  18084. var a = 0,
  18085. c = this.mH,
  18086. d = this.Ug,
  18087. e = this.Yp;
  18088. f = this.Lc(f);
  18089. f < c ? (f = 0 !== c ? f / c : 1, 0 === a && 1 === e && (d[1].update(0), d[1].stop())) : (a = 1, f = 1 === c ? 1 : (f - c) / (1 - c), -1 === e && (d[0].H(this.target), d[0].update(1), d[0].stop()), e || (d[0].update(1), d[0].stop()));
  18090. d = d[a];
  18091. e === a && d.Zf() || (e !== a && d.H(this.target), f *= d.Of, d.update(1 < f ? f % 1 : f), this.Yp = a)
  18092. },
  18093. reverse: function() {
  18094. var a = b.yc.Rh(this.Ug[1].reverse(), this.Ug[0].reverse());
  18095. this.qa(a);
  18096. this.Jd(a);
  18097. return a
  18098. }
  18099. });
  18100. b.gb = function(f) {
  18101. var g = f instanceof Array ? f : arguments;
  18102. 0 < g.length && null == g[g.length - 1] && b.log("parameters should not be ending with null in Javascript");
  18103. for (var a, c, d, e; g && 0 < g.length;) {
  18104. for (c = Array.prototype.shift.call(g), e = c.Of || 1, c.fl = !1, c.Of = 1, d = 0, a || (a = c, d = 1), d; d < e; d++) {
  18105. a = b.yc.Rh(a, c)
  18106. }
  18107. }
  18108. return a
  18109. };
  18110. b.yc.create = b.gb;
  18111. b.yc.Rh = function(d, a) {
  18112. var c = new b.yc;
  18113. c.Il(d, a);
  18114. return c
  18115. };
  18116. b.xs = b.D.extend({
  18117. Nf: 0,
  18118. Pj: 0,
  18119. Qy: 0,
  18120. eE: !1,
  18121. Ta: null,
  18122. ctor: function(c, a) {
  18123. b.D.prototype.ctor.call(this);
  18124. void 0 !== a && this.$(c, a)
  18125. },
  18126. $: function(c, a) {
  18127. return this.n(c.q * a) ? (this.Nf = a, this.Ta = c, c instanceof b.Lg && (this.eE = !0, this.Nf -= 1), this.Pj = 0, !0) : !1
  18128. },
  18129. k: function() {
  18130. var a = new b.xs;
  18131. this.qa(a);
  18132. a.$(this.Ta.k(), this.Nf);
  18133. return a
  18134. },
  18135. H: function(a) {
  18136. this.Pj = 0;
  18137. this.Qy = this.Ta.q / this.q;
  18138. b.D.prototype.H.call(this, a);
  18139. this.Ta.H(a)
  18140. },
  18141. stop: function() {
  18142. this.Ta.stop();
  18143. b.Yc.prototype.stop.call(this)
  18144. },
  18145. update: function(f) {
  18146. f = this.Lc(f);
  18147. var a = this.Ta,
  18148. c = this.q,
  18149. d = this.Nf,
  18150. e = this.Qy;
  18151. if (f >= e) {
  18152. for (; f > e && this.Pj < d;) {
  18153. a.update(1), this.Pj++, a.stop(), a.H(this.target), this.Qy = e += a.q / c
  18154. }
  18155. 1 <= f && this.Pj < d && this.Pj++;
  18156. this.eE || (this.Pj === d ? (a.update(1), a.stop()) : a.update(f - (e - a.q / c)))
  18157. } else {
  18158. a.update(f * d % 1)
  18159. }
  18160. },
  18161. Zf: function() {
  18162. return this.Pj === this.Nf
  18163. },
  18164. reverse: function() {
  18165. var a = new b.xs(this.Ta.reverse(), this.Nf);
  18166. this.qa(a);
  18167. this.Jd(a);
  18168. return a
  18169. },
  18170. rK: function(a) {
  18171. this.Ta !== a && (this.Ta = a)
  18172. },
  18173. jB: function() {
  18174. return this.Ta
  18175. }
  18176. });
  18177. b.repeat = function(c, a) {
  18178. return new b.xs(c, a)
  18179. };
  18180. b.xs.create = b.repeat;
  18181. b.km = b.D.extend({
  18182. Ta: null,
  18183. ctor: function(a) {
  18184. b.D.prototype.ctor.call(this);
  18185. this.Ta = null;
  18186. a && this.$(a)
  18187. },
  18188. $: function(a) {
  18189. if (!a) {
  18190. throw "cc.RepeatForever.initWithAction(): action must be non null"
  18191. }
  18192. this.Ta = a;
  18193. return !0
  18194. },
  18195. k: function() {
  18196. var a = new b.km;
  18197. this.qa(a);
  18198. a.$(this.Ta.k());
  18199. return a
  18200. },
  18201. H: function(a) {
  18202. b.D.prototype.H.call(this, a);
  18203. this.Ta.H(a)
  18204. },
  18205. step: function(c) {
  18206. var a = this.Ta;
  18207. a.step(c);
  18208. a.Zf() && (a.H(this.target), a.step(a.Ab - a.q))
  18209. },
  18210. Zf: function() {
  18211. return !1
  18212. },
  18213. reverse: function() {
  18214. var a = new b.km(this.Ta.reverse());
  18215. this.qa(a);
  18216. this.Jd(a);
  18217. return a
  18218. },
  18219. rK: function(a) {
  18220. this.Ta !== a && (this.Ta = a)
  18221. },
  18222. jB: function() {
  18223. return this.Ta
  18224. }
  18225. });
  18226. b.VB = function(a) {
  18227. return new b.km(a)
  18228. };
  18229. b.km.create = b.VB;
  18230. b.Oh = b.D.extend({
  18231. ei: null,
  18232. wi: null,
  18233. ctor: function(f) {
  18234. b.D.prototype.ctor.call(this);
  18235. this.wi = this.ei = null;
  18236. var a = f instanceof Array ? f : arguments,
  18237. c = a.length - 1;
  18238. 0 <= c && null == a[c] && b.log("parameters should not be ending with null in Javascript");
  18239. if (0 <= c) {
  18240. for (var d = a[0], e = 1; e < c; e++) {
  18241. a[e] && (d = b.Oh.Rh(d, a[e]))
  18242. }
  18243. this.Il(d, a[c])
  18244. }
  18245. },
  18246. Il: function(f, a) {
  18247. if (!f || !a) {
  18248. throw "cc.Spawn.initWithTwoActions(): arguments must all be non null"
  18249. }
  18250. var c = !1,
  18251. d = f.q,
  18252. e = a.q;
  18253. this.n(Math.max(d, e)) && (this.ei = f, this.wi = a, d > e ? this.wi = b.yc.Rh(a, b.vd(d - e)) : d < e && (this.ei = b.yc.Rh(f, b.vd(e - d))), c = !0);
  18254. return c
  18255. },
  18256. k: function() {
  18257. var a = new b.Oh;
  18258. this.qa(a);
  18259. a.Il(this.ei.k(), this.wi.k());
  18260. return a
  18261. },
  18262. H: function(a) {
  18263. b.D.prototype.H.call(this, a);
  18264. this.ei.H(a);
  18265. this.wi.H(a)
  18266. },
  18267. stop: function() {
  18268. this.ei.stop();
  18269. this.wi.stop();
  18270. b.Yc.prototype.stop.call(this)
  18271. },
  18272. update: function(a) {
  18273. a = this.Lc(a);
  18274. this.ei && this.ei.update(a);
  18275. this.wi && this.wi.update(a)
  18276. },
  18277. reverse: function() {
  18278. var a = b.Oh.Rh(this.ei.reverse(), this.wi.reverse());
  18279. this.qa(a);
  18280. this.Jd(a);
  18281. return a
  18282. }
  18283. });
  18284. b.hk = function(e) {
  18285. var a = e instanceof Array ? e : arguments;
  18286. 0 < a.length && null == a[a.length - 1] && b.log("parameters should not be ending with null in Javascript");
  18287. for (var c = a[0], d = 1; d < a.length; d++) {
  18288. null != a[d] && (c = b.Oh.Rh(c, a[d]))
  18289. }
  18290. return c
  18291. };
  18292. b.Oh.create = b.hk;
  18293. b.Oh.Rh = function(d, a) {
  18294. var c = new b.Oh;
  18295. c.Il(d, a);
  18296. return c
  18297. };
  18298. b.Sw = b.D.extend({
  18299. nt: 0,
  18300. oq: 0,
  18301. DE: 0,
  18302. Xx: 0,
  18303. vn: 0,
  18304. EE: 0,
  18305. ctor: function(d, a, c) {
  18306. b.D.prototype.ctor.call(this);
  18307. void 0 !== a && this.n(d, a, c)
  18308. },
  18309. n: function(d, a, c) {
  18310. return b.D.prototype.n.call(this, d) ? (this.nt = a || 0, this.Xx = c || this.nt, !0) : !1
  18311. },
  18312. k: function() {
  18313. var a = new b.Sw;
  18314. this.qa(a);
  18315. a.n(this.q, this.nt, this.Xx);
  18316. return a
  18317. },
  18318. H: function(d) {
  18319. b.D.prototype.H.call(this, d);
  18320. var a = d.rotationX % 360,
  18321. c = this.nt - a;
  18322. 180 < c && (c -= 360); - 180 > c && (c += 360);
  18323. this.oq = a;
  18324. this.DE = c;
  18325. this.vn = d.rotationY % 360;
  18326. d = this.Xx - this.vn;
  18327. 180 < d && (d -= 360); - 180 > d && (d += 360);
  18328. this.EE = d
  18329. },
  18330. reverse: function() {
  18331. b.log("cc.RotateTo.reverse(): it should be overridden in subclass.")
  18332. },
  18333. update: function(a) {
  18334. a = this.Lc(a);
  18335. this.target && (this.target.rotationX = this.oq + this.DE * a, this.target.rotationY = this.vn + this.EE * a)
  18336. }
  18337. });
  18338. b.dX = function(d, a, c) {
  18339. return new b.Sw(d, a, c)
  18340. };
  18341. b.Sw.create = b.dX;
  18342. b.ip = b.D.extend({
  18343. hg: 0,
  18344. oq: 0,
  18345. Xs: 0,
  18346. vn: 0,
  18347. ctor: function(d, a, c) {
  18348. b.D.prototype.ctor.call(this);
  18349. void 0 !== a && this.n(d, a, c)
  18350. },
  18351. n: function(d, a, c) {
  18352. return b.D.prototype.n.call(this, d) ? (this.hg = a || 0, this.Xs = c || this.hg, !0) : !1
  18353. },
  18354. k: function() {
  18355. var a = new b.ip;
  18356. this.qa(a);
  18357. a.n(this.q, this.hg, this.Xs);
  18358. return a
  18359. },
  18360. H: function(a) {
  18361. b.D.prototype.H.call(this, a);
  18362. this.oq = a.rotationX;
  18363. this.vn = a.rotationY
  18364. },
  18365. update: function(a) {
  18366. a = this.Lc(a);
  18367. this.target && (this.target.rotationX = this.oq + this.hg * a, this.target.rotationY = this.vn + this.Xs * a)
  18368. },
  18369. reverse: function() {
  18370. var a = new b.ip(this.q, -this.hg, -this.Xs);
  18371. this.qa(a);
  18372. this.Jd(a);
  18373. return a
  18374. }
  18375. });
  18376. b.XB = function(d, a, c) {
  18377. return new b.ip(d, a, c)
  18378. };
  18379. b.ip.create = b.XB;
  18380. b.aj = b.D.extend({
  18381. lh: null,
  18382. ic: null,
  18383. qc: null,
  18384. ctor: function(d, a, c) {
  18385. b.D.prototype.ctor.call(this);
  18386. this.lh = b.d(0, 0);
  18387. this.ic = b.d(0, 0);
  18388. this.qc = b.d(0, 0);
  18389. void 0 !== a && this.n(d, a, c)
  18390. },
  18391. n: function(d, a, c) {
  18392. return b.D.prototype.n.call(this, d) ? (void 0 !== a.x && (c = a.y, a = a.x), this.lh.x = a, this.lh.y = c, !0) : !1
  18393. },
  18394. k: function() {
  18395. var a = new b.aj;
  18396. this.qa(a);
  18397. a.n(this.q, this.lh);
  18398. return a
  18399. },
  18400. H: function(c) {
  18401. b.D.prototype.H.call(this, c);
  18402. var a = c.pb();
  18403. c = c.qb();
  18404. this.qc.x = a;
  18405. this.qc.y = c;
  18406. this.ic.x = a;
  18407. this.ic.y = c
  18408. },
  18409. update: function(f) {
  18410. f = this.Lc(f);
  18411. if (this.target) {
  18412. var a = this.lh.x * f;
  18413. f *= this.lh.y;
  18414. var c = this.ic;
  18415. if (b.Xr) {
  18416. var d = this.target.qb(),
  18417. e = this.qc;
  18418. c.x = c.x + this.target.pb() - e.x;
  18419. c.y = c.y + d - e.y;
  18420. a += c.x;
  18421. f += c.y;
  18422. e.x = a;
  18423. e.y = f;
  18424. this.target.G(a, f)
  18425. } else {
  18426. this.target.G(c.x + a, c.y + f)
  18427. }
  18428. }
  18429. },
  18430. reverse: function() {
  18431. var a = new b.aj(this.q, b.d(-this.lh.x, -this.lh.y));
  18432. this.qa(a);
  18433. this.Jd(a);
  18434. return a
  18435. }
  18436. });
  18437. b.moveBy = function(d, a, c) {
  18438. return new b.aj(d, a, c)
  18439. };
  18440. b.aj.create = b.moveBy;
  18441. b.bj = b.aj.extend({
  18442. Pe: null,
  18443. ctor: function(d, a, c) {
  18444. b.aj.prototype.ctor.call(this);
  18445. this.Pe = b.d(0, 0);
  18446. void 0 !== a && this.n(d, a, c)
  18447. },
  18448. n: function(d, a, c) {
  18449. return b.aj.prototype.n.call(this, d, a, c) ? (void 0 !== a.x && (c = a.y, a = a.x), this.Pe.x = a, this.Pe.y = c, !0) : !1
  18450. },
  18451. k: function() {
  18452. var a = new b.bj;
  18453. this.qa(a);
  18454. a.n(this.q, this.Pe);
  18455. return a
  18456. },
  18457. H: function(a) {
  18458. b.aj.prototype.H.call(this, a);
  18459. this.lh.x = this.Pe.x - a.pb();
  18460. this.lh.y = this.Pe.y - a.qb()
  18461. }
  18462. });
  18463. b.moveTo = function(d, a, c) {
  18464. return new b.bj(d, a, c)
  18465. };
  18466. b.bj.create = b.moveTo;
  18467. b.Ck = b.D.extend({
  18468. xg: 0,
  18469. yg: 0,
  18470. qu: 0,
  18471. ru: 0,
  18472. qt: 0,
  18473. rt: 0,
  18474. pe: 0,
  18475. qe: 0,
  18476. ctor: function(d, a, c) {
  18477. b.D.prototype.ctor.call(this);
  18478. void 0 !== c && this.n(d, a, c)
  18479. },
  18480. n: function(e, a, c) {
  18481. var d = !1;
  18482. b.D.prototype.n.call(this, e) && (this.qt = a, this.rt = c, d = !0);
  18483. return d
  18484. },
  18485. k: function() {
  18486. var a = new b.Ck;
  18487. this.qa(a);
  18488. a.n(this.q, this.qt, this.rt);
  18489. return a
  18490. },
  18491. H: function(a) {
  18492. b.D.prototype.H.call(this, a);
  18493. this.qu = a.skewX % 180;
  18494. this.pe = this.qt - this.qu;
  18495. 180 < this.pe && (this.pe -= 360); - 180 > this.pe && (this.pe += 360);
  18496. this.ru = a.skewY % 360;
  18497. this.qe = this.rt - this.ru;
  18498. 180 < this.qe && (this.qe -= 360); - 180 > this.qe && (this.qe += 360)
  18499. },
  18500. update: function(a) {
  18501. a = this.Lc(a);
  18502. this.target.skewX = this.qu + this.pe * a;
  18503. this.target.skewY = this.ru + this.qe * a
  18504. }
  18505. });
  18506. b.mY = function(d, a, c) {
  18507. return new b.Ck(d, a, c)
  18508. };
  18509. b.Ck.create = b.mY;
  18510. b.Cs = b.Ck.extend({
  18511. ctor: function(d, a, c) {
  18512. b.Ck.prototype.ctor.call(this);
  18513. void 0 !== c && this.n(d, a, c)
  18514. },
  18515. n: function(e, a, c) {
  18516. var d = !1;
  18517. b.Ck.prototype.n.call(this, e, a, c) && (this.xg = a, this.yg = c, d = !0);
  18518. return d
  18519. },
  18520. k: function() {
  18521. var a = new b.Cs;
  18522. this.qa(a);
  18523. a.n(this.q, this.xg, this.yg);
  18524. return a
  18525. },
  18526. H: function(a) {
  18527. b.Ck.prototype.H.call(this, a);
  18528. this.pe = this.xg;
  18529. this.qe = this.yg;
  18530. this.qt = this.qu + this.pe;
  18531. this.rt = this.ru + this.qe
  18532. },
  18533. reverse: function() {
  18534. var a = new b.Cs(this.q, -this.xg, -this.yg);
  18535. this.qa(a);
  18536. this.Jd(a);
  18537. return a
  18538. }
  18539. });
  18540. b.lY = function(d, a, c) {
  18541. return new b.Cs(d, a, c)
  18542. };
  18543. b.Cs.create = b.lY;
  18544. b.$i = b.D.extend({
  18545. ic: null,
  18546. Zg: null,
  18547. Tp: 0,
  18548. Xp: 0,
  18549. qc: null,
  18550. ctor: function(f, a, c, d, e) {
  18551. b.D.prototype.ctor.call(this);
  18552. this.ic = b.d(0, 0);
  18553. this.qc = b.d(0, 0);
  18554. this.Zg = b.d(0, 0);
  18555. void 0 !== d && this.n(f, a, c, d, e)
  18556. },
  18557. n: function(f, a, c, d, e) {
  18558. return b.D.prototype.n.call(this, f) ? (void 0 === e && (e = d, d = c, c = a.y, a = a.x), this.Zg.x = a, this.Zg.y = c, this.Tp = d, this.Xp = e, !0) : !1
  18559. },
  18560. k: function() {
  18561. var a = new b.$i;
  18562. this.qa(a);
  18563. a.n(this.q, this.Zg, this.Tp, this.Xp);
  18564. return a
  18565. },
  18566. H: function(c) {
  18567. b.D.prototype.H.call(this, c);
  18568. var a = c.pb();
  18569. c = c.qb();
  18570. this.qc.x = a;
  18571. this.qc.y = c;
  18572. this.ic.x = a;
  18573. this.ic.y = c
  18574. },
  18575. update: function(f) {
  18576. f = this.Lc(f);
  18577. if (this.target) {
  18578. var a = f * this.Xp % 1,
  18579. a = 4 * this.Tp * a * (1 - a),
  18580. a = a + this.Zg.y * f;
  18581. f *= this.Zg.x;
  18582. var c = this.ic;
  18583. if (b.Xr) {
  18584. var d = this.target.qb(),
  18585. e = this.qc;
  18586. c.x = c.x + this.target.pb() - e.x;
  18587. c.y = c.y + d - e.y;
  18588. f += c.x;
  18589. a += c.y;
  18590. e.x = f;
  18591. e.y = a;
  18592. this.target.G(f, a)
  18593. } else {
  18594. this.target.G(c.x + f, c.y + a)
  18595. }
  18596. }
  18597. },
  18598. reverse: function() {
  18599. var a = new b.$i(this.q, b.d(-this.Zg.x, -this.Zg.y), this.Tp, this.Xp);
  18600. this.qa(a);
  18601. this.Jd(a);
  18602. return a
  18603. }
  18604. });
  18605. b.yJ = function(f, a, c, d, e) {
  18606. return new b.$i(f, a, c, d, e)
  18607. };
  18608. b.$i.create = b.yJ;
  18609. b.xw = b.$i.extend({
  18610. Pe: null,
  18611. ctor: function(f, a, c, d, e) {
  18612. b.$i.prototype.ctor.call(this);
  18613. this.Pe = b.d(0, 0);
  18614. void 0 !== d && this.n(f, a, c, d, e)
  18615. },
  18616. n: function(f, a, c, d, e) {
  18617. return b.$i.prototype.n.call(this, f, a, c, d, e) ? (void 0 === e && (c = a.y, a = a.x), this.Pe.x = a, this.Pe.y = c, !0) : !1
  18618. },
  18619. H: function(a) {
  18620. b.$i.prototype.H.call(this, a);
  18621. this.Zg.x = this.Pe.x - this.ic.x;
  18622. this.Zg.y = this.Pe.y - this.ic.y
  18623. },
  18624. k: function() {
  18625. var a = new b.xw;
  18626. this.qa(a);
  18627. a.n(this.q, this.Pe, this.Tp, this.Xp);
  18628. return a
  18629. }
  18630. });
  18631. b.aW = function(f, a, c, d, e) {
  18632. return new b.xw(f, a, c, d, e)
  18633. };
  18634. b.xw.create = b.aW;
  18635. b.eI = function(e, a, c, d) {
  18636. return 0 * Math.pow(1 - d, 3) + 3 * d * Math.pow(1 - d, 2) * e + 3 * Math.pow(d, 2) * (1 - d) * a + Math.pow(d, 3) * c
  18637. };
  18638. b.sk = b.D.extend({
  18639. Ne: null,
  18640. ic: null,
  18641. qc: null,
  18642. ctor: function(c, a) {
  18643. b.D.prototype.ctor.call(this);
  18644. this.Ne = [];
  18645. this.ic = b.d(0, 0);
  18646. this.qc = b.d(0, 0);
  18647. a && this.n(c, a)
  18648. },
  18649. n: function(c, a) {
  18650. return b.D.prototype.n.call(this, c) ? (this.Ne = a, !0) : !1
  18651. },
  18652. k: function() {
  18653. var e = new b.sk;
  18654. this.qa(e);
  18655. for (var a = [], c = 0; c < this.Ne.length; c++) {
  18656. var d = this.Ne[c];
  18657. a.push(b.d(d.x, d.y))
  18658. }
  18659. e.n(this.q, a);
  18660. return e
  18661. },
  18662. H: function(c) {
  18663. b.D.prototype.H.call(this, c);
  18664. var a = c.pb();
  18665. c = c.qb();
  18666. this.qc.x = a;
  18667. this.qc.y = c;
  18668. this.ic.x = a;
  18669. this.ic.y = c
  18670. },
  18671. update: function(f) {
  18672. f = this.Lc(f);
  18673. if (this.target) {
  18674. var a = this.Ne,
  18675. c = b.eI(a[0].x, a[1].x, a[2].x, f);
  18676. f = b.eI(a[0].y, a[1].y, a[2].y, f);
  18677. a = this.ic;
  18678. if (b.Xr) {
  18679. var d = this.target.qb(),
  18680. e = this.qc;
  18681. a.x = a.x + this.target.pb() - e.x;
  18682. a.y = a.y + d - e.y;
  18683. c += a.x;
  18684. f += a.y;
  18685. e.x = c;
  18686. e.y = f;
  18687. this.target.G(c, f)
  18688. } else {
  18689. this.target.G(a.x + c, a.y + f)
  18690. }
  18691. }
  18692. },
  18693. reverse: function() {
  18694. var a = this.Ne,
  18695. a = [b.Hg(a[1], b.NB(a[2])), b.Hg(a[0], b.NB(a[2])), b.NB(a[2])],
  18696. a = new b.sk(this.q, a);
  18697. this.qa(a);
  18698. this.Jd(a);
  18699. return a
  18700. }
  18701. });
  18702. b.VS = function(c, a) {
  18703. return new b.sk(c, a)
  18704. };
  18705. b.sk.create = b.VS;
  18706. b.Tr = b.sk.extend({
  18707. zu: null,
  18708. ctor: function(c, a) {
  18709. b.sk.prototype.ctor.call(this);
  18710. this.zu = [];
  18711. a && this.n(c, a)
  18712. },
  18713. n: function(c, a) {
  18714. return b.D.prototype.n.call(this, c) ? (this.zu = a, !0) : !1
  18715. },
  18716. k: function() {
  18717. var a = new b.Tr;
  18718. this.qa(a);
  18719. a.n(this.q, this.zu);
  18720. return a
  18721. },
  18722. H: function(d) {
  18723. b.sk.prototype.H.call(this, d);
  18724. d = this.ic;
  18725. var a = this.zu,
  18726. c = this.Ne;
  18727. c[0] = b.od(a[0], d);
  18728. c[1] = b.od(a[1], d);
  18729. c[2] = b.od(a[2], d)
  18730. }
  18731. });
  18732. b.WS = function(c, a) {
  18733. return new b.Tr(c, a)
  18734. };
  18735. b.Tr.create = b.WS;
  18736. b.Bk = b.D.extend({
  18737. Ca: 1,
  18738. ib: 1,
  18739. pq: 1,
  18740. qq: 1,
  18741. Mm: 0,
  18742. Nm: 0,
  18743. pe: 0,
  18744. qe: 0,
  18745. ctor: function(d, a, c) {
  18746. b.D.prototype.ctor.call(this);
  18747. void 0 !== a && this.n(d, a, c)
  18748. },
  18749. n: function(d, a, c) {
  18750. return b.D.prototype.n.call(this, d) ? (this.Mm = a, this.Nm = null != c ? c : a, !0) : !1
  18751. },
  18752. k: function() {
  18753. var a = new b.Bk;
  18754. this.qa(a);
  18755. a.n(this.q, this.Mm, this.Nm);
  18756. return a
  18757. },
  18758. H: function(a) {
  18759. b.D.prototype.H.call(this, a);
  18760. this.pq = a.scaleX;
  18761. this.qq = a.scaleY;
  18762. this.pe = this.Mm - this.pq;
  18763. this.qe = this.Nm - this.qq
  18764. },
  18765. update: function(a) {
  18766. a = this.Lc(a);
  18767. this.target && (this.target.scaleX = this.pq + this.pe * a, this.target.scaleY = this.qq + this.qe * a)
  18768. }
  18769. });
  18770. b.Fe = function(d, a, c) {
  18771. return new b.Bk(d, a, c)
  18772. };
  18773. b.Bk.create = b.Fe;
  18774. b.As = b.Bk.extend({
  18775. H: function(a) {
  18776. b.Bk.prototype.H.call(this, a);
  18777. this.pe = this.pq * this.Mm - this.pq;
  18778. this.qe = this.qq * this.Nm - this.qq
  18779. },
  18780. reverse: function() {
  18781. var a = new b.As(this.q, 1 / this.Mm, 1 / this.Nm);
  18782. this.qa(a);
  18783. this.Jd(a);
  18784. return a
  18785. },
  18786. k: function() {
  18787. var a = new b.As;
  18788. this.qa(a);
  18789. a.n(this.q, this.Mm, this.Nm);
  18790. return a
  18791. }
  18792. });
  18793. b.eK = function(d, a, c) {
  18794. return new b.As(d, a, c)
  18795. };
  18796. b.As.create = b.eK;
  18797. b.Ur = b.D.extend({
  18798. Nf: 0,
  18799. tG: !1,
  18800. ctor: function(c, a) {
  18801. b.D.prototype.ctor.call(this);
  18802. void 0 !== a && this.n(c, a)
  18803. },
  18804. n: function(c, a) {
  18805. return b.D.prototype.n.call(this, c) ? (this.Nf = a, !0) : !1
  18806. },
  18807. k: function() {
  18808. var a = new b.Ur;
  18809. this.qa(a);
  18810. a.n(this.q, this.Nf);
  18811. return a
  18812. },
  18813. update: function(c) {
  18814. c = this.Lc(c);
  18815. if (this.target && !this.Zf()) {
  18816. var a = 1 / this.Nf;
  18817. this.target.visible = c % a > a / 2
  18818. }
  18819. },
  18820. H: function(a) {
  18821. b.D.prototype.H.call(this, a);
  18822. this.tG = a.visible
  18823. },
  18824. stop: function() {
  18825. this.target.visible = this.tG;
  18826. b.D.prototype.stop.call(this)
  18827. },
  18828. reverse: function() {
  18829. var a = new b.Ur(this.q, this.Nf);
  18830. this.qa(a);
  18831. this.Jd(a);
  18832. return a
  18833. }
  18834. });
  18835. b.blink = function(c, a) {
  18836. return new b.Ur(c, a)
  18837. };
  18838. b.Ur.create = b.blink;
  18839. b.Zi = b.D.extend({
  18840. Cn: 0,
  18841. xt: 0,
  18842. ctor: function(c, a) {
  18843. b.D.prototype.ctor.call(this);
  18844. void 0 !== a && this.n(c, a)
  18845. },
  18846. n: function(c, a) {
  18847. return b.D.prototype.n.call(this, c) ? (this.Cn = a, !0) : !1
  18848. },
  18849. k: function() {
  18850. var a = new b.Zi;
  18851. this.qa(a);
  18852. a.n(this.q, this.Cn);
  18853. return a
  18854. },
  18855. update: function(c) {
  18856. c = this.Lc(c);
  18857. var a = void 0 !== this.xt ? this.xt : 255;
  18858. this.target.opacity = a + (this.Cn - a) * c
  18859. },
  18860. H: function(a) {
  18861. b.D.prototype.H.call(this, a);
  18862. this.xt = a.opacity
  18863. }
  18864. });
  18865. b.WA = function(c, a) {
  18866. return new b.Zi(c, a)
  18867. };
  18868. b.Zi.create = b.WA;
  18869. b.wk = b.Zi.extend({
  18870. sz: null,
  18871. ctor: function(a) {
  18872. b.Zi.prototype.ctor.call(this);
  18873. null == a && (a = 0);
  18874. this.n(a, 255)
  18875. },
  18876. reverse: function() {
  18877. var a = new b.$o;
  18878. a.n(this.q, 0);
  18879. this.qa(a);
  18880. this.Jd(a);
  18881. return a
  18882. },
  18883. k: function() {
  18884. var a = new b.wk;
  18885. this.qa(a);
  18886. a.n(this.q, this.Cn);
  18887. return a
  18888. },
  18889. H: function(a) {
  18890. this.sz && (this.Cn = this.sz.xt);
  18891. b.Zi.prototype.H.call(this, a)
  18892. }
  18893. });
  18894. b.GI = function(a) {
  18895. return new b.wk(a)
  18896. };
  18897. b.wk.create = b.GI;
  18898. b.$o = b.Zi.extend({
  18899. ctor: function(a) {
  18900. b.Zi.prototype.ctor.call(this);
  18901. null == a && (a = 0);
  18902. this.n(a, 0)
  18903. },
  18904. reverse: function() {
  18905. var a = new b.wk;
  18906. a.sz = this;
  18907. a.n(this.q, 255);
  18908. this.qa(a);
  18909. this.Jd(a);
  18910. return a
  18911. },
  18912. k: function() {
  18913. var a = new b.$o;
  18914. this.qa(a);
  18915. a.n(this.q, this.Cn);
  18916. return a
  18917. }
  18918. });
  18919. b.HI = function(a) {
  18920. return new b.$o(a)
  18921. };
  18922. b.$o.create = b.HI;
  18923. b.hx = b.D.extend({
  18924. Tc: null,
  18925. Mc: null,
  18926. ctor: function(e, a, c, d) {
  18927. b.D.prototype.ctor.call(this);
  18928. this.Tc = b.color(0, 0, 0);
  18929. this.Mc = b.color(0, 0, 0);
  18930. void 0 !== d && this.n(e, a, c, d)
  18931. },
  18932. n: function(e, a, c, d) {
  18933. return b.D.prototype.n.call(this, e) ? (this.Tc = b.color(a, c, d), !0) : !1
  18934. },
  18935. k: function() {
  18936. var c = new b.hx;
  18937. this.qa(c);
  18938. var a = this.Tc;
  18939. c.n(this.q, a.r, a.g, a.b);
  18940. return c
  18941. },
  18942. H: function(a) {
  18943. b.D.prototype.H.call(this, a);
  18944. this.Mc = this.target.color
  18945. },
  18946. update: function(d) {
  18947. d = this.Lc(d);
  18948. var a = this.Mc,
  18949. c = this.Tc;
  18950. a && (this.target.color = b.color(a.r + (c.r - a.r) * d, a.g + (c.g - a.g) * d, a.b + (c.b - a.b) * d))
  18951. }
  18952. });
  18953. b.MY = function(e, a, c, d) {
  18954. return new b.hx(e, a, c, d)
  18955. };
  18956. b.hx.create = b.MY;
  18957. b.Hs = b.D.extend({
  18958. lt: 0,
  18959. kt: 0,
  18960. jt: 0,
  18961. yF: 0,
  18962. xF: 0,
  18963. wF: 0,
  18964. ctor: function(e, a, c, d) {
  18965. b.D.prototype.ctor.call(this);
  18966. void 0 !== d && this.n(e, a, c, d)
  18967. },
  18968. n: function(e, a, c, d) {
  18969. return b.D.prototype.n.call(this, e) ? (this.lt = a, this.kt = c, this.jt = d, !0) : !1
  18970. },
  18971. k: function() {
  18972. var a = new b.Hs;
  18973. this.qa(a);
  18974. a.n(this.q, this.lt, this.kt, this.jt);
  18975. return a
  18976. },
  18977. H: function(a) {
  18978. b.D.prototype.H.call(this, a);
  18979. a = a.color;
  18980. this.yF = a.r;
  18981. this.xF = a.g;
  18982. this.wF = a.b
  18983. },
  18984. update: function(a) {
  18985. a = this.Lc(a);
  18986. this.target.color = b.color(this.yF + this.lt * a, this.xF + this.kt * a, this.wF + this.jt * a)
  18987. },
  18988. reverse: function() {
  18989. var a = new b.Hs(this.q, -this.lt, -this.kt, -this.jt);
  18990. this.qa(a);
  18991. this.Jd(a);
  18992. return a
  18993. }
  18994. });
  18995. b.LY = function(e, a, c, d) {
  18996. return new b.Hs(e, a, c, d)
  18997. };
  18998. b.Hs.create = b.LY;
  18999. b.bm = b.D.extend({
  19000. update: function() {},
  19001. reverse: function() {
  19002. var a = new b.bm(this.q);
  19003. this.qa(a);
  19004. this.Jd(a);
  19005. return a
  19006. },
  19007. k: function() {
  19008. var a = new b.bm;
  19009. this.qa(a);
  19010. a.n(this.q);
  19011. return a
  19012. }
  19013. });
  19014. b.vd = function(a) {
  19015. return new b.bm(a)
  19016. };
  19017. b.bm.create = b.vd;
  19018. b.ys = b.D.extend({
  19019. gi: null,
  19020. ctor: function(a) {
  19021. b.D.prototype.ctor.call(this);
  19022. this.gi = null;
  19023. a && this.$(a)
  19024. },
  19025. $: function(a) {
  19026. if (!a) {
  19027. throw "cc.ReverseTime.initWithAction(): action must be non null"
  19028. }
  19029. if (a === this.gi) {
  19030. throw "cc.ReverseTime.initWithAction(): the action was already passed in."
  19031. }
  19032. return b.D.prototype.n.call(this, a.q) ? (this.gi = a, !0) : !1
  19033. },
  19034. k: function() {
  19035. var a = new b.ys;
  19036. this.qa(a);
  19037. a.$(this.gi.k());
  19038. return a
  19039. },
  19040. H: function(a) {
  19041. b.D.prototype.H.call(this, a);
  19042. this.gi.H(a)
  19043. },
  19044. update: function(a) {
  19045. a = this.Lc(a);
  19046. this.gi && this.gi.update(1 - a)
  19047. },
  19048. reverse: function() {
  19049. return this.gi.k()
  19050. },
  19051. stop: function() {
  19052. this.gi.stop();
  19053. b.Yc.prototype.stop.call(this)
  19054. }
  19055. });
  19056. b.bK = function(a) {
  19057. return new b.ys(a)
  19058. };
  19059. b.ys.create = b.bK;
  19060. b.Pr = b.D.extend({
  19061. pj: null,
  19062. cq: 0,
  19063. Wy: null,
  19064. tt: 0,
  19065. Tz: null,
  19066. ctor: function(a) {
  19067. b.D.prototype.ctor.call(this);
  19068. this.Tz = [];
  19069. a && this.kJ(a)
  19070. },
  19071. MI: function() {
  19072. return this.pj
  19073. },
  19074. hX: function(a) {
  19075. this.pj = a
  19076. },
  19077. kJ: function(e) {
  19078. if (!e) {
  19079. throw "cc.Animate.initWithAnimation(): animation must be non-NULL"
  19080. }
  19081. var f = e.gB();
  19082. if (this.n(f * e.di)) {
  19083. this.cq = 0;
  19084. this.hX(e);
  19085. this.Wy = null;
  19086. this.tt = 0;
  19087. var g = this.Tz,
  19088. h = g.length = 0,
  19089. a = f / e.ph;
  19090. e = e.sd;
  19091. b.Hq(e, b.of);
  19092. for (var c = 0; c < e.length; c++) {
  19093. var d = h * a / f,
  19094. h = h + e[c].rd;
  19095. g.push(d)
  19096. }
  19097. return !0
  19098. }
  19099. return !1
  19100. },
  19101. k: function() {
  19102. var a = new b.Pr;
  19103. this.qa(a);
  19104. a.kJ(this.pj.k());
  19105. return a
  19106. },
  19107. H: function(a) {
  19108. b.D.prototype.H.call(this, a);
  19109. this.pj.hl && (this.Wy = a.wT());
  19110. this.tt = this.cq = 0
  19111. },
  19112. update: function(f) {
  19113. f = this.Lc(f);
  19114. 1 > f && (f *= this.pj.di, (0 | f) > this.tt && (this.cq = 0, this.tt++), f %= 1);
  19115. for (var a = this.pj.sd, c = a.length, d = this.Tz, e = this.cq; e < c; e++) {
  19116. if (d[e] <= f) {
  19117. this.target.Ul(a[e].V()), this.cq = e + 1
  19118. } else {
  19119. break
  19120. }
  19121. }
  19122. },
  19123. reverse: function() {
  19124. var f = this.pj,
  19125. a = f.sd,
  19126. c = [];
  19127. b.Hq(a, b.of);
  19128. if (0 < a.length) {
  19129. for (var d = a.length - 1; 0 <= d; d--) {
  19130. var e = a[d];
  19131. if (!e) {
  19132. break
  19133. }
  19134. c.push(e.k())
  19135. }
  19136. }
  19137. a = new b.Kh(c, f.rd, f.di);
  19138. a.Uv(f.hl);
  19139. f = new b.Pr(a);
  19140. this.qa(f);
  19141. this.Jd(f);
  19142. return f
  19143. },
  19144. stop: function() {
  19145. this.pj.hl && this.target && this.target.Ul(this.Wy);
  19146. b.Yc.prototype.stop.call(this)
  19147. }
  19148. });
  19149. b.FS = function(a) {
  19150. return new b.Pr(a)
  19151. };
  19152. b.Pr.create = b.FS;
  19153. b.fx = b.D.extend({
  19154. vp: null,
  19155. Sm: null,
  19156. ctor: function(c, a) {
  19157. b.D.prototype.ctor.call(this);
  19158. a && this.fo(c, a)
  19159. },
  19160. fo: function(c, a) {
  19161. return this.n(a.q) ? (this.Sm = c, this.vp = a, !0) : !1
  19162. },
  19163. k: function() {
  19164. var a = new b.fx;
  19165. this.qa(a);
  19166. a.fo(this.Sm, this.vp.k());
  19167. return a
  19168. },
  19169. H: function(a) {
  19170. b.D.prototype.H.call(this, a);
  19171. this.vp.H(this.Sm)
  19172. },
  19173. stop: function() {
  19174. this.vp.stop()
  19175. },
  19176. update: function(a) {
  19177. a = this.Lc(a);
  19178. this.vp.update(a)
  19179. },
  19180. c5: function() {
  19181. return this.Sm
  19182. },
  19183. V$: function(a) {
  19184. this.Sm !== a && (this.Sm = a)
  19185. }
  19186. });
  19187. b.CY = function(c, a) {
  19188. return new b.fx(c, a)
  19189. };
  19190. b.fx.create = b.CY;
  19191. b.Lg = b.Mh.extend({
  19192. Zf: function() {
  19193. return !0
  19194. },
  19195. step: function() {
  19196. this.update(1)
  19197. },
  19198. update: function() {},
  19199. reverse: function() {
  19200. return this.k()
  19201. },
  19202. k: function() {
  19203. return new b.Lg
  19204. }
  19205. });
  19206. b.Bs = b.Lg.extend({
  19207. update: function() {
  19208. this.target.visible = !0
  19209. },
  19210. reverse: function() {
  19211. return new b.ss
  19212. },
  19213. k: function() {
  19214. return new b.Bs
  19215. }
  19216. });
  19217. b.show = function() {
  19218. return new b.Bs
  19219. };
  19220. b.Bs.create = b.show;
  19221. b.ss = b.Lg.extend({
  19222. update: function() {
  19223. this.target.visible = !1
  19224. },
  19225. reverse: function() {
  19226. return new b.Bs
  19227. },
  19228. k: function() {
  19229. return new b.ss
  19230. }
  19231. });
  19232. b.Gl = function() {
  19233. return new b.ss
  19234. };
  19235. b.ss.create = b.Gl;
  19236. b.Is = b.Lg.extend({
  19237. update: function() {
  19238. this.target.visible = !this.target.visible
  19239. },
  19240. reverse: function() {
  19241. return new b.Is
  19242. },
  19243. k: function() {
  19244. return new b.Is
  19245. }
  19246. });
  19247. b.OY = function() {
  19248. return new b.Is
  19249. };
  19250. b.Is.create = b.OY;
  19251. b.ws = b.Lg.extend({
  19252. It: !0,
  19253. ctor: function(a) {
  19254. b.Mh.prototype.ctor.call(this);
  19255. void 0 !== a && this.oa(a)
  19256. },
  19257. update: function() {
  19258. this.target.vc(this.It)
  19259. },
  19260. oa: function(a) {
  19261. this.It = a;
  19262. return !0
  19263. },
  19264. reverse: function() {
  19265. return new b.ws(this.It)
  19266. },
  19267. k: function() {
  19268. return new b.ws(this.It)
  19269. }
  19270. });
  19271. b.WW = function(a) {
  19272. return new b.ws(a)
  19273. };
  19274. b.ws.create = b.WW;
  19275. b.qs = b.Lg.extend({
  19276. Ac: !1,
  19277. ctor: function(a) {
  19278. b.Mh.prototype.ctor.call(this);
  19279. this.Ac = !1;
  19280. void 0 !== a && this.mJ(a)
  19281. },
  19282. mJ: function(a) {
  19283. this.Ac = a;
  19284. return !0
  19285. },
  19286. update: function() {
  19287. this.target.flippedX = this.Ac
  19288. },
  19289. reverse: function() {
  19290. return new b.qs(!this.Ac)
  19291. },
  19292. k: function() {
  19293. var a = new b.qs;
  19294. a.mJ(this.Ac);
  19295. return a
  19296. }
  19297. });
  19298. b.dU = function(a) {
  19299. return new b.qs(a)
  19300. };
  19301. b.qs.create = b.dU;
  19302. b.rs = b.Lg.extend({
  19303. Bc: !1,
  19304. ctor: function(a) {
  19305. b.Mh.prototype.ctor.call(this);
  19306. this.Bc = !1;
  19307. void 0 !== a && this.nJ(a)
  19308. },
  19309. nJ: function(a) {
  19310. this.Bc = a;
  19311. return !0
  19312. },
  19313. update: function() {
  19314. this.target.flippedY = this.Bc
  19315. },
  19316. reverse: function() {
  19317. return new b.rs(!this.Bc)
  19318. },
  19319. k: function() {
  19320. var a = new b.rs;
  19321. a.nJ(this.Bc);
  19322. return a
  19323. }
  19324. });
  19325. b.eU = function(a) {
  19326. return new b.rs(a)
  19327. };
  19328. b.rs.create = b.eU;
  19329. b.Gw = b.Lg.extend({
  19330. Cg: 0,
  19331. de: 0,
  19332. ctor: function(c, a) {
  19333. b.Mh.prototype.ctor.call(this);
  19334. this.de = this.Cg = 0;
  19335. void 0 !== c && (void 0 !== c.x && (a = c.y, c = c.x), this.sJ(c, a))
  19336. },
  19337. sJ: function(c, a) {
  19338. this.Cg = c;
  19339. this.de = a;
  19340. return !0
  19341. },
  19342. update: function() {
  19343. this.target.G(this.Cg, this.de)
  19344. },
  19345. k: function() {
  19346. var a = new b.Gw;
  19347. a.sJ(this.Cg, this.de);
  19348. return a
  19349. }
  19350. });
  19351. b.zW = function(c, a) {
  19352. return new b.Gw(c, a)
  19353. };
  19354. b.Gw.create = b.zW;
  19355. b.Xi = b.Lg.extend({
  19356. pi: null,
  19357. dt: null,
  19358. Qp: null,
  19359. Tx: null,
  19360. ctor: function(d, a, c) {
  19361. b.Mh.prototype.ctor.call(this);
  19362. void 0 !== d && (void 0 === a ? this.lv(d) : this.lv(d, a, c))
  19363. },
  19364. lv: function(d, a, c) {
  19365. a ? (this.Tx = c, this.dt = d, this.pi = a) : d && (this.Qp = d);
  19366. return !0
  19367. },
  19368. execute: function() {
  19369. null != this.dt ? this.dt.call(this.pi, this.target, this.Tx) : this.Qp && this.Qp.call(null, this.target)
  19370. },
  19371. update: function() {
  19372. this.execute()
  19373. },
  19374. a6: function() {
  19375. return this.pi
  19376. },
  19377. Gaa: function(a) {
  19378. a !== this.pi && (this.pi && (this.pi = null), this.pi = a)
  19379. },
  19380. k: function() {
  19381. var a = new b.Xi;
  19382. this.pi ? a.lv(this.dt, this.pi, this.Tx) : this.Qp && a.lv(this.Qp);
  19383. return a
  19384. }
  19385. });
  19386. b.$b = function(d, a, c) {
  19387. return new b.Xi(d, a, c)
  19388. };
  19389. b.Xi.create = b.$b;
  19390. b.ew = b.D.extend({
  19391. Gx: 0,
  19392. Hx: 0,
  19393. Ix: 0,
  19394. nF: 0,
  19395. oF: 0,
  19396. pF: 0,
  19397. CH: 0,
  19398. DH: 0,
  19399. EH: 0,
  19400. ctor: function() {
  19401. b.D.prototype.ctor.call(this);
  19402. this.EH = this.DH = this.CH = this.pF = this.oF = this.nF = this.Ix = this.Hx = this.Gx = 0
  19403. },
  19404. H: function(c) {
  19405. b.D.prototype.H.call(this, c);
  19406. c = c.Wn();
  19407. var a = c.OI();
  19408. this.Gx = a.x;
  19409. this.Hx = a.y;
  19410. this.Ix = a.z;
  19411. a = c.QI();
  19412. this.nF = a.x;
  19413. this.oF = a.y;
  19414. this.pF = a.z;
  19415. c = c.mV();
  19416. this.CH = c.x;
  19417. this.DH = c.y;
  19418. this.EH = c.z
  19419. },
  19420. k: function() {
  19421. return new b.ew
  19422. },
  19423. reverse: function() {
  19424. return new b.ys(this)
  19425. }
  19426. });
  19427. b.Dw = b.ew.extend({
  19428. Ij: 0,
  19429. Vx: 0,
  19430. zp: 0,
  19431. BE: 0,
  19432. hg: 0,
  19433. AE: 0,
  19434. HG: 0,
  19435. FG: 0,
  19436. GG: 0,
  19437. EG: 0,
  19438. ctor: function(e, f, g, h, a, c, d) {
  19439. b.ew.prototype.ctor.call(this);
  19440. void 0 !== d && this.n(e, f, g, h, a, c, d)
  19441. },
  19442. n: function(e, f, g, h, a, c, d) {
  19443. return b.D.prototype.n.call(this, e) ? (this.Ij = f, this.Vx = g, this.zp = h, this.BE = a, this.hg = c, this.AE = d, this.FG = b.Ce(a), this.EG = b.Ce(d), !0) : !1
  19444. },
  19445. nY: function() {
  19446. var f, a;
  19447. a = this.target.Wn();
  19448. var c = a.QI();
  19449. f = a.OI();
  19450. a = c.x - f.x;
  19451. var d = c.y - f.y;
  19452. f = c.z - f.z;
  19453. var c = Math.sqrt(Math.pow(a, 2) + Math.pow(d, 2) + Math.pow(f, 2)),
  19454. e = Math.sqrt(Math.pow(a, 2) + Math.pow(d, 2));
  19455. 0 === e && (e = b.ps);
  19456. 0 === c && (c = b.ps);
  19457. f = Math.acos(f / c);
  19458. a = 0 > a ? Math.PI - Math.asin(d / e) : Math.asin(d / e);
  19459. return {
  19460. qW: c / b.Go.bo(),
  19461. bZ: f,
  19462. azimuth: a
  19463. }
  19464. },
  19465. H: function(a) {
  19466. b.D.prototype.H.call(this, a);
  19467. a = this.nY();
  19468. isNaN(this.Ij) && (this.Ij = a.qW);
  19469. isNaN(this.zp) && (this.zp = b.QB(a.bZ));
  19470. isNaN(this.hg) && (this.hg = b.QB(a.azimuth));
  19471. this.HG = b.Ce(this.zp);
  19472. this.GG = b.Ce(this.hg)
  19473. },
  19474. k: function() {
  19475. var a = new b.Dw;
  19476. a.n(this.q, this.Ij, this.Vx, this.zp, this.BE, this.hg, this.AE);
  19477. return a
  19478. },
  19479. update: function(e) {
  19480. e = this.Lc(e);
  19481. var a = (this.Ij + this.Vx * e) * b.Go.bo(),
  19482. c = this.HG + this.FG * e,
  19483. d = this.GG + this.EG * e;
  19484. e = Math.sin(c) * Math.cos(d) * a + this.Gx;
  19485. d = Math.sin(c) * Math.sin(d) * a + this.Hx;
  19486. a = Math.cos(c) * a + this.Ix;
  19487. this.target.Wn().oK(e, d, a);
  19488. this.target.Oi()
  19489. }
  19490. });
  19491. b.gf = function(e, f, g, h, a, c, d) {
  19492. return new b.Dw(e, f, g, h, a, c, d)
  19493. };
  19494. b.Dw.create = b.gf;
  19495. b.Fa = b.D.extend({
  19496. t: null,
  19497. ctor: function(a) {
  19498. b.D.prototype.ctor.call(this);
  19499. a && this.$(a)
  19500. },
  19501. $: function(a) {
  19502. if (!a) {
  19503. throw "cc.ActionEase.initWithAction(): action must be non nil"
  19504. }
  19505. return this.n(a.gB()) ? (this.t = a, !0) : !1
  19506. },
  19507. k: function() {
  19508. var a = new b.Fa;
  19509. a.$(this.t.k());
  19510. return a
  19511. },
  19512. H: function(a) {
  19513. b.D.prototype.H.call(this, a);
  19514. this.t.H(this.target)
  19515. },
  19516. stop: function() {
  19517. this.t.stop();
  19518. b.D.prototype.stop.call(this)
  19519. },
  19520. update: function(a) {
  19521. this.t.update(a)
  19522. },
  19523. reverse: function() {
  19524. return new b.Fa(this.t.reverse())
  19525. },
  19526. jB: function() {
  19527. return this.t
  19528. }
  19529. });
  19530. b.bS = function(a) {
  19531. return new b.Fa(a)
  19532. };
  19533. b.Fa.create = b.bS;
  19534. b.uk = b.Fa.extend({
  19535. Ob: 0,
  19536. ctor: function(c, a) {
  19537. b.Fa.prototype.ctor.call(this);
  19538. void 0 !== a && this.$(c, a)
  19539. },
  19540. uaa: function(a) {
  19541. this.Ob = a
  19542. },
  19543. I5: function() {
  19544. return this.Ob
  19545. },
  19546. $: function(c, a) {
  19547. return b.Fa.prototype.$.call(this, c) ? (this.Ob = a, !0) : !1
  19548. },
  19549. k: function() {
  19550. var a = new b.uk;
  19551. a.$(this.t.k(), this.Ob);
  19552. return a
  19553. },
  19554. reverse: function() {
  19555. return new b.uk(this.t.reverse(), 1 / this.Ob)
  19556. }
  19557. });
  19558. b.ST = function(c, a) {
  19559. return new b.uk(c, a)
  19560. };
  19561. b.uk.create = b.ST;
  19562. b.ls = b.uk.extend({
  19563. update: function(a) {
  19564. this.t.update(Math.pow(a, this.Ob))
  19565. },
  19566. reverse: function() {
  19567. return new b.ls(this.t.reverse(), 1 / this.Ob)
  19568. },
  19569. k: function() {
  19570. var a = new b.ls;
  19571. a.$(this.t.k(), this.Ob);
  19572. return a
  19573. }
  19574. });
  19575. b.ls.create = function(c, a) {
  19576. return new b.ls(c, a)
  19577. };
  19578. b.PT = function(a) {
  19579. return {
  19580. Ob: a,
  19581. Ha: function(c) {
  19582. return Math.pow(c, this.Ob)
  19583. },
  19584. reverse: function() {
  19585. return b.PT(1 / this.Ob)
  19586. }
  19587. }
  19588. };
  19589. b.em = b.uk.extend({
  19590. update: function(a) {
  19591. this.t.update(Math.pow(a, 1 / this.Ob))
  19592. },
  19593. reverse: function() {
  19594. return new b.em(this.t.reverse(), 1 / this.Ob)
  19595. },
  19596. k: function() {
  19597. var a = new b.em;
  19598. a.$(this.t.k(), this.Ob);
  19599. return a
  19600. }
  19601. });
  19602. b.em.create = function(c, a) {
  19603. return new b.em(c, a)
  19604. };
  19605. b.RT = function(a) {
  19606. return {
  19607. Ob: a,
  19608. Ha: function(c) {
  19609. return Math.pow(c, 1 / this.Ob)
  19610. },
  19611. reverse: function() {
  19612. return b.RT(1 / this.Ob)
  19613. }
  19614. }
  19615. };
  19616. b.dm = b.uk.extend({
  19617. update: function(a) {
  19618. a *= 2;
  19619. 1 > a ? this.t.update(0.5 * Math.pow(a, this.Ob)) : this.t.update(1 - 0.5 * Math.pow(2 - a, this.Ob))
  19620. },
  19621. k: function() {
  19622. var a = new b.dm;
  19623. a.$(this.t.k(), this.Ob);
  19624. return a
  19625. },
  19626. reverse: function() {
  19627. return new b.dm(this.t.reverse(), this.Ob)
  19628. }
  19629. });
  19630. b.dm.create = function(c, a) {
  19631. return new b.dm(c, a)
  19632. };
  19633. b.QT = function(a) {
  19634. return {
  19635. Ob: a,
  19636. Ha: function(c) {
  19637. c *= 2;
  19638. return 1 > c ? 0.5 * Math.pow(c, this.Ob) : 1 - 0.5 * Math.pow(2 - c, this.Ob)
  19639. },
  19640. reverse: function() {
  19641. return b.QT(this.Ob)
  19642. }
  19643. }
  19644. };
  19645. b.is = b.Fa.extend({
  19646. update: function(a) {
  19647. this.t.update(0 === a ? 0 : Math.pow(2, 10 * (a - 1)))
  19648. },
  19649. reverse: function() {
  19650. return new b.ks(this.t.reverse())
  19651. },
  19652. k: function() {
  19653. var a = new b.is;
  19654. a.$(this.t.k());
  19655. return a
  19656. }
  19657. });
  19658. b.is.create = function(a) {
  19659. return new b.is(a)
  19660. };
  19661. b.VE = {
  19662. Ha: function(a) {
  19663. return 0 === a ? 0 : Math.pow(2, 10 * (a - 1))
  19664. },
  19665. reverse: function() {
  19666. return b.XE
  19667. }
  19668. };
  19669. b.w3 = function() {
  19670. return b.VE
  19671. };
  19672. b.ks = b.Fa.extend({
  19673. update: function(a) {
  19674. this.t.update(1 === a ? 1 : -Math.pow(2, -10 * a) + 1)
  19675. },
  19676. reverse: function() {
  19677. return new b.is(this.t.reverse())
  19678. },
  19679. k: function() {
  19680. var a = new b.ks;
  19681. a.$(this.t.k());
  19682. return a
  19683. }
  19684. });
  19685. b.ks.create = function(a) {
  19686. return new b.ks(a)
  19687. };
  19688. b.XE = {
  19689. Ha: function(a) {
  19690. return 1 === a ? 1 : -Math.pow(2, -10 * a) + 1
  19691. },
  19692. reverse: function() {
  19693. return b.VE
  19694. }
  19695. };
  19696. b.y3 = function() {
  19697. return b.XE
  19698. };
  19699. b.js = b.Fa.extend({
  19700. update: function(a) {
  19701. 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));
  19702. this.t.update(a)
  19703. },
  19704. reverse: function() {
  19705. return new b.js(this.t.reverse())
  19706. },
  19707. k: function() {
  19708. var a = new b.js;
  19709. a.$(this.t.k());
  19710. return a
  19711. }
  19712. });
  19713. b.js.create = function(a) {
  19714. return new b.js(a)
  19715. };
  19716. b.WE = {
  19717. Ha: function(a) {
  19718. 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
  19719. },
  19720. reverse: function() {
  19721. return b.WE
  19722. }
  19723. };
  19724. b.x3 = function() {
  19725. return b.WE
  19726. };
  19727. b.ms = b.Fa.extend({
  19728. update: function(a) {
  19729. a = 0 === a || 1 === a ? a : -1 * Math.cos(a * Math.PI / 2) + 1;
  19730. this.t.update(a)
  19731. },
  19732. reverse: function() {
  19733. return new b.os(this.t.reverse())
  19734. },
  19735. k: function() {
  19736. var a = new b.ms;
  19737. a.$(this.t.k());
  19738. return a
  19739. }
  19740. });
  19741. b.ms.create = function(a) {
  19742. return new b.ms(a)
  19743. };
  19744. b.gF = {
  19745. Ha: function(a) {
  19746. return 0 === a || 1 === a ? a : -1 * Math.cos(a * Math.PI / 2) + 1
  19747. },
  19748. reverse: function() {
  19749. return b.iF
  19750. }
  19751. };
  19752. b.I3 = function() {
  19753. return b.gF
  19754. };
  19755. b.os = b.Fa.extend({
  19756. update: function(a) {
  19757. a = 0 === a || 1 === a ? a : Math.sin(a * Math.PI / 2);
  19758. this.t.update(a)
  19759. },
  19760. reverse: function() {
  19761. return new b.ms(this.t.reverse())
  19762. },
  19763. k: function() {
  19764. var a = new b.os;
  19765. a.$(this.t.k());
  19766. return a
  19767. }
  19768. });
  19769. b.os.create = function(a) {
  19770. return new b.os(a)
  19771. };
  19772. b.iF = {
  19773. Ha: function(a) {
  19774. return 0 === a || 1 === a ? a : Math.sin(a * Math.PI / 2)
  19775. },
  19776. reverse: function() {
  19777. return b.gF
  19778. }
  19779. };
  19780. b.K3 = function() {
  19781. return b.iF
  19782. };
  19783. b.ns = b.Fa.extend({
  19784. update: function(a) {
  19785. a = 0 === a || 1 === a ? a : -0.5 * (Math.cos(Math.PI * a) - 1);
  19786. this.t.update(a)
  19787. },
  19788. k: function() {
  19789. var a = new b.ns;
  19790. a.$(this.t.k());
  19791. return a
  19792. },
  19793. reverse: function() {
  19794. return new b.ns(this.t.reverse())
  19795. }
  19796. });
  19797. b.ns.create = function(a) {
  19798. return new b.ns(a)
  19799. };
  19800. b.hF = {
  19801. Ha: function(a) {
  19802. return 0 === a || 1 === a ? a : -0.5 * (Math.cos(Math.PI * a) - 1)
  19803. },
  19804. reverse: function() {
  19805. return b.hF
  19806. }
  19807. };
  19808. b.J3 = function() {
  19809. return b.hF
  19810. };
  19811. b.cm = b.Fa.extend({
  19812. nb: 0.3,
  19813. ctor: function(c, a) {
  19814. b.Fa.prototype.ctor.call(this);
  19815. c && this.$(c, a)
  19816. },
  19817. C5: function() {
  19818. return this.nb
  19819. },
  19820. raa: function(a) {
  19821. this.nb = a
  19822. },
  19823. $: function(c, a) {
  19824. b.Fa.prototype.$.call(this, c);
  19825. this.nb = null == a ? 0.3 : a;
  19826. return !0
  19827. },
  19828. reverse: function() {
  19829. b.log("cc.EaseElastic.reverse(): it should be overridden in subclass.");
  19830. return null
  19831. },
  19832. k: function() {
  19833. var a = new b.cm;
  19834. a.$(this.t.k(), this.nb);
  19835. return a
  19836. }
  19837. });
  19838. b.cm.create = function(c, a) {
  19839. return new b.cm(c, a)
  19840. };
  19841. b.fs = b.cm.extend({
  19842. update: function(c) {
  19843. var a = 0;
  19844. 0 === c || 1 === c ? a = c : (a = this.nb / 4, c -= 1, a = -Math.pow(2, 10 * c) * Math.sin((c - a) * Math.PI * 2 / this.nb));
  19845. this.t.update(a)
  19846. },
  19847. reverse: function() {
  19848. return new b.hs(this.t.reverse(), this.nb)
  19849. },
  19850. k: function() {
  19851. var a = new b.fs;
  19852. a.$(this.t.k(), this.nb);
  19853. return a
  19854. }
  19855. });
  19856. b.fs.create = function(c, a) {
  19857. return new b.fs(c, a)
  19858. };
  19859. b.TE = {
  19860. Ha: function(a) {
  19861. if (0 === a || 1 === a) {
  19862. return a
  19863. }
  19864. a -= 1;
  19865. return -Math.pow(2, 10 * a) * Math.sin((a - 0.075) * Math.PI * 2 / 0.3)
  19866. },
  19867. reverse: function() {
  19868. return b.UE
  19869. }
  19870. };
  19871. b.MT = function(a) {
  19872. return a && 0.3 !== a ? {
  19873. nb: a,
  19874. Ha: function(c) {
  19875. if (0 === c || 1 === c) {
  19876. return c
  19877. }
  19878. c -= 1;
  19879. return -Math.pow(2, 10 * c) * Math.sin((c - this.nb / 4) * Math.PI * 2 / this.nb)
  19880. },
  19881. reverse: function() {
  19882. return b.OT(this.nb)
  19883. }
  19884. } : b.TE
  19885. };
  19886. b.hs = b.cm.extend({
  19887. update: function(c) {
  19888. var a = 0,
  19889. a = 0 === c || 1 === c ? c : Math.pow(2, -10 * c) * Math.sin((c - this.nb / 4) * Math.PI * 2 / this.nb) + 1;
  19890. this.t.update(a)
  19891. },
  19892. reverse: function() {
  19893. return new b.fs(this.t.reverse(), this.nb)
  19894. },
  19895. k: function() {
  19896. var a = new b.hs;
  19897. a.$(this.t.k(), this.nb);
  19898. return a
  19899. }
  19900. });
  19901. b.hs.create = function(c, a) {
  19902. return new b.hs(c, a)
  19903. };
  19904. b.UE = {
  19905. Ha: function(a) {
  19906. return 0 === a || 1 === a ? a : Math.pow(2, -10 * a) * Math.sin((a - 0.075) * Math.PI * 2 / 0.3) + 1
  19907. },
  19908. reverse: function() {
  19909. return b.TE
  19910. }
  19911. };
  19912. b.OT = function(a) {
  19913. return a && 0.3 !== a ? {
  19914. nb: a,
  19915. Ha: function(c) {
  19916. return 0 === c || 1 === c ? c : Math.pow(2, -10 * c) * Math.sin((c - this.nb / 4) * Math.PI * 2 / this.nb) + 1
  19917. },
  19918. reverse: function() {
  19919. return b.MT(this.nb)
  19920. }
  19921. } : b.UE
  19922. };
  19923. b.gs = b.cm.extend({
  19924. update: function(d) {
  19925. var a = 0,
  19926. a = this.nb;
  19927. if (0 === d || 1 === d) {
  19928. a = d
  19929. } else {
  19930. a || (a = this.nb = 0.3 * 1.5);
  19931. var c = a / 4;
  19932. d = 2 * d - 1;
  19933. a = 0 > d ? -0.5 * Math.pow(2, 10 * d) * Math.sin((d - c) * Math.PI * 2 / a) : Math.pow(2, -10 * d) * Math.sin((d - c) * Math.PI * 2 / a) * 0.5 + 1
  19934. }
  19935. this.t.update(a)
  19936. },
  19937. reverse: function() {
  19938. return new b.gs(this.t.reverse(), this.nb)
  19939. },
  19940. k: function() {
  19941. var a = new b.gs;
  19942. a.$(this.t.k(), this.nb);
  19943. return a
  19944. }
  19945. });
  19946. b.gs.create = function(c, a) {
  19947. return new b.gs(c, a)
  19948. };
  19949. b.NT = function(a) {
  19950. return {
  19951. nb: a || 0.3,
  19952. Ha: function(e) {
  19953. var c = 0,
  19954. c = this.nb;
  19955. if (0 === e || 1 === e) {
  19956. c = e
  19957. } else {
  19958. c || (c = this.nb = 0.3 * 1.5);
  19959. var d = c / 4;
  19960. e = 2 * e - 1;
  19961. c = 0 > e ? -0.5 * Math.pow(2, 10 * e) * Math.sin((e - d) * Math.PI * 2 / c) : Math.pow(2, -10 * e) * Math.sin((e - d) * Math.PI * 2 / c) * 0.5 + 1
  19962. }
  19963. return c
  19964. },
  19965. reverse: function() {
  19966. return b.NT(this.nb)
  19967. }
  19968. }
  19969. };
  19970. b.tk = b.Fa.extend({
  19971. Mu: function(a) {
  19972. if (a < 1 / 2.75) {
  19973. return 7.5625 * a * a
  19974. }
  19975. if (a < 2 / 2.75) {
  19976. return a -= 1.5 / 2.75, 7.5625 * a * a + 0.75
  19977. }
  19978. if (a < 2.5 / 2.75) {
  19979. return a -= 2.25 / 2.75, 7.5625 * a * a + 0.9375
  19980. }
  19981. a -= 2.625 / 2.75;
  19982. return 7.5625 * a * a + 0.984375
  19983. },
  19984. k: function() {
  19985. var a = new b.tk;
  19986. a.$(this.t.k());
  19987. return a
  19988. },
  19989. reverse: function() {
  19990. return new b.tk(this.t.reverse())
  19991. }
  19992. });
  19993. b.tk.create = function(a) {
  19994. return new b.tk(a)
  19995. };
  19996. b.cs = b.tk.extend({
  19997. update: function(a) {
  19998. this.t.update(1 - this.Mu(1 - a))
  19999. },
  20000. reverse: function() {
  20001. return new b.es(this.t.reverse())
  20002. },
  20003. k: function() {
  20004. var a = new b.cs;
  20005. a.$(this.t.k());
  20006. return a
  20007. }
  20008. });
  20009. b.cs.create = function(a) {
  20010. return new b.cs(a)
  20011. };
  20012. b.$s = function(a) {
  20013. if (a < 1 / 2.75) {
  20014. return 7.5625 * a * a
  20015. }
  20016. if (a < 2 / 2.75) {
  20017. return a -= 1.5 / 2.75, 7.5625 * a * a + 0.75
  20018. }
  20019. if (a < 2.5 / 2.75) {
  20020. return a -= 2.25 / 2.75, 7.5625 * a * a + 0.9375
  20021. }
  20022. a -= 2.625 / 2.75;
  20023. return 7.5625 * a * a + 0.984375
  20024. };
  20025. b.KE = {
  20026. Ha: function(a) {
  20027. return 1 - b.$s(1 - a)
  20028. },
  20029. reverse: function() {
  20030. return b.ME
  20031. }
  20032. };
  20033. b.n3 = function() {
  20034. return b.KE
  20035. };
  20036. b.es = b.tk.extend({
  20037. update: function(a) {
  20038. this.t.update(this.Mu(a))
  20039. },
  20040. reverse: function() {
  20041. return new b.cs(this.t.reverse())
  20042. },
  20043. k: function() {
  20044. var a = new b.es;
  20045. a.$(this.t.k());
  20046. return a
  20047. }
  20048. });
  20049. b.es.create = function(a) {
  20050. return new b.es(a)
  20051. };
  20052. b.ME = {
  20053. Ha: function(a) {
  20054. return b.$s(a)
  20055. },
  20056. reverse: function() {
  20057. return b.KE
  20058. }
  20059. };
  20060. b.p3 = function() {
  20061. return b.ME
  20062. };
  20063. b.ds = b.tk.extend({
  20064. update: function(c) {
  20065. var a = 0,
  20066. a = 0.5 > c ? 0.5 * (1 - this.Mu(1 - 2 * c)) : 0.5 * this.Mu(2 * c - 1) + 0.5;
  20067. this.t.update(a)
  20068. },
  20069. k: function() {
  20070. var a = new b.ds;
  20071. a.$(this.t.k());
  20072. return a
  20073. },
  20074. reverse: function() {
  20075. return new b.ds(this.t.reverse())
  20076. }
  20077. });
  20078. b.ds.create = function(a) {
  20079. return new b.ds(a)
  20080. };
  20081. b.LE = {
  20082. Ha: function(a) {
  20083. return a = 0.5 > a ? 0.5 * (1 - b.$s(1 - 2 * a)) : 0.5 * b.$s(2 * a - 1) + 0.5
  20084. },
  20085. reverse: function() {
  20086. return b.LE
  20087. }
  20088. };
  20089. b.o3 = function() {
  20090. return b.LE
  20091. };
  20092. b.$r = b.Fa.extend({
  20093. update: function(a) {
  20094. this.t.update(0 === a || 1 === a ? a : a * a * (2.70158 * a - 1.70158))
  20095. },
  20096. reverse: function() {
  20097. return new b.bs(this.t.reverse())
  20098. },
  20099. k: function() {
  20100. var a = new b.$r;
  20101. a.$(this.t.k());
  20102. return a
  20103. }
  20104. });
  20105. b.$r.create = function(a) {
  20106. return new b.$r(a)
  20107. };
  20108. b.HE = {
  20109. Ha: function(a) {
  20110. return 0 === a || 1 === a ? a : a * a * (2.70158 * a - 1.70158)
  20111. },
  20112. reverse: function() {
  20113. return b.JE
  20114. }
  20115. };
  20116. b.k3 = function() {
  20117. return b.HE
  20118. };
  20119. b.bs = b.Fa.extend({
  20120. update: function(a) {
  20121. a -= 1;
  20122. this.t.update(a * a * (2.70158 * a + 1.70158) + 1)
  20123. },
  20124. reverse: function() {
  20125. return new b.$r(this.t.reverse())
  20126. },
  20127. k: function() {
  20128. var a = new b.bs;
  20129. a.$(this.t.k());
  20130. return a
  20131. }
  20132. });
  20133. b.bs.create = function(a) {
  20134. return new b.bs(a)
  20135. };
  20136. b.JE = {
  20137. Ha: function(a) {
  20138. a -= 1;
  20139. return a * a * (2.70158 * a + 1.70158) + 1
  20140. },
  20141. reverse: function() {
  20142. return b.HE
  20143. }
  20144. };
  20145. b.m3 = function() {
  20146. return b.JE
  20147. };
  20148. b.as = b.Fa.extend({
  20149. update: function(a) {
  20150. a *= 2;
  20151. 1 > a ? this.t.update(a * a * (3.5949095 * a - 2.5949095) / 2) : (a -= 2, this.t.update(a * a * (3.5949095 * a + 2.5949095) / 2 + 1))
  20152. },
  20153. k: function() {
  20154. var a = new b.as;
  20155. a.$(this.t.k());
  20156. return a
  20157. },
  20158. reverse: function() {
  20159. return new b.as(this.t.reverse())
  20160. }
  20161. });
  20162. b.as.create = function(a) {
  20163. return new b.as(a)
  20164. };
  20165. b.IE = {
  20166. Ha: function(a) {
  20167. a *= 2;
  20168. if (1 > a) {
  20169. return a * a * (3.5949095 * a - 2.5949095) / 2
  20170. }
  20171. a -= 2;
  20172. return a * a * (3.5949095 * a + 2.5949095) / 2 + 1
  20173. },
  20174. reverse: function() {
  20175. return b.IE
  20176. }
  20177. };
  20178. b.l3 = function() {
  20179. return b.IE
  20180. };
  20181. b.Jo = b.Fa.extend({
  20182. Wt: null,
  20183. Xt: null,
  20184. Yt: null,
  20185. Zt: null,
  20186. ctor: function(a) {
  20187. b.Fa.prototype.ctor.call(this, a)
  20188. },
  20189. ja: function(f, a, c, d, e) {
  20190. return Math.pow(1 - e, 3) * f + 3 * e * Math.pow(1 - e, 2) * a + 3 * Math.pow(e, 2) * (1 - e) * c + Math.pow(e, 3) * d
  20191. },
  20192. update: function(a) {
  20193. this.t.update(this.ja(this.Wt, this.Xt, this.Yt, this.Zt, a))
  20194. },
  20195. k: function() {
  20196. var a = new b.Jo;
  20197. a.$(this.t.k());
  20198. a.kK(this.Wt, this.Xt, this.Yt, this.Zt);
  20199. return a
  20200. },
  20201. reverse: function() {
  20202. var a = new b.Jo(this.t.reverse());
  20203. a.kK(this.Zt, this.Yt, this.Xt, this.Wt);
  20204. return a
  20205. },
  20206. kK: function(e, a, c, d) {
  20207. this.Wt = e || 0;
  20208. this.Xt = a || 0;
  20209. this.Yt = c || 0;
  20210. this.Zt = d || 0
  20211. }
  20212. });
  20213. b.Jo.create = function(a) {
  20214. return new b.Jo(a)
  20215. };
  20216. b.LT = function(e, a, c, d) {
  20217. return {
  20218. Ha: function(f) {
  20219. return b.Jo.prototype.ja(e, a, c, d, f)
  20220. },
  20221. reverse: function() {
  20222. return b.LT(d, c, a, e)
  20223. }
  20224. }
  20225. };
  20226. b.Qo = b.Fa.extend({
  20227. ja: function(a) {
  20228. return Math.pow(a, 2)
  20229. },
  20230. update: function(a) {
  20231. this.t.update(this.ja(a))
  20232. },
  20233. k: function() {
  20234. var a = new b.Qo;
  20235. a.$(this.t.k());
  20236. return a
  20237. },
  20238. reverse: function() {
  20239. return new b.Qo(this.t.reverse())
  20240. }
  20241. });
  20242. b.Qo.create = function(a) {
  20243. return new b.Qo(a)
  20244. };
  20245. b.YE = {
  20246. Ha: b.Qo.prototype.ja,
  20247. reverse: function() {
  20248. return b.YE
  20249. }
  20250. };
  20251. b.z3 = function() {
  20252. return b.YE
  20253. };
  20254. b.So = b.Fa.extend({
  20255. ja: function(a) {
  20256. return -a * (a - 2)
  20257. },
  20258. update: function(a) {
  20259. this.t.update(this.ja(a))
  20260. },
  20261. k: function() {
  20262. var a = new b.So;
  20263. a.$();
  20264. return a
  20265. },
  20266. reverse: function() {
  20267. return new b.So(this.t.reverse())
  20268. }
  20269. });
  20270. b.So.create = function(a) {
  20271. return new b.So(a)
  20272. };
  20273. b.$E = {
  20274. Ha: b.So.prototype.ja,
  20275. reverse: function() {
  20276. return b.$E
  20277. }
  20278. };
  20279. b.B3 = function() {
  20280. return b.$E
  20281. };
  20282. b.Ro = b.Fa.extend({
  20283. ja: function(c) {
  20284. var a = c;
  20285. c *= 2;
  20286. 1 > c ? a = c * c * 0.5 : (--c, a = -0.5 * (c * (c - 2) - 1));
  20287. return a
  20288. },
  20289. update: function(a) {
  20290. this.t.update(this.ja(a))
  20291. },
  20292. k: function() {
  20293. var a = new b.Ro;
  20294. a.$(this.t.k());
  20295. return a
  20296. },
  20297. reverse: function() {
  20298. return new b.Ro(this.t.reverse())
  20299. }
  20300. });
  20301. b.Ro.create = function(a) {
  20302. return new b.Ro(a)
  20303. };
  20304. b.ZE = {
  20305. Ha: b.Ro.prototype.ja,
  20306. reverse: function() {
  20307. return b.ZE
  20308. }
  20309. };
  20310. b.A3 = function() {
  20311. return b.ZE
  20312. };
  20313. b.To = b.Fa.extend({
  20314. ja: function(a) {
  20315. return a * a * a * a
  20316. },
  20317. update: function(a) {
  20318. this.t.update(this.ja(a))
  20319. },
  20320. k: function() {
  20321. var a = new b.To;
  20322. a.$(this.t.k());
  20323. return a
  20324. },
  20325. reverse: function() {
  20326. return new b.To(this.t.reverse())
  20327. }
  20328. });
  20329. b.To.create = function(a) {
  20330. return new b.To(a)
  20331. };
  20332. b.aF = {
  20333. Ha: b.To.prototype.ja,
  20334. reverse: function() {
  20335. return b.aF
  20336. }
  20337. };
  20338. b.C3 = function() {
  20339. return b.aF
  20340. };
  20341. b.Vo = b.Fa.extend({
  20342. ja: function(a) {
  20343. a -= 1;
  20344. return -(a * a * a * a - 1)
  20345. },
  20346. update: function(a) {
  20347. this.t.update(this.ja(a))
  20348. },
  20349. k: function() {
  20350. var a = new b.Vo;
  20351. a.$(this.t.k());
  20352. return a
  20353. },
  20354. reverse: function() {
  20355. return new b.Vo(this.t.reverse())
  20356. }
  20357. });
  20358. b.Vo.create = function(a) {
  20359. return new b.Vo(a)
  20360. };
  20361. b.cF = {
  20362. Ha: b.Vo.prototype.ja,
  20363. reverse: function() {
  20364. return b.cF
  20365. }
  20366. };
  20367. b.E3 = function() {
  20368. return b.cF
  20369. };
  20370. b.Uo = b.Fa.extend({
  20371. ja: function(a) {
  20372. a *= 2;
  20373. if (1 > a) {
  20374. return 0.5 * a * a * a * a
  20375. }
  20376. a -= 2;
  20377. return -0.5 * (a * a * a * a - 2)
  20378. },
  20379. update: function(a) {
  20380. this.t.update(this.ja(a))
  20381. },
  20382. k: function() {
  20383. var a = new b.Uo;
  20384. a.$(this.t.k());
  20385. return a
  20386. },
  20387. reverse: function() {
  20388. return new b.Uo(this.t.reverse())
  20389. }
  20390. });
  20391. b.Uo.create = function(a) {
  20392. return new b.Uo(a)
  20393. };
  20394. b.bF = {
  20395. Ha: b.Uo.prototype.ja,
  20396. reverse: function() {
  20397. return b.bF
  20398. }
  20399. };
  20400. b.D3 = function() {
  20401. return b.bF
  20402. };
  20403. b.Wo = b.Fa.extend({
  20404. ja: function(a) {
  20405. return a * a * a * a * a
  20406. },
  20407. update: function(a) {
  20408. this.t.update(this.ja(a))
  20409. },
  20410. k: function() {
  20411. var a = new b.Wo;
  20412. a.$(this.t.k());
  20413. return a
  20414. },
  20415. reverse: function() {
  20416. return new b.Wo(this.t.reverse())
  20417. }
  20418. });
  20419. b.Wo.create = function(a) {
  20420. return new b.Wo(a)
  20421. };
  20422. b.dF = {
  20423. Ha: b.Wo.prototype.ja,
  20424. reverse: function() {
  20425. return b.dF
  20426. }
  20427. };
  20428. b.F3 = function() {
  20429. return b.dF
  20430. };
  20431. b.Yo = b.Fa.extend({
  20432. ja: function(a) {
  20433. a -= 1;
  20434. return a * a * a * a * a + 1
  20435. },
  20436. update: function(a) {
  20437. this.t.update(this.ja(a))
  20438. },
  20439. k: function() {
  20440. var a = new b.Yo;
  20441. a.$(this.t.k());
  20442. return a
  20443. },
  20444. reverse: function() {
  20445. return new b.Yo(this.t.reverse())
  20446. }
  20447. });
  20448. b.Yo.create = function(a) {
  20449. return new b.Yo(a)
  20450. };
  20451. b.fF = {
  20452. Ha: b.Yo.prototype.ja,
  20453. reverse: function() {
  20454. return b.fF
  20455. }
  20456. };
  20457. b.H3 = function() {
  20458. return b.fF
  20459. };
  20460. b.Xo = b.Fa.extend({
  20461. ja: function(a) {
  20462. a *= 2;
  20463. if (1 > a) {
  20464. return 0.5 * a * a * a * a * a
  20465. }
  20466. a -= 2;
  20467. return 0.5 * (a * a * a * a * a + 2)
  20468. },
  20469. update: function(a) {
  20470. this.t.update(this.ja(a))
  20471. },
  20472. k: function() {
  20473. var a = new b.Xo;
  20474. a.$(this.t.k());
  20475. return a
  20476. },
  20477. reverse: function() {
  20478. return new b.Xo(this.t.reverse())
  20479. }
  20480. });
  20481. b.Xo.create = function(a) {
  20482. return new b.Xo(a)
  20483. };
  20484. b.eF = {
  20485. Ha: b.Xo.prototype.ja,
  20486. reverse: function() {
  20487. return b.eF
  20488. }
  20489. };
  20490. b.G3 = function() {
  20491. return b.eF
  20492. };
  20493. b.Ko = b.Fa.extend({
  20494. ja: function(a) {
  20495. return -1 * (Math.sqrt(1 - a * a) - 1)
  20496. },
  20497. update: function(a) {
  20498. this.t.update(this.ja(a))
  20499. },
  20500. k: function() {
  20501. var a = new b.Ko;
  20502. a.$(this.t.k());
  20503. return a
  20504. },
  20505. reverse: function() {
  20506. return new b.Ko(this.t.reverse())
  20507. }
  20508. });
  20509. b.Ko.create = function(a) {
  20510. return new b.Ko(a)
  20511. };
  20512. b.NE = {
  20513. Ha: b.Ko.prototype.ja,
  20514. reverse: function() {
  20515. return b.NE
  20516. }
  20517. };
  20518. b.q3 = function() {
  20519. return b.NE
  20520. };
  20521. b.Mo = b.Fa.extend({
  20522. ja: function(a) {
  20523. a -= 1;
  20524. return Math.sqrt(1 - a * a)
  20525. },
  20526. update: function(a) {
  20527. this.t.update(this.ja(a))
  20528. },
  20529. k: function() {
  20530. var a = new b.Mo;
  20531. a.$(this.t.k());
  20532. return a
  20533. },
  20534. reverse: function() {
  20535. return new b.Mo(this.t.reverse())
  20536. }
  20537. });
  20538. b.Mo.create = function(a) {
  20539. return new b.Mo(a)
  20540. };
  20541. b.PE = {
  20542. Ha: b.Mo.prototype.ja,
  20543. reverse: function() {
  20544. return b.PE
  20545. }
  20546. };
  20547. b.s3 = function() {
  20548. return b.PE
  20549. };
  20550. b.Lo = b.Fa.extend({
  20551. ja: function(a) {
  20552. a *= 2;
  20553. if (1 > a) {
  20554. return -0.5 * (Math.sqrt(1 - a * a) - 1)
  20555. }
  20556. a -= 2;
  20557. return 0.5 * (Math.sqrt(1 - a * a) + 1)
  20558. },
  20559. update: function(a) {
  20560. this.t.update(this.ja(a))
  20561. },
  20562. k: function() {
  20563. var a = new b.Lo;
  20564. a.$(this.t.k());
  20565. return a
  20566. },
  20567. reverse: function() {
  20568. return new b.Lo(this.t.reverse())
  20569. }
  20570. });
  20571. b.Lo.create = function(a) {
  20572. return new b.Lo(a)
  20573. };
  20574. b.OE = {
  20575. Ha: b.Lo.prototype.ja,
  20576. reverse: function() {
  20577. return b.OE
  20578. }
  20579. };
  20580. b.r3 = function() {
  20581. return b.OE
  20582. };
  20583. b.No = b.Fa.extend({
  20584. ja: function(a) {
  20585. return a * a * a
  20586. },
  20587. update: function(a) {
  20588. this.t.update(this.ja(a))
  20589. },
  20590. k: function() {
  20591. var a = new b.No;
  20592. a.$(this.t.k());
  20593. return a
  20594. },
  20595. reverse: function() {
  20596. return new b.No(this.t.reverse())
  20597. }
  20598. });
  20599. b.No.create = function(a) {
  20600. return new b.No(a)
  20601. };
  20602. b.QE = {
  20603. Ha: b.No.prototype.ja,
  20604. reverse: function() {
  20605. return b.QE
  20606. }
  20607. };
  20608. b.t3 = function() {
  20609. return b.QE
  20610. };
  20611. b.Po = b.Fa.extend({
  20612. ja: function(a) {
  20613. a -= 1;
  20614. return a * a * a + 1
  20615. },
  20616. update: function(a) {
  20617. this.t.update(this.ja(a))
  20618. },
  20619. k: function() {
  20620. var a = new b.Po;
  20621. a.$(this.t.k());
  20622. return a
  20623. },
  20624. reverse: function() {
  20625. return new b.Po(this.t.reverse())
  20626. }
  20627. });
  20628. b.Po.create = function(a) {
  20629. return new b.Po(a)
  20630. };
  20631. b.SE = {
  20632. Ha: b.Po.prototype.ja,
  20633. reverse: function() {
  20634. return b.SE
  20635. }
  20636. };
  20637. b.v3 = function() {
  20638. return b.SE
  20639. };
  20640. b.Oo = b.Fa.extend({
  20641. ja: function(a) {
  20642. a *= 2;
  20643. if (1 > a) {
  20644. return 0.5 * a * a * a
  20645. }
  20646. a -= 2;
  20647. return 0.5 * (a * a * a + 2)
  20648. },
  20649. update: function(a) {
  20650. this.t.update(this.ja(a))
  20651. },
  20652. k: function() {
  20653. var a = new b.Oo;
  20654. a.$(this.t.k());
  20655. return a
  20656. },
  20657. reverse: function() {
  20658. return new b.Oo(this.t.reverse())
  20659. }
  20660. });
  20661. b.Oo.create = function(a) {
  20662. return new b.Oo(a)
  20663. };
  20664. b.RE = {
  20665. Ha: b.Oo.prototype.ja,
  20666. reverse: function() {
  20667. return b.RE
  20668. }
  20669. };
  20670. b.u3 = function() {
  20671. return b.RE
  20672. };
  20673. b.Ou = function(g, h, k, m, n, a) {
  20674. var c = a * a,
  20675. d = c * a,
  20676. e = (1 - n) / 2;
  20677. n = e * (-d + 2 * c - a);
  20678. var f = e * (-d + c) + (2 * d - 3 * c + 1);
  20679. a = e * (d - 2 * c + a) + (-2 * d + 3 * c);
  20680. c = e * (d - c);
  20681. return b.d(g.x * n + h.x * f + k.x * a + m.x * c, g.y * n + h.y * f + k.y * a + m.y * c)
  20682. };
  20683. b.aK = function(d) {
  20684. for (var a = [], c = d.length - 1; 0 <= c; c--) {
  20685. a.push(b.d(d[c].x, d[c].y))
  20686. }
  20687. return a
  20688. };
  20689. b.fT = function(d) {
  20690. for (var a = [], c = 0; c < d.length; c++) {
  20691. a.push(b.d(d[c].x, d[c].y))
  20692. }
  20693. return a
  20694. };
  20695. b.Qu = b.fT;
  20696. b.Gc = function(d, a) {
  20697. var c = Math.min(d.length - 1, Math.max(a, 0));
  20698. return d[c]
  20699. };
  20700. b.f$ = function(f) {
  20701. for (var a = f.length, c = 0 | a / 2, d = 0; d < c; ++d) {
  20702. var e = f[d];
  20703. f[d] = f[a - d - 1];
  20704. f[a - d - 1] = e
  20705. }
  20706. };
  20707. b.Lh = b.D.extend({
  20708. sg: null,
  20709. CE: 0,
  20710. xn: 0,
  20711. qc: null,
  20712. dE: null,
  20713. ctor: function(d, a, c) {
  20714. b.D.prototype.ctor.call(this);
  20715. this.sg = [];
  20716. void 0 !== c && this.n(d, a, c)
  20717. },
  20718. n: function(d, a, c) {
  20719. if (!a || 0 === a.length) {
  20720. throw "Invalid configuration. It must at least have one control point"
  20721. }
  20722. return b.D.prototype.n.call(this, d) ? (this.JX(a), this.xn = c, !0) : !1
  20723. },
  20724. k: function() {
  20725. var a = new b.Lh;
  20726. a.n(this.q, b.Qu(this.sg), this.xn);
  20727. return a
  20728. },
  20729. H: function(a) {
  20730. b.D.prototype.H.call(this, a);
  20731. this.CE = 1 / (this.sg.length - 1);
  20732. this.qc = b.d(this.target.pb(), this.target.qb());
  20733. this.dE = b.d(0, 0)
  20734. },
  20735. update: function(e) {
  20736. e = this.Lc(e);
  20737. var a, c = this.sg;
  20738. if (1 === e) {
  20739. a = c.length - 1, e = 1
  20740. } else {
  20741. var d = this.CE;
  20742. a = 0 | e / d;
  20743. e = (e - d * a) / d
  20744. }
  20745. a = b.Ou(b.Gc(c, a - 1), b.Gc(c, a - 0), b.Gc(c, a + 1), b.Gc(c, a + 2), this.xn, e);
  20746. b.Xr && (c = this.target.pb() - this.qc.x, e = this.target.qb() - this.qc.y, 0 !== c || 0 !== e) && (d = this.dE, c = d.x + c, e = d.y + e, d.x = c, d.y = e, a.x += c, a.y += e);
  20747. this.UK(a)
  20748. },
  20749. reverse: function() {
  20750. var a = b.aK(this.sg);
  20751. return b.mI(this.q, a, this.xn)
  20752. },
  20753. UK: function(a) {
  20754. this.target.G(a);
  20755. this.qc = a
  20756. },
  20757. D5: function() {
  20758. return this.sg
  20759. },
  20760. JX: function(a) {
  20761. this.sg = a
  20762. }
  20763. });
  20764. b.mI = function(d, a, c) {
  20765. return new b.Lh(d, a, c)
  20766. };
  20767. b.Lh.create = b.mI;
  20768. b.Ho = b.Lh.extend({
  20769. ic: null,
  20770. ctor: function(d, a, c) {
  20771. b.Lh.prototype.ctor.call(this);
  20772. this.ic = b.d(0, 0);
  20773. void 0 !== c && this.n(d, a, c)
  20774. },
  20775. H: function(a) {
  20776. b.Lh.prototype.H.call(this, a);
  20777. this.ic.x = a.pb();
  20778. this.ic.y = a.qb()
  20779. },
  20780. reverse: function() {
  20781. for (var e = this.sg.slice(), a, c = e[0], d = 1; d < e.length; ++d) {
  20782. a = e[d], e[d] = b.od(a, c), c = a
  20783. }
  20784. e = b.aK(e);
  20785. c = e[e.length - 1];
  20786. e.pop();
  20787. c.x = -c.x;
  20788. c.y = -c.y;
  20789. e.unshift(c);
  20790. for (d = 1; d < e.length; ++d) {
  20791. a = e[d], a.x = -a.x, a.y = -a.y, a.x += c.x, a.y += c.y, c = e[d] = a
  20792. }
  20793. return b.lI(this.q, e, this.xn)
  20794. },
  20795. UK: function(d) {
  20796. var a = this.ic,
  20797. c = d.x + a.x;
  20798. d = d.y + a.y;
  20799. this.qc.x = c;
  20800. this.qc.y = d;
  20801. this.target.G(c, d)
  20802. },
  20803. k: function() {
  20804. var a = new b.Ho;
  20805. a.n(this.q, b.Qu(this.sg), this.xn);
  20806. return a
  20807. }
  20808. });
  20809. b.lI = function(d, a, c) {
  20810. return new b.Ho(d, a, c)
  20811. };
  20812. b.Ho.create = b.lI;
  20813. b.kw = b.Lh.extend({
  20814. ctor: function(c, a) {
  20815. a && this.n(c, a)
  20816. },
  20817. n: function(c, a) {
  20818. return b.Lh.prototype.n.call(this, c, a, 0.5)
  20819. },
  20820. k: function() {
  20821. var a = new b.kw;
  20822. a.n(this.q, b.Qu(this.sg));
  20823. return a
  20824. }
  20825. });
  20826. b.aT = function(c, a) {
  20827. return new b.kw(c, a)
  20828. };
  20829. b.kw.create = b.aT;
  20830. b.jw = b.Ho.extend({
  20831. ctor: function(c, a) {
  20832. b.Ho.prototype.ctor.call(this);
  20833. a && this.n(c, a)
  20834. },
  20835. n: function(c, a) {
  20836. return b.Lh.prototype.n.call(this, c, a, 0.5)
  20837. },
  20838. k: function() {
  20839. var a = new b.jw;
  20840. a.n(this.q, b.Qu(this.sg));
  20841. return a
  20842. }
  20843. });
  20844. b.$S = function(c, a) {
  20845. return new b.jw(c, a)
  20846. };
  20847. b.jw.create = b.$S;
  20848. b.pZ = b.Ia.extend({
  20849. WY: function() {}
  20850. });
  20851. b.Or = b.D.extend({
  20852. key: "",
  20853. Vu: 0,
  20854. bw: 0,
  20855. uT: 0,
  20856. ctor: function(e, a, c, d) {
  20857. b.D.prototype.ctor.call(this);
  20858. this.key = "";
  20859. void 0 !== d && this.n(e, a, c, d)
  20860. },
  20861. n: function(e, a, c, d) {
  20862. return b.D.prototype.n.call(this, e) ? (this.key = a, this.bw = d, this.Vu = c, !0) : !1
  20863. },
  20864. H: function(a) {
  20865. if (!a || !a.WY) {
  20866. throw "cc.ActionTween.startWithTarget(): target must be non-null, and target must implement updateTweenAction function"
  20867. }
  20868. b.D.prototype.H.call(this, a);
  20869. this.uT = this.bw - this.Vu
  20870. },
  20871. update: function() {},
  20872. reverse: function() {
  20873. return new b.Or(this.duration, this.key, this.bw, this.Vu)
  20874. },
  20875. k: function() {
  20876. var a = new b.Or;
  20877. a.n(this.q, this.key, this.Vu, this.bw);
  20878. return a
  20879. }
  20880. });
  20881. b.dS = function(e, a, c, d) {
  20882. return new b.Or(e, a, c, d)
  20883. };
  20884. b.Or.create = b.dS;
  20885. b.l_ = 0;
  20886. b.m_ = 1;
  20887. b.n_ = 9;
  20888. b.cj = function(a) {
  20889. a -= 1;
  20890. a |= a >> 1;
  20891. a |= a >> 2;
  20892. a |= a >> 4;
  20893. a |= a >> 8;
  20894. return (a | a >> 16) + 1
  20895. };
  20896. b.je = b.f.extend({
  20897. sprite: null,
  20898. EA: 0,
  20899. DA: 0,
  20900. Iq: !1,
  20901. P: null,
  20902. kh: b.ca.dj,
  20903. FA: 0,
  20904. Jk: null,
  20905. gc: "RenderTexture",
  20906. ctor: function(e, a, c, d) {
  20907. b.f.prototype.ctor.call(this);
  20908. this.fc = this.ec = !0;
  20909. this.Jk = new b.Bd(0, 0, 0, 255);
  20910. void 0 !== e && void 0 !== a && (c = c || b.ca.dj, this.mv(e, a, c, d || 0));
  20911. this.Xa(0, 0)
  20912. },
  20913. Fd: function() {
  20914. return b.ua === b.dc ? new b.je.A(this) : new b.je.F(this)
  20915. },
  20916. Od: function() {
  20917. b.f.prototype.Ib.call(this);
  20918. this.i.Od()
  20919. },
  20920. $I: function() {
  20921. return this.sprite
  20922. },
  20923. hC: function(a) {
  20924. this.sprite = a
  20925. },
  20926. kC: function(d, a, c) {
  20927. this.i.kC(d, a, c)
  20928. },
  20929. mv: function(e, a, c, d) {
  20930. return this.i.mv(e, a, c, d)
  20931. },
  20932. zi: function() {
  20933. b.Za.Au(this.Y);
  20934. this.i.zi()
  20935. },
  20936. US: function(e, f, g, h, a, c) {
  20937. var d = b.s;
  20938. a = a || d.COLOR_BUFFER_BIT;
  20939. c = c || d.COLOR_BUFFER_BIT | d.DEPTH_BUFFER_BIT;
  20940. this.Ys(e, f, g, h, a, c, d.COLOR_BUFFER_BIT | d.DEPTH_BUFFER_BIT | d.STENCIL_BUFFER_BIT)
  20941. },
  20942. Ys: function(e, f, g, h, a, c, d) {
  20943. this.zi();
  20944. this.i.Ys(e, f, g, h, a, c, d)
  20945. },
  20946. end: function() {
  20947. this.i.end()
  20948. },
  20949. clear: function(e, a, c, d) {
  20950. this.US(e, a, c, d);
  20951. this.end()
  20952. },
  20953. clearRect: function(e, a, c, d) {
  20954. this.i.clearRect(e, a, c, d)
  20955. },
  20956. clearDepth: function(a) {
  20957. this.i.clearDepth(a)
  20958. },
  20959. clearStencil: function(a) {
  20960. this.i.clearStencil(a)
  20961. },
  20962. I4: function() {
  20963. return this.EA
  20964. },
  20965. F$: function(a) {
  20966. this.EA = a
  20967. },
  20968. uU: function() {
  20969. return this.Jk
  20970. },
  20971. oX: function(c) {
  20972. var a = this.Jk;
  20973. a.r = c.r;
  20974. a.g = c.g;
  20975. a.b = c.b;
  20976. a.a = c.a
  20977. },
  20978. H4: function() {
  20979. return this.DA
  20980. },
  20981. E$: function(a) {
  20982. this.DA = a
  20983. },
  20984. J4: function() {
  20985. return this.FA
  20986. },
  20987. G$: function(a) {
  20988. this.FA = a
  20989. },
  20990. S6: function() {
  20991. return this.Iq
  20992. },
  20993. A$: function(a) {
  20994. this.Iq = a
  20995. },
  20996. m$: function() {
  20997. b.log("saveToFile isn't supported on Cocos2d-Html5")
  20998. },
  20999. e8: function() {
  21000. b.log("saveToFile isn't supported on cocos2d-html5");
  21001. return null
  21002. },
  21003. S7: function() {},
  21004. T7: function() {}
  21005. });
  21006. w = b.je.prototype;
  21007. b.l(w, "clearColorVal", w.uU, w.oX);
  21008. b.je.create = function(e, a, c, d) {
  21009. return new b.je(e, a, c, d)
  21010. };
  21011. (function() {
  21012. b.je.A = function(c) {
  21013. b.f.A.call(this, c);
  21014. this.Db = !0;
  21015. this.rj = b.ac("canvas");
  21016. this.Vg = new b.Vr(this.rj.getContext("2d"))
  21017. };
  21018. var a = b.je.A.prototype = Object.create(b.f.A.prototype);
  21019. a.constructor = b.je.A;
  21020. a.Od = function() {
  21021. this.rj = this.Vg = null
  21022. };
  21023. a.clearStencil = function() {};
  21024. a.kC = function() {};
  21025. a.VY = function() {};
  21026. a.mv = function(g, c) {
  21027. var d = this.p,
  21028. e = this.rj,
  21029. f = b.jb();
  21030. e.width = 0 | g * f;
  21031. e.height = 0 | c * f;
  21032. f = new b.ca;
  21033. f.mc(e);
  21034. f.fb();
  21035. e = d.sprite = new b.o(f);
  21036. e.Hh(b.ONE, b.ONE_MINUS_SRC_ALPHA);
  21037. d.Iq = !1;
  21038. d.B(e);
  21039. return !0
  21040. };
  21041. a.zi = function() {};
  21042. a.Ys = function(f, g, h, c) {
  21043. f = f || 0;
  21044. g = g || 0;
  21045. h = h || 0;
  21046. c = isNaN(c) ? 255 : c;
  21047. var d = this.Vg.getContext(),
  21048. e = this.rj;
  21049. d.setTransform(1, 0, 0, 1, 0, 0);
  21050. this.Vg.Kg("rgba(" + (0 | f) + "," + (0 | g) + "," + (0 | h) + "," + c / 255 + ")");
  21051. d.clearRect(0, 0, e.width, e.height);
  21052. d.fillRect(0, 0, e.width, e.height)
  21053. };
  21054. a.end = function() {
  21055. var d = this.p,
  21056. c = b.jb();
  21057. b.Za.nz(this.Vg, d.Y, c, c)
  21058. };
  21059. a.clearRect = function(f, c, d, e) {
  21060. this.Vg.clearRect(f, c, d, -e)
  21061. };
  21062. a.clearDepth = function() {
  21063. b.log("clearDepth isn't supported on Cocos2d-Html5")
  21064. };
  21065. a.ga = function(d) {
  21066. var c = this.p;
  21067. this.We(d);
  21068. c.sprite.ga(this);
  21069. this.C = 0
  21070. }
  21071. })();
  21072. (function() {
  21073. b.je.F = function(c) {
  21074. b.f.F.call(this, c);
  21075. this.Db = !0;
  21076. this.Lk = this.uq = this.jh = this.ut = null;
  21077. this.hu = new b.Nh;
  21078. this.Tm = new b.Nh;
  21079. this.yt = new b.Nh
  21080. };
  21081. var a = b.je.F.prototype = Object.create(b.f.F.prototype);
  21082. a.constructor = b.je.F;
  21083. a.kC = function(e, c, d) {
  21084. this.hu.x = e.x;
  21085. this.hu.y = e.y;
  21086. this.Tm = c;
  21087. this.yt = d
  21088. };
  21089. a.wb = function(f) {
  21090. var g = f || b.s;
  21091. f = this.p;
  21092. if (f.Iq) {
  21093. f.zi();
  21094. var h = f.EA;
  21095. if (h) {
  21096. var c = [0, 0, 0, 0],
  21097. d = 0,
  21098. e = 0;
  21099. h & g.COLOR_BUFFER_BIT && (c = g.getParameter(g.COLOR_CLEAR_VALUE), g.clearColor(f.Jk.r / 255, f.Jk.g / 255, f.Jk.b / 255, f.Jk.a / 255));
  21100. h & g.DEPTH_BUFFER_BIT && (d = g.getParameter(g.DEPTH_CLEAR_VALUE), g.clearDepth(f.DA));
  21101. h & g.STENCIL_BUFFER_BIT && (e = g.getParameter(g.STENCIL_CLEAR_VALUE), g.clearStencil(f.FA));
  21102. g.clear(h);
  21103. h & g.COLOR_BUFFER_BIT && g.clearColor(c[0], c[1], c[2], c[3]);
  21104. h & g.DEPTH_BUFFER_BIT && g.clearDepth(d);
  21105. h & g.STENCIL_BUFFER_BIT && g.clearStencil(e)
  21106. }
  21107. f.kf();
  21108. g = f.K;
  21109. for (h = 0; h < g.length; h++) {
  21110. c = g[h], c !== f.sprite && c.i.ga(f.sprite.i)
  21111. }
  21112. f.end()
  21113. }
  21114. };
  21115. a.clearStencil = function(e) {
  21116. var c = b.s,
  21117. d = c.getParameter(c.STENCIL_CLEAR_VALUE);
  21118. c.clearStencil(e);
  21119. c.clear(c.STENCIL_BUFFER_BIT);
  21120. c.clearStencil(d)
  21121. };
  21122. a.Od = function() {
  21123. this.uq = null;
  21124. var c = b.s;
  21125. c.deleteFramebuffer(this.ut);
  21126. this.Lk && c.deleteRenderbuffer(this.Lk)
  21127. };
  21128. a.VY = function() {};
  21129. a.mv = function(g, h, k, m) {
  21130. var n = this.p;
  21131. k === b.ca.ep && b.log("cc.RenderTexture._initWithWidthAndHeightForWebGL() : only RGB and RGBA formats are valid for a render texture;");
  21132. var p = b.s,
  21133. c = b.jb();
  21134. this.Tm = new b.Nh(0, 0, g, h);
  21135. this.yt = new b.Nh(0, 0, g, h);
  21136. g = 0 | g * c;
  21137. h = 0 | h * c;
  21138. this.jh = p.getParameter(p.FRAMEBUFFER_BINDING);
  21139. var d;
  21140. b.Qn.vu ? (c = g, d = h) : (c = b.cj(g), d = b.cj(h));
  21141. for (var e = new Uint8Array(c * d * 4), f = 0; f < c * d * 4; f++) {
  21142. e[f] = 0
  21143. }
  21144. this.kh = k;
  21145. f = n.P = new b.ca;
  21146. if (!n.P) {
  21147. return !1
  21148. }
  21149. f.Zq(e, n.kh, c, d, b.size(g, h));
  21150. k = p.getParameter(p.RENDERBUFFER_BINDING);
  21151. if (b.Qn.On("GL_QCOM")) {
  21152. this.uq = new b.ca;
  21153. if (!this.uq) {
  21154. return !1
  21155. }
  21156. this.uq.Zq(e, n.kh, c, d, b.size(g, h))
  21157. }
  21158. this.ut = p.createFramebuffer();
  21159. p.bindFramebuffer(p.FRAMEBUFFER, this.ut);
  21160. p.framebufferTexture2D(p.FRAMEBUFFER, p.COLOR_ATTACHMENT0, p.TEXTURE_2D, f.Ze, 0);
  21161. 0 !== m && (this.Lk = p.createRenderbuffer(), p.bindRenderbuffer(p.RENDERBUFFER, this.Lk), p.renderbufferStorage(p.RENDERBUFFER, m, c, d), m === p.DEPTH_STENCIL ? p.framebufferRenderbuffer(p.FRAMEBUFFER, p.DEPTH_STENCIL_ATTACHMENT, p.RENDERBUFFER, this.Lk) : m === p.STENCIL_INDEX || m === p.STENCIL_INDEX8 ? p.framebufferRenderbuffer(p.FRAMEBUFFER, p.STENCIL_ATTACHMENT, p.RENDERBUFFER, this.Lk) : m === p.DEPTH_COMPONENT16 && p.framebufferRenderbuffer(p.FRAMEBUFFER, p.DEPTH_ATTACHMENT, p.RENDERBUFFER, this.Lk));
  21162. p.checkFramebufferStatus(p.FRAMEBUFFER) !== p.FRAMEBUFFER_COMPLETE && b.log("Could not attach texture to the framebuffer");
  21163. f.hK();
  21164. g = n.sprite = new b.o(f);
  21165. g.scaleY = -1;
  21166. g.Hh(p.ONE, p.ONE_MINUS_SRC_ALPHA);
  21167. p.bindRenderbuffer(p.RENDERBUFFER, k);
  21168. p.bindFramebuffer(p.FRAMEBUFFER, this.jh);
  21169. n.Iq = !1;
  21170. n.B(g);
  21171. return !0
  21172. };
  21173. a.zi = function() {
  21174. var g = this.p;
  21175. b.Gg(b.Ng);
  21176. b.rv();
  21177. b.Gg(b.Mg);
  21178. b.rv();
  21179. var c = b.s,
  21180. d = b.I;
  21181. d.Sl(d.Zn());
  21182. var e = g.P.Q,
  21183. f = b.I.rB(),
  21184. d = f.width / e.width,
  21185. e = f.height / e.height,
  21186. d = b.e.U.IA(-1 / d, 1 / d, -1 / e, 1 / e, -1, 1);
  21187. b.jo(d);
  21188. d = new b.Nh(0, 0, 0, 0);
  21189. d.width = this.yt.width;
  21190. d.height = this.yt.height;
  21191. e = d.height / this.Tm.height;
  21192. d.x = d.width / this.Tm.width * (this.Tm.x - this.hu.x);
  21193. d.y = (this.Tm.y - this.hu.y) * e;
  21194. c.viewport(d.x, d.y, d.width, d.height);
  21195. this.jh = c.getParameter(c.FRAMEBUFFER_BINDING);
  21196. c.bindFramebuffer(c.FRAMEBUFFER, this.ut);
  21197. b.Qn.On("GL_QCOM") && (c.framebufferTexture2D(c.FRAMEBUFFER, c.COLOR_ATTACHMENT0, c.TEXTURE_2D, this.uq.Ze, 0), c.clear(c.COLOR_BUFFER_BIT | c.DEPTH_BUFFER_BIT), c.framebufferTexture2D(c.FRAMEBUFFER, c.COLOR_ATTACHMENT0, c.TEXTURE_2D, g.P.Ze, 0))
  21198. };
  21199. a.Ys = function(c, e, h, k, m, n, p) {
  21200. c /= 255;
  21201. e /= 255;
  21202. h /= 255;
  21203. k /= 255;
  21204. var r = b.s,
  21205. d = [0, 0, 0, 0],
  21206. f = 0,
  21207. g = 0;
  21208. p & r.COLOR_BUFFER_BIT && (d = r.getParameter(r.COLOR_CLEAR_VALUE), r.clearColor(c, e, h, k));
  21209. p & r.DEPTH_BUFFER_BIT && (f = r.getParameter(r.DEPTH_CLEAR_VALUE), r.clearDepth(m));
  21210. p & r.STENCIL_BUFFER_BIT && (g = r.getParameter(r.STENCIL_CLEAR_VALUE), r.clearStencil(n));
  21211. r.clear(p);
  21212. p & r.COLOR_BUFFER_BIT && r.clearColor(d[0], d[1], d[2], d[3]);
  21213. p & r.DEPTH_BUFFER_BIT && r.clearDepth(f);
  21214. p & r.STENCIL_BUFFER_BIT && r.clearStencil(g)
  21215. };
  21216. a.end = function() {
  21217. b.Za.gR(this.p.Y);
  21218. var d = b.s,
  21219. c = b.I;
  21220. d.bindFramebuffer(d.FRAMEBUFFER, this.jh);
  21221. c.jC();
  21222. b.Gg(b.Ng);
  21223. b.qv();
  21224. b.Gg(b.Mg);
  21225. b.qv()
  21226. };
  21227. a.clearRect = function() {};
  21228. a.clearDepth = function(f) {
  21229. var c = this.p;
  21230. c.zi();
  21231. var d = b.s,
  21232. e = d.getParameter(d.DEPTH_CLEAR_VALUE);
  21233. d.clearDepth(f);
  21234. d.clear(d.DEPTH_BUFFER_BIT);
  21235. d.clearDepth(e);
  21236. c.end()
  21237. };
  21238. a.ga = function(d) {
  21239. var c = this.p;
  21240. c.jd && (b.rv(), this.We(d), b.Za.Ig(this), c.sprite.ga(this), this.C = 0, b.qv())
  21241. }
  21242. })();
  21243. b.sa = b.f.extend({
  21244. Ec: null,
  21245. hi: 0,
  21246. tb: null,
  21247. gh: null,
  21248. xm: null,
  21249. Gf: !1,
  21250. gc: "ProgressTimer",
  21251. ctor: function(a) {
  21252. b.f.prototype.ctor.call(this);
  21253. this.Ec = b.sa.gj;
  21254. this.hi = 0;
  21255. this.gh = b.d(0, 0);
  21256. this.xm = b.d(0, 0);
  21257. this.Gf = !1;
  21258. this.tb = null;
  21259. a && this.HV(a)
  21260. },
  21261. RU: function() {
  21262. return b.d(this.gh.x, this.gh.y)
  21263. },
  21264. DX: function(a) {
  21265. this.gh = b.EJ(a)
  21266. },
  21267. pU: function() {
  21268. return b.d(this.xm.x, this.xm.y)
  21269. },
  21270. jX: function(a) {
  21271. this.xm = b.EJ(a)
  21272. },
  21273. qB: function() {
  21274. return this.Ec
  21275. },
  21276. YU: function() {
  21277. return this.hi
  21278. },
  21279. $I: function() {
  21280. return this.tb
  21281. },
  21282. HX: function(a) {
  21283. this.hi !== a && (this.hi = b.Kq(a, 0, 100), this.i.KH())
  21284. },
  21285. Pi: function() {},
  21286. zh: function() {
  21287. return !1
  21288. },
  21289. WV: function() {
  21290. return this.Gf
  21291. },
  21292. xb: function(a) {
  21293. this.tb.color = a;
  21294. this.i.ia(b.f.L.ra)
  21295. },
  21296. yd: function(a) {
  21297. this.tb.opacity = a;
  21298. this.i.ia(b.f.L.pa)
  21299. },
  21300. Uf: function() {
  21301. return this.tb.color
  21302. },
  21303. sh: function() {
  21304. return this.tb.opacity
  21305. },
  21306. yaa: function(a) {
  21307. this.Gf !== a && (this.Gf = a, this.i.Ol())
  21308. },
  21309. hC: function(a) {
  21310. this.tb !== a && ((this.tb = a) ? this.he(a.width, a.height) : this.he(0, 0), this.i.Ol())
  21311. },
  21312. ZX: function(a) {
  21313. a !== this.Ec && (this.Ec = a, this.i.Ol())
  21314. },
  21315. OX: function(a) {
  21316. this.Gf !== a && (this.Gf = a, this.i.Ol())
  21317. },
  21318. HV: function(a) {
  21319. this.percentage = 0;
  21320. this.Xa(0.5, 0.5);
  21321. this.Ec = b.sa.gj;
  21322. this.Gf = !1;
  21323. this.midPoint = b.d(0.5, 0.5);
  21324. this.barChangeRate = b.d(1, 1);
  21325. this.hC(a);
  21326. this.i.jJ();
  21327. return !0
  21328. },
  21329. Fd: function() {
  21330. return b.ua === b.dc ? new b.sa.A(this) : new b.sa.F(this)
  21331. }
  21332. });
  21333. w = b.sa.prototype;
  21334. b.l(w, "midPoint", w.RU, w.DX);
  21335. b.l(w, "barChangeRate", w.pU, w.jX);
  21336. b.l(w, "type", w.qB, w.ZX);
  21337. b.l(w, "percentage", w.YU, w.HX);
  21338. b.l(w, "sprite", w.$I, w.hC);
  21339. b.l(w, "reverseDir", w.WV, w.OX);
  21340. b.sa.create = function(a) {
  21341. return new b.sa(a)
  21342. };
  21343. b.sa.mD = 4;
  21344. b.sa.TN = 75;
  21345. b.sa.gj = 0;
  21346. b.sa.Dk = 1;
  21347. b.Iw = b.D.extend({
  21348. Tc: 0,
  21349. Mc: 0,
  21350. ctor: function(c, a) {
  21351. b.D.prototype.ctor.call(this);
  21352. this.Mc = this.Tc = 0;
  21353. void 0 !== a && this.n(c, a)
  21354. },
  21355. n: function(c, a) {
  21356. return b.D.prototype.n.call(this, c) ? (this.Tc = a, !0) : !1
  21357. },
  21358. k: function() {
  21359. var a = new b.Iw;
  21360. a.n(this.q, this.Tc);
  21361. return a
  21362. },
  21363. reverse: function() {
  21364. b.log("cc.ProgressTo.reverse(): reverse hasn't been supported.");
  21365. return null
  21366. },
  21367. H: function(a) {
  21368. b.D.prototype.H.call(this, a);
  21369. this.Mc = a.percentage
  21370. },
  21371. update: function(a) {
  21372. this.target instanceof b.sa && (this.target.percentage = this.Mc + (this.Tc - this.Mc) * a)
  21373. }
  21374. });
  21375. b.JW = function(c, a) {
  21376. return new b.Iw(c, a)
  21377. };
  21378. b.Iw.create = b.JW;
  21379. b.Hw = b.D.extend({
  21380. Tc: 0,
  21381. Mc: 0,
  21382. ctor: function(d, a, c) {
  21383. b.D.prototype.ctor.call(this);
  21384. this.Mc = this.Tc = 0;
  21385. void 0 !== c && this.n(d, a, c)
  21386. },
  21387. n: function(d, a, c) {
  21388. return b.D.prototype.n.call(this, d) ? (this.Tc = c, this.Mc = a, !0) : !1
  21389. },
  21390. k: function() {
  21391. var a = new b.Hw;
  21392. a.n(this.q, this.Mc, this.Tc);
  21393. return a
  21394. },
  21395. reverse: function() {
  21396. return b.PB(this.q, this.Tc, this.Mc)
  21397. },
  21398. H: function(a) {
  21399. b.D.prototype.H.call(this, a)
  21400. },
  21401. update: function(a) {
  21402. this.target instanceof b.sa && (this.target.percentage = this.Mc + (this.Tc - this.Mc) * a)
  21403. }
  21404. });
  21405. b.PB = function(d, a, c) {
  21406. return new b.Hw(d, a, c)
  21407. };
  21408. b.Hw.create = b.PB;
  21409. (function() {
  21410. b.sa.A = function(c) {
  21411. b.f.A.call(this, c);
  21412. this.Db = !0;
  21413. this.ZD = Math.PI / 180;
  21414. this.iE = b.rect(0, 0, 0, 0);
  21415. this.Xy = b.d(0, 0);
  21416. this.Ij = 0;
  21417. this.kF = this.qH = 270;
  21418. this.vE = !1
  21419. };
  21420. var a = b.sa.A.prototype = Object.create(b.f.A.prototype);
  21421. a.constructor = b.sa.A;
  21422. a.wb = function(c, d, f) {
  21423. c = c || b.s;
  21424. var k = c.getContext(),
  21425. m = this.p,
  21426. p = m.tb,
  21427. r = p.i.ti,
  21428. t = p.i.pc / 255;
  21429. if (0 !== r.width && 0 !== r.height && p.P && r.Kr && 0 !== t) {
  21430. c.setTransform(this.ql, d, f);
  21431. c.vr(p.Fk);
  21432. c.xr(t);
  21433. var e = p.Aa,
  21434. g = p.ed,
  21435. t = g.x,
  21436. h = -g.y - e.height,
  21437. n = e.width,
  21438. e = e.height;
  21439. c.save();
  21440. p.Ac && (t = -t - n, k.scale(-1, 1));
  21441. p.Bc && (h = g.y, k.scale(1, -1));
  21442. m.Ec === b.sa.Dk ? (m = this.iE, k.beginPath(), k.rect(m.x * d, m.y * f, m.width * d, m.height * f), k.clip(), k.closePath()) : m.Ec === b.sa.gj && (m = this.Xy.x * d, g = this.Xy.y * f, k.beginPath(), k.arc(m, g, this.Ij * f, this.ZD * this.qH, this.ZD * this.kF, this.vE), k.lineTo(m, g), k.clip(), k.closePath());
  21443. m = p.P.xa;
  21444. p.jg ? k.drawImage(m, 0, 0, r.width, r.height, t * d, h * f, n * d, e * f) : k.drawImage(m, r.Hv, r.Iv, r.width, r.height, t * d, h * f, n * d, e * f);
  21445. c.restore();
  21446. b.df++
  21447. }
  21448. };
  21449. a.Ol = function() {};
  21450. a.jJ = function() {};
  21451. a.KH = function() {
  21452. var c = this.p,
  21453. e = c.tb,
  21454. f = e.width,
  21455. g = e.height,
  21456. h = c.gh;
  21457. if (c.Ec === b.sa.gj) {
  21458. this.Ij = Math.round(Math.sqrt(f * f + g * g));
  21459. var k, m = !1,
  21460. d = this.Xy;
  21461. d.x = f * h.x;
  21462. d.y = -g * h.y;
  21463. c.Gf ? (k = 270, h = 270 - 3.6 * c.hi) : (h = -90, k = -90 + 3.6 * c.hi);
  21464. e.Ac && (d.x -= 2 * f * c.gh.x, h = -h - 180, k = -k - 180, m = !m);
  21465. e.Bc && (d.y += 2 * g * c.gh.y, m = !m, h = -h, k = -k);
  21466. this.qH = h;
  21467. this.kF = k;
  21468. this.vE = m
  21469. } else {
  21470. m = c.xm, d = c.hi / 100, c = this.iE, m = b.size(f * (1 - m.x), g * (1 - m.y)), d = b.size((f - m.width) * d, (g - m.height) * d), m = b.size(m.width + d.width, m.height + d.height), k = b.d(f * h.x, g * h.y), d = k.x - m.width / 2, 0.5 < h.x && m.width / 2 >= f - k.x && (d = f - m.width), f = k.y - m.height / 2, 0.5 < h.y && m.height / 2 >= g - k.y && (f = g - m.height), c.x = 0, g = 1, e.Ac && (c.x -= m.width, g = -1), 0 < d && (c.x += d * g), c.y = 0, g = 1, e.Bc && (c.y += m.height, g = -1), 0 < f && (c.y -= f * g), c.width = m.width, c.height = -m.height
  21471. }
  21472. };
  21473. a.Va = function() {};
  21474. a.We = function(f) {
  21475. var g = this.p;
  21476. if (g.tb) {
  21477. var h = b.f.L,
  21478. c = this.C,
  21479. d = f ? f.p : null;
  21480. d && d.ec && f.C & h.ra && (c |= h.ra);
  21481. d && d.fc && f.C & h.pa && (c |= h.pa);
  21482. f && f.C & h.ba && (c |= h.ba);
  21483. this.C = c;
  21484. var g = g.tb.i,
  21485. d = g.C,
  21486. e = d & h.pa;
  21487. d & h.ra && ma(g);
  21488. e && la(g);
  21489. c & h.ba && this.transform(f)
  21490. }
  21491. };
  21492. a.updateStatus = function() {
  21493. var g = this.p;
  21494. if (g.tb) {
  21495. var c = b.f.L,
  21496. d = this.C,
  21497. g = g.tb.i,
  21498. e = g.C,
  21499. f = e & c.pa;
  21500. e & c.ra && g.Rf();
  21501. f && F(g);
  21502. d & c.ba && this.transform(G(this), !0);
  21503. this.C = 0
  21504. }
  21505. }
  21506. })();
  21507. (function() {
  21508. b.sa.F = function(c) {
  21509. b.f.F.call(this, c);
  21510. this.Db = !0;
  21511. this.$R = b.s.createBuffer();
  21512. this.ce = 0;
  21513. this.qh = this.gd = null;
  21514. this.Hu = !1
  21515. };
  21516. var a = b.sa.F.prototype = Object.create(b.f.F.prototype);
  21517. a.constructor = b.sa.F;
  21518. a.wb = function(e) {
  21519. var c = this.p;
  21520. e = e || b.s;
  21521. if (this.gd && c.tb) {
  21522. this.va.Ub();
  21523. this.va.wg(this.Rc);
  21524. var d = c.tb.O;
  21525. b.Vf(d.src, d.ya);
  21526. b.tc(b.pp);
  21527. b.Ee(c.tb.texture);
  21528. e.bindBuffer(e.ARRAY_BUFFER, this.$R);
  21529. this.Hu && (e.bufferData(e.ARRAY_BUFFER, this.qh, e.DYNAMIC_DRAW), this.Hu = !1);
  21530. d = b.$c.BYTES_PER_ELEMENT;
  21531. e.vertexAttribPointer(b.ab, 2, e.FLOAT, !1, d, 0);
  21532. e.vertexAttribPointer(b.ne, 4, e.UNSIGNED_BYTE, !0, d, 8);
  21533. e.vertexAttribPointer(b.Ed, 2, e.FLOAT, !1, d, 12);
  21534. c.Ec === b.sa.gj ? e.drawArrays(e.TRIANGLE_FAN, 0, this.ce) : c.Ec === b.sa.Dk && (c.Gf ? (e.drawArrays(e.TRIANGLE_STRIP, 0, this.ce / 2), e.drawArrays(e.TRIANGLE_STRIP, 4, this.ce / 2), b.df++) : e.drawArrays(e.TRIANGLE_STRIP, 0, this.ce));
  21535. b.df++
  21536. }
  21537. };
  21538. a.We = function(g) {
  21539. var c = this.p;
  21540. if (c.tb) {
  21541. var d = b.f.L,
  21542. e = this.C,
  21543. f = g ? g.p : null;
  21544. f && f.ec && g.C & d.ra && (e |= d.ra);
  21545. f && f.fc && g.C & d.pa && (e |= d.pa);
  21546. g && g.C & d.ba && (e |= d.ba);
  21547. this.C = e;
  21548. c = c.tb.i;
  21549. f = c.C;
  21550. e = f & d.ra;
  21551. d = f & d.pa;
  21552. e && ma(c);
  21553. d && la(c);
  21554. if (e || d) {
  21555. c.Va(), this.Va()
  21556. }
  21557. this.transform(g);
  21558. c.C = 0
  21559. }
  21560. };
  21561. a.updateStatus = function() {
  21562. var g = this.p;
  21563. if (g.tb) {
  21564. var c = b.f.L,
  21565. d = this.C,
  21566. g = g.tb.i,
  21567. e = g.C,
  21568. f = e & c.ra,
  21569. e = e & c.pa;
  21570. f && (g.Rf(), this.C ^= this.C & c.ra);
  21571. e && (F(g), this.C ^= this.C & c.pa);
  21572. if (f || e) {
  21573. g.Va(), this.Va()
  21574. }
  21575. d & c.ba && this.transform(G(this), !0)
  21576. }
  21577. };
  21578. a.Ol = function() {
  21579. this.gd && (this.qh = this.gd = null, this.ce = 0)
  21580. };
  21581. a.jJ = function() {
  21582. this.qh = this.gd = null;
  21583. this.ce = 0;
  21584. this.va = b.Ge.Hc(b.Ak)
  21585. };
  21586. a.KH = function() {
  21587. var c = this.p.Ec;
  21588. c === b.sa.gj ? this.YR() : c === b.sa.Dk && this.UR();
  21589. this.Hu = !0
  21590. };
  21591. a.UR = function() {
  21592. var g = this.p;
  21593. if (g.tb) {
  21594. var c, d = g.hi / 100;
  21595. c = g.xm;
  21596. c = b.Li(b.d(1 - c.x + d * c.x, 1 - c.y + d * c.y), 0.5);
  21597. d = b.od(g.gh, c);
  21598. g = b.Hg(g.gh, c);
  21599. 0 > d.x && (g.x += -d.x, d.x = 0);
  21600. 1 < g.x && (d.x -= g.x - 1, g.x = 1);
  21601. 0 > d.y && (g.y += -d.y, d.y = 0);
  21602. 1 < g.y && (d.y -= g.y - 1, g.y = 1);
  21603. if (this.Gf) {
  21604. if (!this.gd) {
  21605. this.ce = 8;
  21606. var e = b.$c.BYTES_PER_ELEMENT;
  21607. this.qh = new ArrayBuffer(8 * e);
  21608. var f = [];
  21609. for (c = 0; 8 > c; c++) {
  21610. f[c] = new b.$c(null, null, null, this.qh, c * e)
  21611. }
  21612. f[0].texCoords = this.Ld(b.d(0, 1));
  21613. f[0].vertices = this.Md(b.d(0, 1));
  21614. f[1].texCoords = this.Ld(b.d(0, 0));
  21615. f[1].vertices = this.Md(b.d(0, 0));
  21616. f[6].texCoords = this.Ld(b.d(1, 1));
  21617. f[6].vertices = this.Md(b.d(1, 1));
  21618. f[7].texCoords = this.Ld(b.d(1, 0));
  21619. f[7].vertices = this.Md(b.d(1, 0));
  21620. this.gd = f
  21621. }
  21622. c = this.gd;
  21623. c[2].texCoords = this.Ld(b.d(d.x, g.y));
  21624. c[2].vertices = this.Md(b.d(d.x, g.y));
  21625. c[3].texCoords = this.Ld(b.d(d.x, d.y));
  21626. c[3].vertices = this.Md(b.d(d.x, d.y));
  21627. c[4].texCoords = this.Ld(b.d(g.x, g.y));
  21628. c[4].vertices = this.Md(b.d(g.x, g.y));
  21629. c[5].texCoords = this.Ld(b.d(g.x, d.y));
  21630. c[5].vertices = this.Md(b.d(g.x, d.y))
  21631. } else {
  21632. if (!this.gd) {
  21633. for (this.ce = 4, e = b.$c.BYTES_PER_ELEMENT, this.qh = new ArrayBuffer(4 * e), this.gd = [], c = 0; 4 > c; c++) {
  21634. this.gd[c] = new b.$c(null, null, null, this.qh, c * e)
  21635. }
  21636. }
  21637. c = this.gd;
  21638. c[0].texCoords = this.Ld(b.d(d.x, g.y));
  21639. c[0].vertices = this.Md(b.d(d.x, g.y));
  21640. c[1].texCoords = this.Ld(b.d(d.x, d.y));
  21641. c[1].vertices = this.Md(b.d(d.x, d.y));
  21642. c[2].texCoords = this.Ld(b.d(g.x, g.y));
  21643. c[2].vertices = this.Md(b.d(g.x, g.y));
  21644. c[3].texCoords = this.Ld(b.d(g.x, d.y));
  21645. c[3].vertices = this.Md(b.d(g.x, d.y))
  21646. }
  21647. this.Va()
  21648. }
  21649. };
  21650. a.YR = function() {
  21651. var g = this.p;
  21652. if (g.tb) {
  21653. var h, k = g.gh;
  21654. h = g.hi / 100;
  21655. var m = 2 * b.PI * (g.Gf ? h : 1 - h),
  21656. g = b.d(k.x, 1),
  21657. n = b.KJ(g, k, m),
  21658. m = 0;
  21659. if (0 === h) {
  21660. n = g, m = 0
  21661. } else {
  21662. if (1 === h) {
  21663. n = g, m = 4
  21664. } else {
  21665. var p = b.SL,
  21666. c = b.sa.mD;
  21667. for (h = 0; h <= c; ++h) {
  21668. var d = (h + (c - 1)) % c,
  21669. e = this.Bx(h % c),
  21670. d = this.Bx(d);
  21671. 0 === h ? d = b.IJ(e, d, 1 - k.x) : 4 === h && (e = b.IJ(e, d, 1 - k.x));
  21672. var f = b.d(0, 0);
  21673. b.MB(e, d, k, n, f) && (0 !== h && 4 !== h || 0 <= f.x && 1 >= f.x) && 0 <= f.y && f.y < p && (p = f.y, m = h)
  21674. }
  21675. n = b.Hg(k, b.Li(b.od(n, k), p))
  21676. }
  21677. }
  21678. p = !0;
  21679. this.ce !== m + 3 && (p = !1, this.qh = this.gd = null, this.ce = 0);
  21680. if (!this.gd) {
  21681. c = this.ce = m + 3;
  21682. e = b.$c.BYTES_PER_ELEMENT;
  21683. this.qh = new ArrayBuffer(c * e);
  21684. d = [];
  21685. for (h = 0; h < c; h++) {
  21686. d[h] = new b.$c(null, null, null, this.qh, h * e)
  21687. }
  21688. this.gd = d;
  21689. if (!this.gd) {
  21690. b.log("cc.ProgressTimer._updateRadial() : Not enough memory");
  21691. return
  21692. }
  21693. }
  21694. this.Va();
  21695. c = this.gd;
  21696. if (!p) {
  21697. for (c[0].texCoords = this.Ld(k), c[0].vertices = this.Md(k), c[1].texCoords = this.Ld(g), c[1].vertices = this.Md(g), h = 0; h < m; h++) {
  21698. k = this.Bx(h), c[h + 2].texCoords = this.Ld(k), c[h + 2].vertices = this.Md(k)
  21699. }
  21700. }
  21701. c[this.ce - 1].texCoords = this.Ld(n);
  21702. c[this.ce - 1].vertices = this.Md(n)
  21703. }
  21704. };
  21705. a.Bx = function(d) {
  21706. if (d < b.sa.mD) {
  21707. var c = b.sa.TN;
  21708. return this.p.Gf ? b.d(c >> 7 - (d << 1) & 1, c >> 7 - ((d << 1) + 1) & 1) : b.d(c >> (d << 1) + 1 & 1, c >> (d << 1) & 1)
  21709. }
  21710. return b.d(0, 0)
  21711. };
  21712. a.Ld = function(f) {
  21713. var c = this.p.tb;
  21714. if (!c) {
  21715. return {
  21716. u: 0,
  21717. v: 0
  21718. }
  21719. }
  21720. var d = c.quad,
  21721. e = b.d(d.bl.texCoords.u, d.bl.texCoords.v),
  21722. d = b.d(d.tr.texCoords.u, d.tr.texCoords.v);
  21723. c.textureRectRotated && (c = f.x, f.x = f.y, f.y = c);
  21724. return {
  21725. u: e.x * (1 - f.x) + d.x * f.x,
  21726. v: e.y * (1 - f.y) + d.y * f.y
  21727. }
  21728. };
  21729. a.Md = function(e) {
  21730. var c = this.p.tb;
  21731. if (!c) {
  21732. return {
  21733. x: 0,
  21734. y: 0
  21735. }
  21736. }
  21737. var d = c.quad,
  21738. c = b.d(d.bl.vertices.x, d.bl.vertices.y),
  21739. d = b.d(d.tr.vertices.x, d.tr.vertices.y);
  21740. return {
  21741. x: c.x * (1 - e.x) + d.x * e.x,
  21742. y: c.y * (1 - e.y) + d.y * e.y
  21743. }
  21744. };
  21745. a.Va = function() {
  21746. var f = this.p;
  21747. if (f.tb && this.gd) {
  21748. for (var f = f.tb.quad.tl.colors, c = this.gd, d = 0, e = this.ce; d < e; ++d) {
  21749. c[d].colors = f
  21750. }
  21751. this.Hu = !0
  21752. }
  21753. }
  21754. })();
  21755. b.jp = 4208917214;
  21756. b.t0 = 0;
  21757. b.ej = 1;
  21758. b.Gs = 0;
  21759. b.s0 = 1;
  21760. b.aa = b.Pg.extend({
  21761. fa: null,
  21762. La: null,
  21763. q: null,
  21764. qg: !1,
  21765. TF: !1,
  21766. gc: "TransitionScene",
  21767. ctor: function(c, a) {
  21768. b.Pg.prototype.ctor.call(this);
  21769. void 0 !== c && void 0 !== a && this.n(c, a)
  21770. },
  21771. cH: function() {
  21772. this.Ri(this.cH);
  21773. var a = b.I;
  21774. this.TF = a.Mj;
  21775. a.Jg(this.fa);
  21776. b.ka.Wc(!0);
  21777. this.La.visible = !0
  21778. },
  21779. mh: function() {
  21780. this.qg = !0
  21781. },
  21782. ga: function() {
  21783. this.qg ? (this.La.ga(), this.fa.ga()) : (this.fa.ga(), this.La.ga());
  21784. b.f.prototype.ga.call(this)
  21785. },
  21786. X: function() {
  21787. b.f.prototype.X.call(this);
  21788. b.ka.Wc(!1);
  21789. this.La.Eh();
  21790. this.fa.X()
  21791. },
  21792. Ib: function() {
  21793. b.f.prototype.Ib.call(this);
  21794. b.ka.Wc(!0);
  21795. this.La.Ib();
  21796. this.fa.Kl()
  21797. },
  21798. Od: function() {
  21799. b.f.prototype.Od.call(this);
  21800. this.TF && this.La.Od()
  21801. },
  21802. n: function(c, a) {
  21803. if (!a) {
  21804. throw "cc.TransitionScene.initWithDuration(): Argument scene must be non-nil"
  21805. }
  21806. if (this.oa()) {
  21807. this.q = c;
  21808. this.$e({
  21809. x: 0,
  21810. y: 0,
  21811. anchorX: 0,
  21812. anchorY: 0
  21813. });
  21814. this.fa = a;
  21815. this.La = b.I.rc;
  21816. this.La || (this.La = new b.Pg, this.La.oa());
  21817. if (this.fa === this.La) {
  21818. throw "cc.TransitionScene.initWithDuration(): Incoming scene must be different from the outgoing scene"
  21819. }
  21820. this.mh();
  21821. return !0
  21822. }
  21823. return !1
  21824. },
  21825. finish: function() {
  21826. this.fa.$e({
  21827. visible: !0,
  21828. x: 0,
  21829. y: 0,
  21830. scale: 1,
  21831. rotation: 0
  21832. });
  21833. b.ua === b.Lb && this.fa.Wn().restore();
  21834. this.La.$e({
  21835. visible: !1,
  21836. x: 0,
  21837. y: 0,
  21838. scale: 1,
  21839. rotation: 0
  21840. });
  21841. b.ua === b.Lb && this.La.Wn().restore();
  21842. this.Ni(this.cH, 0)
  21843. },
  21844. zB: function() {
  21845. this.fa.visible = !0;
  21846. this.La.visible = !1
  21847. }
  21848. });
  21849. b.aa.create = function(c, a) {
  21850. return new b.aa(c, a)
  21851. };
  21852. b.me = b.aa.extend({
  21853. Zk: 0,
  21854. ctor: function(d, a, c) {
  21855. b.aa.prototype.ctor.call(this);
  21856. void 0 != c && this.n(d, a, c)
  21857. },
  21858. n: function(d, a, c) {
  21859. b.aa.prototype.n.call(this, d, a) && (this.Zk = c);
  21860. return !0
  21861. }
  21862. });
  21863. b.me.create = function(d, a, c) {
  21864. return new b.me(d, a, c)
  21865. };
  21866. b.JD = b.aa.extend({
  21867. ctor: function(c, a) {
  21868. b.aa.prototype.ctor.call(this);
  21869. a && this.n(c, a)
  21870. },
  21871. X: function() {
  21872. b.aa.prototype.X.call(this);
  21873. this.fa.$e({
  21874. scale: 0.001,
  21875. anchorX: 0.5,
  21876. anchorY: 0.5
  21877. });
  21878. this.La.$e({
  21879. scale: 1,
  21880. anchorX: 0.5,
  21881. anchorY: 0.5
  21882. });
  21883. var a = b.gb(b.hk(b.eK(this.q / 2, 0.001), b.XB(this.q / 2, 720)), b.vd(this.q / 2));
  21884. this.La.ha(a);
  21885. this.fa.ha(b.gb(a.reverse(), b.$b(this.finish, this)))
  21886. }
  21887. });
  21888. b.JD.create = function(c, a) {
  21889. return new b.JD(c, a)
  21890. };
  21891. b.zD = b.aa.extend({
  21892. ctor: function(c, a) {
  21893. b.aa.prototype.ctor.call(this);
  21894. a && this.n(c, a)
  21895. },
  21896. X: function() {
  21897. b.aa.prototype.X.call(this);
  21898. var d = b.I.Ea();
  21899. this.fa.$e({
  21900. scale: 0.5,
  21901. x: d.width,
  21902. y: 0,
  21903. anchorX: 0.5,
  21904. anchorY: 0.5
  21905. });
  21906. this.La.anchorX = 0.5;
  21907. this.La.anchorY = 0.5;
  21908. var a = b.yJ(this.q / 4, b.d(-d.width, 0), d.width / 4, 2),
  21909. c = b.Fe(this.q / 4, 1),
  21910. d = b.Fe(this.q / 4, 0.5),
  21911. d = b.gb(d, a),
  21912. a = b.gb(a, c),
  21913. c = b.vd(this.q / 2);
  21914. this.La.ha(d);
  21915. this.fa.ha(b.gb(c, a, b.$b(this.finish, this)))
  21916. }
  21917. });
  21918. b.zD.create = function(c, a) {
  21919. return new b.zD(c, a)
  21920. };
  21921. b.ij = b.aa.extend({
  21922. ctor: function(c, a) {
  21923. b.aa.prototype.ctor.call(this);
  21924. a && this.n(c, a)
  21925. },
  21926. X: function() {
  21927. b.aa.prototype.X.call(this);
  21928. this.Fi();
  21929. var a = this.action();
  21930. this.fa.ha(b.gb(this.bf(a), b.$b(this.finish, this)))
  21931. },
  21932. Fi: function() {
  21933. this.fa.G(-b.I.Ea().width, 0)
  21934. },
  21935. action: function() {
  21936. return b.moveTo(this.q, b.d(0, 0))
  21937. },
  21938. bf: function(a) {
  21939. return new b.em(a, 2)
  21940. }
  21941. });
  21942. b.ij.create = function(c, a) {
  21943. return new b.ij(c, a)
  21944. };
  21945. b.BD = b.ij.extend({
  21946. ctor: function(c, a) {
  21947. b.ij.prototype.ctor.call(this);
  21948. a && this.n(c, a)
  21949. },
  21950. Fi: function() {
  21951. this.fa.G(b.I.Ea().width, 0)
  21952. }
  21953. });
  21954. b.BD.create = function(c, a) {
  21955. return new b.BD(c, a)
  21956. };
  21957. b.CD = b.ij.extend({
  21958. ctor: function(c, a) {
  21959. b.ij.prototype.ctor.call(this);
  21960. a && this.n(c, a)
  21961. },
  21962. Fi: function() {
  21963. this.fa.G(0, b.I.Ea().height)
  21964. }
  21965. });
  21966. b.CD.create = function(c, a) {
  21967. return new b.CD(c, a)
  21968. };
  21969. b.AD = b.ij.extend({
  21970. ctor: function(c, a) {
  21971. b.ij.prototype.ctor.call(this);
  21972. a && this.n(c, a)
  21973. },
  21974. Fi: function() {
  21975. this.fa.G(0, -b.I.Ea().height)
  21976. }
  21977. });
  21978. b.AD.create = function(c, a) {
  21979. return new b.AD(c, a)
  21980. };
  21981. b.Ui = 0.5;
  21982. b.jj = b.aa.extend({
  21983. ctor: function(c, a) {
  21984. b.aa.prototype.ctor.call(this);
  21985. a && this.n(c, a)
  21986. },
  21987. mh: function() {
  21988. this.qg = !1
  21989. },
  21990. X: function() {
  21991. b.aa.prototype.X.call(this);
  21992. this.Fi();
  21993. var c = this.action(),
  21994. a = this.action(),
  21995. c = this.bf(c),
  21996. a = b.gb(this.bf(a), b.$b(this.finish, this));
  21997. this.fa.ha(c);
  21998. this.La.ha(a)
  21999. },
  22000. Fi: function() {
  22001. this.fa.G(-b.I.Ea().width + b.Ui, 0)
  22002. },
  22003. action: function() {
  22004. return b.moveBy(this.q, b.d(b.I.Ea().width - b.Ui, 0))
  22005. },
  22006. bf: function(a) {
  22007. return new b.dm(a, 2)
  22008. }
  22009. });
  22010. b.jj.create = function(c, a) {
  22011. return new b.jj(c, a)
  22012. };
  22013. b.MD = b.jj.extend({
  22014. ctor: function(c, a) {
  22015. b.jj.prototype.ctor.call(this);
  22016. a && this.n(c, a)
  22017. },
  22018. mh: function() {
  22019. this.qg = !0
  22020. },
  22021. Fi: function() {
  22022. this.fa.G(b.I.Ea().width - b.Ui, 0)
  22023. },
  22024. action: function() {
  22025. return b.moveBy(this.q, b.d(-(b.I.Ea().width - b.Ui), 0))
  22026. }
  22027. });
  22028. b.MD.create = function(c, a) {
  22029. return new b.MD(c, a)
  22030. };
  22031. b.LD = b.jj.extend({
  22032. ctor: function(c, a) {
  22033. b.jj.prototype.ctor.call(this);
  22034. a && this.n(c, a)
  22035. },
  22036. mh: function() {
  22037. this.qg = !1
  22038. },
  22039. Fi: function() {
  22040. this.fa.G(0, -(b.I.Ea().height - b.Ui))
  22041. },
  22042. action: function() {
  22043. return b.moveBy(this.q, b.d(0, b.I.Ea().height - b.Ui))
  22044. }
  22045. });
  22046. b.LD.create = function(c, a) {
  22047. return new b.LD(c, a)
  22048. };
  22049. b.ND = b.jj.extend({
  22050. ctor: function(c, a) {
  22051. b.jj.prototype.ctor.call(this);
  22052. a && this.n(c, a)
  22053. },
  22054. mh: function() {
  22055. this.qg = !0
  22056. },
  22057. Fi: function() {
  22058. this.fa.G(0, b.I.Ea().height - b.Ui)
  22059. },
  22060. action: function() {
  22061. return b.moveBy(this.q, b.d(0, -(b.I.Ea().height - b.Ui)))
  22062. }
  22063. });
  22064. b.ND.create = function(c, a) {
  22065. return new b.ND(c, a)
  22066. };
  22067. b.KD = b.aa.extend({
  22068. ctor: function(c, a) {
  22069. b.aa.prototype.ctor.call(this);
  22070. a && this.n(c, a)
  22071. },
  22072. X: function() {
  22073. b.aa.prototype.X.call(this);
  22074. this.fa.$e({
  22075. scale: 0.001,
  22076. anchorX: 2 / 3,
  22077. anchorY: 0.5
  22078. });
  22079. this.La.$e({
  22080. scale: 1,
  22081. anchorX: 1 / 3,
  22082. anchorY: 0.5
  22083. });
  22084. var c = b.Fe(this.q, 0.01),
  22085. a = b.Fe(this.q, 1);
  22086. this.fa.ha(this.bf(a));
  22087. this.La.ha(b.gb(this.bf(c), b.$b(this.finish, this)))
  22088. },
  22089. bf: function(a) {
  22090. return new b.em(a, 2)
  22091. }
  22092. });
  22093. b.KD.create = function(c, a) {
  22094. return new b.KD(c, a)
  22095. };
  22096. b.xD = b.me.extend({
  22097. ctor: function(d, a, c) {
  22098. b.me.prototype.ctor.call(this);
  22099. null == c && (c = b.ej);
  22100. a && this.n(d, a, c)
  22101. },
  22102. X: function() {
  22103. b.aa.prototype.X.call(this);
  22104. var d, a;
  22105. this.fa.visible = !1;
  22106. var c;
  22107. this.Zk === b.ej ? (d = 90, c = 270, a = 90) : (d = -90, c = 90, a = -90);
  22108. d = b.gb(b.vd(this.q / 2), b.show(), b.gf(this.q / 2, 1, 0, c, d, 0, 0), b.$b(this.finish, this));
  22109. a = b.gb(b.gf(this.q / 2, 1, 0, 0, a, 0, 0), b.Gl(), b.vd(this.q / 2));
  22110. this.fa.ha(d);
  22111. this.La.ha(a)
  22112. }
  22113. });
  22114. b.xD.create = function(d, a, c) {
  22115. return new b.xD(d, a, c)
  22116. };
  22117. b.yD = b.me.extend({
  22118. ctor: function(d, a, c) {
  22119. b.me.prototype.ctor.call(this);
  22120. null == c && (c = b.Gs);
  22121. a && this.n(d, a, c)
  22122. },
  22123. X: function() {
  22124. b.aa.prototype.X.call(this);
  22125. var d, a;
  22126. this.fa.visible = !1;
  22127. var c;
  22128. this.Zk === b.Gs ? (d = 90, c = 270, a = 90) : (d = -90, c = 90, a = -90);
  22129. d = b.gb(b.vd(this.q / 2), b.show(), b.gf(this.q / 2, 1, 0, c, d, 90, 0), b.$b(this.finish, this));
  22130. a = b.gb(b.gf(this.q / 2, 1, 0, 0, a, 90, 0), b.Gl(), b.vd(this.q / 2));
  22131. this.fa.ha(d);
  22132. this.La.ha(a)
  22133. }
  22134. });
  22135. b.yD.create = function(d, a, c) {
  22136. return new b.yD(d, a, c)
  22137. };
  22138. b.wD = b.me.extend({
  22139. ctor: function(d, a, c) {
  22140. b.me.prototype.ctor.call(this);
  22141. null == c && (c = b.ej);
  22142. a && this.n(d, a, c)
  22143. },
  22144. X: function() {
  22145. b.aa.prototype.X.call(this);
  22146. var d, a;
  22147. this.fa.visible = !1;
  22148. var c;
  22149. this.Zk === b.ej ? (d = 90, c = 270, a = 90) : (d = -90, c = 90, a = -90);
  22150. d = b.gb(b.vd(this.q / 2), b.show(), b.gf(this.q / 2, 1, 0, c, d, -45, 0), b.$b(this.finish, this));
  22151. a = b.gb(b.gf(this.q / 2, 1, 0, 0, a, 45, 0), b.Gl(), b.vd(this.q / 2));
  22152. this.fa.ha(d);
  22153. this.La.ha(a)
  22154. }
  22155. });
  22156. b.wD.create = function(d, a, c) {
  22157. return new b.wD(d, a, c)
  22158. };
  22159. b.RD = b.me.extend({
  22160. ctor: function(d, a, c) {
  22161. b.me.prototype.ctor.call(this);
  22162. null == c && (c = b.ej);
  22163. a && this.n(d, a, c)
  22164. },
  22165. X: function() {
  22166. b.aa.prototype.X.call(this);
  22167. var d, a;
  22168. this.fa.visible = !1;
  22169. var c;
  22170. this.Zk === b.ej ? (d = 90, c = 270, a = 90) : (d = -90, c = 90, a = -90);
  22171. d = b.gb(b.vd(this.q / 2), b.hk(b.gf(this.q / 2, 1, 0, c, d, 0, 0), b.Fe(this.q / 2, 1), b.show()), b.$b(this.finish, this));
  22172. a = b.gb(b.hk(b.gf(this.q / 2, 1, 0, 0, a, 0, 0), b.Fe(this.q / 2, 0.5)), b.Gl(), b.vd(this.q / 2));
  22173. this.fa.scale = 0.5;
  22174. this.fa.ha(d);
  22175. this.La.ha(a)
  22176. }
  22177. });
  22178. b.RD.create = function(d, a, c) {
  22179. return new b.RD(d, a, c)
  22180. };
  22181. b.SD = b.me.extend({
  22182. ctor: function(d, a, c) {
  22183. b.me.prototype.ctor.call(this);
  22184. null == c && (c = b.Gs);
  22185. a && this.n(d, a, c)
  22186. },
  22187. X: function() {
  22188. b.aa.prototype.X.call(this);
  22189. var d, a;
  22190. this.fa.visible = !1;
  22191. var c;
  22192. this.Zk === b.Gs ? (d = 90, c = 270, a = 90) : (d = -90, c = 90, a = -90);
  22193. d = b.gb(b.vd(this.q / 2), b.hk(b.gf(this.q / 2, 1, 0, c, d, 90, 0), b.Fe(this.q / 2, 1), b.show()), b.$b(this.finish, this));
  22194. a = b.gb(b.hk(b.gf(this.q / 2, 1, 0, 0, a, 90, 0), b.Fe(this.q / 2, 0.5)), b.Gl(), b.vd(this.q / 2));
  22195. this.fa.scale = 0.5;
  22196. this.fa.ha(d);
  22197. this.La.ha(a)
  22198. }
  22199. });
  22200. b.SD.create = function(d, a, c) {
  22201. return new b.SD(d, a, c)
  22202. };
  22203. b.QD = b.me.extend({
  22204. ctor: function(d, a, c) {
  22205. b.me.prototype.ctor.call(this);
  22206. null == c && (c = b.ej);
  22207. a && this.n(d, a, c)
  22208. },
  22209. X: function() {
  22210. b.aa.prototype.X.call(this);
  22211. var d, a;
  22212. this.fa.visible = !1;
  22213. var c;
  22214. this.Zk === b.ej ? (d = 90, c = 270, a = 90) : (d = -90, c = 90, a = -90);
  22215. d = b.gb(b.vd(this.q / 2), b.hk(b.gf(this.q / 2, 1, 0, c, d, -45, 0), b.Fe(this.q / 2, 1), b.show()), b.show(), b.$b(this.finish, this));
  22216. a = b.gb(b.hk(b.gf(this.q / 2, 1, 0, 0, a, 45, 0), b.Fe(this.q / 2, 0.5)), b.Gl(), b.vd(this.q / 2));
  22217. this.fa.scale = 0.5;
  22218. this.fa.ha(d);
  22219. this.La.ha(a)
  22220. }
  22221. });
  22222. b.QD.create = function(d, a, c) {
  22223. return new b.QD(d, a, c)
  22224. };
  22225. b.gg = b.aa.extend({
  22226. yf: null,
  22227. ctor: function(d, a, c) {
  22228. b.aa.prototype.ctor.call(this);
  22229. this.yf = b.color();
  22230. a && this.n(d, a, c)
  22231. },
  22232. X: function() {
  22233. b.aa.prototype.X.call(this);
  22234. var c = new b.sb(this.yf);
  22235. this.fa.visible = !1;
  22236. this.B(c, 2, b.jp);
  22237. var c = this.Ci(b.jp),
  22238. a = b.gb(b.GI(this.q / 2), b.$b(this.zB, this), b.HI(this.q / 2), b.$b(this.finish, this));
  22239. c.ha(a)
  22240. },
  22241. Ib: function() {
  22242. b.aa.prototype.Ib.call(this);
  22243. this.UB(b.jp, !1)
  22244. },
  22245. n: function(d, a, c) {
  22246. c = c || b.color.BLACK;
  22247. b.aa.prototype.n.call(this, d, a) && (this.yf.r = c.r, this.yf.g = c.g, this.yf.b = c.b, this.yf.a = 0);
  22248. return !0
  22249. }
  22250. });
  22251. b.gg.create = function(d, a, c) {
  22252. return new b.gg(d, a, c)
  22253. };
  22254. b.sD = b.aa.extend({
  22255. ctor: function(c, a) {
  22256. b.aa.prototype.ctor.call(this);
  22257. a && this.n(c, a)
  22258. },
  22259. X: function() {
  22260. b.aa.prototype.X.call(this);
  22261. var e = b.color(0, 0, 0, 0),
  22262. a = b.I.Ea(),
  22263. e = new b.sb(e),
  22264. c = new b.je(a.width, a.height);
  22265. c.sprite.anchorX = 0.5;
  22266. c.sprite.anchorY = 0.5;
  22267. c.$e({
  22268. x: a.width / 2,
  22269. y: a.height / 2,
  22270. anchorX: 0.5,
  22271. anchorY: 0.5
  22272. });
  22273. c.zi();
  22274. this.fa.ga();
  22275. c.end();
  22276. var d = new b.je(a.width, a.height);
  22277. d.G(a.width / 2, a.height / 2);
  22278. d.sprite.anchorX = d.anchorX = 0.5;
  22279. d.sprite.anchorY = d.anchorY = 0.5;
  22280. d.zi();
  22281. this.La.ga();
  22282. d.end();
  22283. c.sprite.Hh(b.ONE, b.ONE);
  22284. d.sprite.Hh(b.SRC_ALPHA, b.ONE_MINUS_SRC_ALPHA);
  22285. e.B(c);
  22286. e.B(d);
  22287. c.sprite.opacity = 255;
  22288. d.sprite.opacity = 255;
  22289. a = b.gb(b.WA(this.q, 0), b.$b(this.zB, this), b.$b(this.finish, this));
  22290. d.sprite.ha(a);
  22291. this.B(e, 2, b.jp)
  22292. },
  22293. Ib: function() {
  22294. this.UB(b.jp, !1);
  22295. b.aa.prototype.Ib.call(this)
  22296. },
  22297. ga: function() {
  22298. b.f.prototype.ga.call(this)
  22299. },
  22300. AT: function() {}
  22301. });
  22302. b.sD.create = function(c, a) {
  22303. return new b.sD(c, a)
  22304. };
  22305. b.PD = b.aa.extend({
  22306. Sb: null,
  22307. ctor: function(c, a) {
  22308. b.aa.prototype.ctor.call(this);
  22309. this.Sb = new b.Bw;
  22310. a && this.n(c, a)
  22311. },
  22312. mh: function() {
  22313. this.qg = !1
  22314. },
  22315. X: function() {
  22316. b.aa.prototype.X.call(this);
  22317. this.Sb.gk(this.La);
  22318. this.Sb.X();
  22319. var a = b.I.Ea(),
  22320. a = b.Lba(this.q, b.size(0 | a.width / a.height * 12, 12)),
  22321. a = this.bf(a);
  22322. this.Sb.ha(b.gb(a, b.$b(this.finish, this), b.Zv()))
  22323. },
  22324. ga: function() {
  22325. this.fa.ga();
  22326. this.Sb.ga()
  22327. },
  22328. bf: function(a) {
  22329. return a
  22330. }
  22331. });
  22332. b.PD.create = function(c, a) {
  22333. return new b.PD(c, a)
  22334. };
  22335. b.Ks = b.aa.extend({
  22336. Sb: null,
  22337. OR: function() {
  22338. this.Sb.gk(this.fa)
  22339. },
  22340. ctor: function(c, a) {
  22341. b.aa.prototype.ctor.call(this);
  22342. this.Sb = new b.Bw;
  22343. a && this.n(c, a)
  22344. },
  22345. X: function() {
  22346. b.aa.prototype.X.call(this);
  22347. this.Sb.gk(this.La);
  22348. this.Sb.X();
  22349. var a = this.action(),
  22350. a = b.gb(a, b.$b(this.OR, this), a.reverse());
  22351. this.Sb.ha(b.gb(this.bf(a), b.$b(this.finish, this), b.Zv()))
  22352. },
  22353. Ib: function() {
  22354. this.Sb.gk(null);
  22355. this.Sb.Ib();
  22356. b.aa.prototype.Ib.call(this)
  22357. },
  22358. ga: function() {
  22359. this.Sb.ga()
  22360. },
  22361. bf: function(a) {
  22362. return new b.dm(a, 3)
  22363. },
  22364. action: function() {
  22365. return b.kba(this.q / 2, 3)
  22366. }
  22367. });
  22368. b.Ks.create = function(c, a) {
  22369. return new b.Ks(c, a)
  22370. };
  22371. b.OD = b.Ks.extend({
  22372. ctor: function(c, a) {
  22373. b.Ks.prototype.ctor.call(this);
  22374. a && this.n(c, a)
  22375. },
  22376. action: function() {
  22377. return b.lba(this.q / 2, 3)
  22378. }
  22379. });
  22380. b.OD.create = function(c, a) {
  22381. return new b.OD(c, a)
  22382. };
  22383. b.hj = b.aa.extend({
  22384. Sb: null,
  22385. ctor: function(c, a) {
  22386. b.aa.prototype.ctor.call(this);
  22387. this.Sb = new b.Bw;
  22388. a && this.n(c, a)
  22389. },
  22390. mh: function() {
  22391. this.qg = !1
  22392. },
  22393. X: function() {
  22394. b.aa.prototype.X.call(this);
  22395. this.Sb.gk(this.La);
  22396. this.Sb.X();
  22397. var a = b.I.Ea(),
  22398. a = this.Kn(b.size(0 | a.width / a.height * 12, 12));
  22399. this.Sb.ha(b.gb(this.bf(a), b.$b(this.finish, this), b.Zv()))
  22400. },
  22401. ga: function() {
  22402. this.fa.ga();
  22403. this.Sb.ga()
  22404. },
  22405. bf: function(a) {
  22406. return a
  22407. },
  22408. Kn: function(a) {
  22409. return b.h4(this.q, a)
  22410. }
  22411. });
  22412. b.hj.create = function(c, a) {
  22413. return new b.hj(c, a)
  22414. };
  22415. b.tD = b.hj.extend({
  22416. ctor: function(c, a) {
  22417. b.hj.prototype.ctor.call(this);
  22418. a && this.n(c, a)
  22419. },
  22420. Kn: function(a) {
  22421. return b.f4(this.q, a)
  22422. }
  22423. });
  22424. b.tD.create = function(c, a) {
  22425. return new b.tD(c, a)
  22426. };
  22427. b.vD = b.hj.extend({
  22428. ctor: function(c, a) {
  22429. b.hj.prototype.ctor.call(this);
  22430. a && this.n(c, a)
  22431. },
  22432. Kn: function(a) {
  22433. return new b.i_(this.q, a)
  22434. }
  22435. });
  22436. b.vD.create = function(c, a) {
  22437. return new b.vD(c, a)
  22438. };
  22439. b.uD = b.hj.extend({
  22440. ctor: function(c, a) {
  22441. b.hj.prototype.ctor.call(this);
  22442. a && this.n(c, a)
  22443. },
  22444. Kn: function(a) {
  22445. return b.g4(this.q, a)
  22446. }
  22447. });
  22448. b.uD.create = function(c, a) {
  22449. return new b.uD(c, a)
  22450. };
  22451. b.eD = 49153;
  22452. b.le = b.aa.extend({
  22453. Tc: 0,
  22454. Mc: 0,
  22455. ju: null,
  22456. gc: "TransitionProgress",
  22457. ctor: function(c, a) {
  22458. b.aa.prototype.ctor.call(this);
  22459. a && this.n(c, a)
  22460. },
  22461. il: function(d, a, c) {
  22462. d.$e({
  22463. x: a,
  22464. y: c,
  22465. anchorX: 0.5,
  22466. anchorY: 0.5
  22467. })
  22468. },
  22469. X: function() {
  22470. b.aa.prototype.X.call(this);
  22471. this.iH();
  22472. var c = b.I.Ea(),
  22473. a = new b.je(c.width, c.height);
  22474. a.sprite.anchorX = 0.5;
  22475. a.sprite.anchorY = 0.5;
  22476. this.il(a, c.width / 2, c.height / 2);
  22477. a.clear(0, 0, 0, 1);
  22478. a.zi();
  22479. this.ju.ga();
  22480. a.end();
  22481. this.ju === this.La && this.zB();
  22482. c = this.al(a);
  22483. a = b.gb(b.PB(this.q, this.Mc, this.Tc), b.$b(this.finish, this));
  22484. c.ha(a);
  22485. this.B(c, 2, b.eD)
  22486. },
  22487. Ib: function() {
  22488. this.UB(b.eD, !0);
  22489. b.aa.prototype.Ib.call(this)
  22490. },
  22491. iH: function() {
  22492. this.ju = this.La;
  22493. this.Mc = 100;
  22494. this.Tc = 0
  22495. },
  22496. al: function() {
  22497. b.log("cc.TransitionProgress._progressTimerNodeWithRenderTexture(): should be overridden in subclass");
  22498. return null
  22499. },
  22500. mh: function() {
  22501. this.qg = !1
  22502. }
  22503. });
  22504. b.le.create = function(c, a) {
  22505. return new b.le(c, a)
  22506. };
  22507. b.HD = b.le.extend({
  22508. ctor: function(c, a) {
  22509. b.le.prototype.ctor.call(this);
  22510. a && this.n(c, a)
  22511. },
  22512. al: function(c) {
  22513. var a = b.I.Ea();
  22514. c = new b.sa(c.sprite);
  22515. b.ua === b.Lb && (c.sprite.flippedY = !0);
  22516. c.type = b.sa.gj;
  22517. c.reverseDir = !1;
  22518. c.percentage = 100;
  22519. this.il(c, a.width / 2, a.height / 2);
  22520. return c
  22521. }
  22522. });
  22523. b.HD.create = function(c, a) {
  22524. return new b.HD(c, a)
  22525. };
  22526. b.ix = b.le.extend({
  22527. ctor: function(c, a) {
  22528. b.le.prototype.ctor.call(this);
  22529. a && this.n(c, a)
  22530. },
  22531. al: function(c) {
  22532. var a = b.I.Ea();
  22533. c = new b.sa(c.sprite);
  22534. b.ua === b.Lb && (c.sprite.flippedY = !0);
  22535. c.type = b.sa.gj;
  22536. c.reverseDir = !0;
  22537. c.percentage = 100;
  22538. this.il(c, a.width / 2, a.height / 2);
  22539. return c
  22540. }
  22541. });
  22542. b.ix.create = function(d, a) {
  22543. var c = new b.ix;
  22544. return null !== c && c.n(d, a) ? c : new b.ix(d, a)
  22545. };
  22546. b.ED = b.le.extend({
  22547. ctor: function(c, a) {
  22548. b.le.prototype.ctor.call(this);
  22549. a && this.n(c, a)
  22550. },
  22551. al: function(c) {
  22552. var a = b.I.Ea();
  22553. c = new b.sa(c.sprite);
  22554. b.ua === b.Lb && (c.sprite.flippedY = !0);
  22555. c.type = b.sa.Dk;
  22556. c.midPoint = b.d(1, 0);
  22557. c.barChangeRate = b.d(1, 0);
  22558. c.percentage = 100;
  22559. this.il(c, a.width / 2, a.height / 2);
  22560. return c
  22561. }
  22562. });
  22563. b.ED.create = function(c, a) {
  22564. return new b.ED(c, a)
  22565. };
  22566. b.ID = b.le.extend({
  22567. ctor: function(c, a) {
  22568. b.le.prototype.ctor.call(this);
  22569. a && this.n(c, a)
  22570. },
  22571. al: function(c) {
  22572. var a = b.I.Ea();
  22573. c = new b.sa(c.sprite);
  22574. b.ua === b.Lb && (c.sprite.flippedY = !0);
  22575. c.type = b.sa.Dk;
  22576. c.midPoint = b.d(0, 0);
  22577. c.barChangeRate = b.d(0, 1);
  22578. c.percentage = 100;
  22579. this.il(c, a.width / 2, a.height / 2);
  22580. return c
  22581. }
  22582. });
  22583. b.ID.create = function(c, a) {
  22584. return new b.ID(c, a)
  22585. };
  22586. b.FD = b.le.extend({
  22587. ctor: function(c, a) {
  22588. b.le.prototype.ctor.call(this);
  22589. a && this.n(c, a)
  22590. },
  22591. al: function(c) {
  22592. var a = b.I.Ea();
  22593. c = new b.sa(c.sprite);
  22594. b.ua === b.Lb && (c.sprite.flippedY = !0);
  22595. c.type = b.sa.Dk;
  22596. c.midPoint = b.d(0.5, 0.5);
  22597. c.barChangeRate = b.d(1, 1);
  22598. c.percentage = 0;
  22599. this.il(c, a.width / 2, a.height / 2);
  22600. return c
  22601. },
  22602. mh: function() {
  22603. this.qg = !1
  22604. },
  22605. iH: function() {
  22606. this.ju = this.fa;
  22607. this.Mc = 0;
  22608. this.Tc = 100
  22609. }
  22610. });
  22611. b.FD.create = function(c, a) {
  22612. return new b.FD(c, a)
  22613. };
  22614. b.GD = b.le.extend({
  22615. ctor: function(c, a) {
  22616. b.le.prototype.ctor.call(this);
  22617. a && this.n(c, a)
  22618. },
  22619. al: function(c) {
  22620. var a = b.I.Ea();
  22621. c = new b.sa(c.sprite);
  22622. b.ua === b.Lb && (c.sprite.flippedY = !0);
  22623. c.type = b.sa.Dk;
  22624. c.midPoint = b.d(0.5, 0.5);
  22625. c.barChangeRate = b.d(1, 1);
  22626. c.percentage = 100;
  22627. this.il(c, a.width / 2, a.height / 2);
  22628. return c
  22629. }
  22630. });
  22631. b.GD.create = function(c, a) {
  22632. return new b.GD(c, a)
  22633. };
  22634. b.DD = b.aa.extend({
  22635. ctor: function(d, a, c) {
  22636. b.aa.prototype.ctor.call(this);
  22637. this.Sb = new b.Bw;
  22638. this.n(d, a, c)
  22639. },
  22640. Ap: !0,
  22641. Sb: null,
  22642. gc: "TransitionPageTurn",
  22643. n: function(d, a, c) {
  22644. this.Ap = c;
  22645. b.aa.prototype.n.call(this, d, a);
  22646. return !0
  22647. },
  22648. Kn: function(a) {
  22649. return this.Ap ? b.bK(b.wW(this.q, a)) : b.wW(this.q, a)
  22650. },
  22651. X: function() {
  22652. b.aa.prototype.X.call(this);
  22653. var c = b.I.Ea(),
  22654. a;
  22655. c.width > c.height ? (c = 16, a = 12) : (c = 12, a = 16);
  22656. c = this.Kn(b.size(c, a));
  22657. a = this.Sb;
  22658. this.Ap ? (a.gk(this.fa), a.X(), this.fa.visible = !1, a.ha(b.gb(c, b.$b(this.finish, this), b.Zv())), this.fa.ha(b.show())) : (a.gk(this.La), a.X(), a.ha(b.gb(c, b.$b(this.finish, this), b.Zv())))
  22659. },
  22660. ga: function() {
  22661. this.Ap ? this.La.ga() : this.fa.ga();
  22662. this.Sb.ga()
  22663. },
  22664. mh: function() {
  22665. this.qg = this.Ap
  22666. }
  22667. });
  22668. b.DD.create = function(d, a, c) {
  22669. return new b.DD(d, a, c)
  22670. };
  22671. b.At = b.cM;
  22672. b.Sp = "Arial";
  22673. b.EF = !1;
  22674. b.bc = b.f.extend({
  22675. se: !1,
  22676. Sc: null,
  22677. bd: null,
  22678. Wp: !1,
  22679. gc: "MenuItem",
  22680. ctor: function(d, a) {
  22681. var c = b.f.prototype;
  22682. c.ctor.call(this);
  22683. this.bd = this.Sc = null;
  22684. this.se = this.Wp = !1;
  22685. c.Xa.call(this, 0.5, 0.5);
  22686. this.Sc = a || null;
  22687. if (this.bd = d || null) {
  22688. this.se = !0
  22689. }
  22690. },
  22691. j7: function() {
  22692. return this.Wp
  22693. },
  22694. Pi: function() {},
  22695. zh: function() {
  22696. return !1
  22697. },
  22698. gk: function(c, a) {
  22699. this.Sc = a;
  22700. this.bd = c
  22701. },
  22702. isEnabled: function() {
  22703. return this.se
  22704. },
  22705. Wc: function(a) {
  22706. this.se = a
  22707. },
  22708. Hl: function(c, a) {
  22709. this.anchorY = this.anchorX = 0.5;
  22710. this.Sc = a;
  22711. this.bd = c;
  22712. this.se = !0;
  22713. this.Wp = !1;
  22714. return !0
  22715. },
  22716. rect: function() {
  22717. var d = this.Id,
  22718. a = this.Q,
  22719. c = this.wf;
  22720. return b.rect(d.x - a.width * c.x, d.y - a.height * c.y, a.width, a.height)
  22721. },
  22722. selected: function() {
  22723. this.Wp = !0
  22724. },
  22725. He: function() {
  22726. this.Wp = !1
  22727. },
  22728. $B: function(c, a) {
  22729. this.Sc = a;
  22730. this.bd = c
  22731. },
  22732. Dq: function() {
  22733. if (this.se) {
  22734. var c = this.Sc,
  22735. a = this.bd;
  22736. if (a) {
  22737. if (c && b.ge(a)) {
  22738. c[a](this)
  22739. } else {
  22740. c && b.nd(a) ? a.call(c, this) : a(this)
  22741. }
  22742. }
  22743. }
  22744. }
  22745. });
  22746. w = b.bc.prototype;
  22747. b.l(w, "enabled", w.isEnabled, w.Wc);
  22748. b.bc.create = function(c, a) {
  22749. return new b.bc(c, a)
  22750. };
  22751. b.yk = b.bc.extend({
  22752. Km: null,
  22753. dd: null,
  22754. mn: 0,
  22755. Dp: null,
  22756. ctor: function(d, a, c) {
  22757. b.bc.prototype.ctor.call(this, a, c);
  22758. this.Dp = this.dd = this.Km = null;
  22759. d && (this.mn = 1, this.Dp = b.color.WHITE, this.Km = b.color(126, 126, 126), this.Rv(d), this.cascadeOpacity = this.cascadeColor = !0)
  22760. },
  22761. AU: function() {
  22762. return this.Km
  22763. },
  22764. sX: function(a) {
  22765. this.Km = a
  22766. },
  22767. IU: function() {
  22768. return this.dd
  22769. },
  22770. Rv: function(a) {
  22771. a && (this.B(a), a.anchorX = 0, a.anchorY = 0, this.width = a.width, this.height = a.height);
  22772. this.dd && this.removeChild(this.dd, !0);
  22773. this.dd = a
  22774. },
  22775. Wc: function(c) {
  22776. if (this.se !== c) {
  22777. var a = this.dd;
  22778. c ? a.color = this.Dp : (this.Dp = a.color, a.color = this.Km)
  22779. }
  22780. b.bc.prototype.Wc.call(this, c)
  22781. },
  22782. yd: function(a) {
  22783. this.dd.opacity = a
  22784. },
  22785. sh: function() {
  22786. return this.dd.opacity
  22787. },
  22788. xb: function(a) {
  22789. this.dd.color = a
  22790. },
  22791. Uf: function() {
  22792. return this.dd.color
  22793. },
  22794. pJ: function(d, a, c) {
  22795. this.Hl(a, c);
  22796. this.mn = 1;
  22797. this.Dp = b.color.WHITE;
  22798. this.Km = b.color(126, 126, 126);
  22799. this.Rv(d);
  22800. return this.cascadeOpacity = this.cascadeColor = !0
  22801. },
  22802. zd: function(a) {
  22803. this.dd.string = a;
  22804. this.width = this.dd.width;
  22805. this.height = this.dd.height
  22806. },
  22807. Fl: function() {
  22808. return this.dd.string
  22809. },
  22810. Dq: function() {
  22811. this.se && (this.mC(), this.scale = this.mn, b.bc.prototype.Dq.call(this))
  22812. },
  22813. selected: function() {
  22814. if (this.se) {
  22815. b.bc.prototype.selected.call(this);
  22816. var a = this.dB(b.Os);
  22817. a ? this.yY(a) : this.mn = this.scale;
  22818. a = b.Fe(0.1, 1.2 * this.mn);
  22819. a.Xv(b.Os);
  22820. this.ha(a)
  22821. }
  22822. },
  22823. He: function() {
  22824. if (this.se) {
  22825. b.bc.prototype.He.call(this);
  22826. this.zY(b.Os);
  22827. var a = b.Fe(0.1, this.mn);
  22828. a.Xv(b.Os);
  22829. this.ha(a)
  22830. }
  22831. }
  22832. });
  22833. w = b.yk.prototype;
  22834. b.l(w, "string", w.Fl, w.zd);
  22835. b.l(w, "disabledColor", w.AU, w.sX);
  22836. b.l(w, "label", w.IU, w.Rv);
  22837. b.yk.create = function(d, a, c) {
  22838. return new b.yk(d, a, c)
  22839. };
  22840. b.SC = b.yk.extend({
  22841. ctor: function(d, e, f, g, h, k, a) {
  22842. var c;
  22843. d && 0 < d.length && (c = new b.Zc(d, e, f, g, h));
  22844. b.yk.prototype.ctor.call(this, c, k, a)
  22845. },
  22846. Qd: function(d, e, f, g, h, k, a) {
  22847. if (!d || 0 === d.length) {
  22848. throw "cc.MenuItemAtlasFont.initWithString(): value should be non-null and its length should be greater than 0"
  22849. }
  22850. var c = new b.Zc;
  22851. c.Qd(d, e, f, g, h);
  22852. this.pJ(c, k, a);
  22853. return !0
  22854. }
  22855. });
  22856. b.SC.create = function(e, f, g, h, a, c, d) {
  22857. return new b.SC(e, f, g, h, a, c, d)
  22858. };
  22859. b.xk = b.yk.extend({
  22860. Cb: null,
  22861. Bb: null,
  22862. ctor: function(e, a, c) {
  22863. var d;
  22864. e && 0 < e.length ? (this.Bb = b.Sp, this.Cb = b.At, d = new b.J(e, this.Bb, this.Cb)) : (this.Cb = 0, this.Bb = "");
  22865. b.yk.prototype.ctor.call(this, d, a, c)
  22866. },
  22867. Qd: function(d, a, c) {
  22868. if (!d || 0 === d.length) {
  22869. throw "Value should be non-null and its length should be greater than 0"
  22870. }
  22871. this.Bb = b.Sp;
  22872. this.Cb = b.At;
  22873. d = new b.J(d, this.Bb, this.Cb);
  22874. this.pJ(d, a, c);
  22875. return !0
  22876. },
  22877. Qv: function(a) {
  22878. this.Cb = a;
  22879. this.IG()
  22880. },
  22881. iB: function() {
  22882. return this.Cb
  22883. },
  22884. Pv: function(a) {
  22885. this.Bb = a;
  22886. this.IG()
  22887. },
  22888. hB: function() {
  22889. return this.Bb
  22890. },
  22891. IG: function() {
  22892. var a = new b.J(this.dd.string, this.Bb, this.Cb);
  22893. this.Rv(a)
  22894. }
  22895. });
  22896. b.xk.Qv = function(a) {
  22897. b.At = a
  22898. };
  22899. b.xk.fontSize = function() {
  22900. return b.At
  22901. };
  22902. b.xk.Pv = function(a) {
  22903. b.EF && (b.Sp = "");
  22904. b.Sp = a;
  22905. b.EF = !0
  22906. };
  22907. w = b.xk.prototype;
  22908. b.l(w, "fontSize", w.iB, w.Qv);
  22909. b.l(w, "fontName", w.hB, w.Pv);
  22910. b.xk.fontName = function() {
  22911. return b.Sp
  22912. };
  22913. b.xk.create = function(d, a, c) {
  22914. return new b.xk(d, a, c)
  22915. };
  22916. b.cc = b.bc.extend({
  22917. Nc: null,
  22918. ae: null,
  22919. Xd: null,
  22920. ctor: function(d, e, f, g, h) {
  22921. b.bc.prototype.ctor.call(this);
  22922. this.Xd = this.ae = this.Nc = null;
  22923. if (void 0 !== e) {
  22924. var k, a, c;
  22925. void 0 !== h ? (k = f, c = g, a = h) : void 0 !== g && b.nd(g) ? (k = f, c = g) : void 0 !== g && b.nd(f) ? (a = g, c = f, k = null) : void 0 === f && (k = null);
  22926. this.rJ(d, e, k, c, a)
  22927. }
  22928. },
  22929. TU: function() {
  22930. return this.Nc
  22931. },
  22932. eC: function(a) {
  22933. this.Nc !== a && (a && (this.B(a, 0, b.pM), a.anchorX = 0, a.anchorY = 0), this.Nc && this.removeChild(this.Nc, !0), this.Nc = a, this.width = this.Nc.width, this.height = this.Nc.height, this.Cu(), a.Cr && !a.T && a.addEventListener("load", function(c) {
  22934. this.width = c.width;
  22935. this.height = c.height
  22936. }, this))
  22937. },
  22938. eV: function() {
  22939. return this.ae
  22940. },
  22941. gC: function(a) {
  22942. this.ae !== a && (a && (this.B(a, 0, b.aN), a.anchorX = 0, a.anchorY = 0), this.ae && this.removeChild(this.ae, !0), this.ae = a, this.Cu())
  22943. },
  22944. BU: function() {
  22945. return this.Xd
  22946. },
  22947. cC: function(a) {
  22948. this.Xd !== a && (a && (this.B(a, 0, b.xL), a.anchorX = 0, a.anchorY = 0), this.Xd && this.removeChild(this.Xd, !0), this.Xd = a, this.Cu())
  22949. },
  22950. rJ: function(f, a, c, d, e) {
  22951. this.Hl(d, e);
  22952. this.eC(f);
  22953. this.gC(a);
  22954. this.cC(c);
  22955. if (f = this.Nc) {
  22956. this.width = f.width, this.height = f.height, f.Cr && !f.T && f.addEventListener("load", function(g) {
  22957. this.width = g.width;
  22958. this.height = g.height;
  22959. this.cascadeOpacity = this.cascadeColor = !0
  22960. }, this)
  22961. }
  22962. return this.cascadeOpacity = this.cascadeColor = !0
  22963. },
  22964. xb: function(a) {
  22965. this.Nc.color = a;
  22966. this.ae && (this.ae.color = a);
  22967. this.Xd && (this.Xd.color = a)
  22968. },
  22969. Uf: function() {
  22970. return this.Nc.color
  22971. },
  22972. yd: function(a) {
  22973. this.Nc.opacity = a;
  22974. this.ae && (this.ae.opacity = a);
  22975. this.Xd && (this.Xd.opacity = a)
  22976. },
  22977. sh: function() {
  22978. return this.Nc.opacity
  22979. },
  22980. selected: function() {
  22981. b.bc.prototype.selected.call(this);
  22982. this.Nc && (this.Xd && (this.Xd.visible = !1), this.ae ? (this.Nc.visible = !1, this.ae.visible = !0) : this.Nc.visible = !0)
  22983. },
  22984. He: function() {
  22985. b.bc.prototype.He.call(this);
  22986. this.Nc && (this.Nc.visible = !0, this.ae && (this.ae.visible = !1), this.Xd && (this.Xd.visible = !1))
  22987. },
  22988. Wc: function(a) {
  22989. this.se !== a && (b.bc.prototype.Wc.call(this, a), this.Cu())
  22990. },
  22991. Cu: function() {
  22992. var d = this.Nc,
  22993. a = this.ae,
  22994. c = this.Xd;
  22995. this.se ? (d && (d.visible = !0), a && (a.visible = !1), c && (c.visible = !1)) : c ? (d && (d.visible = !1), a && (a.visible = !1), c && (c.visible = !0)) : (d && (d.visible = !0), a && (a.visible = !1))
  22996. }
  22997. });
  22998. w = b.cc.prototype;
  22999. b.l(w, "normalImage", w.TU, w.eC);
  23000. b.l(w, "selectedImage", w.eV, w.gC);
  23001. b.l(w, "disabledImage", w.BU, w.cC);
  23002. b.cc.create = function(f, a, c, d, e) {
  23003. return new b.cc(f, a, c, d, e || void 0)
  23004. };
  23005. b.TC = b.cc.extend({
  23006. ctor: function(g, h, k, m, n) {
  23007. var a = null,
  23008. c = null,
  23009. d = null,
  23010. e = null,
  23011. f = null;
  23012. void 0 === g ? b.cc.prototype.ctor.call(this) : (a = new b.o(g), h && (c = new b.o(h)), void 0 === m ? e = k : void 0 === n ? (e = k, f = m) : n && (d = new b.o(k), e = m, f = n), b.cc.prototype.ctor.call(this, a, c, d, e, f))
  23013. },
  23014. jaa: function(a) {
  23015. this.eC(new b.o(a))
  23016. },
  23017. Aaa: function(a) {
  23018. this.gC(new b.o(a))
  23019. },
  23020. P$: function(a) {
  23021. this.cC(new b.o(a))
  23022. },
  23023. I6: function(d, e, f, g, h) {
  23024. var k = null,
  23025. a = null,
  23026. c = null;
  23027. d && (k = new b.o(d));
  23028. e && (a = new b.o(e));
  23029. f && (c = new b.o(f));
  23030. return this.rJ(k, a, c, g, h)
  23031. }
  23032. });
  23033. b.TC.create = function(f, a, c, d, e) {
  23034. return new b.TC(f, a, c, d, e)
  23035. };
  23036. b.jm = b.bc.extend({
  23037. Ic: null,
  23038. If: 0,
  23039. Ut: null,
  23040. yf: null,
  23041. ctor: function() {
  23042. b.bc.prototype.ctor.call(this);
  23043. this.If = 0;
  23044. this.Ic = [];
  23045. this.Ut = 0;
  23046. this.yf = b.color.WHITE;
  23047. 0 < arguments.length && this.BB(Array.prototype.slice.apply(arguments))
  23048. },
  23049. sh: function() {
  23050. return this.Ut
  23051. },
  23052. yd: function(c) {
  23053. this.Ut = c;
  23054. if (this.Ic && 0 < this.Ic.length) {
  23055. for (var a = 0; a < this.Ic.length; a++) {
  23056. this.Ic[a].opacity = c
  23057. }
  23058. }
  23059. this.yf.a = c
  23060. },
  23061. Uf: function() {
  23062. var a = this.yf;
  23063. return b.color(a.r, a.g, a.b, a.a)
  23064. },
  23065. xb: function(c) {
  23066. var a = this.yf;
  23067. a.r = c.r;
  23068. a.g = c.g;
  23069. a.b = c.b;
  23070. if (this.Ic && 0 < this.Ic.length) {
  23071. for (a = 0; a < this.Ic.length; a++) {
  23072. this.Ic[a].xb(c)
  23073. }
  23074. }
  23075. void 0 === c.a || c.aS || this.yd(c.a)
  23076. },
  23077. fV: function() {
  23078. return this.If
  23079. },
  23080. Vv: function(d) {
  23081. if (d !== this.If) {
  23082. this.If = d;
  23083. (d = this.Ci(b.CC)) && d.vc(!1);
  23084. d = this.Ic[this.If];
  23085. this.B(d, 0, b.CC);
  23086. var a = d.width,
  23087. c = d.height;
  23088. this.width = a;
  23089. this.height = c;
  23090. d.G(a / 2, c / 2)
  23091. }
  23092. },
  23093. Y5: function() {
  23094. return this.Ic
  23095. },
  23096. Eaa: function(a) {
  23097. this.Ic = a
  23098. },
  23099. BB: function(e) {
  23100. var a = e.length;
  23101. b.nd(e[e.length - 2]) ? (this.Hl(e[e.length - 2], e[e.length - 1]), a -= 2) : b.nd(e[e.length - 1]) ? (this.Hl(e[e.length - 1], null), a -= 1) : this.Hl(null, null);
  23102. for (var c = this.Ic, d = c.length = 0; d < a; d++) {
  23103. e[d] && c.push(e[d])
  23104. }
  23105. this.If = b.TD;
  23106. this.Vv(0);
  23107. return this.cascadeOpacity = this.cascadeColor = !0
  23108. },
  23109. Q1: function(a) {
  23110. this.Ic.push(a)
  23111. },
  23112. Dq: function() {
  23113. this.se && this.Vv((this.If + 1) % this.Ic.length);
  23114. b.bc.prototype.Dq.call(this)
  23115. },
  23116. selected: function() {
  23117. b.bc.prototype.selected.call(this);
  23118. this.Ic[this.If].selected()
  23119. },
  23120. He: function() {
  23121. b.bc.prototype.He.call(this);
  23122. this.Ic[this.If].He()
  23123. },
  23124. Wc: function(d) {
  23125. if (this.se !== d) {
  23126. b.bc.prototype.Wc.call(this, d);
  23127. var a = this.Ic;
  23128. if (a && 0 < a.length) {
  23129. for (var c = 0; c < a.length; c++) {
  23130. a[c].enabled = d
  23131. }
  23132. }
  23133. }
  23134. },
  23135. r$: function() {
  23136. return this.Ic[this.If]
  23137. },
  23138. T5: function() {
  23139. return this.Ic[this.If]
  23140. },
  23141. X: function() {
  23142. b.f.prototype.X.call(this);
  23143. this.Vv(this.If)
  23144. }
  23145. });
  23146. w = b.jm.prototype;
  23147. b.l(w, "selectedIndex", w.fV, w.Vv);
  23148. b.jm.create = function() {
  23149. 0 < arguments.length && null == arguments[arguments.length - 1] && b.log("parameters should not be ending with null in Javascript");
  23150. var a = new b.jm;
  23151. a.BB(Array.prototype.slice.apply(arguments));
  23152. return a
  23153. };
  23154. b.bp = 0;
  23155. b.ap = 1;
  23156. b.K_ = -128;
  23157. b.FC = 5;
  23158. b.pd = b.wa.extend({
  23159. enabled: !1,
  23160. Gb: null,
  23161. Ag: -1,
  23162. yH: null,
  23163. gc: "Menu",
  23164. ctor: function(e) {
  23165. b.wa.prototype.ctor.call(this);
  23166. this.yf = b.color.WHITE;
  23167. this.enabled = !1;
  23168. this.Ut = 255;
  23169. this.Gb = null;
  23170. this.Ag = -1;
  23171. this.yH = b.ea.create({
  23172. event: b.ea.nm,
  23173. ik: !0,
  23174. ck: this.MQ,
  23175. ir: this.QQ,
  23176. Ll: this.OQ,
  23177. hr: this.NQ
  23178. });
  23179. 0 < arguments.length && null == arguments[arguments.length - 1] && b.log("parameters should not be ending with null in Javascript");
  23180. var a = arguments.length,
  23181. c;
  23182. if (0 === a) {
  23183. c = []
  23184. } else {
  23185. if (1 === a) {
  23186. c = e instanceof Array ? e : [e]
  23187. } else {
  23188. if (1 < a) {
  23189. c = [];
  23190. for (var d = 0; d < a; d++) {
  23191. arguments[d] && c.push(arguments[d])
  23192. }
  23193. }
  23194. }
  23195. }
  23196. this.lJ(c)
  23197. },
  23198. X: function() {
  23199. var a = this.yH;
  23200. a.xe || b.ka.addListener(a, this);
  23201. b.f.prototype.X.call(this)
  23202. },
  23203. isEnabled: function() {
  23204. return this.enabled
  23205. },
  23206. Wc: function(a) {
  23207. this.enabled = a
  23208. },
  23209. BB: function(d) {
  23210. var a = [];
  23211. if (d) {
  23212. for (var c = 0; c < d.length; c++) {
  23213. d[c] && a.push(d[c])
  23214. }
  23215. }
  23216. return this.lJ(a)
  23217. },
  23218. lJ: function(c) {
  23219. if (b.wa.prototype.oa.call(this)) {
  23220. this.enabled = !0;
  23221. var a = b.N;
  23222. this.G(a.width / 2, a.height / 2);
  23223. this.he(a);
  23224. this.Xa(0.5, 0.5);
  23225. this.iv(!0);
  23226. if (c) {
  23227. for (a = 0; a < c.length; a++) {
  23228. this.B(c[a], a)
  23229. }
  23230. }
  23231. this.Gb = null;
  23232. this.Ag = b.bp;
  23233. return this.cascadeOpacity = this.cascadeColor = !0
  23234. }
  23235. return !1
  23236. },
  23237. B: function(d, a, c) {
  23238. if (!(d instanceof b.bc)) {
  23239. throw "cc.Menu.addChild() : Menu only supports MenuItem objects as children"
  23240. }
  23241. b.wa.prototype.B.call(this, d, a, c)
  23242. },
  23243. Z1: function() {
  23244. this.DS(b.FC)
  23245. },
  23246. DS: function(d) {
  23247. var e = -d,
  23248. f = this.K,
  23249. g, h, k, a;
  23250. if (f && 0 < f.length) {
  23251. h = 0;
  23252. for (g = f.length; h < g; h++) {
  23253. e += f[h].height * f[h].scaleY + d
  23254. }
  23255. var c = e / 2;
  23256. h = 0;
  23257. for (g = f.length; h < g; h++) {
  23258. a = f[h], k = a.height, e = a.scaleY, a.G(0, c - k * e / 2), c -= k * e + d
  23259. }
  23260. }
  23261. },
  23262. W1: function() {
  23263. this.CS(b.FC)
  23264. },
  23265. CS: function(d) {
  23266. var e = -d,
  23267. f = this.K,
  23268. g, h, k, a;
  23269. if (f && 0 < f.length) {
  23270. g = 0;
  23271. for (h = f.length; g < h; g++) {
  23272. e += f[g].width * f[g].scaleX + d
  23273. }
  23274. var c = -e / 2;
  23275. g = 0;
  23276. for (h = f.length; g < h; g++) {
  23277. a = f[g], e = a.scaleX, k = f[g].width, a.G(c + k * e / 2, 0), c += k * e + d
  23278. }
  23279. }
  23280. },
  23281. X1: function() {
  23282. 0 < arguments.length && null == arguments[arguments.length - 1] && b.log("parameters should not be ending with null in Javascript");
  23283. for (var m = [], r = 0; r < arguments.length; r++) {
  23284. m.push(arguments[r])
  23285. }
  23286. var a = -5,
  23287. c = 0,
  23288. e = 0,
  23289. n = 0,
  23290. p, s, t, d = this.K;
  23291. if (d && 0 < d.length) {
  23292. for (r = 0, t = d.length; r < t; r++) {
  23293. c >= m.length || !(p = m[c]) || (s = d[r].height, e = e >= s || isNaN(s) ? e : s, ++n, n >= p && (a += e + 5, e = n = 0, ++c))
  23294. }
  23295. }
  23296. var g = b.I.Ea(),
  23297. k = p = e = c = 0,
  23298. h = 0,
  23299. a = a / 2;
  23300. if (d && 0 < d.length) {
  23301. for (r = 0, t = d.length; r < t; r++) {
  23302. var f = d[r];
  23303. 0 === p && (p = m[c], h = k = g.width / (1 + p));
  23304. s = f.Aj();
  23305. e = e >= s || isNaN(s) ? e : s;
  23306. f.G(h - g.width / 2, a - s / 2);
  23307. h += k;
  23308. ++n;
  23309. n >= p && (a -= e + 5, e = p = n = 0, ++c)
  23310. }
  23311. }
  23312. },
  23313. Y1: function() {
  23314. 0 < arguments.length && null == arguments[arguments.length - 1] && b.log("parameters should not be ending with null in Javascript");
  23315. var n = [],
  23316. p;
  23317. for (p = 0; p < arguments.length; p++) {
  23318. n.push(arguments[p])
  23319. }
  23320. var t = [],
  23321. a = [],
  23322. c = -10,
  23323. e = -5,
  23324. r = 0,
  23325. s = 0,
  23326. v = 0,
  23327. d, k, m, g, f = this.K;
  23328. if (f && 0 < f.length) {
  23329. for (p = 0, m = f.length; p < m; p++) {
  23330. (k = f[p], r >= n.length || !(d = n[r])) || (g = k.width, s = s >= g || isNaN(g) ? s : g, e += k.height + 5, ++v, v >= d && (t.push(s), a.push(e), c += s + 10, s = v = 0, e = -5, ++r))
  23331. }
  23332. }
  23333. e = b.I.Ea();
  23334. d = s = r = 0;
  23335. var c = -c / 2,
  23336. h = 0;
  23337. if (f && 0 < f.length) {
  23338. for (p = 0, m = f.length; p < m; p++) {
  23339. k = f[p], 0 === d && (d = n[r], h = a[r]), g = k.mg(), s = s >= g || isNaN(g) ? s : g, k.G(c + t[r] / 2, h - e.height / 2), h -= k.height + 10, ++v, v >= d && (c += s + 5, s = d = v = 0, ++r)
  23340. }
  23341. }
  23342. },
  23343. removeChild: function(c, a) {
  23344. null != c && (c instanceof b.bc ? (this.Gb === c && (this.Gb = null), b.f.prototype.removeChild.call(this, c, a)) : b.log("cc.Menu.removeChild():Menu only supports MenuItem objects as children"))
  23345. },
  23346. MQ: function(e, a) {
  23347. var c = a.Mb;
  23348. if (c.Ag !== b.bp || !c.jd || !c.enabled) {
  23349. return !1
  23350. }
  23351. for (var d = c.parent; null != d; d = d.parent) {
  23352. if (!d.jd) {
  23353. return !1
  23354. }
  23355. }
  23356. c.Gb = c.VF(e);
  23357. return c.Gb ? (c.Ag = b.ap, c.Gb.selected(), c.Gb.Oi(), !0) : !1
  23358. },
  23359. OQ: function(d, a) {
  23360. var c = a.Mb;
  23361. c.Ag !== b.ap ? b.log("cc.Menu.onTouchEnded(): invalid state") : (c.Gb && (c.Gb.He(), c.Gb.Oi(), c.Gb.Dq()), c.Ag = b.bp)
  23362. },
  23363. NQ: function(d, a) {
  23364. var c = a.Mb;
  23365. c.Ag !== b.ap ? b.log("cc.Menu.onTouchCancelled(): invalid state") : (this.Gb && (c.Gb.He(), c.Gb.Oi()), c.Ag = b.bp)
  23366. },
  23367. QQ: function(e, a) {
  23368. var c = a.Mb;
  23369. if (c.Ag !== b.ap) {
  23370. b.log("cc.Menu.onTouchMoved(): invalid state")
  23371. } else {
  23372. var d = c.VF(e);
  23373. d !== c.Gb && (c.Gb && (c.Gb.He(), c.Gb.Oi()), c.Gb = d, c.Gb && (c.Gb.selected(), c.Gb.Oi()))
  23374. }
  23375. },
  23376. Ib: function() {
  23377. this.Ag === b.ap && (this.Gb && (this.Gb.He(), this.Gb = null), this.Ag = b.bp);
  23378. b.f.prototype.Ib.call(this)
  23379. },
  23380. Pi: function() {},
  23381. zh: function() {
  23382. return !1
  23383. },
  23384. VF: function(f) {
  23385. f = f.Zj();
  23386. var g = this.K,
  23387. a;
  23388. if (g && 0 < g.length) {
  23389. for (var c = g.length - 1; 0 <= c; c--) {
  23390. if (a = g[c], a.jd && a.isEnabled()) {
  23391. var d = a.Rn(f),
  23392. e = a.rect();
  23393. e.x = 0;
  23394. e.y = 0;
  23395. if (b.QJ(e, d)) {
  23396. return a
  23397. }
  23398. }
  23399. }
  23400. }
  23401. return null
  23402. }
  23403. });
  23404. w = b.pd.prototype;
  23405. b.pd.create = function(c) {
  23406. var a = arguments.length;
  23407. 0 < a && null == arguments[a - 1] && b.log("parameters should not be ending with null in Javascript");
  23408. return 0 === a ? new b.pd : 1 === a ? new b.pd(c) : new b.pd(Array.prototype.slice.call(arguments, 0))
  23409. };
  23410. (function() {
  23411. var f = b.Z,
  23412. g = {
  23413. common: {
  23414. xd: !0,
  23415. Ad: b.Z.Yz,
  23416. kd: !0
  23417. }
  23418. };
  23419. g[f.qk] = {
  23420. xd: !0,
  23421. Ad: b.Z.Yz,
  23422. kd: !0,
  23423. Cl: !0
  23424. };
  23425. g[f.xC] = {
  23426. xd: !1,
  23427. Ad: !1,
  23428. kd: !1
  23429. };
  23430. g[f.Vi] = {
  23431. xd: !0,
  23432. Ad: !0,
  23433. kd: !1
  23434. };
  23435. g[f.Wi] = {
  23436. xd: !0,
  23437. Ad: !0,
  23438. kd: !0,
  23439. tT: !0
  23440. };
  23441. g[f.Rr] = {
  23442. xd: !0,
  23443. Ad: !1,
  23444. kd: !1
  23445. };
  23446. g[f.hw] = {
  23447. xd: !1,
  23448. Ad: !1,
  23449. kd: !0
  23450. };
  23451. g[f.AC] = {
  23452. xd: !1,
  23453. Ad: !1,
  23454. kd: !1,
  23455. ro: !0,
  23456. Cl: !0
  23457. };
  23458. g[f.Sr] = {
  23459. xd: !1,
  23460. Ad: !1,
  23461. kd: !1,
  23462. ro: !0,
  23463. Cl: !0
  23464. };
  23465. g[f.wC] = {
  23466. xd: !1,
  23467. Ad: !1,
  23468. kd: !0
  23469. };
  23470. g[f.am] = {
  23471. xd: !1,
  23472. Ad: !1,
  23473. kd: !0
  23474. };
  23475. g[f.cL] = {
  23476. xd: !1,
  23477. Ad: !1,
  23478. kd: !1,
  23479. ro: !0,
  23480. Cl: !0
  23481. };
  23482. g[f.BC] = {
  23483. xd: !1,
  23484. Ad: !1,
  23485. kd: !1,
  23486. ro: !0,
  23487. Cl: !0
  23488. };
  23489. g[f.Qr] = {
  23490. xd: !1,
  23491. Ad: !1,
  23492. kd: !1,
  23493. ro: !0,
  23494. Cl: !0
  23495. };
  23496. g[f.yC] = {
  23497. xd: !1,
  23498. Ad: !1,
  23499. kd: !1,
  23500. ro: !0,
  23501. Cl: !0
  23502. };
  23503. g[f.rk] = {
  23504. xd: !0,
  23505. Ad: !0,
  23506. kd: !1,
  23507. WK: function(h) {
  23508. document.createElement("audio").src = h
  23509. }
  23510. };
  23511. var a, c;
  23512. try {
  23513. var d = navigator.userAgent.toLowerCase();
  23514. switch (f.Sf) {
  23515. case f.qk:
  23516. c = d.match(/(msie |rv:)([\d.]+)/);
  23517. break;
  23518. case f.Wi:
  23519. c = d.match(/(firefox\/|rv:)([\d.]+)/);
  23520. break;
  23521. case f.Vi:
  23522. c = d.match(/chrome\/([\d.]+)/);
  23523. break;
  23524. case f.Qr:
  23525. c = d.match(/baidubrowser\/([\d.]+)/);
  23526. break;
  23527. case f.Rr:
  23528. c = d.match(/ucbrowser\/([\d.]+)/);
  23529. break;
  23530. case f.hw:
  23531. c = d.match(/qqbrowser\/([\d.]+)/);
  23532. break;
  23533. case f.AC:
  23534. c = d.match(/oupeng\/([\d.]+)/);
  23535. break;
  23536. case f.Sr:
  23537. c = d.match(/micromessenger\/([\d.]+)/);
  23538. break;
  23539. case f.rk:
  23540. c = d.match(/safari\/([\d.]+)/);
  23541. break;
  23542. case f.am:
  23543. c = d.match(/miuibrowser\/([\d.]+)/)
  23544. }
  23545. a = c ? c[1] : ""
  23546. } catch (e) {
  23547. console.log(e)
  23548. }
  23549. if (a) {
  23550. switch (f.Sf) {
  23551. case f.Vi:
  23552. 30 > parseInt(a) && (g[f.Vi] = {
  23553. xd: !1,
  23554. Ad: !0,
  23555. kd: !1
  23556. });
  23557. break;
  23558. case f.am:
  23559. if (a = a.match(/\d+/g), 2 > a[0] || 2 === a[0] && 0 === a[1] && 1 >= a[2]) {
  23560. g[f.am].kd = !1
  23561. }
  23562. }
  23563. }
  23564. if (b.Z.yh) {
  23565. b.Rs = b.Z.dk !== b.Z.dp ? g[f.Sf] || g.common : g[f.rk]
  23566. } else {
  23567. switch (f.Sf) {
  23568. case f.qk:
  23569. b.Rs = g[f.qk];
  23570. break;
  23571. case f.Wi:
  23572. b.Rs = g[f.Wi];
  23573. break;
  23574. default:
  23575. b.Rs = g.common
  23576. }
  23577. }
  23578. })();
  23579. b.Eo = b.Ia.extend({
  23580. volume: 1,
  23581. loop: !1,
  23582. src: null,
  23583. xH: !1,
  23584. Te: !1,
  23585. vf: "AUDIO",
  23586. fq: !1,
  23587. Na: null,
  23588. Vh: null,
  23589. rq: null,
  23590. Jm: null,
  23591. bb: null,
  23592. Bq: null,
  23593. Ay: !1,
  23594. $g: null,
  23595. ctor: function(d, a, c) {
  23596. d && (this.bb = d);
  23597. a && (this.Bq = a);
  23598. d && a && (this.vf = "WEBAUDIO");
  23599. this.src = c
  23600. },
  23601. ku: null,
  23602. ZB: function(c) {
  23603. if (c) {
  23604. var a = this.Te;
  23605. this.vf = "WEBAUDIO";
  23606. this.Na && this.Na !== c && this.Di() && this.stop();
  23607. this.Na = c;
  23608. a && this.play();
  23609. this.Bq.gain.value = this.volume;
  23610. this.ku && this.ku(c)
  23611. }
  23612. },
  23613. aH: null,
  23614. nK: function(c) {
  23615. if (c) {
  23616. var a = this.Te;
  23617. this.vf = "AUDIO";
  23618. this.$g && this.$g !== c && this.Di() && this.stop();
  23619. this.$g = c;
  23620. a && this.play();
  23621. c.volume = this.volume;
  23622. c.loop = this.loop;
  23623. this.aH && this.aH(c)
  23624. }
  23625. },
  23626. play: function(c, a) {
  23627. this.Te = !0;
  23628. this.loop = void 0 === a ? this.loop : a;
  23629. "AUDIO" === this.vf ? this.ZQ(c) : this.xG(c)
  23630. },
  23631. Di: function() {
  23632. if (!this.Te) {
  23633. return this.Te
  23634. }
  23635. if ("AUDIO" === this.vf) {
  23636. var a = this.$g;
  23637. return !a || this.fq || a.ended ? this.Te = !1 : !0
  23638. }
  23639. return (a = this.Vh) ? null == a.playbackState ? this.Te : this.Jm + this.bb.currentTime - this.rq < this.Vh.buffer.duration : !0
  23640. },
  23641. xG: function(e) {
  23642. var a = this.Vh;
  23643. if (this.Na) {
  23644. if (!this.fq && a) {
  23645. if (0 === this.bb.currentTime || this.Jm + this.bb.currentTime - this.rq > this.Vh.buffer.duration) {
  23646. this.uH()
  23647. } else {
  23648. return
  23649. }
  23650. }
  23651. a = this.bb.createBufferSource();
  23652. a.buffer = this.Na;
  23653. a.connect(this.Bq);
  23654. a.loop = this.loop;
  23655. this.rq = this.bb.currentTime;
  23656. this.Jm = 0;
  23657. if (a.start) {
  23658. a.start(0, e || 0)
  23659. } else {
  23660. if (a.noteGrainOn) {
  23661. var c = a.buffer.duration;
  23662. this.loop ? a.noteGrainOn(0, e, c) : a.noteGrainOn(0, e, c - e)
  23663. } else {
  23664. a.noteOn(0)
  23665. }
  23666. }
  23667. this.Vh = a;
  23668. var d = this;
  23669. a.onended = function() {
  23670. d.Ay ? d.Ay = !1 : d.Te = !1
  23671. }
  23672. }
  23673. },
  23674. ZQ: function() {
  23675. var a = this.$g;
  23676. a && (a.loop = this.loop, a.play())
  23677. },
  23678. stop: function() {
  23679. this.Te = !1;
  23680. "AUDIO" === this.vf ? this.NR() : this.uH()
  23681. },
  23682. uH: function() {
  23683. var a = this.Vh;
  23684. this.Ay = !0;
  23685. a && (a.stop(0), this.Vh = null)
  23686. },
  23687. NR: function() {
  23688. var a = this.$g;
  23689. a && (a.pause(), a.duration && Infinity !== a.duration && (a.currentTime = 0))
  23690. },
  23691. pause: function() {
  23692. this.Te = !1;
  23693. this.fq = !0;
  23694. "AUDIO" === this.vf ? this.WQ() : this.XQ()
  23695. },
  23696. XQ: function() {
  23697. this.Jm += this.bb.currentTime - this.rq;
  23698. var a = this.Vh;
  23699. a && a.stop(0)
  23700. },
  23701. WQ: function() {
  23702. var a = this.$g;
  23703. a && a.pause()
  23704. },
  23705. ek: function() {
  23706. this.fq && ("AUDIO" === this.vf ? this.hR() : this.iR(), this.fq = !1, this.Te = !0)
  23707. },
  23708. iR: function() {
  23709. var a = this.Vh;
  23710. a && (this.rq = this.bb.currentTime, this.xG(this.Jm % a.buffer.duration))
  23711. },
  23712. hR: function() {
  23713. var a = this.$g;
  23714. a && a.play()
  23715. },
  23716. Br: function(a) {
  23717. 1 < a && (a = 1);
  23718. 0 > a && (a = 0);
  23719. this.volume = a;
  23720. "AUDIO" === this.vf ? this.$g && (this.$g.volume = a) : this.Bq && (this.Bq.gain.value = a)
  23721. },
  23722. s6: function() {
  23723. return this.volume
  23724. },
  23725. cloneNode: function() {
  23726. var d, a;
  23727. if ("AUDIO" === this.vf) {
  23728. d = new b.Eo;
  23729. var c = document.createElement("audio");
  23730. c.src = this.src;
  23731. d.nK(c)
  23732. } else {
  23733. c = this.bb.createGain(), c.gain.value = 1, c.connect(this.bb.destination), d = new b.Eo(this.bb, c, this.src), this.Na ? d.ZB(this.Na) : (a = this, this.ku = function(e) {
  23734. d.ZB(e);
  23735. a.ku = null
  23736. })
  23737. }
  23738. d.vf = this.vf;
  23739. return d
  23740. }
  23741. });
  23742. (function(h) {
  23743. var k = h.Ad,
  23744. m = h.xd,
  23745. a = h.kd,
  23746. c = [];
  23747. (function() {
  23748. var j = document.createElement("audio");
  23749. if (j.canPlayType) {
  23750. var i = j.canPlayType('audio/ogg; codecs\x3d"vorbis"');
  23751. i && "" !== i && c.push(".ogg");
  23752. (i = j.canPlayType("audio/mpeg")) && "" !== i && c.push(".mp3");
  23753. (i = j.canPlayType('audio/wav; codecs\x3d"1"')) && "" !== i && c.push(".wav");
  23754. (i = j.canPlayType("audio/mp4")) && "" !== i && c.push(".mp4");
  23755. (j = j.canPlayType("audio/x-m4a")) && "" !== j && c.push(".m4a")
  23756. }
  23757. })();
  23758. try {
  23759. if (k) {
  23760. var d = new(window.AudioContext || window.webkitAudioContext || window.mozAudioContext);
  23761. h.tT && setTimeout(function() {
  23762. d = new(window.AudioContext || window.webkitAudioContext || window.mozAudioContext)
  23763. }, 0)
  23764. }
  23765. } catch (e) {
  23766. k = !1, b.log("browser don't support webAudio")
  23767. }
  23768. var f = {
  23769. Vc: {},
  23770. load: function(j, o, r, s) {
  23771. if (0 === c.length) {
  23772. return s("can not support audio!")
  23773. }
  23774. var t = b.path.Yj(j),
  23775. u = [t];
  23776. for (r = 0; r < c.length; r++) {
  23777. t !== c[r] && u.push(c[r])
  23778. }
  23779. var p;
  23780. if (f.Vc[o]) {
  23781. return s(null, f.Vc[o])
  23782. }
  23783. if (k) {
  23784. try {
  23785. var i = d.createGain();
  23786. i.gain.value = 1;
  23787. i.connect(d.destination);
  23788. p = new b.Eo(d, i, j)
  23789. } catch (n) {
  23790. k = !1, b.log("browser don't support webAudio"), p = new b.Eo(null, null, j)
  23791. }
  23792. } else {
  23793. p = new b.Eo(null, null, j)
  23794. }
  23795. this.HB(j, u, p, s);
  23796. f.Vc[o] = p
  23797. },
  23798. HB: function(t, u, r, v) {
  23799. if (0 === u.length) {
  23800. var i = "can not found the resource of audio! Last match url is : ",
  23801. i = i + t.replace(/\.(.*)?$/, "(");
  23802. c.forEach(function(B) {
  23803. i += B + "|"
  23804. });
  23805. i = i.replace(/\|$/, ")");
  23806. return v(i)
  23807. }
  23808. t = b.path.oI(t, u.splice(0, 1));
  23809. if (k) {
  23810. h.WK && h.WK(t);
  23811. var n = new XMLHttpRequest;
  23812. n.open("GET", t, !0);
  23813. n.responseType = "arraybuffer";
  23814. n.onload = function() {
  23815. d.decodeAudioData(n.response, function(B) {
  23816. r.ZB(B);
  23817. v(null, r)
  23818. }, function() {
  23819. f.HB(t, u, r, v)
  23820. })
  23821. };
  23822. n.send()
  23823. } else {
  23824. var j = document.createElement("audio"),
  23825. p = !1,
  23826. s = !1,
  23827. x = setTimeout(function() {
  23828. 0 === j.readyState ? o() : (s = !0, v("audio load timeout : " + t, r))
  23829. }, 10000),
  23830. y = function() {
  23831. p || (r.nK(j), j.removeEventListener("canplaythrough", y, !1), j.removeEventListener("error", A, !1), j.removeEventListener("emptied", o, !1), !s && v(null, r), p = !0, clearTimeout(x))
  23832. },
  23833. A = function() {
  23834. p && (j.removeEventListener("canplaythrough", y, !1), j.removeEventListener("error", A, !1), j.removeEventListener("emptied", o, !1), !s && f.HB(t, u, r, v), p = !0, clearTimeout(x))
  23835. },
  23836. o = function() {
  23837. s = !0;
  23838. y();
  23839. v(null, r)
  23840. };
  23841. b.Qa(j, "canplaythrough", y, !1);
  23842. b.Qa(j, "error", A, !1);
  23843. h.Cl && b.Qa(j, "emptied", o, !1);
  23844. j.src = t;
  23845. j.load()
  23846. }
  23847. }
  23848. };
  23849. b.S.Gh(["mp3", "ogg", "wav", "mp4", "m4a"], f);
  23850. b.Fc = {
  23851. Xg: null,
  23852. Py: 1,
  23853. fca: function() {
  23854. return !1
  23855. },
  23856. AW: function(n, i) {
  23857. var j = this.Xg;
  23858. j && j.src !== n && j.Di() && j.stop();
  23859. j = f.Vc[n];
  23860. j || (b.S.load(n), j = f.Vc[n]);
  23861. j.play(0, i);
  23862. j.Br(this.Py);
  23863. this.Xg = j
  23864. },
  23865. $v: function(j) {
  23866. var i = this.Xg;
  23867. i && (i.stop(), j && b.S.uc(i.src))
  23868. },
  23869. i9: function() {
  23870. var i = this.Xg;
  23871. i && i.pause()
  23872. },
  23873. d$: function() {
  23874. var i = this.Xg;
  23875. i && i.ek()
  23876. },
  23877. g$: function() {
  23878. var i = this.Xg;
  23879. i && (i.stop(), i.play())
  23880. },
  23881. t5: function() {
  23882. return this.Py
  23883. },
  23884. Sv: function(j) {
  23885. j -= 0;
  23886. isNaN(j) && (j = 1);
  23887. 1 < j && (j = 1);
  23888. 0 > j && (j = 0);
  23889. this.Py = j;
  23890. var i = this.Xg;
  23891. i && i.Br(j)
  23892. },
  23893. a7: function() {
  23894. var i = this.Xg;
  23895. return i ? i.Di() : !1
  23896. },
  23897. Sh: {},
  23898. kG: 5,
  23899. ot: 1,
  23900. OB: function(p, n) {
  23901. if (!m) {
  23902. return null
  23903. }
  23904. var i = this.Sh[p];
  23905. i || (i = this.Sh[p] = []);
  23906. var j;
  23907. for (j = 0; j < i.length && i[j].Di(); j++) {}
  23908. if (i[j]) {
  23909. o = i[j], o.Br(this.ot), o.play(0, n)
  23910. } else {
  23911. if (!k && j > this.kG) {
  23912. b.log("Error: %s greater than %d", p, this.kG)
  23913. } else {
  23914. var o = f.Vc[p];
  23915. o || (b.S.load(p), o = f.Vc[p]);
  23916. o = o.cloneNode();
  23917. o.Br(this.ot);
  23918. o.loop = n || !1;
  23919. o.play();
  23920. i.push(o)
  23921. }
  23922. }
  23923. return o
  23924. },
  23925. Ov: function(p) {
  23926. p -= 0;
  23927. isNaN(p) && (p = 1);
  23928. 1 < p && (p = 1);
  23929. 0 > p && (p = 0);
  23930. this.ot = p;
  23931. var n = this.Sh,
  23932. i;
  23933. for (i in n) {
  23934. var j = n[i];
  23935. if (Array.isArray(j)) {
  23936. for (var o = 0; o < j.length; o++) {
  23937. j[o].Br(p)
  23938. }
  23939. }
  23940. }
  23941. },
  23942. V4: function() {
  23943. return this.ot
  23944. },
  23945. h9: function(i) {
  23946. i && i.pause()
  23947. },
  23948. e9: function() {
  23949. var o = this.Sh,
  23950. i;
  23951. for (i in o) {
  23952. for (var j = o[i], n = 0; n < o[i].length; n++) {
  23953. j[n].Di() && j[n].pause()
  23954. }
  23955. }
  23956. },
  23957. c$: function(i) {
  23958. i && i.ek()
  23959. },
  23960. b$: function() {
  23961. var o = this.Sh,
  23962. i;
  23963. for (i in o) {
  23964. for (var j = o[i], n = 0; n < o[i].length; n++) {
  23965. j[n].ek()
  23966. }
  23967. }
  23968. },
  23969. oba: function(i) {
  23970. i && i.stop()
  23971. },
  23972. AY: function() {
  23973. var o = this.Sh,
  23974. i;
  23975. for (i in o) {
  23976. for (var j = o[i], n = 0; n < o[i].length; n++) {
  23977. j[n].stop()
  23978. }
  23979. }
  23980. },
  23981. Mba: function(j) {
  23982. if (j) {
  23983. b.S.uc(j);
  23984. var i = this.Sh[j];
  23985. i && (i.length = 0);
  23986. delete this.Sh[j];
  23987. delete f.Vc[j]
  23988. }
  23989. },
  23990. end: function() {
  23991. this.$v();
  23992. this.AY()
  23993. },
  23994. Zy: [],
  23995. YQ: function() {
  23996. var o = this.Xg;
  23997. o && o.Di() && (o.pause(), this.Zy.push(o));
  23998. var o = this.Sh,
  23999. i;
  24000. for (i in o) {
  24001. for (var j = o[i], n = 0; n < o[i].length; n++) {
  24002. j[n].Di() && (j[n].pause(), this.Zy.push(j[n]))
  24003. }
  24004. }
  24005. },
  24006. jR: function() {
  24007. for (var j = this.Zy, i = 0; i < j.length; i++) {
  24008. j[i].ek()
  24009. }
  24010. j.length = 0
  24011. }
  24012. };
  24013. if (!a) {
  24014. var g = function() {
  24015. var i = b.Fc.Xg;
  24016. i && !1 === i.xH && i.Te && i.Di() && (i.xH = !0, i.play(0, i.loop), !h.ro && b.Oa.removeEventListener("touchstart", g))
  24017. };
  24018. setTimeout(function() {
  24019. b.Oa && b.Oa.addEventListener("touchstart", g, !1)
  24020. }, 150)
  24021. }
  24022. b.ka.vA(b.Ma.qw, function() {
  24023. b.Fc.YQ()
  24024. });
  24025. b.ka.vA(b.Ma.Zr, function() {
  24026. b.Fc.jR()
  24027. })
  24028. })(b.Rs);
  24029. b.or = {
  24030. Hd: {},
  24031. cR: function() {
  24032. this.uc()
  24033. },
  24034. fP: function(c) {
  24035. var a = void 0 === c.Hf ? !1 : !c.Hf;
  24036. b.I.th().Ni(this.cR, c, 0, 0, 0, a)
  24037. },
  24038. p9: function(d) {
  24039. var a = d.constructor.prototype.qx;
  24040. if (!a) {
  24041. var c = {
  24042. writable: !0,
  24043. enumerable: !1,
  24044. configurable: !0
  24045. };
  24046. c.value = ga.SI();
  24047. Object.defineProperty(d.constructor.prototype, "__pid", c)
  24048. }
  24049. this.Hd[a] || (this.Hd[a] = []);
  24050. this.Hd[a].push(d)
  24051. },
  24052. yB: function(a) {
  24053. return (a = this.Hd[a.prototype.qx]) && 0 !== a.length ? !0 : !1
  24054. },
  24055. Q9: function(d) {
  24056. var a = d.constructor.prototype.qx;
  24057. if (a && (a = this.Hd[a])) {
  24058. for (var c = 0; c < a.length; c++) {
  24059. d === a[c] && (d.uc && d.uc(), a.splice(c, 1))
  24060. }
  24061. }
  24062. },
  24063. RI: function(d) {
  24064. if (this.yB(d)) {
  24065. var a = this.Hd[d.prototype.qx],
  24066. c = Array.prototype.slice.call(arguments);
  24067. c.shift();
  24068. a = a.pop();
  24069. a.so && a.so.apply(a, c);
  24070. b.Z.wJ && a.uc && this.fP(a);
  24071. return a
  24072. }
  24073. },
  24074. zT: function() {
  24075. for (var d in this.Hd) {
  24076. for (var a = 0; a < this.Hd[d].length; a++) {
  24077. var c = this.Hd[d][a];
  24078. c.uc && c.uc()
  24079. }
  24080. }
  24081. this.Hd = {}
  24082. }
  24083. };
  24084. if ("zh" == b.Z.language) {
  24085. var K = {
  24086. hJ: "res/homeBg.png",
  24087. Rq: "res/background.jpg",
  24088. KI: "res/gameRes.plist",
  24089. aB: "res/gameRes.png",
  24090. Fr: "res/scored-number.fnt",
  24091. SY: "res/scored-number.png",
  24092. TB: "res/relive.png",
  24093. kI: "res/en-share.png",
  24094. fI: "res/bgSound.mp3",
  24095. cB: "res/gameTitle.plist",
  24096. El: "res/gameTitle.png",
  24097. LI: "res/title.json",
  24098. iI: "res/arrowhead.json",
  24099. jI: "res/play.json",
  24100. Tu: "res/cross.mp3",
  24101. $A: "res/fragment-red.json",
  24102. ZA: "res/fragment-blue.json"
  24103. },
  24104. na = [],
  24105. qa
  24106. } else {
  24107. K = {
  24108. hJ: "res/homeBg.png",
  24109. Rq: "res/background.jpg",
  24110. KI: "res/gameRes-en.plist",
  24111. aB: "res/gameRes-en.png",
  24112. Fr: "res/scored-number.fnt",
  24113. SY: "res/scored-number.png",
  24114. TB: "res/relive.png",
  24115. fI: "res/bgSound.mp3",
  24116. cB: "res/gameTitle.plist",
  24117. El: "res/gameTitle.png",
  24118. LI: "res/title.json",
  24119. iI: "res/arrowhead.json",
  24120. jI: "res/play.json",
  24121. Tu: "res/cross.mp3",
  24122. $A: "res/fragment-red.json",
  24123. ZA: "res/fragment-blue.json"
  24124. }, na = []
  24125. }
  24126. for (qa in K) {
  24127. na.push(K[qa])
  24128. }
  24129. var L = [],
  24130. ra = 1,
  24131. sa = 1,
  24132. M = 1,
  24133. ta = 0.75,
  24134. N = "",
  24135. O = "",
  24136. P = 0,
  24137. ua = 1,
  24138. va = 0,
  24139. wa = 1,
  24140. xa = 0,
  24141. ya = ["block-large-blue.png", "block-small-blue.png", "block-large-red.png", "block-small-red.png"];
  24142. "" == b.Z.localStorage.getItem("sRedBlueBestScore") || null == b.Z.localStorage.getItem("sRedBlueBestScore") ? M = 1 : (xa = b.Z.localStorage.getItem("sRedBlueBestScore"), M = 0);
  24143. sa = 0 == b.Z.localStorage.getItem("sRedBlueMusic") ? 0 : 1;
  24144. ra = 0 == b.Z.localStorage.getItem("sRedBlueSound") ? 0 : 1;
  24145. var za = b.Ia.extend({
  24146. GK: null,
  24147. sc: [],
  24148. M2: [],
  24149. Vl: [],
  24150. ctor: function(e, a, c) {
  24151. var d = this;
  24152. b.S.IB(e, function(g, f) {
  24153. g || d.AV(f, a, c)
  24154. })
  24155. },
  24156. AV: function(e, a, c) {
  24157. this.sc = e;
  24158. this.GK = a;
  24159. for (e = 0; e < this.sc.length; e++) {
  24160. if (a = new b.o(b.W.V(this.sc[e].filename)), this.Vl = [], this.uY(a, this.sc[e]), (1 < this.sc[e].rotate.length || 0 < this.sc[e].rotate[0].duration) && this.vY(a, this.sc[e].rotate), (1 < this.sc[e].scale.length || 0 < this.sc[e].scale[0].duration) && this.wY(a, this.sc[e].scale), (1 < this.sc[e].opacity.length || 0 < this.sc[e].opacity[0].duration) && this.sY(a, this.sc[e].opacity), (1 < this.sc[e].position.length || 0 < this.sc[e].position[0].duration) && this.tY(a, this.sc[e].position), this.GK.B(a, this.sc.length - 1 - this.sc[e].index), 0 < this.Vl.length) {
  24161. var d = new b.Oh(this.Vl),
  24162. d = new b.yc(new b.bm(this.sc[e].K6), d);
  24163. d.uX(this.sc[e].outpoint);
  24164. 0 <= this.sc[e].comment[0].indexOf("loop\x3d-1") && (d = d.VB());
  24165. d.speed(c);
  24166. a.ha(d)
  24167. }
  24168. }
  24169. },
  24170. uY: function(c, a) {
  24171. c.$e({
  24172. x: a.propertyInit.Position.startpos.x,
  24173. y: a.propertyInit.Position.startpos.y,
  24174. anchorX: a.propertyInit.AnchorPoint[0],
  24175. anchorY: a.propertyInit.AnchorPoint[1],
  24176. width: a.width,
  24177. height: a.height,
  24178. opacity: a.propertyInit.Opacity / 100 * 255,
  24179. rotation: a.propertyInit.Rotate,
  24180. scaleX: parseInt(a.propertyInit.Scale[0] / a.propertyInit.Scale[2]),
  24181. scaleY: parseInt(a.propertyInit.Scale[1] / a.propertyInit.Scale[2])
  24182. })
  24183. },
  24184. vY: function(f, a) {
  24185. for (var c = [], d = 0; d < a.length; d++) {
  24186. if (0 < a[d].duration) {
  24187. var e = b.XB(a[d].duration, a[d].value);
  24188. c.push(e)
  24189. }
  24190. }
  24191. this.Vl.push(new b.yc(c))
  24192. },
  24193. sY: function(f, a) {
  24194. for (var c = [], d = 0; d < a.length; d++) {
  24195. if (0 < a[d].duration) {
  24196. var e = b.WA(a[d].duration, a[d].value / 100 * 255);
  24197. c.push(e)
  24198. }
  24199. }
  24200. this.Vl.push(new b.yc(c))
  24201. },
  24202. wY: function(f, a) {
  24203. for (var c = [], d = 0; d < a.length; d++) {
  24204. if (0 < a[d].duration) {
  24205. var e = b.Fe(a[d].duration, a[d].value[0] / a[d].value[2], a[d].value[1] / a[d].value[2]);
  24206. c.push(e)
  24207. }
  24208. }
  24209. this.Vl.push(new b.yc(c))
  24210. },
  24211. tY: function(f, a) {
  24212. for (var c = [], d = 0; d < a.length; d++) {
  24213. if (0 < a[d].duration) {
  24214. var e = [b.d(a[d].value.startpos.x, a[d].value.startpos.y), b.d(a[d].value.cp1.x, a[d].value.cp1.y), b.d(a[d].value.cp2.x, a[d].value.cp2.y)],
  24215. e = new b.Tr(a[d].duration, e);
  24216. c.push(e)
  24217. }
  24218. }
  24219. this.Vl.push(new b.yc(c))
  24220. }
  24221. });
  24222. b.wa.extend({
  24223. N: null,
  24224. ctor: function() {
  24225. this._super();
  24226. this.N = b.I.Ea();
  24227. this.oa()
  24228. },
  24229. oa: function() {
  24230. this._super();
  24231. var a = b.ea.create({
  24232. event: b.ea.nm,
  24233. ik: !0,
  24234. ck: function() {
  24235. return !0
  24236. },
  24237. Ll: function() {}
  24238. });
  24239. b.ka.addListener(a, this);
  24240. a = null
  24241. }
  24242. });
  24243. b.wa.extend({
  24244. Hi: 0,
  24245. ctor: function() {
  24246. this._super();
  24247. this.Hi = 0;
  24248. var a = new b.o(b.W.V("download-game.png"));
  24249. a.Xa(0, 0);
  24250. a.x = 0;
  24251. a.y = 20;
  24252. this.B(a);
  24253. this.Hi += a.eb().width;
  24254. a = new b.cc(new b.o(b.W.V("ios.png")), new b.o(b.W.V("ios.png")), this.yT, this);
  24255. a = new b.pd(a);
  24256. a.Xa(0, 0);
  24257. a.x = this.Hi + 60;
  24258. a.y = 42;
  24259. this.B(a);
  24260. this.Hi += 106;
  24261. a = new b.cc(new b.o(b.W.V("android.png")), new b.o(b.W.V("android.png")), this.xT, this);
  24262. a = new b.pd(a);
  24263. a.Xa(0, 0);
  24264. a.x = this.Hi + 100;
  24265. a.y = 42;
  24266. this.B(a);
  24267. this.Hi += 190
  24268. },
  24269. yT: function() {
  24270. alert("Applestore\u5ba1\u6838\u4e2d\uff0c\u5f88\u5feb\u5c31\u80fd\u548c\u5c0f\u4f19\u4f34\u4eec\u89c1\u9762\u4e86~")
  24271. },
  24272. xT: function() {}
  24273. });
  24274. var Aa = b.wa.extend({
  24275. Pf: null,
  24276. Qf: null,
  24277. oa: function() {
  24278. var a = !1;
  24279. this.yb = new b.Sa(K.Rq);
  24280. this.B(this.yb);
  24281. this._super() && (this.xY(K.Rq), a = !0);
  24282. return a
  24283. },
  24284. xY: function(a) {
  24285. this.Pf = new b.o(a);
  24286. this.Pf.G(b.d(this.Pf.eb().width / 2, this.Pf.eb().height / 2));
  24287. this.B(this.Pf);
  24288. this.Qf = new b.o(a);
  24289. this.Qf.G(b.d(0.5 * this.Qf.eb().width, 1.5 * this.Qf.eb().height));
  24290. this.B(this.Qf)
  24291. },
  24292. X: function() {
  24293. this._super();
  24294. this.jf(2);
  24295. this.fk()
  24296. },
  24297. update: function() {
  24298. this.Pf.qb() <= -this.Pf.eb().height / 2 ? this.Pf.G(b.d(0.5 * this.Pf.eb().width, 1.5 * this.Pf.eb().height - 2)) : this.Pf.G(b.Hg(this.Pf.Vq(), b.d(0, -2)));
  24299. this.Qf.qb() <= -this.Qf.eb().height / 2 ? this.Qf.G(b.d(0.5 * this.Qf.eb().width, 1.5 * this.Qf.eb().height - 2)) : this.Qf.G(b.Hg(this.Qf.Vq(), b.d(0, -2)))
  24300. }
  24301. });
  24302. Aa.create = function() {
  24303. var a = new Aa;
  24304. return a && a.oa() ? a : null
  24305. };
  24306. var Da = b.Pg.extend({
  24307. N: null,
  24308. mk: null,
  24309. B6: null,
  24310. lf: null,
  24311. Wa: null,
  24312. kc: null,
  24313. uh: null,
  24314. ef: null,
  24315. vh: null,
  24316. JI: 1,
  24317. X: function() {
  24318. this._super();
  24319. this.N = b.N;
  24320. b.W.Ju(K.cB);
  24321. this.Dg();
  24322. this.xA();
  24323. this.oS();
  24324. this.Wa = new b.o(b.W.V("me-large-blue.png"));
  24325. this.Wa.G(0.25 * this.N.width, 200);
  24326. O = "Blue";
  24327. this.B(this.Wa, 1);
  24328. this.kc = new b.o(b.W.V("me-large-red.png"));
  24329. this.kc.G(0.75 * this.N.width, 200);
  24330. O = "Red";
  24331. this.B(this.kc, 1);
  24332. this.Ql(this.Fq, 1)
  24333. },
  24334. Dg: function() {
  24335. var a = new b.o(K.Rq);
  24336. a.jf(1);
  24337. a.x = 0.5 * b.N.width;
  24338. a.y = b.N.height;
  24339. this.B(a)
  24340. },
  24341. xA: function() {
  24342. this.mk = new b.o(b.W.V("score-bg.png"));
  24343. this.mk.Xa(0.5, 1);
  24344. this.mk.G(0.5 * this.N.width, this.N.height);
  24345. this.B(this.mk);
  24346. this.lf = new b.Sd("0", K.Fr, b.mm);
  24347. this.lf.jf(0.6);
  24348. this.lf.G(0.5 * this.N.width, this.N.height - 38);
  24349. this.B(this.lf)
  24350. },
  24351. oS: function() {
  24352. this.uh = new b.o(b.W.V("taparea-left-(2).png"));
  24353. this.uh.Xa(0.5, 0);
  24354. this.uh.x = 0.25 * this.N.width;
  24355. this.uh.y = 0;
  24356. this.uh.opacity = 0;
  24357. this.B(this.uh);
  24358. this.ef = new b.o(b.W.V("help-1-word.png"));
  24359. this.ef.Xa(0.5, 0);
  24360. this.ef.x = 0.5 * b.N.width;
  24361. this.ef.y = 476;
  24362. this.ef.opacity = 0;
  24363. this.B(this.ef);
  24364. this.vh = new b.o(b.W.V("help-1-line.png"));
  24365. this.vh.Xa(0, 0);
  24366. this.vh.x = 132;
  24367. this.vh.y = 394;
  24368. this.vh.opacity = 0;
  24369. this.B(this.vh)
  24370. },
  24371. sA: function() {
  24372. this.Wa.vc();
  24373. this.Wa = null;
  24374. this.Wa = new Ba("Blue");
  24375. this.Wa.G(0.25 * this.N.width, 200);
  24376. N = "Blue";
  24377. this.B(this.Wa, 1)
  24378. },
  24379. xb: function() {
  24380. N = this.Wa.Eq;
  24381. O = this.kc.Eq
  24382. },
  24383. Fq: function() {
  24384. L = [];
  24385. var c = new Ca(1);
  24386. c.G(0.25 * this.N.width, this.N.height - 32);
  24387. this.B(c);
  24388. L.push(c);
  24389. var a = new b.yc(b.moveTo(0.3, b.d(0.25 * this.N.width, 700)), new b.Xi(this.iY, this));
  24390. c.ha(a)
  24391. },
  24392. iY: function() {
  24393. var c = new b.wk(0.5, 255);
  24394. this.uh.ha(c);
  24395. var a = c.k();
  24396. this.ef.ha(a);
  24397. c = c.k();
  24398. this.vh.ha(c);
  24399. this.sA();
  24400. this.zA()
  24401. },
  24402. KB: function(a) {
  24403. 3 == a && this.JI ? (null != this.uh && (this.uh.vc(), this.uh = null), null != this.vh && (this.vh.vc(), this.vh = null), null != this.ef && (this.ef.vc(), this.ef = null), this.Ql(this.nW, 1), this.JI = 0) : 4 == a && (null != this.ef && (this.ef.vc(), this.ef = null), a = new b.o(b.W.V("help-3-1.png")), a.Xa(0.5, 0), a.x = 0.5 * b.N.width, a.y = 560, this.B(a), a = new b.o(b.W.V("help-3-2.png")), a.Xa(0.5, 0), a.x = 0.5 * b.N.width, a.y = 460, this.B(a), M = 0, this.Ql(this.vV, 1.5))
  24404. },
  24405. nW: function() {
  24406. var a = new b.yc(b.moveTo(1, b.d(0.25 * this.N.width, 270)), new b.Xi(this.uA, this));
  24407. L[0].ha(a)
  24408. },
  24409. uA: function() {
  24410. N == L[0].Sn ? (this.lf.zd("1"), this.Pq(), this.KB(4)) : (this.xo(N, this.Wa), this.Sq());
  24411. L[0].vc();
  24412. L.shift()
  24413. },
  24414. Pq: function() {
  24415. ra && b.Fc.OB(K.Tu, !1)
  24416. },
  24417. xo: function(f, g) {
  24418. if (b.Z.wJ) {
  24419. if ("Red" == f) {
  24420. var a = b.Ra.lc(K.s4),
  24421. c = new b.UM(a);
  24422. this.B(c);
  24423. var d = new b.VM(K.r4)
  24424. } else {
  24425. a = b.Ra.lc(K.q4), c = new b.UM(a), this.B(c), d = new b.VM(K.p4)
  24426. }
  24427. var a = g.pb(),
  24428. e = g.qb();
  24429. g.vc();
  24430. d.U6();
  24431. d.x = a;
  24432. d.y = e;
  24433. c.B(d)
  24434. } else {
  24435. "Red" == f ? (c = new b.wa, c.yb = new b.Sa(K.El), c.B(c.yb), new za(K.$A, c.yb, 1)) : (c = new b.wa, c.yb = new b.Sa(K.El), c.B(c.yb), new za(K.ZA, c.yb, 1)), a = g.pb(), e = g.qb(), g.vc(), c.x = a - 160, c.y = e - 100, this.B(c)
  24436. }
  24437. },
  24438. KX: function() {
  24439. this.G(b.d(0, 0))
  24440. },
  24441. Sq: function() {
  24442. L[0].vc();
  24443. this.Hr();
  24444. b.Z.yh ? this.dv() : this.Ql(this.dv, 1.5)
  24445. },
  24446. dv: function() {
  24447. b.I.Jg(new b.gg(0.3, new Da))
  24448. },
  24449. vV: function() {
  24450. b.I.Jg(new b.gg(0.3, new Ea))
  24451. },
  24452. zA: function() {
  24453. this.B(new Fa, 99)
  24454. }
  24455. });
  24456. var Ga = b.wa.extend({
  24457. yb: null,
  24458. ctor: function() {
  24459. this._super();
  24460. this.Dg();
  24461. this.kW();
  24462. this.YS();
  24463. this.nS();
  24464. ra ? b.Fc.Ov(1) : b.Fc.Ov(0);
  24465. sa ? b.Fc.Sv(0.5) : b.Fc.Sv(0)
  24466. },
  24467. kW: function() {
  24468. var a = new b.wa;
  24469. b.W.Ju(K.cB);
  24470. a.yb = new b.Sa(K.El);
  24471. a.B(a.yb);
  24472. new za(K.LI, a.yb, 1);
  24473. a.jf(640 / 768);
  24474. a.x = -50;
  24475. a.y = 80;
  24476. this.B(a)
  24477. },
  24478. Dg: function() {
  24479. var a = new b.o(K.hJ);
  24480. a.jf(1008 / a.eb().height);
  24481. a.x = 0.5 * b.N.width;
  24482. a.y = 0.5 * b.N.height;
  24483. this.B(a)
  24484. },
  24485. YS: function() {
  24486. var a = new b.cc(new b.o(b.W.V("en-start.png")), new b.o(b.W.V("en-start.png")), this.bB, this),
  24487. a = new b.pd(a);
  24488. a.G(b.d(0.5 * b.N.width, 240));
  24489. a.Xa(0.5, 0.5);
  24490. this.B(a, 2);
  24491. a = new b.wa;
  24492. a.yb = new b.Sa(K.El);
  24493. a.B(a.yb);
  24494. new za(K.jI, a.yb, 4);
  24495. a.$e({
  24496. x: -50,
  24497. y: 24
  24498. });
  24499. this.B(a, 1)
  24500. },
  24501. nS: function() {
  24502. var a = new b.J("68微游戏", "Microsoft YaHei", 24);
  24503. a.G(b.Hg(b.Yl.bottom, b.d(0, 30)));
  24504. a.xb(b.color(200, 200, 200));
  24505. this.B(a, 10)
  24506. },
  24507. bB: function() {
  24508. b.Fc.OB(K.Tu);
  24509. M ? b.I.Jg(new b.gg(0.3, new Da)) : b.I.Jg(new b.gg(0.3, new Ea))
  24510. },
  24511. hS: function() {}
  24512. }),
  24513. Ha = b.Pg.extend({
  24514. X: function() {
  24515. this._super();
  24516. this.B(new Ga)
  24517. }
  24518. });
  24519. var Ba = b.o.extend({
  24520. Eq: "",
  24521. UH: 0,
  24522. yi: null,
  24523. ctor: function(a) {
  24524. this._super();
  24525. this.yi = "Red" == a ? new b.cc(new b.o(b.W.V("me-large-red.png")), new b.o(b.W.V("me-large-blue.png")), this.MJ, this) : new b.cc(new b.o(b.W.V("me-large-blue.png")), new b.o(b.W.V("me-large-red.png")), this.MJ, this);
  24526. this.Eq = a;
  24527. this.UH = this.yi.eb().width;
  24528. a = new b.pd(this.yi);
  24529. a.x = 0;
  24530. a.y = 0;
  24531. this.B(a)
  24532. },
  24533. MJ: function() {
  24534. this.getParent().xb()
  24535. }
  24536. });
  24537. var Ca = b.o.extend({
  24538. TH: 0,
  24539. Sn: "",
  24540. ctor: function(c) {
  24541. if (c) {
  24542. a = b.W.V(ya[2]), this.Sn = "Red"
  24543. } else {
  24544. c = parseInt(4 * Math.random() + 0, 10);
  24545. var a = b.W.V(ya[c]);
  24546. this.Sn = 2 > c ? "Blue" : "Red"
  24547. }
  24548. this._super(a)
  24549. },
  24550. so: function() {
  24551. if (guide) {
  24552. a = b.W.V(ya[2]), this.Sn = "Red"
  24553. } else {
  24554. var c = parseInt(4 * Math.random() + 0, 10),
  24555. a = b.W.V(ya[c]);
  24556. this.Sn = 2 > c ? "Blue" : "Red"
  24557. }
  24558. this.Ul(a)
  24559. },
  24560. UY: function() {}
  24561. });
  24562. Ca.create = function(a) {
  24563. return b.or.yB(Ca) ? b.or.RI(Ca, a) : new Ca(a)
  24564. };
  24565. var Ia = b.o.extend({
  24566. TH: 1,
  24567. BI: "",
  24568. Nq: "",
  24569. ctor: function() {
  24570. this._super();
  24571. var c = parseInt(4 * Math.random() + 0, 10),
  24572. a = b.o.JA(b.W.V(ya[c]));
  24573. this.BI = 2 > c ? "Blue" : "Red";
  24574. a.G(0.25 * b.I.Ea().width, 0);
  24575. this.B(a);
  24576. a = parseInt(4 * Math.random() + 0, 10);
  24577. 0 == c % 2 ? 2 > a ? (c = b.o.JA(b.W.V(ya[0])), this.Nq = "Blue") : (c = b.o.JA(b.W.V(ya[2])), this.Nq = "Red") : 2 > a ? (c = new b.o(b.W.V(ya[1])), this.Nq = "Blue") : (c = new b.o(b.W.V(ya[3])), this.Nq = "Red");
  24578. c.G(0.75 * b.I.Ea().width, 0);
  24579. this.B(c)
  24580. },
  24581. so: function() {
  24582. this.qo();
  24583. this.ctor()
  24584. },
  24585. UY: function() {}
  24586. });
  24587. Ia.create = function() {
  24588. return b.or.yB(Ia) ? b.or.RI(Ia) : new Ia
  24589. };
  24590. var Ka = b.wa.extend({
  24591. Lu: null,
  24592. yb: null,
  24593. b9: null,
  24594. c9: null,
  24595. d9: null,
  24596. Dr: null,
  24597. N: null,
  24598. lf: null,
  24599. Wa: null,
  24600. kc: null,
  24601. ee: null,
  24602. Fba: 1,
  24603. Al: null,
  24604. ctor: function() {
  24605. this._super();
  24606. va ? this.Al = P % 10 : (P = 0, wa = 1, this.Al = 0, this.th().BK(1));
  24607. this.N = b.I.Ea();
  24608. var a = b.Ra.lc(K.aB);
  24609. this.yb = new b.Sa(a);
  24610. this.B(this.yb, 9);
  24611. this.Dg();
  24612. this.xA();
  24613. this.sA();
  24614. ra ? b.Fc.Ov(1) : b.Fc.Ov(0);
  24615. sa ? (b.Fc.Sv(0.5), b.Fc.AW(K.fI)) : (b.Fc.Sv(0), b.Fc.$v());
  24616. this.zA();
  24617. this.Ql(this.bB, 2.5);
  24618. this.fk()
  24619. },
  24620. bB: function() {
  24621. this.Ni(this.Fq, ta)
  24622. },
  24623. Dg: function() {
  24624. this.Lu = Aa.create();
  24625. this.B(this.Lu)
  24626. },
  24627. G1: function() {},
  24628. xA: function() {
  24629. this.mk = new b.o(b.W.V("score-bg.png"));
  24630. this.mk.Xa(0.5, 1);
  24631. this.mk.G(0.5 * this.N.width, this.N.height);
  24632. this.B(this.mk);
  24633. this.lf = new b.Sd(P.toString(), K.Fr);
  24634. this.lf.jf(0.6);
  24635. this.lf.G(0.5 * this.N.width, this.N.height - 38);
  24636. this.B(this.lf)
  24637. },
  24638. sA: function() {
  24639. this.Wa = new Ba("Red");
  24640. this.Wa.G(0.25 * this.N.width, 200);
  24641. N = "Red";
  24642. this.B(this.Wa);
  24643. this.kc = new Ba("Blue");
  24644. this.kc.G(0.75 * this.N.width, 200);
  24645. O = "Blue";
  24646. this.B(this.kc)
  24647. },
  24648. Fq: function() {
  24649. if (10 > this.Al) {
  24650. var c = parseInt(4 * Math.random() + 1, 10);
  24651. if (10 < P && 2 < c) {
  24652. var a = Ia.create();
  24653. a.G(0, this.N.height + 40);
  24654. this.B(a)
  24655. } else {
  24656. a = Ca.create(0), a.G(1 == c ? 0.25 * this.N.width : 0.75 * this.N.width, this.N.height + 40), this.yb.B(a)
  24657. }
  24658. L.push(a);
  24659. this.Al++
  24660. } else {
  24661. this.ZH()
  24662. }
  24663. },
  24664. zA: function() {
  24665. this.Dr = new Fa;
  24666. this.B(this.Dr, 99)
  24667. },
  24668. uA: function() {
  24669. var c = L[0].pb();
  24670. if (L[0].TH) {
  24671. c = L[0].BI, O == L[0].Nq && N == c ? (P++, this.Pq(), this.lf.zd(P)) : (this.xo(N, this.Wa), this.xo(O, this.kc), this.Sq())
  24672. } else {
  24673. var a = L[0].Sn;
  24674. c > 0.5 * this.N.width ? O == a ? (P++, this.Pq(), this.lf.zd(P)) : (this.xo(O, this.kc), this.Sq()) : N == a ? (P++, this.Pq(), this.lf.zd(P)) : (this.xo(N, this.Wa), this.Sq())
  24675. }
  24676. L[0].vc();
  24677. L.shift()
  24678. },
  24679. Pq: function() {
  24680. ra && b.Fc.OB(K.Tu, !1)
  24681. },
  24682. xo: function(f, a) {
  24683. var c = b.Ra.lc(K.El),
  24684. d = new b.wa;
  24685. "Red" == f ? (d.yb = new b.Sa(c), d.B(d.yb), new za(K.$A, d.yb, 1)) : (d.yb = new b.Sa(c), d.B(d.yb), new za(K.ZA, d.yb, 1));
  24686. var c = a.pb(),
  24687. e = a.qb();
  24688. a.vc();
  24689. d.x = c - 160;
  24690. d.y = e - 100;
  24691. this.B(d)
  24692. },
  24693. KX: function() {
  24694. this.G(b.d(0, 0))
  24695. },
  24696. ZH: function() {
  24697. this.Ri(this.Fq);
  24698. this.Ql(this.qS, 1)
  24699. },
  24700. qS: function() {
  24701. this.ee = new b.o(b.W.V("speed-line.png"));
  24702. this.ee.Xa(0.5, 0);
  24703. this.ee.G(0.5 * b.N.width, this.N.height + 20);
  24704. this.B(this.ee)
  24705. },
  24706. TW: function() {
  24707. this.ee.vc();
  24708. this.ee = null;
  24709. this.NW()
  24710. },
  24711. NW: function() {
  24712. var a = new b.yc(new b.Bk(0.3, 0), new b.Xi(this.rS, this));
  24713. this.Wa.ha(a);
  24714. this.kc.ha(a.copy())
  24715. },
  24716. rS: function() {
  24717. this.Wa.vc();
  24718. this.kc.vc();
  24719. this.kc = this.Wa = null;
  24720. var a = "",
  24721. a = parseInt(10 * Math.random()),
  24722. a = 0 == a % 2 ? "Red" : "Blue";
  24723. this.Wa = new Ba(a);
  24724. this.Wa.G(0.25 * this.N.width, 200);
  24725. N = a;
  24726. this.Wa.jf(0);
  24727. this.B(this.Wa, 1);
  24728. a = parseInt(10 * Math.random());
  24729. a = 0 == a % 2 ? "Red" : "Blue";
  24730. this.kc = new Ba(a);
  24731. this.kc.G(0.75 * this.N.width, 200);
  24732. O = a;
  24733. this.kc.jf(0);
  24734. this.B(this.kc, 1);
  24735. a = new b.yc(new b.Bk(0.3, 1), new b.bm(0.5), new b.Xi(this.bX, this));
  24736. this.Wa.ha(a);
  24737. this.kc.ha(a.copy());
  24738. ua = 0
  24739. },
  24740. bX: function() {
  24741. ta += 0.01;
  24742. this.Ni(this.Fq, ta);
  24743. wa += 0.1;
  24744. this.th().BK(wa)
  24745. },
  24746. Sq: function() {
  24747. b.Fc.$v();
  24748. this.Hr();
  24749. null != this.ee && (this.ee.vc(), this.ee = null);
  24750. null != this.Dr && (this.Dr.vc(), this.Dr = null);
  24751. null != this.Lu && (this.Lu = null);
  24752. this.kc = this.Wa = null;
  24753. b.ka.RW();
  24754. for (var a = 0; a < L.length; a++) {
  24755. L[a].vc()
  24756. }
  24757. this.Ql(this.dv, 1.5)
  24758. },
  24759. xb: function() {
  24760. N = this.Wa.Eq;
  24761. O = this.kc.Eq
  24762. },
  24763. t4: function() {
  24764. var c = new b.wa,
  24765. a = new b.sb(b.color(0, 0, 0, 200));
  24766. c.B(a, 0);
  24767. this.B(c)
  24768. },
  24769. dv: function() {
  24770. b.or.zT();
  24771. b.I.Jg(new b.gg(0.3, new Ja))
  24772. },
  24773. update: function() {
  24774. null != this.ee && (190 >= this.ee.y ? 180 >= this.ee.y ? (this.TW(), this.Al = 0) : this.ee.y = 170 : this.ee.y -= 10 * wa);
  24775. for (var a = 0; a < L.length; a++) {
  24776. 280 >= L[a].y ? 272 > L[a].y ? (10 == this.Al && (this.Al = 0, this.ZH()), this.uA()) : L[a].y = 270 : L[a].y -= 10 * wa
  24777. }
  24778. }
  24779. }),
  24780. Ea = b.Pg.extend({
  24781. X: function() {
  24782. this._super();
  24783. this.B(new Ka)
  24784. }
  24785. });
  24786. var La = b.wa.extend({
  24787. ub: null,
  24788. N: null,
  24789. ff: null,
  24790. ctor: function() {
  24791. this._super();
  24792. this.N = b.I.Ea();
  24793. this.Dg();
  24794. this.sS();
  24795. this.gS();
  24796. this.tA();
  24797. this.lS()
  24798. },
  24799. Dg: function() {
  24800. this.ub = new b.o(b.W.V("scoreboard.png"));
  24801. this.ub.G(0.5 * this.N.width, 0.65 * this.N.height);
  24802. this.B(this.ub)
  24803. },
  24804. sS: function() {
  24805. var a = new b.Sd(P.toString(), K.Fr);
  24806. a.jf(0.6);
  24807. a.G(this.ub.pb() + 130, this.ub.qb() + 104);
  24808. this.B(a)
  24809. },
  24810. gS: function() {
  24811. console.log(P);
  24812. // updateShare(P);
  24813. // Play68.setRankingScoreDesc(P);
  24814. P > xa && (this.fS(), xa = P, b.Z.localStorage.setItem("sRedBlueBestScore", P));
  24815. var a = new b.Sd(xa.toString(), K.Fr);
  24816. a.jf(0.6);
  24817. a.G(this.ub.pb() + 130, this.ub.qb() - 20);
  24818. this.B(a)
  24819. },
  24820. fS: function() {
  24821. this.Jq = new b.o(b.W.V("en-new-record.png"));
  24822. this.Jq.Xa(0, 1);
  24823. this.Jq.G(this.ub.pb() - 0.5 * this.ub.eb().width + 25, this.ub.qb() + 0.5 * this.ub.eb().height);
  24824. this.Jq.opacity = 0;
  24825. this.B(this.Jq);
  24826. var a = new b.yc(new b.wk(0.3), new b.$o(0.3)),
  24827. a = new b.km(a);
  24828. this.Jq.ha(a)
  24829. },
  24830. tA: function() {
  24831. var a = new b.cc(new b.o(b.W.V("settings.png")), new b.o(b.W.V("settings.png")), this.wA, this);
  24832. this.ff = new b.pd(a);
  24833. this.ff.Xa(1, 0);
  24834. this.ff.G(this.ub.pb() + 150, this.ub.qb() - 170);
  24835. this.B(this.ff)
  24836. },
  24837. wA: function() {
  24838. this.getParent().wA();
  24839. this.ff.Wc(!1)
  24840. },
  24841. lS: function() {
  24842. var a = new b.cc(new b.o(K.kI), new b.o(K.kI), this.mU, this),
  24843. a = new b.pd(a);
  24844. a.Xa(1, 0);
  24845. a.G(this.ub.pb() - 110, this.ub.qb() - 154);
  24846. this.B(a)
  24847. },
  24848. mU: function() {
  24849. // play68_submitScore(P)
  24850. }
  24851. });
  24852. var Ma = b.wa.extend({
  24853. ub: null,
  24854. N: null,
  24855. Nn: null,
  24856. Mn: null,
  24857. Ln: null,
  24858. ff: null,
  24859. ctor: function() {
  24860. this._super();
  24861. this.N = b.I.Ea();
  24862. this.Dg();
  24863. this.mS();
  24864. this.iS();
  24865. this.XH();
  24866. this.tA();
  24867. this.XH()
  24868. },
  24869. Dg: function() {
  24870. this.ub = new b.o(b.W.V("settingboard.png"));
  24871. this.ub.G(0.5 * this.N.width, 0.6 * this.N.height);
  24872. this.B(this.ub)
  24873. },
  24874. mS: function() {
  24875. var a = new b.jm(new b.cc(new b.o(b.W.V("music-on.png")), new b.o(b.W.V("music-on.png"))), new b.cc(new b.o(b.W.V("music-on.png")), new b.o(b.W.V("music-on.png"))));
  24876. a.$B(this.nU, this);
  24877. this.Nn = new b.pd(a);
  24878. this.Nn.G(this.ub.pb() + 66, this.ub.qb() + 30);
  24879. this.Nn.opacity = ra ? 255 : 1;
  24880. this.B(this.Nn)
  24881. },
  24882. nU: function() {
  24883. ra ? (this.Nn.opacity = 1, ra = 0, b.Z.localStorage.setItem("sRedBlueSound", 0)) : (this.Nn.opacity = 255, ra = 1, b.Z.localStorage.setItem("sRedBlueSound", 1))
  24884. },
  24885. iS: function() {
  24886. var a = new b.jm(new b.cc(new b.o(b.W.V("music-on.png")), new b.o(b.W.V("music-on.png"))), new b.cc(new b.o(b.W.V("music-on.png")), new b.o(b.W.V("music-on.png"))));
  24887. a.$B(this.jU, this);
  24888. this.Mn = new b.pd(a);
  24889. this.Mn.G(this.ub.pb() - 6, this.ub.qb() + 82);
  24890. this.Mn.opacity = sa ? 255 : 1;
  24891. this.B(this.Mn)
  24892. },
  24893. jU: function() {
  24894. sa ? (this.Mn.opacity = 1, sa = 0, b.Z.localStorage.setItem("sRedBlueMusic", 0)) : (this.Mn.opacity = 255, sa = 1, b.Z.localStorage.setItem("sRedBlueMusic", 1))
  24895. },
  24896. XH: function() {
  24897. var a = new b.jm(new b.cc(new b.o(b.W.V("music-on.png")), new b.o(b.W.V("music-on.png"))), new b.cc(new b.o(b.W.V("music-on.png")), new b.o(b.W.V("music-on.png"))));
  24898. a.$B(this.iU, this);
  24899. this.Ln = new b.pd(a);
  24900. this.Ln.G(this.ub.pb() + 222, this.ub.qb() - 18);
  24901. this.B(this.Ln);
  24902. this.Ln.opacity = M ? 255 : 1
  24903. },
  24904. iU: function() {
  24905. M ? (this.Ln.opacity = 1, M = 0) : (this.Ln.opacity = 255, M = 1)
  24906. },
  24907. tA: function() {
  24908. var a = new b.cc(new b.o(b.W.V("en-back.png")), new b.o(b.W.V("en-back.png")), this.tB, this);
  24909. this.ff = new b.pd(a);
  24910. this.ff.Xa(1, 0);
  24911. this.ff.G(this.ub.pb() + 156, this.ub.qb() - 136);
  24912. this.B(this.ff)
  24913. },
  24914. tB: function() {
  24915. this.getParent().tB();
  24916. this.ff.Wc(!1)
  24917. }
  24918. });
  24919. var Fa = b.wa.extend({
  24920. N: null,
  24921. ctor: function() {
  24922. this._super();
  24923. this.N = b.I.Ea();
  24924. this.oa()
  24925. },
  24926. oa: function() {
  24927. this._super();
  24928. var a = b.ea.create({
  24929. event: b.ea.nm,
  24930. ik: !0,
  24931. Ao: [],
  24932. kk: [],
  24933. fv: 1,
  24934. rW: function(d, c) {
  24935. this.kk.push(d);
  24936. this.Ao.push(c)
  24937. },
  24938. E9: function(c) {
  24939. 0 < this.Ao.length && this.Ao.splice(c, 1);
  24940. 0 < this.kk.length && this.kk.splice(c, 1)
  24941. },
  24942. ck: function(g, c) {
  24943. if (M) {
  24944. if (this.fv) {
  24945. var d = c.Mb,
  24946. e = d.Rn(g.Zj()),
  24947. f;
  24948. if (360 > e.y && 0 < e.y) {
  24949. if (e.x < 0.5 * b.N.width) {
  24950. N = "Blue" == N ? "Red" : "Blue", this.fv = 0, d.getParent().Wa.yi.selected(), d.getParent().KB(3)
  24951. } else {
  24952. return !1
  24953. }
  24954. } else {
  24955. return !1
  24956. }
  24957. } else {
  24958. return !1
  24959. }
  24960. } else {
  24961. if (2 <= this.kk.length) {
  24962. return !1
  24963. }
  24964. ua = 1;
  24965. d = c.Mb;
  24966. f = 0.5 * d.getParent().Wa.UH;
  24967. e = d.Rn(g.Zj());
  24968. f = d.getParent().Wa.qb() + f;
  24969. d.getParent();
  24970. e.y < f && 0 < e.y && (e.x < 0.5 * b.N.width ? (N = "Blue" == N ? "Red" : "Blue", d.getParent().Wa.yi.selected()) : (O = "Blue" == O ? "Red" : "Blue", d.getParent().kc.yi.selected()), this.rW(g.ue, e.x))
  24971. }
  24972. return !0
  24973. },
  24974. Ll: function(g, c) {
  24975. if (M) {
  24976. var d = c.Mb,
  24977. d = d.Rn(g.Zj());
  24978. if (360 > d.y && 0 < d.y && d.x < 0.5 * b.N.width) {
  24979. if (this.fv) {
  24980. return !1
  24981. }
  24982. d = c.Mb;
  24983. N = "Blue" == N ? "Red" : "Blue";
  24984. d.getParent().Wa.yi.He();
  24985. d.getParent().KB(3);
  24986. this.fv = 1
  24987. }
  24988. } else {
  24989. for (var d = c.Mb, e = null, f = 0; f < this.kk.length; f++) {
  24990. g.ue == this.kk[f] && (e = f)
  24991. }
  24992. null == e && (e = "cw");
  24993. if (ua) {
  24994. if (this.Ao[e] < 0.5 * b.N.width && "cw" != e) {
  24995. N = "Blue" == N ? "Red" : "Blue", d.getParent().Wa.yi.He()
  24996. } else {
  24997. if ("cw" != e) {
  24998. O = "Blue" == O ? "Red" : "Blue", d.getParent().kc.yi.He()
  24999. } else {
  25000. return !1
  25001. }
  25002. }
  25003. "cw" != e && (this.Ao.splice(e, 1), this.kk.splice(e, 1))
  25004. } else {
  25005. return ua = 1, this.Ao = [], this.kk = [], !1
  25006. }
  25007. }
  25008. }
  25009. });
  25010. b.ka.addListener(a, this);
  25011. a = null
  25012. }
  25013. });
  25014. var Na = b.wa.extend({
  25015. Ti: null,
  25016. Dl: null,
  25017. N: null,
  25018. ctor: function() {
  25019. this._super();
  25020. b.Fc.$v();
  25021. this.N = b.N;
  25022. L.splice(0, L.length);
  25023. L.length = 0;
  25024. this.Dg();
  25025. this.tS();
  25026. this.jS()
  25027. },
  25028. Dg: function() {
  25029. var a = new b.o(K.Rq);
  25030. a.x = 0.5 * b.N.width;
  25031. a.y = 0.5 * b.N.height;
  25032. this.B(a)
  25033. },
  25034. tS: function() {
  25035. this.Ti = new La;
  25036. this.Ti.opacity = 0;
  25037. this.Ti.Xa(0, 0);
  25038. this.Ti.G(0, 100);
  25039. this.B(this.Ti);
  25040. var a = new b.Oh(new b.wk(1), new b.bj(0.3, b.d(0, 0)));
  25041. this.Ti.ha(a)
  25042. },
  25043. wA: function() {
  25044. var a = new b.bj(0.3, b.d(-this.N.width, 0));
  25045. this.Ti.ha(a);
  25046. this.Dl = new Ma;
  25047. this.Dl.Xa(0, 0);
  25048. this.Dl.G(this.N.width, 0);
  25049. this.B(this.Dl);
  25050. a = new b.bj(0.3, b.d(0, 0));
  25051. this.Dl.ha(a)
  25052. },
  25053. tB: function() {
  25054. var a = new b.bj(0.3, b.d(0, 0));
  25055. this.Ti.ha(a);
  25056. a = new b.yc(new b.bj(0.3, b.d(this.N.width, 0)), new b.Xi(this.XW, this));
  25057. this.Dl.ha(a)
  25058. },
  25059. XW: function() {
  25060. this.Ti.ff.Wc(!0);
  25061. this.Dl.vc()
  25062. },
  25063. kS: function() {
  25064. var c = new b.cc(new b.o(K.TB), new b.o(K.TB), this.lU, this),
  25065. c = new b.pd(c);
  25066. c.G(b.d(0.5 * this.N.width, 0.25 * this.N.height));
  25067. this.B(c);
  25068. var a = new b.wa;
  25069. a.yb = new b.Sa(K.El);
  25070. a.B(a.yb);
  25071. new za(K.iI, a.yb, 2);
  25072. a.$e({
  25073. x: 0.5 * this.N.width,
  25074. y: c.qb()
  25075. });
  25076. this.B(a)
  25077. },
  25078. jS: function() {
  25079. var a = new b.cc(new b.o(b.W.V("en-restart.png")), new b.o(b.W.V("en-restart.png")), this.kU, this),
  25080. a = new b.pd(a);
  25081. a.G(b.d(0.5 * this.N.width, 0.2 * this.N.height));
  25082. this.B(a)
  25083. },
  25084. lU: function() {
  25085. va = 1;
  25086. b.I.Jg(new b.gg(0.3, new Ea))
  25087. },
  25088. kU: function() {
  25089. M ? b.I.Jg(new b.gg(0.3, new Da)) : (va = 0, b.I.Jg(new b.gg(0.3, new Ea)))
  25090. },
  25091. hS: function() {}
  25092. }),
  25093. Ja = b.Pg.extend({
  25094. X: function() {
  25095. this._super();
  25096. this.B(new Na)
  25097. }
  25098. });
  25099. b.Ma.LB = function() {
  25100. b.view.vS(!0);
  25101. b.view.FI(!1);
  25102. b.view.wr(640, 1008, b.ke.SHOW_ALL);
  25103. b.view.$W(!0);
  25104. b.yw.GW(function() {
  25105. b.W.Ju(K.KI, K.aB);
  25106. b.I.Jg(new b.gg(0.3, new Ha))
  25107. })
  25108. };
  25109. b.Ma.eX();