game.min.js 1.0 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493394943949539496394973949839499395003950139502395033950439505395063950739508395093951039511395123951339514395153951639517395183951939520395213952239523395243952539526395273952839529395303953139532395333953439535395363953739538395393954039541395423954339544395453954639547395483954939550395513955239553395543955539556395573955839559395603956139562395633956439565395663956739568395693957039571395723957339574395753957639577395783957939580395813958239583395843958539586395873958839589395903959139592395933959439595395963959739598395993960039601396023960339604396053960639607396083960939610396113961239613396143961539616396173961839619396203962139622396233962439625396263962739628396293963039631396323963339634396353963639637396383963939640396413964239643396443964539646396473964839649396503965139652396533965439655396563965739658396593966039661396623966339664396653966639667396683966939670396713967239673396743967539676396773967839679396803968139682396833968439685396863968739688396893969039691396923969339694396953969639697396983969939700397013970239703397043970539706397073970839709397103971139712397133971439715397163971739718397193972039721397223972339724397253972639727397283972939730397313973239733397343973539736397373973839739397403974139742397433974439745397463974739748397493975039751397523975339754397553975639757397583975939760397613976239763397643976539766397673976839769397703977139772397733977439775397763977739778397793978039781397823978339784397853978639787397883978939790397913979239793397943979539796397973979839799398003980139802398033980439805398063980739808398093981039811398123981339814398153981639817398183981939820398213982239823398243982539826398273982839829398303983139832398333983439835398363983739838398393984039841398423984339844398453984639847398483984939850398513985239853398543985539856398573985839859398603986139862398633986439865398663986739868398693987039871398723987339874398753987639877398783987939880398813988239883398843988539886398873988839889398903989139892398933989439895398963989739898398993990039901399023990339904399053990639907399083990939910399113991239913399143991539916399173991839919399203992139922399233992439925399263992739928399293993039931399323993339934399353993639937399383993939940399413994239943399443994539946399473994839949399503995139952399533995439955399563995739958399593996039961399623996339964399653996639967399683996939970399713997239973399743997539976399773997839979399803998139982399833998439985399863998739988399893999039991399923999339994399953999639997399983999940000400014000240003400044000540006400074000840009400104001140012400134001440015400164001740018400194002040021400224002340024400254002640027400284002940030400314003240033400344003540036400374003840039400404004140042400434004440045400464004740048400494005040051400524005340054400554005640057400584005940060400614006240063400644006540066400674006840069400704007140072400734007440075400764007740078400794008040081400824008340084400854008640087400884008940090400914009240093400944009540096400974009840099401004010140102401034010440105401064010740108401094011040111401124011340114401154011640117401184011940120401214012240123401244012540126401274012840129401304013140132401334013440135401364013740138401394014040141401424014340144401454014640147401484014940150401514015240153401544015540156401574015840159401604016140162401634016440165401664016740168401694017040171401724017340174401754017640177401784017940180401814018240183401844018540186401874018840189401904019140192401934019440195401964019740198401994020040201402024020340204402054020640207402084020940210402114021240213402144021540216402174021840219402204022140222402234022440225402264022740228402294023040231402324023340234402354023640237402384023940240402414024240243402444024540246402474024840249402504025140252402534025440255402564025740258402594026040261402624026340264402654026640267402684026940270402714027240273402744027540276402774027840279402804028140282402834028440285402864028740288402894029040291402924029340294402954029640297402984029940300403014030240303403044030540306403074030840309403104031140312403134031440315403164031740318403194032040321403224032340324403254032640327403284032940330403314033240333403344033540336403374033840339403404034140342403434034440345403464034740348403494035040351403524035340354403554035640357403584035940360403614036240363403644036540366403674036840369403704037140372403734037440375403764037740378403794038040381403824038340384403854038640387403884038940390403914039240393403944039540396403974039840399404004040140402404034040440405404064040740408404094041040411404124041340414404154041640417404184041940420404214042240423404244042540426404274042840429404304043140432404334043440435404364043740438404394044040441404424044340444404454044640447404484044940450404514045240453404544045540456404574045840459404604046140462404634046440465404664046740468404694047040471404724047340474404754047640477404784047940480404814048240483404844048540486404874048840489404904049140492404934049440495404964049740498404994050040501405024050340504405054050640507405084050940510405114051240513405144051540516405174051840519405204052140522405234052440525405264052740528405294053040531405324053340534405354053640537405384053940540405414054240543405444054540546405474054840549405504055140552405534055440555405564055740558405594056040561405624056340564405654056640567405684056940570405714057240573405744057540576405774057840579405804058140582405834058440585405864058740588405894059040591405924059340594405954059640597405984059940600406014060240603406044060540606406074060840609406104061140612406134061440615406164061740618406194062040621406224062340624406254062640627406284062940630406314063240633406344063540636406374063840639406404064140642406434064440645406464064740648406494065040651406524065340654406554065640657406584065940660406614066240663406644066540666406674066840669406704067140672406734067440675406764067740678406794068040681406824068340684406854068640687406884068940690406914069240693406944069540696406974069840699407004070140702407034070440705407064070740708407094071040711407124071340714407154071640717407184071940720407214072240723407244072540726407274072840729407304073140732407334073440735407364073740738407394074040741407424074340744407454074640747407484074940750407514075240753407544075540756407574075840759407604076140762407634076440765407664076740768407694077040771407724077340774407754077640777407784077940780407814078240783407844078540786407874078840789407904079140792407934079440795407964079740798407994080040801408024080340804408054080640807408084080940810408114081240813408144081540816408174081840819408204082140822408234082440825408264082740828408294083040831408324083340834408354083640837408384083940840408414084240843408444084540846408474084840849408504085140852408534085440855408564085740858408594086040861408624086340864408654086640867408684086940870408714087240873408744087540876408774087840879408804088140882408834088440885408864088740888408894089040891408924089340894408954089640897408984089940900409014090240903409044090540906409074090840909409104091140912409134091440915409164091740918409194092040921409224092340924409254092640927409284092940930409314093240933409344093540936409374093840939409404094140942409434094440945409464094740948409494095040951409524095340954409554095640957409584095940960409614096240963409644096540966409674096840969409704097140972409734097440975409764097740978409794098040981409824098340984409854098640987409884098940990409914099240993409944099540996409974099840999410004100141002410034100441005410064100741008410094101041011410124101341014410154101641017410184101941020410214102241023410244102541026410274102841029410304103141032410334103441035410364103741038410394104041041410424104341044410454104641047410484104941050410514105241053410544105541056410574105841059410604106141062410634106441065410664106741068410694107041071410724107341074410754107641077410784107941080410814108241083410844108541086410874108841089410904109141092410934109441095410964109741098410994110041101411024110341104411054110641107411084110941110411114111241113411144111541116411174111841119411204112141122411234112441125411264112741128411294113041131411324113341134411354113641137411384113941140411414114241143411444114541146411474114841149411504115141152411534115441155411564115741158411594116041161411624116341164411654116641167411684116941170411714117241173411744117541176411774117841179411804118141182411834118441185411864118741188411894119041191411924119341194411954119641197411984119941200412014120241203412044120541206412074120841209412104121141212412134121441215412164121741218412194122041221412224122341224412254122641227412284122941230412314123241233412344123541236412374123841239412404124141242412434124441245412464124741248412494125041251412524125341254412554125641257412584125941260412614126241263412644126541266412674126841269412704127141272412734127441275412764127741278412794128041281412824128341284412854128641287412884128941290412914129241293412944129541296412974129841299413004130141302413034130441305413064130741308413094131041311413124131341314413154131641317413184131941320413214132241323413244132541326413274132841329413304133141332413334133441335413364133741338413394134041341413424134341344413454134641347413484134941350413514135241353413544135541356413574135841359413604136141362413634136441365413664136741368413694137041371413724137341374413754137641377413784137941380413814138241383413844138541386413874138841389413904139141392413934139441395413964139741398413994140041401414024140341404414054140641407414084140941410414114141241413414144141541416414174141841419414204142141422414234142441425414264142741428414294143041431414324143341434414354143641437414384143941440414414144241443414444144541446414474144841449414504145141452414534145441455414564145741458414594146041461414624146341464414654146641467414684146941470414714147241473414744147541476414774147841479414804148141482414834148441485414864148741488414894149041491414924149341494414954149641497414984149941500415014150241503415044150541506415074150841509415104151141512415134151441515415164151741518415194152041521415224152341524415254152641527415284152941530415314153241533415344153541536415374153841539415404154141542415434154441545415464154741548415494155041551415524155341554415554155641557415584155941560415614156241563415644156541566415674156841569415704157141572415734157441575415764157741578415794158041581415824158341584415854158641587415884158941590415914159241593415944159541596415974159841599416004160141602416034160441605416064160741608416094161041611416124161341614416154161641617416184161941620416214162241623416244162541626416274162841629416304163141632416334163441635416364163741638416394164041641416424164341644416454164641647416484164941650416514165241653416544165541656416574165841659416604166141662416634166441665416664166741668416694167041671416724167341674416754167641677416784167941680416814168241683416844168541686416874168841689416904169141692416934169441695416964169741698416994170041701417024170341704417054170641707417084170941710417114171241713417144171541716417174171841719417204172141722417234172441725417264172741728417294173041731417324173341734417354173641737417384173941740417414174241743417444174541746417474174841749417504175141752417534175441755417564175741758417594176041761417624176341764417654176641767417684176941770417714177241773417744177541776417774177841779417804178141782417834178441785417864178741788417894179041791417924179341794417954179641797417984179941800418014180241803418044180541806418074180841809418104181141812418134181441815418164181741818418194182041821418224182341824418254182641827418284182941830418314183241833418344183541836418374183841839418404184141842418434184441845418464184741848418494185041851418524185341854418554185641857418584185941860418614186241863418644186541866418674186841869418704187141872418734187441875418764187741878418794188041881418824188341884418854188641887418884188941890418914189241893418944189541896418974189841899419004190141902419034190441905419064190741908419094191041911419124191341914419154191641917419184191941920419214192241923419244192541926419274192841929419304193141932419334193441935419364193741938419394194041941419424194341944419454194641947419484194941950419514195241953419544195541956419574195841959419604196141962419634196441965419664196741968419694197041971419724197341974419754197641977419784197941980419814198241983419844198541986419874198841989419904199141992419934199441995419964199741998419994200042001420024200342004420054200642007420084200942010420114201242013420144201542016420174201842019420204202142022420234202442025420264202742028420294203042031420324203342034420354203642037420384203942040420414204242043420444204542046420474204842049420504205142052420534205442055420564205742058420594206042061420624206342064420654206642067420684206942070420714207242073420744207542076420774207842079420804208142082420834208442085420864208742088420894209042091420924209342094420954209642097420984209942100421014210242103421044210542106421074210842109421104211142112421134211442115421164211742118421194212042121421224212342124421254212642127421284212942130421314213242133421344213542136421374213842139421404214142142421434214442145421464214742148421494215042151421524215342154421554215642157421584215942160421614216242163421644216542166421674216842169421704217142172421734217442175421764217742178421794218042181421824218342184421854218642187421884218942190421914219242193421944219542196421974219842199422004220142202422034220442205422064220742208422094221042211422124221342214422154221642217422184221942220422214222242223422244222542226422274222842229422304223142232422334223442235422364223742238422394224042241422424224342244422454224642247422484224942250422514225242253422544225542256422574225842259422604226142262422634226442265422664226742268422694227042271422724227342274422754227642277422784227942280422814228242283422844228542286422874228842289422904229142292422934229442295422964229742298422994230042301423024230342304423054230642307423084230942310423114231242313423144231542316423174231842319423204232142322423234232442325423264232742328423294233042331423324233342334423354233642337423384233942340423414234242343423444234542346423474234842349423504235142352423534235442355423564235742358423594236042361423624236342364423654236642367423684236942370423714237242373423744237542376423774237842379423804238142382423834238442385423864238742388423894239042391423924239342394423954239642397423984239942400424014240242403424044240542406424074240842409424104241142412424134241442415424164241742418424194242042421424224242342424424254242642427424284242942430424314243242433424344243542436424374243842439424404244142442424434244442445424464244742448424494245042451424524245342454424554245642457424584245942460424614246242463424644246542466424674246842469424704247142472424734247442475424764247742478424794248042481424824248342484424854248642487424884248942490424914249242493424944249542496424974249842499425004250142502425034250442505425064250742508425094251042511425124251342514425154251642517425184251942520425214252242523425244252542526425274252842529425304253142532425334253442535425364253742538425394254042541425424254342544425454254642547425484254942550425514255242553425544255542556425574255842559425604256142562425634256442565425664256742568425694257042571425724257342574425754257642577425784257942580425814258242583425844258542586425874258842589425904259142592425934259442595425964259742598425994260042601426024260342604426054260642607426084260942610426114261242613426144261542616426174261842619426204262142622426234262442625426264262742628426294263042631426324263342634426354263642637426384263942640426414264242643426444264542646426474264842649426504265142652426534265442655426564265742658426594266042661426624266342664426654266642667426684266942670426714267242673426744267542676426774267842679426804268142682426834268442685426864268742688426894269042691426924269342694426954269642697426984269942700427014270242703427044270542706427074270842709427104271142712427134271442715427164271742718427194272042721427224272342724427254272642727427284272942730427314273242733427344273542736427374273842739427404274142742427434274442745427464274742748427494275042751427524275342754427554275642757427584275942760427614276242763427644276542766427674276842769427704277142772427734277442775427764277742778427794278042781427824278342784427854278642787427884278942790427914279242793427944279542796427974279842799428004280142802428034280442805428064280742808428094281042811428124281342814428154281642817428184281942820428214282242823428244282542826428274282842829428304283142832428334283442835428364283742838428394284042841428424284342844428454284642847428484284942850428514285242853428544285542856428574285842859428604286142862428634286442865428664286742868428694287042871428724287342874428754287642877428784287942880428814288242883428844288542886428874288842889428904289142892428934289442895428964289742898428994290042901429024290342904429054290642907429084290942910429114291242913429144291542916429174291842919429204292142922429234292442925429264292742928429294293042931429324293342934429354293642937429384293942940429414294242943429444294542946429474294842949429504295142952429534295442955429564295742958429594296042961429624296342964429654296642967429684296942970429714297242973429744297542976429774297842979429804298142982429834298442985429864298742988429894299042991429924299342994429954299642997429984299943000430014300243003430044300543006430074300843009430104301143012430134301443015430164301743018430194302043021430224302343024430254302643027430284302943030430314303243033430344303543036430374303843039430404304143042430434304443045430464304743048430494305043051430524305343054430554305643057430584305943060430614306243063430644306543066430674306843069430704307143072430734307443075430764307743078430794308043081430824308343084430854308643087430884308943090430914309243093430944309543096430974309843099431004310143102431034310443105431064310743108431094311043111431124311343114431154311643117431184311943120431214312243123431244312543126431274312843129431304313143132431334313443135431364313743138431394314043141431424314343144431454314643147431484314943150431514315243153431544315543156431574315843159431604316143162431634316443165431664316743168431694317043171431724317343174431754317643177431784317943180431814318243183431844318543186431874318843189431904319143192431934319443195431964319743198431994320043201432024320343204432054320643207432084320943210432114321243213432144321543216432174321843219432204322143222432234322443225432264322743228432294323043231432324323343234432354323643237432384323943240432414324243243432444324543246432474324843249432504325143252432534325443255432564325743258432594326043261432624326343264432654326643267432684326943270432714327243273432744327543276432774327843279432804328143282432834328443285432864328743288432894329043291432924329343294432954329643297432984329943300433014330243303433044330543306433074330843309433104331143312433134331443315433164331743318433194332043321433224332343324433254332643327433284332943330433314333243333433344333543336433374333843339433404334143342433434334443345433464334743348433494335043351433524335343354433554335643357433584335943360433614336243363433644336543366433674336843369433704337143372433734337443375433764337743378433794338043381433824338343384433854338643387433884338943390433914339243393433944339543396433974339843399434004340143402434034340443405434064340743408434094341043411434124341343414434154341643417434184341943420434214342243423434244342543426434274342843429434304343143432434334343443435434364343743438434394344043441434424344343444434454344643447434484344943450434514345243453434544345543456434574345843459434604346143462434634346443465434664346743468434694347043471434724347343474434754347643477434784347943480434814348243483434844348543486434874348843489434904349143492434934349443495434964349743498434994350043501435024350343504435054350643507435084350943510435114351243513435144351543516435174351843519435204352143522435234352443525435264352743528435294353043531435324353343534435354353643537435384353943540435414354243543435444354543546435474354843549435504355143552435534355443555435564355743558435594356043561435624356343564435654356643567435684356943570435714357243573435744357543576435774357843579435804358143582435834358443585435864358743588435894359043591435924359343594435954359643597435984359943600436014360243603436044360543606436074360843609436104361143612436134361443615436164361743618436194362043621436224362343624436254362643627436284362943630436314363243633436344363543636436374363843639436404364143642436434364443645436464364743648436494365043651436524365343654436554365643657436584365943660436614366243663436644366543666436674366843669436704367143672436734367443675436764367743678436794368043681436824368343684436854368643687436884368943690436914369243693436944369543696436974369843699437004370143702437034370443705437064370743708437094371043711437124371343714437154371643717437184371943720437214372243723437244372543726437274372843729437304373143732437334373443735437364373743738437394374043741437424374343744437454374643747437484374943750437514375243753437544375543756437574375843759437604376143762437634376443765437664376743768437694377043771437724377343774437754377643777437784377943780437814378243783437844378543786437874378843789437904379143792437934379443795437964379743798437994380043801438024380343804438054380643807438084380943810438114381243813438144381543816438174381843819438204382143822438234382443825438264382743828438294383043831438324383343834438354383643837438384383943840438414384243843438444384543846438474384843849438504385143852438534385443855438564385743858438594386043861438624386343864438654386643867438684386943870438714387243873438744387543876438774387843879438804388143882438834388443885438864388743888438894389043891438924389343894438954389643897438984389943900439014390243903439044390543906439074390843909439104391143912439134391443915439164391743918439194392043921439224392343924439254392643927439284392943930439314393243933439344393543936439374393843939439404394143942439434394443945439464394743948439494395043951439524395343954439554395643957439584395943960439614396243963439644396543966439674396843969439704397143972439734397443975439764397743978439794398043981439824398343984439854398643987439884398943990439914399243993439944399543996439974399843999440004400144002440034400444005440064400744008440094401044011440124401344014440154401644017440184401944020440214402244023440244402544026440274402844029440304403144032440334403444035440364403744038440394404044041440424404344044440454404644047440484404944050440514405244053440544405544056440574405844059440604406144062440634406444065440664406744068440694407044071440724407344074440754407644077440784407944080440814408244083440844408544086440874408844089440904409144092440934409444095440964409744098440994410044101441024410344104441054410644107441084410944110441114411244113441144411544116441174411844119441204412144122441234412444125441264412744128441294413044131441324413344134441354413644137441384413944140441414414244143441444414544146441474414844149441504415144152441534415444155441564415744158441594416044161441624416344164441654416644167441684416944170441714417244173441744417544176441774417844179441804418144182441834418444185441864418744188441894419044191441924419344194441954419644197441984419944200442014420244203442044420544206442074420844209442104421144212442134421444215442164421744218442194422044221442224422344224442254422644227442284422944230442314423244233442344423544236442374423844239442404424144242442434424444245442464424744248442494425044251442524425344254442554425644257442584425944260442614426244263442644426544266442674426844269442704427144272442734427444275442764427744278442794428044281442824428344284442854428644287442884428944290442914429244293442944429544296442974429844299443004430144302443034430444305443064430744308443094431044311443124431344314443154431644317443184431944320443214432244323443244432544326443274432844329443304433144332443334433444335443364433744338443394434044341443424434344344443454434644347443484434944350443514435244353443544435544356443574435844359443604436144362443634436444365443664436744368443694437044371443724437344374443754437644377443784437944380443814438244383443844438544386443874438844389443904439144392443934439444395443964439744398443994440044401444024440344404444054440644407444084440944410444114441244413444144441544416444174441844419444204442144422444234442444425444264442744428444294443044431444324443344434444354443644437444384443944440444414444244443444444444544446444474444844449444504445144452444534445444455444564445744458444594446044461444624446344464444654446644467444684446944470444714447244473444744447544476444774447844479444804448144482444834448444485444864448744488444894449044491444924449344494444954449644497444984449944500445014450244503445044450544506445074450844509445104451144512445134451444515445164451744518445194452044521445224452344524445254452644527445284452944530445314453244533445344453544536445374453844539445404454144542445434454444545445464454744548445494455044551445524455344554445554455644557445584455944560445614456244563445644456544566445674456844569445704457144572445734457444575445764457744578445794458044581445824458344584445854458644587445884458944590445914459244593445944459544596445974459844599446004460144602446034460444605446064460744608446094461044611446124461344614446154461644617446184461944620446214462244623446244462544626446274462844629446304463144632446334463444635446364463744638446394464044641446424464344644446454464644647446484464944650446514465244653446544465544656446574465844659446604466144662446634466444665446664466744668446694467044671446724467344674446754467644677446784467944680446814468244683446844468544686446874468844689446904469144692446934469444695446964469744698446994470044701447024470344704447054470644707447084470944710447114471244713447144471544716447174471844719447204472144722447234472444725447264472744728447294473044731447324473344734447354473644737447384473944740447414474244743447444474544746447474474844749447504475144752447534475444755447564475744758447594476044761447624476344764447654476644767447684476944770447714477244773447744477544776447774477844779447804478144782447834478444785447864478744788447894479044791447924479344794447954479644797447984479944800448014480244803448044480544806448074480844809448104481144812448134481444815448164481744818448194482044821448224482344824448254482644827448284482944830448314483244833448344483544836448374483844839448404484144842448434484444845448464484744848448494485044851448524485344854448554485644857448584485944860448614486244863448644486544866448674486844869448704487144872448734487444875448764487744878448794488044881448824488344884448854488644887448884488944890448914489244893448944489544896448974489844899449004490144902449034490444905449064490744908449094491044911449124491344914449154491644917449184491944920449214492244923449244492544926449274492844929449304493144932449334493444935449364493744938449394494044941449424494344944449454494644947449484494944950449514495244953449544495544956449574495844959449604496144962449634496444965449664496744968449694497044971449724497344974449754497644977449784497944980449814498244983449844498544986449874498844989449904499144992449934499444995449964499744998449994500045001450024500345004450054500645007450084500945010450114501245013450144501545016450174501845019450204502145022450234502445025450264502745028450294503045031450324503345034450354503645037450384503945040450414504245043450444504545046450474504845049450504505145052450534505445055450564505745058450594506045061450624506345064450654506645067450684506945070450714507245073450744507545076450774507845079
  1. function e(c) {
  2. throw c;
  3. }
  4. var m = void 0,
  5. q = !0,
  6. s = null,
  7. t = !1;
  8. function da() {
  9. return function(c) {
  10. return c
  11. }
  12. }
  13. function u() {
  14. return function() {}
  15. }
  16. function x(c) {
  17. return function(d) {
  18. this[c] = d
  19. }
  20. }
  21. function A(c) {
  22. return function() {
  23. return this[c]
  24. }
  25. }
  26. function B(c) {
  27. return function() {
  28. return c
  29. }
  30. }
  31. var C = C || {};
  32. C.U = C.U || {};
  33. C.n = {};
  34. H = window;
  35. H = Object.prototype;
  36. delete window._p;
  37. C.bd = function(c) {
  38. return document.createElement(c)
  39. };
  40. C.qb = function(c, d, f, g) {
  41. c.addEventListener(d, f, g)
  42. };
  43. C.iaa = "undefined" !== typeof require && require("fs");
  44. C.pda = function(c, d) {
  45. if (c) if (c instanceof Array) for (var f = 0,
  46. g = c.length; f < g && d.call(m, c[f], f) !== t; f++);
  47. else for (f in c) if (d.call(m, c[f], f) === t) break
  48. };
  49. C.g1 = function(c) {
  50. if (!c) return C.log("invalid URL"),
  51. t;
  52. var d = c.indexOf("://");
  53. if ( - 1 == d) return t;
  54. d = c.indexOf("/", d + 3);
  55. return ( - 1 == d ? c: c.substring(0, d)) != location.origin
  56. };
  57. C.async = {
  58. B9: function(c) {
  59. var d = this.Uca;
  60. if (!d.d0) {
  61. var f = d.length,
  62. g = d.$ga,
  63. h = d.ega,
  64. k = h.mg,
  65. n = h.Nca,
  66. p = h.O3,
  67. h = h.z6a;
  68. if (c) {
  69. if (d.d0 = c, k) return k.call(n, c)
  70. } else {
  71. var r = Array.apply(s, arguments).slice(1),
  72. v = r.length;
  73. 0 == v ? r = s: 1 == v && (r = r[0]);
  74. g[this.index] = r;
  75. d.count--;
  76. p && p.call(h, r, f - d.count, f);
  77. 0 == d.count && k && k.apply(n, [s, g])
  78. }
  79. }
  80. },
  81. s$: u(),
  82. X0a: function(c, d, f) {
  83. var g = C.async;
  84. f !== m ? ("function" == typeof d && (d = {
  85. O3: d
  86. }), d.mg = f || d.mg) : d !== m ? "function" == typeof d && (d = {
  87. mg: d
  88. }) : c !== m ? d = {}: e("arguments error!");
  89. var h = (f = c instanceof Array) ? c.length: Object.keys(c).length;
  90. if (0 == h) d.mg && d.mg.call(d.Nca, s);
  91. else {
  92. var k = {
  93. length: h,
  94. count: h,
  95. ega: d,
  96. $ga: f ? [] : {}
  97. };
  98. C.pda(c,
  99. function(c, f) {
  100. if (k.d0) return t;
  101. var h = !d.mg && !d.O3 ? g.s$: g.B9.bind({
  102. Uca: k,
  103. index: f
  104. });
  105. c(h, f)
  106. })
  107. }
  108. },
  109. map: function(c, d, f) {
  110. var g = this,
  111. h = arguments.length;
  112. "function" == typeof d && (d = {
  113. n1: d
  114. });
  115. 3 === h ? d.mg = f || d.mg: 2 > h && e("arguments error!");
  116. "function" == typeof d && (d = {
  117. n1: d
  118. });
  119. f !== m ? d.mg = f || d.mg: c === m && e("arguments error!");
  120. var k = (h = c instanceof Array) ? c.length: Object.keys(c).length;
  121. if (0 === k) d.mg && d.mg.call(d.Nca, s);
  122. else {
  123. var n = {
  124. length: k,
  125. count: k,
  126. ega: d,
  127. $ga: h ? [] : {}
  128. };
  129. C.pda(c,
  130. function(c, f) {
  131. if (n.d0) return t;
  132. var h = !d.mg ? g.s$: g.B9.bind({
  133. Uca: n,
  134. index: f
  135. });
  136. d.n1.call(d.EDa, c, f, h)
  137. })
  138. }
  139. }
  140. };
  141. C.path = {
  142. join: function() {
  143. for (var c = arguments.length,
  144. d = "",
  145. f = 0; f < c; f++) d = (d + ("" == d ? "": "/") + arguments[f]).replace(/(\/|\\\\)$/, "");
  146. return d
  147. },
  148. Cp: function(c) {
  149. return (c = /(\.[^\.\/\?\\]*)(\?.*)?$/.exec(c)) ? c[1] : s
  150. },
  151. c0a: function(c) {
  152. if (c) {
  153. var d = c.lastIndexOf(".");
  154. if ( - 1 !== d) return c.substring(0, d)
  155. }
  156. return c
  157. },
  158. lxa: function(c, d) {
  159. var f = c.indexOf("?");
  160. 0 < f && (c = c.substring(0, f));
  161. f = /(\/|\\\\)([^(\/|\\\\)]+)$/g.exec(c.replace(/(\/|\\\\)$/, ""));
  162. if (!f) return s;
  163. f = f[2];
  164. return d && c.substring(c.length - d.length).toLowerCase() == d.toLowerCase() ? f.substring(0, f.length - d.length) : f
  165. },
  166. dirname: function(c) {
  167. return c.replace(/((.*)(\/|\\|\\\\))?(.*?\..*$)?/, "$2")
  168. },
  169. s_: function(c, d) {
  170. d = d || "";
  171. var f = c.indexOf("?"),
  172. g = "";
  173. 0 < f && (g = c.substring(f), c = c.substring(0, f));
  174. f = c.lastIndexOf(".");
  175. return 0 > f ? c + d + g: c.substring(0, f) + d + g
  176. },
  177. BB: function(c, d, f) {
  178. if (0 == d.indexOf(".")) return this.s_(c, d);
  179. var g = c.indexOf("?"),
  180. h = "";
  181. f = f ? this.Cp(c) : "";
  182. 0 < g && (h = c.substring(g), c = c.substring(0, g));
  183. g = c.lastIndexOf("/");
  184. return c.substring(0, 0 >= g ? 0 : g + 1) + d + f + h
  185. }
  186. };
  187. C.M = {
  188. paa: {},
  189. KN: {},
  190. wta: {},
  191. Hv: {},
  192. dR: "",
  193. dxa: "",
  194. fj: {},
  195. cI: function() {
  196. return window.XMLHttpRequest ? new window.XMLHttpRequest: new ActiveXObject("MSXML2.XMLHTTP")
  197. },
  198. N$: function(c) {
  199. var d = c[0],
  200. f = c[1],
  201. g = c[2],
  202. h = ["", s, s];
  203. 1 === c.length ? h[1] = d instanceof Array ? d: [d] : 2 === c.length ? "function" == typeof f ? (h[1] = d instanceof Array ? d: [d], h[2] = f) : (h[0] = d || "", h[1] = f instanceof Array ? f: [f]) : 3 === c.length ? (h[0] = d || "", h[1] = f instanceof Array ? f: [f], h[2] = g) : e("arguments error to load js!");
  204. return h
  205. },
  206. nEa: function(c, d, f) {
  207. var g = this,
  208. h = g.paa,
  209. k = g.N$(arguments); - 1 < navigator.userAgent.indexOf("Trident/5") ? g.uaa(k[0], k[1], 0, k[2]) : C.async.map(k[1],
  210. function(c, d, f) {
  211. c = C.path.join(k[0], c);
  212. if (h[c]) return f(s);
  213. g.C9(c, t, f)
  214. },
  215. k[2])
  216. },
  217. Jfa: function(c, d, f) {
  218. var g = this.zta(),
  219. h = this.N$(arguments);
  220. this.nEa(h[0], h[1],
  221. function(c) {
  222. c && e(c);
  223. g.parentNode.removeChild(g);
  224. if (h[2]) h[2]()
  225. })
  226. },
  227. C9: function(c, d, f) {
  228. var g = document,
  229. h = C.bd("script");
  230. h.async = d;
  231. h.src = c;
  232. this.paa[c] = q;
  233. C.qb(h, "load",
  234. function() {
  235. this.removeEventListener("load", arguments.callee, t);
  236. f()
  237. },
  238. t);
  239. C.qb(h, "error",
  240. function() {
  241. f("Load " + c + " failed!")
  242. },
  243. t);
  244. g.body.appendChild(h)
  245. },
  246. uaa: function(c, d, f, g) {
  247. if (f >= d.length) g && g();
  248. else {
  249. var h = this;
  250. h.C9(C.path.join(c, d[f]), t,
  251. function(k) {
  252. if (k) return g(k);
  253. h.uaa(c, d, f + 1, g)
  254. })
  255. }
  256. },
  257. zta: function() {
  258. var c = document,
  259. d = c.getElementById("cocos2d_loadJsImg");
  260. if (!d) {
  261. d = C.bd("img");
  262. C.xaa && (d.src = C.xaa);
  263. c = c.getElementById(C.qf.gj.id);
  264. c.style.backgroundColor = "black";
  265. c.parentNode.appendChild(d);
  266. var f = getComputedStyle ? getComputedStyle(c) : c.currentStyle;
  267. f || (f = {
  268. width: c.width,
  269. height: c.height
  270. });
  271. d.style.left = c.offsetLeft + (parseFloat(f.width) - d.width) / 2 + "px";
  272. d.style.top = c.offsetTop + (parseFloat(f.height) - d.height) / 2 + "px";
  273. d.style.position = "absolute"
  274. }
  275. return d
  276. },
  277. EQ: function(c, d) {
  278. if (C.iaa) require("fs").z1a(c,
  279. function(c, f) {
  280. c ? d(c) : d(s, f.toString())
  281. });
  282. else {
  283. var f = this.cI(),
  284. g = "load " + c + " failed!";
  285. f.open("GET", c, q);
  286. /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent) ? (f.setRequestHeader("Accept-Charset", "utf-8"), f.onreadystatechange = function() {
  287. 4 == f.readyState && 200 == f.status ? d(s, f.responseText) : d(g)
  288. }) : (f.overrideMimeType && f.overrideMimeType("text/plain; charset\x3dutf-8"), f.onload = function() {
  289. 4 == f.readyState && 200 == f.status ? d(s, f.responseText) : d(g)
  290. });
  291. f.send(s)
  292. }
  293. },
  294. vaa: function(c) {
  295. if (C.iaa) return require("fs").A1a(c).toString();
  296. var d = this.cI();
  297. d.open("GET", c, t);
  298. /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent) ? d.setRequestHeader("Accept-Charset", "utf-8") : d.overrideMimeType && d.overrideMimeType("text/plain; charset\x3dutf-8");
  299. d.send(s);
  300. return 4 == !d.readyState || 200 != d.status ? s: d.responseText
  301. },
  302. Kfa: function(c, d) {
  303. this.EQ(c,
  304. function(f, g) {
  305. try {
  306. f ? d(f) : d(s, JSON.parse(g))
  307. } catch(h) {
  308. e("load json [" + c + "] failed : " + h)
  309. }
  310. })
  311. },
  312. u9: function(c) {
  313. return /(\.png)|(\.jpg)|(\.bmp)|(\.jpeg)|(\.gif)/.exec(c) != s
  314. },
  315. wI: function(c, d, f) {
  316. var g = q;
  317. f !== m ? g = d.g1 == s ? g: d.g1: d !== m && (f = d);
  318. var h = new Image;
  319. g && "file://" != location.origin && (h.crossOrigin = "Anonymous");
  320. C.qb(h, "load",
  321. function() {
  322. this.removeEventListener("load", arguments.callee, t);
  323. this.removeEventListener("error", arguments.callee, t);
  324. f && f(s, h)
  325. });
  326. C.qb(h, "error",
  327. function() {
  328. this.removeEventListener("error", arguments.callee, t);
  329. f && f("load image failed")
  330. });
  331. h.src = c;
  332. return h
  333. },
  334. Ata: function(c, d, f) {
  335. var g = this,
  336. h = s; (d = c.type) ? (d = "." + d.toLowerCase(), h = c.src ? c.src: c.name + d) : (h = c, d = C.path.Cp(h));
  337. var k = g.fj[h];
  338. if (k) return f(s, k);
  339. k = g.KN[d.toLowerCase()];
  340. if (!k) return C.error("loader for [" + d + "] not exists!"),
  341. f();
  342. d = g.K0(k.zP ? k.zP() : g.dR, h);
  343. k.load(d, h, c,
  344. function(c, d) {
  345. c ? (C.log(c), g.fj[h] = s, delete g.fj[h], f()) : (g.fj[h] = d, f(s, d))
  346. })
  347. },
  348. K0: function(c, d) {
  349. var f = this.wta,
  350. g = C.path;
  351. if (c !== m && d === m) {
  352. d = c;
  353. var h = g.Cp(d),
  354. h = h ? h.toLowerCase() : "";
  355. c = (h = this.KN[h]) ? h.zP ? h.zP() : this.dR: this.dR
  356. }
  357. d = C.path.join(c || "", d);
  358. if (d.match(/[\/(\\\\)]lang[\/(\\\\)]/i)) {
  359. if (f[d]) return f[d];
  360. g = g.Cp(d) || "";
  361. d = f[d] = d.substring(0, d.length - g.length) + "_" + C.Sc.language + g
  362. }
  363. return d
  364. },
  365. load: function(c, d, f) {
  366. f !== m ? "function" == typeof d && (d = {
  367. O3: d
  368. }) : d !== m ? "function" == typeof d && (f = d, d = {}) : c !== m ? d = {}: e("arguments error!");
  369. d.mg = function(c, d) {
  370. c && C.log(c);
  371. f && f(d)
  372. };
  373. c instanceof Array || (c = [c]);
  374. d.n1 = this.Ata;
  375. d.EDa = this;
  376. C.async.map(c, d)
  377. },
  378. Y$: function(c, d) {
  379. var f = this.Hv,
  380. g = [],
  381. h;
  382. for (h in c) {
  383. var k = c[h];
  384. f[h] = k;
  385. g.push(k)
  386. }
  387. this.load(g, d)
  388. },
  389. Y_a: function(c, d) {
  390. var f = this,
  391. g = f.xd(c);
  392. g ? f.Y$(g.filenames, d) : f.load(c,
  393. function(c) {
  394. f.Y$(c[0].filenames, d)
  395. })
  396. },
  397. Zp: function(c, d) {
  398. if (c && d) {
  399. if ("string" == typeof c) return this.KN[c.trim().toLowerCase()] = d;
  400. for (var f = 0,
  401. g = c.length; f < g; f++) this.KN["." + c[f].trim().toLowerCase()] = d
  402. }
  403. },
  404. xd: function(c) {
  405. return this.fj[c] || this.fj[this.Hv[c]]
  406. },
  407. rh: function(c) {
  408. var d = this.fj,
  409. f = this.Hv;
  410. delete d[c];
  411. delete d[f[c]];
  412. delete f[c]
  413. },
  414. L1a: function() {
  415. var c = this.fj,
  416. d = this.Hv,
  417. f;
  418. for (f in c) delete c[f];
  419. for (f in d) delete d[f]
  420. }
  421. }; (function() {
  422. function c() {
  423. C.Ka && C.qf.qt && C.Ka.dispatchEvent(C.qf.qt)
  424. }
  425. function d() {
  426. C.Ka && C.qf.pt && C.Ka.dispatchEvent(C.qf.pt)
  427. }
  428. var f = window,
  429. g, h;
  430. "undefined" !== typeof document.hidden ? (g = "hidden", h = "visibilitychange") : "undefined" !== typeof document.e0a ? (g = "mozHidden", h = "mozvisibilitychange") : "undefined" !== typeof document.f0a ? (g = "msHidden", h = "msvisibilitychange") : "undefined" !== typeof document.U6a && (g = "webkitHidden", h = "webkitvisibilitychange");
  431. g ? C.qb(document, h,
  432. function() {
  433. document[g] ? d() : c()
  434. },
  435. t) : (C.qb(f, "blur", d, t), C.qb(f, "focus", c, t));
  436. "onpageshow" in window && "onpagehide" in window && (C.qb(f, "pagehide", d, t), C.qb(f, "pageshow", c, t));
  437. h = f = s
  438. })();
  439. C.log = C.warn = C.error = C.assert = u();
  440. C.Yca = function(c, d) {
  441. for (var f = ["webgl", "experimental-webgl", "webkit-3d", "moz-webgl"], g = s, h = 0; h < f.length; ++h) {
  442. try {
  443. g = c.getContext(f[h], d)
  444. } catch(k) {}
  445. if (g) break
  446. }
  447. return g
  448. };
  449. C.eta = function(c, d) {
  450. C.cb = 0;
  451. C.la = 1;
  452. var f = C.Sc = {};
  453. f.Sma = "en";
  454. f.gMa = "zh";
  455. f.hMa = "fr";
  456. f.kMa = "it";
  457. f.iMa = "de";
  458. f.rMa = "es";
  459. f.qMa = "ru";
  460. f.mMa = "ko";
  461. f.lMa = "ja";
  462. f.jMa = "hu";
  463. f.pMa = "pt";
  464. f.fMa = "ar";
  465. f.nMa = "no";
  466. f.oMa = "pl";
  467. f.Dna = "Windows";
  468. f.L6 = "iOS";
  469. f.M6 = "OS X";
  470. f.Bna = "UNIX";
  471. f.Ana = "Linux";
  472. f.zna = "Android";
  473. f.Cna = "Unknown";
  474. f.dka = "wechat";
  475. f.aka = "androidbrowser";
  476. f.tS = "ie";
  477. f.bka = "qqbrowser";
  478. f.w4 = "mqqbrowser";
  479. f.x4 = "ucbrowser";
  480. f.LKa = "360browser";
  481. f.MKa = "baiduboxapp";
  482. f.v4 = "baidubrowser";
  483. f.NKa = "maxthon";
  484. f.uS = "opera";
  485. f.OKa = "miuibrowser";
  486. f.xD = "firefox";
  487. f.vS = "safari";
  488. f.sS = "chrome";
  489. f.cka = "unknown";
  490. f.wDa = t;
  491. var g = [f.v4, f.uS, f.xD, f.sS, f.vS],
  492. h = [f.v4, f.uS, f.xD, f.sS, f.vS, f.x4, f.bka, f.w4, f.tS],
  493. k = window,
  494. n = k.navigator,
  495. p = document.documentElement,
  496. r = n.userAgent.toLowerCase();
  497. f.Xr = -1 != r.indexOf("mobile") || -1 != r.indexOf("android");
  498. var v = n.language,
  499. v = (v = v ? v: n.browserLanguage) ? v.split("-")[0] : f.Sma;
  500. f.language = v;
  501. var v = f.cka,
  502. y = r.match(/micromessenger|qqbrowser|mqqbrowser|ucbrowser|360browser|baiduboxapp|baidubrowser|maxthon|trident|opera|miuibrowser|firefox/i) || r.match(/chrome|safari/i);
  503. y && 0 < y.length && (v = y[0].toLowerCase(), "micromessenger" == v ? v = f.dka: "safari" === v && r.match(/android.*applewebkit/) ? v = f.aka: "trident" == v && (v = f.tS));
  504. f.tu = v;
  505. f.Ova = -1 < h.indexOf(f.tu);
  506. h = parseInt(c[d.bR]);
  507. v = C.la;
  508. y = C.bd("Canvas");
  509. C.SG = q;
  510. g = -1 == g.indexOf(f.tu);
  511. if (1 === h || 0 === h && (f.Xr || g)) v = C.cb;
  512. if (v == C.la && (!k.WebGLRenderingContext || !C.Yca(y, {
  513. stencil: q,
  514. preserveDrawingBuffer: q
  515. }))) 0 == h ? v = C.cb: C.SG = t;
  516. if (v == C.cb) try {
  517. y.getContext("2d")
  518. } catch(z) {
  519. C.SG = t
  520. }
  521. C.L = v;
  522. try {
  523. f.jO = !!new(k.AudioContext || k.webkitAudioContext || k.mozAudioContext)
  524. } catch(D) {
  525. f.jO = t
  526. }
  527. try {
  528. var E = f.localStorage = k.localStorage;
  529. E.setItem("storage", "");
  530. E.removeItem("storage");
  531. E = s
  532. } catch(F) { ("SECURITY_ERR" === F.name || "QuotaExceededError" === F.name) && C.warn("Warning: localStorage isn't enabled. Please confirm browser cookie or privacy option"),
  533. f.localStorage = u()
  534. }
  535. E = f.uH = {
  536. canvas: q
  537. };
  538. C.L == C.la && (E.opengl = q);
  539. p.ontouchstart !== m || n.msPointerEnabled ? E.touches = q: p.onmouseup !== m && (E.mouse = q);
  540. p.onkeyup !== m && (E.keyboard = q);
  541. if (k.DeviceMotionEvent || k.DeviceOrientationEvent) E.accelerometer = q;
  542. k = r.match(/(iPad|iPhone|iPod)/i) ? q: t;
  543. r = r.match(/android/i) || n.platform.match(/android/i) ? q: t;
  544. p = f.Cna; - 1 != n.appVersion.indexOf("Win") ? p = f.Dna: k ? p = f.L6: -1 != n.appVersion.indexOf("Mac") ? p = f.M6: -1 != n.appVersion.indexOf("X11") ? p = f.Bna: -1 != n.appVersion.indexOf("Linux") ? p = f.Ana: r && (p = f.zna);
  545. f.Q1 = p;
  546. f.DSa = u();
  547. f.RRa = u();
  548. f.C2a = u();
  549. f.PRa = function() {
  550. var c;
  551. c = "" + ("isMobile : " + this.Xr + "\r\n");
  552. c += "language : " + this.language + "\r\n";
  553. c += "browserType : " + this.tu + "\r\n";
  554. c += "capabilities : " + JSON.stringify(this.uH) + "\r\n";
  555. c += "os : " + this.Q1 + "\r\n";
  556. C.log(c)
  557. }
  558. };
  559. C.LMa = 0;
  560. C.MMa = 1;
  561. C.JMa = 2;
  562. C.KMa = 3;
  563. C.Df = s;
  564. C.t = s;
  565. C.Pb = s;
  566. C.bsa = s;
  567. C.NN = t;
  568. C.zba = t;
  569. C.yba = function(c) {
  570. var d, f;
  571. if (!C.zba) {
  572. C.zba = q;
  573. var g = window;
  574. g.r2 = g.requestAnimationFrame || g.webkitRequestAnimationFrame || g.mozRequestAnimationFrame || g.oRequestAnimationFrame || g.msRequestAnimationFrame;
  575. var h = C.ic(c) || C.ic("#" + c),
  576. k;
  577. "CANVAS" == h.tagName ? (d = d || h.width, f = f || h.height, k = C.container = C.bd("DIV"), c = C.Pb = h, c.parentNode.insertBefore(k, c), c.ox(k), k.setAttribute("id", "Cocos2dGameContainer")) : ("DIV" != h.tagName && C.log("Warning: target element is not a DIV or CANVAS"), d = d || h.clientWidth, f = f || h.clientHeight, k = C.container = h, c = C.Pb = C.ic(C.bd("CANVAS")), h.appendChild(c));
  578. c.pca("gameCanvas");
  579. c.setAttribute("width", d || 480);
  580. c.setAttribute("height", 640);
  581. c.setAttribute("tabindex", 99);
  582. c.style.outline = "none";
  583. h = k.style;
  584. h.width = (d || 480) + "px";
  585. h.height = (f || 320) + "px";
  586. h.margin = "0 auto";
  587. h.position = "relative";
  588. h.overflow = "hidden";
  589. k.top = "100%";
  590. C.L == C.la && (C.t = C.T6a = C.Yca(c, {
  591. stencil: q,
  592. preserveDrawingBuffer: q,
  593. antialias: !C.Sc.Xr,
  594. alpha: t
  595. }));
  596. C.t ? (g.gl = C.t, C.Df = new C.Ola(C.t), C.NN = q, C.kb.jta(), C.ug.UF()) : (C.t = c.getContext("2d"), C.Dta = C.t, C.t.translate(0, c.height), C.Df = C.z5 ? new C.z5(C.t) : s);
  597. C.bsa = k;
  598. C.log(C.$S);
  599. C.Vua();
  600. C.Sc.Xr && (d = C.bd("style"), d.type = "text/css", document.body.appendChild(d), d.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);}");
  601. C.view = C.YS.KW();
  602. C.dfa.jGa(C.Pb);
  603. C.Q = C.ec.KW();
  604. C.Q.W2 && C.Q.W2(C.view);
  605. C.KJ = C.Q.aa;
  606. C.IGa = new C.GK;
  607. C.JFa = new C.Rna
  608. }
  609. };
  610. C.LV = function() {
  611. C.L !== C.la && e("This feature supports WebGL render mode only.")
  612. };
  613. C.haa = t;
  614. C.Vua = function() {
  615. C.haa = t;
  616. C.Pb.oncontextmenu = function() {
  617. }
  618. };
  619. C.qf = {
  620. t5: 0,
  621. Dla: 1,
  622. pLa: 2,
  623. Cla: 3,
  624. SS: 4,
  625. u5: 5,
  626. s5: 6,
  627. kK: "game_on_hide",
  628. JD: "game_on_show",
  629. pt: s,
  630. qt: s,
  631. kPa: [],
  632. Wm: {
  633. b0: "engineDir",
  634. tRa: "dependencies",
  635. CH: "debugMode",
  636. EIa: "showFPS",
  637. vP: "frameRate",
  638. id: "id",
  639. bR: "renderMode",
  640. GDa: "jsList",
  641. Ixa: "classReleaseMode"
  642. },
  643. Saa: t,
  644. ZX: t,
  645. xe: q,
  646. dX: s,
  647. gj: s,
  648. Vp: s,
  649. D0a: s,
  650. e4a: function(c) {
  651. this.gj[this.Wm.vP] = c;
  652. this.dX && clearInterval(this.dX);
  653. this.xe = q;
  654. this.sY()
  655. },
  656. sY: function() {
  657. var c = this,
  658. d, f = c.gj,
  659. g = c.Wm,
  660. h = window,
  661. k = f[g.vP],
  662. n = C.Q;
  663. n.qHa(f[g.EIa]);
  664. h.r2 && 60 == k ? (d = function() {
  665. c.xe || (n.Ofa(), h.r2(d))
  666. },
  667. h.r2(d)) : (d = function() {
  668. n.Ofa()
  669. },
  670. c.dX = setInterval(d, 1E3 / k));
  671. c.xe = t
  672. },
  673. HGa: function(c) {
  674. function d() {
  675. c && (f.gj[f.Wm.id] = c);
  676. f.Saa ? C.SG && (f.kra = setInterval(function() {
  677. f.ZX && (C.yba(f.gj[f.Wm.id]), f.sY(), f.pt = f.pt || new C.jq(f.kK), f.pt.setUserData(f), f.qt = f.qt || new C.jq(f.JD), f.qt.setUserData(f), f.Vp(), clearInterval(f.kra))
  678. },
  679. 10)) : f.SFa(function() {
  680. C.SG && (C.yba(f.gj[f.Wm.id]), f.sY(), f.pt = f.pt || new C.jq(f.kK), f.pt.setUserData(f), f.qt = f.qt || new C.jq(f.JD), f.qt.setUserData(f), f.Vp())
  681. })
  682. }
  683. var f = this;
  684. document.body ? d() : C.qb(window, "load",
  685. function() {
  686. this.removeEventListener("load", arguments.callee, t);
  687. d()
  688. },
  689. t)
  690. },
  691. ata: function() {
  692. function c(c) {
  693. c[d.b0] = c[d.b0] || "frameworks/cocos2d-html5";
  694. c[d.CH] == s && (c[d.CH] = 0);
  695. c[d.vP] = c[d.vP] || 60;
  696. c[d.bR] == s && (c[d.bR] = 1);
  697. return c
  698. }
  699. var d = this.Wm;
  700. if (document.ccConfig) this.gj = c(document.ccConfig);
  701. else try {
  702. for (var f = document.getElementsByTagName("script"), g = 0; g < f.length; g++) {
  703. var h = f[g].getAttribute("cocos");
  704. if ("" == h || h) break
  705. }
  706. var k, n, p;
  707. if (g < f.length) {
  708. if (k = f[g].src) p = /(.*)\//.exec(k)[0],
  709. C.M.dR = p,
  710. k = C.path.join(p, "project.json");
  711. n = C.M.vaa(k)
  712. }
  713. n || (n = C.M.vaa("project.json"));
  714. var r = JSON.parse(n);
  715. this.gj = c(r || {})
  716. } catch(v) {
  717. C.log("Failed to read or parse project.json"),
  718. this.gj = c({})
  719. }
  720. C.eta(this.gj, d)
  721. },
  722. tta: {},
  723. Q$: function(c, d, f) {
  724. var g = this.tta;
  725. if (g[d]) return s;
  726. f = f || "";
  727. var h = [],
  728. k = c[d];
  729. k || e("can not find module [" + d + "]");
  730. d = C.path;
  731. for (var n = 0,
  732. p = k.length; n < p; n++) {
  733. var r = k[n];
  734. if (!g[r]) {
  735. var v = d.Cp(r);
  736. v ? ".js" == v.toLowerCase() && h.push(d.join(f, r)) : (v = this.Q$(c, r, f)) && (h = h.concat(v));
  737. g[r] = 1
  738. }
  739. }
  740. return h
  741. },
  742. SFa: function(c) {
  743. var d = this,
  744. f = d.gj,
  745. g = d.Wm,
  746. h = f[g.b0],
  747. k = C.M;
  748. if (C.SG) {
  749. d.Saa = q;
  750. var n = f[g.GDa] || [];
  751. C.O ? k.Jfa("", n,
  752. function(f) {
  753. f && e(f);
  754. d.ZX = q;
  755. c && c()
  756. }) : (g = C.path.join(h, "moduleConfig.json"), k.Kfa(g,
  757. function(g, k) {
  758. g && e(g);
  759. var v = f.modules || [],
  760. y = k.module,
  761. z = [];
  762. C.L == C.la ? v.splice(0, 0, "shaders") : 0 > v.indexOf("core") && v.splice(0, 0, "core");
  763. for (var D = 0,
  764. E = v.length; D < E; D++) {
  765. var F = d.Q$(y, v[D], h);
  766. F && (z = z.concat(F))
  767. }
  768. z = z.concat(n);
  769. C.M.Jfa(z,
  770. function(f) {
  771. f && e(f);
  772. d.ZX = q;
  773. c && c()
  774. })
  775. }))
  776. } else C.error("Can not support render!")
  777. }
  778. };
  779. C.qf.ata();
  780. C.n = {
  781. l4: "cc.ActionManager.addAction(): action must be non-null",
  782. Ija: "cocos2d: removeAction: Target not found",
  783. nKa: "cc.ActionManager.removeActionByTag(): an invalid tag",
  784. oKa: "cc.ActionManager.removeActionByTag(): target must be non-null",
  785. Gja: "cc.ActionManager.getActionByTag(): an invalid tag",
  786. Hja: "cocos2d : getActionByTag(tag \x3d %s): Action not found",
  787. Mxa: "cocos2d: **** WARNING **** CC_ENABLE_PROFILERS is defined. Disable it when you finish profiling (from ccConfig.js)",
  788. Nxa: "Expected 'data' dict, but not found. Config file: %s",
  789. Oxa: "Please load the resource first : %s",
  790. Jla: "cocos2d: Director: Error in gettimeofday",
  791. Kla: "cocos2d: Director: unrecognized projection",
  792. ALa: "cocos2d: Director: unrecognized projection",
  793. Ila: "cocos2d: Director: Error in gettimeofday",
  794. Hla: "running scene should not null",
  795. y5: "the scene should not null",
  796. yB: "element type is wrong!",
  797. Coa: "CCSheduler#scheduleCallback. Callback already scheduled. Updating interval from:%s to %s",
  798. Doa: "cc.scheduler.scheduleCallbackForTarget(): callback_fn should be non-null.",
  799. Eoa: "cc.scheduler.scheduleCallbackForTarget(): target should be non-null.",
  800. Aoa: "cc.Scheduler.pauseTarget():target should be non-null",
  801. Boa: "cc.Scheduler.resumeTarget():target should be non-null",
  802. zoa: "cc.Scheduler.isTargetPaused():target should be non-null",
  803. jna: "getZOrder is deprecated. Please use getLocalZOrder instead.",
  804. una: "setZOrder is deprecated. Please use setLocalZOrder instead.",
  805. hna: "RotationX !\x3d RotationY. Don't know which one to return",
  806. ina: "ScaleX !\x3d ScaleY. Don't know which one to return",
  807. dna: "An Node can't be added as a child of itself.",
  808. ena: "child already added. It can't be added again",
  809. fna: "child must be non-null",
  810. ona: "removeFromParentAndCleanup is deprecated. Use removeFromParent instead",
  811. mna: "argument tag is an invalid tag",
  812. nna: "cocos2d: removeChildByTag(tag \x3d %s): child not found!",
  813. lna: "removeAllChildrenWithCleanup is deprecated. Use removeAllChildren instead",
  814. vna: "cc.Node.stopActionBy(): argument tag an invalid tag",
  815. gna: "cc.Node.getActionByTag(): argument tag is an invalid tag",
  816. qna: "resumeSchedulerAndActions is deprecated, please use resume instead.",
  817. kna: "pauseSchedulerAndActions is deprecated, please use pause instead.",
  818. cna: "Unknown callback function",
  819. pna: "child must be non-null",
  820. rna: "cc.Node.runAction(): action must be non-null",
  821. sna: "callback function must be non-null",
  822. tna: "interval must be positive",
  823. DMa: "cocos2d: Could not initialize cc.AtlasNode. Invalid Texture.",
  824. Rja: "cc.AtlasNode.updateAtlasValues(): Shall be overridden in subclasses",
  825. xKa: "",
  826. n4: "cocos2d: Could not initialize cc.AtlasNode. Invalid Texture.",
  827. uqa: "cc._EventListenerKeyboard.checkAvailable(): Invalid EventListenerKeyboard!",
  828. wqa: "cc._EventListenerTouchOneByOne.checkAvailable(): Invalid EventListenerTouchOneByOne!",
  829. vqa: "cc._EventListenerTouchAllAtOnce.checkAvailable(): Invalid EventListenerTouchAllAtOnce!",
  830. tqa: "cc._EventListenerAcceleration.checkAvailable(): _onAccelerationEvent must be non-nil",
  831. gma: "Invalid parameter.",
  832. cL: "Don't call this method if the event is for touch.",
  833. Bza: "Invalid scene graph priority!",
  834. Cza: "0 priority is forbidden for fixed priority since it's used for scene graph based priority.",
  835. Gza: "Invalid listener type!",
  836. Hza: "Can't set fixed priority with scene graph based listener.",
  837. Dza: "Invalid parameters.",
  838. Eza: "listener must be a cc.EventListener object when adding a fixed priority listener",
  839. Fza: "The listener has been registered, please don't register it again.",
  840. Vma: "parameters should not be ending with null in Javascript",
  841. Wma: "Invalid index in MultiplexLayer switchTo message",
  842. Xma: "Invalid index in MultiplexLayer switchTo message",
  843. Uma: "cc.Layer.addLayer(): layer should be non-null",
  844. Sla: "Resolution not valid",
  845. Tla: "should set resolutionPolicy",
  846. fDa: "The touches is more than MAX_TOUCHES, nUnusedIndex \x3d %s",
  847. Uia: "cc.swap is being modified from original macro, please check usage",
  848. DB: "WebGL error %s",
  849. Owa: "cocos2d: cc.AnimationCache: No animations were found in provided dictionary.",
  850. Pwa: "cc.AnimationCache. Invalid animation format",
  851. Wwa: "cc.AnimationCache.addAnimations(): File could not be found",
  852. Qwa: "cocos2d: cc.AnimationCache: Animation '%s' found in dictionary without any frames - cannot add to animation cache.",
  853. Rwa: "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.",
  854. Swa: "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.",
  855. Twa: "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.",
  856. Uwa: "cocos2d: CCAnimationCache: Animation '%s' found in dictionary without any frames - cannot add to animation cache.",
  857. Vwa: "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.",
  858. Xwa: "cc.AnimationCache.addAnimations(): Invalid texture file name",
  859. gpa: "cc.Sprite.reorderChild(): this child is not in children list",
  860. Zoa: "cc.Sprite.ignoreAnchorPointForPosition(): it is invalid in cc.Sprite when using SpriteBatchNode",
  861. jpa: "cc.Sprite.setDisplayFrameWithAnimationName(): Frame not found",
  862. kpa: "cc.Sprite.setDisplayFrameWithAnimationName(): Invalid frame index",
  863. ipa: "setDisplayFrame is deprecated, please use setSpriteFrame instead.",
  864. Soa: "cc.Sprite._updateBlendFunc(): _updateBlendFunc doesn't work when the sprite is rendered using a cc.CCSpriteBatchNode",
  865. apa: "cc.Sprite.initWithSpriteFrame(): spriteFrame should be non-null",
  866. bpa: "cc.Sprite.initWithSpriteFrameName(): spriteFrameName should be non-null",
  867. cpa: " is null, please check.",
  868. $oa: "cc.Sprite.initWithFile(): filename should be non-null",
  869. lpa: "cc.Sprite.setDisplayFrameWithAnimationName(): animationName must be non-null",
  870. hpa: "cc.Sprite.reorderChild(): child should be non-null",
  871. Toa: "cc.Sprite.addChild(): cc.Sprite only supports cc.Sprites as children when using cc.SpriteBatchNode",
  872. Uoa: "cc.Sprite.addChild(): cc.Sprite only supports a sprite using same texture as children when using cc.SpriteBatchNode",
  873. Voa: "cc.Sprite.addChild(): child should be non-null",
  874. npa: "cc.Sprite.texture setter: Batched sprites should use the same texture as the batchnode",
  875. gNa: "cc.SpriteBatchNode.updateQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",
  876. epa: "cc.SpriteBatchNode.insertQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",
  877. Woa: "cc.SpriteBatchNode.addChild(): cc.SpriteBatchNode only supports cc.Sprites as children",
  878. Xoa: "cc.SpriteBatchNode.addChild(): cc.Sprite is not using the same texture",
  879. dpa: "Sprite.initWithTexture(): Argument must be non-nil ",
  880. mpa: "Invalid spriteFrameName",
  881. opa: "Invalid argument: cc.Sprite.texture setter expects a CCTexture2D.",
  882. hNa: "cc.SpriteBatchNode.updateQuadFromSprite(): sprite should be non-null",
  883. fpa: "cc.SpriteBatchNode.insertQuadFromSprite(): sprite should be non-null",
  884. Yoa: "cc.SpriteBatchNode.addChild(): child should be non-null",
  885. Loa: "cc.SpriteBatchNode.addQuadFromSprite(): SpriteBatchNode only supports cc.Sprites as children",
  886. Noa: "cocos2d: CCSpriteBatchNode: resizing TextureAtlas capacity from %s to %s.",
  887. Ooa: "cocos2d: WARNING: Not enough memory to resize the atlas",
  888. Qoa: "cc.SpriteBatchNode.addChild(): Child doesn't belong to Sprite",
  889. Poa: "cc.SpriteBatchNode.addChild(): sprite batch node should contain the child",
  890. Moa: "cc.SpriteBatchNode.addQuadFromSprite(): child should be non-null",
  891. Roa: "cc.SpriteBatchNode.addChild():child should be non-null",
  892. MIa: "cocos2d: WARNING: originalWidth/Height not found on the cc.SpriteFrame. AnchorPoint won't work as expected. Regenrate the .plist",
  893. OIa: "cocos2d: WARNING: an alias with name %s already exists",
  894. LIa: "cocos2d: WARNING: Sprite frame: %s has already been added by another source, please fix name conflit",
  895. RIa: "cocos2d: cc.SpriteFrameCahce: Frame %s not found",
  896. NIa: "Please load the resource first : %s",
  897. PIa: "cc.SpriteFrameCache.addSpriteFrames(): plist should be non-null",
  898. QIa: "Argument must be non-nil",
  899. CS: "cc.SpriteBatchNode.updateQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",
  900. tka: "cc.SpriteBatchNode.insertQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",
  901. pka: "cc.SpriteBatchNode.addChild(): cc.SpriteBatchNode only supports cc.Sprites as children",
  902. ska: "Sprite.initWithTexture(): Argument must be non-nil ",
  903. qka: "cc.Sprite.addChild(): child should be non-null",
  904. vka: "Invalid spriteFrameName",
  905. wka: "Invalid argument: cc.Sprite texture setter expects a CCTexture2D.",
  906. xka: "cc.SpriteBatchNode.updateQuadFromSprite(): sprite should be non-null",
  907. uka: "cc.SpriteBatchNode.insertQuadFromSprite(): sprite should be non-null",
  908. rka: "cc.SpriteBatchNode.addChild(): child should be non-null",
  909. Opa: "cocos2d: Could not open file: %s",
  910. Z7: "cc.TextureAtlas.insertQuad(): invalid totalQuads",
  911. Ppa: "cc.TextureAtlas.initWithTexture():texture should be non-null",
  912. Zpa: "cc.TextureAtlas.updateQuad(): quad should be non-null",
  913. $pa: "cc.TextureAtlas.updateQuad(): Invalid index",
  914. Spa: "cc.TextureAtlas.insertQuad(): Invalid index",
  915. Tpa: "cc.TextureAtlas.insertQuad(): Invalid index + amount",
  916. Qpa: "cc.TextureAtlas.insertQuadFromIndex(): Invalid newIndex",
  917. Rpa: "cc.TextureAtlas.insertQuadFromIndex(): Invalid fromIndex",
  918. Xpa: "cc.TextureAtlas.removeQuadAtIndex(): Invalid index",
  919. Ypa: "cc.TextureAtlas.removeQuadsAtIndex(): index + amount out of bounds",
  920. Upa: "cc.TextureAtlas.moveQuadsFromIndex(): move is out of bounds",
  921. Vpa: "cc.TextureAtlas.moveQuadsFromIndex(): Invalid newIndex",
  922. Wpa: "cc.TextureAtlas.moveQuadsFromIndex(): Invalid oldIndex",
  923. fJa: "TextureCache:addPVRTCImage does not support on HTML5",
  924. dJa: "TextureCache:addPVRTCImage does not support on HTML5",
  925. eJa: "addPVRImage does not support on HTML5",
  926. gJa: "cocos2d: Couldn't add UIImage in TextureCache",
  927. iJa: "cocos2d: '%s' id\x3d%s %s x %s",
  928. Wia: "cocos2d: '%s' id\x3d HTMLCanvasElement %s x %s",
  929. jJa: "cocos2d: TextureCache dumpDebugInfo: %s textures, HTMLCanvasElement for %s KB (%s MB)",
  930. hJa: "cc.Texture.addUIImage(): image should be non-null",
  931. Fpa: "initWithETCFile does not support on HTML5",
  932. Jpa: "initWithPVRFile does not support on HTML5",
  933. Lpa: "initWithPVRTCData does not support on HTML5",
  934. Bpa: "cc.Texture.addImage(): path should be non-null",
  935. Hpa: "cocos2d: cc.Texture2D. Can't create Texture. UIImage is nil",
  936. Ipa: "cocos2d: WARNING: Image (%s x %s) is bigger than the supported %s x %s",
  937. Npa: "initWithString isn't supported on cocos2d-html5",
  938. Gpa: "initWithETCFile does not support on HTML5",
  939. Kpa: "initWithPVRFile does not support on HTML5",
  940. Mpa: "initWithPVRTCData does not support on HTML5",
  941. Dpa: "bitsPerPixelForFormat: %s, cannot give useful result, it's a illegal pixel format",
  942. Apa: "cocos2d: cc.Texture2D: Using RGB565 texture since image has no alpha",
  943. Cpa: "cc.Texture.addImage(): path should be non-null",
  944. Epa: "NSInternalInconsistencyException",
  945. Bf: "Missing file: %s",
  946. zga: "cc.radiansToDegress() should be called cc.radiansToDegrees()",
  947. YT: "Rect width exceeds maximum margin: %s",
  948. XT: "Rect height exceeds maximum margin: %s",
  949. hma: "If program goes here, there should be event in dispatch.",
  950. ima: "_inDispatch should be 1 here."
  951. };
  952. C.aN = function(c) {
  953. if (C.Pb) {
  954. var d = C.Bta,
  955. f = document;
  956. if (!d) {
  957. var g = f.createElement("Div"),
  958. d = g.style;
  959. g.setAttribute("id", "logInfoDiv");
  960. C.Pb.parentNode.appendChild(g);
  961. g.setAttribute("width", "200");
  962. g.setAttribute("height", C.Pb.height);
  963. d.zIndex = "99999";
  964. d.position = "absolute";
  965. d.top = "0";
  966. d.left = "0";
  967. d = C.Bta = f.createElement("textarea");
  968. f = d.style;
  969. d.setAttribute("rows", "20");
  970. d.setAttribute("cols", "30");
  971. d.setAttribute("disabled", q);
  972. g.appendChild(d);
  973. f.backgroundColor = "transparent";
  974. f.borderBottom = "1px solid #cccccc";
  975. f.borderRightWidth = "0px";
  976. f.borderLeftWidth = "0px";
  977. f.borderTopWidth = "0px";
  978. f.borderTopStyle = "none";
  979. f.borderRightStyle = "none";
  980. f.borderLeftStyle = "none";
  981. f.padding = "0px";
  982. f.margin = 0
  983. }
  984. c = "string" == typeof c ? c: JSON.stringify(c);
  985. d.value = d.value + c + "\r\n";
  986. d.scrollTop = d.scrollHeight
  987. }
  988. };
  989. C.zM = function(c) {
  990. if ("object" === typeof c) try {
  991. return JSON.stringify(c)
  992. } catch(d) {
  993. return ""
  994. } else return c
  995. };
  996. console.log && (C.log = function(c) {
  997. for (var d = 1; d < arguments.length; d++) c = c.replace(/(%s)|(%d)/, C.zM(arguments[d]));
  998. console.log(c)
  999. },
  1000. C.warn = console.warn ?
  1001. function(c) {
  1002. for (var d = 1; d < arguments.length; d++) c = c.replace(/(%s)|(%d)/, C.zM(arguments[d]));
  1003. console.warn(c)
  1004. }: C.log, C.error = console.error ?
  1005. function(c) {
  1006. for (var d = 1; d < arguments.length; d++) c = c.replace(/(%s)|(%d)/, C.zM(arguments[d]));
  1007. console.error(c)
  1008. }: C.log, C.assert = function(c, d) {
  1009. if (!c && d) {
  1010. for (var f = 2; f < arguments.length; f++) d = d.replace(/(%s)|(%d)/, C.zM(arguments[f]));
  1011. e(d)
  1012. }
  1013. });
  1014. var ea = C.qf.gj[C.qf.Wm.CH],
  1015. fa = C.qf;
  1016. console.log && ea === fa.Dla || (C.log = ea == fa.SS ? C.aN.bind(C) : u());
  1017. if (!ea || ea == fa.t5 || ea == fa.Cla || ea == fa.s5) C.warn = u();
  1018. if (ea == fa.SS || ea == fa.u5 || !console.warn) C.warn = C.aN.bind(C);
  1019. if (!ea || ea == fa.t5) C.error = u(),
  1020. C.assert = u();
  1021. else if (ea == fa.SS || ea == fa.u5 || ea == fa.s5 || !console.error) C.error = C.aN.bind(C),
  1022. C.assert = function(c, d) {
  1023. if (!c && d) {
  1024. for (var f = 2; f < arguments.length; f++) d = d.replace("%s", arguments[f]);
  1025. C.aN(d)
  1026. }
  1027. };
  1028. C.M.kEa = function(c, d) {
  1029. var f = this,
  1030. g = this.cI(),
  1031. h = "load " + c + " failed!";
  1032. g.open("GET", c, q);
  1033. /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent) ? (g.setRequestHeader("Accept-Charset", "x-user-defined"), g.onreadystatechange = function() {
  1034. if (4 == g.readyState && 200 == g.status) {
  1035. var c = C.RV(g.responseBody);
  1036. d(s, f.fO(c))
  1037. } else d(h)
  1038. }) : (g.overrideMimeType && g.overrideMimeType("text/plain; charset\x3dx-user-defined"), g.onload = function() {
  1039. 4 == g.readyState && 200 == g.status ? d(s, f.fO(g.responseText)) : d(h)
  1040. });
  1041. g.send(s)
  1042. };
  1043. C.M.fO = function(c) {
  1044. if (!c) return s;
  1045. for (var d = new Uint8Array(c.length), f = 0; f < c.length; f++) d[f] = c.charCodeAt(f) & 255;
  1046. return d
  1047. };
  1048. C.M.Ifa = function(c) {
  1049. var d = this.cI(),
  1050. f = "load " + c + " failed!";
  1051. d.open("GET", c, t);
  1052. c = s;
  1053. if (/msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent)) {
  1054. d.setRequestHeader("Accept-Charset", "x-user-defined");
  1055. d.send(s);
  1056. if (200 != d.status) return C.log(f),
  1057. s; (d = C.RV(d.responseBody)) && (c = this.fO(d))
  1058. } else {
  1059. d.overrideMimeType && d.overrideMimeType("text/plain; charset\x3dx-user-defined");
  1060. d.send(s);
  1061. if (200 != d.status) return C.log(f),
  1062. s;
  1063. c = this.fO(d.responseText)
  1064. }
  1065. return c
  1066. };
  1067. var Uint8Array = Uint8Array || Array;
  1068. if (/msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent)) {
  1069. var ga = C.bd("script");
  1070. ga.type = "text/vbscript";
  1071. ga.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';
  1072. document.body.appendChild(ga);
  1073. C.RV = function(c) {
  1074. for (var d = {},
  1075. f = 0; 256 > f; f++) for (var g = 0; 256 > g; g++) d[String.fromCharCode(f + 256 * g)] = String.fromCharCode(f) + String.fromCharCode(g);
  1076. f = IEBinaryToArray_ByteStr(c);
  1077. c = IEBinaryToArray_ByteStr_Last(c);
  1078. return f.replace(/[\s\S]/g,
  1079. function(c) {
  1080. return d[c]
  1081. }) + c
  1082. }
  1083. };
  1084. C = C || {};
  1085. C.xaa = "data:image/gif;base64,R0lGODlhEAAQALMNAD8/P7+/vyoqKlVVVX9/fxUVFUBAQGBgYMDAwC8vL5CQkP///wAAAP///wAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFAAANACwAAAAAEAAQAAAEO5DJSau9OOvNex0IMnDIsiCkiW6g6BmKYlBFkhSUEgQKlQCARG6nEBwOgl+QApMdCIRD7YZ5RjlGpCUCACH5BAUAAA0ALAAAAgAOAA4AAAQ6kLGB0JA4M7QW0hrngRllkYyhKAYqKUGguAws0ypLS8JxCLQDgXAIDg+FRKIA6v0SAECCBpXSkstMBAAh+QQFAAANACwAAAAACgAQAAAEOJDJORAac6K1kDSKYmydpASBUl0mqmRfaGTCcQgwcxDEke+9XO2WkxQSiUIuAQAkls0n7JgsWq8RACH5BAUAAA0ALAAAAAAOAA4AAAQ6kMlplDIzTxWC0oxwHALnDQgySAdBHNWFLAvCukc215JIZihVIZEogDIJACBxnCSXTcmwGK1ar1hrBAAh+QQFAAANACwAAAAAEAAKAAAEN5DJKc4RM+tDyNFTkSQF5xmKYmQJACTVpQSBwrpJNteZSGYoFWjIGCAQA2IGsVgglBOmEyoxIiMAIfkEBQAADQAsAgAAAA4ADgAABDmQSVZSKjPPBEDSGucJxyGA1XUQxAFma/tOpDlnhqIYN6MEAUXvF+zldrMBAjHoIRYLhBMqvSmZkggAIfkEBQAADQAsBgAAAAoAEAAABDeQyUmrnSWlYhMASfeFVbZdjHAcgnUQxOHCcqWylKEohqUEAYVkgEAMfkEJYrFA6HhKJsJCNFoiACH5BAUAAA0ALAIAAgAOAA4AAAQ3kMlJq704611SKloCAEk4lln3DQgyUMJxCBKyLAh1EMRR3wiDQmHY9SQslyIQUMRmlmVTIyRaIgA7";
  1086. C.aA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAAgCAYAAAD9qabkAAAKQ2lDQ1BJQ0MgcHJvZmlsZQAAeNqdU3dYk/cWPt/3ZQ9WQtjwsZdsgQAiI6wIyBBZohCSAGGEEBJAxYWIClYUFRGcSFXEgtUKSJ2I4qAouGdBiohai1VcOO4f3Ke1fXrv7e371/u855zn/M55zw+AERImkeaiagA5UoU8Otgfj09IxMm9gAIVSOAEIBDmy8JnBcUAAPADeXh+dLA//AGvbwACAHDVLiQSx+H/g7pQJlcAIJEA4CIS5wsBkFIAyC5UyBQAyBgAsFOzZAoAlAAAbHl8QiIAqg0A7PRJPgUA2KmT3BcA2KIcqQgAjQEAmShHJAJAuwBgVYFSLALAwgCgrEAiLgTArgGAWbYyRwKAvQUAdo5YkA9AYACAmUIszAAgOAIAQx4TzQMgTAOgMNK/4KlfcIW4SAEAwMuVzZdL0jMUuJXQGnfy8ODiIeLCbLFCYRcpEGYJ5CKcl5sjE0jnA0zODAAAGvnRwf44P5Dn5uTh5mbnbO/0xaL+a/BvIj4h8d/+vIwCBAAQTs/v2l/l5dYDcMcBsHW/a6lbANpWAGjf+V0z2wmgWgrQevmLeTj8QB6eoVDIPB0cCgsL7SViob0w44s+/zPhb+CLfvb8QB7+23rwAHGaQJmtwKOD/XFhbnauUo7nywRCMW735yP+x4V//Y4p0eI0sVwsFYrxWIm4UCJNx3m5UpFEIcmV4hLpfzLxH5b9CZN3DQCshk/ATrYHtctswH7uAQKLDljSdgBAfvMtjBoLkQAQZzQyefcAAJO/+Y9AKwEAzZek4wAAvOgYXKiUF0zGCAAARKCBKrBBBwzBFKzADpzBHbzAFwJhBkRADCTAPBBCBuSAHAqhGJZBGVTAOtgEtbADGqARmuEQtMExOA3n4BJcgetwFwZgGJ7CGLyGCQRByAgTYSE6iBFijtgizggXmY4EImFINJKApCDpiBRRIsXIcqQCqUJqkV1II/ItchQ5jVxA+pDbyCAyivyKvEcxlIGyUQPUAnVAuagfGorGoHPRdDQPXYCWomvRGrQePYC2oqfRS+h1dAB9io5jgNExDmaM2WFcjIdFYIlYGibHFmPlWDVWjzVjHVg3dhUbwJ5h7wgkAouAE+wIXoQQwmyCkJBHWExYQ6gl7CO0EroIVwmDhDHCJyKTqE+0JXoS+cR4YjqxkFhGrCbuIR4hniVeJw4TX5NIJA7JkuROCiElkDJJC0lrSNtILaRTpD7SEGmcTCbrkG3J3uQIsoCsIJeRt5APkE+S+8nD5LcUOsWI4kwJoiRSpJQSSjVlP+UEpZ8yQpmgqlHNqZ7UCKqIOp9aSW2gdlAvU4epEzR1miXNmxZDy6Qto9XQmmlnafdoL+l0ugndgx5Fl9CX0mvoB+nn6YP0dwwNhg2Dx0hiKBlrGXsZpxi3GS+ZTKYF05eZyFQw1zIbmWeYD5hvVVgq9ip8FZHKEpU6lVaVfpXnqlRVc1U/1XmqC1SrVQ+rXlZ9pkZVs1DjqQnUFqvVqR1Vu6k2rs5Sd1KPUM9RX6O+X/2C+mMNsoaFRqCGSKNUY7fGGY0hFsYyZfFYQtZyVgPrLGuYTWJbsvnsTHYF+xt2L3tMU0NzqmasZpFmneZxzQEOxrHg8DnZnErOIc4NznstAy0/LbHWaq1mrX6tN9p62r7aYu1y7Rbt69rvdXCdQJ0snfU6bTr3dQm6NrpRuoW623XP6j7TY+t56Qn1yvUO6d3RR/Vt9KP1F+rv1u/RHzcwNAg2kBlsMThj8MyQY+hrmGm40fCE4agRy2i6kcRoo9FJoye4Ju6HZ+M1eBc+ZqxvHGKsNN5l3Gs8YWJpMtukxKTF5L4pzZRrmma60bTTdMzMyCzcrNisyeyOOdWca55hvtm82/yNhaVFnMVKizaLx5balnzLBZZNlvesmFY+VnlW9VbXrEnWXOss623WV2xQG1ebDJs6m8u2qK2brcR2m23fFOIUjynSKfVTbtox7PzsCuya7AbtOfZh9iX2bfbPHcwcEh3WO3Q7fHJ0dcx2bHC866ThNMOpxKnD6VdnG2ehc53zNRemS5DLEpd2lxdTbaeKp26fesuV5RruutK10/Wjm7ub3K3ZbdTdzD3Ffav7TS6bG8ldwz3vQfTw91jicczjnaebp8LzkOcvXnZeWV77vR5Ps5wmntYwbcjbxFvgvct7YDo+PWX6zukDPsY+Ap96n4e+pr4i3z2+I37Wfpl+B/ye+zv6y/2P+L/hefIW8U4FYAHBAeUBvYEagbMDawMfBJkEpQc1BY0FuwYvDD4VQgwJDVkfcpNvwBfyG/ljM9xnLJrRFcoInRVaG/owzCZMHtYRjobPCN8Qfm+m+UzpzLYIiOBHbIi4H2kZmRf5fRQpKjKqLupRtFN0cXT3LNas5Fn7Z72O8Y+pjLk722q2cnZnrGpsUmxj7Ju4gLiquIF4h/hF8ZcSdBMkCe2J5MTYxD2J43MC52yaM5zkmlSWdGOu5dyiuRfm6c7Lnnc8WTVZkHw4hZgSl7I/5YMgQlAvGE/lp25NHRPyhJuFT0W+oo2iUbG3uEo8kuadVpX2ON07fUP6aIZPRnXGMwlPUit5kRmSuSPzTVZE1t6sz9lx2S05lJyUnKNSDWmWtCvXMLcot09mKyuTDeR55m3KG5OHyvfkI/lz89sVbIVM0aO0Uq5QDhZML6greFsYW3i4SL1IWtQz32b+6vkjC4IWfL2QsFC4sLPYuHhZ8eAiv0W7FiOLUxd3LjFdUrpkeGnw0n3LaMuylv1Q4lhSVfJqedzyjlKD0qWlQyuCVzSVqZTJy26u9Fq5YxVhlWRV72qX1VtWfyoXlV+scKyorviwRrjm4ldOX9V89Xlt2treSrfK7etI66Trbqz3Wb+vSr1qQdXQhvANrRvxjeUbX21K3nShemr1js20zcrNAzVhNe1bzLas2/KhNqP2ep1/XctW/a2rt77ZJtrWv913e/MOgx0VO97vlOy8tSt4V2u9RX31btLugt2PGmIbur/mft24R3dPxZ6Pe6V7B/ZF7+tqdG9s3K+/v7IJbVI2jR5IOnDlm4Bv2pvtmne1cFoqDsJB5cEn36Z8e+NQ6KHOw9zDzd+Zf7f1COtIeSvSOr91rC2jbaA9ob3v6IyjnR1eHUe+t/9+7zHjY3XHNY9XnqCdKD3x+eSCk+OnZKeenU4/PdSZ3Hn3TPyZa11RXb1nQ8+ePxd07ky3X/fJ897nj13wvHD0Ivdi2yW3S609rj1HfnD94UivW2/rZffL7Vc8rnT0Tes70e/Tf/pqwNVz1/jXLl2feb3vxuwbt24m3Ry4Jbr1+Hb27Rd3Cu5M3F16j3iv/L7a/eoH+g/qf7T+sWXAbeD4YMBgz8NZD+8OCYee/pT/04fh0kfMR9UjRiONj50fHxsNGr3yZM6T4aeypxPPyn5W/3nrc6vn3/3i+0vPWPzY8Av5i8+/rnmp83Lvq6mvOscjxx+8znk98ab8rc7bfe+477rfx70fmSj8QP5Q89H6Y8en0E/3Pud8/vwv94Tz+4A5JREAAAAGYktHRAD/AP8A/6C9p5MAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfcAgcQLxxUBNp/AAAQZ0lEQVR42u2be3QVVZbGv1N17829eRLyIKAEOiISEtPhJTJAYuyBDmhWjAEx4iAGBhxA4wABbVAMWUAeykMCM+HRTcBRWkNH2l5moS0LCCrQTkYeQWBQSCAIgYRXEpKbW/XNH5zS4noR7faPEeu31l0h4dSpvc+t/Z199jkFWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhY/H9D/MR9qfKnLj/00U71aqfJn9+HCkCR/Wk36ddsgyJ/1wF4fkDfqqm9/gPsUeTnVr6a2xlQfnxdI7zs0W7irzD17Ytb2WT7EeNv/r4ox1O3Quf2QP2pgt9utwfout4FQE8AVBSlnaRmfvAURQkg2RlAbwB9AThlW5L0GaiKojhJhgOIBqDa7XaPrusdPtr5kQwF0BVAAoBIABRCKDd5aFUhRDAAw57eAOwAhKIoupft3zoqhB1AqLwuHIBut9uFt02qqvqRDJR2dAEQJj/BAOjn56dqmma+xiaECAEQAWAggLsB6A6HQ2iaZggBhBAqgEAAnQB0kzaEmT4hAITT6VQ8Ho/HJAKKECJQtr8LwD1y/A1/vcdfEUIEyfZ9AcQbYvZ942Px88L2UwlJR0dH0EMPPbRj5syZPUeNGrXR7Xb/641xIwJ1XY9NSUlZm52dfW+XLl1w8uRJzJ8//+OGhoYJqqqe1TSt1Wsm9NN1PSIqKmr12rVrR5WUlHy1bdu2AQCumWc3IYRD1/UwVVXnFRQUTIuNjUVzczN2797dWFJSkq8oymZd15sAGAEnFEUJ1nX9nzIzM1dnZmZGh4SE4OTJk5g5c+Zf29vbp9pstrMej6fVOyhIhgAYU1hY+B+hoaGoqKg4XVlZea+XTULTNFdCQsLGiRMnPuR2u3UhBOV9eeDAAWXTpk095DUe6WsoyRE5OTlr0tLSAux2O/bs2cO5c+e+pijKUpIXSHaQVAGkvPLKK++6XK4OksJLCFlXV2cvKSlJBFAjhU+x2WwhHo9nUHp6+urMzMy7wsLCUF9fjxdffPHjxsbGiTab7WuPx9NiEutOuq4PyMjI+M+srKyYqKgoHD58GDNmzNjq8XhyVFU9b/q+LH7hBAEYu3PnTlZVVRFAGgCX6f/tAHoOHDjwa0p27txp/JO9e/f+QM7cipw9nfL3kQBKt2zZQpJ87rnn6mQmoHilw2EACs+cOUOSrK+vZ1NTE0nyo48+IoBpxswoBcMJ4Ndjx471kOTFixe5d+9ekqTH42H//v13A4jyzpAURfEH0H/OnDnthu1z5sw558MmFUCPWbNmnaMP3nrrLZoyDmP8Hl68eDFJ8siRI9/Yc+zYMQKYKdtAztrTrl27xptRXV1NAKMAOAyBBBA/Y8aMdpLs6Ojgxx9//E37+++//29yvFXppwvAwMcee8xjtDHsuXLlCqOjo//ia3wsfpkoALqFhoZuIckJEyackimm3dQmEMDUmpoakmRISMhhAHOHDx/eQJIbN24kgKEyMAHAFRMTs2XXrl1saWkhSZ0kp0+ffhrAr3wEW/S8efOukORLL72kA1gKYMPWrVtJkk899dRJAHeYrgsEsIQkjx8/TgDvAPjd448/3kaSb7zxBmUa7vC6z53BwcFbSHL9+vU6Sc6aNes8gF5ewWAH0PfVV18lSQL4DMBGIcQ6AKtcLleBFC2jXtFt8ODBe0iyoqKCAJYByC8qKmJDQwOzsrK+MAmqo1OnTveHhoa+GRkZ+XZkZOSWiIiIvzgcjk9mzpypkWRmZuZpmbYbGV4AgPnNzc1sa2sjgN0A5iQmJtaSZHl5OQHcb/K3s81mW0uSTU1NBFAFYFbfvn1Pk+Tbb79NAA8IIVzW42/hByA+Pz/fLR/2ZXIda05NI/z9/TeR5J49ewhgqlxTrtI0jY2NjQQw3zTLuWJiYjaUlJToS5Ys6fjkk080kwDEeAmADcA9GzZsIElGRUW9CyAWwLApU6Y0kOSKFSsog9QICGdERMTGsrIyZmVlEcC9AB4IDw/fTpLbtm0jgN94CUAnAJmVlZVcs2aNZ/LkyRdJcvbs2b4EwAkgZfPmzTxw4AABFAN4BkC6vFeUSewcAO5duXIlSTIhIaEawGMAxgKYAmAGgCS73e5vrKVk/yGythANYEhCQsIhkly+fDkBpKqqGmL6DgIALDKN/3yZpVWQZGVlJQE8aPI3KiMjo5okV61aRQAjAPQBMPfIkSN0u90EUCBtsPiFEwpgbn19PdetW2fM5N4zQ9ekpKQqkty0aRMBpMjiWM6JEydIkoqirJUFJ6iq6pAPVy8A6cZMehMBUACEuVyuFwG8HBwcPEIWx367ZMkSjSQXLVrUJouTRorrkAHdA8BdQogsAOsKCwtJkmPGjDkvMw2bDDo/ADEjRoz4XylyFbm5uY0mAbjLyyZ/AOOrq6tZVlbWsWDBgo69e/eyoqKCgwcPPg4gSQaoIRbp27dvN7KF+tLSUr28vJwFBQXtMpvpYRIM7+wrAkDeqVOnePbsWQIoNKfzpiXPg8uXLydJJicnNwF4f+nSpW6STEtLq5fjYwhk1wkTJtSQ5Ouvv04AqTKj+N2xY8dIkgEBAW/Ie1v8wncRegwZMmQvSfbr12+3Ua33WqPfOWbMmP0kWVpaSgCDZAqcfejQIWNZsEGKgvnh9gfQb9myZd8nAEJVVZtMkUNk8CcNHTq0liR1XWdYWNhmH1mJIme80OnTp18x1rp5eXkEsNJms92Fb7e/IgEsvHz5Mp999tkmAI/l5uZeMC0B7vEqqAYAyL106RJJsra2lpWVld+sucePH38ZQG+5NncBeOrgwYMkqbe3t/Po0aOsra011wAWyl0H7x0JJ4DE+fPnu0kyPT29DsDdUrBuyNKEEAkAdpw/f/6GeoEM8GUmfwEgPCIiopwkGxsbabPZPgOw6L777vvm4p49e26VGYjFLxUhhD+ApLKyMp44ccIoVnXybgbgzkcfffRzklyzZg0BDJYCMMmoCwQFBXkLgLGWvvcWAgBToSsKwNPTp09vMR7UuLi4rwH0lgU8c/Db5ezbeeTIkRWzZ8++aMxu+fn5BPCADBwHgP4LFy701NXVEUAJgAnPP/98kyxMNgHo53A4zH77BQQETMvPz7+Um5vbBuAlAFMSExPPmdbVL0qh8Acw8fDhw5SCchVAEYAVb775JknyhRdeaJYztHfxMwLAaqNwCGC2FArv8x0hAHKNLGPKlCme5OTk/Zs3bzb7O0wKiiG8KXl5ed8IxenTp0mSR48e1UmyW7duWywBuD2xyQcgFECgoih+8H1gyJgZV5Lkyy+/3CbTRIePtl2HDBmyw1QBHyGDdXZdXR1JUghRKkXBjOMHCoBdpr0L3nvvPZLkF198wejo6O0A4lVVDTb74HQ6AwD8Wq7Jh8rgGgDgQ13XjVR8qaxJuADMbmlpYXl5uV5UVNRWUFDgfv/993Vj/ZydnU1c37eHXML4S3viAcQqitJD2l104cIFY8lTKsXSBWBMVVWVcd9yed2A1NTUQ6Zl00CvLMMOoHdubm6zFIlWOf5+PsY/Kj09vdrU11QAwwGsv3jxIk21m2DZr10I0RXAuAcffPBgaWkpV69eTYfDcdiwUxY0w6xw+flX8L1xApjevXv3lREREaW6rofB93aPDUDQpEmTMgHgtddeqwBwEd/utZvpqK6uPgEAcXFxkA94NwB9unfvjrNnz4LklwDcf08iIqv66Zs2bXrl4YcfxooVKxAbG7uqrq5uAYA2TdOEqqpGYIi2tjbl6aeffu/YsWPv5uTk7JaC1wHg4Pnz542MwoVvTx+21dbWYvjw4WLixIl+2dnZ9lGjRgmSTE1NRUpKCkwFTGiaxtTU1OXTpk3707Bhw/6g67pDipnT4biuj7qut+Lbk3Vf1tTUXI9qu91Pjq1QFEUBgJaWFgBo8yGOQ8eNGxcAAOvXr/8QwBUfYygAKL169eoCABcuXACAWtn2hOGv0+kMNO1KiPDw8F4A4rZv3/7R1KlTR0+bNu1ht9u9r1+/fqitrQXJgwDarRC6/QjPzs4+QJIffPCB9/aQmSAA43ft2mW0e1QGoi8CAPyLsZccExNTC2BlRkbGRdOyYJCP2csBIN6UAZzCd7cBbQCijYp/dXU1ExMTz6SmptaMHj36f9LS0vYlJCRsl6mxIWSdu3fv/g5J7t+/nwC2AShMTk6+SJKff/45AWRLYbD7+fndAeDf5BJnLoCCyZMnt5JkdnZ2C4B/F0KEm1Pu+Pj4rST55ZdfEsBWAK+mpaVdMo3raDn7KwDuSEpK+m+S3LBhAwG8DuCtHTt2UBbpjgC408vvcFVV15HkuXPnjMp+p5uMf0RcXNyHJNnQ0EBVVfcCWBQXF3fG+Jv0yxABPwB5LS0tRmFxN4BlTzzxxGWSXLx4sS5F3GGFy+1Hp5SUlJq6ujoWFxdTpsZ2H+0iIyMj/0iSWVlZX5mr5jfJFroPGzasxlhTnjp1iiTZ3NxMl8tlrCd9pfa9SkpKSJI5OTmnZOageLUZZqxvfVFWVkZcPwdgNwnSCKPqb17jkmR8fPzfZMDZ5CRsFBmNI7h95s2b1yhT7/MAYmStwCx4vy0uLqa3v5qmEcCfvSr1QQAeXb16NY3Cm3HQ55133iGAp+SxZTNhKSkpfzUddkrFjYevzAQCeGjp0qXfsYckY2NjTwD4leGDLCL2HTdunNtoY+zWSHFcIHdsFCtcfuZ1vO9Eqs3m7/F47sb1k2qX/f3997W2tl7BjWfpBYDOzzzzzIVJkyZh0KBBCwEsB3AJvl9AETabLcDj8dwRFRW1ctasWb8JCgpSzp07d62wsPC/Wltb8xRFadR1/ZqPXYbgAQMGbI2Pjw/+6quv9ldVVT0r01ezuPRJSUn5Y9euXXVd11WzDaqq6kePHm3+7LPPRgO4KlNuxWazhXo8nuTk5OSXMjIyEl0uFxoaGtqKior+dPXq1VdUVT0jj7r68ieoT58+vx8yZMjdx48fP1JVVTVF9m20VW02WyfZf97YsWPjXS4X6urqWvPy8jYCWCyEuEDS8FdVFKWzruv//OSTTy5OTk7uqWkaPv3007qysrJ8RVH+LI8ym8/rB3Tu3HnRI488knLo0KG2ffv2ZQI4C98vP6mqqoZqmpaclpa2cOTIkX39/f3R0NDQUVxc/G5TU9PLqqrWa5rWLH1QVFUN0TStX1JSUvH48eP7BwYG4uDBg1cKCgpeBbBe2u+2Qug2EwD5N5sMPuNtMe8XP4TT6Qxoa2sbIGeXvUKIK7d4IISiKC5d1wPljOfA9bPwzYqiXNV13dd6Uqiq6qdpml2mpe02m63d4/G4vcTF5fF47LJf71nJA6BZVVW3pmntuPHlmAD5wk6Q9NnbHp9vHaqq6tA0zU/64PZhk1FfCZB9G/23ALiqKEqzD39tpvbGUqoFwFUhRLP3yzpCCDtJpxyXDulfG27+pqRR3DXsUWVd4Yq0x/taVQjhIhksC8L+ABpM9ljBf5sKwI8pIBr75L5E4vvu+UNeG/a+hv+AL7yFH8qPtOfHjtOP6V/Bja8D6z/B2Nys/1u9Xv33tLf4GfF/LC4GCJwByWIAAAAASUVORK5CYII\x3d";
  1087. C.waa = "data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAAlAAD/4QMpaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjAtYzA2MCA2MS4xMzQ3NzcsIDIwMTAvMDIvMTItMTc6MzI6MDAgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjM4MDBEMDY2QTU1MjExRTFBQTAzQjEzMUNFNzMxRkQwIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjM4MDBEMDY1QTU1MjExRTFBQTAzQjEzMUNFNzMxRkQwIiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCBDUzUgV2luZG93cyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkU2RTk0OEM4OERCNDExRTE5NEUyRkE3M0M3QkE1NTlEIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkU2RTk0OEM5OERCNDExRTE5NEUyRkE3M0M3QkE1NTlEIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+/+4ADkFkb2JlAGTAAAAAAf/bAIQADQkJCQoJDQoKDRMMCwwTFhENDREWGhUVFhUVGhkUFhUVFhQZGR0fIB8dGScnKionJzk4ODg5QEBAQEBAQEBAQAEODAwOEA4RDw8RFA4RDhQVERISERUfFRUXFRUfKB0ZGRkZHSgjJiAgICYjLCwoKCwsNzc1NzdAQEBAQEBAQEBA/8AAEQgAyACgAwEiAAIRAQMRAf/EALAAAAEFAQEAAAAAAAAAAAAAAAQAAgMFBgcBAQEAAwEBAAAAAAAAAAAAAAAAAQMEAgUQAAIBAgIEBwoLBgQGAwAAAAECAwAEEQUhMRIGQVFxsTITFGGBwdEiQlKSMzWRoeFicqKyI1NzFYJjJDQWB9KjVCbxwkNkJWXik3QRAAIBAgMFBQcDBQEAAAAAAAABAhEDIRIEMUFRcTJhwVIUBZGhsSJyEzOB0ULhYpIjUxX/2gAMAwEAAhEDEQA/AMJSpUqAVKlXuFAeUq9wpUB5XuFe4V6ooDzZHDox0CnGMinzwl7Z8NajaHeoO3vmTBZBtp9YUIqTEV5ROxHKnWRnaU8VRMhFBUjpV7hSoSeUq9pUB5Sr2lhQHlKvcK8oBV7hSFSRrtaKAZs07YNPM1pG2xJIAw1jSeandry/8X4m8VCKkWwaWwam7Xl/4v1W8VLtmX/i/VbxUoKkWwakSM407tmX/i/VbxUmzGwjQsjdY41IARie/U0IbZO0kNtCXnOCkEBeFu4KI3Bs7DNb27ya+jDx3kJeEnpJJEcQVbWDsk17u5urd591ucZkWhym2Vnd9RkCDEpFxDRpbw0bunu5mlp2De2FMLYXOD2wB2xbOeraUcYGJ72mlSUiqzzdzMd3Z3mixltA2yzcK/NlHM1DQyRXce1HocdNOEfJXZ88y9ZojOqhiBszIRiHQ8Y4cK5TvHuzLljHNMqxNoDjLFraHHnjPxcNCGVbxEUzYNTx5jZSxhpW6qTzlwJ+DCvO2Zf+L9VvFSgqyHYNLYNTdssPxfibxUu15f8Ai/VPiqCakOwa82DU/a8v/F+JvFTDdWPBL8R8VKCvYRYV5UzoMAy6QdIIqI0B4KJtxiRQwou16QoGUkntH5Tz0RbZbmF2hktraSVBo2lUkY8tDye0flPPXTslVUyiyVRsjqUOA4yMT8dW2ram2m6UVTNq9S7EIyUVJydMTn/6DnP+im9Wl+g5z/opvVrpteEhQWY4AaSTwAVf5WPiZh/9S5/zj7zltzlmYWkfWXNvJDGTgGcYDHirR7i7mSbwXParsFMrgb7w6jKw/wCmnc9I14kF3vpvCljbMyWMOJL4aEiB8qU/ObUK7HYWVrl1pFZWiCOCBQqKOLjPGTrNZZqKbUXVHq2nNwTuJRk1VpbgXN8s7Rk5ym0UQQzhIG2NAjhxHWbI+gCBVjBBFbwxwQqEiiUJGg1BVGAFe7dV28WYLYZFmF2Th1UD7JGjymGyn1iK5OyzIBGB1HgrLZhamzumQAGJwSqnSCh1q3GOCodxt4cxurdcpzuN4cyhiWaF5Bg09udUmnWw1H/jV9nFuJ7Quo+8h8peThFA+047vduyMtk7fYqTl07YFdfUufMPzT5p71UdtlmYXaGS2t3mQHAsgxANdadYJopLe4QS2867EsZ4QfCNYrCFbjdDPmgkYyWFxgVf04ifJf6ScNdRUW1XBb6FU5TjF5EpSSrGu/s5lN+g5z/opvVpfoOc/wCim9WtdHnatvObJXDW7xLGhB8nrPaY9/HCr+tEdPCVaSeDoYLnqF63lzW4/PFSW3ecxbI84VSzWUwUaSdg0DXXK5nvAipnd6qgKvWnQO7pri9ZUEmm3Vl2j1kr8pRlFRyquBNZjGxQ/S56Y1S2fu9OVueon11Szahoou06QoQUXadIVCD2FJJ7R+U89dMydv8Axdn+TH9muZye0flPPXQstlK5Tbka1gUjlC1q0vVLkeb6r+O3Tx9xcY1nt8c0NrZCyiOE1108NYjGv1joo7Js1jzKyScYLIvkzL6LDwHXVJksH9Sb49dKNq0tj1jA6uriOCL+02FWX7iVtZX1/AzaHTyeoauKn2MX9W79zebiZCuR5MjSrhfXuEtwTrUeZH+yNfdrRNcxI6IzhXlJEak6WIGJ2Rw4ChWnChndtlVBLMdQA0k1gbXNMzzDfDLs6mjaPKppJbWwJ1bOwwxw43OnHh71YT3DpfWUJmFlb5jHHDdeXBHIsrRea5TSqvxqG04cNN62vetoCS4tre5mgnkGE9q+3DKOkuI2WX6LDQRRHWDh1UCtwj7QRg2wdl8Djgw1qe7XvW0BQ3kfZ7mSLgU+T9E6RVbnuVrnWVSWqj+Lt8ZbRuHEdKPkYVcZ2MJY5fSGyeVar45+rkWQHAqccalPE5km1htWK5nK4Wnt5FuUBUwOMG4nGkA/BXUrW4S6torlOjMgcd/xVn7rLo7zKs0uEjCNeSvdwoBhgsZxX1l2j36k3Lu+uyprdj5Vs5A+i/lD48a0aaVJOPi7jB6lbzWozpjB48pf1NDXNN4vfl7+Z4BXS65pvF78vfzPAK71XTHmZ/S/yT+jvJ7L3fHytz1E+upbL+Qj5W56jfXWRnsIYKLtekKEFGWvSFQgyjk9o/Keet3YthlMP/5x9msJJ7R+U89biyb/AMXEv7gD6tadL1T+kwepRrC39ZkLDMbiwMvUHRPG0bjlGg8ore/23sxBldxfMPLupNhT8yL/AORNZbdzJ484scytxgLqJY5LZj6Q2sV5G1Vud1mjjyG0ij0NEGSZToKyhjtqw4waztuiXA3qKTbSxltfGhbZlE95ZtZqxVbgiOZhrER9ph3Svk9+pJILZ4Y4DGBFCUMKjRsGPobPFhUfW0NJmljE2xJcIrcI2vFUEln1lRXd6lrazXT9GCNpD+yNqoI7mOVduNw6nzlOIoPOUa6yye1XXcbMR5GdQ3xY0BSbj31/FcTQZirJ+q431q7anbHCTZ72Bw7lbPrKBMcBWNNgbMBBh+bsjBdni0VJ1lARZs6yWiupxCuMDy6KpS2IwOo6DTr3Mre3e5tZZVUM4ZBjqOOJoWO4jkXajcOOMHGgDISvWIrdAkKR80+TzVl908bPPL3LzxOuHdifxVfiTAg92qI/w+/8gGgSyN/mR7XPVlp0lF/3L3mbVKtu5Hjbk/8AHE2Fc03i9+Xv5ngFdKNc13i9+Xv5ngFaNV0x5nn+l/kn9HeEWXu+PlbnqJ9dS2Xu9OVueon11kZ7CGCjLXpCgxRlr0hUIPYUcntH5Tz1s8vb+Bt1/dqPirGSe0flPPWusG/g4Py15q06XqlyMWvVYQ+ruI9xJOqzO9hOto/sP8tbGOFIrmWeM7IuMDMnAXXQJOUjQeOsJk0nY96ip0CYunrjaHx1t+srPJUbXBm2LrFPikwTOb+T+VhbZxGMrDXp83x1QSy2tucJpUjPETp+Cn5/ftaRvKvtp3Kx48HG3erHMzOxZiWZtLMdJNQSbbL71Vk6yynViOkqnEEfOWtPbXi3EQkGg6mXiNckjeSJxJGxR10qw0GtxuxmvbImD4CZMFlA4fRfv0BqesqqzTMZNMEDbIHtHH2QeCiZJSqMQdOGiue53mz3czQwsRbIcNHnkec3c4qAMuriz68gTIToxwOOnlp0MjxMJYW741Gs3RVldtbygE/dMcHX/moDaxTiWNZB53B3arb8/wC+4SOF4sf/AKxU9kcBsfOGHfoUHtG/RbzY5Die5HHhXdvavqiZ9Q8Jdlq4/gbKua7xe/L38zwCuhpf2Uk/Zo50kmwJKIdogDjw1VzzeL35e/meAVp1LTgqY4nn+mRauzqmqwrjzCLL3fHytz1E+upLL+Qj5W56jfXWRnroYKLtekKEFF2vSFQg9hSSe0flPPWosm/hIfoLzVl5PaPynnrRWb/w0X0F5q06XqlyM2sVYx5gmbFre/t71NY2T+0h8VbSO5SWNJUOKSAMp7jDGspmMPaLRlXS6eWve1/FRO7WYdbZm1Y/eW/R7qHxHRXGojlm3ulid6aVbaW+OALvgCLq2Hm9WxHKWqjhj6xsK1e8dm15l4niG1LZkswGsxtrPeOmsvayBJA1VItlWjptLuTdPMo7LtjRDq9naK4+WF9IrUW7BaHOljGqVHB7w2hzVoZt87d8vaNYSLl02CcRsDEbJbj71Uu7UBkvJ7/D7q2QoDxySaAO8MTXdxRVMpRp5XZOWdF/ms7R5XdyKfKWJsO/5PhrG5XlNxmEywW6bTnTxAAcJNbGSMXkM1pjgbiNo1PziPJ+Os7u7m/6ReM00ZOgxSpqYYHT3wRXMKN4ll9zUG4bQfNshu8sZVuEA2hirA4qe/VOwwrVbzbww5mI44UKRRYkbWG0S3JWctbd7u5WFfOOLHiUdJqmaipfLsIsObhWe001lMkMVvJNjhghIALMcBxCs7fxXQmkupx1bXDswGPlaTidVaEyKNXkoo4eBV+Sq7L7Vs9zcBgeyQ4GQ/MB1crmoim2orezqcowTuSeEY48jQ7oZX2PLzdyLhNd6RjrEY6I7+uspvH78vfzPAK6UAAAFGAGgAcArmu8Xvy9/M8ArTfio24RW5nnaG67uou3H/KPuqT2X8hHytz1G+upLL3enK3PUb66ys9RDBRdr0hQgou06QqEGUkntH5Tz1e238vF9BeaqKT2j8p56vbb+Xi+gvNWjTdUuRn1XTHmTh8KrJTJlt8t1CPIY44cGnpJVjTJYkmjaN9Ib4u7V923njTethRauZJV3PaW1rfLIiXEDYg6R4VYc9CXW7thfOZbKdbGZtLW8uPVY/u3GrkNUkM9zlcxUjbhfWOA90cRq4gv4LhdqN+VToNYWmnRm9NNVWNTyHc6VWBv8wt4YeHqm6xyPmroq1Z7WGFLSxTq7WLSuPSdjrkfumq5yHXDUeA92oO2SKpVumNAaoJLMXH3myp0rpJ4uKhc3tbDM5BMri1zAj79j7KTiY8TcdBpcsith0286o+sPCagEX9Pzg4zXUCp6QYse8oouCG3tk6m1BYv05W6T+IdyolxbHDAAa2OgDlNCz3ryN2WxBd5PJMg1t81eId2ukqnLlTBbfcuY+9uJLiRcvtPvHdsHK+cfRHcHDWsyawjyy0WBcDI3lTP6TeIcFV+S5OmXx9bJg1048o8Cj0V8Jq2DVu09nL80up7OxHi+oal3P8AXB/IsZS8T/YOV65zvCcc7vfzPAK3ivWCz445zeH954BXOr6I8yfSfyz+jvCLP3fHytz1G+upLP3fHytz1E+usbPaQ0UXadIUIKLtekKhB7Ckk9o/Keer22/l4/oLzVRSe0flPPV7b/y8X0F5q0abqlyM+q6Y8yQsBTDMor1o8aiaE1pbluMqS3sbLLHIhSRQyngqukhaJ9uBjo+H5aOa3ao2t34qouRlLajTalGP8v0IY8ylXQ+PKPFU/bYXOLPge6CKia0LaxTOxHu1Q7cuBd9yPEJ7TbjXKO8CajbMIF6CNIeNvJHjqIWJ7tSpYkalqVblwIdyG+RGXur0hXYJFxal+Dhq5y3slkv3Y2pD0pTr+QUClpJRUdo9XW4OLrTHtM16cZLLWkeC7y4jvlNEpcRtw1Ux27Ci448NZrTFy3nn3IQWxlgGrDZ3pza7/M8ArZo+ArF5171uvp+CqdV0R5l/psUrs2vB3hdl7vTlbnqJ9dS2Xu+PlbnqJ9dY2eshooq16QoQUXa9IVCD2FLJ7RuU89WNtmUSQqkgYMgw0accKrpPaPynnrZWG4Vi+VWmY5tnMWXG+XrIYnA0rhj0mdcTgdNdwnKDqjmduM1SRR/qlr8/4KX6pa8T/BVzDuLZXudRZblmbxXcPUNPc3KqCIwrbOzgrHEnHjoyD+3eSXkht7DeKG4umDGOJVUklfouThXfmbnZ7Cvy1vt9pmv1W1+d8FL9VteJvgq5yrcOGfLmzHN80iyyETPbptAEFo2ZG8pmUa1OFNn3Ky6W/sbDKM5hv5bx2WTZA+7RF2y52WOPJTzE+z2Dy1vt9pT/AKpacTerS/U7Tib1a04/t7kDXPY03jhN0W6sQ7K7W3q2dnrMccaDy/8At80kuZfqWYxWNtlcvUPPhiGYhWDeUy7IwYU8xPs9g8tb7faUn6pacTerTxm9oOBvVq3v9z927aynuId44LiWKNnjhAXF2UYhRg516qpsryjLr21665zFLSTaK9U2GOA87SwqY37knRU+BzOzags0s1Oyr+BKM6sxwP6tSDPLMen6vy0rvdm3Sxlu7K/S7WDDrFUDUTxgnTU826eXW7KlxmqQuwDBXUKcD+1Xee/wXuKX5XDGWLapSVcOyhEM/seJ/V+WnjeGx4pPV+Wkm6kKZlFay3Jlt7iFpYZY8ASVK6DjtDDA0f8A0Tl340/1f8Ndx8xJVWXB0KbktFFpNzdVXAC/qOwA0CQni2flrO3Vwbm5lnI2TKxbDirX/wBE5d+NcfV/wVR7xZPa5U9utvI8nWhmbbw0YEAYYAVxfhfy5rlKR4Fulu6X7mW1mzT8S4Yis/5CPlbnqJ9dSWfu9OVueon11mZvQ2i7XpChKKtekKhBlNJ7R+U89bDfGTb3a3ZX0Lcj6kdY+T2j8p560288m1kWQr6MJ+ylSAr+2cnV5renjs3H1loX+3j9XvbbtxLN9lqW4UnV5jdnjtXHxihtyZNjeSBu5J9k1BJe7xy7W5CJ/wCzuD/mTVTf2+fq97LJuLrPsNRueS7W6aJ/38x+vLVXuY+xvHaNxbf2GoCezf8A36j/APsSf8w1sLnqczTefJluYoLm5uo5F61sBshItP1cNFYe1f8A3ir/APfE/wCZUe9bB94r5jwuPsrQFhmG4l/Z2M17HdW90tuu3IkTHaCjWdIw0VVZdks9/C06yJFEp2dp+E1bbqybGTZ8vpQD7L1XRv8A7blT96Oda7tpNuuNE37Cq9KSisjyuUoxrStKllHbLlWTXsMs8chuSuwEPDqwoLe5y+YRE/gLzmqRekvKKtd4327yM/ulHxmrHJStySWVRyrjxKI2XC/CTlnlPPKTpTdFbP0L1bgrf5Lp0G3dPhQHwV0S1lzBsns3sESR8Crh9WAJGjSOKuU3E+zdZQ3oJh8IArdZXFDmOTpHa3i2+YrI2KtKy4ricBsBuHHgFXSo440+Wa2qqxjvM9uMoy+WvzWpLCWWWE28HxL6e43ojgkeSCBY1Ri5BGIUDT51cl3vm276BBqSEH4WbxV0tlkyXJcxTMb+OW6uY9mGHrCzDQwwAbTp2uKuTZ9N1uYsfRRR8WPhrm419mSSjRyiqxVK7y23B/ftuTm2oSdJyzNVw3BFn7vTlbnqF9dS2fu9OVueon11lZuQ2iLdsGFD05H2dNQGV0ntG5Tz1dWm9N1b2kVq8EVwsI2UaQaQOKhmitZGLOmk68DhSFvY+gfWNSAg7z3Qvo7yKCKIohiaNR5LKxx8qpxvjcqS0VpbxvwOAcRQPZ7D0G9Y0uz2HoH1jUCpLY7zXlpbm3eKO5QuzjrBqZji3x17PvNcyT288VvDBJbMWUovS2hslW7mFQ9nsPQPrGl2ew9A+saCod/WNxtbYsrfb17WBxx5ddD2281xC88klvDcSXEnWuzrqOGGC9zRUPZ7D0G9Y0uzWHoH1jQVCLreq6ntZbaO3it1mGy7RjTs1X2mYy20ZiCq8ZOODcdEdmsPQb1jS7PYegfWNdJuLqnQiSUlRqpFLmryxtH1Ma7Qw2gNNPOdSt0oI27p007s9h6B9Y0uz2HoH1jXX3Z+I4+1b8IJdX89xLHKQFMXQUahpxoiPN5P+onfU+A0/s9h6DesaXZ7D0D6xpG7OLbUtu0StW5JJx2bBsmbtiSiEk+cxoCWWSaVpZOk2vDVo0VYdnsPQb1jSNvZcCH1jSd2c+p1XAmFqEOmOPEfaH+BQd1ueo211IzrgFUYKNAAqI1WztCpUqVCRUqVKgFSpUqAVKlSoBUqVKgFSpUqAVKlSoBUqVKgFSpUqAVKlSoD/9k\x3d";
  1088. var C = C || {},
  1089. ha = {
  1090. id: 0 | 998 * Math.random(),
  1091. iDa: 0 | 998 * Math.random(),
  1092. Sca: function(c, d, f) {
  1093. c = c.toString();
  1094. var g = c.substring(c.indexOf("(") + 1, c.indexOf(")")),
  1095. g = g.trim();
  1096. for (c = c.substring(c.indexOf("{") + 1, c.lastIndexOf("}")); - 1 != c.indexOf("this._super");) {
  1097. var h = c.indexOf("this._super"),
  1098. k = c.indexOf("(", h),
  1099. n = c.substring(k + 1, c.indexOf(")", k)),
  1100. n = n.trim();
  1101. c = c.substring(0, h) + "ClassManager[" + f + "]." + d + ".call(this" + (n ? ",": "") + c.substring(k + 1)
  1102. }
  1103. return Function(g, c)
  1104. },
  1105. eea: function() {
  1106. return this.id++
  1107. },
  1108. jBa: function() {
  1109. return this.iDa++
  1110. }
  1111. };
  1112. ha.Sca.nLa = ha; (function() {
  1113. var c = /\b_super\b/,
  1114. d = C.qf.gj[C.qf.Wm.Ixa];
  1115. d && console.log("release Mode");
  1116. C.O = u();
  1117. C.O.extend = function(f) {
  1118. function g() {
  1119. this.ub = ha.jBa();
  1120. this.ctor && this.ctor.apply(this, arguments)
  1121. }
  1122. var h = this.prototype,
  1123. k = Object.create(h),
  1124. n = ha.eea();
  1125. ha[n] = h;
  1126. var p = {
  1127. writable: q,
  1128. enumerable: t,
  1129. configurable: q
  1130. };
  1131. k.ub = s;
  1132. g.id = n;
  1133. p.value = n;
  1134. Object.defineProperty(k, "__pid", p);
  1135. g.prototype = k;
  1136. p.value = g;
  1137. Object.defineProperty(g.prototype, "constructor", p);
  1138. this.Jo && (g.Jo = C.s(this.Jo));
  1139. this.Ko && (g.Ko = C.s(this.Ko));
  1140. for (var r = 0,
  1141. v = arguments.length; r < v; ++r) {
  1142. var y = arguments[r],
  1143. z;
  1144. for (z in y) {
  1145. var D = "function" === typeof y[z],
  1146. E = "function" === typeof h[z],
  1147. F = c.test(y[z]);
  1148. d && D && E && F ? (p.value = ha.Sca(y[z], z, n), Object.defineProperty(k, z, p)) : D && E && F ? (p.value = function(c, d) {
  1149. return function() {
  1150. var f = this._super;
  1151. this._super = h[c];
  1152. var g = d.apply(this, arguments);
  1153. this._super = f;
  1154. return g
  1155. }
  1156. } (z, y[z]), Object.defineProperty(k, z, p)) : D ? (p.value = y[z], Object.defineProperty(k, z, p)) : k[z] = y[z];
  1157. if (D) {
  1158. var G, K;
  1159. if (this.Jo && this.Jo[z]) {
  1160. var D = this.Jo[z],
  1161. O;
  1162. for (O in this.Ko) if (this.Ko[O] == D) {
  1163. K = O;
  1164. break
  1165. }
  1166. C.e(k, D, y[z], y[K] ? y[K] : k[K], z, K)
  1167. }
  1168. if (this.Ko && this.Ko[z]) {
  1169. D = this.Ko[z];
  1170. for (O in this.Jo) if (this.Jo[O] == D) {
  1171. G = O;
  1172. break
  1173. }
  1174. C.e(k, D, y[G] ? y[G] : k[G], y[z], G, z)
  1175. }
  1176. }
  1177. }
  1178. }
  1179. g.extend = C.O.extend;
  1180. g.NXa = function(c) {
  1181. for (var d in c) k[d] = c[d]
  1182. };
  1183. return g
  1184. };
  1185. Function.prototype.bind = Function.prototype.bind ||
  1186. function(c) {
  1187. var d = this;
  1188. return function() {
  1189. var h = Array.prototype.slice.call(arguments);
  1190. return d.apply(c || s, h)
  1191. }
  1192. }
  1193. })();
  1194. C.e = function(c, d, f, g, h, k) {
  1195. if (c.__defineGetter__) f && c.__defineGetter__(d, f),
  1196. g && c.__defineSetter__(d, g);
  1197. else if (Object.defineProperty) {
  1198. var n = {
  1199. enumerable: t,
  1200. configurable: q
  1201. };
  1202. f && (n.get = f);
  1203. g && (n.set = g);
  1204. Object.defineProperty(c, d, n)
  1205. } else e(Error("browser does not support getters"));
  1206. if (!h && !k) for (var n = f != s,
  1207. p = g != m,
  1208. r = Object.getOwnPropertyNames(c), v = 0; v < r.length; v++) {
  1209. var y = r[v];
  1210. if (! ((c.__lookupGetter__ ? c.__lookupGetter__(y) : Object.getOwnPropertyDescriptor(c, y)) || "function" !== typeof c[y])) {
  1211. var z = c[y];
  1212. if (n && z === f && (h = y, !p || k)) break;
  1213. if (p && z === g && (k = y, !n || h)) break
  1214. }
  1215. }
  1216. c = c.constructor;
  1217. h && (c.Jo || (c.Jo = {}), c.Jo[h] = d);
  1218. k && (c.Ko || (c.Ko = {}), c.Ko[k] = d)
  1219. };
  1220. C.s = function(c) {
  1221. var d = c.constructor ? new c.constructor: {},
  1222. f;
  1223. for (f in c) {
  1224. var g = c[f];
  1225. d[f] = "object" == typeof g && g && !(g instanceof C.A) && !(g instanceof HTMLElement) ? C.s(g) : g
  1226. }
  1227. return d
  1228. };
  1229. C = C || {};
  1230. C.U = C.U || {};
  1231. C.tQa = u();
  1232. C.Uy = {
  1233. Gca: 8,
  1234. aJa: 9,
  1235. c0: 13,
  1236. shift: 16,
  1237. pRa: 17,
  1238. alt: 18,
  1239. pause: 19,
  1240. HQa: 20,
  1241. escape: 27,
  1242. W0a: 33,
  1243. V0a: 34,
  1244. end: 35,
  1245. home: 36,
  1246. left: 37,
  1247. E6a: 38,
  1248. right: 39,
  1249. LRa: 40,
  1250. RXa: 45,
  1251. yLa: 46,
  1252. "0": 48,
  1253. 1 : 49,
  1254. 2 : 50,
  1255. 3 : 51,
  1256. 4 : 52,
  1257. 5 : 53,
  1258. 6 : 54,
  1259. 7 : 55,
  1260. 8 : 56,
  1261. 9 : 57,
  1262. a: 65,
  1263. b: 66,
  1264. H: 67,
  1265. P: 68,
  1266. xm: 69,
  1267. Un: 70,
  1268. g: 71,
  1269. Rf: 72,
  1270. hI: 73,
  1271. pQ: 74,
  1272. qQ: 75,
  1273. AQ: 76,
  1274. FQ: 77,
  1275. ds: 78,
  1276. LQ: 79,
  1277. d: 80,
  1278. ZQ: 81,
  1279. r: 82,
  1280. tl: 83,
  1281. K3: 84,
  1282. xa: 85,
  1283. ea: 86,
  1284. ba: 87,
  1285. x: 88,
  1286. y: 89,
  1287. f: 90,
  1288. l0a: 96,
  1289. m0a: 97,
  1290. n0a: 98,
  1291. o0a: 99,
  1292. p0a: 100,
  1293. q0a: 101,
  1294. r0a: 102,
  1295. s0a: 103,
  1296. t0a: 104,
  1297. u0a: 105,
  1298. "*": 106,
  1299. "+": 107,
  1300. "-": 109,
  1301. numdel: 110,
  1302. "/": 111,
  1303. gSa: 112,
  1304. kSa: 113,
  1305. lSa: 114,
  1306. mSa: 115,
  1307. nSa: 116,
  1308. oSa: 117,
  1309. pSa: 118,
  1310. qSa: 119,
  1311. rSa: 120,
  1312. hSa: 121,
  1313. iSa: 122,
  1314. jSa: 123,
  1315. y0a: 144,
  1316. d3a: 145,
  1317. g3a: 186,
  1318. ",": 186,
  1319. bSa: 187,
  1320. "\x3d": 187,
  1321. ";": 188,
  1322. bRa: 188,
  1323. qRa: 189,
  1324. ".": 190,
  1325. c1a: 190,
  1326. ASa: 191,
  1327. EXa: 192,
  1328. "[": 219,
  1329. G0a: 219,
  1330. "]": 221,
  1331. XQa: 221,
  1332. vQa: 220,
  1333. quote: 222,
  1334. D3: 32
  1335. };
  1336. C.OLa = 0;
  1337. C.dT = 1;
  1338. C.P5 = 2;
  1339. C.PLa = 3;
  1340. C.QLa = 4;
  1341. C.nma = 5;
  1342. C.JAa = function(c) {
  1343. return 8 < c.length && 137 == c[0] && 80 == c[1] && 78 == c[2] && 71 == c[3] && 13 == c[4] && 10 == c[5] && 26 == c[6] && 10 == c[7] ? C.dT: 2 < c.length && (73 == c[0] && 73 == c[1] || 77 == c[0] && 77 == c[1] || 255 == c[0] && 216 == c[1]) ? C.P5: C.nma
  1344. };
  1345. C.OXa = function(c, d) {
  1346. function f() {}
  1347. f.prototype = d.prototype;
  1348. c.bS = d.prototype;
  1349. c.prototype = new f;
  1350. c.prototype.constructor = c
  1351. };
  1352. C.wQa = function(c, d, f) {
  1353. var g = arguments.callee.caller;
  1354. if (g.bS) return ret = g.bS.constructor.apply(c, Array.prototype.slice.call(arguments, 1));
  1355. for (var h = Array.prototype.slice.call(arguments, 2), k = t, n = c.constructor; n; n = n.bS && n.bS.constructor) if (n.prototype[d] === g) k = q;
  1356. else if (k) return n.prototype[d].apply(c, h);
  1357. if (c[d] === g) return c.constructor.prototype[d].apply(c, h);
  1358. e(Error("cc.base called from a method of one name to a method of a different name"))
  1359. };
  1360. C.TMa = function(c, d) {
  1361. this.x = c || 0;
  1362. this.y = d || 0
  1363. };
  1364. C.d = function(c, d) {
  1365. return c == m ? {
  1366. x: 0,
  1367. y: 0
  1368. }: d == m ? {
  1369. x: c.x,
  1370. y: c.y
  1371. }: {
  1372. x: c,
  1373. y: d
  1374. }
  1375. };
  1376. C.b2 = function(c, d) {
  1377. return c && d && c.x === d.x && c.y === d.y
  1378. };
  1379. C.eNa = function(c, d) {
  1380. this.width = c || 0;
  1381. this.height = d || 0
  1382. };
  1383. C.size = function(c, d) {
  1384. return c === m ? {
  1385. width: 0,
  1386. height: 0
  1387. }: d === m ? {
  1388. width: c.width,
  1389. height: c.height
  1390. }: {
  1391. width: c,
  1392. height: d
  1393. }
  1394. };
  1395. C.R5a = function(c, d) {
  1396. return c && d && c.width == d.width && c.height == d.height
  1397. };
  1398. C.az = function(c, d, f, g) {
  1399. this.x = c || 0;
  1400. this.y = d || 0;
  1401. this.width = f || 0;
  1402. this.height = g || 0
  1403. };
  1404. C.rect = function(c, d, f, g) {
  1405. return c === m ? {
  1406. x: 0,
  1407. y: 0,
  1408. width: 0,
  1409. height: 0
  1410. }: d === m ? {
  1411. x: c.x,
  1412. y: c.y,
  1413. width: c.width,
  1414. height: c.height
  1415. }: {
  1416. x: c,
  1417. y: d,
  1418. width: f,
  1419. height: g
  1420. }
  1421. };
  1422. C.Ega = function(c, d) {
  1423. return c && d && c.x === d.x && c.y === d.y && c.width === d.width && c.height === d.height
  1424. };
  1425. C.wG = function(c) {
  1426. return c && 0 === c.x && 0 === c.y && 0 === c.width && 0 === c.height
  1427. };
  1428. C.E1a = function(c, d) {
  1429. return ! c || !d ? t: !(c.x >= d.x || c.y >= d.y || c.x + c.width <= d.x + d.width || c.y + c.height <= d.y + d.height)
  1430. };
  1431. C.Xp = function(c) {
  1432. return c.x + c.width
  1433. };
  1434. C.F1a = function(c) {
  1435. return c.x + c.width / 2
  1436. };
  1437. C.io = function(c) {
  1438. return c.x
  1439. };
  1440. C.Yp = function(c) {
  1441. return c.y + c.height
  1442. };
  1443. C.G1a = function(c) {
  1444. return c.y + c.height / 2
  1445. };
  1446. C.jo = function(c) {
  1447. return c.y
  1448. };
  1449. C.Ju = function(c, d) {
  1450. return d.x >= C.io(c) && d.x <= C.Xp(c) && d.y >= C.jo(c) && d.y <= C.Yp(c)
  1451. };
  1452. C.gGa = function(c, d) {
  1453. var f = c.y + c.height,
  1454. g = d.x + d.width,
  1455. h = d.y + d.height;
  1456. return ! (c.x + c.width < d.x || g < c.x || f < d.y || h < c.y)
  1457. };
  1458. C.H1a = function(c, d) {
  1459. return ! (c.x + c.width < d.x || d.x + d.width < c.x || c.y + c.height < d.y || d.y + d.height < c.y)
  1460. };
  1461. C.MC = function(c, d) {
  1462. var f = C.rect(0, 0, 0, 0);
  1463. f.x = Math.min(c.x, d.x);
  1464. f.y = Math.min(c.y, d.y);
  1465. f.width = Math.max(c.x + c.width, d.x + d.width) - f.x;
  1466. f.height = Math.max(c.y + c.height, d.y + d.height) - f.y;
  1467. return f
  1468. };
  1469. C.fGa = function(c, d) {
  1470. var f = C.rect(Math.max(C.io(c), C.io(d)), Math.max(C.jo(c), C.jo(d)), 0, 0);
  1471. f.width = Math.min(C.Xp(c), C.Xp(d)) - C.io(f);
  1472. f.height = Math.min(C.Yp(c), C.Yp(d)) - C.jo(f);
  1473. return f
  1474. };
  1475. C.GK = C.O.extend({
  1476. Maa: s,
  1477. iX: s,
  1478. ctor: function() {
  1479. window.DOMParser ? (this.iX = q, this.Maa = new DOMParser) : this.iX = t
  1480. },
  1481. parse: function(c) {
  1482. return this.MX(c)
  1483. },
  1484. MX: function(c) {
  1485. var d;
  1486. this.iX ? d = this.Maa.parseFromString(c, "text/xml") : (d = new ActiveXObject("Microsoft.XMLDOM"), d.async = "false", d.loadXML(c));
  1487. return d
  1488. }
  1489. });
  1490. C.Rna = C.GK.extend({
  1491. parse: function(c) {
  1492. c = this.MX(c).documentElement;
  1493. "plist" != c.tagName && e("Not a plist file!");
  1494. for (var d = s,
  1495. f = 0,
  1496. g = c.childNodes.length; f < g && !(d = c.childNodes[f], 1 == d.nodeType); f++);
  1497. return this.LX(d)
  1498. },
  1499. LX: function(c) {
  1500. var d = s,
  1501. f = c.tagName;
  1502. if ("dict" == f) d = this.eua(c);
  1503. else if ("array" == f) d = this.dua(c);
  1504. else if ("string" == f) if (1 == c.childNodes.length) d = c.firstChild.nodeValue;
  1505. else {
  1506. d = "";
  1507. for (f = 0; f < c.childNodes.length; f++) d += c.childNodes[f].nodeValue
  1508. } else "false" == f ? d = t: "true" == f ? d = q: "real" == f ? d = parseFloat(c.firstChild.nodeValue) : "integer" == f && (d = parseInt(c.firstChild.nodeValue, 10));
  1509. return d
  1510. },
  1511. dua: function(c) {
  1512. for (var d = [], f = 0, g = c.childNodes.length; f < g; f++) {
  1513. var h = c.childNodes[f];
  1514. 1 == h.nodeType && d.push(this.LX(h))
  1515. }
  1516. return d
  1517. },
  1518. eua: function(c) {
  1519. for (var d = {},
  1520. f = s,
  1521. g = 0,
  1522. h = c.childNodes.length; g < h; g++) {
  1523. var k = c.childNodes[g];
  1524. 1 == k.nodeType && ("key" == k.tagName ? f = k.firstChild.nodeValue: d[f] = this.LX(k))
  1525. }
  1526. return d
  1527. }
  1528. });
  1529. C.Xba = {
  1530. load: function(c, d, f, g) {
  1531. C.M.EQ(c, g)
  1532. }
  1533. };
  1534. C.M.Zp(["txt", "xml", "vsh", "fsh", "atlas"], C.Xba);
  1535. C.uta = {
  1536. load: function(c, d, f, g) {
  1537. C.M.Kfa(c, g)
  1538. }
  1539. };
  1540. C.M.Zp(["json", "ExportJson"], C.uta);
  1541. C.Xsa = {
  1542. load: function(c, d, f, g) {
  1543. C.M.fj[d] = C.M.wI(c,
  1544. function(c, f) {
  1545. if (c) return g(c);
  1546. C.kb.Md(d);
  1547. g(s, f)
  1548. })
  1549. }
  1550. };
  1551. C.M.Zp("png jpg bmp jpeg gif ico".split(" "), C.Xsa);
  1552. C.Oua = {
  1553. load: function(c, d, f, g) {
  1554. C.M.fj[d] = C.M.wI(f.src,
  1555. function(c, f) {
  1556. if (c) return g(c);
  1557. C.kb.Md(d);
  1558. g(s, f)
  1559. })
  1560. }
  1561. };
  1562. C.M.Zp(["serverImg"], C.Oua);
  1563. C.jua = {
  1564. load: function(c, d, f, g) {
  1565. C.M.EQ(c,
  1566. function(c, d) {
  1567. if (c) return g(c);
  1568. g(s, C.JFa.parse(d))
  1569. })
  1570. }
  1571. };
  1572. C.M.Zp(["plist"], C.jua);
  1573. C.asa = {
  1574. wpa: {
  1575. ".eot": "embedded-opentype",
  1576. ".ttf": "truetype",
  1577. ".woff": "woff",
  1578. ".svg": "svg"
  1579. },
  1580. taa: function(c, d, f) {
  1581. var g = document,
  1582. h = C.path,
  1583. k = this.wpa,
  1584. n = C.bd("style");
  1585. n.type = "text/css";
  1586. g.body.appendChild(n);
  1587. var p = "@font-face { font-family:" + c + "; src:";
  1588. if (d instanceof Array) for (var r = 0,
  1589. v = d.length; r < v; r++) f = h.Cp(d[r]).toLowerCase(),
  1590. p += "url('" + d[r] + "') format('" + k[f] + "')",
  1591. p += r == v - 1 ? ";": ",";
  1592. else p += "url('" + d + "') format('" + k[f] + "');";
  1593. n.textContent += p + "};";
  1594. d = C.bd("div");
  1595. f = d.style;
  1596. f.fontFamily = c;
  1597. d.innerHTML = ".";
  1598. f.position = "absolute";
  1599. f.left = "-100px";
  1600. f.top = "-100px";
  1601. g.body.appendChild(d)
  1602. },
  1603. load: function(c, d, f, g) {
  1604. d = f.type;
  1605. c = f.name;
  1606. d = f.V5a;
  1607. "string" == typeof f ? (d = C.path.Cp(f), c = C.path.lxa(f, d), this.taa(c, f, d)) : this.taa(c, d);
  1608. g(s, q)
  1609. }
  1610. };
  1611. C.M.Zp(["font", "eot", "ttf", "woff", "svg"], C.asa);
  1612. C.$qa = {
  1613. load: function(c, d, f, g) {
  1614. C.M.kEa(c, g)
  1615. }
  1616. };
  1617. window.CocosEngine = C.$S = "Cocos2d-html5 v3.0 RC0";
  1618. C.Qy = 0;
  1619. C.US = C.d(0, 0);
  1620. C.Ela = 0.5;
  1621. C.dLa = 1;
  1622. C.bU = 1;
  1623. C.yna = 0;
  1624. C.N7 = 0;
  1625. C.jU = 0;
  1626. C.jNa = 0;
  1627. C.WMa = 1;
  1628. C.VMa = "-hd";
  1629. C.nqa = 1;
  1630. C.Es = 0;
  1631. C.bNa = 0;
  1632. C.Rma = 0;
  1633. C.Qma = 0;
  1634. C.oT = 1;
  1635. C.qLa = C.$S + "-canvas";
  1636. C.iK = 1;
  1637. C.an = 1;
  1638. C.ic = function(c) {
  1639. var d = this == C ? document: this;
  1640. if (c = c instanceof HTMLElement ? c: d.querySelector(c)) c.find = c.find || C.ic,
  1641. c.Q0 = c.Q0 ||
  1642. function(c) {
  1643. return this.className.match(RegExp("(\\s|^)" + c + "(\\s|$)"))
  1644. },
  1645. c.pca = c.pca ||
  1646. function(c) {
  1647. this.Q0(c) || (this.className && (this.className += " "), this.className += c);
  1648. return this
  1649. },
  1650. c.tGa = c.tGa ||
  1651. function(c) {
  1652. this.Q0(c) && (this.className = this.className.replace(c, ""));
  1653. return this
  1654. },
  1655. c.remove = c.remove ||
  1656. function() {
  1657. this.parentNode && this.parentNode.removeChild(this);
  1658. return this
  1659. },
  1660. c.ox = c.ox ||
  1661. function(c) {
  1662. c.appendChild(this);
  1663. return this
  1664. },
  1665. c.TFa = c.TFa ||
  1666. function(c) {
  1667. c.childNodes[0] ? c.insertBefore(this, c.childNodes[0]) : c.appendChild(this);
  1668. return this
  1669. },
  1670. c.Ay = c.Ay ||
  1671. function() {
  1672. this.style[C.ic.oJa] = C.ic.translate(this.position) + C.ic.rotate(this.rotation) + C.ic.scale(this.scale) + C.ic.wy(this.wy);
  1673. return this
  1674. },
  1675. c.position = c.position || {
  1676. x: 0,
  1677. y: 0
  1678. },
  1679. c.rotation = c.rotation || 0,
  1680. c.scale = c.scale || {
  1681. x: 1,
  1682. y: 1
  1683. },
  1684. c.wy = c.wy || {
  1685. x: 0,
  1686. y: 0
  1687. },
  1688. c.DJ = function(c, d) {
  1689. this.position.x = c;
  1690. this.position.y = d;
  1691. this.Ay()
  1692. },
  1693. c.rotate = function(c) {
  1694. this.rotation = c;
  1695. this.Ay();
  1696. return this
  1697. },
  1698. c.$p = function(c, d) {
  1699. this.scale.x = c;
  1700. this.scale.y = d;
  1701. this.Ay();
  1702. return this
  1703. },
  1704. c.qia = function(c, d) {
  1705. this.wy.x = c;
  1706. this.wy.y = d;
  1707. this.Ay()
  1708. };
  1709. return c
  1710. };
  1711. switch (C.Sc.tu) {
  1712. case C.Sc.xD:
  1713. C.ic.Gu = "Moz";
  1714. C.ic.gC = q;
  1715. break;
  1716. case C.Sc.sS:
  1717. case C.Sc.vS:
  1718. C.ic.Gu = "webkit";
  1719. C.ic.gC = q;
  1720. break;
  1721. case C.Sc.uS:
  1722. C.ic.Gu = "O";
  1723. C.ic.gC = t;
  1724. break;
  1725. case C.Sc.tS:
  1726. C.ic.Gu = "ms";
  1727. C.ic.gC = t;
  1728. break;
  1729. default:
  1730. C.ic.Gu = "webkit",
  1731. C.ic.gC = q
  1732. }
  1733. C.ic.oJa = C.ic.Gu + "Transform";
  1734. C.ic.translate = C.ic.gC ?
  1735. function(c) {
  1736. return "translate3d(" + c.x + "px, " + c.y + "px, 0) "
  1737. }: function(c) {
  1738. return "translate(" + c.x + "px, " + c.y + "px) "
  1739. };
  1740. C.ic.rotate = C.ic.gC ?
  1741. function(c) {
  1742. return "rotateZ(" + c + "deg) "
  1743. }: function(c) {
  1744. return "rotate(" + c + "deg) "
  1745. };
  1746. C.ic.scale = function(c) {
  1747. return "scale(" + c.x + ", " + c.y + ") "
  1748. };
  1749. C.ic.wy = function(c) {
  1750. return "skewX(" + -c.x + "deg) skewY(" + c.y + "deg)"
  1751. };
  1752. C.pD = function(c) {
  1753. return C.ic(document.createElement(c))
  1754. };
  1755. C.ic.xSa = function(c) {
  1756. var d = 0,
  1757. f = 0;
  1758. do d += c.offsetLeft,
  1759. f += c.offsetTop;
  1760. while (c = c.offsetParent);
  1761. return {
  1762. x: d,
  1763. y: f
  1764. }
  1765. };
  1766. C.zo = -1;
  1767. C.PI = Math.PI;
  1768. C.pv = parseFloat("3.402823466e+38F");
  1769. C.O5 = parseFloat("1.175494351e-38F");
  1770. C.aoa = C.PI / 180;
  1771. C.v5 = 180 / C.PI;
  1772. C.EU = 4294967295;
  1773. C.Uia = function(c, d, f) {
  1774. if ("object" == typeof f && "undefined" != typeof f.x && "undefined" != typeof f.y) {
  1775. var g = f[c];
  1776. f[c] = f[d];
  1777. f[d] = g
  1778. } else C.log(C.n.Uia)
  1779. };
  1780. C.U_a = function(c, d, f) {
  1781. return c + (d - c) * f
  1782. };
  1783. C.dd = function() {
  1784. return 16777215 * Math.random()
  1785. };
  1786. C.$Fa = function() {
  1787. return 2 * (Math.random() - 0.5)
  1788. };
  1789. C.x1a = Math.random;
  1790. C.ng = function(c) {
  1791. return c * C.aoa
  1792. };
  1793. C.LC = function(c) {
  1794. return c * C.v5
  1795. };
  1796. C.zga = function(c) {
  1797. C.log(C.n.zga);
  1798. return c * C.v5
  1799. };
  1800. C.xv = Number.MAX_VALUE - 1;
  1801. C.Ic = C.yna ? 1 : 770;
  1802. C.Hc = 771;
  1803. C.BC = function(c) {
  1804. c.pd && (c.pd.Af(), c.pd.Bj())
  1805. };
  1806. C.XRa = u();
  1807. C.zRa = u();
  1808. C.nl = function() {
  1809. C.kl += 1
  1810. };
  1811. C.rK = 1.192092896E-7;
  1812. C.Ec = C.oT ?
  1813. function() {
  1814. return C.Q.Ul
  1815. }: B(1);
  1816. C.KFa = function(c) {
  1817. var d = C.Ec();
  1818. return C.d(c.x * d, c.y * d)
  1819. };
  1820. C.c2 = function(c) {
  1821. var d = C.Ec();
  1822. return C.d(c.x / d, c.y / d)
  1823. };
  1824. C.RX = function(c, d) {
  1825. var f = C.Ec();
  1826. d.x = c.x / f;
  1827. d.y = c.y / f
  1828. };
  1829. C.FIa = function(c) {
  1830. var d = C.Ec();
  1831. return C.size(c.width * d, c.height * d)
  1832. };
  1833. C.Gia = function(c) {
  1834. var d = C.Ec();
  1835. return C.size(c.width / d, c.height / d)
  1836. };
  1837. C.Fba = function(c, d) {
  1838. var f = C.Ec();
  1839. d.width = c.width / f;
  1840. d.height = c.height / f
  1841. };
  1842. C.js = C.oT ?
  1843. function(c) {
  1844. var d = C.Ec();
  1845. return C.rect(c.x / d, c.y / d, c.width / d, c.height / d)
  1846. }: da();
  1847. C.XI = C.oT ?
  1848. function(c) {
  1849. var d = C.Ec();
  1850. return C.rect(c.x * d, c.y * d, c.width * d, c.height * d)
  1851. }: da();
  1852. C.ONE = 1;
  1853. C.ZERO = 0;
  1854. C.SRC_ALPHA = 770;
  1855. C.SRC_ALPHA_SATURATE = 776;
  1856. C.SRC_COLOR = 768;
  1857. C.DST_ALPHA = 772;
  1858. C.DST_COLOR = 774;
  1859. C.ONE_MINUS_SRC_ALPHA = 771;
  1860. C.ONE_MINUS_SRC_COLOR = 769;
  1861. C.ONE_MINUS_DST_ALPHA = 773;
  1862. C.ONE_MINUS_DST_COLOR = 775;
  1863. C.ONE_MINUS_CONSTANT_ALPHA = 32772;
  1864. C.ONE_MINUS_CONSTANT_COLOR = 32770;
  1865. C.DB = function() {
  1866. if (C.bR == C.la) {
  1867. var c = C.t.getError();
  1868. c && C.log(CC.Wa.DB, c)
  1869. }
  1870. };
  1871. C.uLa = 0;
  1872. C.sLa = 1;
  1873. C.vLa = 2;
  1874. C.tLa = 3;
  1875. C.rLa = 2;
  1876. C.NNa = 0;
  1877. C.Ch = 1;
  1878. C.ZK = 2;
  1879. C.fz = 4;
  1880. C.Dv = C.Ch | C.ZK | C.fz;
  1881. C.SLa = 0;
  1882. C.Lc = 0;
  1883. C.Hi = 1;
  1884. C.Vg = 2;
  1885. C.ONa = 3;
  1886. C.HU = 0;
  1887. C.GU = 1;
  1888. C.NE = 2;
  1889. C.LU = 3;
  1890. C.KU = 4;
  1891. C.FU = 5;
  1892. C.IU = 6;
  1893. C.JU = 7;
  1894. C.INa = 8;
  1895. C.Co = "ShaderPositionTextureColor";
  1896. C.KK = "ShaderPositionTextureColorAlphaTest";
  1897. C.JK = "ShaderPositionColor";
  1898. C.yE = "ShaderPositionTexture";
  1899. C.LK = "ShaderPositionTexture_uColor";
  1900. C.$T = "ShaderPositionTextureA8Color";
  1901. C.aU = "ShaderPosition_uColor";
  1902. C.C7 = "ShaderPositionLengthTextureColor";
  1903. C.hqa = "CC_PMatrix";
  1904. C.fqa = "CC_MVMatrix";
  1905. C.gqa = "CC_MVPMatrix";
  1906. C.lqa = "CC_Time";
  1907. C.kqa = "CC_SinTime";
  1908. C.eqa = "CC_CosTime";
  1909. C.iqa = "CC_Random01";
  1910. C.jqa = "CC_Texture0";
  1911. C.G8 = "CC_alpha_value";
  1912. C.tD = "a_color";
  1913. C.ev = "a_position";
  1914. C.Hy = "a_texCoord";
  1915. C.Cma = 32;
  1916. C.k5 = 3233828865;
  1917. C.$K = 3233828866;
  1918. C.bna = 8801;
  1919. C.foa = 8802;
  1920. C.Gla = 8803;
  1921. C = C || {};
  1922. C.U = C.U || {};
  1923. C.U.PU = function() {
  1924. C.color = function(c, f, g, h, k, n) {
  1925. return c === m ? new ja(0, 0, 0, 255, k, n) : "string" === typeof c ? (c = C.Oea(c), new ja(c.r, c.g, c.b, c.a)) : "object" === typeof c ? new ja(c.r, c.g, c.b, c.a, c.WO, c.offset) : new ja(c, f, g, h, k, n)
  1926. };
  1927. ja = function(c, f, g, h, k, n) {
  1928. this.Wf = k || new ArrayBuffer(ja.BYTES_PER_ELEMENT);
  1929. this.fb = n || 0;
  1930. k = this.Wf;
  1931. n = this.fb;
  1932. var p = Uint8Array.BYTES_PER_ELEMENT;
  1933. this.iY = new Uint8Array(k, n, 1);
  1934. this.EW = new Uint8Array(k, n + p, 1);
  1935. this.mV = new Uint8Array(k, n + 2 * p, 1);
  1936. this.ZU = new Uint8Array(k, n + 3 * p, 1);
  1937. this.iY[0] = c || 0;
  1938. this.EW[0] = f || 0;
  1939. this.mV[0] = g || 0;
  1940. this.ZU[0] = h || 255;
  1941. h === m && (this.jx = q)
  1942. };
  1943. ja.BYTES_PER_ELEMENT = 4;
  1944. var c = ja.prototype;
  1945. c.Esa = function() {
  1946. return this.iY[0]
  1947. };
  1948. c.fva = function(c) {
  1949. this.iY[0] = 0 > c ? 0 : c
  1950. };
  1951. c.osa = function() {
  1952. return this.EW[0]
  1953. };
  1954. c.Xua = function(c) {
  1955. this.EW[0] = 0 > c ? 0 : c
  1956. };
  1957. c.hsa = function() {
  1958. return this.mV[0]
  1959. };
  1960. c.Qua = function(c) {
  1961. this.mV[0] = 0 > c ? 0 : c
  1962. };
  1963. c.esa = function() {
  1964. return this.ZU[0]
  1965. };
  1966. c.Pua = function(c) {
  1967. this.ZU[0] = 0 > c ? 0 : c
  1968. };
  1969. C.e(c, "r", c.Esa, c.fva);
  1970. C.e(c, "g", c.osa, c.Xua);
  1971. C.e(c, "b", c.hsa, c.Qua);
  1972. C.e(c, "a", c.esa, c.Pua);
  1973. C.bf = function(c, f, g, h) {
  1974. this.Wf = g || new ArrayBuffer(C.bf.BYTES_PER_ELEMENT);
  1975. this.fb = h || 0;
  1976. this.hx = new Float32Array(this.Wf, this.fb, 1);
  1977. this.ix = new Float32Array(this.Wf, this.fb + 4, 1);
  1978. this.hx[0] = c || 0;
  1979. this.ix[0] = f || 0
  1980. };
  1981. C.bf.BYTES_PER_ELEMENT = 8;
  1982. Object.defineProperties(C.bf.prototype, {
  1983. x: {
  1984. get: function() {
  1985. return this.hx[0]
  1986. },
  1987. set: function(c) {
  1988. this.hx[0] = c
  1989. },
  1990. enumerable: q
  1991. },
  1992. y: {
  1993. get: function() {
  1994. return this.ix[0]
  1995. },
  1996. set: function(c) {
  1997. this.ix[0] = c
  1998. },
  1999. enumerable: q
  2000. }
  2001. });
  2002. C.re = function(c, f, g, h, k) {
  2003. this.Wf = h || new ArrayBuffer(C.re.BYTES_PER_ELEMENT);
  2004. this.fb = k || 0;
  2005. h = this.Wf;
  2006. k = this.fb;
  2007. this.hx = new Float32Array(h, k, 1);
  2008. this.hx[0] = c || 0;
  2009. this.ix = new Float32Array(h, k + Float32Array.BYTES_PER_ELEMENT, 1);
  2010. this.ix[0] = f || 0;
  2011. this.JZ = new Float32Array(h, k + 2 * Float32Array.BYTES_PER_ELEMENT, 1);
  2012. this.JZ[0] = g || 0
  2013. };
  2014. C.re.BYTES_PER_ELEMENT = 12;
  2015. Object.defineProperties(C.re.prototype, {
  2016. x: {
  2017. get: function() {
  2018. return this.hx[0]
  2019. },
  2020. set: function(c) {
  2021. this.hx[0] = c
  2022. },
  2023. enumerable: q
  2024. },
  2025. y: {
  2026. get: function() {
  2027. return this.ix[0]
  2028. },
  2029. set: function(c) {
  2030. this.ix[0] = c
  2031. },
  2032. enumerable: q
  2033. },
  2034. f: {
  2035. get: function() {
  2036. return this.JZ[0]
  2037. },
  2038. set: function(c) {
  2039. this.JZ[0] = c
  2040. },
  2041. enumerable: q
  2042. }
  2043. });
  2044. C.tq = function(c, f, g, h) {
  2045. this.Wf = g || new ArrayBuffer(C.tq.BYTES_PER_ELEMENT);
  2046. this.fb = h || 0;
  2047. this.oZ = new Float32Array(this.Wf, this.fb, 1);
  2048. this.wZ = new Float32Array(this.Wf, this.fb + 4, 1);
  2049. this.oZ[0] = c || 0;
  2050. this.wZ[0] = f || 0
  2051. };
  2052. C.tq.BYTES_PER_ELEMENT = 8;
  2053. Object.defineProperties(C.tq.prototype, {
  2054. xa: {
  2055. get: function() {
  2056. return this.oZ[0]
  2057. },
  2058. set: function(c) {
  2059. this.oZ[0] = c
  2060. },
  2061. enumerable: q
  2062. },
  2063. ea: {
  2064. get: function() {
  2065. return this.wZ[0]
  2066. },
  2067. set: function(c) {
  2068. this.wZ[0] = c
  2069. },
  2070. enumerable: q
  2071. }
  2072. });
  2073. C.VT = function(c, f, g, h, k, n) {
  2074. this.Wf = k || new ArrayBuffer(C.VT.BYTES_PER_ELEMENT);
  2075. this.fb = n || 0;
  2076. k = this.Wf;
  2077. n = C.bf.BYTES_PER_ELEMENT;
  2078. this.lB = c ? new C.bf(c.x, c.y, k, 0) : new C.bf(0, 0, k, 0);
  2079. this.qB = f ? new C.bf(f.x, f.y, k, n) : new C.bf(0, 0, k, n);
  2080. this.sz = g ? new C.bf(g.x, g.y, k, 2 * n) : new C.bf(0, 0, k, 2 * n);
  2081. this.wz = h ? new C.bf(h.x, h.y, k, 3 * n) : new C.bf(0, 0, k, 3 * n)
  2082. };
  2083. C.VT.BYTES_PER_ELEMENT = 32;
  2084. C.FK = function(c, f, g, h) {
  2085. this.T = c || new C.re(0, 0, 0);
  2086. this.Y = f || new C.re(0, 0, 0);
  2087. this.X = g || new C.re(0, 0, 0);
  2088. this.V = h || new C.re(0, 0, 0)
  2089. };
  2090. Object.defineProperties(C.VT.prototype, {
  2091. X: {
  2092. get: A("lB"),
  2093. set: function(c) {
  2094. this.lB.x = c.x;
  2095. this.lB.y = c.y
  2096. },
  2097. enumerable: q
  2098. },
  2099. V: {
  2100. get: A("qB"),
  2101. set: function(c) {
  2102. this.qB.x = c.x;
  2103. this.qB.y = c.y
  2104. },
  2105. enumerable: q
  2106. },
  2107. T: {
  2108. get: A("sz"),
  2109. set: function(c) {
  2110. this.sz.x = c.x;
  2111. this.sz.y = c.y
  2112. },
  2113. enumerable: q
  2114. },
  2115. Y: {
  2116. get: A("wz"),
  2117. set: function(c) {
  2118. this.wz.x = c.x;
  2119. this.wz.y = c.y
  2120. },
  2121. enumerable: q
  2122. }
  2123. });
  2124. C.Ol = function(c, f, g, h, k) {
  2125. this.Wf = h || new ArrayBuffer(C.Ol.BYTES_PER_ELEMENT);
  2126. this.fb = k || 0;
  2127. h = this.Wf;
  2128. k = this.fb;
  2129. var n = C.re.BYTES_PER_ELEMENT;
  2130. this.bc = c ? new C.re(c.x, c.y, c.f, h, k) : new C.re(0, 0, 0, h, k);
  2131. this.mF = f ? C.color(f.r, f.g, f.b, f.a, h, k + n) : C.color(0, 0, 0, 0, h, k + n);
  2132. this.dl = g ? new C.tq(g.xa, g.ea, h, k + n + ja.BYTES_PER_ELEMENT) : new C.tq(0, 0, h, k + n + ja.BYTES_PER_ELEMENT)
  2133. };
  2134. C.Ol.BYTES_PER_ELEMENT = 24;
  2135. Object.defineProperties(C.Ol.prototype, {
  2136. m: {
  2137. get: A("bc"),
  2138. set: function(c) {
  2139. var f = this.bc;
  2140. f.x = c.x;
  2141. f.y = c.y;
  2142. f.f = c.f
  2143. },
  2144. enumerable: q
  2145. },
  2146. F: {
  2147. get: A("mF"),
  2148. set: function(c) {
  2149. var f = this.mF;
  2150. f.r = c.r;
  2151. f.g = c.g;
  2152. f.b = c.b;
  2153. f.a = c.a
  2154. },
  2155. enumerable: q
  2156. },
  2157. v: {
  2158. get: A("dl"),
  2159. set: function(c) {
  2160. this.dl.xa = c.xa;
  2161. this.dl.ea = c.ea
  2162. },
  2163. enumerable: q
  2164. }
  2165. });
  2166. C.Uc = function(c, f, g, h, k, n) {
  2167. this.Wf = k || new ArrayBuffer(C.Uc.BYTES_PER_ELEMENT);
  2168. this.fb = n || 0;
  2169. k = this.Wf;
  2170. n = this.fb;
  2171. var p = C.Ol.BYTES_PER_ELEMENT;
  2172. this.lB = c ? new C.Ol(c.m, c.F, c.v, k, n) : new C.Ol(s, s, s, k, n);
  2173. this.sz = f ? new C.Ol(f.m, f.F, f.v, k, n + p) : new C.Ol(s, s, s, k, n + p);
  2174. this.qB = g ? new C.Ol(g.m, g.F, g.v, k, n + 2 * p) : new C.Ol(s, s, s, k, n + 2 * p);
  2175. this.wz = h ? new C.Ol(h.m, h.F, h.v, k, n + 3 * p) : new C.Ol(s, s, s, k, n + 3 * p)
  2176. };
  2177. C.Uc.BYTES_PER_ELEMENT = 96;
  2178. Object.defineProperties(C.Uc.prototype, {
  2179. X: {
  2180. get: A("lB"),
  2181. set: function(c) {
  2182. var f = this.lB;
  2183. f.m = c.m;
  2184. f.F = c.F;
  2185. f.v = c.v
  2186. },
  2187. enumerable: q
  2188. },
  2189. T: {
  2190. get: A("sz"),
  2191. set: function(c) {
  2192. var f = this.sz;
  2193. f.m = c.m;
  2194. f.F = c.F;
  2195. f.v = c.v
  2196. },
  2197. enumerable: q
  2198. },
  2199. V: {
  2200. get: A("qB"),
  2201. set: function(c) {
  2202. var f = this.qB;
  2203. f.m = c.m;
  2204. f.F = c.F;
  2205. f.v = c.v
  2206. },
  2207. enumerable: q
  2208. },
  2209. Y: {
  2210. get: A("wz"),
  2211. set: function(c) {
  2212. var f = this.wz;
  2213. f.m = c.m;
  2214. f.F = c.F;
  2215. f.v = c.v
  2216. },
  2217. enumerable: q
  2218. },
  2219. WO: {
  2220. get: A("Wf"),
  2221. enumerable: q
  2222. }
  2223. });
  2224. C.I8 = function() {
  2225. return new C.Uc
  2226. };
  2227. C.H8 = function(c) {
  2228. if (!c) return C.I8();
  2229. var f = c.X,
  2230. g = c.T,
  2231. h = c.V;
  2232. c = c.Y;
  2233. return {
  2234. X: {
  2235. m: {
  2236. x: f.m.x,
  2237. y: f.m.y,
  2238. f: f.m.f
  2239. },
  2240. F: {
  2241. r: f.F.r,
  2242. g: f.F.g,
  2243. b: f.F.b,
  2244. a: f.F.a
  2245. },
  2246. v: {
  2247. xa: f.v.xa,
  2248. ea: f.v.ea
  2249. }
  2250. },
  2251. T: {
  2252. m: {
  2253. x: g.m.x,
  2254. y: g.m.y,
  2255. f: g.m.f
  2256. },
  2257. F: {
  2258. r: g.F.r,
  2259. g: g.F.g,
  2260. b: g.F.b,
  2261. a: g.F.a
  2262. },
  2263. v: {
  2264. xa: g.v.xa,
  2265. ea: g.v.ea
  2266. }
  2267. },
  2268. V: {
  2269. m: {
  2270. x: h.m.x,
  2271. y: h.m.y,
  2272. f: h.m.f
  2273. },
  2274. F: {
  2275. r: h.F.r,
  2276. g: h.F.g,
  2277. b: h.F.b,
  2278. a: h.F.a
  2279. },
  2280. v: {
  2281. xa: h.v.xa,
  2282. ea: h.v.ea
  2283. }
  2284. },
  2285. Y: {
  2286. m: {
  2287. x: c.m.x,
  2288. y: c.m.y,
  2289. f: c.m.f
  2290. },
  2291. F: {
  2292. r: c.F.r,
  2293. g: c.F.g,
  2294. b: c.F.b,
  2295. a: c.F.a
  2296. },
  2297. v: {
  2298. xa: c.v.xa,
  2299. ea: c.v.ea
  2300. }
  2301. }
  2302. }
  2303. };
  2304. C.LNa = function(c) {
  2305. if (!c) return [];
  2306. for (var f = [], g = 0; g < c.length; g++) f.push(C.H8(c[g]));
  2307. return f
  2308. };
  2309. C.Ug = function(c, f, g, h, k) {
  2310. this.Wf = h || new ArrayBuffer(C.Ug.BYTES_PER_ELEMENT);
  2311. this.fb = k || 0;
  2312. h = this.Wf;
  2313. k = this.fb;
  2314. var n = C.bf.BYTES_PER_ELEMENT;
  2315. this.bc = c ? new C.bf(c.x, c.y, h, k) : new C.bf(0, 0, h, k);
  2316. this.mF = f ? C.color(f.r, f.g, f.b, f.a, h, k + n) : C.color(0, 0, 0, 0, h, k + n);
  2317. this.dl = g ? new C.tq(g.xa, g.ea, h, k + n + ja.BYTES_PER_ELEMENT) : new C.tq(0, 0, h, k + n + ja.BYTES_PER_ELEMENT)
  2318. };
  2319. C.Ug.BYTES_PER_ELEMENT = 20;
  2320. Object.defineProperties(C.Ug.prototype, {
  2321. m: {
  2322. get: A("bc"),
  2323. set: function(c) {
  2324. this.bc.x = c.x;
  2325. this.bc.y = c.y
  2326. },
  2327. enumerable: q
  2328. },
  2329. F: {
  2330. get: A("mF"),
  2331. set: function(c) {
  2332. var f = this.mF;
  2333. f.r = c.r;
  2334. f.g = c.g;
  2335. f.b = c.b;
  2336. f.a = c.a
  2337. },
  2338. enumerable: q
  2339. },
  2340. v: {
  2341. get: A("dl"),
  2342. set: function(c) {
  2343. this.dl.xa = c.xa;
  2344. this.dl.ea = c.ea
  2345. },
  2346. enumerable: q
  2347. }
  2348. });
  2349. C.be = function(c, f, g, h, k) {
  2350. this.Wf = h || new ArrayBuffer(C.be.BYTES_PER_ELEMENT);
  2351. this.fb = k || 0;
  2352. h = this.Wf;
  2353. k = this.fb;
  2354. var n = C.Ug.BYTES_PER_ELEMENT;
  2355. this.T8 = c ? new C.Ug(c.m, c.F, c.v, h, k) : new C.Ug(s, s, s, h, k);
  2356. this.g9 = f ? new C.Ug(f.m, f.F, f.v, h, k + n) : new C.Ug(s, s, s, h, k + n);
  2357. this.p9 = g ? new C.Ug(g.m, g.F, g.v, h, k + 2 * n) : new C.Ug(s, s, s, h, k + 2 * n)
  2358. };
  2359. C.be.BYTES_PER_ELEMENT = 60;
  2360. Object.defineProperties(C.be.prototype, {
  2361. a: {
  2362. get: A("T8"),
  2363. set: function(c) {
  2364. var f = this.T8;
  2365. f.m = c.m;
  2366. f.F = c.F;
  2367. f.v = c.v
  2368. },
  2369. enumerable: q
  2370. },
  2371. b: {
  2372. get: A("g9"),
  2373. set: function(c) {
  2374. var f = this.g9;
  2375. f.m = c.m;
  2376. f.F = c.F;
  2377. f.v = c.v
  2378. },
  2379. enumerable: q
  2380. },
  2381. H: {
  2382. get: A("p9"),
  2383. set: function(c) {
  2384. var f = this.p9;
  2385. f.m = c.m;
  2386. f.F = c.F;
  2387. f.v = c.v
  2388. },
  2389. enumerable: q
  2390. }
  2391. })
  2392. };
  2393. C.U.NT = function() {
  2394. var c = C.color;
  2395. c.Qsa = function() {
  2396. return c(255, 255, 255)
  2397. };
  2398. c.Usa = function() {
  2399. return c(255, 255, 0)
  2400. };
  2401. c.jsa = function() {
  2402. return c(0, 0, 255)
  2403. };
  2404. c.qsa = function() {
  2405. return c(0, 255, 0)
  2406. };
  2407. c.Fsa = function() {
  2408. return c(255, 0, 0)
  2409. };
  2410. c.ysa = function() {
  2411. return c(255, 0, 255)
  2412. };
  2413. c.isa = function() {
  2414. return c(0, 0, 0)
  2415. };
  2416. c.Dsa = function() {
  2417. return c(255, 127, 0)
  2418. };
  2419. c.psa = function() {
  2420. return c(166, 166, 166)
  2421. };
  2422. C.e(c, "WHITE", c.Qsa);
  2423. C.e(c, "YELLOW", c.Usa);
  2424. C.e(c, "BLUE", c.jsa);
  2425. C.e(c, "GREEN", c.qsa);
  2426. C.e(c, "RED", c.Fsa);
  2427. C.e(c, "MAGENTA", c.ysa);
  2428. C.e(c, "BLACK", c.isa);
  2429. C.e(c, "ORANGE", c.Dsa);
  2430. C.e(c, "GRAY", c.psa)
  2431. };
  2432. function ja(c, d, f, g) {
  2433. this.r = c || 0;
  2434. this.g = d || 0;
  2435. this.b = f || 0;
  2436. this.a = g || 255
  2437. }
  2438. C.color = function(c, d, f, g) {
  2439. return c === m ? {
  2440. r: 0,
  2441. g: 0,
  2442. b: 0,
  2443. a: 255
  2444. }: "string" === typeof c ? C.Oea(c) : "object" === typeof c ? {
  2445. r: c.r,
  2446. g: c.g,
  2447. b: c.b,
  2448. a: c.a || 255
  2449. }: {
  2450. r: c,
  2451. g: d,
  2452. b: f,
  2453. a: g || 255
  2454. }
  2455. };
  2456. C.$Qa = function(c, d) {
  2457. return c.r === d.r && c.g === d.g && c.b === d.b
  2458. };
  2459. C.Eja = function() {
  2460. this.timestamp = this.f = this.y = this.x = 0
  2461. };
  2462. C.bf = function(c, d) {
  2463. this.x = c || 0;
  2464. this.y = d || 0
  2465. };
  2466. C.fS = function(c, d) {
  2467. return new C.bf(c, d)
  2468. };
  2469. C.re = function(c, d, f) {
  2470. this.x = c || 0;
  2471. this.y = d || 0;
  2472. this.f = f || 0
  2473. };
  2474. C.O6a = function(c, d, f) {
  2475. return new C.re(c, d, f)
  2476. };
  2477. C.tq = function(c, d) {
  2478. this.xa = c || 0;
  2479. this.ea = d || 0
  2480. };
  2481. C.m6a = function(c, d) {
  2482. return new C.tq(c, d)
  2483. };
  2484. C.Vm = function(c, d) {
  2485. this.src = c;
  2486. this.ga = d
  2487. };
  2488. C.BQa = function() {
  2489. return new C.Vm(C.ONE, C.ZERO)
  2490. };
  2491. C.Oea = function(c) {
  2492. c = c.replace(/^#?/, "0x");
  2493. c = parseInt(c);
  2494. return C.color(c >> 16, (c >> 8) % 256, c % 256)
  2495. };
  2496. C.Ap = function(c) {
  2497. var d = c.r.toString(16),
  2498. f = c.g.toString(16),
  2499. g = c.b.toString(16);
  2500. return "#" + (16 > c.r ? "0" + d: d) + (16 > c.g ? "0" + f: f) + (16 > c.b ? "0" + g: g)
  2501. };
  2502. C.dz = 0;
  2503. C.Fs = 1;
  2504. C.Q7 = 2;
  2505. C.OE = 0;
  2506. C.MU = 1;
  2507. C.J8 = 2;
  2508. C.Ev = C.O.extend({
  2509. vA: s,
  2510. eH: s,
  2511. XU: 0,
  2512. ctor: function() {
  2513. this.vA = {};
  2514. this.eH = {};
  2515. this.XU = 2 << (0 | 10 * Math.random())
  2516. },
  2517. Cqa: function() {
  2518. this.XU++;
  2519. return "key_" + this.XU
  2520. },
  2521. vl: function(c, d) {
  2522. if (d != s) {
  2523. var f = this.Cqa();
  2524. this.vA[f] = d;
  2525. this.eH[f] = c
  2526. }
  2527. },
  2528. Km: function(c) {
  2529. if (c == s) return s;
  2530. var d = this.vA,
  2531. f;
  2532. for (f in d) if (d[f] === c) return this.eH[f];
  2533. return s
  2534. },
  2535. N6a: function(c) {
  2536. return this.Km(c)
  2537. },
  2538. q2: function(c) {
  2539. if (c != s) {
  2540. var d = this.vA,
  2541. f;
  2542. for (f in d) if (d[f] === c) {
  2543. delete this.eH[f];
  2544. delete d[f];
  2545. break
  2546. }
  2547. }
  2548. },
  2549. k2a: function(c) {
  2550. if (c != s) for (var d = 0; d < c.length; d++) this.q2(c[d])
  2551. },
  2552. vB: function() {
  2553. var c = [],
  2554. d = this.vA,
  2555. f;
  2556. for (f in d) c.push(d[f]);
  2557. return c
  2558. },
  2559. U1a: function() {
  2560. this.vA = {};
  2561. this.eH = {}
  2562. },
  2563. count: function() {
  2564. return this.vB().length
  2565. }
  2566. });
  2567. C.W5 = function() {
  2568. this.fontName = "Arial";
  2569. this.fontSize = 12;
  2570. this.textAlign = C.Fs;
  2571. this.verticalAlign = C.OE;
  2572. this.fillStyle = C.color(255, 255, 255, 255);
  2573. this.boundingHeight = this.boundingWidth = 0;
  2574. this.I3 = t;
  2575. this.strokeStyle = C.color(255, 255, 255, 255);
  2576. this.lineWidth = 1;
  2577. this.Dia = t;
  2578. this.shadowBlur = this.shadowOffsetY = this.shadowOffsetX = 0;
  2579. this.shadowOpacity = 1
  2580. };
  2581. C.L === C.la && (C.assert("function" === typeof C.U.PU, C.n.Bf, "CCTypesWebGL.js"), C.U.PU(), delete C.U.PU);
  2582. C.assert("function" === typeof C.U.NT, C.n.Bf, "CCTypesPropertyDefine.js");
  2583. C.U.NT();
  2584. delete C.U.NT;
  2585. C.ENa = [];
  2586. C.FNa = {};
  2587. C.YS = C.O.extend({
  2588. Oq: s,
  2589. mi: s,
  2590. Oz: s,
  2591. Lt: s,
  2592. jh: s,
  2593. yp: s,
  2594. pY: t,
  2595. kV: q,
  2596. Pq: 1,
  2597. EZ: "",
  2598. mY: s,
  2599. ia: 1,
  2600. Haa: 1,
  2601. pa: 1,
  2602. Iaa: 1,
  2603. mA: 0,
  2604. xX: 5,
  2605. Bn: s,
  2606. lba: s,
  2607. pba: s,
  2608. oba: s,
  2609. mba: s,
  2610. nba: s,
  2611. VF: t,
  2612. dOa: t,
  2613. LPa: s,
  2614. W$: s,
  2615. X$: s,
  2616. BPa: t,
  2617. QV: s,
  2618. tt: s,
  2619. AW: 1,
  2620. eL: t,
  2621. eaa: q,
  2622. ctor: function() {
  2623. var c = document,
  2624. d = C.ys,
  2625. f = C.Dl;
  2626. this.tt = C.container.parentNode === c.body ? c.documentElement: C.container.parentNode;
  2627. this.mi = C.size(0, 0);
  2628. this.ZW();
  2629. var c = C.Pb.width,
  2630. g = C.Pb.height;
  2631. this.Oz = C.size(c, g);
  2632. this.Lt = C.size(c, g);
  2633. this.jh = C.rect(0, 0, c, g);
  2634. this.yp = C.rect(0, 0, c, g);
  2635. this.QV = {
  2636. left: 0,
  2637. top: 0
  2638. };
  2639. this.EZ = "Cocos2dHTML5";
  2640. c = C.Sc;
  2641. this.yza(c.Q1 == c.L6 || c.Q1 == c.M6);
  2642. C.ts && C.ts.j(this.yp);
  2643. this.lba = new C.Ej(d.jK, f.aT);
  2644. this.pba = new C.Ej(d.Pna, f.MK);
  2645. this.oba = new C.Ej(d.jK, f.CT);
  2646. this.mba = new C.Ej(d.jK, f.bT);
  2647. this.nba = new C.Ej(d.jK, f.cT);
  2648. this.W$ = C.Pb;
  2649. this.X$ = C.t
  2650. },
  2651. nY: function() {
  2652. var c = this.Lt.width,
  2653. d = this.Lt.height;
  2654. this.mY && (this.ZW(), this.mY.call());
  2655. 0 < c && this.M2(c, d, this.Bn)
  2656. },
  2657. EGa: function(c) {
  2658. c ? this.eL || (this.eL = q, c = this.nY.bind(this), C.qb(window, "resize", c, t)) : this.eL && (this.eL = q, c = this.nY.bind(this), window.removeEventListener("resize", c, t))
  2659. },
  2660. Y4a: function(c) {
  2661. if ("function" == typeof c || c == s) this.mY = c
  2662. },
  2663. ZW: function() {
  2664. var c = this.mi;
  2665. c.width = this.tt.clientWidth;
  2666. c.height = this.tt.clientHeight
  2667. },
  2668. VNa: function() {
  2669. var c = this.Lt.width,
  2670. d = this.Lt.height;
  2671. 0 < c && this.M2(c, d, this.Bn)
  2672. },
  2673. zva: function() {
  2674. if (this.eaa) {
  2675. var c = {
  2676. "user-scalable": "no",
  2677. "maximum-scale": "1.0",
  2678. "initial-scale": "1.0"
  2679. },
  2680. d = document.getElementsByName("viewport"),
  2681. f;
  2682. 0 == d.length ? (d = C.bd("meta"), d.name = "viewport", d.content = "", document.head.appendChild(d)) : d = d[0];
  2683. if (C.Sc.Xr && C.Sc.tu == C.Sc.xD) d.content = "initial-scale:1";
  2684. else {
  2685. f = d.content;
  2686. for (var g in c) RegExp(g).test(f) || (f += ("" == f ? "": ",") + g + "\x3d" + c[g]);
  2687. d.content = f
  2688. }
  2689. }
  2690. },
  2691. vba: function() {
  2692. var c = C.Ec();
  2693. this.pa = this.ia = c
  2694. },
  2695. hba: function() {
  2696. this.ia = this.Haa;
  2697. this.pa = this.Iaa
  2698. },
  2699. WNa: u(),
  2700. eDa: function() {
  2701. this.VF = q
  2702. },
  2703. Ewa: x("eaa"),
  2704. yza: function(c) {
  2705. this.pY = c ? q: t
  2706. },
  2707. HYa: A("pY"),
  2708. WRa: function(c) {
  2709. this.kV = c ? q: t
  2710. },
  2711. dYa: A("kV"),
  2712. end: u(),
  2713. BYa: function() {
  2714. return this.W$ != s && this.X$ != s
  2715. },
  2716. g4a: function(c) {
  2717. this.AW = c;
  2718. C.Q.py(C.Q.op)
  2719. },
  2720. d6a: u(),
  2721. l4a: u(),
  2722. K3a: function(c, d) {
  2723. this.QV = {
  2724. left: c,
  2725. top: d
  2726. }
  2727. },
  2728. KTa: A("QV"),
  2729. $da: function() {
  2730. return C.size(this.mi.width, this.mi.height)
  2731. },
  2732. f4a: function(c, d) {
  2733. this.mi.width = c;
  2734. this.mi.height = d;
  2735. this.tt.style.width = c + "px";
  2736. this.tt.style.height = d + "px";
  2737. this.nY();
  2738. C.Q.py(C.Q.op)
  2739. },
  2740. MQa: u(),
  2741. aI: function() {
  2742. return C.size(this.yp.width, this.yp.height)
  2743. },
  2744. L0: function() {
  2745. return C.d(this.yp.x, this.yp.y)
  2746. },
  2747. FQa: B(q),
  2748. mWa: A("Bn"),
  2749. eIa: function(c) {
  2750. if (c instanceof C.Ej) this.Bn = c;
  2751. else {
  2752. var d = C.Ej;
  2753. c === d.aT && (this.Bn = this.lba);
  2754. c === d.MK && (this.Bn = this.pba);
  2755. c === d.CT && (this.Bn = this.oba);
  2756. c === d.bT && (this.Bn = this.mba);
  2757. c === d.cT && (this.Bn = this.nba)
  2758. }
  2759. },
  2760. M2: function(c, d, f) {
  2761. if (isNaN(c) || 0 == c || isNaN(d) || 0 == d) C.log(C.n.Sla);
  2762. else {
  2763. this.eIa(f);
  2764. var g = this.Bn;
  2765. if (g) {
  2766. g.ay(this);
  2767. var h = this.mi.width,
  2768. k = this.mi.height;
  2769. C.Sc.Xr && this.zva(this.mi.width, this.mi.height);
  2770. this.ZW();
  2771. f == this.Bn && c == this.Lt.width && d == this.Lt.height && h == this.mi.width && k == this.mi.height || (this.Oz = C.size(c, d), this.Lt = C.size(c, d), c = g.apply(this, this.Oz), c.scale && 2 == c.scale.length && (this.ia = c.scale[0], this.pa = c.scale[1]), c.viewport && (c = this.jh = c.viewport, d = this.yp, d.width = C.Pb.width / this.ia, d.height = C.Pb.height / this.pa, d.x = -c.x / this.ia, d.y = -c.y / this.pa), c = C.Q, C.KJ.width = c.aa.width = this.yp.width, C.KJ.height = c.aa.height = this.yp.height, g.$x(this), C.L == C.la && (c.Kz(), c.Fha()), this.Haa = this.ia, this.Iaa = this.pa, C.Pd && C.Pd.Gua(), C.ts && C.ts.j(this.yp))
  2772. } else C.log(C.n.Tla)
  2773. }
  2774. },
  2775. LH: function() {
  2776. return C.size(this.Oz.width, this.Oz.height)
  2777. },
  2778. AIa: function(c, d, f, g) {
  2779. var h = this.AW,
  2780. k = this.ia,
  2781. n = this.pa;
  2782. C.t.viewport(c * k * h + this.jh.x * h, d * n * h + this.jh.y * h, f * k * h, g * n * h)
  2783. },
  2784. LR: function(c, d, f, g) {
  2785. var h = this.AW,
  2786. k = this.ia,
  2787. n = this.pa;
  2788. C.t.scissor(c * k * h + this.jh.x * h, d * n * h + this.jh.y * h, f * k * h, g * n * h)
  2789. },
  2790. ADa: function() {
  2791. var c = C.t;
  2792. return c.isEnabled(c.SCISSOR_TEST)
  2793. },
  2794. JBa: function() {
  2795. var c = C.t,
  2796. d = this.ia,
  2797. f = this.pa,
  2798. c = c.getParameter(c.SCISSOR_BOX);
  2799. return C.rect((c[0] - this.jh.x) / d, (c[1] - this.jh.y) / f, c[2] / d, c[3] / f)
  2800. },
  2801. M5a: function(c) {
  2802. c != s && 0 < c.length && (this.EZ = c)
  2803. },
  2804. tXa: A("EZ"),
  2805. uXa: A("jh"),
  2806. LP: A("ia"),
  2807. TH: A("pa"),
  2808. eUa: A("Pq"),
  2809. C_: function(c, d, f) {
  2810. return {
  2811. x: this.Pq * (c - f.left),
  2812. y: this.Pq * (f.top + f.height - d)
  2813. }
  2814. },
  2815. yra: function(c, d) {
  2816. var f = this.jh;
  2817. c.x = (this.Pq * (c.x - d.left) - f.x) / this.ia;
  2818. c.y = (this.Pq * (d.top + d.height - c.y) - f.y) / this.pa
  2819. },
  2820. PL: function(c) {
  2821. for (var d = this.jh,
  2822. f = this.ia,
  2823. g = this.pa,
  2824. h, k, n, p = 0; p < c.length; p++) h = c[p],
  2825. k = h.eh,
  2826. n = h.mp,
  2827. h.IY((k.x - d.x) / f, (k.y - d.y) / g),
  2828. h.ZA((n.x - d.x) / f, (n.y - d.y) / g)
  2829. }
  2830. });
  2831. C.YS.KW = function() {
  2832. this.Zl || (this.Zl = this.Zl || new C.YS, this.Zl.eDa());
  2833. return this.Zl
  2834. };
  2835. C.ys = C.O.extend({
  2836. ay: u(),
  2837. apply: u(),
  2838. $x: u(),
  2839. MY: function(c, d, f) {
  2840. var g = c.tt;
  2841. C.view.kV && (C.Sc.Xr && g == document.documentElement) && C.screen.fxa(g);
  2842. var g = C.Pb,
  2843. h = C.container;
  2844. h.style.width = g.style.width = d + "px";
  2845. h.style.height = g.style.height = f + "px";
  2846. h = c.Pq = 1;
  2847. c.pY && (h = c.Pq = window.devicePixelRatio || 1);
  2848. g.width = d * h;
  2849. g.height = f * h;
  2850. c = document.body;
  2851. var k;
  2852. if (c && (k = c.style)) k.paddingTop = k.paddingTop || "0px",
  2853. k.paddingRight = k.paddingRight || "0px",
  2854. k.paddingBottom = k.paddingBottom || "0px",
  2855. k.paddingLeft = k.paddingLeft || "0px",
  2856. k.borderTop = k.borderTop || "0px",
  2857. k.borderRight = k.borderRight || "0px",
  2858. k.borderBottom = k.borderBottom || "0px",
  2859. k.borderLeft = k.borderLeft || "0px",
  2860. k.marginTop = k.marginTop || "0px",
  2861. k.marginRight = k.marginRight || "0px",
  2862. k.marginBottom = k.marginBottom || "0px",
  2863. k.marginLeft = k.marginLeft || "0px"
  2864. },
  2865. z$: function() {
  2866. document.body.insertBefore(C.container, document.body.firstChild);
  2867. var c = document.body.style;
  2868. c.width = window.innerWidth + "px";
  2869. c.height = window.innerHeight + "px";
  2870. c.overflow = "hidden";
  2871. c = C.container.style;
  2872. c.position = "fixed";
  2873. c.left = c.top = "0px";
  2874. document.body.scrollTop = 0
  2875. }
  2876. });
  2877. C.Dl = C.O.extend({
  2878. oY: {
  2879. scale: [1, 1],
  2880. viewport: s
  2881. },
  2882. cF: function(c, d, f, g, h, k) {
  2883. 2 > Math.abs(c - f) && (f = c);
  2884. 2 > Math.abs(d - g) && (g = d);
  2885. c = C.rect(Math.round((c - f) / 2), Math.round((d - g) / 2), f, g);
  2886. C.L == C.cb && C.t.translate(c.x, c.y + g);
  2887. this.oY.scale = [h, k];
  2888. this.oY.viewport = c;
  2889. return this.oY
  2890. },
  2891. ay: u(),
  2892. apply: function() {
  2893. return {
  2894. scale: [1, 1]
  2895. }
  2896. },
  2897. $x: u()
  2898. }); (function() {
  2899. var c = C.ys.extend({
  2900. apply: function(c) {
  2901. this.MY(c, c.mi.width, c.mi.height)
  2902. }
  2903. }),
  2904. d = C.ys.extend({
  2905. apply: function(c, d) {
  2906. var f = c.mi.width,
  2907. g = c.mi.height,
  2908. h = C.container.style,
  2909. y = d.width,
  2910. z = d.height,
  2911. D = f / y,
  2912. E = g / z,
  2913. F, G;
  2914. D < E ? (F = f, G = z * D) : (F = y * E, G = g);
  2915. y = Math.round((f - F) / 2);
  2916. G = Math.round((g - G) / 2);
  2917. this.MY(c, f - 2 * y, g - 2 * G);
  2918. h.marginLeft = y + "px";
  2919. h.marginRight = y + "px";
  2920. h.marginTop = G + "px";
  2921. h.marginBottom = G + "px"
  2922. }
  2923. });
  2924. c.extend({
  2925. ay: function(c) {
  2926. this._super(c);
  2927. c.tt = document.documentElement
  2928. },
  2929. apply: function(c) {
  2930. this._super(c);
  2931. this.z$()
  2932. }
  2933. });
  2934. d.extend({
  2935. ay: function(c) {
  2936. this._super(c);
  2937. c.tt = document.documentElement
  2938. },
  2939. apply: function(c, d) {
  2940. this._super(c, d);
  2941. this.z$()
  2942. }
  2943. });
  2944. var f = C.ys.extend({
  2945. apply: function(c) {
  2946. this.MY(c, C.Pb.width, C.Pb.height)
  2947. }
  2948. });
  2949. C.ys.jK = new c;
  2950. C.ys.Pna = new d;
  2951. C.ys.NMa = new f;
  2952. var c = C.Dl.extend({
  2953. apply: function(c, d) {
  2954. var f = C.Pb.width,
  2955. g = C.Pb.height;
  2956. return this.cF(f, g, f, g, f / d.width, g / d.height)
  2957. }
  2958. }),
  2959. d = C.Dl.extend({
  2960. apply: function(c, d) {
  2961. var f = C.Pb.width,
  2962. g = C.Pb.height,
  2963. h = d.width,
  2964. y = d.height,
  2965. z = f / h,
  2966. D = g / y,
  2967. E = 0,
  2968. F, G;
  2969. z < D ? (E = z, F = f, G = y * E) : (E = D, F = h * E, G = g);
  2970. return this.cF(f, g, F, G, E, E)
  2971. }
  2972. }),
  2973. f = C.Dl.extend({
  2974. apply: function(c, d) {
  2975. var f = C.Pb.width,
  2976. g = C.Pb.height,
  2977. h = d.width,
  2978. y = d.height,
  2979. z = f / h,
  2980. D = g / y,
  2981. E, F, G;
  2982. z < D ? (E = D, F = h * E, G = g) : (E = z, F = f, G = y * E);
  2983. return this.cF(f, g, F, G, E, E)
  2984. }
  2985. }),
  2986. g = C.Dl.extend({
  2987. apply: function(c, d) {
  2988. var f = C.Pb.width,
  2989. g = C.Pb.height,
  2990. h = g / d.height;
  2991. return this.cF(f, g, f, g, h, h)
  2992. },
  2993. $x: function(c) {
  2994. C.Q.aa = c.aI()
  2995. }
  2996. }),
  2997. h = C.Dl.extend({
  2998. apply: function(c, d) {
  2999. var f = C.Pb.width,
  3000. g = C.Pb.height,
  3001. h = f / d.width;
  3002. return this.cF(f, g, f, g, h, h)
  3003. },
  3004. $x: function(c) {
  3005. C.Q.aa = c.aI()
  3006. }
  3007. });
  3008. C.Dl.aT = new c;
  3009. C.Dl.MK = new d;
  3010. C.Dl.CT = new f;
  3011. C.Dl.bT = new g;
  3012. C.Dl.cT = new h
  3013. })();
  3014. C.Ej = C.O.extend({
  3015. ML: s,
  3016. NL: s,
  3017. ctor: function(c, d) {
  3018. this.kHa(c);
  3019. this.mHa(d)
  3020. },
  3021. ay: function(c) {
  3022. this.ML.ay(c);
  3023. this.NL.ay(c)
  3024. },
  3025. apply: function(c, d) {
  3026. this.ML.apply(c, d);
  3027. return this.NL.apply(c, d)
  3028. },
  3029. $x: function(c) {
  3030. this.ML.$x(c);
  3031. this.NL.$x(c)
  3032. },
  3033. kHa: function(c) {
  3034. c instanceof C.ys && (this.ML = c)
  3035. },
  3036. mHa: function(c) {
  3037. c instanceof C.Dl && (this.NL = c)
  3038. }
  3039. });
  3040. C.Ej.aT = 0;
  3041. C.Ej.CT = 1;
  3042. C.Ej.MK = 2;
  3043. C.Ej.bT = 3;
  3044. C.Ej.cT = 4;
  3045. C.Ej.mqa = 5;
  3046. C.screen = {
  3047. lO: t,
  3048. XX: s,
  3049. lZ: "",
  3050. st: s,
  3051. Yra: [["requestFullscreen", "exitFullscreen", "fullscreenchange", "fullscreenEnabled", "fullscreenElement"], ["requestFullScreen", "exitFullScreen", "fullScreenchange", "fullScreenEnabled", "fullScreenElement"], ["webkitRequestFullScreen", "webkitCancelFullScreen", "webkitfullscreenchange", "webkitIsFullScreen", "webkitCurrentFullScreenElement"], ["mozRequestFullScreen", "mozCancelFullScreen", "mozfullscreenchange", "mozFullScreen", "mozFullScreenElement"], ["msRequestFullscreen", "msExitFullscreen", "MSFullscreenChange", "msFullscreenEnabled", "msFullscreenElement"]],
  3052. j: function() {
  3053. this.st = {};
  3054. var c, d, f = this.Yra,
  3055. g;
  3056. c = 0;
  3057. for (l = f.length; c < l; c++) if ((d = f[c]) && d[1] in document) {
  3058. c = 0;
  3059. for (g = d.length; c < g; c++) this.st[f[0][c]] = d[c];
  3060. break
  3061. }
  3062. this.lO = this.st.requestFullscreen != m;
  3063. this.lZ = "ontouchstart" in window ? "touchstart": "mousedown"
  3064. },
  3065. fullScreen: function() {
  3066. return this.lO && document[this.st.fullscreenEnabled]
  3067. },
  3068. Xga: function(c, d) {
  3069. if (this.lO) {
  3070. c = c || document.documentElement;
  3071. c[this.st.requestFullscreen]();
  3072. if (d) {
  3073. var f = this.st.CSa;
  3074. this.XX && document.removeEventListener(f, this.XX);
  3075. this.XX = d;
  3076. C.qb(document, f, d, t)
  3077. }
  3078. return c[this.st.requestFullscreen]()
  3079. }
  3080. },
  3081. dSa: function() {
  3082. return this.lO ? document[this.st.exitFullscreen]() : q
  3083. },
  3084. fxa: function(c, d) {
  3085. function f() {
  3086. h.Xga(c, d);
  3087. g.removeEventListener(h.lZ, f)
  3088. }
  3089. c = c || document.body;
  3090. var g = C.Pb || c,
  3091. h = this;
  3092. this.Xga(c, d);
  3093. C.qb(g, this.lZ, f)
  3094. }
  3095. };
  3096. C.screen.j();
  3097. C.ts = {
  3098. Zia: C.d(0, 0),
  3099. $ia: C.d(0, 0),
  3100. top: C.d(0, 0),
  3101. bP: C.d(0, 0),
  3102. Kca: C.d(0, 0),
  3103. bottom: C.d(0, 0),
  3104. vH: C.d(0, 0),
  3105. left: C.d(0, 0),
  3106. right: C.d(0, 0),
  3107. width: 0,
  3108. height: 0,
  3109. j: function(c) {
  3110. var d = this.width = c.width,
  3111. f = this.height = c.height,
  3112. g = c.x;
  3113. c = c.y;
  3114. var h = c + f,
  3115. k = g + d;
  3116. this.Zia.x = g;
  3117. this.Zia.y = h;
  3118. this.$ia.x = k;
  3119. this.$ia.y = h;
  3120. this.top.x = g + d / 2;
  3121. this.top.y = h;
  3122. this.bP.x = g;
  3123. this.bP.y = c;
  3124. this.Kca.x = k;
  3125. this.Kca.y = c;
  3126. this.bottom.x = g + d / 2;
  3127. this.bottom.y = c;
  3128. this.vH.x = g + d / 2;
  3129. this.vH.y = c + f / 2;
  3130. this.left.x = g;
  3131. this.left.y = c + f / 2;
  3132. this.right.x = k;
  3133. this.right.y = c + f / 2
  3134. }
  3135. };
  3136. C.bqa = -90;
  3137. C.cqa = 90;
  3138. C.dqa = 180;
  3139. C.HNa = 0;
  3140. C.dfa = {
  3141. BA: t,
  3142. laa: t,
  3143. Qaa: C.d(0, 0),
  3144. pua: C.d(0, 0),
  3145. Raa: [],
  3146. YX: 0,
  3147. Kf: [],
  3148. mZ: {},
  3149. mA: 0,
  3150. xX: 5,
  3151. gL: t,
  3152. hL: 1 / 30,
  3153. V8: 1,
  3154. Fv: 0,
  3155. $U: s,
  3156. fL: s,
  3157. Osa: function() {
  3158. for (var c = this.mA,
  3159. d = 0; d < this.xX; d++) {
  3160. if (! (c & 1)) return this.mA |= 1 << d,
  3161. d;
  3162. c >>= 1
  3163. }
  3164. return - 1
  3165. },
  3166. Fua: function(c) {
  3167. 0 > c || c >= this.xX || (c = ~ (1 << c), this.mA &= c)
  3168. },
  3169. vt: s,
  3170. O0: function(c) {
  3171. for (var d, f, g, h = [], k = this.mZ, n = 0, p = c.length; n < p; n++) d = c[n],
  3172. g = d.ni,
  3173. f = k[g],
  3174. f == s && (f = this.Osa(), -1 == f ? C.log(C.n.fDa, f) : (d = this.Kf[f] = d, k[g] = f, h.push(d)));
  3175. 0 < h.length && (this.vt.PL(h), c = new C.El(h), c.ot = C.El.Py.mS, C.Ka.dispatchEvent(c))
  3176. },
  3177. P0: function(c) {
  3178. for (var d, f, g = [], h = this.Kf, k = 0, n = c.length; k < n; k++) d = c[k],
  3179. f = d.ni,
  3180. f = this.mZ[f],
  3181. f != s && h[f] && (h[f].IY(d.eh), h[f].ZA(d.mp), g.push(h[f]));
  3182. 0 < g.length && (this.vt.PL(g), c = new C.El(g), c.ot = C.El.Py.vT, C.Ka.dispatchEvent(c))
  3183. },
  3184. SP: function(c) {
  3185. c = this.qea(c);
  3186. 0 < c.length && (this.vt.PL(c), c = new C.El(c), c.ot = C.El.Py.ZS, C.Ka.dispatchEvent(c))
  3187. },
  3188. Mea: function(c) {
  3189. c = this.qea(c);
  3190. 0 < c.length && (this.vt.PL(c), c = new C.El(c), c.ot = C.El.Py.BS, C.Ka.dispatchEvent(c))
  3191. },
  3192. qea: function(c) {
  3193. for (var d, f, g, h = [], k = this.Kf, n = this.mZ, p = 0, r = c.length; p < r; p++) d = c[p],
  3194. g = d.ni,
  3195. f = n[g],
  3196. f != s && k[f] && (k[f].IY(d.eh), k[f].ZA(d.mp), h.push(k[f]), this.Fua(f), delete n[g]);
  3197. return h
  3198. },
  3199. Wn: function(c) {
  3200. var d = document.documentElement,
  3201. f = window,
  3202. g = s,
  3203. g = "function" === typeof c.getBoundingClientRect ? c.getBoundingClientRect() : c instanceof HTMLCanvasElement ? {
  3204. left: 0,
  3205. top: 0,
  3206. width: c.width,
  3207. height: c.height
  3208. }: {
  3209. left: 0,
  3210. top: 0,
  3211. width: parseInt(c.style.width),
  3212. height: parseInt(c.style.height)
  3213. };
  3214. return {
  3215. left: g.left + f.pageXOffset - d.clientLeft,
  3216. top: g.top + f.pageYOffset - d.clientTop,
  3217. width: g.width,
  3218. height: g.height
  3219. }
  3220. },
  3221. yBa: function(c) {
  3222. for (var d = s,
  3223. f = this.Raa,
  3224. g = c.ni,
  3225. h = f.length - 1; 0 <= h; h--) if (f[h].ni == g) {
  3226. d = f[h];
  3227. break
  3228. }
  3229. d || (d = c);
  3230. return d
  3231. },
  3232. YHa: function(c) {
  3233. for (var d = t,
  3234. f = this.Raa,
  3235. g = c.ni,
  3236. h = f.length - 1; 0 <= h; h--) if (f[h].ni == g) {
  3237. f[h] = c;
  3238. d = q;
  3239. break
  3240. }
  3241. d || (50 >= f.length ? f.push(c) : (f[this.YX] = c, this.YX = (this.YX + 1) % 50))
  3242. },
  3243. ZH: function(c, d, f) {
  3244. var g = this.Qaa;
  3245. c = this.vt.C_(c, d, f);
  3246. d = new C.zU(c.x, c.y);
  3247. d.ZA(g.x, g.y);
  3248. g.x = c.x;
  3249. g.y = c.y;
  3250. return d
  3251. },
  3252. bC: function(c, d, f) {
  3253. var g = this.pua;
  3254. this.vt.yra(c, d);
  3255. d = new C.$e(f);
  3256. d.EHa(c.x, c.y);
  3257. d.eva(g.x, g.y);
  3258. g.x = c.x;
  3259. g.y = c.y;
  3260. return d
  3261. },
  3262. dC: function(c, d) {
  3263. if (c.pageX != s) return {
  3264. x: c.pageX,
  3265. y: c.pageY
  3266. };
  3267. d.left -= document.body.scrollLeft;
  3268. d.top -= document.body.scrollTop;
  3269. return {
  3270. x: c.clientX,
  3271. y: c.clientY
  3272. }
  3273. },
  3274. PP: function(c, d) {
  3275. for (var f = [], g = this.vt, h, k, n = this.Qaa, p = c.changedTouches.length, r = 0; r < p; r++) if (h = c.changedTouches[r]) {
  3276. var v;
  3277. v = C.Sc.xD === C.Sc.tu ? g.C_(h.pageX, h.pageY, d) : g.C_(h.clientX, h.clientY, d);
  3278. h.identifier != s ? (h = new C.zU(v.x, v.y, h.identifier), k = this.yBa(h).mh(), h.ZA(k.x, k.y), this.YHa(h)) : (h = new C.zU(v.x, v.y), h.ZA(n.x, n.y));
  3279. n.x = v.x;
  3280. n.y = v.y;
  3281. f.push(h)
  3282. }
  3283. return f
  3284. },
  3285. jGa: function(c) {
  3286. if (!this.laa) {
  3287. var d = this.vt = C.view,
  3288. f = this,
  3289. g = "touches" in C.Sc.uH;
  3290. "mouse" in C.Sc.uH && (C.qb(window, "mousedown",
  3291. function() {
  3292. f.BA = q
  3293. },
  3294. t), C.qb(window, "mouseup",
  3295. function(d) {
  3296. var h = f.BA;
  3297. f.BA = t;
  3298. if (h) {
  3299. var h = f.Wn(c),
  3300. k = f.dC(d, h);
  3301. C.Ju(new C.az(h.left, h.top, h.width, h.height), k) || (g || f.SP([f.ZH(k.x, k.y, h)]), h = f.bC(k, h, C.$e.Nl), h.jy(d.button), C.Ka.dispatchEvent(h))
  3302. }
  3303. },
  3304. t), C.qb(c, "mousedown",
  3305. function(d) {
  3306. f.BA = q;
  3307. var h = f.Wn(c),
  3308. k = f.dC(d, h);
  3309. g || f.O0([f.ZH(k.x, k.y, h)]);
  3310. h = f.bC(k, h, C.$e.Zm);
  3311. h.jy(d.button);
  3312. C.Ka.dispatchEvent(h);
  3313. d.stopPropagation();
  3314. d.preventDefault();
  3315. c.focus()
  3316. },
  3317. t), C.qb(c, "mouseup",
  3318. function(d) {
  3319. f.BA = t;
  3320. var h = f.Wn(c),
  3321. k = f.dC(d, h);
  3322. g || f.SP([f.ZH(k.x, k.y, h)]);
  3323. h = f.bC(k, h, C.$e.Nl);
  3324. h.jy(d.button);
  3325. C.Ka.dispatchEvent(h);
  3326. d.stopPropagation();
  3327. d.preventDefault()
  3328. },
  3329. t), C.qb(c, "mousemove",
  3330. function(d) {
  3331. var h = f.Wn(c),
  3332. k = f.dC(d, h);
  3333. g || f.P0([f.ZH(k.x, k.y, h)]);
  3334. h = f.bC(k, h, C.$e.C6);
  3335. f.BA ? h.jy(d.button) : h.jy(s);
  3336. C.Ka.dispatchEvent(h);
  3337. d.stopPropagation();
  3338. d.preventDefault()
  3339. },
  3340. t), C.qb(c, "mousewheel",
  3341. function(d) {
  3342. var g = f.Wn(c),
  3343. h = f.dC(d, g),
  3344. g = f.bC(h, g, C.$e.ZT);
  3345. g.jy(d.button);
  3346. g.oia(0, d.wheelDelta);
  3347. C.Ka.dispatchEvent(g);
  3348. d.stopPropagation();
  3349. d.preventDefault()
  3350. },
  3351. t), C.qb(c, "DOMMouseScroll",
  3352. function(d) {
  3353. var g = f.Wn(c),
  3354. h = f.dC(d, g),
  3355. g = f.bC(h, g, C.$e.ZT);
  3356. g.jy(d.button);
  3357. g.oia(0, -120 * d.detail);
  3358. C.Ka.dispatchEvent(g);
  3359. d.stopPropagation();
  3360. d.preventDefault()
  3361. },
  3362. t));
  3363. if (window.navigator.msPointerEnabled) {
  3364. var h = {
  3365. MSPointerDown: f.O0,
  3366. MSPointerMove: f.P0,
  3367. MSPointerUp: f.SP,
  3368. MSPointerCancel: f.Mea
  3369. },
  3370. k;
  3371. for (k in h)(function(d, g) {
  3372. C.qb(c, d,
  3373. function(d) {
  3374. var h = f.Wn(c);
  3375. h.left -= document.documentElement.scrollLeft;
  3376. h.top -= document.documentElement.scrollTop;
  3377. g.call(f, [f.ZH(d.clientX, d.clientY, h)]);
  3378. d.stopPropagation()
  3379. },
  3380. t)
  3381. })(k, h[k])
  3382. }
  3383. g && (C.qb(c, "touchstart",
  3384. function(d) {
  3385. if (d.changedTouches) {
  3386. var g = f.Wn(c);
  3387. g.left -= document.body.scrollLeft;
  3388. g.top -= document.body.scrollTop;
  3389. f.O0(f.PP(d, g));
  3390. d.stopPropagation();
  3391. d.preventDefault();
  3392. c.focus()
  3393. }
  3394. },
  3395. t), C.qb(c, "touchmove",
  3396. function(d) {
  3397. if (d.changedTouches) {
  3398. var g = f.Wn(c);
  3399. g.left -= document.body.scrollLeft;
  3400. g.top -= document.body.scrollTop;
  3401. f.P0(f.PP(d, g));
  3402. d.stopPropagation();
  3403. d.preventDefault()
  3404. }
  3405. },
  3406. t), C.qb(c, "touchend",
  3407. function(d) {
  3408. if (d.changedTouches) {
  3409. var g = f.Wn(c);
  3410. g.left -= document.body.scrollLeft;
  3411. g.top -= document.body.scrollTop;
  3412. f.SP(f.PP(d, g));
  3413. d.stopPropagation();
  3414. d.preventDefault()
  3415. }
  3416. },
  3417. t), C.qb(c, "touchcancel",
  3418. function(g) {
  3419. if (g.changedTouches) {
  3420. var h = f.Wn(c);
  3421. h.left -= document.body.scrollLeft;
  3422. h.top -= document.body.scrollTop;
  3423. d.Mea(f.PP(g, h));
  3424. g.stopPropagation();
  3425. g.preventDefault()
  3426. }
  3427. },
  3428. t));
  3429. this.cba();
  3430. this.bba();
  3431. this.laa = q
  3432. }
  3433. },
  3434. cba: u(),
  3435. bba: u(),
  3436. update: function(c) {
  3437. this.Fv > this.hL && (this.Fv -= this.hL, C.Ka.dispatchEvent(new C.ema(this.$U)));
  3438. this.Fv += c
  3439. }
  3440. };
  3441. var H = C.dfa;
  3442. H.k3a = function(c) {
  3443. this.gL !== c && (this.gL = c, c = C.Q.Em(), this.gL ? (this.Fv = 0, c.lR(this)) : (this.Fv = 0, c.GJ(this)))
  3444. };
  3445. H.l3a = function(c) {
  3446. this.hL !== c && (this.hL = c)
  3447. };
  3448. H.cba = function() {
  3449. C.qb(C.Pb, "keydown",
  3450. function(c) {
  3451. C.Ka.dispatchEvent(new C.N5(c.keyCode, q));
  3452. c.stopPropagation();
  3453. c.preventDefault()
  3454. },
  3455. t);
  3456. C.qb(C.Pb, "keyup",
  3457. function(c) {
  3458. C.Ka.dispatchEvent(new C.N5(c.keyCode, t));
  3459. c.stopPropagation();
  3460. c.preventDefault()
  3461. },
  3462. t)
  3463. };
  3464. H.bba = function() {
  3465. var c = window;
  3466. this.$U = new C.Eja;
  3467. this.fL = c.DeviceMotionEvent || c.DeviceOrientationEvent;
  3468. C.Sc.tu == C.Sc.w4 && (this.fL = window.DeviceOrientationEvent);
  3469. var d = this.fL == c.DeviceMotionEvent ? "devicemotion": "deviceorientation",
  3470. f = navigator.userAgent;
  3471. if (/Android/.test(f) || /Adr/.test(f) && C.Sc.tu == C.x4) this.hPa = -1;
  3472. C.qb(c, d, this.Cya.bind(this), t)
  3473. };
  3474. H.Cya = function(c) {
  3475. var d = window;
  3476. if (this.gL) {
  3477. var f = this.$U;
  3478. if (this.fL == window.DeviceMotionEvent) {
  3479. var g = c.accelerationIncludingGravity;
  3480. f.x = 0.1 * this.V8 * g.x;
  3481. f.y = 0.1 * this.V8 * g.y;
  3482. f.f = 0.1 * g.f
  3483. } else f.x = 0.981 * (c.gamma / 90),
  3484. f.y = 0.981 * -(c.beta / 90),
  3485. f.f = 0.981 * (c.alpha / 90);
  3486. f.timestamp = c.timeStamp || Date.now();
  3487. c = f.x;
  3488. d.orientation === C.cqa ? (f.x = -f.y, f.y = c) : d.orientation === C.bqa ? (f.x = f.y, f.y = -c) : d.orientation === C.dqa && (f.x = -f.x, f.y = -f.y)
  3489. }
  3490. };
  3491. delete H;
  3492. C.qKa = function(c, d, f, g, h, k) {
  3493. this.a = c;
  3494. this.b = d;
  3495. this.H = f;
  3496. this.P = g;
  3497. this.na = h;
  3498. this.oa = k
  3499. };
  3500. C.tKa = function() {
  3501. return {
  3502. a: 1,
  3503. b: 0,
  3504. H: 0,
  3505. P: 1,
  3506. na: 0,
  3507. oa: 0
  3508. }
  3509. };
  3510. C.wv = function(c, d) {
  3511. return {
  3512. x: d.a * c.x + d.H * c.y + d.na,
  3513. y: d.b * c.x + d.P * c.y + d.oa
  3514. }
  3515. };
  3516. C.Qs = function(c, d, f) {
  3517. return {
  3518. x: f.a * c + f.H * d + f.na,
  3519. y: f.b * c + f.P * d + f.oa
  3520. }
  3521. };
  3522. C.fNa = function(c, d) {
  3523. return {
  3524. width: d.a * c.width + d.H * c.height,
  3525. height: d.b * c.width + d.P * c.height
  3526. }
  3527. };
  3528. C.uKa = function() {
  3529. return {
  3530. a: 1,
  3531. b: 0,
  3532. H: 0,
  3533. P: 1,
  3534. na: 0,
  3535. oa: 0
  3536. }
  3537. };
  3538. C.sKa = function() {
  3539. return {
  3540. a: 1,
  3541. b: 0,
  3542. H: 0,
  3543. P: 1,
  3544. na: 0,
  3545. oa: 0
  3546. }
  3547. };
  3548. C.Gi = function(c, d) {
  3549. var f = C.jo(c),
  3550. g = C.io(c),
  3551. h = C.Xp(c),
  3552. k = C.Yp(c),
  3553. n = C.Qs(g, f, d),
  3554. f = C.Qs(h, f, d),
  3555. g = C.Qs(g, k, d),
  3556. p = C.Qs(h, k, d),
  3557. h = Math.min(n.x, f.x, g.x, p.x),
  3558. k = Math.max(n.x, f.x, g.x, p.x),
  3559. r = Math.min(n.y, f.y, g.y, p.y),
  3560. n = Math.max(n.y, f.y, g.y, p.y);
  3561. return C.rect(h, r, k - h, n - r)
  3562. };
  3563. C.Io = function(c, d) {
  3564. var f = C.jo(c),
  3565. g = C.io(c),
  3566. h = C.Xp(c),
  3567. k = C.Yp(c),
  3568. n = C.Qs(g, f, d),
  3569. f = C.Qs(h, f, d),
  3570. g = C.Qs(g, k, d),
  3571. p = C.Qs(h, k, d),
  3572. h = Math.min(n.x, f.x, g.x, p.x),
  3573. k = Math.max(n.x, f.x, g.x, p.x),
  3574. r = Math.min(n.y, f.y, g.y, p.y),
  3575. n = Math.max(n.y, f.y, g.y, p.y);
  3576. c.x = h;
  3577. c.y = r;
  3578. c.width = k - h;
  3579. c.height = n - r;
  3580. return c
  3581. };
  3582. C.OJ = function(c, d, f) {
  3583. return {
  3584. a: c.a,
  3585. b: c.b,
  3586. H: c.H,
  3587. P: c.P,
  3588. na: c.na + c.a * d + c.H * f,
  3589. oa: c.oa + c.b * d + c.P * f
  3590. }
  3591. };
  3592. C.vKa = function(c, d, f) {
  3593. return {
  3594. a: c.a * d,
  3595. b: c.b * d,
  3596. H: c.H * f,
  3597. P: c.P * f,
  3598. na: c.na,
  3599. oa: c.oa
  3600. }
  3601. };
  3602. C.Pja = function(c) {
  3603. var d = Math.sin(1.57079633),
  3604. f = Math.cos(1.57079633);
  3605. return {
  3606. a: c.a * f + c.H * d,
  3607. b: c.b * f + c.P * d,
  3608. H: c.H * f - c.a * d,
  3609. P: c.P * f - c.b * d,
  3610. na: c.na,
  3611. oa: c.oa
  3612. }
  3613. };
  3614. C.Qg = function(c, d) {
  3615. return {
  3616. a: c.a * d.a + c.b * d.H,
  3617. b: c.a * d.b + c.b * d.P,
  3618. H: c.H * d.a + c.P * d.H,
  3619. P: c.H * d.b + c.P * d.P,
  3620. na: c.na * d.a + c.oa * d.H + d.na,
  3621. oa: c.na * d.b + c.oa * d.P + d.oa
  3622. }
  3623. };
  3624. C.rKa = function(c, d) {
  3625. return c.a === d.a && c.b === d.b && c.H === d.H && c.P === d.P && c.na === d.na && c.oa === d.oa
  3626. };
  3627. C.iS = function(c) {
  3628. var d = 1 / (c.a * c.P - c.b * c.H);
  3629. return {
  3630. a: d * c.P,
  3631. b: -d * c.b,
  3632. H: -d * c.H,
  3633. P: d * c.a,
  3634. na: d * (c.H * c.oa - c.P * c.na),
  3635. oa: d * (c.b * c.na - c.a * c.oa)
  3636. }
  3637. };
  3638. C.Y6 = parseFloat("1.192092896e-07F");
  3639. C.T1 = function(c) {
  3640. return C.d( - c.x, -c.y)
  3641. };
  3642. C.ho = function(c, d) {
  3643. return C.d(c.x + d.x, c.y + d.y)
  3644. };
  3645. C.cc = function(c, d) {
  3646. return C.d(c.x - d.x, c.y - d.y)
  3647. };
  3648. C.Wp = function(c, d) {
  3649. return C.d(c.x * d, c.y * d)
  3650. };
  3651. C.S1 = function(c, d) {
  3652. return C.Wp(C.ho(c, d), 0.5)
  3653. };
  3654. C.IC = function(c, d) {
  3655. return c.x * d.x + c.y * d.y
  3656. };
  3657. C.REa = function(c, d) {
  3658. return c.x * d.y - c.y * d.x
  3659. };
  3660. C.SQ = function(c) {
  3661. return C.d( - c.y, c.x)
  3662. };
  3663. C.Q0a = function(c) {
  3664. return C.d(c.y, -c.x)
  3665. };
  3666. C.P0a = function(c, d) {
  3667. return C.Wp(d, C.IC(c, d) / C.IC(d, d))
  3668. };
  3669. C.R0a = function(c, d) {
  3670. return C.d(c.x * d.x - c.y * d.y, c.x * d.y + c.y * d.x)
  3671. };
  3672. C.U0a = function(c, d) {
  3673. return C.d(c.x * d.x + c.y * d.y, c.y * d.x - c.x * d.y)
  3674. };
  3675. C.nga = function(c) {
  3676. return C.IC(c, c)
  3677. };
  3678. C.lga = function(c, d) {
  3679. return C.nga(C.cc(c, d))
  3680. };
  3681. C.Ye = function(c) {
  3682. return Math.sqrt(C.nga(c))
  3683. };
  3684. C.kga = function(c, d) {
  3685. return C.Ye(C.cc(c, d))
  3686. };
  3687. C.vf = function(c) {
  3688. return C.Wp(c, 1 / C.Ye(c))
  3689. };
  3690. C.M0a = function(c) {
  3691. return C.d(Math.cos(c), Math.sin(c))
  3692. };
  3693. C.UEa = function(c) {
  3694. return Math.atan2(c.y, c.x)
  3695. };
  3696. C.Nf = function(c, d, f) {
  3697. if (d > f) {
  3698. var g = d;
  3699. d = f;
  3700. f = g
  3701. }
  3702. return c < d ? d: c < f ? c: f
  3703. };
  3704. C.jga = function(c) {
  3705. var d = C.d(0, 0),
  3706. f = C.d(1, 1);
  3707. return C.d(C.Nf(c.x, d.x, f.x), C.Nf(c.y, d.y, f.y))
  3708. };
  3709. C.mga = function() {
  3710. var c = C.Q.aa;
  3711. return C.d(c.width, c.height)
  3712. };
  3713. C.L0a = function(c, d) {
  3714. return C.d(d(c.x), d(c.y))
  3715. };
  3716. C.oga = function(c, d, f) {
  3717. return C.ho(C.Wp(c, 1 - f), C.Wp(d, f))
  3718. };
  3719. C.N0a = function(c, d, f) {
  3720. return c.x - f <= d.x && d.x <= c.x + f && c.y - f <= d.y && d.y <= c.y + f ? q: t
  3721. };
  3722. C.K0a = function(c, d) {
  3723. return C.d(c.x * d.x, c.y * d.y)
  3724. };
  3725. C.J0a = function(c, d) {
  3726. var f = C.vf(c),
  3727. g = C.vf(d),
  3728. f = Math.atan2(f.x * g.y - f.y * g.x, C.IC(f, g));
  3729. return Math.abs(f) < C.Y6 ? 0 : f
  3730. };
  3731. C.I0a = function(c, d) {
  3732. var f = Math.acos(C.IC(C.vf(c), C.vf(d)));
  3733. return Math.abs(f) < C.Y6 ? 0 : f
  3734. };
  3735. C.TEa = function(c, d, f) {
  3736. c = C.cc(c, d);
  3737. var g = Math.cos(f);
  3738. f = Math.sin(f);
  3739. var h = c.x;
  3740. c.x = h * g - c.y * f + d.x;
  3741. c.y = h * f + c.y * g + d.y;
  3742. return c
  3743. };
  3744. C.R1 = function(c, d, f, g, h) {
  3745. if (c.x == d.x && c.y == d.y || f.x == g.x && f.y == g.y) return t;
  3746. var k = d.x - c.x;
  3747. d = d.y - c.y;
  3748. var n = g.x - f.x;
  3749. g = g.y - f.y;
  3750. var p = c.x - f.x;
  3751. c = c.y - f.y;
  3752. f = g * k - n * d;
  3753. h.x = n * c - g * p;
  3754. h.y = k * c - d * p;
  3755. if (0 == f) return 0 == h.x || 0 == h.y ? q: t;
  3756. h.x /= f;
  3757. h.y /= f;
  3758. return q
  3759. };
  3760. C.T0a = function(c, d, f, g) {
  3761. var h = C.d(0, 0);
  3762. return C.R1(c, d, f, g, h) && 0 <= h.x && 1 >= h.x && 0 <= h.y && 1 >= h.y ? q: t
  3763. };
  3764. C.O0a = function(c, d, f, g) {
  3765. var h = C.d(0, 0);
  3766. return C.R1(c, d, f, g, h) ? (f = C.d(0, 0), f.x = c.x + h.x * (d.x - c.x), f.y = c.y + h.x * (d.y - c.y), f) : C.d(0, 0)
  3767. };
  3768. C.S0a = function(c, d) {
  3769. return c != s && d != s ? c.x == d.x && c.y == d.y: t
  3770. };
  3771. C.TQ = function(c) {
  3772. c.x = 0;
  3773. c.y = 0
  3774. };
  3775. C.gs = function(c, d) {
  3776. c.x = d.x;
  3777. c.y = d.y
  3778. };
  3779. C.JC = function(c, d) {
  3780. c.x *= d;
  3781. c.y *= d
  3782. };
  3783. C.pga = function(c, d) {
  3784. c.x -= d.x;
  3785. c.y -= d.y
  3786. };
  3787. C.RQ = function(c, d) {
  3788. c.x += d.x;
  3789. c.y += d.y
  3790. };
  3791. C.SEa = function(c) {
  3792. C.JC(c, 1 / Math.sqrt(c.x * c.x + c.y * c.y))
  3793. };
  3794. C.d4 = function(c, d, f, g, h) {
  3795. h += g;
  3796. if (! (1 >= h)) {
  3797. d *= 0.5;
  3798. for (var k, n = h - 1,
  3799. p = g; p < h; p++) {
  3800. k = 2 * p;
  3801. var r = C.d(c[2 * p], c[2 * p + 1]),
  3802. v;
  3803. if (0 === p) v = C.SQ(C.vf(C.cc(r, C.d(c[2 * (p + 1)], c[2 * (p + 1) + 1]))));
  3804. else if (p === n) v = C.SQ(C.vf(C.cc(C.d(c[2 * (p - 1)], c[2 * (p - 1) + 1]), r)));
  3805. else {
  3806. v = C.d(c[2 * (p - 1)], c[2 * (p - 1) + 1]);
  3807. var y = C.d(c[2 * (p + 1)], c[2 * (p + 1) + 1]),
  3808. z = C.vf(C.cc(y, r)),
  3809. D = C.vf(C.cc(v, r)),
  3810. E = Math.acos(C.IC(z, D));
  3811. v = E < C.ng(70) ? C.SQ(C.vf(C.S1(z, D))) : E < C.ng(170) ? C.vf(C.S1(z, D)) : C.SQ(C.vf(C.cc(y, v)))
  3812. }
  3813. v = C.Wp(v, d);
  3814. f[2 * k] = r.x + v.x;
  3815. f[2 * k + 1] = r.y + v.y;
  3816. f[2 * (k + 1)] = r.x - v.x;
  3817. f[2 * (k + 1) + 1] = r.y - v.y
  3818. }
  3819. for (p = 0 == g ? 0 : g - 1; p < n; p++) {
  3820. k = 2 * p;
  3821. c = k + 2;
  3822. d = C.fS(f[2 * k], f[2 * k + 1]);
  3823. h = C.fS(f[2 * (k + 1)], f[2 * (k + 1) + 1]);
  3824. k = C.fS(f[2 * c], f[2 * c]);
  3825. g = C.fS(f[2 * (c + 1)], f[2 * (c + 1) + 1]);
  3826. d = !C.QJa(d.x, d.y, g.x, g.y, h.x, h.y, k.x, k.y);
  3827. if (!d.sI && (0 > d.value || 1 < d.value)) d.sI = q;
  3828. d.sI && (f[2 * c] = g.x, f[2 * c + 1] = g.y, f[2 * (c + 1)] = k.x, f[2 * (c + 1) + 1] = k.y)
  3829. }
  3830. }
  3831. };
  3832. C.QJa = function(c, d, f, g, h, k, n, p) {
  3833. if (c == f && d == g || h == n && k == p) return {
  3834. sI: t,
  3835. value: 0
  3836. };
  3837. f -= c;
  3838. g -= d;
  3839. h -= c;
  3840. k -= d;
  3841. n -= c;
  3842. p -= d;
  3843. c = Math.sqrt(f * f + g * g);
  3844. f /= c;
  3845. g /= c;
  3846. d = h * f + k * g;
  3847. k = k * f - h * g;
  3848. h = d;
  3849. d = n * f + p * g;
  3850. p = p * f - n * g;
  3851. n = d;
  3852. return k == p ? {
  3853. sI: t,
  3854. value: 0
  3855. }: {
  3856. sI: q,
  3857. value: (n + (h - n) * p / (p - k)) / c
  3858. }
  3859. };
  3860. C.P6a = function(c) {
  3861. for (var d = 0,
  3862. f = c.length; d < f; d++) {
  3863. var g = c[(d + 1) % f],
  3864. h = c[(d + 2) % f];
  3865. if (0 < C.REa(C.cc(g, c[d]), C.cc(h, g))) return t
  3866. }
  3867. return q
  3868. };
  3869. C.cLa = function(c, d) {
  3870. d[2] = d[3] = d[6] = d[7] = d[8] = d[9] = d[11] = d[14] = 0;
  3871. d[10] = d[15] = 1;
  3872. d[0] = c.a;
  3873. d[4] = c.H;
  3874. d[12] = c.na;
  3875. d[1] = c.b;
  3876. d[5] = c.P;
  3877. d[13] = c.oa
  3878. };
  3879. C.RLa = function(c, d) {
  3880. d.a = c[0];
  3881. d.H = c[4];
  3882. d.na = c[12];
  3883. d.b = c[1];
  3884. d.P = c[5];
  3885. d.oa = c[13]
  3886. };
  3887. C.zU = C.O.extend({
  3888. eh: s,
  3889. mp: s,
  3890. ni: 0,
  3891. Nba: t,
  3892. NG: s,
  3893. ctor: function(c, d, f) {
  3894. this.eh = C.d(c || 0, d || 0);
  3895. this.ni = f || 0
  3896. },
  3897. mh: function() {
  3898. return {
  3899. x: this.eh.x,
  3900. y: this.eh.y
  3901. }
  3902. },
  3903. XAa: function() {
  3904. return this.eh.x
  3905. },
  3906. YAa: function() {
  3907. return this.eh.y
  3908. },
  3909. JP: function() {
  3910. return {
  3911. x: this.mp.x,
  3912. y: this.mp.y
  3913. }
  3914. },
  3915. EWa: function() {
  3916. return {
  3917. x: this.NG.x,
  3918. y: this.NG.y
  3919. }
  3920. },
  3921. p0: function() {
  3922. return C.cc(this.eh, this.mp)
  3923. },
  3924. WAa: function() {
  3925. return {
  3926. x: this.eh.x,
  3927. y: this.eh.y
  3928. }
  3929. },
  3930. dWa: function() {
  3931. return {
  3932. x: this.mp.x,
  3933. y: this.mp.y
  3934. }
  3935. },
  3936. FWa: function() {
  3937. return {
  3938. x: this.NG.x,
  3939. y: this.NG.y
  3940. }
  3941. },
  3942. OUa: A("ni"),
  3943. IAa: A("ni"),
  3944. v5a: function(c, d, f) {
  3945. this.mp = this.eh;
  3946. this.eh = C.d(d || 0, f || 0);
  3947. this.ni = c;
  3948. this.Nba || (this.NG = C.d(this.eh), this.Nba = q)
  3949. },
  3950. IY: function(c, d) {
  3951. d === m ? (this.eh.x = c.x, this.eh.y = c.y) : (this.eh.x = c, this.eh.y = d)
  3952. },
  3953. ZA: function(c, d) {
  3954. this.mp = d === m ? C.d(c.x, c.y) : C.d(c || 0, d || 0)
  3955. }
  3956. });
  3957. C.oe = C.O.extend({
  3958. xc: 0,
  3959. hw: t,
  3960. Cf: s,
  3961. AY: x("Cf"),
  3962. ctor: x("xc"),
  3963. $H: A("xc"),
  3964. stopPropagation: function() {
  3965. this.hw = q
  3966. },
  3967. LYa: A("hw"),
  3968. UTa: A("Cf")
  3969. });
  3970. C.oe.SK = 0;
  3971. C.oe.Vy = 1;
  3972. C.oe.Fy = 2;
  3973. C.oe.tv = 3;
  3974. C.oe.hq = 4;
  3975. C.jq = C.oe.extend({
  3976. tW: s,
  3977. gca: s,
  3978. ctor: function(c) {
  3979. C.oe.prototype.ctor.call(this, C.oe.hq);
  3980. this.tW = c
  3981. },
  3982. setUserData: x("gca"),
  3983. getUserData: A("gca"),
  3984. zUa: A("tW")
  3985. });
  3986. C.$e = C.oe.extend({
  3987. t$: 0,
  3988. AV: 0,
  3989. Pn: 0,
  3990. cj: 0,
  3991. cY: 0,
  3992. dY: 0,
  3993. rba: 0,
  3994. sba: 0,
  3995. ctor: function(c) {
  3996. C.oe.prototype.ctor.call(this, C.oe.tv);
  3997. this.t$ = c
  3998. },
  3999. oia: function(c, d) {
  4000. this.rba = c;
  4001. this.sba = d
  4002. },
  4003. uWa: A("rba"),
  4004. vWa: A("sba"),
  4005. EHa: function(c, d) {
  4006. this.Pn = c;
  4007. this.cj = d
  4008. },
  4009. mh: function() {
  4010. return {
  4011. x: this.Pn,
  4012. y: this.cj
  4013. }
  4014. },
  4015. WAa: function() {
  4016. return {
  4017. x: this.Pn,
  4018. y: C.view.Oz.height - this.cj
  4019. }
  4020. },
  4021. eva: function(c, d) {
  4022. this.cY = c;
  4023. this.dY = d
  4024. },
  4025. p0: function() {
  4026. return {
  4027. x: this.Pn - this.cY,
  4028. y: this.cj - this.dY
  4029. }
  4030. },
  4031. cUa: function() {
  4032. return this.Pn - this.cY
  4033. },
  4034. dUa: function() {
  4035. return this.cj - this.dY
  4036. },
  4037. jy: x("AV"),
  4038. kTa: A("AV"),
  4039. XAa: A("Pn"),
  4040. YAa: A("cj")
  4041. });
  4042. C.$e.NONE = 0;
  4043. C.$e.Zm = 1;
  4044. C.$e.Nl = 2;
  4045. C.$e.C6 = 3;
  4046. C.$e.ZT = 4;
  4047. C.$e.eka = 0;
  4048. C.$e.VKa = 2;
  4049. C.$e.UKa = 1;
  4050. C.$e.PKa = 3;
  4051. C.$e.QKa = 4;
  4052. C.$e.RKa = 5;
  4053. C.$e.SKa = 6;
  4054. C.$e.TKa = 7;
  4055. C.El = C.oe.extend({
  4056. ot: 0,
  4057. Kf: s,
  4058. ctor: function(c) {
  4059. C.oe.prototype.ctor.call(this, C.oe.SK);
  4060. this.Kf = c || []
  4061. },
  4062. yUa: A("ot"),
  4063. lXa: A("Kf"),
  4064. uPa: x("ot"),
  4065. yPa: x("Kf")
  4066. });
  4067. C.El.tMa = 5;
  4068. C.El.Py = {
  4069. mS: 0,
  4070. vT: 1,
  4071. ZS: 2,
  4072. BS: 3
  4073. };
  4074. C.Oa = C.O.extend({
  4075. GX: s,
  4076. xc: 0,
  4077. cp: s,
  4078. Wi: t,
  4079. rt: 0,
  4080. gf: s,
  4081. xe: t,
  4082. qA: q,
  4083. ctor: function(c, d, f) {
  4084. this.GX = f;
  4085. this.xc = c || 0;
  4086. this.cp = d || ""
  4087. },
  4088. HY: x("xe"),
  4089. WOa: A("xe"),
  4090. BG: x("Wi"),
  4091. rta: A("Wi"),
  4092. OOa: A("xc"),
  4093. JOa: A("cp"),
  4094. BY: x("rt"),
  4095. HOa: A("rt"),
  4096. CG: x("gf"),
  4097. MOa: A("gf"),
  4098. uu: function() {
  4099. return this.GX != s
  4100. },
  4101. s: B(s),
  4102. Ib: x("qA"),
  4103. isEnabled: A("qA"),
  4104. fR: u(),
  4105. rh: u()
  4106. });
  4107. C.Oa.mqa = 0;
  4108. C.Oa.Gs = 1;
  4109. C.Oa.TK = 2;
  4110. C.Oa.Vy = 3;
  4111. C.Oa.tv = 4;
  4112. C.Oa.Fy = 5;
  4113. C.Oa.hq = 6;
  4114. C.PE = C.Oa.extend({
  4115. jG: s,
  4116. ctor: function(c, d) {
  4117. this.jG = d;
  4118. var f = this;
  4119. C.Oa.prototype.ctor.call(this, C.Oa.hq, c,
  4120. function(c) {
  4121. f.jG != s && f.jG(c)
  4122. })
  4123. },
  4124. uu: function() {
  4125. return C.Oa.prototype.uu.call(this) && this.jG != s
  4126. },
  4127. s: function() {
  4128. return new C.PE(this.cp, this.jG)
  4129. }
  4130. });
  4131. C.PE.create = function(c, d) {
  4132. return new C.PE(c, d)
  4133. };
  4134. C.Ps = C.Oa.extend({
  4135. MQ: s,
  4136. JI: s,
  4137. NQ: s,
  4138. OQ: s,
  4139. ctor: function() {
  4140. var c = this;
  4141. C.Oa.prototype.ctor.call(this, C.Oa.tv, C.Ps.He,
  4142. function(d) {
  4143. var f = C.$e;
  4144. switch (d.t$) {
  4145. case f.Zm:
  4146. c.MQ && c.MQ(d);
  4147. break;
  4148. case f.Nl:
  4149. c.JI && c.JI(d);
  4150. break;
  4151. case f.C6:
  4152. c.NQ && c.NQ(d);
  4153. break;
  4154. case f.ZT:
  4155. c.OQ && c.OQ(d)
  4156. }
  4157. })
  4158. },
  4159. s: function() {
  4160. var c = new C.Ps;
  4161. c.MQ = this.MQ;
  4162. c.JI = this.JI;
  4163. c.NQ = this.NQ;
  4164. c.OQ = this.OQ;
  4165. return c
  4166. },
  4167. uu: B(q)
  4168. });
  4169. C.Ps.He = "__cc_mouse";
  4170. C.Ps.create = function() {
  4171. return new C.Ps
  4172. };
  4173. C.Ho = C.Oa.extend({
  4174. Gz: s,
  4175. yy: t,
  4176. nc: s,
  4177. yd: s,
  4178. cd: s,
  4179. Xe: s,
  4180. ctor: function() {
  4181. C.Oa.prototype.ctor.call(this, C.Oa.Gs, C.Ho.He, s);
  4182. this.Gz = []
  4183. },
  4184. j5a: x("yy"),
  4185. s: function() {
  4186. var c = new C.Ho;
  4187. c.nc = this.nc;
  4188. c.yd = this.yd;
  4189. c.cd = this.cd;
  4190. c.Xe = this.Xe;
  4191. c.yy = this.yy;
  4192. return c
  4193. },
  4194. uu: function() {
  4195. return ! this.nc ? (C.log(C.n.wqa), t) : q
  4196. }
  4197. });
  4198. C.Ho.He = "__cc_touch_one_by_one";
  4199. C.Ho.create = function() {
  4200. return new C.Ho
  4201. };
  4202. C.Go = C.Oa.extend({
  4203. MI: s,
  4204. OI: s,
  4205. HC: s,
  4206. NI: s,
  4207. ctor: function() {
  4208. C.Oa.prototype.ctor.call(this, C.Oa.TK, C.Go.He, s)
  4209. },
  4210. s: function() {
  4211. var c = new C.Go;
  4212. c.MI = this.MI;
  4213. c.OI = this.OI;
  4214. c.HC = this.HC;
  4215. c.NI = this.NI;
  4216. return c
  4217. },
  4218. uu: function() {
  4219. return this.MI == s && this.OI == s && this.HC == s && this.NI == s ? (C.log(C.n.vqa), t) : q
  4220. }
  4221. });
  4222. C.Go.He = "__cc_touch_all_at_once";
  4223. C.Go.create = function() {
  4224. return new C.Go
  4225. };
  4226. C.Oa.create = function(c) {
  4227. C.assert(c && c.event, C.n.gma);
  4228. var d = c.event;
  4229. delete c.event;
  4230. var f = s;
  4231. d === C.Oa.Gs ? f = new C.Ho: d === C.Oa.TK ? f = new C.Go: d === C.Oa.tv ? f = new C.Ps: d === C.Oa.hq ? (f = new C.PE(c.Iza, c.n_), delete c.Iza, delete c.n_) : d === C.Oa.Vy ? f = new C.Os: d === C.Oa.Fy && (f = new C.Ns(c.n_), delete c.n_);
  4232. for (var g in c) f[g] = c[g];
  4233. return f
  4234. };
  4235. C.Tca = function(c) {
  4236. var d, f = c.length,
  4237. g = Array(f);
  4238. for (d = 0; d < f; d += 1) g[d] = c[d];
  4239. return g
  4240. };
  4241. C.xqa = C.O.extend({
  4242. Tk: s,
  4243. al: s,
  4244. Iea: 0,
  4245. ctor: function() {
  4246. this.Tk = [];
  4247. this.al = []
  4248. },
  4249. size: function() {
  4250. return this.Tk.length + this.al.length
  4251. },
  4252. empty: function() {
  4253. return 0 === this.Tk.length && 0 === this.al.length
  4254. },
  4255. push: function(c) {
  4256. 0 == c.rt ? this.al.push(c) : this.Tk.push(c)
  4257. },
  4258. Kxa: function() {
  4259. this.al.length = 0
  4260. },
  4261. Jxa: function() {
  4262. this.Tk.length = 0
  4263. },
  4264. clear: function() {
  4265. this.al.length = 0;
  4266. this.Tk.length = 0
  4267. },
  4268. EUa: A("Tk"),
  4269. tWa: A("al")
  4270. });
  4271. C.cL = function(c) {
  4272. var d = C.oe,
  4273. f = c.xc;
  4274. if (f === d.Fy) return C.Ns.He;
  4275. if (f === d.hq) return c.tW;
  4276. if (f === d.Vy) return C.Os.He;
  4277. if (f === d.tv) return C.Ps.He;
  4278. f === d.SK && C.log(C.n.cL);
  4279. return ""
  4280. };
  4281. C.Ka = {
  4282. VS: 0,
  4283. fK: 1,
  4284. GD: 2,
  4285. wLa: 3,
  4286. bm: {},
  4287. tG: {},
  4288. fp: {},
  4289. mN: {},
  4290. U$: {},
  4291. mB: [],
  4292. vF: [],
  4293. ew: 0,
  4294. qA: t,
  4295. Daa: 0,
  4296. pta: [C.qf.kK, C.qf.JD],
  4297. WN: function(c) {
  4298. this.fp[c.ub] != s && this.vF.push(c);
  4299. c = c.le();
  4300. for (var d = 0,
  4301. f = c.length; d < f; d++) this.WN(c[d])
  4302. },
  4303. hs: function(c, d) {
  4304. var f = this.fp[c.ub],
  4305. g,
  4306. h;
  4307. if (f) {
  4308. g = 0;
  4309. for (h = f.length; g < h; g++) f[g].HY(q)
  4310. }
  4311. if (d === q) {
  4312. f = c.le();
  4313. g = 0;
  4314. for (h = f.length; g < h; g++) this.hs(f[g], q)
  4315. }
  4316. },
  4317. Mm: function(c, d) {
  4318. var f = this.fp[c.ub],
  4319. g,
  4320. h;
  4321. if (f) {
  4322. g = 0;
  4323. for (h = f.length; g < h; g++) f[g].HY(t)
  4324. }
  4325. this.WN(c);
  4326. if (d === q) {
  4327. f = c.le();
  4328. g = 0;
  4329. for (h = f.length; g < h; g++) this.Mm(f[g], q)
  4330. }
  4331. },
  4332. Z8: function(c) {
  4333. 0 === this.ew ? this.C$(c) : this.mB.push(c)
  4334. },
  4335. C$: function(c) {
  4336. var d = c.cp,
  4337. f = this.bm[d];
  4338. f || (f = new C.xqa, this.bm[d] = f);
  4339. f.push(c);
  4340. 0 == c.rt ? (this.Vt(d, this.GD), d = c.gf, d == s && C.log(C.n.Bza), this.Sqa(d, c), d.$c && this.Mm(d)) : this.Vt(d, this.fK)
  4341. },
  4342. PW: function(c) {
  4343. return this.bm[c]
  4344. },
  4345. bwa: function() {
  4346. if (0 != this.vF.length) {
  4347. for (var c = this.vF,
  4348. d, f, g = this.fp,
  4349. h = 0,
  4350. k = c.length; h < k; h++) if (d = g[c[h].ub]) for (var n = 0,
  4351. p = d.length; n < p; n++)(f = d[n]) && this.Vt(f.cp, this.GD);
  4352. this.vF.length = 0
  4353. }
  4354. },
  4355. dba: function(c) {
  4356. if (c) for (var d, f = 0; f < c.length;) d = c[f],
  4357. d.BG(t),
  4358. d.gf != s && (this.M9(d.gf, d), d.CG(s)),
  4359. 0 === this.ew ? C.Id(c, d) : ++f
  4360. },
  4361. Jw: function(c) {
  4362. var d = this.bm[c];
  4363. if (d) {
  4364. var f = d.Tk;
  4365. this.dba(d.al);
  4366. this.dba(f);
  4367. delete this.tG[c];
  4368. this.ew || (d.clear(), delete this.bm[c])
  4369. }
  4370. for (var f = this.mB,
  4371. g, d = 0; d < f.length;)(g = f[d]) && g.cp == c ? C.Id(f, g) : ++d
  4372. },
  4373. SY: function(c) {
  4374. var d = this.VS,
  4375. f = this.tG;
  4376. f[c] && (d = f[c]);
  4377. d != this.VS && (f[c] = this.VS, d & this.fK && this.Hva(c), d & this.GD && ((d = C.Q.gg) ? this.Jva(c, d) : f[c] = this.GD))
  4378. },
  4379. Jva: function(c, d) {
  4380. var f = this.PW(c);
  4381. if (f) {
  4382. var g = f.al;
  4383. g && 0 !== g.length && (this.Daa = 0, this.mN = {},
  4384. this.FZ(d, q), f.al.sort(this.Gva))
  4385. }
  4386. },
  4387. Gva: function(c, d) {
  4388. var f = C.Ka.mN;
  4389. return f[d.gf.ub] - f[c.gf.ub]
  4390. },
  4391. Hva: function(c) {
  4392. if (c = this.bm[c]) {
  4393. var d = c.Tk;
  4394. if (d && 0 !== d.length) {
  4395. d.sort(this.Iva);
  4396. for (var f = 0,
  4397. g = d.length; f < g && !(0 <= d[f].rt);)++f;
  4398. c.Iea = f
  4399. }
  4400. }
  4401. },
  4402. Iva: function(c, d) {
  4403. return c.rt - d.rt
  4404. },
  4405. HX: function(c) {
  4406. if (c = this.bm[c]) {
  4407. var d = c.Tk,
  4408. f = c.al,
  4409. g, h;
  4410. if (f) for (g = 0; g < f.length;) h = f[g],
  4411. h.Wi ? ++g: C.Id(f, h);
  4412. if (d) for (g = 0; g < d.length;) h = d[g],
  4413. h.Wi ? ++g: C.Id(d, h);
  4414. f && 0 === f.length && c.Kxa();
  4415. d && 0 === d.length && c.Jxa()
  4416. }
  4417. },
  4418. FO: function(c) {
  4419. var d = this.ew;
  4420. C.assert(0 < d, C.n.hma);
  4421. c.xc == C.oe.SK ? (this.HX(C.Ho.He), this.HX(C.Go.He)) : this.HX(C.cL(c));
  4422. if (! (1 < d)) {
  4423. C.assert(1 == d, C.n.ima);
  4424. c = this.bm;
  4425. var d = this.tG,
  4426. f;
  4427. for (f in c) c[f].empty() && (delete d[f], delete c[f]);
  4428. f = this.mB;
  4429. if (0 !== f.length) {
  4430. c = 0;
  4431. for (d = f.length; c < d; c++) this.C$(f[c]);
  4432. this.mB.length = 0
  4433. }
  4434. }
  4435. },
  4436. Yta: function(c, d) {
  4437. if (!c.rta) return t;
  4438. var f = d.event,
  4439. g = d.dha;
  4440. f.AY(c.gf);
  4441. var h = t,
  4442. k, n = f.ot,
  4443. p = C.El.Py;
  4444. if (n == p.mS) c.nc && (h = c.nc(g, f)) && c.Wi && c.Gz.push(g);
  4445. else if (0 < c.Gz.length && -1 != (k = c.Gz.indexOf(g))) h = q,
  4446. n === p.vT && c.yd ? c.yd(g, f) : n === p.ZS ? (c.cd && c.cd(g, f), c.Wi && c.Gz.splice(k, 1)) : n === p.BS && (c.Xe && c.Xe(g, f), c.Wi && c.Gz.splice(k, 1));
  4447. return f.hw ? (C.Ka.FO(f), q) : h && c.Wi && c.yy ? (d.sEa && d.touches.splice(g, 1), q) : t
  4448. },
  4449. Hra: function(c) {
  4450. this.SY(C.Ho.He);
  4451. this.SY(C.Go.He);
  4452. var d = this.PW(C.Ho.He),
  4453. f = this.PW(C.Go.He);
  4454. if (! (s == d && s == f)) {
  4455. var g = c.Kf,
  4456. h = C.Tca(g),
  4457. k = {
  4458. event: c,
  4459. sEa: d && f,
  4460. touches: h,
  4461. dha: s
  4462. };
  4463. if (d) for (var n = 0; n < g.length; n++) if (k.dha = g[n], this.hW(d, this.Yta, k), c.hw) return;
  4464. if (f && 0 < h.length && (this.hW(f, this.$ta, {
  4465. event: c,
  4466. touches: h
  4467. }), c.hw)) return;
  4468. this.FO(c)
  4469. }
  4470. },
  4471. $ta: function(c, d) {
  4472. if (!c.Wi) return t;
  4473. var f = C.El.Py,
  4474. g = d.event,
  4475. h = d.touches,
  4476. k = g.ot;
  4477. g.AY(c.gf);
  4478. k == f.mS && c.MI ? c.MI(h, g) : k == f.vT && c.OI ? c.OI(h, g) : k == f.ZS && c.HC ? c.HC(h, g) : k == f.BS && c.NI && c.NI(h, g);
  4479. return g.hw ? (C.Ka.FO(g), q) : t
  4480. },
  4481. Sqa: function(c, d) {
  4482. var f = this.fp[c.ub];
  4483. f || (f = [], this.fp[c.ub] = f);
  4484. f.push(d)
  4485. },
  4486. M9: function(c, d) {
  4487. var f = this.fp[c.ub];
  4488. f && (C.Id(f, d), 0 === f.length && delete this.fp[c.ub])
  4489. },
  4490. hW: function(c, d, f) {
  4491. var g = t,
  4492. h = c.Tk,
  4493. k = c.al,
  4494. n = 0,
  4495. p;
  4496. if (h && 0 !== h.length) for (; n < c.Iea; ++n) if (p = h[n], p.isEnabled() && !p.xe && p.Wi && d(p, f)) {
  4497. g = q;
  4498. break
  4499. }
  4500. if (k && !g) for (c = 0; c < k.length; c++) if (p = k[c], p.isEnabled() && !p.xe && p.Wi && d(p, f)) {
  4501. g = q;
  4502. break
  4503. }
  4504. if (h && !g) for (; n < h.length && !(p = h[n], p.isEnabled() && !p.xe && p.Wi && d(p, f)); ++n);
  4505. },
  4506. Vt: function(c, d) {
  4507. var f = this.tG;
  4508. f[c] = f[c] == s ? d: d | f[c]
  4509. },
  4510. FZ: function(c, d) {
  4511. var f = c.le(),
  4512. g = 0,
  4513. h = f.length,
  4514. k = this.U$,
  4515. n = this.fp;
  4516. if (0 < h) {
  4517. for (var p; g < h; g++) if ((p = f[g]) && 0 > p.Wa) this.FZ(p, t);
  4518. else break;
  4519. n[c.ub] != s && (k[c.Tq] || (k[c.Tq] = []), k[c.Tq].push(c.ub));
  4520. for (; g < h; g++)(p = f[g]) && this.FZ(p, t)
  4521. } else n[c.ub] != s && (k[c.Tq] || (k[c.Tq] = []), k[c.Tq].push(c.ub));
  4522. if (d) {
  4523. var f = [],
  4524. r;
  4525. for (r in k) f.push(r);
  4526. f.sort(this.Kva);
  4527. r = f.length;
  4528. p = this.mN;
  4529. for (g = 0; g < r; g++) {
  4530. h = k[f[g]];
  4531. for (n = 0; n < h.length; n++) p[h[n]] = ++this.Daa
  4532. }
  4533. this.U$ = {}
  4534. }
  4535. },
  4536. Kva: function(c, d) {
  4537. return c - d
  4538. },
  4539. addListener: function(c, d) {
  4540. C.assert(c && d, C.n.Dza);
  4541. if (c instanceof C.Oa) {
  4542. if (c.Wi) {
  4543. C.log(C.n.Fza);
  4544. return
  4545. }
  4546. } else C.assert("number" !== typeof d, C.n.Eza),
  4547. c = C.Oa.create(c);
  4548. c.uu() && ("number" == typeof d ? 0 == d ? C.log(C.n.Cza) : (c.CG(s), c.BY(d), c.BG(q), c.HY(t), this.Z8(c)) : (c.CG(d), c.BY(0), c.BG(q), this.Z8(c)))
  4549. },
  4550. MZ: function(c, d) {
  4551. var f = C.PE.create(c, d);
  4552. this.addListener(f, 1);
  4553. return f
  4554. },
  4555. removeListener: function(c) {
  4556. if (c != s) {
  4557. var d, f = this.bm,
  4558. g;
  4559. for (g in f) {
  4560. var h = f[g],
  4561. k = h.Tk; (d = this.fba(h.al, c)) ? this.Vt(c.cp, this.GD) : (d = this.fba(k, c)) && this.Vt(c.cp, this.fK);
  4562. h.empty() && (delete this.tG[c.cp], delete f[g]);
  4563. if (d) break
  4564. }
  4565. if (!d) {
  4566. d = this.mB;
  4567. f = 0;
  4568. for (g = d.length; f < g; f++) if (h = d[f], h == c) {
  4569. C.Id(d, h);
  4570. break
  4571. }
  4572. }
  4573. }
  4574. },
  4575. fba: function(c, d) {
  4576. if (c == s) return t;
  4577. for (var f = 0,
  4578. g = c.length; f < g; f++) {
  4579. var h = c[f];
  4580. if (h == d) return h.BG(t),
  4581. h.gf != s && (this.M9(h.gf, h), h.CG(s)),
  4582. 0 == this.ew && C.Id(c, h),
  4583. q
  4584. }
  4585. return t
  4586. },
  4587. Tga: function(c, d) {
  4588. if (c instanceof C.A) {
  4589. delete this.mN[c.ub];
  4590. C.Id(this.vF, c);
  4591. var f = this.fp[c.ub];
  4592. if (f) {
  4593. for (var g = C.Tca(f), f = 0; f < g.length; f++) this.removeListener(g[f]);
  4594. g.length = 0;
  4595. g = this.mB;
  4596. for (f = 0; f < g.length;) {
  4597. var h = g[f];
  4598. h.gf == c ? (h.CG(s), h.BG(t), g.splice(f, 1)) : ++f
  4599. }
  4600. if (d === q) {
  4601. g = c.le();
  4602. f = 0;
  4603. for (h = g.length; f < h; f++) this.Tga(g[f], q)
  4604. }
  4605. }
  4606. } else c == C.Oa.Gs ? this.Jw(C.Ho.He) : c == C.Oa.TK ? this.Jw(C.Go.He) : c == C.Oa.tv ? this.Jw(C.Ps.He) : c == C.Oa.Fy ? this.Jw(C.Ns.He) : c == C.Oa.Vy ? this.Jw(C.Os.He) : C.log(C.n.Gza)
  4607. },
  4608. g2a: function(c) {
  4609. this.Jw(c)
  4610. },
  4611. T1a: function() {
  4612. var c = this.bm,
  4613. d = this.pta,
  4614. f;
  4615. for (f in c) - 1 === d.indexOf(f) && this.Jw(f)
  4616. },
  4617. S4a: function(c, d) {
  4618. if (c != s) {
  4619. var f = this.bm,
  4620. g;
  4621. for (g in f) {
  4622. var h = f[g].Tk;
  4623. if (h && -1 != h.indexOf(c)) {
  4624. c.gf != s && C.log(C.n.Hza);
  4625. c.rt !== d && (c.BY(d), this.Vt(c.cp, this.fK));
  4626. break
  4627. }
  4628. }
  4629. }
  4630. },
  4631. Ib: x("qA"),
  4632. isEnabled: A("qA"),
  4633. dispatchEvent: function(c) {
  4634. if (this.qA) {
  4635. this.bwa();
  4636. this.ew++; (!c || !c.$H) && e("event is undefined");
  4637. if (c.xc == C.oe.SK) this.Hra(c);
  4638. else {
  4639. var d = C.cL(c);
  4640. this.SY(d);
  4641. d = this.bm[d];
  4642. d != s && this.hW(d, this.Sta, c);
  4643. this.FO(c)
  4644. }
  4645. this.ew--
  4646. }
  4647. },
  4648. Sta: function(c, d) {
  4649. d.AY(c.gf);
  4650. c.GX(d);
  4651. return d.hw
  4652. },
  4653. DRa: function(c, d) {
  4654. var f = new C.jq(c);
  4655. f.setUserData(d);
  4656. this.dispatchEvent(f)
  4657. }
  4658. };
  4659. C.ema = C.oe.extend({
  4660. U8: s,
  4661. ctor: function(c) {
  4662. C.oe.prototype.ctor.call(this, C.oe.Fy);
  4663. this.U8 = c
  4664. }
  4665. });
  4666. C.N5 = C.oe.extend({
  4667. jX: 0,
  4668. kaa: t,
  4669. ctor: function(c, d) {
  4670. C.oe.prototype.ctor.call(this, C.oe.Vy);
  4671. this.jX = c;
  4672. this.kaa = d
  4673. }
  4674. });
  4675. C.Ns = C.Oa.extend({
  4676. tN: s,
  4677. ctor: function(c) {
  4678. this.tN = c;
  4679. var d = this;
  4680. C.Oa.prototype.ctor.call(this, C.Oa.Fy, C.Ns.He,
  4681. function(c) {
  4682. d.tN(c.U8, c)
  4683. })
  4684. },
  4685. uu: function() {
  4686. C.assert(this.tN, C.n.tqa);
  4687. return q
  4688. },
  4689. s: function() {
  4690. return new C.Ns(this.tN)
  4691. }
  4692. });
  4693. C.Ns.He = "__cc_acceleration";
  4694. C.Ns.create = function(c) {
  4695. return new C.Ns(c)
  4696. };
  4697. C.Os = C.Oa.extend({
  4698. HI: s,
  4699. II: s,
  4700. ctor: function() {
  4701. var c = this;
  4702. C.Oa.prototype.ctor.call(this, C.Oa.Vy, C.Os.He,
  4703. function(d) {
  4704. d.kaa ? c.HI && c.HI(d.jX, d) : c.II && c.II(d.jX, d)
  4705. })
  4706. },
  4707. s: function() {
  4708. var c = new C.Os;
  4709. c.HI = this.HI;
  4710. c.II = this.II;
  4711. return c
  4712. },
  4713. uu: function() {
  4714. return this.HI == s && this.II == s ? (C.log(C.n.uqa), t) : q
  4715. }
  4716. });
  4717. C.Os.He = "__cc_keyboard";
  4718. C.Os.create = function() {
  4719. return new C.Os
  4720. };
  4721. C.U.OU = function() {
  4722. var c = C.A.prototype;
  4723. c.nZ = s;
  4724. c.KG = s;
  4725. c.WW = s;
  4726. c.Gq = s;
  4727. c.ctor = function() {
  4728. this.$W();
  4729. var c = new C.Ia;
  4730. c.c[2] = c.c[3] = c.c[6] = c.c[7] = c.c[8] = c.c[9] = c.c[11] = c.c[14] = 0;
  4731. c.c[10] = c.c[15] = 1;
  4732. this.nZ = c;
  4733. this.WW = 0;
  4734. this.KG = new C.Ia
  4735. };
  4736. c.Da = function() {
  4737. this.el === t && (this.el = this.RM = q)
  4738. };
  4739. c.J = function() {
  4740. if (this.Ja) {
  4741. var c = C.t,
  4742. f, g = C.Jd;
  4743. g.stack.push(g.top);
  4744. C.Pp(this.KG, g.top);
  4745. g.top = this.KG;
  4746. var h = this.grid;
  4747. h && h.Wg && h.px();
  4748. this.transform();
  4749. var k = this.l;
  4750. if (k && 0 < k.length) {
  4751. var n = k.length;
  4752. this.ed();
  4753. for (f = 0; f < n; f++) if (k[f] && 0 > k[f].Wa) k[f].J();
  4754. else break;
  4755. for (this.ka(c); f < n; f++) k[f] && k[f].J()
  4756. } else this.ka(c);
  4757. this.arrivalOrder = 0;
  4758. h && h.Wg && h.mx(this);
  4759. g.top = g.stack.pop()
  4760. }
  4761. };
  4762. c.transform = function() {
  4763. var c = this.nZ,
  4764. f = C.Jd.top,
  4765. g = this.me(),
  4766. h = c.c;
  4767. h[0] = g.a;
  4768. h[4] = g.H;
  4769. h[12] = g.na;
  4770. h[1] = g.b;
  4771. h[5] = g.P;
  4772. h[13] = g.oa;
  4773. h[14] = this.gH;
  4774. C.Qp(f, f, c);
  4775. this.Gq != s && !(this.grid != s && this.grid.zi()) && (c = this.Nb.x, f = this.Nb.y, 0 !== c || 0 !== f ? (C.bU || (c |= 0, f |= 0), C.mC(c, f), this.Gq.yI(), C.mC( - c, -f)) : this.Gq.yI())
  4776. };
  4777. c.me = c.nN
  4778. };
  4779. C.U.LT = function() {
  4780. var c = C.A.prototype;
  4781. C.e(c, "x", c.Rc, c.rs);
  4782. C.e(c, "y", c.Vd, c.Uu);
  4783. C.e(c, "width", c.ef, c.Qh);
  4784. C.e(c, "height", c.Dg, c.Ph);
  4785. C.e(c, "anchorX", c.L$, c.Re);
  4786. C.e(c, "anchorY", c.M$, c.Se);
  4787. C.e(c, "skewX", c.rea, c.nJ);
  4788. C.e(c, "skewY", c.sea, c.oJ);
  4789. C.e(c, "zIndex", c.VAa, c.ul);
  4790. C.e(c, "vertexZ", c.oCa, c.yIa);
  4791. C.e(c, "rotation", c.Mx, c.th);
  4792. C.e(c, "rotationX", c.GBa, c.i3);
  4793. C.e(c, "rotationY", c.HBa, c.j3);
  4794. C.e(c, "scale", c.SH, c.Za);
  4795. C.e(c, "scaleX", c.LP, c.gb);
  4796. C.e(c, "scaleY", c.TH, c.pb);
  4797. C.e(c, "children", c.le);
  4798. C.e(c, "childrenCount", c.m0);
  4799. C.e(c, "parent", c.getParent, c.cq);
  4800. C.e(c, "visible", c.l1, c.va);
  4801. C.e(c, "running", c.zDa);
  4802. C.e(c, "ignoreAnchor", c.uDa, c.Hm);
  4803. C.e(c, "actionManager", c.UB, c.eha);
  4804. C.e(c, "scheduler", c.Em, c.nia);
  4805. C.e(c, "shaderProgram", c.C0, c.mJ);
  4806. C.e(c, "glServerState", c.BAa, c.vHa)
  4807. };
  4808. C.U.MT = function() {
  4809. var c = C.ha.prototype;
  4810. C.e(c, "opacity", c.rb, c.K);
  4811. C.e(c, "opacityModifyRGB", c.qg, c.$d);
  4812. C.e(c, "cascadeOpacity", c.nI, c.Qu);
  4813. C.e(c, "color", c.Xa, c.G);
  4814. C.e(c, "cascadeColor", c.mI, c.Pu)
  4815. };
  4816. C.yK = -1;
  4817. C.kR = 1;
  4818. C.A = C.O.extend({
  4819. Wa: 0,
  4820. Tq: 0,
  4821. gH: 0,
  4822. Xi: 0,
  4823. im: 0,
  4824. ia: 1,
  4825. pa: 1,
  4826. ma: s,
  4827. ig: 0,
  4828. jg: 0,
  4829. l: s,
  4830. Ja: q,
  4831. Ab: s,
  4832. Nb: s,
  4833. o: s,
  4834. $c: t,
  4835. Vb: s,
  4836. nn: t,
  4837. tag: C.yK,
  4838. userData: s,
  4839. userObject: s,
  4840. el: q,
  4841. RM: q,
  4842. Lk: q,
  4843. Fq: s,
  4844. GPa: s,
  4845. Lf: s,
  4846. daa: s,
  4847. Oh: t,
  4848. pd: s,
  4849. arrivalOrder: 0,
  4850. Pl: s,
  4851. hh: s,
  4852. Tra: s,
  4853. baa: t,
  4854. yq: t,
  4855. iz: s,
  4856. Uo: s,
  4857. TM: t,
  4858. Dn: 0,
  4859. Mw: 0,
  4860. qa: "Node",
  4861. OY: t,
  4862. kd: "",
  4863. $W: function() {
  4864. this.Ab = C.d(0, 0);
  4865. this.Nb = C.d(0, 0);
  4866. this.o = C.size(0, 0);
  4867. this.ma = C.d(0, 0);
  4868. this.l = [];
  4869. this.Lf = {
  4870. a: 1,
  4871. b: 0,
  4872. H: 0,
  4873. P: 1,
  4874. na: 0,
  4875. oa: 0
  4876. };
  4877. var c = C.Q;
  4878. this.Pl = c.UB();
  4879. this.hh = c.Em();
  4880. this.baa = q;
  4881. this.iz = {
  4882. a: 1,
  4883. b: 0,
  4884. H: 0,
  4885. P: 1,
  4886. na: 0,
  4887. oa: 0
  4888. };
  4889. C.o5 && (this.Uo = new C.o5(this))
  4890. },
  4891. j: function() {
  4892. this.baa === t && this.$W();
  4893. return q
  4894. },
  4895. Jk: function(c, d) {
  4896. if (c && 0 !== c.length) {
  4897. var f, g = c.length,
  4898. h;
  4899. f = C.A.Gj;
  4900. switch (d) {
  4901. case f.Z:
  4902. for (f = 0; f < g; f++)(h = c[f]) && h.Z();
  4903. break;
  4904. case f.Na:
  4905. for (f = 0; f < g; f++)(h = c[f]) && h.Na();
  4906. break;
  4907. case f.qj:
  4908. for (f = 0; f < g; f++)(h = c[f]) && h.qj();
  4909. break;
  4910. case f.ze:
  4911. for (f = 0; f < g; f++)(h = c[f]) && h.ze();
  4912. break;
  4913. case f.$h:
  4914. for (f = 0; f < g; f++)(h = c[f]) && h.$h();
  4915. break;
  4916. case f.ph:
  4917. for (f = 0; f < g; f++)(h = c[f]) && h.ph();
  4918. break;
  4919. case f.ed:
  4920. for (f = 0; f < g; f++)(h = c[f]) && h.ed();
  4921. break;
  4922. default:
  4923. C.assert(0, C.n.cna)
  4924. }
  4925. }
  4926. },
  4927. Da: s,
  4928. dj: function(c) {
  4929. for (var d in c) this[d] = c[d]
  4930. },
  4931. rea: A("ig"),
  4932. nJ: function(c) {
  4933. this.ig = c;
  4934. this.Da()
  4935. },
  4936. sea: A("jg"),
  4937. oJ: function(c) {
  4938. this.jg = c;
  4939. this.Da()
  4940. },
  4941. ul: function(c) {
  4942. this.Wa = c;
  4943. this.Vb && this.Vb.OC(this, c);
  4944. C.Ka.WN(this)
  4945. },
  4946. Ow: x("Wa"),
  4947. VAa: A("Wa"),
  4948. xXa: function() {
  4949. C.log(C.n.jna);
  4950. return this.Wa
  4951. },
  4952. N5a: function(c) {
  4953. C.log(C.n.una);
  4954. this.ul(c)
  4955. },
  4956. i4a: function(c) {
  4957. this.Tq != c && (this.Tq = c, C.Ka.WN(this))
  4958. },
  4959. MUa: A("Tq"),
  4960. oCa: A("gH"),
  4961. yIa: x("gH"),
  4962. Mx: function() {
  4963. this.Xi !== this.im && C.log(C.n.hna);
  4964. return this.Xi
  4965. },
  4966. th: function(c) {
  4967. this.Xi = this.im = c;
  4968. this.Dn = 0.017453292519943295 * this.Xi;
  4969. this.Mw = 0.017453292519943295 * this.im;
  4970. this.Da()
  4971. },
  4972. GBa: A("Xi"),
  4973. i3: function(c) {
  4974. this.Xi = c;
  4975. this.Dn = 0.017453292519943295 * this.Xi;
  4976. this.Da()
  4977. },
  4978. HBa: A("im"),
  4979. j3: function(c) {
  4980. this.im = c;
  4981. this.Mw = 0.017453292519943295 * this.im;
  4982. this.Da()
  4983. },
  4984. SH: function() {
  4985. this.ia !== this.pa && C.log(C.n.ina);
  4986. return this.ia
  4987. },
  4988. Za: function(c, d) {
  4989. this.ia = c;
  4990. this.pa = d || 0 === d ? d: c;
  4991. this.Da()
  4992. },
  4993. LP: A("ia"),
  4994. gb: function(c) {
  4995. this.ia = c;
  4996. this.Da()
  4997. },
  4998. TH: A("pa"),
  4999. pb: function(c) {
  5000. this.pa = c;
  5001. this.Da()
  5002. },
  5003. p: function(c, d) {
  5004. var f = this.ma;
  5005. d === m ? (f.x = c.x, f.y = c.y) : (f.x = c, f.y = d);
  5006. this.Da()
  5007. },
  5008. Ld: function() {
  5009. return C.d(this.ma)
  5010. },
  5011. Rc: function() {
  5012. return this.ma.x
  5013. },
  5014. rs: function(c) {
  5015. this.ma.x = c;
  5016. this.Da()
  5017. },
  5018. Vd: function() {
  5019. return this.ma.y
  5020. },
  5021. Uu: function(c) {
  5022. this.ma.y = c;
  5023. this.Da()
  5024. },
  5025. m0: function() {
  5026. return this.l.length
  5027. },
  5028. le: A("l"),
  5029. l1: A("Ja"),
  5030. va: function(c) {
  5031. this.Ja = c;
  5032. this.Da()
  5033. },
  5034. dk: A("Ab"),
  5035. S: function(c, d) {
  5036. var f = this.Ab;
  5037. if (d === m) {
  5038. if (c.x === f.x && c.y === f.y) return;
  5039. f.x = c.x;
  5040. f.y = c.y
  5041. } else {
  5042. if (c === f.x && d === f.y) return;
  5043. f.x = c;
  5044. f.y = d
  5045. }
  5046. var g = this.Nb,
  5047. h = this.o;
  5048. g.x = h.width * f.x;
  5049. g.y = h.height * f.y;
  5050. this.Da()
  5051. },
  5052. EOa: A("Ab"),
  5053. tba: function(c) {
  5054. var d = c.x;
  5055. c = c.y;
  5056. this.Ab.x !== d && (this.Ab.x = d, this.Nb.x = this.o.width * d);
  5057. this.Ab.y !== c && (this.Ab.y = c, this.Nb.y = this.o.height * c);
  5058. this.Da()
  5059. },
  5060. L$: function() {
  5061. return this.Ab.x
  5062. },
  5063. Re: function(c) {
  5064. this.Ab.x !== c && (this.Ab.x = c, this.Nb.x = this.o.width * c, this.Da())
  5065. },
  5066. M$: function() {
  5067. return this.Ab.y
  5068. },
  5069. Se: function(c) {
  5070. this.Ab.y !== c && (this.Ab.y = c, this.Nb.y = this.o.height * c, this.Da())
  5071. },
  5072. Ep: A("Nb"),
  5073. ef: function() {
  5074. return this.o.width
  5075. },
  5076. Qh: function(c) {
  5077. this.o.width = c;
  5078. this.Nb.x = c * this.Ab.x;
  5079. this.Da()
  5080. },
  5081. Dg: function() {
  5082. return this.o.height
  5083. },
  5084. Ph: function(c) {
  5085. this.o.height = c;
  5086. this.Nb.y = c * this.Ab.y;
  5087. this.Da()
  5088. },
  5089. i: A("o"),
  5090. Ca: function(c, d) {
  5091. var f = this.o;
  5092. if (d === m) {
  5093. if (c.width === f.width && c.height === f.height) return;
  5094. f.width = c.width;
  5095. f.height = c.height
  5096. } else {
  5097. if (c === f.width && d === f.height) return;
  5098. f.width = c;
  5099. f.height = d
  5100. }
  5101. var g = this.Nb,
  5102. h = this.Ab;
  5103. g.x = f.width * h.x;
  5104. g.y = f.height * h.y;
  5105. this.Da()
  5106. },
  5107. zDa: A("$c"),
  5108. getParent: A("Vb"),
  5109. cq: x("Vb"),
  5110. uDa: A("nn"),
  5111. Hm: function(c) {
  5112. c != this.nn && (this.nn = c, this.Da())
  5113. },
  5114. Fm: A("tag"),
  5115. Qm: x("tag"),
  5116. Ze: function() {
  5117. this.kd
  5118. },
  5119. getName: A("kd"),
  5120. getUserData: A("userData"),
  5121. setUserData: x("userData"),
  5122. lCa: A("userObject"),
  5123. xIa: function(c) {
  5124. this.userObject != c && (this.userObject = c)
  5125. },
  5126. EVa: A("arrivalOrder"),
  5127. Vha: x("arrivalOrder"),
  5128. UB: function() {
  5129. this.Pl || (this.Pl = C.Q.UB());
  5130. return this.Pl
  5131. },
  5132. eha: function(c) {
  5133. this.Pl != c && (this.yk(), this.Pl = c)
  5134. },
  5135. Em: function() {
  5136. this.hh || (this.hh = C.Q.Em());
  5137. return this.hh
  5138. },
  5139. nia: function(c) {
  5140. this.hh != c && (this.FJ(), this.hh = c)
  5141. },
  5142. Ae: function() {
  5143. var c = C.rect(0, 0, this.o.width, this.o.height);
  5144. return C.Io(c, this.me())
  5145. },
  5146. ze: function() {
  5147. this.yk();
  5148. this.FJ();
  5149. C.Ka.Tga(this);
  5150. this.Jk(this.l, C.A.Gj.ze)
  5151. },
  5152. lj: function(c) {
  5153. var d = this.l;
  5154. if (d != s) for (var f = 0; f < d.length; f++) {
  5155. var g = d[f];
  5156. if (g && g.tag == c) return g
  5157. }
  5158. return s
  5159. },
  5160. Pda: function(c) {
  5161. if (!c) return C.log("Invalid name"),
  5162. s;
  5163. for (var d = this.l,
  5164. f = 0,
  5165. g = d.length; f < g; f++) if (d[f].kd == c) return d[f];
  5166. return s
  5167. },
  5168. q: function(c, d, f) {
  5169. C.assert(c, C.n.fna);
  5170. c === this ? C.log(C.n.dna) : c.Vb !== s ? C.log(C.n.ena) : (d = d != s ? d: c.Wa, c.tag = f != s ? f: c.tag, this.kta(c, d), c.Vb = this, this.Fq && (c.Fq = this.Fq), this.$c && (c.Z(), this.TM && c.qj()))
  5171. },
  5172. Lm: function(c) {
  5173. this.Vb && (c == s && (c = q), this.Vb.removeChild(this, c))
  5174. },
  5175. vGa: function(c) {
  5176. C.log(C.n.ona);
  5177. this.Lm(c)
  5178. },
  5179. removeChild: function(c, d) {
  5180. 0 !== this.l.length && (d == s && (d = q), -1 < this.l.indexOf(c) && this.Fra(c, d), this.Da())
  5181. },
  5182. $Q: function(c, d) {
  5183. c === C.yK && C.log(C.n.mna);
  5184. var f = this.lj(c);
  5185. f == s ? C.log(C.n.nna, c) : this.removeChild(f, d)
  5186. },
  5187. Ku: function(c) {
  5188. C.log(C.n.lna);
  5189. this.xf(c)
  5190. },
  5191. xf: function(c) {
  5192. var d = this.l;
  5193. if (d != s) {
  5194. c == s && (c = q);
  5195. for (var f = 0; f < d.length; f++) {
  5196. var g = d[f];
  5197. g && (this.$c && (g.ph(), g.Na()), c && g.ze(), g.parent = s)
  5198. }
  5199. this.l.length = 0
  5200. }
  5201. },
  5202. Fra: function(c, d) {
  5203. this.$c && (c.ph(), c.Na());
  5204. d && c.ze();
  5205. c.parent = s;
  5206. C.Id(this.l, c)
  5207. },
  5208. kta: function(c, d) {
  5209. this.Oh = q;
  5210. this.l.push(c);
  5211. c.Ow(d)
  5212. },
  5213. OC: function(c, d) {
  5214. C.assert(c, C.n.pna);
  5215. this.Oh = q;
  5216. c.arrivalOrder = C.kR;
  5217. C.kR++;
  5218. c.Ow(d);
  5219. this.Da()
  5220. },
  5221. ed: function() {
  5222. if (this.Oh) {
  5223. var c = this.l,
  5224. d = c.length,
  5225. f, g, h;
  5226. for (f = 1; f < d; f++) {
  5227. h = c[f];
  5228. for (g = f - 1; 0 <= g;) {
  5229. if (h.Wa < c[g].Wa) c[g + 1] = c[g];
  5230. else if (h.Wa === c[g].Wa && h.arrivalOrder < c[g].arrivalOrder) c[g + 1] = c[g];
  5231. else break;
  5232. g--
  5233. }
  5234. c[g + 1] = h
  5235. }
  5236. this.Oh = t
  5237. }
  5238. },
  5239. ka: u(),
  5240. CJ: function() {
  5241. this.Vb != s && (this.Vb.CJ(), this.Vb.transform())
  5242. },
  5243. Z: function() {
  5244. this.TM = t;
  5245. this.$c = q;
  5246. this.Jk(this.l, C.A.Gj.Z);
  5247. this.nk()
  5248. },
  5249. qj: function() {
  5250. this.TM = q;
  5251. this.Jk(this.l, C.A.Gj.qj)
  5252. },
  5253. ph: function() {
  5254. this.Jk(this.l, C.A.Gj.ph)
  5255. },
  5256. Na: function() {
  5257. this.$c = t;
  5258. this.pause();
  5259. this.Jk(this.l, C.A.Gj.Na);
  5260. this.Uo && this.Uo.mk()
  5261. },
  5262. Ya: function(c) {
  5263. C.assert(c, C.n.rna);
  5264. this.actionManager.mwa(c, this, !this.$c);
  5265. return c
  5266. },
  5267. yk: function() {
  5268. this.actionManager && this.actionManager.Pga(this)
  5269. },
  5270. yJ: function(c) {
  5271. this.actionManager.Oga(c)
  5272. },
  5273. VIa: function(c) {
  5274. c === C.Gy ? C.log(C.n.vna) : this.actionManager.nGa(c, this)
  5275. },
  5276. xP: function(c) {
  5277. return c === C.Gy ? (C.log(C.n.gna), s) : this.actionManager.xP(c, this)
  5278. },
  5279. xVa: function() {
  5280. return this.actionManager.wEa(this)
  5281. },
  5282. Lu: function() {
  5283. this.cha(0)
  5284. },
  5285. cha: function(c) {
  5286. this.scheduler.lR(this, c, !this.$c)
  5287. },
  5288. hD: function() {
  5289. this.scheduler.GJ(this)
  5290. },
  5291. rg: function(c, d, f, g) {
  5292. d = d || 0;
  5293. C.assert(c, C.n.sna);
  5294. C.assert(0 <= d, C.n.tna);
  5295. f = f == s ? C.xv: f;
  5296. this.scheduler.y2(this, c, d, f, g || 0, !this.$c)
  5297. },
  5298. S2a: function(c, d) {
  5299. this.rg(c, 0, 0, d)
  5300. },
  5301. Zh: function(c) {
  5302. c && this.scheduler.W3(this, c)
  5303. },
  5304. FJ: function() {
  5305. this.scheduler.dja(this)
  5306. },
  5307. E2a: function() {
  5308. C.log(C.n.qna);
  5309. this.nk()
  5310. },
  5311. nk: function() {
  5312. this.scheduler.Mm(this);
  5313. this.actionManager && this.actionManager.Mm(this);
  5314. C.Ka.Mm(this)
  5315. },
  5316. b1a: function() {
  5317. C.log(C.n.kna);
  5318. this.pause()
  5319. },
  5320. pause: function() {
  5321. this.scheduler.hs(this);
  5322. this.actionManager && this.actionManager.hs(this);
  5323. C.Ka.hs(this)
  5324. },
  5325. UGa: function(c) {
  5326. this.iz = c;
  5327. this.yq = this.el = q
  5328. },
  5329. Y0a: function() {
  5330. this.RM && (this.daa = C.iS(this.me()), this.RM = t);
  5331. return this.daa
  5332. },
  5333. ql: function() {
  5334. for (var c = this.me(), d = this.Vb; d != s; d = d.parent) c = C.Qg(c, d.me());
  5335. return c
  5336. },
  5337. TJa: function() {
  5338. return C.iS(this.ql())
  5339. },
  5340. wi: function(c) {
  5341. return C.wv(c, this.TJa())
  5342. },
  5343. vm: function(c) {
  5344. c = c || C.d(0, 0);
  5345. return C.wv(c, this.ql())
  5346. },
  5347. Txa: function(c) {
  5348. return C.cc(this.wi(c), this.Nb)
  5349. },
  5350. iRa: function(c) {
  5351. c = c || C.d(0, 0);
  5352. c = C.ho(c, this.Nb);
  5353. return this.vm(c)
  5354. },
  5355. hOa: function(c) {
  5356. c = this.vm(c);
  5357. return C.Q.Uxa(c)
  5358. },
  5359. Bp: function(c) {
  5360. return this.wi(c.mh())
  5361. },
  5362. jRa: function(c) {
  5363. c = c.mh();
  5364. c = C.Q.Sxa(c);
  5365. return this.Txa(c)
  5366. },
  5367. update: function(c) {
  5368. this.Uo && !this.Uo.gfa() && this.Uo.J(c)
  5369. },
  5370. $h: function() {
  5371. this.Jk(this.l, C.A.Gj.$h)
  5372. },
  5373. fR: u(),
  5374. rh: u(),
  5375. Rda: function(c) {
  5376. return this.Uo.Rda(c)
  5377. },
  5378. pu: function(c) {
  5379. this.Uo.add(c)
  5380. },
  5381. e2a: function(c) {
  5382. return this.Uo.remove(c)
  5383. },
  5384. R1a: function() {
  5385. this.Uo.mk()
  5386. },
  5387. grid: s,
  5388. ctor: s,
  5389. J: s,
  5390. transform: s,
  5391. me: s,
  5392. Fn: function() {
  5393. if (this.Lk === t) {
  5394. this.Lk = q;
  5395. var c = this.Fq;
  5396. c && c != this && c.Fn()
  5397. }
  5398. },
  5399. zY: function(c) {
  5400. if (this.Fq != c) {
  5401. this.Fq = c;
  5402. for (var d = this.l,
  5403. f = 0,
  5404. g = d.length; f < g; f++) d[f].zY(c)
  5405. }
  5406. },
  5407. Ix: function() {
  5408. this.Gq || (this.Gq = new C.FD);
  5409. return this.Gq
  5410. },
  5411. NH: A("grid"),
  5412. wHa: x("grid"),
  5413. C0: A("pd"),
  5414. mJ: x("pd"),
  5415. BAa: A("WW"),
  5416. vHa: x("WW"),
  5417. fAa: function() {
  5418. var c = C.rect(0, 0, this.o.width, this.o.height),
  5419. d = this.ql(),
  5420. c = C.Gi(c, this.ql());
  5421. if (!this.l) return c;
  5422. for (var f = this.l,
  5423. g = 0; g < f.length; g++) {
  5424. var h = f[g];
  5425. h && h.Ja && (h = h.JF(d)) && (c = C.MC(c, h))
  5426. }
  5427. return c
  5428. },
  5429. JF: function(c) {
  5430. var d = C.rect(0, 0, this.o.width, this.o.height);
  5431. c = c == s ? this.me() : C.Qg(this.me(), c);
  5432. d = C.Gi(d, c);
  5433. if (!this.l) return d;
  5434. for (var f = this.l,
  5435. g = 0; g < f.length; g++) {
  5436. var h = f[g];
  5437. h && h.Ja && (h = h.JF(c)) && (d = C.MC(d, h))
  5438. }
  5439. return d
  5440. },
  5441. nN: function() {
  5442. if (this.el) {
  5443. var c = this.ma.x,
  5444. d = this.ma.y,
  5445. f = this.Nb.x,
  5446. g = -f,
  5447. h = this.Nb.y,
  5448. k = -h,
  5449. n = this.ia,
  5450. p = this.pa;
  5451. this.nn && (c += f, d += h);
  5452. var r = 1,
  5453. v = 0,
  5454. y = 1,
  5455. z = 0;
  5456. if (0 !== this.Xi || 0 !== this.im) r = Math.cos( - this.Dn),
  5457. v = Math.sin( - this.Dn),
  5458. y = Math.cos( - this.Mw),
  5459. z = Math.sin( - this.Mw);
  5460. var D = this.ig || this.jg;
  5461. if (!D && (0 !== f || 0 !== h)) c += y * g * n + -v * k * p,
  5462. d += z * g * n + r * k * p;
  5463. var E = this.Lf;
  5464. E.a = y * n;
  5465. E.b = z * n;
  5466. E.H = -v * p;
  5467. E.P = r * p;
  5468. E.na = c;
  5469. E.oa = d;
  5470. if (D && (E = C.Qg({
  5471. a: 1,
  5472. b: Math.tan(C.ng(this.jg)),
  5473. H: Math.tan(C.ng(this.ig)),
  5474. P: 1,
  5475. na: 0,
  5476. oa: 0
  5477. },
  5478. E), 0 !== f || 0 !== h)) E = C.OJ(E, g, k);
  5479. this.yq && (E = C.Qg(E, this.iz), this.yq = t);
  5480. this.Lf = E;
  5481. this.el = t
  5482. }
  5483. return this.Lf
  5484. }
  5485. });
  5486. C.A.create = function() {
  5487. return new C.A
  5488. };
  5489. C.A.Gj = {
  5490. Z: 1,
  5491. Na: 2,
  5492. ze: 3,
  5493. qj: 4,
  5494. $h: 5,
  5495. ph: 6,
  5496. ed: 7
  5497. };
  5498. C.L === C.cb ? (H = C.A.prototype, H.ctor = function() {
  5499. this.$W()
  5500. },
  5501. H.Da = function() {
  5502. this.Fn();
  5503. this.el === t && (this.el = this.RM = q)
  5504. },
  5505. H.J = function(c) {
  5506. if (this.Ja) {
  5507. c = c || C.t;
  5508. var d, f = this.l,
  5509. g;
  5510. c.save();
  5511. this.transform(c);
  5512. var h = f.length;
  5513. if (0 < h) {
  5514. this.ed();
  5515. for (d = 0; d < h; d++) if (g = f[d], 0 > g.Wa) g.J(c);
  5516. else break;
  5517. for (this.ka(c); d < h; d++) f[d].J(c)
  5518. } else this.ka(c);
  5519. this.Lk = t;
  5520. this.arrivalOrder = 0;
  5521. c.restore()
  5522. }
  5523. },
  5524. H.transform = function(c) {
  5525. c = c || C.t;
  5526. var d = C.view,
  5527. f = this.me();
  5528. c.transform(f.a, f.H, f.b, f.P, f.na * d.ia, -f.oa * d.pa)
  5529. },
  5530. H.me = function() {
  5531. if (this.el) {
  5532. var c = this.Lf;
  5533. c.na = this.ma.x;
  5534. c.oa = this.ma.y;
  5535. var d = 1,
  5536. f = 0;
  5537. this.Xi && (d = Math.cos(this.Dn), f = Math.sin(this.Dn));
  5538. c.a = c.P = d;
  5539. c.b = -f;
  5540. c.H = f;
  5541. var g = this.ia,
  5542. h = this.pa,
  5543. k = this.Nb.x,
  5544. n = this.Nb.y,
  5545. p = 1E-6 > g && -1E-6 < g ? 1E-6: g,
  5546. r = 1E-6 > h && -1E-6 < h ? 1E-6: h;
  5547. if (this.ig || this.jg) {
  5548. var v = Math.tan( - this.ig * Math.PI / 180),
  5549. y = Math.tan( - this.jg * Math.PI / 180);
  5550. Infinity === v && (v = 99999999);
  5551. Infinity === y && (y = 99999999);
  5552. var z = n * v * p,
  5553. D = k * y * r;
  5554. c.a = d + -f * y;
  5555. c.b = d * v + -f;
  5556. c.H = f + d * y;
  5557. c.P = f * v + d;
  5558. c.na += d * z + -f * D;
  5559. c.oa += f * z + d * D
  5560. }
  5561. if (1 !== g || 1 !== h) c.a *= p,
  5562. c.H *= p,
  5563. c.b *= r,
  5564. c.P *= r;
  5565. c.na += d * -k * p + -f * n * r;
  5566. c.oa -= f * -k * p + d * n * r;
  5567. this.nn && (c.na += k, c.oa += n);
  5568. this.yq && (this.Lf = C.Qg(c, this.iz), this.yq = t);
  5569. this.el = t
  5570. }
  5571. return this.Lf
  5572. },
  5573. H = s) : (C.assert("function" === typeof C.U.OU, C.n.Bf, "BaseNodesWebGL.js"), C.U.OU(), delete C.U.OU);
  5574. C.assert("function" === typeof C.U.LT, C.n.Bf, "BaseNodesPropertyDefine.js");
  5575. C.U.LT();
  5576. delete C.U.LT;
  5577. C.ha = C.A.extend({
  5578. sb: q,
  5579. hb: 255,
  5580. Ig: 255,
  5581. wb: s,
  5582. od: s,
  5583. Zf: t,
  5584. Ag: t,
  5585. ctor: function() {
  5586. C.A.prototype.ctor.call(this);
  5587. this.Ig = this.hb = 255;
  5588. this.wb = C.color(255, 255, 255, 255);
  5589. this.od = C.color(255, 255, 255, 255);
  5590. this.Ag = this.Zf = t
  5591. },
  5592. Gd: u(),
  5593. rb: A("Ig"),
  5594. Tda: A("hb"),
  5595. K: function(c) {
  5596. this.hb = this.Ig = c;
  5597. var d = 255,
  5598. f = this.Vb;
  5599. f && (f.sb && f.cascadeOpacity) && (d = f.hb);
  5600. this.dc(d);
  5601. this.wb.a = this.od.a = c
  5602. },
  5603. dc: function(c) {
  5604. this.hb = this.Ig * c / 255;
  5605. if (this.Ag) {
  5606. c = this.l;
  5607. for (var d = 0; d < c.length; d++) {
  5608. var f = c[d];
  5609. f && f.sb && f.dc(this.hb)
  5610. }
  5611. }
  5612. },
  5613. nI: A("Ag"),
  5614. Qu: function(c) {
  5615. this.Ag !== c && ((this.Ag = c) ? this.Sz() : this.dW())
  5616. },
  5617. Sz: function() {
  5618. var c = 255,
  5619. d = this.Vb;
  5620. d && (d.sb && d.cascadeOpacity) && (c = d.hb);
  5621. this.dc(c)
  5622. },
  5623. dW: function() {
  5624. this.hb = this.Ig;
  5625. for (var c = this.l,
  5626. d = 0; d < c.length; d++) {
  5627. var f = c[d];
  5628. f && f.sb && f.dc(255)
  5629. }
  5630. },
  5631. Xa: function() {
  5632. var c = this.od;
  5633. return C.color(c.r, c.g, c.b, c.a)
  5634. },
  5635. xu: function() {
  5636. var c = this.wb;
  5637. return C.color(c.r, c.g, c.b, c.a)
  5638. },
  5639. G: function(c) {
  5640. var d = this.wb,
  5641. f = this.od;
  5642. d.r = f.r = c.r;
  5643. d.g = f.g = c.g;
  5644. d.b = f.b = c.b;
  5645. d = (d = this.Vb) && d.sb && d.cascadeColor ? d.xu() : C.color.WHITE;
  5646. this.Tb(d);
  5647. c.a !== m && !c.jx && this.K(c.a)
  5648. },
  5649. Tb: function(c) {
  5650. var d = this.wb,
  5651. f = this.od;
  5652. d.r = 0 | f.r * c.r / 255;
  5653. d.g = 0 | f.g * c.g / 255;
  5654. d.b = 0 | f.b * c.b / 255;
  5655. if (this.Zf) {
  5656. c = this.l;
  5657. for (f = 0; f < c.length; f++) {
  5658. var g = c[f];
  5659. g && g.sb && g.Tb(d)
  5660. }
  5661. }
  5662. },
  5663. mI: A("Zf"),
  5664. Pu: function(c) {
  5665. this.Zf !== c && ((this.Zf = c) ? this.Rz() : this.cW())
  5666. },
  5667. Rz: function() {
  5668. var c;
  5669. c = (c = this.Vb) && c.sb && c.cascadeColor ? c.xu() : C.color.WHITE;
  5670. this.Tb(c)
  5671. },
  5672. cW: function() {
  5673. var c = this.wb,
  5674. d = this.od;
  5675. c.r = d.r;
  5676. c.g = d.g;
  5677. c.b = d.b;
  5678. for (var c = this.l,
  5679. d = C.color.WHITE,
  5680. f = 0; f < c.length; f++) {
  5681. var g = c[f];
  5682. g && g.sb && g.Tb(d)
  5683. }
  5684. },
  5685. q: function(c, d, f) {
  5686. C.A.prototype.q.call(this, c, d, f);
  5687. this.Zf && this.Rz();
  5688. this.Ag && this.Sz()
  5689. },
  5690. $d: u(),
  5691. qg: B(t)
  5692. });
  5693. C.ha.create = function() {
  5694. var c = new C.ha;
  5695. c.j();
  5696. return c
  5697. };
  5698. C.assert("function" === typeof C.U.MT, C.n.Bf, "BaseNodesPropertyDefine.js");
  5699. C.U.MT();
  5700. delete C.U.MT;
  5701. C.A.FMa = 0;
  5702. C.A.HMa = 1;
  5703. C.A.GMa = 2;
  5704. C.A.IMa = 3;
  5705. C.A.EMa = 4;
  5706. C.gq = C.ha.extend({
  5707. textureAtlas: s,
  5708. quadsToDraw: 0,
  5709. sb: q,
  5710. uA: 0,
  5711. oaa: 0,
  5712. Tj: 0,
  5713. Oi: 0,
  5714. Mq: s,
  5715. Fb: t,
  5716. C: s,
  5717. IM: t,
  5718. qa: "AtlasNode",
  5719. ctor: function(c, d, f, g) {
  5720. C.ha.prototype.ctor.call(this);
  5721. this.Mq = C.color.WHITE;
  5722. this.C = {
  5723. src: C.Ic,
  5724. ga: C.Hc
  5725. };
  5726. this.IM = t;
  5727. g !== m && this.ZCa(c, d, f, g)
  5728. },
  5729. iD: function() {
  5730. C.log(C.n.Rja)
  5731. },
  5732. Xa: function() {
  5733. return this.Fb ? this.Mq: C.ha.prototype.Xa.call(this)
  5734. },
  5735. $d: function(c) {
  5736. var d = this.color;
  5737. this.Fb = c;
  5738. this.color = d
  5739. },
  5740. qg: A("Fb"),
  5741. ek: A("C"),
  5742. Yd: function(c, d) {
  5743. this.C = d === m ? c: {
  5744. src: c,
  5745. ga: d
  5746. }
  5747. },
  5748. p3: x("textureAtlas"),
  5749. VH: A("textureAtlas"),
  5750. hWa: A("quadsToDraw"),
  5751. U4a: x("quadsToDraw"),
  5752. eu: s,
  5753. qi: s,
  5754. pZ: s,
  5755. lF: s,
  5756. ZCa: function(c, d, f, g) {
  5757. c || e("cc.AtlasNode.initWithTileFile(): title should not be null");
  5758. c = C.kb.sd(c);
  5759. return this.ta(c, d, f, g)
  5760. },
  5761. ta: s,
  5762. aX: function(c, d, f, g) {
  5763. this.Tj = d;
  5764. this.Oi = f;
  5765. this.Fb = q;
  5766. this.qi = c;
  5767. if (!this.qi) return C.log(C.n.n4),
  5768. t;
  5769. this.eu = this.qi;
  5770. this.CL();
  5771. this.quadsToDraw = g;
  5772. return q
  5773. },
  5774. bX: function(c, d, f, g) {
  5775. this.Tj = d;
  5776. this.Oi = f;
  5777. this.Mq = C.color.WHITE;
  5778. this.Fb = q;
  5779. this.C.src = C.Ic;
  5780. this.C.ga = C.Hc;
  5781. d = this.od;
  5782. this.lF = new Float32Array([d.r / 255, d.g / 255, d.b / 255, this.Ig / 255]);
  5783. this.textureAtlas = new C.uq;
  5784. this.textureAtlas.ta(c, g);
  5785. if (!this.textureAtlas) return C.log(C.n.n4),
  5786. t;
  5787. this.hl();
  5788. this.eca();
  5789. this.CL();
  5790. this.quadsToDraw = g;
  5791. this.shaderProgram = C.ug.Xd(C.LK);
  5792. this.pZ = C.t.getUniformLocation(this.shaderProgram.Lx(), "u_color");
  5793. return q
  5794. },
  5795. ka: s,
  5796. gn: function(c) {
  5797. c = c || C.t;
  5798. C.BC(this);
  5799. C.Gm(this.C.src, this.C.ga);
  5800. this.pZ && this.lF && (c.uniform4fv(this.pZ, this.lF), this.textureAtlas.oda(this.quadsToDraw))
  5801. },
  5802. G: s,
  5803. Tua: function(c) {
  5804. var d = this.od;
  5805. if (! (d.r == c.r && d.g == c.g && d.b == c.b)) {
  5806. d = C.color(c.r, c.g, c.b);
  5807. this.Mq = c;
  5808. if (this.Fb) {
  5809. var f = this.hb;
  5810. d.r = d.r * f / 255;
  5811. d.g = d.g * f / 255;
  5812. d.b = d.b * f / 255
  5813. }
  5814. C.ha.prototype.G.call(this, c);
  5815. if (this.texture && (c = this.qi.jd)) if (d = C.kb.OP(c)) f = C.rect(0, 0, c.width, c.height),
  5816. c = C.TB(c, d, this.od, f),
  5817. d = new C.Ma,
  5818. d.Ng(c),
  5819. d.Md(),
  5820. this.texture = d
  5821. }
  5822. },
  5823. Uua: function(c) {
  5824. var d = C.color(c.r, c.g, c.b);
  5825. this.Mq = c;
  5826. var f = this.hb;
  5827. this.Fb && (d.r = d.r * f / 255, d.g = d.g * f / 255, d.b = d.b * f / 255);
  5828. C.ha.prototype.G.call(this, c);
  5829. c = this.wb;
  5830. this.lF = new Float32Array([c.r / 255, c.g / 255, c.b / 255, f / 255])
  5831. },
  5832. K: u(),
  5833. FY: function(c) {
  5834. C.ha.prototype.K.call(this, c);
  5835. this.Fb && (this.color = this.Mq)
  5836. },
  5837. GY: function(c) {
  5838. C.ha.prototype.K.call(this, c);
  5839. this.Fb ? this.color = this.Mq: (c = this.wb, this.lF = new Float32Array([c.r / 255, c.g / 255, c.b / 255, this.hb / 255]))
  5840. },
  5841. ob: s,
  5842. MF: A("eu"),
  5843. UW: function() {
  5844. return this.textureAtlas.texture
  5845. },
  5846. Va: s,
  5847. KY: x("eu"),
  5848. LY: function(c) {
  5849. this.textureAtlas.texture = c;
  5850. this.hl();
  5851. this.eca()
  5852. },
  5853. CL: s,
  5854. gra: function() {
  5855. var c = this.texture.i();
  5856. this.oaa = 0 | c.height / this.Oi;
  5857. this.uA = 0 | c.width / this.Tj
  5858. },
  5859. hra: function() {
  5860. var c = this.texture,
  5861. d = c.i();
  5862. this.IM && (d = c.o);
  5863. this.oaa = 0 | d.height / this.Oi;
  5864. this.uA = 0 | d.width / this.Tj
  5865. },
  5866. hl: function() {
  5867. this.textureAtlas.texture.Hp() || (this.C.src = C.SRC_ALPHA, this.C.ga = C.ONE_MINUS_SRC_ALPHA)
  5868. },
  5869. eca: function() {
  5870. this.Fb = this.textureAtlas.texture.Hp()
  5871. },
  5872. CY: x("IM")
  5873. });
  5874. H = C.gq.prototype;
  5875. C.L === C.la ? (H.ta = H.bX, H.ka = H.gn, H.G = H.Uua, H.K = H.GY, H.ob = H.UW, H.Va = H.LY, H.CL = H.hra) : (H.ta = H.aX, H.ka = C.A.prototype.ka, H.G = H.Tua, H.K = H.FY, H.ob = H.MF, H.Va = H.KY, H.CL = H.gra);
  5876. C.e(H, "opacity", H.rb, H.K);
  5877. C.e(H, "color", H.Xa, H.G);
  5878. C.e(H, "texture", H.ob, H.Va);
  5879. C.gq.create = function(c, d, f, g) {
  5880. return new C.gq(c, d, f, g)
  5881. };
  5882. C.U.UU = function() {
  5883. C.Ma = C.O.extend({
  5884. mPa: q,
  5885. ip: s,
  5886. mr: 0,
  5887. lr: 0,
  5888. kd: "",
  5889. o: s,
  5890. Sp: 0,
  5891. Tp: 0,
  5892. HM: t,
  5893. jA: t,
  5894. shaderProgram: s,
  5895. de: t,
  5896. jd: s,
  5897. Sh: s,
  5898. url: s,
  5899. ac: s,
  5900. ctor: function() {
  5901. this.o = C.size(0, 0);
  5902. this.ip = C.Ma.hda
  5903. },
  5904. n2: function() {
  5905. this.Sh && C.t.deleteTexture(this.Sh);
  5906. C.M.rh(this.url)
  5907. },
  5908. kea: A("ip"),
  5909. w0: A("mr"),
  5910. v0: A("lr"),
  5911. getName: A("Sh"),
  5912. i: function() {
  5913. return C.size(this.o.width / C.Ec(), this.o.height / C.Ec())
  5914. },
  5915. ef: function() {
  5916. return this.o.width / C.Ec()
  5917. },
  5918. Dg: function() {
  5919. return this.o.height / C.Ec()
  5920. },
  5921. mAa: A("o"),
  5922. bBa: A("Sp"),
  5923. HHa: x("Sp"),
  5924. cBa: A("Tp"),
  5925. IHa: x("Tp"),
  5926. C0: A("shaderProgram"),
  5927. mJ: x("shaderProgram"),
  5928. Hp: A("HM"),
  5929. ACa: A("jA"),
  5930. description: function() {
  5931. return "\x3ccc.Texture2D | Name \x3d " + this.kd + " | Dimensions \x3d " + this.mr + " x " + this.lr + " | Coordinates \x3d (" + this.Sp + ", " + this.Tp + ")\x3e"
  5932. },
  5933. lGa: u(),
  5934. IDa: da(),
  5935. Au: function(c, d, f, g, h) {
  5936. var k = C.Ma,
  5937. n = C.t,
  5938. p = n.RGBA,
  5939. r = n.UNSIGNED_BYTE,
  5940. v = f * C.Ma.P8[d] / 8;
  5941. 0 === v % 8 ? n.pixelStorei(n.UNPACK_ALIGNMENT, 8) : 0 === v % 4 ? n.pixelStorei(n.UNPACK_ALIGNMENT, 4) : 0 === v % 2 ? n.pixelStorei(n.UNPACK_ALIGNMENT, 2) : n.pixelStorei(n.UNPACK_ALIGNMENT, 1);
  5942. this.Sh = n.createTexture();
  5943. C.yi(this);
  5944. n.texParameteri(n.TEXTURE_2D, n.TEXTURE_MIN_FILTER, n.LINEAR);
  5945. n.texParameteri(n.TEXTURE_2D, n.TEXTURE_MAG_FILTER, n.LINEAR);
  5946. n.texParameteri(n.TEXTURE_2D, n.TEXTURE_WRAP_S, n.CLAMP_TO_EDGE);
  5947. n.texParameteri(n.TEXTURE_2D, n.TEXTURE_WRAP_T, n.CLAMP_TO_EDGE);
  5948. switch (d) {
  5949. case k.qq:
  5950. p = n.RGBA;
  5951. break;
  5952. case k.rE:
  5953. p = n.RGB;
  5954. break;
  5955. case k.AK:
  5956. r = n.UNSIGNED_SHORT_4_4_4_4;
  5957. break;
  5958. case k.zK:
  5959. r = n.UNSIGNED_SHORT_5_5_5_1;
  5960. break;
  5961. case k.qE:
  5962. r = n.UNSIGNED_SHORT_5_6_5;
  5963. break;
  5964. case k.ET:
  5965. p = n.LUMINANCE_ALPHA;
  5966. break;
  5967. case k.pE:
  5968. p = n.ALPHA;
  5969. break;
  5970. case k.FT:
  5971. p = n.LUMINANCE;
  5972. break;
  5973. default:
  5974. C.assert(0, C.n.Epa)
  5975. }
  5976. n.texImage2D(n.TEXTURE_2D, 0, p, f, g, 0, p, r, c);
  5977. this.o.width = h.width;
  5978. this.o.height = h.height;
  5979. this.mr = f;
  5980. this.lr = g;
  5981. this.ip = d;
  5982. this.Sp = h.width / f;
  5983. this.Tp = h.height / g;
  5984. this.jA = this.HM = t;
  5985. this.shaderProgram = C.ug.Xd(C.yE);
  5986. return this.de = q
  5987. },
  5988. Kya: function(c) {
  5989. var d = [0, this.Tp, this.Sp, this.Tp, 0, 0, this.Sp, 0],
  5990. f = this.mr * this.Sp,
  5991. g = this.lr * this.Tp;
  5992. c = [c.x, c.y, 0, f + c.x, c.y, 0, c.x, g + c.y, 0, f + c.x, g + c.y, 0];
  5993. C.rf(C.Ch | C.fz);
  5994. this.pd.Af();
  5995. this.pd.uJ();
  5996. C.yi(this);
  5997. f = C.t;
  5998. f.vertexAttribPointer(C.Lc, 2, f.FLOAT, t, 0, c);
  5999. f.vertexAttribPointer(C.Vg, 2, f.FLOAT, t, 0, d);
  6000. f.drawArrays(f.TRIANGLE_STRIP, 0, 4)
  6001. },
  6002. Nya: function(c) {
  6003. var d = [0, this.Tp, this.Sp, this.Tp, 0, 0, this.Sp, 0];
  6004. c = [c.x, c.y, c.x + c.width, c.y, c.x, c.y + c.height, c.x + c.width, c.y + c.height];
  6005. C.rf(C.Ch | C.fz);
  6006. this.pd.Af();
  6007. this.pd.uJ();
  6008. C.yi(this);
  6009. var f = C.t;
  6010. f.vertexAttribPointer(C.Lc, 2, f.FLOAT, t, 0, c);
  6011. f.vertexAttribPointer(C.Vg, 2, f.FLOAT, t, 0, d);
  6012. f.drawArrays(f.TRIANGLE_STRIP, 0, 4)
  6013. },
  6014. Zea: function(c) {
  6015. if (c == s) return C.log(C.n.Hpa),
  6016. t;
  6017. var d = c.tCa(),
  6018. f = c.DAa(),
  6019. g = C.FB.bG;
  6020. if (d > g || f > g) return C.log(C.n.Ipa, d, f, g, g),
  6021. t;
  6022. this.de = q;
  6023. return this.dta(c, d, f)
  6024. },
  6025. Ng: function(c) {
  6026. c && (this.Sh = C.t.createTexture(), this.jd = c)
  6027. },
  6028. FAa: A("jd"),
  6029. vDa: A("de"),
  6030. Md: function() {
  6031. if (C.NN) {
  6032. if (!this.jd) {
  6033. var c = C.M.xd(this.url);
  6034. if (!c) return;
  6035. this.Ng(c)
  6036. }
  6037. this.jd.width && this.jd.height && (this.de = q, c = C.t, C.yi(this), c.pixelStorei(c.UNPACK_ALIGNMENT, 4), c.texImage2D(c.TEXTURE_2D, 0, c.RGBA, c.RGBA, c.UNSIGNED_BYTE, this.jd), c.texParameteri(c.TEXTURE_2D, c.TEXTURE_MIN_FILTER, c.LINEAR), c.texParameteri(c.TEXTURE_2D, c.TEXTURE_MAG_FILTER, c.LINEAR), c.texParameteri(c.TEXTURE_2D, c.TEXTURE_WRAP_S, c.CLAMP_TO_EDGE), c.texParameteri(c.TEXTURE_2D, c.TEXTURE_WRAP_T, c.CLAMP_TO_EDGE), this.shaderProgram = C.ug.Xd(C.yE), C.yi(s), c = this.jd.height, this.mr = this.o.width = this.jd.width, this.lr = this.o.height = c, this.ip = C.Ma.qq, this.Tp = this.Sp = 1, this.jA = this.HM = t, this.cf())
  6038. }
  6039. },
  6040. sf: function() {
  6041. C.log(C.n.Npa);
  6042. return s
  6043. },
  6044. QCa: function() {
  6045. C.log(C.n.Gpa);
  6046. return t
  6047. },
  6048. UCa: function() {
  6049. C.log(C.n.Kpa);
  6050. return t
  6051. },
  6052. VCa: function() {
  6053. C.log(C.n.Mpa);
  6054. return t
  6055. },
  6056. qIa: function(c) {
  6057. var d = C.t;
  6058. C.assert(this.mr == C.Cs(this.mr) && this.lr == C.Cs(this.lr) || c.UJa == d.CLAMP_TO_EDGE && c.VJa == d.CLAMP_TO_EDGE, "WebGLRenderingContext.CLAMP_TO_EDGE should be used in NPOT textures");
  6059. C.yi(this);
  6060. d.texParameteri(d.TEXTURE_2D, d.TEXTURE_MIN_FILTER, c.Qfa);
  6061. d.texParameteri(d.TEXTURE_2D, d.TEXTURE_MAG_FILTER, c.Nfa);
  6062. d.texParameteri(d.TEXTURE_2D, d.TEXTURE_WRAP_S, c.UJa);
  6063. d.texParameteri(d.TEXTURE_2D, d.TEXTURE_WRAP_T, c.VJa)
  6064. },
  6065. $Ga: function() {
  6066. var c = C.t;
  6067. C.yi(this);
  6068. this.jA ? c.texParameteri(c.TEXTURE_2D, c.TEXTURE_MIN_FILTER, c.LINEAR_MIPMAP_NEAREST) : c.texParameteri(c.TEXTURE_2D, c.TEXTURE_MIN_FILTER, c.LINEAR);
  6069. c.texParameteri(c.TEXTURE_2D, c.TEXTURE_MAG_FILTER, c.NEAREST)
  6070. },
  6071. B2: function() {
  6072. var c = C.t;
  6073. C.yi(this);
  6074. this.jA ? c.texParameteri(c.TEXTURE_2D, c.TEXTURE_MIN_FILTER, c.NEAREST_MIPMAP_NEAREST) : c.texParameteri(c.TEXTURE_2D, c.TEXTURE_MIN_FILTER, c.NEAREST);
  6075. c.texParameteri(c.TEXTURE_2D, c.TEXTURE_MAG_FILTER, c.NEAREST)
  6076. },
  6077. generateMipmap: function() {
  6078. C.assert(this.mr == C.Cs(this.mr) && this.lr == C.Cs(this.lr), "Mimpap texture only works in POT textures");
  6079. C.yi(this);
  6080. C.t.generateMipmap(C.t.TEXTURE_2D);
  6081. this.jA = q
  6082. },
  6083. $Ia: function() {
  6084. return C.Ma.zqa[this.ip]
  6085. },
  6086. oxa: function(c) {
  6087. c = c || this.ip;
  6088. var d = C.Ma.P8[c];
  6089. if (d != s) return d;
  6090. C.log(C.n.Dpa, c);
  6091. return - 1
  6092. },
  6093. dta: function(c, d, f) {
  6094. var g = C.Ma,
  6095. h = c.getData(),
  6096. k = s,
  6097. k = s,
  6098. n = c.GXa(),
  6099. p = C.size(c.tCa(), c.DAa()),
  6100. r = g.hda,
  6101. v = c.eTa();
  6102. n || (8 <= v ? r = g.rE: (C.log(C.n.Apa), r = g.qE));
  6103. var y = d * f;
  6104. if (r == g.qE) if (n) {
  6105. h = new Uint16Array(d * f);
  6106. k = c.getData();
  6107. for (v = 0; v < y; ++v) h[v] = (k[v] >> 0 & 255) >> 3 << 11 | (k[v] >> 8 & 255) >> 2 << 5 | (k[v] >> 16 & 255) >> 3 << 0
  6108. } else {
  6109. h = new Uint16Array(d * f);
  6110. k = c.getData();
  6111. for (v = 0; v < y; ++v) h[v] = (k[v] & 255) >> 3 << 11 | (k[v] & 255) >> 2 << 5 | (k[v] & 255) >> 3 << 0
  6112. } else if (r == g.AK) {
  6113. h = new Uint16Array(d * f);
  6114. k = c.getData();
  6115. for (v = 0; v < y; ++v) h[v] = (k[v] >> 0 & 255) >> 4 << 12 | (k[v] >> 8 & 255) >> 4 << 8 | (k[v] >> 16 & 255) >> 4 << 4 | (k[v] >> 24 & 255) >> 4 << 0
  6116. } else if (r == g.zK) {
  6117. h = new Uint16Array(d * f);
  6118. k = c.getData();
  6119. for (v = 0; v < y; ++v) h[v] = (k[v] >> 0 & 255) >> 3 << 11 | (k[v] >> 8 & 255) >> 3 << 6 | (k[v] >> 16 & 255) >> 3 << 1 | (k[v] >> 24 & 255) >> 7 << 0
  6120. } else if (r == g.pE) {
  6121. h = new Uint8Array(d * f);
  6122. k = c.getData();
  6123. for (v = 0; v < y; ++v) h[v] = k >> 24 & 255
  6124. }
  6125. if (n && r == g.rE) {
  6126. k = c.getData();
  6127. h = new Uint8Array(3 * d * f);
  6128. for (v = 0; v < y; ++v) h[3 * v] = k >> 0 & 255,
  6129. h[3 * v + 1] = k >> 8 & 255,
  6130. h[3 * v + 2] = k >> 16 & 255
  6131. }
  6132. this.Au(h, r, d, f, p);
  6133. c.getData();
  6134. this.HM = c.EYa();
  6135. return q
  6136. },
  6137. ye: function(c, d) {
  6138. this.ac || (this.ac = []);
  6139. this.ac.push({
  6140. jl: c,
  6141. jj: d
  6142. })
  6143. },
  6144. wGa: function(c) {
  6145. if (this.ac) for (var d = this.ac,
  6146. f = 0; f < d.length; f++) d[f].jj == c && d.splice(f, 1)
  6147. },
  6148. cf: function() {
  6149. if (this.ac) {
  6150. for (var c = this.ac,
  6151. d = 0,
  6152. f = c.length; d < f; d++) {
  6153. var g = c[d];
  6154. g.jl.call(g.jj, this)
  6155. }
  6156. c.length = 0
  6157. }
  6158. }
  6159. })
  6160. };
  6161. C.U.VU = function() {
  6162. var c = C.uq.prototype;
  6163. c.Pw = function() {
  6164. var c = C.t;
  6165. this.Me[0] = c.createBuffer();
  6166. this.Me[1] = c.createBuffer();
  6167. this.Hw = c.createBuffer();
  6168. this.cN()
  6169. };
  6170. c.cN = function() {
  6171. var c = C.t;
  6172. c.bindBuffer(c.ARRAY_BUFFER, this.Hw);
  6173. c.bufferData(c.ARRAY_BUFFER, this.eg, c.DYNAMIC_DRAW);
  6174. c.bindBuffer(c.ELEMENT_ARRAY_BUFFER, this.Me[1]);
  6175. c.bufferData(c.ELEMENT_ARRAY_BUFFER, this.Qb, c.STATIC_DRAW)
  6176. };
  6177. c.oda = function(c) {
  6178. var f;
  6179. f = 0;
  6180. if (! (0 === c || !this.texture || !this.texture.de)) {
  6181. var g = C.t;
  6182. C.yi(this.texture);
  6183. C.rf(C.Dv);
  6184. g.bindBuffer(g.ARRAY_BUFFER, this.Hw);
  6185. this.dirty && g.bufferData(g.ARRAY_BUFFER, this.eg, g.DYNAMIC_DRAW);
  6186. g.vertexAttribPointer(C.Lc, 3, g.FLOAT, t, 24, 0);
  6187. g.vertexAttribPointer(C.Hi, 4, g.UNSIGNED_BYTE, q, 24, 12);
  6188. g.vertexAttribPointer(C.Vg, 2, g.FLOAT, t, 24, 16);
  6189. this.dirty && (this.dirty = t);
  6190. g.bindBuffer(g.ELEMENT_ARRAY_BUFFER, this.Me[1]);
  6191. C.N7 ? g.drawElements(g.TRIANGLE_STRIP, 6 * c, g.UNSIGNED_SHORT, 6 * f * this.Qb.BYTES_PER_ELEMENT) : g.drawElements(g.TRIANGLES, 6 * c, g.UNSIGNED_SHORT, 6 * f * this.Qb.BYTES_PER_ELEMENT);
  6192. C.kl++
  6193. }
  6194. }
  6195. };
  6196. C.U.WU = function() {
  6197. var c = C.kb;
  6198. c.Md = function(c) {
  6199. var f = this.pf;
  6200. C.NN || (f = this.aG);
  6201. var g = f[c];
  6202. g || (g = f[c] = new C.Ma, g.url = c);
  6203. g.Md()
  6204. };
  6205. c.sd = function(c, f, g) {
  6206. C.assert(c, C.n.Cpa);
  6207. var h = this.pf;
  6208. C.NN || (h = this.aG);
  6209. var k = h[c] || h[C.M.Hv[c]];
  6210. if (k) return f && f.call(g),
  6211. k;
  6212. C.M.xd(c) || (C.M.u9(c) ? C.M.load(c,
  6213. function() {
  6214. f && f.call(g)
  6215. }) : C.M.fj[c] = C.M.wI(c,
  6216. function(g, h) {
  6217. if (g) return f ? f(g) : g;
  6218. C.kb.Md(c);
  6219. f && f(s, h)
  6220. }));
  6221. k = h[c] = new C.Ma;
  6222. k.url = c;
  6223. return k
  6224. };
  6225. delete c
  6226. };
  6227. C.U.TT = function() {
  6228. var c = C.Ma;
  6229. c.SMa = function(c) {
  6230. C.Qna = c
  6231. };
  6232. c.qq = 2;
  6233. c.rE = 3;
  6234. c.qE = 4;
  6235. c.pE = 5;
  6236. c.FT = 6;
  6237. c.ET = 7;
  6238. c.AK = 8;
  6239. c.zK = 7;
  6240. c.X6 = 9;
  6241. c.W6 = 10;
  6242. c.Fna = c.qq;
  6243. var d = C.Ma.zqa = {};
  6244. d[c.qq] = "RGBA8888";
  6245. d[c.rE] = "RGB888";
  6246. d[c.qE] = "RGB565";
  6247. d[c.pE] = "A8";
  6248. d[c.FT] = "I8";
  6249. d[c.ET] = "AI88";
  6250. d[c.AK] = "RGBA4444";
  6251. d[c.zK] = "RGB5A1";
  6252. d[c.X6] = "PVRTC4";
  6253. d[c.W6] = "PVRTC2";
  6254. d = C.Ma.P8 = {};
  6255. d[c.qq] = 32;
  6256. d[c.rE] = 24;
  6257. d[c.qE] = 16;
  6258. d[c.pE] = 8;
  6259. d[c.FT] = 8;
  6260. d[c.ET] = 16;
  6261. d[c.AK] = 16;
  6262. d[c.zK] = 16;
  6263. d[c.X6] = 4;
  6264. d[c.W6] = 3;
  6265. d = C.Ma.prototype;
  6266. C.e(d, "name", d.getName);
  6267. C.e(d, "pixelFormat", d.kea);
  6268. C.e(d, "pixelsWidth", d.w0);
  6269. C.e(d, "pixelsHeight", d.v0);
  6270. C.e(d, "width", d.ef);
  6271. C.e(d, "height", d.Dg);
  6272. c.hda = c.Fna
  6273. };
  6274. C.U.UT = function() {
  6275. var c = C.uq.prototype;
  6276. C.e(c, "totalQuads", c.Eea);
  6277. C.e(c, "capacity", c.Nda);
  6278. C.e(c, "quads", c.lea, c.iia)
  6279. };
  6280. C.bKa = 51;
  6281. C.eKa = 19;
  6282. C.gKa = 18;
  6283. C.dKa = 50;
  6284. C.aKa = 34;
  6285. C.ZJa = 35;
  6286. C.$Ja = 33;
  6287. C.cKa = 49;
  6288. C.fKa = 17;
  6289. C.Qna = t;
  6290. C.L === C.cb ? C.Ma = C.O.extend({
  6291. o: s,
  6292. de: t,
  6293. jd: s,
  6294. ac: s,
  6295. url: s,
  6296. ctor: function() {
  6297. this.o = C.size(0, 0);
  6298. this.de = t;
  6299. this.jd = s
  6300. },
  6301. w0: function() {
  6302. return this.o.width
  6303. },
  6304. v0: function() {
  6305. return this.o.height
  6306. },
  6307. i: function() {
  6308. var c = C.Ec();
  6309. return C.size(this.o.width / c, this.o.height / c)
  6310. },
  6311. ef: function() {
  6312. return this.o.width / C.Ec()
  6313. },
  6314. Dg: function() {
  6315. return this.o.height / C.Ec()
  6316. },
  6317. mAa: A("o"),
  6318. Ng: function(c) {
  6319. c && (this.jd = c)
  6320. },
  6321. FAa: A("jd"),
  6322. vDa: A("de"),
  6323. Md: function() {
  6324. if (!this.de) {
  6325. if (!this.jd) {
  6326. var c = C.M.xd(this.url);
  6327. if (!c) return;
  6328. this.Ng(c)
  6329. }
  6330. this.de = q;
  6331. c = this.jd;
  6332. this.o.width = c.width;
  6333. this.o.height = c.height;
  6334. this.cf()
  6335. }
  6336. },
  6337. description: function() {
  6338. return "\x3ccc.Texture2D | width \x3d " + this.o.width + " height " + this.o.height + "\x3e"
  6339. },
  6340. Au: B(t),
  6341. Zea: B(t),
  6342. sf: B(t),
  6343. n2: u(),
  6344. getName: B(s),
  6345. bBa: B(1),
  6346. HHa: u(),
  6347. cBa: B(1),
  6348. IHa: u(),
  6349. kea: B(s),
  6350. C0: B(s),
  6351. mJ: u(),
  6352. Hp: B(t),
  6353. ACa: B(t),
  6354. lGa: u(),
  6355. IDa: da(),
  6356. Kya: u(),
  6357. Nya: u(),
  6358. QCa: function() {
  6359. C.log(C.n.Fpa);
  6360. return t
  6361. },
  6362. UCa: function() {
  6363. C.log(C.n.Jpa);
  6364. return t
  6365. },
  6366. VCa: function() {
  6367. C.log(C.n.Lpa);
  6368. return t
  6369. },
  6370. qIa: u(),
  6371. $Ga: u(),
  6372. B2: u(),
  6373. generateMipmap: u(),
  6374. $Ia: B(""),
  6375. oxa: B( - 1),
  6376. ye: function(c, d) {
  6377. this.ac || (this.ac = []);
  6378. this.ac.push({
  6379. jl: c,
  6380. jj: d
  6381. })
  6382. },
  6383. wGa: function(c) {
  6384. if (this.ac) for (var d = this.ac,
  6385. f = 0; f < d.length; f++) d[f].jj == c && d.splice(f, 1)
  6386. },
  6387. cf: function() {
  6388. if (this.ac) {
  6389. for (var c = this.ac,
  6390. d = 0,
  6391. f = c.length; d < f; d++) {
  6392. var g = c[d];
  6393. g.jl.call(g.jj, this)
  6394. }
  6395. c.length = 0
  6396. }
  6397. }
  6398. }) : (C.assert("function" === typeof C.U.UU, C.n.Bf, "TexturesWebGL.js"), C.U.UU(), delete C.U.UU);
  6399. C.assert("function" === typeof C.U.TT, C.n.Bf, "TexturesPropertyDefine.js");
  6400. C.U.TT();
  6401. delete C.U.TT;
  6402. C.kb = {
  6403. pf: {},
  6404. UG: {},
  6405. kZ: 0 | 1E3 * Math.random(),
  6406. aG: {},
  6407. jta: function() {
  6408. var c, d = this.aG,
  6409. f = this.pf;
  6410. for (c in d) {
  6411. var g = d[c];
  6412. g.Md();
  6413. f[c] = g
  6414. }
  6415. this.aG = {}
  6416. },
  6417. eQa: function() {
  6418. C.log(C.n.fJa)
  6419. },
  6420. TPa: function() {
  6421. C.log(C.n.dJa)
  6422. },
  6423. description: function() {
  6424. return "\x3cTextureCache | Number of textures \x3d " + this.pf.length + "\x3e"
  6425. },
  6426. av: function(c) {
  6427. return this.pf[c] || this.pf[C.M.Hv[c]]
  6428. },
  6429. PAa: function(c) {
  6430. for (var d in this.pf) if (this.pf[d] == c) return d;
  6431. return s
  6432. },
  6433. dsa: function() {
  6434. this.kZ++;
  6435. return "_textureKey_" + this.kZ
  6436. },
  6437. OP: function(c) {
  6438. var d = this.PAa(c);
  6439. d || (d = c instanceof HTMLImageElement ? c.src: this.dsa());
  6440. this.UG[d] || (this.UG[d] = C.SB(c));
  6441. return this.UG[d]
  6442. },
  6443. dQa: function() {
  6444. C.log(C.n.eJa)
  6445. },
  6446. X1a: function() {
  6447. var c = this.pf,
  6448. d;
  6449. for (d in c) c[d] && c[d].n2();
  6450. this.pf = {}
  6451. },
  6452. t2a: function(c) {
  6453. if (c) {
  6454. var d = this.pf,
  6455. f;
  6456. for (f in d) d[f] == c && (d[f].n2(), delete d[f])
  6457. }
  6458. },
  6459. u2a: function(c) {
  6460. c != s && this.pf[c] && delete this.pf[c]
  6461. },
  6462. wxa: function(c, d) {
  6463. if (d instanceof C.Ma) this.pf[c] = d;
  6464. else {
  6465. var f = new C.Ma;
  6466. f.Ng(d);
  6467. f.Md();
  6468. this.pf[c] = f
  6469. }
  6470. },
  6471. jQa: function(c, d) {
  6472. C.assert(c, C.n.hJa);
  6473. if (d && this.pf[d]) return this.pf[d];
  6474. var f = new C.Ma;
  6475. f.Zea(c);
  6476. d != s && f != s ? this.pf[d] = f: C.log(C.n.gJa);
  6477. return f
  6478. },
  6479. QRa: function() {
  6480. var c = 0,
  6481. d = 0,
  6482. f = this.pf,
  6483. g;
  6484. for (g in f) {
  6485. var h = f[g];
  6486. c++;
  6487. h.jd instanceof HTMLImageElement ? C.log(C.n.iJa, g, h.jd.src, h.pixelsWidth, h.pixelsHeight) : C.log(C.n.Wia, g, h.pixelsWidth, h.pixelsHeight);
  6488. d += 4 * h.pixelsWidth * h.pixelsHeight
  6489. }
  6490. f = this.UG;
  6491. for (g in f) {
  6492. var h = f[g],
  6493. k;
  6494. for (k in h) {
  6495. var n = h[k];
  6496. c++;
  6497. C.log(C.n.Wia, g, n.width, n.height);
  6498. d += 4 * n.width * n.height
  6499. }
  6500. }
  6501. C.log(C.n.jJa, c, d / 1024, (d / 1048576).toFixed(2))
  6502. },
  6503. dt: function() {
  6504. this.pf = {};
  6505. this.UG = {};
  6506. this.kZ = 0 | 1E3 * Math.random();
  6507. this.aG = {}
  6508. }
  6509. };
  6510. C.L === C.cb ? (H = C.kb, H.Md = function(c) {
  6511. var d = this.pf,
  6512. f = d[c];
  6513. f || (f = d[c] = new C.Ma, f.url = c);
  6514. f.Md()
  6515. },
  6516. H.sd = function(c, d, f) {
  6517. C.assert(c, C.n.Bpa);
  6518. var g = this.pf,
  6519. h = g[c] || g[C.M.Hv[c]];
  6520. if (h) return d && d.call(f),
  6521. h;
  6522. h = g[c] = new C.Ma;
  6523. h.url = c;
  6524. C.M.xd(c) ? h.Md() : C.M.u9(c) ? C.M.load(c,
  6525. function() {
  6526. d && d.call(f)
  6527. }) : C.M.fj[c] = C.M.wI(c,
  6528. function(f, g) {
  6529. if (f) return d ? d(f) : f;
  6530. C.kb.Md(c);
  6531. d && d(s, g)
  6532. });
  6533. return h
  6534. },
  6535. H = s) : (C.assert("function" === typeof C.U.WU, C.n.Bf, "TexturesWebGL.js"), C.U.WU(), delete C.U.WU);
  6536. C.uq = C.O.extend({
  6537. dirty: t,
  6538. texture: s,
  6539. Qb: s,
  6540. Me: s,
  6541. Yf: 0,
  6542. hf: s,
  6543. eg: s,
  6544. Hw: s,
  6545. $k: s,
  6546. ctor: function(c, d) {
  6547. this.Me = [];
  6548. "string" == typeof c ? this.Ce(c, d) : c instanceof C.Ma && this.ta(c, d)
  6549. },
  6550. Eea: A("Sb"),
  6551. Nda: A("Yf"),
  6552. ob: A("texture"),
  6553. Va: x("texture"),
  6554. xha: x("dirty"),
  6555. h1: A("dirty"),
  6556. lea: A("hf"),
  6557. iia: x("hf"),
  6558. zra: function(c, d) {
  6559. if (c) for (var f = 0; f < c.length; f++) this.ZN(c[f], d + f)
  6560. },
  6561. ZN: function(c, d) {
  6562. var f = this.hf;
  6563. f[d] ? (f[d].T = c.T, f[d].Y = c.Y, f[d].X = c.X, f[d].V = c.V) : f[d] = new C.Uc(c.X, c.T, c.V, c.Y, this.eg, d * C.Uc.BYTES_PER_ELEMENT)
  6564. },
  6565. description: function() {
  6566. return "\x3ccc.TextureAtlas | totalQuads \x3d" + this.Sb + "\x3e"
  6567. },
  6568. Aba: function() {
  6569. if (0 !== this.Yf) for (var c = this.Qb,
  6570. d = this.Yf,
  6571. f = 0; f < d; f++) C.N7 ? (c[6 * f + 0] = 4 * f + 0, c[6 * f + 1] = 4 * f + 0, c[6 * f + 2] = 4 * f + 2, c[6 * f + 3] = 4 * f + 1, c[6 * f + 4] = 4 * f + 3, c[6 * f + 5] = 4 * f + 3) : (c[6 * f + 0] = 4 * f + 0, c[6 * f + 1] = 4 * f + 1, c[6 * f + 2] = 4 * f + 2, c[6 * f + 3] = 4 * f + 3, c[6 * f + 4] = 4 * f + 2, c[6 * f + 5] = 4 * f + 1)
  6572. },
  6573. Pw: function() {
  6574. var c = C.t;
  6575. this.Me[0] = c.createBuffer();
  6576. this.Me[1] = c.createBuffer();
  6577. this.Hw = c.createBuffer();
  6578. this.cN()
  6579. },
  6580. cN: function() {
  6581. var c = C.t;
  6582. c.bindBuffer(c.ARRAY_BUFFER, this.Hw);
  6583. c.bufferData(c.ARRAY_BUFFER, this.eg, c.DYNAMIC_DRAW);
  6584. c.bindBuffer(c.ELEMENT_ARRAY_BUFFER, this.Me[1]);
  6585. c.bufferData(c.ELEMENT_ARRAY_BUFFER, this.Qb, c.STATIC_DRAW)
  6586. },
  6587. Ce: function(c, d) {
  6588. var f = C.kb.sd(c);
  6589. if (f) return this.ta(f, d);
  6590. C.log(C.n.Opa, c);
  6591. return t
  6592. },
  6593. ta: function(c, d) {
  6594. C.assert(c, C.n.Ppa);
  6595. this.Yf = d |= 0;
  6596. this.Sb = 0;
  6597. this.texture = c;
  6598. this.hf = [];
  6599. this.Qb = new Uint16Array(6 * d);
  6600. var f = C.Uc.BYTES_PER_ELEMENT;
  6601. this.eg = new ArrayBuffer(f * d);
  6602. this.$k = new Uint8Array(this.eg);
  6603. if ((!this.hf || !this.Qb) && 0 < d) return t;
  6604. for (var g = this.hf,
  6605. h = 0; h < d; h++) g[h] = new C.Uc(s, s, s, s, this.eg, h * f);
  6606. this.Aba();
  6607. this.Pw();
  6608. return this.dirty = q
  6609. },
  6610. HJ: function(c, d) {
  6611. C.assert(c, C.n.Zpa);
  6612. C.assert(0 <= d && d < this.Yf, C.n.$pa);
  6613. this.Sb = Math.max(d + 1, this.Sb);
  6614. this.ZN(c, d);
  6615. this.dirty = q
  6616. },
  6617. e1: function(c, d) {
  6618. C.assert(d < this.Yf, C.n.Spa);
  6619. this.Sb++;
  6620. if (this.Sb > this.Yf) C.log(C.n.Z7);
  6621. else {
  6622. var f = C.Uc.BYTES_PER_ELEMENT,
  6623. g = d * f,
  6624. h = (this.Sb - 1 - d) * f;
  6625. this.hf[this.Sb - 1] = new C.Uc(s, s, s, s, this.eg, (this.Sb - 1) * f);
  6626. this.$k.set(this.$k.subarray(g, g + h), g + f);
  6627. this.ZN(c, d);
  6628. this.dirty = q
  6629. }
  6630. },
  6631. ZXa: function(c, d, f) {
  6632. f = f || c.length;
  6633. C.assert(d + f <= this.Yf, C.n.Tpa);
  6634. var g = C.Uc.BYTES_PER_ELEMENT;
  6635. this.Sb += f;
  6636. if (this.Sb > this.Yf) C.log(C.n.Z7);
  6637. else {
  6638. var h = d * g,
  6639. k = (this.Sb - 1 - d - f) * g,
  6640. n = this.Sb - 1 - f,
  6641. p;
  6642. for (p = 0; p < f; p++) this.hf[n + p] = new C.Uc(s, s, s, s, this.eg, (this.Sb - 1) * g);
  6643. this.$k.set(this.$k.subarray(h, h + k), h + g * f);
  6644. for (p = 0; p < f; p++) this.ZN(c[p], d + p);
  6645. this.dirty = q
  6646. }
  6647. },
  6648. YXa: function(c, d) {
  6649. if (c !== d) {
  6650. C.assert(0 <= d || d < this.Sb, C.n.Qpa);
  6651. C.assert(0 <= c || c < this.Sb, C.n.Rpa);
  6652. var f = C.Uc.BYTES_PER_ELEMENT,
  6653. g = this.$k,
  6654. h = g.subarray(c * f, f),
  6655. k;
  6656. c > d ? (k = d * f, g.set(g.subarray(k, k + (c - d) * f), k + f), g.set(h, k)) : (k = (c + 1) * f, g.set(g.subarray(k, k + (d - c) * f), k - f), g.set(h, d * f));
  6657. this.dirty = q
  6658. }
  6659. },
  6660. Vga: function(c) {
  6661. C.assert(c < this.Sb, C.n.Xpa);
  6662. var d = C.Uc.BYTES_PER_ELEMENT;
  6663. this.Sb--;
  6664. this.hf.length = this.Sb;
  6665. if (c !== this.Sb) {
  6666. var f = (c + 1) * d;
  6667. this.$k.set(this.$k.subarray(f, f + (this.Sb - c) * d), f - d)
  6668. }
  6669. this.dirty = q
  6670. },
  6671. yGa: function(c, d) {
  6672. C.assert(c + d <= this.Sb, C.n.Ypa);
  6673. this.Sb -= d;
  6674. if (c !== this.Sb) {
  6675. var f = C.Uc.BYTES_PER_ELEMENT,
  6676. g = (c + d) * f;
  6677. this.$k.set(this.$k.subarray(g, g + (this.Sb - c) * f), c * f)
  6678. }
  6679. this.dirty = q
  6680. },
  6681. NC: function() {
  6682. this.Sb = this.hf.length = 0
  6683. },
  6684. Vt: x("dirty"),
  6685. eR: function(c) {
  6686. if (c == this.Yf) return q;
  6687. var d = C.Uc.BYTES_PER_ELEMENT,
  6688. f = this.Yf;
  6689. this.Sb = Math.min(this.Sb, c);
  6690. var g = this.Yf = 0 | c,
  6691. h = this.Sb;
  6692. if (this.hf == s) {
  6693. this.hf = [];
  6694. this.eg = new ArrayBuffer(d * g);
  6695. this.$k = new Uint8Array(this.eg);
  6696. for (c = 0; c < g; c++) this.hf = new C.Uc(s, s, s, s, this.eg, c * d)
  6697. } else {
  6698. var k, n, p = this.hf;
  6699. if (g > f) {
  6700. k = [];
  6701. n = new ArrayBuffer(d * g);
  6702. for (c = 0; c < h; c++) k[c] = new C.Uc(p[c].X, p[c].T, p[c].V, p[c].Y, n, c * d);
  6703. for (; c < g; c++) k[c] = new C.Uc(s, s, s, s, n, c * d)
  6704. } else {
  6705. h = Math.max(h, g);
  6706. k = [];
  6707. n = new ArrayBuffer(d * g);
  6708. for (c = 0; c < h; c++) k[c] = new C.Uc(p[c].X, p[c].T, p[c].V, p[c].Y, n, c * d)
  6709. }
  6710. this.$k = new Uint8Array(n);
  6711. this.hf = k;
  6712. this.eg = n
  6713. }
  6714. this.Qb == s ? this.Qb = new Uint16Array(6 * g) : g > f ? (d = new Uint16Array(6 * g), d.set(this.Qb, 0), this.Qb = d) : this.Qb = this.Qb.subarray(0, 6 * g);
  6715. this.Aba();
  6716. this.cN();
  6717. return this.dirty = q
  6718. },
  6719. Pea: function(c) {
  6720. this.Sb += c
  6721. },
  6722. Sfa: function(c, d, f) {
  6723. if (f === m) {
  6724. if (f = d, d = this.Sb - c, C.assert(f + (this.Sb - c) <= this.Yf, C.n.Upa), 0 === d) return
  6725. } else if (C.assert(f + d <= this.Sb, C.n.Vpa), C.assert(c < this.Sb, C.n.Wpa), c == f) return;
  6726. var g = C.Uc.BYTES_PER_ELEMENT,
  6727. h = c * g,
  6728. k = d * g,
  6729. n = this.$k,
  6730. p = n.subarray(h, h + k),
  6731. r = f * g;
  6732. f < c ? (d = f * g, n.set(n.subarray(d, d + (c - f) * g), d + k)) : (d = (c + d) * g, n.set(n.subarray(d, d + (f - c) * g), h));
  6733. n.set(p, r);
  6734. this.dirty = q
  6735. },
  6736. wda: function(c, d) {
  6737. for (var f = d * C.Uc.BYTES_PER_ELEMENT,
  6738. g = new Uint8Array(this.eg, c * C.Uc.BYTES_PER_ELEMENT, f), h = 0; h < f; h++) g[h] = 0
  6739. },
  6740. KB: function() {
  6741. this.oda(this.Sb)
  6742. },
  6743. pPa: function() {
  6744. var c = C.t;
  6745. this.Me && (this.Me[0] && c.deleteBuffer(this.Me[0]), this.Me[1] && c.deleteBuffer(this.Me[1]));
  6746. this.Hw && c.deleteBuffer(this.Hw)
  6747. }
  6748. });
  6749. H = C.uq.prototype;
  6750. C.e(H, "totalQuads", H.Eea);
  6751. C.e(H, "capacity", H.Nda);
  6752. C.e(H, "quads", H.lea, H.iia);
  6753. C.uq.create = function(c, d) {
  6754. return new C.uq(c, d)
  6755. };
  6756. C.L === C.la && (C.assert("function" === typeof C.U.VU, C.n.Bf, "TexturesWebGL.js"), C.U.VU(), delete C.U.VU);
  6757. C.assert("function" === typeof C.U.UT, C.n.Bf, "TexturesPropertyDefine.js");
  6758. C.U.UT();
  6759. delete C.U.UT;
  6760. C.Ll = C.A.extend({
  6761. qa: "Scene",
  6762. ctor: function() {
  6763. C.A.prototype.ctor.call(this);
  6764. this.nn = q;
  6765. this.S(0.5, 0.5);
  6766. this.Ca(C.Q.aa)
  6767. }
  6768. });
  6769. C.Ll.create = function() {
  6770. return new C.Ll
  6771. };
  6772. C.A6 = C.Ll.extend({
  6773. Zq: s,
  6774. $F: 0,
  6775. Vv: 0,
  6776. ee: s,
  6777. qa: "LoaderScene",
  6778. j: function() {
  6779. var c = this,
  6780. d = 200,
  6781. f = c.xV = C.gd.create(C.color(32, 32, 32, 255));
  6782. f.p(C.ts.bP);
  6783. c.q(f, 0);
  6784. var g = 24,
  6785. h = -d / 2 + 100;
  6786. C.waa && (C.M.wI(C.waa, {
  6787. g1: t
  6788. },
  6789. function(f, g) {
  6790. d = g.height;
  6791. c.$$(g, C.ts.vH)
  6792. }), g = 14, h = -d / 2 - 10);
  6793. g = c.ee = C.fa.create("Loading... 0%", "Arial", g);
  6794. g.p(C.ho(C.ts.vH, C.d(0, h)));
  6795. g.G(C.color(180, 180, 180));
  6796. f.q(this.ee, 10);
  6797. return q
  6798. },
  6799. $$: function(c, d) {
  6800. var f = this.Rva = new C.Ma;
  6801. f.Ng(c);
  6802. f.Md();
  6803. f = this.Cta = C.u.create(f);
  6804. f.Za(C.Ec());
  6805. f.x = d.x;
  6806. f.y = d.y;
  6807. this.xV.q(f, 10)
  6808. },
  6809. Z: function() {
  6810. C.A.prototype.Z.call(this);
  6811. this.rg(this.MG, 0.3)
  6812. },
  6813. Na: function() {
  6814. C.A.prototype.Na.call(this);
  6815. this.ee.sa("Loading... 0%")
  6816. },
  6817. X0: function(c, d) {
  6818. "string" == typeof c && (c = [c]);
  6819. this.s2 = c || [];
  6820. this.mg = d
  6821. },
  6822. MG: function() {
  6823. var c = this;
  6824. c.Zh(c.MG);
  6825. var d = c.s2;
  6826. c.$F = d.length;
  6827. c.Vv = 0;
  6828. C.M.load(d,
  6829. function(d, g) {
  6830. c.Vv = g
  6831. },
  6832. function() {
  6833. c.mg && c.mg()
  6834. });
  6835. c.rg(c.bH)
  6836. },
  6837. bH: function() {
  6838. var c = this.Vv,
  6839. d = this.$F,
  6840. f;
  6841. f = Math.min(100 * (c / d) | 0, 100);
  6842. this.ee.sa("Loading... " + f + "%");
  6843. c >= d && this.Zh(this.bH)
  6844. }
  6845. });
  6846. C.A6.KC = function(c, d) {
  6847. var f = C;
  6848. f.xI || (f.xI = new C.A6, f.xI.j());
  6849. f.xI.X0(c, d);
  6850. C.Q.PC(f.xI);
  6851. return f.xI
  6852. };
  6853. C.U.sT = function() {
  6854. var c = C.qe.prototype;
  6855. c.Hca = u();
  6856. c.cja = u();
  6857. c.J = C.A.prototype.J
  6858. };
  6859. C.U.RU = function() {
  6860. var c = C.gd.prototype;
  6861. c.cO = s;
  6862. c.XY = s;
  6863. c.DZ = s;
  6864. c.PV = s;
  6865. c.ZY = s;
  6866. c.YY = s;
  6867. c.ctor = function(c, f, g) {
  6868. this.ZY = new ArrayBuffer(32);
  6869. this.YY = new ArrayBuffer(16);
  6870. var h = this.ZY,
  6871. k = this.YY,
  6872. n = C.bf.BYTES_PER_ELEMENT,
  6873. p = ja.BYTES_PER_ELEMENT;
  6874. this.cO = [new C.bf(0, 0, h, 0), new C.bf(0, 0, h, n), new C.bf(0, 0, h, 2 * n), new C.bf(0, 0, h, 3 * n)];
  6875. this.XY = [C.color(0, 0, 0, 255, k, 0), C.color(0, 0, 0, 255, k, p), C.color(0, 0, 0, 255, k, 2 * p), C.color(0, 0, 0, 255, k, 3 * p)];
  6876. this.DZ = C.t.createBuffer();
  6877. this.PV = C.t.createBuffer();
  6878. C.ai.prototype.ctor.call(this);
  6879. this.C = new C.Vm(C.Ic, C.Hc);
  6880. C.gd.prototype.j.call(this, c, f, g)
  6881. };
  6882. c.Ca = function(c, f) {
  6883. var g = this.cO;
  6884. f === m ? (g[1].x = c.width, g[2].y = c.height, g[3].x = c.width, g[3].y = c.height) : (g[1].x = c, g[2].y = f, g[3].x = c, g[3].y = f);
  6885. this.yV();
  6886. C.qe.prototype.Ca.call(this, c, f)
  6887. };
  6888. c.Qh = function(c) {
  6889. var f = this.cO;
  6890. f[1].x = c;
  6891. f[3].x = c;
  6892. this.yV();
  6893. C.qe.prototype.Qh.call(this, c)
  6894. };
  6895. c.Ph = function(c) {
  6896. var f = this.cO;
  6897. f[2].y = c;
  6898. f[3].y = c;
  6899. this.yV();
  6900. C.qe.prototype.Ph.call(this, c)
  6901. };
  6902. c.Gd = function() {
  6903. for (var c = this.wb,
  6904. f = this.hb,
  6905. g = this.XY,
  6906. h = 0; 4 > h; h++) g[h].r = c.r,
  6907. g[h].g = c.g,
  6908. g[h].b = c.b,
  6909. g[h].a = f;
  6910. this.n9()
  6911. };
  6912. c.ka = function(c) {
  6913. c = c || C.t;
  6914. C.BC(this);
  6915. C.rf(C.Ch | C.ZK);
  6916. c.bindBuffer(c.ARRAY_BUFFER, this.DZ);
  6917. c.vertexAttribPointer(C.Lc, 2, c.FLOAT, t, 0, 0);
  6918. c.bindBuffer(c.ARRAY_BUFFER, this.PV);
  6919. c.vertexAttribPointer(C.Hi, 4, c.UNSIGNED_BYTE, q, 0, 0);
  6920. C.Gm(this.C.src, this.C.ga);
  6921. c.drawArrays(c.TRIANGLE_STRIP, 0, 4)
  6922. };
  6923. c.yV = function() {
  6924. var c = C.t;
  6925. c.bindBuffer(c.ARRAY_BUFFER, this.DZ);
  6926. c.bufferData(c.ARRAY_BUFFER, this.ZY, c.STATIC_DRAW)
  6927. };
  6928. c.n9 = function() {
  6929. var c = C.t;
  6930. c.bindBuffer(c.ARRAY_BUFFER, this.PV);
  6931. c.bufferData(c.ARRAY_BUFFER, this.YY, c.STATIC_DRAW)
  6932. }
  6933. };
  6934. C.U.SU = function() {
  6935. var c = C.pq.prototype;
  6936. c.ka = C.gd.prototype.ka;
  6937. c.Gd = function() {
  6938. var c = this.Ji,
  6939. f = C.Ye(c);
  6940. if (0 !== f) {
  6941. var g = Math.sqrt(2),
  6942. c = C.d(c.x / f, c.y / f);
  6943. this.LL && (c = C.Wp(c, 1 / (Math.abs(c.x) + Math.abs(c.y)) * g));
  6944. var h = this.hb / 255,
  6945. f = this.wb,
  6946. k = this.Ef,
  6947. f = {
  6948. r: f.r,
  6949. g: f.g,
  6950. b: f.b,
  6951. a: this.eB * h
  6952. },
  6953. h = {
  6954. r: k.r,
  6955. g: k.g,
  6956. b: k.b,
  6957. a: this.Tz * h
  6958. },
  6959. n = this.XY,
  6960. k = n[0],
  6961. p = n[1],
  6962. r = n[2],
  6963. n = n[3];
  6964. k.r = h.r + (f.r - h.r) * ((g + c.x + c.y) / (2 * g));
  6965. k.g = h.g + (f.g - h.g) * ((g + c.x + c.y) / (2 * g));
  6966. k.b = h.b + (f.b - h.b) * ((g + c.x + c.y) / (2 * g));
  6967. k.a = h.a + (f.a - h.a) * ((g + c.x + c.y) / (2 * g));
  6968. p.r = h.r + (f.r - h.r) * ((g - c.x + c.y) / (2 * g));
  6969. p.g = h.g + (f.g - h.g) * ((g - c.x + c.y) / (2 * g));
  6970. p.b = h.b + (f.b - h.b) * ((g - c.x + c.y) / (2 * g));
  6971. p.a = h.a + (f.a - h.a) * ((g - c.x + c.y) / (2 * g));
  6972. r.r = h.r + (f.r - h.r) * ((g + c.x - c.y) / (2 * g));
  6973. r.g = h.g + (f.g - h.g) * ((g + c.x - c.y) / (2 * g));
  6974. r.b = h.b + (f.b - h.b) * ((g + c.x - c.y) / (2 * g));
  6975. r.a = h.a + (f.a - h.a) * ((g + c.x - c.y) / (2 * g));
  6976. n.r = h.r + (f.r - h.r) * ((g - c.x - c.y) / (2 * g));
  6977. n.g = h.g + (f.g - h.g) * ((g - c.x - c.y) / (2 * g));
  6978. n.b = h.b + (f.b - h.b) * ((g - c.x - c.y) / (2 * g));
  6979. n.a = h.a + (f.a - h.a) * ((g - c.x - c.y) / (2 * g));
  6980. this.n9()
  6981. }
  6982. }
  6983. };
  6984. C.U.RT = function() {
  6985. var c = C.ai.prototype;
  6986. C.e(c, "opacityModifyRGB", c.qg, c.$d);
  6987. C.e(c, "opacity", c.rb, c.K);
  6988. C.e(c, "cascadeOpacity", c.nI, c.Qu);
  6989. C.e(c, "color", c.Xa, c.G);
  6990. C.e(c, "cascadeColor", c.mI, c.Pu)
  6991. };
  6992. C.U.PT = function() {
  6993. var c = C.gd.prototype;
  6994. C.e(c, "width", c.ef, c.Qh);
  6995. C.e(c, "height", c.Dg, c.Ph)
  6996. };
  6997. C.U.QT = function() {
  6998. var c = C.pq.prototype;
  6999. C.e(c, "startColor", c.NP, c.tg);
  7000. C.e(c, "endColor", c.EP, c.sg);
  7001. C.e(c, "startOpacity", c.TBa, c.tia);
  7002. C.e(c, "endOpacity", c.vAa, c.Aha);
  7003. C.e(c, "vector", c.mCa, c.UR)
  7004. };
  7005. C.qe = C.A.extend({
  7006. gw: t,
  7007. tL: s,
  7008. qa: "Layer",
  7009. ctor: function() {
  7010. var c = C.A.prototype;
  7011. c.ctor.call(this);
  7012. this.nn = q;
  7013. c.S.call(this, 0.5, 0.5);
  7014. c.Ca.call(this, C.KJ)
  7015. },
  7016. Hca: s,
  7017. cja: s,
  7018. iYa: A("gw"),
  7019. J: s
  7020. });
  7021. C.qe.create = function() {
  7022. return new C.qe
  7023. };
  7024. if (C.L === C.cb) {
  7025. var ka = C.qe.prototype;
  7026. ka.Hca = function() {
  7027. if (!this.gw) {
  7028. this.gw = this.Lk = q;
  7029. this.Fq = this;
  7030. for (var c = this.l,
  7031. d = 0,
  7032. f = c.length; d < f; d++) c[d].zY(this);
  7033. this.tL || (this.tL = new C.ika)
  7034. }
  7035. };
  7036. ka.cja = function() {
  7037. if (this.gw) {
  7038. this.gw = t;
  7039. this.Lk = q;
  7040. this.Fq = s;
  7041. for (var c = this.l,
  7042. d = 0,
  7043. f = c.length; d < f; d++) c[d].zY(s)
  7044. }
  7045. };
  7046. ka.J = function(c) {
  7047. if (this.gw) {
  7048. c = c || C.t;
  7049. var d, f = this.l,
  7050. g = f.length;
  7051. if (this.Ja && 0 !== g) {
  7052. var h = this.tL;
  7053. c.save();
  7054. this.transform(c);
  7055. if (this.Lk) {
  7056. d = this.HW();
  7057. d.width |= 0;
  7058. d.height |= 0;
  7059. var k = h.Ki;
  7060. h.Yga(d.width, d.height);
  7061. k.translate(0 - d.x, d.height + d.y);
  7062. var n = h.Ep();
  7063. h.p(n.x + d.x, n.y + d.y);
  7064. this.ed();
  7065. for (d = 0; d < g; d++) f[d].J(k);
  7066. this.Lk = t
  7067. }
  7068. h.J(c);
  7069. this.arrivalOrder = 0;
  7070. c.restore()
  7071. }
  7072. } else C.A.prototype.J.call(this, c)
  7073. };
  7074. ka.HW = function() {
  7075. var c = s;
  7076. if (!this.l || 0 === this.l.length) return C.rect(0, 0, 10, 10);
  7077. for (var d = this.l,
  7078. f = 0; f < d.length; f++) {
  7079. var g = d[f];
  7080. g && g.Ja && (c ? (g = g.JF()) && (c = C.MC(c, g)) : c = g.JF())
  7081. }
  7082. return c
  7083. };
  7084. ka = s
  7085. } else C.assert("function" === typeof C.U.sT, C.n.Bf, "CCLayerWebGL.js"),
  7086. C.U.sT(),
  7087. delete C.U.sT;
  7088. C.ai = C.qe.extend({
  7089. sb: q,
  7090. hb: 255,
  7091. Ig: 255,
  7092. wb: s,
  7093. od: s,
  7094. Ag: t,
  7095. Zf: t,
  7096. qa: "LayerRGBA",
  7097. ctor: function() {
  7098. C.qe.prototype.ctor.call(this);
  7099. this.wb = C.color(255, 255, 255, 255);
  7100. this.od = C.color(255, 255, 255, 255)
  7101. },
  7102. j: function() {
  7103. var c = C.qe.prototype;
  7104. this.nn = q;
  7105. c.S.call(this, 0.5, 0.5);
  7106. c.Ca.call(this, C.KJ);
  7107. this.cascadeColor = this.cascadeOpacity = t;
  7108. return q
  7109. },
  7110. rb: A("Ig"),
  7111. Tda: A("hb"),
  7112. K: function(c) {
  7113. this.hb = this.Ig = c;
  7114. var d = 255,
  7115. f = this.Vb;
  7116. f && (f.sb && f.cascadeOpacity) && (d = f.hb);
  7117. this.dc(d);
  7118. this.wb.a = this.od.a = c
  7119. },
  7120. dc: function(c) {
  7121. this.hb = 0 | this.Ig * c / 255;
  7122. if (this.Ag) {
  7123. c = this.l;
  7124. for (var d, f = 0; f < c.length; f++)(d = c[f]) && d.sb && d.dc(this.hb)
  7125. }
  7126. },
  7127. nI: A("Ag"),
  7128. Qu: function(c) {
  7129. this.Ag !== c && ((this.Ag = c) ? this.Sz() : this.dW())
  7130. },
  7131. Sz: function() {
  7132. var c = 255,
  7133. d = this.Vb;
  7134. d && (d.sb && d.cascadeOpacity) && (c = d.hb);
  7135. this.dc(c)
  7136. },
  7137. dW: function() {
  7138. this.hb = this.Ig;
  7139. for (var c = this.l,
  7140. d, f = 0; f < c.length; f++)(d = c[f]) && d.sb && d.dc(255)
  7141. },
  7142. Xa: function() {
  7143. var c = this.od;
  7144. return C.color(c.r, c.g, c.b, c.a)
  7145. },
  7146. xu: function() {
  7147. var c = this.wb;
  7148. return C.color(c.r, c.g, c.b)
  7149. },
  7150. G: function(c) {
  7151. var d = this.wb,
  7152. f = this.od;
  7153. d.r = f.r = c.r;
  7154. d.g = f.g = c.g;
  7155. d.b = f.b = c.b;
  7156. d = (d = this.Vb) && d.sb && d.cascadeColor ? d.xu() : C.color.WHITE;
  7157. this.Tb(d);
  7158. c.a !== m && !c.jx && this.K(c.a)
  7159. },
  7160. Tb: function(c) {
  7161. var d = this.wb,
  7162. f = this.od;
  7163. d.r = 0 | f.r * c.r / 255;
  7164. d.g = 0 | f.g * c.g / 255;
  7165. d.b = 0 | f.b * c.b / 255;
  7166. if (this.Zf) {
  7167. c = this.l;
  7168. for (var g = 0; g < c.length; g++)(f = c[g]) && f.sb && f.Tb(d)
  7169. }
  7170. },
  7171. mI: A("Zf"),
  7172. Pu: function(c) {
  7173. this.Zf !== c && ((this.Zf = c) ? this.Rz() : this.cW())
  7174. },
  7175. Rz: function() {
  7176. var c;
  7177. c = (c = this.Vb) && c.sb && c.cascadeColor ? c.xu() : C.color.WHITE;
  7178. this.Tb(c)
  7179. },
  7180. cW: function() {
  7181. var c = this.wb,
  7182. d = this.od;
  7183. c.r = d.r;
  7184. c.g = d.g;
  7185. c.b = d.b;
  7186. var c = this.l,
  7187. d = C.color.WHITE,
  7188. f, g;
  7189. for (g = 0; g < c.length; g++)(f = c[g]) && f.sb && f.Tb(d)
  7190. },
  7191. q: function(c, d, f) {
  7192. C.A.prototype.q.call(this, c, d, f);
  7193. this.Zf && this.Rz();
  7194. this.Ag && this.Sz()
  7195. },
  7196. $d: u(),
  7197. qg: B(t)
  7198. });
  7199. C.assert("function" === typeof C.U.RT, C.n.Bf, "CCLayerPropertyDefine.js");
  7200. C.U.RT();
  7201. delete C.U.RT;
  7202. C.gd = C.ai.extend({
  7203. C: s,
  7204. qa: "LayerColor",
  7205. ek: A("C"),
  7206. SQa: function(c, d) {
  7207. this.width = c;
  7208. this.height = d
  7209. },
  7210. RQa: x("width"),
  7211. QQa: x("height"),
  7212. $d: u(),
  7213. qg: B(t),
  7214. G: function(c) {
  7215. C.ai.prototype.G.call(this, c);
  7216. this.Gd()
  7217. },
  7218. K: function(c) {
  7219. C.ai.prototype.K.call(this, c);
  7220. this.Gd()
  7221. },
  7222. rA: t,
  7223. ctor: s,
  7224. j: function(c, d, f) {
  7225. C.L !== C.cb && (this.shaderProgram = C.ug.Xd(C.JK));
  7226. var g = C.Q.aa;
  7227. c = c || C.color(0, 0, 0, 255);
  7228. d = d === m ? g.width: d;
  7229. f = f === m ? g.height: f;
  7230. g = this.wb;
  7231. g.r = c.r;
  7232. g.g = c.g;
  7233. g.b = c.b;
  7234. g = this.od;
  7235. g.r = c.r;
  7236. g.g = c.g;
  7237. g.b = c.b;
  7238. this.Ig = this.hb = c.a;
  7239. c = C.gd.prototype;
  7240. c.Ca.call(this, d, f);
  7241. c.Gd.call(this);
  7242. return q
  7243. },
  7244. Yd: function(c, d) {
  7245. this.C = d === m ? c: {
  7246. src: c,
  7247. ga: d
  7248. };
  7249. C.L === C.cb && (this.rA = this.C && 1 == this.C.src && 771 == this.C.ga)
  7250. },
  7251. Qh: s,
  7252. Ph: s,
  7253. Gd: s,
  7254. Tb: function(c) {
  7255. C.ai.prototype.Tb.call(this, c);
  7256. this.Gd()
  7257. },
  7258. dc: function(c) {
  7259. C.ai.prototype.dc.call(this, c);
  7260. this.Gd()
  7261. },
  7262. ka: s
  7263. });
  7264. C.gd.create = function(c, d, f) {
  7265. return new C.gd(c, d, f)
  7266. };
  7267. C.L === C.cb ? (H = C.gd.prototype, H.ctor = function(c, d, f) {
  7268. C.ai.prototype.ctor.call(this);
  7269. this.C = new C.Vm(C.Ic, C.Hc);
  7270. C.gd.prototype.j.call(this, c, d, f)
  7271. },
  7272. H.Qh = C.ai.prototype.Qh, H.Ph = C.ai.prototype.Ph, H.Gd = u(), H.ka = function(c) {
  7273. c = c || C.t;
  7274. var d = C.view,
  7275. f = this.wb;
  7276. c.fillStyle = "rgba(" + (0 | f.r) + "," + (0 | f.g) + "," + (0 | f.b) + "," + this.hb / 255 + ")";
  7277. c.fillRect(0, 0, this.width * d.ia, -this.height * d.pa);
  7278. C.kl++
  7279. },
  7280. H.J = function(c) {
  7281. if (this.gw) {
  7282. c = c || C.t;
  7283. var d, f = this.l,
  7284. g = f.length;
  7285. if (this.Ja) {
  7286. var h = this.tL;
  7287. c.save();
  7288. this.transform(c);
  7289. if (this.Lk) {
  7290. d = this.HW();
  7291. d.width |= 0;
  7292. d.height |= 0;
  7293. var k = h.Ki;
  7294. h.Yga(d.width, d.height);
  7295. var n = h.Ep(),
  7296. p = this.ma;
  7297. if (this.nn) k.translate(0 - d.x + p.x, d.height + d.y - p.y),
  7298. h.p(n.x + d.x - p.x, n.y + d.y - p.y);
  7299. else {
  7300. var r = this.Ep(),
  7301. v = p.x - r.x,
  7302. p = p.y - r.y;
  7303. k.translate(0 - d.x + v, d.height + d.y - p);
  7304. h.p(n.x + d.x - v, n.y + d.y - p)
  7305. }
  7306. if (0 < g) {
  7307. this.ed();
  7308. for (d = 0; d < g; d++) if (n = f[d], 0 > n.Wa) n.J(k);
  7309. else break;
  7310. for (this.ka(k); d < g; d++) f[d].J(k)
  7311. } else this.ka(k);
  7312. this.Lk = t
  7313. }
  7314. h.J(c);
  7315. this.arrivalOrder = 0;
  7316. c.restore()
  7317. }
  7318. } else C.A.prototype.J.call(this, c)
  7319. },
  7320. H.HW = function() {
  7321. var c = C.rect(0, 0, this.o.width, this.o.height),
  7322. d = this.ql(),
  7323. c = C.Gi(c, this.ql());
  7324. if (!this.l || 0 === this.l.length) return c;
  7325. for (var f = this.l,
  7326. g = 0; g < f.length; g++) {
  7327. var h = f[g];
  7328. h && h.Ja && (h = h.JF(d), c = C.MC(c, h))
  7329. }
  7330. return c
  7331. },
  7332. H = s) : (C.assert("function" === typeof C.U.RU, C.n.Bf, "CCLayerWebGL.js"), C.U.RU(), delete C.U.RU);
  7333. C.assert("function" === typeof C.U.PT, C.n.Bf, "CCLayerPropertyDefine.js");
  7334. C.U.PT();
  7335. delete C.U.PT;
  7336. C.pq = C.gd.extend({
  7337. Kg: s,
  7338. Ef: s,
  7339. eB: 255,
  7340. Tz: 255,
  7341. Ji: s,
  7342. LL: t,
  7343. iA: s,
  7344. hA: s,
  7345. qa: "LayerGradient",
  7346. ctor: function(c, d, f) {
  7347. C.gd.prototype.ctor.call(this);
  7348. this.Kg = C.color(0, 0, 0, 255);
  7349. this.Ef = C.color(0, 0, 0, 255);
  7350. this.Ji = C.d(0, -1);
  7351. this.Tz = this.eB = 255;
  7352. this.iA = C.d(0, 0);
  7353. this.hA = C.d(0, 0);
  7354. C.pq.prototype.j.call(this, c, d, f)
  7355. },
  7356. j: function(c, d, f) {
  7357. c = c || C.color(0, 0, 0, 255);
  7358. d = d || C.color(0, 0, 0, 255);
  7359. f = f || C.d(0, -1);
  7360. var g = this.Kg,
  7361. h = this.Ef;
  7362. g.r = c.r;
  7363. g.g = c.g;
  7364. g.b = c.b;
  7365. this.eB = c.a;
  7366. h.r = d.r;
  7367. h.g = d.g;
  7368. h.b = d.b;
  7369. this.Tz = d.a;
  7370. this.Ji = f;
  7371. this.LL = q;
  7372. this.iA = C.d(0, 0);
  7373. this.hA = C.d(0, 0);
  7374. C.gd.prototype.j.call(this, C.color(c.r, c.g, c.b, 255));
  7375. C.pq.prototype.Gd.call(this);
  7376. return q
  7377. },
  7378. Ca: function(c, d) {
  7379. C.gd.prototype.Ca.call(this, c, d);
  7380. this.Gd()
  7381. },
  7382. Qh: function(c) {
  7383. C.gd.prototype.Qh.call(this, c);
  7384. this.Gd()
  7385. },
  7386. Ph: function(c) {
  7387. C.gd.prototype.Ph.call(this, c);
  7388. this.Gd()
  7389. },
  7390. NP: A("od"),
  7391. tg: x("color"),
  7392. sg: function(c) {
  7393. this.Ef = c;
  7394. this.Gd()
  7395. },
  7396. EP: A("Ef"),
  7397. tia: function(c) {
  7398. this.eB = c;
  7399. this.Gd()
  7400. },
  7401. TBa: A("eB"),
  7402. Aha: function(c) {
  7403. this.Tz = c;
  7404. this.Gd()
  7405. },
  7406. vAa: A("Tz"),
  7407. UR: function(c) {
  7408. this.Ji.x = c.x;
  7409. this.Ji.y = c.y;
  7410. this.Gd()
  7411. },
  7412. mCa: function() {
  7413. return C.d(this.Ji.x, this.Ji.y)
  7414. },
  7415. mYa: A("LL"),
  7416. H3a: function(c) {
  7417. this.LL = c;
  7418. this.Gd()
  7419. },
  7420. AOa: s,
  7421. Gd: s
  7422. });
  7423. C.pq.create = function(c, d, f) {
  7424. return new C.pq(c, d, f)
  7425. };
  7426. C.L === C.cb ? (H = C.pq.prototype, H.ka = function(c) {
  7427. c = c || C.t;
  7428. this.rA && (c.globalCompositeOperation = "lighter");
  7429. c.save();
  7430. var d = C.view,
  7431. f = this.hb / 255,
  7432. g = this.width * d.ia,
  7433. d = this.height * d.pa,
  7434. h = c.createLinearGradient(this.iA.x, this.iA.y, this.hA.x, this.hA.y),
  7435. k = this.wb,
  7436. n = this.Ef;
  7437. h.addColorStop(0, "rgba(" + Math.round(k.r) + "," + Math.round(k.g) + "," + Math.round(k.b) + "," + (f * (this.eB / 255)).toFixed(4) + ")");
  7438. h.addColorStop(1, "rgba(" + Math.round(n.r) + "," + Math.round(n.g) + "," + Math.round(n.b) + "," + (f * (this.Tz / 255)).toFixed(4) + ")");
  7439. c.fillStyle = h;
  7440. c.fillRect(0, 0, g, -d);
  7441. 0 != this.XA && c.rotate(this.rPa);
  7442. c.restore()
  7443. },
  7444. H.Gd = function() {
  7445. var c = this.Ji,
  7446. d = 0.5 * this.width,
  7447. f = 0.5 * this.height;
  7448. this.iA.x = d * -c.x + d;
  7449. this.iA.y = f * c.y - f;
  7450. this.hA.x = d * c.x + d;
  7451. this.hA.y = f * -c.y - f
  7452. },
  7453. H = s) : (C.assert("function" === typeof C.U.SU, C.n.Bf, "CCLayerWebGL.js"), C.U.SU(), delete C.U.SU);
  7454. C.assert("function" === typeof C.U.QT, C.n.Bf, "CCLayerPropertyDefine.js");
  7455. C.U.QT();
  7456. delete C.U.QT;
  7457. C.uT = C.qe.extend({
  7458. Yv: 0,
  7459. oi: s,
  7460. qa: "LayerMultiplex",
  7461. ctor: function(c) {
  7462. C.qe.prototype.ctor.call(this);
  7463. c && C.uT.prototype.SCa.call(this, c)
  7464. },
  7465. SCa: function(c) {
  7466. 0 < c.length && c[c.length - 1] == s && C.log(C.n.Vma);
  7467. this.oi = c;
  7468. this.Yv = 0;
  7469. this.q(this.oi[this.Yv]);
  7470. return q
  7471. },
  7472. e6a: function(c) {
  7473. c >= this.oi.length ? C.log(C.n.Wma) : (this.removeChild(this.oi[this.Yv], q), this.Yv = c, this.q(this.oi[c]))
  7474. },
  7475. f6a: function(c) {
  7476. c >= this.oi.length ? C.log(C.n.Xma) : (this.removeChild(this.oi[this.Yv], q), this.oi[this.Yv] = s, this.Yv = c, this.q(this.oi[c]))
  7477. },
  7478. aQa: function(c) {
  7479. c ? this.oi.push(c) : C.log(C.n.Uma)
  7480. }
  7481. });
  7482. C.uT.create = function() {
  7483. return new C.uT(arguments)
  7484. };
  7485. C.U.TU = function() {
  7486. var c = C.u.prototype;
  7487. c.VY = function(c) {
  7488. this.Da(q);
  7489. this.qc(c.Vh(), c.fg, c.Gg);
  7490. this.cf()
  7491. };
  7492. c.$d = function(c) {
  7493. this.Fb !== c && (this.Fb = c, this.ro())
  7494. };
  7495. c.dc = function(c) {
  7496. C.ha.prototype.dc.call(this, c);
  7497. this.ro()
  7498. };
  7499. c.ctor = function(c, f, g) {
  7500. C.ha.prototype.ctor.call(this);
  7501. this.Xt = t;
  7502. this.ld = C.d(0, 0);
  7503. this.Nn = C.d(0, 0);
  7504. this.C = {
  7505. src: C.Ic,
  7506. ga: C.Hc
  7507. };
  7508. this.Ra = C.rect(0, 0, 0, 0);
  7509. this.Td = new C.Uc;
  7510. this.HN = C.t.createBuffer();
  7511. this.Aa = this.Ti = q;
  7512. this.Jba(c, f, g)
  7513. };
  7514. c.Yd = function(c, f) {
  7515. var g = this.C;
  7516. f === m ? (g.src = c.src, g.ga = c.ga) : (g.src = c, g.ga = f)
  7517. };
  7518. c.j = function() {
  7519. if (0 < arguments.length) return this.Ce(arguments[0], arguments[1]);
  7520. C.ha.prototype.j.call(this);
  7521. this.dirty = this.An = t;
  7522. this.Fb = q;
  7523. this.C.src = C.Ic;
  7524. this.C.ga = C.Hc;
  7525. this.texture = s;
  7526. this.Aa = q;
  7527. this.Bb = this.Db = t;
  7528. this.anchorY = this.anchorX = 0.5;
  7529. this.ld.x = 0;
  7530. this.ld.y = 0;
  7531. this.ap = t;
  7532. var c = {
  7533. r: 255,
  7534. g: 255,
  7535. b: 255,
  7536. a: 255
  7537. };
  7538. this.Td.T.F = c;
  7539. this.Td.Y.F = c;
  7540. this.Td.X.F = c;
  7541. this.Td.V.F = c;
  7542. this.Ti = q;
  7543. this.qc(C.rect(0, 0, 0, 0), t, C.size(0, 0));
  7544. return q
  7545. };
  7546. c.ta = function(c, f, g) {
  7547. C.assert(0 != arguments.length, C.n.dpa);
  7548. g = g || t;
  7549. if (!C.ha.prototype.j.call(this)) return t;
  7550. this.wa = s;
  7551. this.dirty = this.An = t;
  7552. this.Fb = q;
  7553. this.C.src = C.Ic;
  7554. this.C.ga = C.Hc;
  7555. this.Bb = this.Db = t;
  7556. this.anchorY = this.anchorX = 0.5;
  7557. this.ld.x = 0;
  7558. this.ld.y = 0;
  7559. this.ap = t;
  7560. var h = C.color(255, 255, 255, 255),
  7561. k = this.Td;
  7562. k.T.F = h;
  7563. k.Y.F = h;
  7564. k.X.F = h;
  7565. k.V.F = h;
  7566. this.Aa = h = c.de;
  7567. if (!h) return this.jf = g || t,
  7568. f && (h = this.Ra, h.x = f.x, h.y = f.y, h.width = f.width, h.height = f.height),
  7569. c.ye(this.oO, this),
  7570. q;
  7571. f || (f = C.rect(0, 0, c.width, c.height));
  7572. c && (g ? (h = f.x + f.height, k = f.y + f.width) : (h = f.x + f.width, k = f.y + f.height), h > c.width && C.error(C.n.YT, c.url), k > c.height && C.error(C.n.XT, c.url));
  7573. this.texture = c;
  7574. this.qc(f, g);
  7575. this.batchNode = s;
  7576. return this.Ti = q
  7577. };
  7578. c.oO = function(c) {
  7579. if (!this.Aa) {
  7580. this.Aa = q;
  7581. var f = this.Ra;
  7582. f ? C.wG(f) && (f.width = c.width, f.height = c.height) : f = C.rect(0, 0, c.width, c.height);
  7583. this.texture = c;
  7584. this.qc(f, this.jf);
  7585. this.batchNode = this.wa;
  7586. this.Ti = q;
  7587. this.cf()
  7588. }
  7589. };
  7590. c.qc = function(c, f, g) {
  7591. this.jf = f || t;
  7592. this.Ca(g || c);
  7593. this.x3(c);
  7594. this.xba(c);
  7595. c = this.Nn;
  7596. this.Bb && (c.x = -c.x);
  7597. this.Db && (c.y = -c.y);
  7598. var h = this.Ra;
  7599. this.ld.x = c.x + (this.o.width - h.width) / 2;
  7600. this.ld.y = c.y + (this.o.height - h.height) / 2;
  7601. if (this.wa) this.dirty = q;
  7602. else {
  7603. c = 0 + this.ld.x;
  7604. f = 0 + this.ld.y;
  7605. g = c + h.width;
  7606. var h = f + h.height,
  7607. k = this.Td;
  7608. k.T.m = {
  7609. x: c,
  7610. y: f,
  7611. f: 0
  7612. };
  7613. k.Y.m = {
  7614. x: g,
  7615. y: f,
  7616. f: 0
  7617. };
  7618. k.X.m = {
  7619. x: c,
  7620. y: h,
  7621. f: 0
  7622. };
  7623. k.V.m = {
  7624. x: g,
  7625. y: h,
  7626. f: 0
  7627. };
  7628. this.Ti = q
  7629. }
  7630. };
  7631. c.$h = function() {
  7632. if (this.dirty) {
  7633. var c = this.Td,
  7634. f = this.Vb;
  7635. if (!this.Ja || f && f != this.wa && f.Xt) c.Y.m = {
  7636. x: 0,
  7637. y: 0,
  7638. f: 0
  7639. },
  7640. c.X.m = {
  7641. x: 0,
  7642. y: 0,
  7643. f: 0
  7644. },
  7645. c.V.m = {
  7646. x: 0,
  7647. y: 0,
  7648. f: 0
  7649. },
  7650. c.T.m = {
  7651. x: 0,
  7652. y: 0,
  7653. f: 0
  7654. },
  7655. this.Xt = q;
  7656. else {
  7657. this.Xt = t;
  7658. var g = this.dx = !f || f == this.wa ? this.me() : C.Qg(this.me(), f.dx),
  7659. h = this.Ra,
  7660. f = this.ld.x,
  7661. k = this.ld.y,
  7662. n = f + h.width,
  7663. p = k + h.height,
  7664. r = g.na,
  7665. v = g.oa,
  7666. y = g.a,
  7667. z = g.b,
  7668. D = g.P,
  7669. E = -g.H,
  7670. g = f * y - k * E + r,
  7671. h = f * z + k * D + v,
  7672. F = n * y - k * E + r,
  7673. k = n * z + k * D + v,
  7674. G = n * y - p * E + r,
  7675. n = n * z + p * D + v,
  7676. r = f * y - p * E + r,
  7677. f = f * z + p * D + v,
  7678. p = this.gH;
  7679. C.bU || (g |= 0, h |= 0, F |= 0, k |= 0, G |= 0, n |= 0, r |= 0, f |= 0);
  7680. c.T.m = {
  7681. x: g,
  7682. y: h,
  7683. f: p
  7684. };
  7685. c.Y.m = {
  7686. x: F,
  7687. y: k,
  7688. f: p
  7689. };
  7690. c.X.m = {
  7691. x: r,
  7692. y: f,
  7693. f: p
  7694. };
  7695. c.V.m = {
  7696. x: G,
  7697. y: n,
  7698. f: p
  7699. }
  7700. }
  7701. this.textureAtlas.HJ(c, this.atlasIndex);
  7702. this.dirty = this.An = t
  7703. }
  7704. this.ap && this.Jk(this.l, C.A.Gj.$h);
  7705. C.Es && (c = [C.d(this.Td.T.m.x, this.Td.T.m.y), C.d(this.Td.Y.m.x, this.Td.Y.m.y), C.d(this.Td.V.m.x, this.Td.V.m.y), C.d(this.Td.X.m.x, this.Td.X.m.y)], C.Df.Of(c, 4, q))
  7706. };
  7707. c.q = function(c, f, g) {
  7708. C.assert(c, C.n.Voa);
  7709. f == s && (f = c.Wa);
  7710. g == s && (g = c.tag);
  7711. if (this.wa) {
  7712. if (! (c instanceof C.u)) {
  7713. C.log(C.n.Toa);
  7714. return
  7715. }
  7716. c.texture.Sh !== this.textureAtlas.texture.Sh && C.log(C.n.Uoa);
  7717. this.wa.appendChild(c);
  7718. this.Oh || this.JY()
  7719. }
  7720. C.ha.prototype.q.call(this, c, f, g);
  7721. this.ap = q
  7722. };
  7723. c.K = function(c) {
  7724. C.ha.prototype.K.call(this, c);
  7725. this.ro()
  7726. };
  7727. c.G = function(c) {
  7728. C.ha.prototype.G.call(this, c);
  7729. this.ro()
  7730. };
  7731. c.Tb = function(c) {
  7732. C.ha.prototype.Tb.call(this, c);
  7733. this.ro()
  7734. };
  7735. c.pc = function(c) {
  7736. var f = this;
  7737. "string" == typeof c && (c = C.Fe.nh(c), C.assert(c, C.n.mpa));
  7738. f.Da(q);
  7739. var g = c.fb;
  7740. f.Nn.x = g.x;
  7741. f.Nn.y = g.y;
  7742. g = c.ob();
  7743. c.Aa || (f.Aa = t, c.ye(function(c) {
  7744. f.Aa = q;
  7745. var d = c.ob();
  7746. d != f.da && (f.texture = d);
  7747. f.qc(c.Vh(), c.fg, c.Gg);
  7748. f.cf()
  7749. },
  7750. f));
  7751. g != f.da && (f.texture = g);
  7752. f.jf = c.fg;
  7753. f.qc(c.Vh(), f.jf, c.Gg)
  7754. };
  7755. c.hfa = function(c) {
  7756. return C.Ega(c.Vh(), this.Ra) && c.ob().getName() == this.da.getName() && C.b2(c.fb, this.Nn)
  7757. };
  7758. c.os = function(c) {
  7759. if (this.wa = c) this.dx = {
  7760. a: 1,
  7761. b: 0,
  7762. H: 0,
  7763. P: 1,
  7764. na: 0,
  7765. oa: 0
  7766. },
  7767. this.textureAtlas = this.wa.textureAtlas;
  7768. else {
  7769. this.atlasIndex = C.u.nT;
  7770. this.textureAtlas = s;
  7771. this.dirty = this.An = t;
  7772. c = this.ld.x;
  7773. var f = this.ld.y,
  7774. g = c + this.Ra.width,
  7775. h = f + this.Ra.height,
  7776. k = this.Td;
  7777. k.T.m = {
  7778. x: c,
  7779. y: f,
  7780. f: 0
  7781. };
  7782. k.Y.m = {
  7783. x: g,
  7784. y: f,
  7785. f: 0
  7786. };
  7787. k.X.m = {
  7788. x: c,
  7789. y: h,
  7790. f: 0
  7791. };
  7792. k.V.m = {
  7793. x: g,
  7794. y: h,
  7795. f: 0
  7796. };
  7797. this.Ti = q
  7798. }
  7799. };
  7800. c.Va = function(c) {
  7801. c && "string" === typeof c ? (c = C.kb.sd(c), this.Va(c), c = c.i(), this.qc(C.rect(0, 0, c.width, c.height))) : (C.assert(!c || c instanceof C.Ma, C.n.opa), this.wa && this.wa.texture != c ? C.log(C.n.npa) : (this.shaderProgram = c ? C.ug.Xd(C.Co) : C.ug.Xd(C.JK), !this.wa && this.da != c && (this.da = c, this.hl())))
  7802. };
  7803. c.ka = function() {
  7804. if (this.Aa) {
  7805. var c = C.t,
  7806. f = this.da;
  7807. f ? f.de && (this.pd.Af(), this.pd.Bj(), C.Gm(this.C.src, this.C.ga), C.M0(0, f), C.rf(C.Dv), c.bindBuffer(c.ARRAY_BUFFER, this.HN), this.Ti && (c.bufferData(c.ARRAY_BUFFER, this.Td.WO, c.DYNAMIC_DRAW), this.Ti = t), c.vertexAttribPointer(0, 3, c.FLOAT, t, 24, 0), c.vertexAttribPointer(1, 4, c.UNSIGNED_BYTE, q, 24, 12), c.vertexAttribPointer(2, 2, c.FLOAT, t, 24, 16), c.drawArrays(c.TRIANGLE_STRIP, 0, 4)) : (this.pd.Af(), this.pd.Bj(), C.Gm(this.C.src, this.C.ga), C.yi(s), C.rf(C.Ch | C.ZK), c.bindBuffer(c.ARRAY_BUFFER, this.HN), this.Ti && (C.t.bufferData(C.t.ARRAY_BUFFER, this.Td.WO, C.t.STATIC_DRAW), this.Ti = t), c.vertexAttribPointer(C.Lc, 3, c.FLOAT, t, 24, 0), c.vertexAttribPointer(C.Hi, 4, c.UNSIGNED_BYTE, q, 24, 12), c.drawArrays(c.TRIANGLE_STRIP, 0, 4));
  7808. C.kl++;
  7809. if (0 !== C.Es || this.OY) 1 === C.Es || this.OY ? (c = this.Td, c = [C.d(c.X.m.x, c.X.m.y), C.d(c.T.m.x, c.T.m.y), C.d(c.Y.m.x, c.Y.m.y), C.d(c.V.m.x, c.V.m.y)], C.Df.Of(c, 4, q)) : 2 === C.Es && (c = this.WH(), f = this.ld, c = [C.d(f.x, f.y), C.d(f.x + c.width, f.y), C.d(f.x + c.width, f.y + c.height), C.d(f.x, f.y + c.height)], C.Df.Of(c, 4, q))
  7810. }
  7811. };
  7812. delete c
  7813. };
  7814. C.U.ST = function() {
  7815. var c = C.u.prototype;
  7816. C.e(c, "opacityModifyRGB", c.qg, c.$d);
  7817. C.e(c, "opacity", c.rb, c.K);
  7818. C.e(c, "color", c.Xa, c.G);
  7819. C.e(c, "flippedX", c.oI, c.Nd);
  7820. C.e(c, "flippedY", c.pI, c.Uf);
  7821. C.e(c, "offsetX", c.Asa);
  7822. C.e(c, "offsetY", c.Bsa);
  7823. C.e(c, "texture", c.ob, c.Va);
  7824. C.e(c, "textureRectRotated", c.BDa);
  7825. C.e(c, "batchNode", c.XB, c.os);
  7826. C.e(c, "quad", c.CBa)
  7827. };
  7828. C.SB = function(c) {
  7829. function d() {
  7830. var d = C.SB,
  7831. g = c.width,
  7832. n = c.height;
  7833. f[0].width = g;
  7834. f[0].height = n;
  7835. f[1].width = g;
  7836. f[1].height = n;
  7837. f[2].width = g;
  7838. f[2].height = n;
  7839. f[3].width = g;
  7840. f[3].height = n;
  7841. d.canvas.width = g;
  7842. d.canvas.height = n;
  7843. var p = d.canvas.getContext("2d");
  7844. p.drawImage(c, 0, 0);
  7845. d.L3.width = g;
  7846. d.L3.height = n;
  7847. for (var p = p.getImageData(0, 0, g, n).data, r = 0; 4 > r; r++) {
  7848. var v = f[r].getContext("2d");
  7849. v.getImageData(0, 0, g, n).data;
  7850. d.Via.drawImage(c, 0, 0);
  7851. for (var y = d.Via.getImageData(0, 0, g, n), z = y.data, D = 0; D < p.length; D += 4) z[D] = 0 === r ? p[D] : 0,
  7852. z[D + 1] = 1 === r ? p[D + 1] : 0,
  7853. z[D + 2] = 2 === r ? p[D + 2] : 0,
  7854. z[D + 3] = p[D + 3];
  7855. v.putImageData(y, 0, 0)
  7856. }
  7857. c.onload = s
  7858. }
  7859. if (c.Pca) return c.Pca;
  7860. var f = [C.bd("canvas"), C.bd("canvas"), C.bd("canvas"), C.bd("canvas")];
  7861. try {
  7862. d()
  7863. } catch(g) {
  7864. c.onload = d
  7865. }
  7866. return c.Pca = f
  7867. };
  7868. C.SB.canvas = C.bd("canvas");
  7869. C.SB.L3 = C.bd("canvas");
  7870. C.SB.Via = C.SB.L3.getContext("2d");
  7871. C.ESa = function(c, d, f) {
  7872. f || (f = C.rect(0, 0, c.width, c.height), f = C.js(f));
  7873. var g = C.bd("canvas"),
  7874. h = g.getContext("2d");
  7875. g.width != f.width && (g.width = f.width);
  7876. g.height != f.height && (g.height = f.height);
  7877. h.save();
  7878. h.drawImage(c, f.x, f.y, f.width, f.height, 0, 0, f.width, f.height);
  7879. h.globalCompositeOperation = "source-in";
  7880. h.globalAlpha = d.a / 255;
  7881. h.fillStyle = "rgb(" + d.r + "," + d.g + "," + d.b + ")";
  7882. h.fillRect(0, 0, f.width, f.height);
  7883. h.restore();
  7884. return g
  7885. };
  7886. C.TB = function(c, d, f, g, h) {
  7887. g || (g = C.rect(0, 0, c.width, c.height));
  7888. c = f.r / 255;
  7889. var k = f.g / 255;
  7890. f = f.b / 255;
  7891. var n = Math.min(g.width, d[0].width),
  7892. p = Math.min(g.height, d[0].height),
  7893. r;
  7894. h ? (r = h.getContext("2d"), r.clearRect(0, 0, n, p)) : (h = C.bd("canvas"), h.width = n, h.height = p, r = h.getContext("2d"));
  7895. r.save();
  7896. r.globalCompositeOperation = "lighter";
  7897. var v = r.globalAlpha;
  7898. 0 < c && (r.globalAlpha = c * v, r.drawImage(d[0], g.x, g.y, n, p, 0, 0, n, p));
  7899. 0 < k && (r.globalAlpha = k * v, r.drawImage(d[1], g.x, g.y, n, p, 0, 0, n, p));
  7900. 0 < f && (r.globalAlpha = f * v, r.drawImage(d[2], g.x, g.y, n, p, 0, 0, n, p));
  7901. 1 > c + k + f && (r.globalAlpha = v, r.drawImage(d[3], g.x, g.y, n, p, 0, 0, n, p));
  7902. r.restore();
  7903. return h
  7904. };
  7905. C.J_ = function(c, d) {
  7906. if (!c) return s;
  7907. if (!d) return c;
  7908. var f = C.bd("canvas");
  7909. f.width = d.width;
  7910. f.height = d.height;
  7911. var g = f.getContext("2d");
  7912. g.translate(f.width / 2, f.height / 2);
  7913. g.rotate( - 1.5707963267948966);
  7914. g.drawImage(c, d.x, d.y, d.height, d.width, -d.height / 2, -d.width / 2, d.height, d.width);
  7915. return f
  7916. };
  7917. C.u = C.ha.extend({
  7918. sb: q,
  7919. dirty: t,
  7920. atlasIndex: 0,
  7921. textureAtlas: s,
  7922. wa: s,
  7923. An: s,
  7924. ap: s,
  7925. Xt: t,
  7926. dx: s,
  7927. C: s,
  7928. da: s,
  7929. Ra: s,
  7930. jf: t,
  7931. ld: s,
  7932. Nn: s,
  7933. Fb: t,
  7934. Bb: t,
  7935. Db: t,
  7936. Aa: t,
  7937. ac: s,
  7938. zX: s,
  7939. qa: "Sprite",
  7940. eD: A("Aa"),
  7941. ye: function(c, d) {
  7942. this.ac || (this.ac = []);
  7943. this.ac.push({
  7944. jl: c,
  7945. jj: d
  7946. })
  7947. },
  7948. cf: function() {
  7949. if (this.ac) {
  7950. for (var c = this.ac,
  7951. d = 0,
  7952. f = c.length; d < f; d++) {
  7953. var g = c[d];
  7954. g.jl.call(g.jj, this)
  7955. }
  7956. c.length = 0
  7957. }
  7958. },
  7959. h1: A("dirty"),
  7960. xha: x("dirty"),
  7961. BDa: A("jf"),
  7962. WB: A("atlasIndex"),
  7963. C2: x("atlasIndex"),
  7964. WH: function() {
  7965. return C.rect(this.Ra.x, this.Ra.y, this.Ra.width, this.Ra.height)
  7966. },
  7967. VH: A("textureAtlas"),
  7968. p3: x("textureAtlas"),
  7969. CVa: A("ld"),
  7970. Asa: function() {
  7971. return this.ld.x
  7972. },
  7973. Bsa: function() {
  7974. return this.ld.y
  7975. },
  7976. ek: A("C"),
  7977. mj: function(c) {
  7978. C.assert(c, C.n.apa);
  7979. c.Aa || (this.Aa = t, c.ye(this.VY, this));
  7980. var d = C.L === C.cb ? t: c.fg,
  7981. d = this.ta(c.ob(), c.Vh(), d);
  7982. this.pc(c);
  7983. return d
  7984. },
  7985. VY: s,
  7986. pl: function(c) {
  7987. C.assert(c, C.n.bpa);
  7988. var d = C.Fe.nh(c);
  7989. C.assert(d, c + C.n.cpa);
  7990. return this.mj(d)
  7991. },
  7992. K6a: function(c) {
  7993. this.textureAtlas = c.textureAtlas;
  7994. this.wa = c
  7995. },
  7996. x3: function(c) {
  7997. this.Ra.x = c.x;
  7998. this.Ra.y = c.y;
  7999. this.Ra.width = c.width;
  8000. this.Ra.height = c.height
  8001. },
  8002. ed: function() {
  8003. if (this.Oh) {
  8004. var c = this.l,
  8005. d = c.length,
  8006. f, g, h;
  8007. for (f = 1; f < d; f++) {
  8008. h = c[f];
  8009. for (g = f - 1; 0 <= g;) {
  8010. if (h.Wa < c[g].Wa) c[g + 1] = c[g];
  8011. else if (h.Wa === c[g].Wa && h.arrivalOrder < c[g].arrivalOrder) c[g + 1] = c[g];
  8012. else break;
  8013. g--
  8014. }
  8015. c[g + 1] = h
  8016. }
  8017. this.wa && this.Jk(c, C.A.Gj.ed);
  8018. this.Oh = t
  8019. }
  8020. },
  8021. OC: function(c, d) {
  8022. C.assert(c, C.n.hpa); - 1 === this.l.indexOf(c) ? C.log(C.n.gpa) : d !== c.zIndex && (this.wa && !this.Oh && (this.JY(), this.wa.Wga(q)), C.A.prototype.OC.call(this, c, d))
  8023. },
  8024. removeChild: function(c, d) {
  8025. this.wa && this.wa.by(c);
  8026. C.A.prototype.removeChild.call(this, c, d)
  8027. },
  8028. xf: function(c) {
  8029. var d = this.l,
  8030. f = this.wa;
  8031. if (f && d != s) for (var g = 0,
  8032. h = d.length; g < h; g++) f.by(d[g]);
  8033. C.A.prototype.xf.call(this, c);
  8034. this.ap = t
  8035. },
  8036. yha: function(c) {
  8037. this.dirty = this.An = c;
  8038. c = this.l;
  8039. for (var d, f = c ? c.length: 0, g = 0; g < f; g++) d = c[g],
  8040. d instanceof C.u && d.yha(q)
  8041. },
  8042. Da: function(c) {
  8043. C.A.prototype.Da.call(this); ! c && (this.wa && !this.An) && (this.ap ? this.yha(q) : this.dirty = this.An = q)
  8044. },
  8045. Hm: function(c) {
  8046. this.wa ? C.log(C.n.Zoa) : C.A.prototype.Hm.call(this, c)
  8047. },
  8048. Nd: function(c) {
  8049. this.Bb != c && (this.Bb = c, this.qc(this.Ra, this.jf, this.o), this.Da(q))
  8050. },
  8051. Uf: function(c) {
  8052. this.Db != c && (this.Db = c, this.qc(this.Ra, this.jf, this.o), this.Da(q))
  8053. },
  8054. oI: A("Bb"),
  8055. pI: A("Db"),
  8056. $d: s,
  8057. qg: A("Fb"),
  8058. dc: s,
  8059. T3a: function(c, d) {
  8060. C.assert(c, C.n.lpa);
  8061. var f = C.oH.ll(c);
  8062. f ? (f = f.Lh[d]) ? this.pc(f.nh()) : C.log(C.n.kpa) : C.log(C.n.jpa)
  8063. },
  8064. XB: A("wa"),
  8065. JY: function() {
  8066. if (!this.Oh) {
  8067. this.Oh = q;
  8068. for (var c = this.Vb; c && c != this.wa;) c.JY(),
  8069. c = c.parent
  8070. }
  8071. },
  8072. ob: A("da"),
  8073. Td: s,
  8074. HN: s,
  8075. Ti: t,
  8076. KL: t,
  8077. rA: t,
  8078. qi: s,
  8079. jB: s,
  8080. mW: s,
  8081. ctor: s,
  8082. Jba: function(c, d, f) {
  8083. if (c === m) C.u.prototype.j.call(this);
  8084. else if ("string" === typeof c)"#" === c[0] ? (c = C.Fe.nh(c.substr(1, c.length - 1)), this.mj(c)) : C.u.prototype.j.call(this, c, d);
  8085. else if ("object" === typeof c) if (c instanceof C.Ma) this.ta(c, d, f);
  8086. else if (c instanceof C.di) this.mj(c);
  8087. else if (c instanceof HTMLImageElement || c instanceof HTMLCanvasElement) d = new C.Ma,
  8088. d.Ng(c),
  8089. d.Md(),
  8090. this.ta(d)
  8091. },
  8092. CBa: A("Td"),
  8093. Yd: s,
  8094. j: s,
  8095. Ce: function(c, d) {
  8096. C.assert(c, C.n.$oa);
  8097. var f = C.kb.av(c);
  8098. if (f) {
  8099. if (!d) {
  8100. var g = f.i();
  8101. d = C.rect(0, 0, g.width, g.height)
  8102. }
  8103. return this.ta(f, d)
  8104. }
  8105. f = C.kb.sd(c);
  8106. return this.ta(f, d || C.rect(0, 0, f.o.width, f.o.height))
  8107. },
  8108. ta: s,
  8109. oO: s,
  8110. qc: s,
  8111. $h: s,
  8112. q: s,
  8113. ro: function() {
  8114. var c = this.wb,
  8115. d = this.hb,
  8116. c = {
  8117. r: c.r,
  8118. g: c.g,
  8119. b: c.b,
  8120. a: d
  8121. };
  8122. this.Fb && (c.r *= d / 255, c.g *= d / 255, c.b *= d / 255);
  8123. d = this.Td;
  8124. d.T.F = c;
  8125. d.Y.F = c;
  8126. d.X.F = c;
  8127. d.V.F = c;
  8128. this.wa && (this.atlasIndex != C.u.nT ? this.textureAtlas.HJ(d, this.atlasIndex) : this.dirty = q);
  8129. this.Ti = q
  8130. },
  8131. K: s,
  8132. G: s,
  8133. Tb: s,
  8134. pc: s,
  8135. pHa: function(c) {
  8136. C.log(C.n.ipa);
  8137. this.pc(c)
  8138. },
  8139. hfa: s,
  8140. Hya: function() {
  8141. return C.di.create(this.da, C.XI(this.Ra), this.jf, C.KFa(this.Nn), C.FIa(this.o))
  8142. },
  8143. os: s,
  8144. Va: s,
  8145. hl: function() {
  8146. this.wa ? C.log(C.n.Soa) : !this.da || !this.da.Hp() ? (this.C.src = C.SRC_ALPHA, this.C.ga = C.ONE_MINUS_SRC_ALPHA, this.opacityModifyRGB = t) : (this.C.src = C.Ic, this.C.ga = C.Hc, this.opacityModifyRGB = q)
  8147. },
  8148. ct: function() {
  8149. var c, d = this.da,
  8150. f = this.jB;
  8151. if (d && (f.nD && this.qi) && (c = d.jd)) if (d = C.kb.OP(this.qi.jd)) this.KL = q,
  8152. c instanceof HTMLCanvasElement && !this.jf && !this.zX ? C.TB(c, d, this.wb, f, c) : (c = C.TB(c, d, this.wb, f), d = new C.Ma, d.Ng(c), d.Md(), this.texture = d)
  8153. },
  8154. xba: function(c) {
  8155. c = C.XI(c);
  8156. var d = this.wa ? this.textureAtlas.texture: this.da;
  8157. if (d) {
  8158. var f = d.pixelsWidth,
  8159. g = d.pixelsHeight,
  8160. h, k = this.Td;
  8161. this.jf ? (C.Qy ? (d = (2 * c.x + 1) / (2 * f), f = d + (2 * c.height - 2) / (2 * f), h = (2 * c.y + 1) / (2 * g), c = h + (2 * c.width - 2) / (2 * g)) : (d = c.x / f, f = (c.x + c.height) / f, h = c.y / g, c = (c.y + c.width) / g), this.Bb && (g = h, h = c, c = g), this.Db && (g = d, d = f, f = g), k.T.v.xa = d, k.T.v.ea = h, k.Y.v.xa = d, k.Y.v.ea = c, k.X.v.xa = f, k.X.v.ea = h, k.V.v.xa = f, k.V.v.ea = c) : (C.Qy ? (d = (2 * c.x + 1) / (2 * f), f = d + (2 * c.width - 2) / (2 * f), h = (2 * c.y + 1) / (2 * g), c = h + (2 * c.height - 2) / (2 * g)) : (d = c.x / f, f = (c.x + c.width) / f, h = c.y / g, c = (c.y + c.height) / g), this.Bb && (g = d, d = f, f = g), this.Db && (g = h, h = c, c = g), k.T.v.xa = d, k.T.v.ea = c, k.Y.v.xa = f, k.Y.v.ea = c, k.X.v.xa = d, k.X.v.ea = h, k.V.v.xa = f, k.V.v.ea = h);
  8162. this.Ti = q
  8163. }
  8164. },
  8165. ka: s
  8166. });
  8167. C.u.create = function(c, d, f) {
  8168. return new C.u(c, d, f)
  8169. };
  8170. C.u.nT = -1;
  8171. C.L === C.cb ? (H = C.u.prototype, H.VY = function(c) {
  8172. this.Da(q);
  8173. this.qc(c.Vh(), c.fg, c.Gg);
  8174. c = this.color; (255 !== c.r || 255 !== c.g || 255 !== c.b) && this.ct();
  8175. this.cf()
  8176. },
  8177. H.$d = function(c) {
  8178. this.Fb !== c && (this.Fb = c, this.Da(q))
  8179. },
  8180. H.dc = function(c) {
  8181. C.ha.prototype.dc.call(this, c);
  8182. this.Fn()
  8183. },
  8184. H.ctor = function(c, d, f) {
  8185. C.ha.prototype.ctor.call(this);
  8186. this.Xt = t;
  8187. this.ld = C.d(0, 0);
  8188. this.Nn = C.d(0, 0);
  8189. this.C = {
  8190. src: C.Ic,
  8191. ga: C.Hc
  8192. };
  8193. this.Ra = C.rect(0, 0, 0, 0);
  8194. this.zX = t;
  8195. this.Aa = q;
  8196. this.jB = {
  8197. x: 0,
  8198. y: 0,
  8199. width: 0,
  8200. height: 0,
  8201. nD: t
  8202. };
  8203. this.mW = C.size(0, 0);
  8204. this.Jba(c, d, f)
  8205. },
  8206. H.Yd = function(c, d) {
  8207. var f = this.C;
  8208. d === m ? (f.src = c.src, f.ga = c.ga) : (f.src = c, f.ga = d);
  8209. this.rA = f && (f.src == C.SRC_ALPHA && f.ga == C.ONE || f.src == C.ONE && f.ga == C.ONE)
  8210. },
  8211. H.j = function() {
  8212. if (0 < arguments.length) return this.Ce(arguments[0], arguments[1]);
  8213. C.ha.prototype.j.call(this);
  8214. this.dirty = this.An = t;
  8215. this.Fb = q;
  8216. this.C.src = C.Ic;
  8217. this.C.ga = C.Hc;
  8218. this.texture = s;
  8219. this.Aa = q;
  8220. this.Bb = this.Db = t;
  8221. this.anchorY = this.anchorX = 0.5;
  8222. this.ld.x = 0;
  8223. this.ld.y = 0;
  8224. this.ap = t;
  8225. this.qc(C.rect(0, 0, 0, 0), t, C.size(0, 0));
  8226. return q
  8227. },
  8228. H.ta = function(c, d, f) {
  8229. C.assert(0 != arguments.length, C.n.ska);
  8230. if ((f = f || t) && c.de) {
  8231. var g = c.jd,
  8232. g = C.J_(g, d),
  8233. h = new C.Ma;
  8234. h.Ng(g);
  8235. h.Md();
  8236. c = h;
  8237. this.Ra = C.rect(0, 0, d.width, d.height)
  8238. }
  8239. if (!C.ha.prototype.j.call(this)) return t;
  8240. this.wa = s;
  8241. this.dirty = this.An = t;
  8242. this.Fb = q;
  8243. this.C.src = C.Ic;
  8244. this.C.ga = C.Hc;
  8245. this.Bb = this.Db = t;
  8246. this.anchorY = this.anchorX = 0.5;
  8247. this.ld.x = 0;
  8248. this.ld.y = 0;
  8249. this.ap = t;
  8250. this.Aa = g = c.de;
  8251. if (!g) return this.jf = f,
  8252. d && (this.Ra.x = d.x, this.Ra.y = d.y, this.Ra.width = d.width, this.Ra.height = d.height),
  8253. c.ye(this.oO, this),
  8254. q;
  8255. d || (d = C.rect(0, 0, c.width, c.height));
  8256. c && (g = d.y + d.height, d.x + d.width > c.width && C.error(C.n.YT, c.url), g > c.height && C.error(C.n.XT, c.url));
  8257. this.texture = this.qi = c;
  8258. this.qc(d, f);
  8259. this.batchNode = s;
  8260. return q
  8261. },
  8262. H.oO = function(c) {
  8263. if (!this.Aa) {
  8264. this.Aa = q;
  8265. var d = this.Ra;
  8266. d ? C.wG(d) && (d.width = c.width, d.height = c.height) : d = C.rect(0, 0, c.width, c.height);
  8267. this.texture = this.qi = c;
  8268. this.qc(d, this.jf);
  8269. this.batchNode = this.wa;
  8270. this.cf()
  8271. }
  8272. },
  8273. H.qc = function(c, d, f) {
  8274. this.jf = d || t;
  8275. this.Ca(f || c);
  8276. this.x3(c);
  8277. d = this.jB;
  8278. f = C.Ec();
  8279. d.x = 0 | c.x * f;
  8280. d.y = 0 | c.y * f;
  8281. d.width = 0 | c.width * f;
  8282. d.height = 0 | c.height * f;
  8283. d.nD = !(0 === d.width || 0 === d.height || 0 > d.x || 0 > d.y);
  8284. c = this.Nn;
  8285. this.Bb && (c.x = -c.x);
  8286. this.Db && (c.y = -c.y);
  8287. this.ld.x = c.x + (this.o.width - this.Ra.width) / 2;
  8288. this.ld.y = c.y + (this.o.height - this.Ra.height) / 2;
  8289. this.wa && (this.dirty = q)
  8290. },
  8291. H.$h = function() {
  8292. if (this.dirty) {
  8293. var c = this.Vb; ! this.Ja || c && c != this.wa && c.Xt ? this.Xt = q: (this.Xt = t, this.dx = !c || c == this.wa ? this.me() : C.Qg(this.me(), c.dx));
  8294. this.dirty = this.An = t
  8295. }
  8296. this.ap && this.Jk(this.l, C.A.Gj.$h)
  8297. },
  8298. H.q = function(c, d, f) {
  8299. C.assert(c, C.n.qka);
  8300. d == s && (d = c.Wa);
  8301. f == s && (f = c.tag);
  8302. C.ha.prototype.q.call(this, c, d, f);
  8303. this.ap = q
  8304. },
  8305. H.K = function(c) {
  8306. C.ha.prototype.K.call(this, c);
  8307. this.Fn()
  8308. },
  8309. H.G = function(c) {
  8310. var d = this.color;
  8311. d.r === c.r && d.g === c.g && d.b === c.b || (C.ha.prototype.G.call(this, c), this.ct(), this.Fn())
  8312. },
  8313. H.Tb = function(c) {
  8314. var d = this.color;
  8315. C.ha.prototype.Tb.call(this, c);
  8316. c = this.wb;
  8317. d.r === c.r && d.g === c.g && d.b === c.b || (this.ct(), this.Fn())
  8318. },
  8319. H.pc = function(c) {
  8320. var d = this;
  8321. "string" == typeof c && (c = C.Fe.nh(c), C.assert(c, C.n.vka));
  8322. d.Da(q);
  8323. var f = c.fb;
  8324. d.Nn.x = f.x;
  8325. d.Nn.y = f.y;
  8326. d.jf = c.fg;
  8327. var f = c.ob(),
  8328. g = c.Aa;
  8329. g || (d.Aa = t, c.ye(function(c) {
  8330. d.Aa = q;
  8331. var f = c.ob();
  8332. f != d.da && (d.texture = f);
  8333. d.qc(c.Vh(), c.fg, c.Gg);
  8334. d.cf()
  8335. },
  8336. d));
  8337. f != d.da && (d.texture = f);
  8338. d.jf && (d.qi = f);
  8339. d.qc(c.Vh(), d.jf, c.Gg);
  8340. d.KL = t;
  8341. g && (c = d.color, (255 !== c.r || 255 !== c.g || 255 !== c.b) && d.ct())
  8342. },
  8343. H.hfa = function(c) {
  8344. return c.ob() != this.da ? t: C.Ega(c.Vh(), this.Ra)
  8345. },
  8346. H.os = function(c) { (this.wa = c) ? (this.dx = {
  8347. a: 1,
  8348. b: 0,
  8349. H: 0,
  8350. P: 1,
  8351. na: 0,
  8352. oa: 0
  8353. },
  8354. this.textureAtlas = this.wa.textureAtlas) : (this.atlasIndex = C.u.nT, this.textureAtlas = s, this.dirty = this.An = t)
  8355. },
  8356. H.Va = function(c) {
  8357. c && "string" === typeof c ? (c = C.kb.sd(c), this.Va(c), c = c.i(), this.qc(C.rect(0, 0, c.width, c.height))) : (C.assert(!c || c instanceof C.Ma, C.n.wka), this.da != c && (c && c.jd instanceof HTMLImageElement && (this.qi = c), this.da = c))
  8358. },
  8359. H.ka = function(c) {
  8360. if (this.Aa) {
  8361. c = c || C.t;
  8362. this.rA && (c.globalCompositeOperation = "lighter");
  8363. var d = C.view.ia,
  8364. f = C.view.pa;
  8365. c.globalAlpha = this.hb / 255;
  8366. var g = this.Ra,
  8367. h = this.o,
  8368. k = this.ld,
  8369. n = this.mW,
  8370. p = 0 | k.x,
  8371. r = -k.y - g.height,
  8372. v = this.jB;
  8373. n.width = g.width * d;
  8374. n.height = g.height * f;
  8375. if (this.Bb || this.Db) c.save(),
  8376. this.Bb && (p = -k.x - g.width, c.scale( - 1, 1)),
  8377. this.Db && (r = k.y, c.scale(1, -1));
  8378. p *= d;
  8379. r *= f;
  8380. this.da && v.nD ? (h = this.da.jd, this.KL ? c.drawImage(h, 0, 0, v.width, v.height, p, r, n.width, n.height) : c.drawImage(h, v.x, v.y, v.width, v.height, p, r, n.width, n.height)) : !this.da && v.nD && (n = this.color, c.fillStyle = "rgba(" + n.r + "," + n.g + "," + n.b + ",1)", c.fillRect(p, r, h.width * d, h.height * f));
  8381. 1 === C.Es || this.OY ? (c.strokeStyle = "rgba(0,255,0,1)", p /= d, r = -(r / f), p = [C.d(p, r), C.d(p + g.width, r), C.d(p + g.width, r - g.height), C.d(p, r - g.height)], C.Df.Of(p, 4, q)) : 2 === C.Es && (c.strokeStyle = "rgba(0,255,0,1)", d = this.Ra, r = -r, p = [C.d(p, r), C.d(p + d.width, r), C.d(p + d.width, r - d.height), C.d(p, r - d.height)], C.Df.Of(p, 4, q)); (this.Bb || this.Db) && c.restore();
  8382. C.kl++
  8383. }
  8384. },
  8385. delete H) : (C.assert("function" === typeof C.U.TU, C.n.Bf, "SpritesWebGL.js"), C.U.TU(), delete C.U.TU);
  8386. C.assert("function" === typeof C.U.ST, C.n.Bf, "SpritesPropertyDefine.js");
  8387. C.U.ST();
  8388. delete C.U.ST;
  8389. C.TS = 29;
  8390. C.Bh = C.A.extend({
  8391. textureAtlas: s,
  8392. C: s,
  8393. Zg: s,
  8394. qa: "SpriteBatchNode",
  8395. Dwa: function(c, d, f) {
  8396. C.assert(c, C.n.Moa);
  8397. if (! (c instanceof C.u)) return C.log(C.n.Loa),
  8398. s;
  8399. c.atlasIndex = d;
  8400. var g = 0,
  8401. h = this.Zg;
  8402. if (h && 0 < h.length) for (var k = 0; k < h.length; k++) {
  8403. var n = h[k];
  8404. n && n.atlasIndex >= d && ++g
  8405. }
  8406. h.splice(g, 0, c);
  8407. C.A.prototype.q.call(this, c, d, f);
  8408. this.Wga(t);
  8409. return this
  8410. },
  8411. VH: A("textureAtlas"),
  8412. p3: function(c) {
  8413. c != this.textureAtlas && (this.textureAtlas = c)
  8414. },
  8415. qAa: A("Zg"),
  8416. Ce: function(c, d) {
  8417. var f = C.kb.av(c);
  8418. f || (f = C.kb.sd(c));
  8419. return this.ta(f, d)
  8420. },
  8421. Fn: function() {
  8422. this.Lk = q
  8423. },
  8424. j: function(c, d) {
  8425. var f = C.kb.av(c);
  8426. f || (f = C.kb.sd(c));
  8427. return this.ta(f, d)
  8428. },
  8429. aQ: function() {
  8430. var c = this.textureAtlas.capacity,
  8431. d = Math.floor(4 * (c + 1) / 3);
  8432. C.log(C.n.Noa, c, d);
  8433. this.textureAtlas.eR(d) || C.log(C.n.Ooa)
  8434. },
  8435. sGa: function(c, d) {
  8436. this.removeChild(this.l[c], d)
  8437. },
  8438. Dga: function(c, d) {
  8439. var f = c.children;
  8440. if (f && 0 < f.length) for (var g = 0; g < f.length; g++) {
  8441. var h = f[g];
  8442. h && 0 > h.zIndex && (d = this.Dga(h, d))
  8443. } ! c == this && (c.atlasIndex = d, d++);
  8444. if (f && 0 < f.length) for (g = 0; g < f.length; g++)(h = f[g]) && 0 <= h.zIndex && (d = this.Dga(h, d));
  8445. return d
  8446. },
  8447. S0: function(c) {
  8448. var d = c.children;
  8449. return ! d || 0 == d.length ? c.atlasIndex: this.S0(d[d.length - 1])
  8450. },
  8451. pEa: function(c) {
  8452. var d = c.children;
  8453. return ! d || 0 == d.length ? c.atlasIndex: this.pEa(d[d.length - 1])
  8454. },
  8455. axa: function(c, d) {
  8456. var f = c.parent,
  8457. g = f.children,
  8458. h = g.indexOf(c),
  8459. k = s;
  8460. 0 < h && h < C.EU && (k = g[h - 1]);
  8461. return f == this ? 0 == h ? 0 : this.S0(k) + 1 : 0 == h ? 0 > d ? f.atlasIndex: f.atlasIndex + 1 : 0 > k.zIndex && 0 > d || 0 <= k.zIndex && 0 <= d ? this.S0(k) + 1 : f.atlasIndex + 1
  8462. },
  8463. Wga: x("Oh"),
  8464. Yd: function(c, d) {
  8465. this.C = d === m ? c: {
  8466. src: c,
  8467. ga: d
  8468. }
  8469. },
  8470. ek: A("C"),
  8471. OC: function(c, d) {
  8472. C.assert(c, C.n.Roa); - 1 === this.l.indexOf(c) ? C.log(C.n.Qoa) : d !== c.zIndex && (C.A.prototype.OC.call(this, c, d), this.Da())
  8473. },
  8474. removeChild: function(c, d) {
  8475. c != s && ( - 1 === this.l.indexOf(c) ? C.log(C.n.Poa) : (this.by(c), C.A.prototype.removeChild.call(this, c, d)))
  8476. },
  8477. Hta: s,
  8478. eu: s,
  8479. KPa: t,
  8480. qi: s,
  8481. ctor: s,
  8482. pF: function(c, d) {
  8483. C.A.prototype.ctor.call(this);
  8484. var f;
  8485. d = d || C.TS;
  8486. "string" == typeof c ? (f = C.kb.av(c)) || (f = C.kb.sd(c)) : c instanceof C.Ma && (f = c);
  8487. f && this.ta(f, d)
  8488. },
  8489. qF: function(c, d) {
  8490. C.A.prototype.ctor.call(this);
  8491. this.Hta = new C.Ia;
  8492. var f;
  8493. d = d || C.TS;
  8494. "string" == typeof c ? (f = C.kb.av(c)) || (f = C.kb.sd(c)) : c instanceof C.Ma && (f = c);
  8495. f && this.ta(f, d)
  8496. },
  8497. lja: s,
  8498. fwa: function(c, d) {
  8499. C.assert(c, C.n.xka);
  8500. c instanceof C.u ? (c.batchNode = this, c.atlasIndex = d, c.dirty = q, c.$h()) : C.log(C.n.CS)
  8501. },
  8502. gwa: function(c, d) {
  8503. C.assert(c, C.n.CS);
  8504. if (c instanceof C.u) {
  8505. for (var f = this.textureAtlas.capacity; d >= f || f == this.textureAtlas.totalQuads;) this.aQ();
  8506. c.batchNode = this;
  8507. c.atlasIndex = d;
  8508. c.dirty = q;
  8509. c.$h()
  8510. } else C.log(C.n.CS)
  8511. },
  8512. cu: function(c, d) {
  8513. var f = this.Zg,
  8514. g = this.textureAtlas,
  8515. h = g.quads,
  8516. k = f[c],
  8517. n = C.H8(h[c]);
  8518. f[d].atlasIndex = c;
  8519. f[c] = f[d];
  8520. g.HJ(h[d], c);
  8521. f[d] = k;
  8522. g.HJ(n, d)
  8523. },
  8524. iQ: s,
  8525. mta: function(c, d) {
  8526. C.assert(c, C.n.uka);
  8527. c instanceof C.u ? (c.batchNode = this, c.atlasIndex = d, c.dirty = q, c.$h(), this.l.splice(d, 0, c)) : C.log(C.n.tka)
  8528. },
  8529. nta: function(c, d) {
  8530. C.assert(c, C.n.fpa);
  8531. if (c instanceof C.u) {
  8532. for (var f = this.textureAtlas; d >= f.capacity || f.capacity === f.totalQuads;) this.aQ();
  8533. c.batchNode = this;
  8534. c.atlasIndex = d;
  8535. f.e1(c.quad, d);
  8536. c.dirty = q;
  8537. c.$h()
  8538. } else C.log(C.n.epa)
  8539. },
  8540. bca: function(c, d) {
  8541. var f = 0,
  8542. g = c.children;
  8543. g && (f = g.length);
  8544. var h = 0;
  8545. if (0 === f) h = c.atlasIndex,
  8546. c.atlasIndex = d,
  8547. c.arrivalOrder = 0,
  8548. h != d && this.cu(h, d),
  8549. d++;
  8550. else {
  8551. h = q;
  8552. 0 <= g[0].zIndex && (h = c.atlasIndex, c.atlasIndex = d, c.arrivalOrder = 0, h != d && this.cu(h, d), d++, h = t);
  8553. for (f = 0; f < g.length; f++) {
  8554. var k = g[f];
  8555. h && 0 <= k.zIndex && (h = c.atlasIndex, c.atlasIndex = d, c.arrivalOrder = 0, h != d && this.cu(h, d), d++, h = t);
  8556. d = this.bca(k, d)
  8557. }
  8558. h && (h = c.atlasIndex, c.atlasIndex = d, c.arrivalOrder = 0, h != d && this.cu(h, d), d++)
  8559. }
  8560. return d
  8561. },
  8562. hl: function() {
  8563. this.textureAtlas.texture.Hp() || (this.C.src = C.SRC_ALPHA, this.C.ga = C.ONE_MINUS_SRC_ALPHA)
  8564. },
  8565. ta: s,
  8566. aX: function(c) {
  8567. this.l = [];
  8568. this.Zg = [];
  8569. this.C = new C.Vm(C.Ic, C.Hc);
  8570. this.eu = this.qi = c;
  8571. return q
  8572. },
  8573. bX: function(c, d) {
  8574. this.l = [];
  8575. this.Zg = [];
  8576. this.C = new C.Vm(C.Ic, C.Hc);
  8577. d = d || C.TS;
  8578. this.textureAtlas = new C.uq;
  8579. this.textureAtlas.ta(c, d);
  8580. this.hl();
  8581. this.shaderProgram = C.ug.Xd(C.Co);
  8582. return q
  8583. },
  8584. d1: function(c, d) {
  8585. c.batchNode = this;
  8586. c.atlasIndex = d;
  8587. c.dirty = q;
  8588. var f = this.textureAtlas;
  8589. f.totalQuads >= f.capacity && this.aQ();
  8590. f.e1(c.quad, d);
  8591. this.Zg.splice(d, 0, c);
  8592. var f = d + 1,
  8593. g = this.Zg;
  8594. if (g && 0 < g.length) for (; f < g.length; f++) g[f].atlasIndex++;
  8595. var g = c.children,
  8596. h;
  8597. if (g) {
  8598. f = 0;
  8599. for (l = g.length || 0; f < l; f++)(h = g[f]) && this.d1(h, this.axa(h, h.zIndex))
  8600. }
  8601. },
  8602. appendChild: s,
  8603. Nqa: function(c) {
  8604. this.Oh = q;
  8605. c.batchNode = this;
  8606. c.dirty = q;
  8607. this.Zg.push(c);
  8608. c.atlasIndex = this.Zg.length - 1;
  8609. c = c.children;
  8610. for (var d = 0,
  8611. f = c.length || 0; d < f; d++) this.appendChild(c[d])
  8612. },
  8613. Oqa: function(c) {
  8614. this.Oh = q;
  8615. c.batchNode = this;
  8616. c.dirty = q;
  8617. this.Zg.push(c);
  8618. var d = this.Zg.length - 1;
  8619. c.atlasIndex = d;
  8620. var f = this.textureAtlas;
  8621. f.totalQuads == f.capacity && this.aQ();
  8622. f.e1(c.quad, d);
  8623. c = c.children;
  8624. d = 0;
  8625. for (f = c.length || 0; d < f; d++) this.appendChild(c[d])
  8626. },
  8627. by: s,
  8628. Cua: function(c) {
  8629. c.batchNode = s;
  8630. var d = this.Zg,
  8631. f = d.indexOf(c);
  8632. if ( - 1 != f) {
  8633. d.splice(f, 1);
  8634. for (var g = d.length; f < g; ++f) d[f].atlasIndex--
  8635. }
  8636. if (c = c.children) {
  8637. d = 0;
  8638. for (f = c.length || 0; d < f; d++) c[d] && this.by(c[d])
  8639. }
  8640. },
  8641. Dua: function(c) {
  8642. this.textureAtlas.Vga(c.atlasIndex);
  8643. c.batchNode = s;
  8644. var d = this.Zg,
  8645. f = d.indexOf(c);
  8646. if ( - 1 != f) {
  8647. d.splice(f, 1);
  8648. for (var g = d.length; f < g; ++f) d[f].atlasIndex--
  8649. }
  8650. if (c = c.children) {
  8651. d = 0;
  8652. for (f = c.length || 0; d < f; d++) c[d] && this.by(c[d])
  8653. }
  8654. },
  8655. ob: s,
  8656. MF: A("eu"),
  8657. UW: function() {
  8658. return this.textureAtlas.texture
  8659. },
  8660. Va: s,
  8661. KY: function(c) {
  8662. this.eu = c;
  8663. for (var d = this.l,
  8664. f = 0; f < d.length; f++) d[f].texture = c
  8665. },
  8666. LY: function(c) {
  8667. this.textureAtlas.texture = c;
  8668. this.hl()
  8669. },
  8670. J: s,
  8671. Hr: function(c) {
  8672. var d = c || C.t;
  8673. if (this.Ja) {
  8674. d.save();
  8675. this.transform(c);
  8676. var f = this.l;
  8677. if (f) {
  8678. this.ed();
  8679. for (c = 0; c < f.length; c++) f[c] && f[c].J(d)
  8680. }
  8681. d.restore()
  8682. }
  8683. },
  8684. fx: function(c) {
  8685. c = c || C.t;
  8686. if (this.Ja) {
  8687. C.Zr();
  8688. var d = this.grid;
  8689. d && d.zi() && (d.px(), this.CJ());
  8690. this.ed();
  8691. this.transform(c);
  8692. this.ka(c);
  8693. d && d.zi() && d.mx(this);
  8694. C.Yr();
  8695. this.arrivalOrder = 0
  8696. }
  8697. },
  8698. q: s,
  8699. aV: function(c, d, f) {
  8700. C.assert(c != s, C.n.rka);
  8701. c instanceof C.u ? (d = d == s ? c.zIndex: d, f = f == s ? c.tag: f, C.A.prototype.q.call(this, c, d, f), this.appendChild(c), this.Da()) : C.log(C.n.pka)
  8702. },
  8703. Jqa: function(c, d, f) {
  8704. C.assert(c != s, C.n.Yoa);
  8705. c instanceof C.u ? c.texture != this.textureAtlas.texture ? C.log(C.n.Xoa) : (d = d == s ? c.zIndex: d, f = f == s ? c.tag: f, C.A.prototype.q.call(this, c, d, f), this.appendChild(c), this.Da()) : C.log(C.n.Woa)
  8706. },
  8707. xf: s,
  8708. zua: function(c) {
  8709. var d = this.Zg;
  8710. if (d && 0 < d.length) for (var f = 0,
  8711. g = d.length; f < g; f++) d[f] && (d[f].batchNode = s);
  8712. C.A.prototype.xf.call(this, c);
  8713. this.Zg.length = 0
  8714. },
  8715. Aua: function(c) {
  8716. var d = this.Zg;
  8717. if (d && 0 < d.length) for (var f = 0,
  8718. g = d.length; f < g; f++) d[f] && (d[f].batchNode = s);
  8719. C.A.prototype.xf.call(this, c);
  8720. this.Zg.length = 0;
  8721. this.textureAtlas.NC()
  8722. },
  8723. ed: s,
  8724. Eva: function() {
  8725. if (this.Oh) {
  8726. var c, d = 0,
  8727. f = this.l,
  8728. g = f.length,
  8729. h;
  8730. for (c = 1; c < g; c++) {
  8731. var k = f[c],
  8732. d = c - 1;
  8733. for (h = f[d]; 0 <= d && (k.Wa < h.Wa || k.Wa == h.Wa && k.arrivalOrder < h.arrivalOrder);) f[d + 1] = h,
  8734. d -= 1,
  8735. h = f[d];
  8736. f[d + 1] = k
  8737. }
  8738. 0 < f.length && this.Jk(f, C.A.Gj.ed);
  8739. this.Oh = t
  8740. }
  8741. },
  8742. Fva: function() {
  8743. if (this.Oh) {
  8744. var c = this.l,
  8745. d, f = 0,
  8746. g = c.length,
  8747. h;
  8748. for (d = 1; d < g; d++) {
  8749. var k = c[d],
  8750. f = d - 1;
  8751. for (h = c[f]; 0 <= f && (k.Wa < h.Wa || k.Wa == h.Wa && k.arrivalOrder < h.arrivalOrder);) c[f + 1] = h,
  8752. f -= 1,
  8753. h = c[f];
  8754. c[f + 1] = k
  8755. }
  8756. if (0 < c.length) {
  8757. this.Jk(c, C.A.Gj.ed);
  8758. for (d = f = 0; d < c.length; d++) f = this.bca(c[d], f)
  8759. }
  8760. this.Oh = t
  8761. }
  8762. },
  8763. ka: s,
  8764. gn: function() {
  8765. 0 !== this.textureAtlas.totalQuads && (this.pd.Af(), this.pd.Bj(), this.Jk(this.l, C.A.Gj.$h), C.Gm(this.C.src, this.C.ga), this.textureAtlas.KB())
  8766. }
  8767. });
  8768. H = C.Bh.prototype;
  8769. C.L === C.la ? (H.ctor = H.qF, H.lja = H.gwa, H.iQ = H.nta, H.ta = H.bX, H.appendChild = H.Oqa, H.by = H.Dua, H.ob = H.UW, H.Va = H.LY, H.J = H.fx, H.q = H.Jqa, H.xf = H.Aua, H.ed = H.Fva, H.ka = H.gn) : (H.ctor = H.pF, H.lja = H.fwa, H.iQ = H.mta, H.ta = H.aX, H.appendChild = H.Nqa, H.by = H.Cua, H.ob = H.MF, H.Va = H.KY, H.J = H.Hr, H.xf = H.zua, H.q = H.aV, H.ed = H.Eva, H.ka = C.A.prototype.ka);
  8770. C.e(H, "texture", H.ob, H.Va);
  8771. C.e(H, "descendants", H.qAa);
  8772. C.Bh.create = function(c, d) {
  8773. return new C.Bh(c, d)
  8774. };
  8775. C.ika = C.u.extend({
  8776. gi: s,
  8777. Ki: s,
  8778. ctor: function() {
  8779. C.u.prototype.ctor.call(this);
  8780. var c = document.createElement("canvas");
  8781. c.width = c.height = 10;
  8782. this.gi = c;
  8783. this.Ki = c.getContext("2d");
  8784. var d = new C.Ma;
  8785. d.Ng(c);
  8786. d.Md();
  8787. this.Va(d)
  8788. },
  8789. rTa: A("Ki"),
  8790. qTa: A("gi"),
  8791. Yga: function(c, d) {
  8792. d === m && (d = c.height, c = c.width);
  8793. var f = this.gi;
  8794. f.width = c;
  8795. f.height = d;
  8796. this.ob().Md();
  8797. this.qc(C.rect(0, 0, c, d), t)
  8798. }
  8799. });
  8800. C.Cl = C.O.extend({
  8801. vr: s,
  8802. Jh: 0,
  8803. rB: s,
  8804. ctor: function(c, d, f) {
  8805. this.vr = c || s;
  8806. this.Jh = d || 0;
  8807. this.rB = f || s
  8808. },
  8809. s: function() {
  8810. var c = new C.Cl;
  8811. c.mj(this.vr.s(), this.Jh, this.rB);
  8812. return c
  8813. },
  8814. iP: function() {
  8815. return C.s(this)
  8816. },
  8817. copy: function() {
  8818. var c = new C.Cl;
  8819. c.mj(this.vr.s(), this.Jh, this.rB);
  8820. return c
  8821. },
  8822. mj: function(c, d, f) {
  8823. this.vr = c;
  8824. this.Jh = d;
  8825. this.rB = f;
  8826. return q
  8827. },
  8828. nh: A("vr"),
  8829. pc: x("vr"),
  8830. aUa: A("Jh"),
  8831. S3a: x("Jh"),
  8832. qXa: A("rB"),
  8833. K5a: x("rB")
  8834. });
  8835. C.Cl.create = function(c, d, f) {
  8836. return new C.Cl(c, d, f)
  8837. };
  8838. C.gv = C.O.extend({
  8839. Lh: s,
  8840. dr: 0,
  8841. Kw: t,
  8842. D: 0,
  8843. Jh: 0,
  8844. wp: 0,
  8845. ctor: function(c, d, f) {
  8846. this.Lh = [];
  8847. if (c === m) this.cfa(s, 0);
  8848. else {
  8849. var g = c[0];
  8850. g && (g instanceof C.di ? this.cfa(c, d, f) : g instanceof C.Cl && this.bQ(c, d, f))
  8851. }
  8852. },
  8853. KUa: A("Lh"),
  8854. h4a: x("Lh"),
  8855. OZ: function(c) {
  8856. var d = new C.Cl;
  8857. d.mj(c, 1, s);
  8858. this.Lh.push(d);
  8859. this.wp++
  8860. },
  8861. gQa: function(c) {
  8862. c = C.kb.sd(c);
  8863. var d = C.rect(0, 0, 0, 0);
  8864. d.width = c.width;
  8865. d.height = c.height;
  8866. c = C.di.create(c, d);
  8867. this.OZ(c)
  8868. },
  8869. hQa: function(c, d) {
  8870. var f = C.di.create(c, d);
  8871. this.OZ(f)
  8872. },
  8873. bQ: function(c, d, f) {
  8874. C.yB(c, C.Cl);
  8875. this.Jh = d;
  8876. this.dr = f === m ? 1 : f;
  8877. this.wp = 0;
  8878. d = this.Lh;
  8879. for (f = d.length = 0; f < c.length; f++) {
  8880. var g = c[f];
  8881. d.push(g);
  8882. this.wp += g.Jh
  8883. }
  8884. return q
  8885. },
  8886. s: function() {
  8887. var c = new C.gv;
  8888. c.bQ(this.z9(), this.Jh, this.dr);
  8889. c.KR(this.Kw);
  8890. return c
  8891. },
  8892. iP: function() {
  8893. var c = new C.gv;
  8894. c.bQ(this.z9(), this.Jh, this.dr);
  8895. c.KR(this.Kw);
  8896. return c
  8897. },
  8898. z9: function() {
  8899. for (var c = [], d = 0; d < this.Lh.length; d++) c.push(this.Lh[d].s());
  8900. return c
  8901. },
  8902. copy: function() {
  8903. return this.iP(s)
  8904. },
  8905. jVa: A("dr"),
  8906. x4a: x("dr"),
  8907. KR: x("Kw"),
  8908. nWa: A("Kw"),
  8909. Rr: function() {
  8910. return this.wp * this.Jh
  8911. },
  8912. $Ta: A("Jh"),
  8913. R3a: x("Jh"),
  8914. dXa: A("wp"),
  8915. cfa: function(c, d, f) {
  8916. C.yB(c, C.di);
  8917. this.dr = f === m ? 1 : f;
  8918. this.Jh = d || 0;
  8919. this.wp = 0;
  8920. d = this.Lh;
  8921. d.length = 0;
  8922. if (c) {
  8923. for (f = 0; f < c.length; f++) {
  8924. var g = c[f],
  8925. h = new C.Cl;
  8926. h.mj(g, 1, s);
  8927. d.push(h)
  8928. }
  8929. this.wp += c.length
  8930. }
  8931. return q
  8932. },
  8933. fR: u(),
  8934. rh: u()
  8935. });
  8936. C.gv.create = function(c, d, f) {
  8937. return new C.gv(c, d, f)
  8938. };
  8939. C.oH = {
  8940. jz: {},
  8941. lH: function(c, d) {
  8942. this.jz[d] = c
  8943. },
  8944. Y1a: function(c) {
  8945. c && this.jz[c] && delete this.jz[c]
  8946. },
  8947. ll: function(c) {
  8948. return this.jz[c] ? this.jz[c] : s
  8949. },
  8950. Iqa: function(c, d) {
  8951. var f = c.animations;
  8952. if (f) {
  8953. var g = 1,
  8954. h = c.properties;
  8955. if (h) for (var g = h.format != s ? parseInt(h.format) : g, h = h.spritesheets, k = C.Fe, n = C.path, p = 0; p < h.length; p++) k.Lr(n.BB(d, h[p]));
  8956. switch (g) {
  8957. case 1:
  8958. this.hua(f);
  8959. break;
  8960. case 2:
  8961. this.iua(f);
  8962. break;
  8963. default:
  8964. C.log(C.n.Pwa)
  8965. }
  8966. } else C.log(C.n.Owa)
  8967. },
  8968. nwa: function(c) {
  8969. C.assert(c, C.n.Xwa);
  8970. var d = C.M.xd(c);
  8971. d ? this.Iqa(d, c) : C.log(C.n.Wwa)
  8972. },
  8973. hua: function(c) {
  8974. var d = C.Fe,
  8975. f;
  8976. for (f in c) {
  8977. var g = c[f],
  8978. h = g.frames,
  8979. g = parseFloat(g.delay) || 0,
  8980. k = s;
  8981. if (h) {
  8982. for (var k = [], n = 0; n < h.length; n++) {
  8983. var p = d.nh(h[n]);
  8984. if (p) {
  8985. var r = new C.Cl;
  8986. r.mj(p, 1, s);
  8987. k.push(r)
  8988. } else C.log(C.n.Rwa, f, h[n])
  8989. }
  8990. 0 === k.length ? C.log(C.n.Swa, f) : (k.length != h.length && C.log(C.n.Twa, f), k = C.gv.create(k, g, 1), C.oH.lH(k, f))
  8991. } else C.log(C.n.Qwa, f)
  8992. }
  8993. },
  8994. iua: function(c) {
  8995. var d = C.Fe,
  8996. f;
  8997. for (f in c) {
  8998. var g = c[f],
  8999. h = parseInt(g.loops),
  9000. h = g.loop ? C.xv: isNaN(h) ? 1 : h,
  9001. k = g.restoreOriginalFrame && g.restoreOriginalFrame == q ? q: t,
  9002. n = g.frames;
  9003. if (n) {
  9004. for (var p = [], r = 0; r < n.length; r++) {
  9005. var v = n[r],
  9006. y = v.spriteframe,
  9007. z = d.nh(y);
  9008. if (z) {
  9009. var y = parseFloat(v.delayUnits) || 0,
  9010. v = v.notification,
  9011. D = new C.Cl;
  9012. D.mj(z, y, v);
  9013. p.push(D)
  9014. } else C.log(C.n.Vwa, f, y)
  9015. }
  9016. g = parseFloat(g.delayPerUnit) || 0;
  9017. n = new C.gv;
  9018. n.bQ(p, g, h);
  9019. n.KR(k);
  9020. C.oH.lH(n, f)
  9021. } else C.log(C.n.Uwa, f)
  9022. }
  9023. },
  9024. dt: function() {
  9025. this.jz = {}
  9026. }
  9027. };
  9028. C.di = C.O.extend({
  9029. fb: s,
  9030. Gg: s,
  9031. Vi: s,
  9032. fg: t,
  9033. Ra: s,
  9034. Yk: s,
  9035. Zk: s,
  9036. da: s,
  9037. iB: "",
  9038. Aa: t,
  9039. pM: s,
  9040. ctor: function(c, d, f, g, h) {
  9041. this.fb = C.d(0, 0);
  9042. this.Yk = C.d(0, 0);
  9043. this.Gg = C.size(0, 0);
  9044. this.fg = t;
  9045. this.Zk = C.size(0, 0);
  9046. this.iB = "";
  9047. this.da = s;
  9048. this.Aa = t;
  9049. c !== m && d !== m && (f === m || g === m || h === m ? this.ta(c, d) : this.ta(c, d, f, g, h))
  9050. },
  9051. eD: A("Aa"),
  9052. ye: function(c, d) {
  9053. this.pM == s && (this.pM = []);
  9054. this.pM.push({
  9055. jl: c,
  9056. jj: d
  9057. })
  9058. },
  9059. cf: function() {
  9060. var c = this.pM;
  9061. if (c) {
  9062. for (var d = 0,
  9063. f = c.length; d < f; d++) {
  9064. var g = c[d];
  9065. g.jl.call(g.jj, this)
  9066. }
  9067. c.length = 0
  9068. }
  9069. },
  9070. EBa: function() {
  9071. var c = this.Vi;
  9072. return C.rect(c.x, c.y, c.width, c.height)
  9073. },
  9074. X4a: function(c) {
  9075. this.Vi || (this.Vi = C.rect(0, 0, 0, 0));
  9076. this.Vi.x = c.x;
  9077. this.Vi.y = c.y;
  9078. this.Vi.width = c.width;
  9079. this.Vi.height = c.height;
  9080. this.Ra = C.js(c)
  9081. },
  9082. IYa: A("fg"),
  9083. a5a: x("fg"),
  9084. Vh: function() {
  9085. var c = this.Ra;
  9086. return C.rect(c.x, c.y, c.width, c.height)
  9087. },
  9088. jia: function(c) {
  9089. this.Ra || (this.Ra = C.rect(0, 0, 0, 0));
  9090. this.Ra.x = c.x;
  9091. this.Ra.y = c.y;
  9092. this.Ra.width = c.width;
  9093. this.Ra.height = c.height;
  9094. this.Vi = C.XI(this.Ra)
  9095. },
  9096. BVa: A("Yk"),
  9097. F4a: function(c) {
  9098. this.Yk.x = c.x;
  9099. this.Yk.y = c.y;
  9100. C.RX(this.Yk, this.fb)
  9101. },
  9102. GVa: A("Zk"),
  9103. I4a: function(c) {
  9104. this.Zk.width = c.width;
  9105. this.Zk.height = c.height
  9106. },
  9107. sBa: A("Gg"),
  9108. H4a: function(c) {
  9109. this.Gg.width = c.width;
  9110. this.Gg.height = c.height
  9111. },
  9112. ob: function() {
  9113. if (this.da) return this.da;
  9114. if ("" !== this.iB) {
  9115. var c = C.kb.sd(this.iB);
  9116. c && (this.Aa = c.de);
  9117. return c
  9118. }
  9119. return s
  9120. },
  9121. Va: function(c) {
  9122. if (this.da != c) {
  9123. var d = c.de;
  9124. this.Aa = d;
  9125. this.da = c;
  9126. d || c.ye(function(c) {
  9127. this.Aa = q;
  9128. if (this.fg && C.L === C.cb) {
  9129. var d = c.jd,
  9130. d = C.J_(d, this.Vh()),
  9131. h = new C.Ma;
  9132. h.Ng(d);
  9133. h.Md();
  9134. this.Va(h);
  9135. d = this.Vh();
  9136. this.jia(C.rect(0, 0, d.width, d.height))
  9137. }
  9138. d = this.Ra;
  9139. 0 === d.width && 0 === d.height && (d = c.width, c = c.height, this.Ra.width = d, this.Ra.height = c, this.Vi = C.XI(this.Ra), this.Zk.width = this.Vi.width, this.Zk.height = this.Vi.height, this.Gg.width = d, this.Gg.height = c);
  9140. this.cf()
  9141. },
  9142. this)
  9143. }
  9144. },
  9145. hea: A("fb"),
  9146. DR: function(c) {
  9147. this.fb.x = c.x;
  9148. this.fb.y = c.y
  9149. },
  9150. s: function() {
  9151. var c = new C.di;
  9152. c.ta(this.iB, this.Vi, this.fg, this.Yk, this.Zk);
  9153. c.Va(this.da);
  9154. return c
  9155. },
  9156. iP: function() {
  9157. var c = new C.di;
  9158. c.ta(this.iB, this.Vi, this.fg, this.Yk, this.Zk);
  9159. c.Va(this.da);
  9160. return c
  9161. },
  9162. copy: function() {
  9163. return this.iP()
  9164. },
  9165. ta: function(c, d, f, g, h) {
  9166. 2 === arguments.length && (d = C.XI(d));
  9167. g = g || C.d(0, 0);
  9168. h = h || d;
  9169. f = f || t;
  9170. "string" == typeof c ? (this.da = s, this.iB = c) : c instanceof C.Ma && this.Va(c);
  9171. if (c = this.ob()) {
  9172. var k, n;
  9173. f ? (k = d.x + d.height, n = d.y + d.width) : (k = d.x + d.width, n = d.y + d.height);
  9174. k > c.width && C.error(C.n.YT, c.url);
  9175. n > c.height && C.error(C.n.XT, c.url)
  9176. }
  9177. this.Vi = d;
  9178. this.Ra = C.js(d);
  9179. this.Yk.x = g.x;
  9180. this.Yk.y = g.y;
  9181. C.RX(g, this.fb);
  9182. this.Zk.width = h.width;
  9183. this.Zk.height = h.height;
  9184. C.Fba(h, this.Gg);
  9185. this.fg = f;
  9186. return q
  9187. }
  9188. });
  9189. C.di.create = function(c, d, f, g, h) {
  9190. return new C.di(c, d, f, g, h)
  9191. };
  9192. C.di.DOa = function(c, d, f, g, h) {
  9193. var k = new C.di;
  9194. k.da = c;
  9195. k.Vi = d;
  9196. k.Ra = C.js(d);
  9197. k.Yk.x = g.x;
  9198. k.Yk.y = g.y;
  9199. C.RX(k.Yk, k.fb);
  9200. k.Zk.width = h.width;
  9201. k.Zk.height = h.height;
  9202. C.Fba(k.Zk, k.Gg);
  9203. k.fg = f;
  9204. return k
  9205. };
  9206. C.Fe = {
  9207. Q8: /^\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*$/,
  9208. sqa: /^\s*\{\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*,\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*\}\s*$/,
  9209. Hn: {},
  9210. wr: {},
  9211. bA: {},
  9212. aba: function(c) {
  9213. c = this.sqa.exec(c);
  9214. return ! c ? C.rect(0, 0, 0, 0) : C.rect(parseFloat(c[1]), parseFloat(c[2]), parseFloat(c[3]), parseFloat(c[4]))
  9215. },
  9216. Paa: function(c) {
  9217. c = this.Q8.exec(c);
  9218. return ! c ? C.d(0, 0) : C.d(parseFloat(c[1]), parseFloat(c[2]))
  9219. },
  9220. PY: function(c) {
  9221. c = this.Q8.exec(c);
  9222. return ! c ? C.size(0, 0) : C.size(parseFloat(c[1]), parseFloat(c[2]))
  9223. },
  9224. nsa: function(c) {
  9225. var d = C.M.xd(c);
  9226. C.assert(d, C.n.NIa, c);
  9227. C.M.rh(c);
  9228. if (d.nA) return this.bA[c] = d;
  9229. var f = d.frames,
  9230. g = d.metadata || d.meta,
  9231. d = {},
  9232. h = {},
  9233. k = 0;
  9234. g && (k = g.format, k = 1 >= k.length ? parseInt(k) : k, h.HCa = g.textureFileName || g.textureFileName || g.image);
  9235. for (var n in f) {
  9236. var p = f[n];
  9237. if (p) {
  9238. g = {};
  9239. if (0 == k) {
  9240. g.rect = C.rect(p.x, p.y, p.width, p.height);
  9241. g.jR = t;
  9242. g.offset = C.d(p.offsetX, p.offsetY);
  9243. var r = p.originalWidth,
  9244. p = p.originalHeight; (!r || !p) && C.log(C.n.MIa);
  9245. r = Math.abs(r);
  9246. p = Math.abs(p);
  9247. g.size = C.size(r, p)
  9248. } else if (1 == k || 2 == k) g.rect = this.aba(p.frame),
  9249. g.jR = p.rotated || t,
  9250. g.offset = this.Paa(p.offset),
  9251. g.size = this.PY(p.sourceSize);
  9252. else if (3 == k) {
  9253. var r = this.PY(p.spriteSize),
  9254. v = this.aba(p.textureRect);
  9255. r && (v = C.rect(v.x, v.y, r.width, r.height));
  9256. g.rect = v;
  9257. g.jR = p.textureRotated || t;
  9258. g.offset = this.Paa(p.spriteOffset);
  9259. g.size = this.PY(p.spriteSourceSize);
  9260. g.Gwa = p.aliases
  9261. } else r = p.frame,
  9262. v = p.sourceSize,
  9263. n = p.filename || n,
  9264. g.rect = C.rect(r.x, r.y, r.w, r.h),
  9265. g.jR = p.rotated || t,
  9266. g.offset = C.d(0, 0),
  9267. g.size = C.size(v.w, v.h);
  9268. d[n] = g
  9269. }
  9270. }
  9271. return this.bA[c] = {
  9272. nA: q,
  9273. frames: d,
  9274. qEa: h
  9275. }
  9276. },
  9277. Lr: function(c, d) {
  9278. C.assert(c, C.n.PIa);
  9279. var f = this.bA[c] || C.M.xd(c);
  9280. if (f && f.frames) {
  9281. var g = this.bA[c] || this.nsa(c),
  9282. f = g.frames,
  9283. g = g.qEa;
  9284. d ? d instanceof C.Ma || ("string" == typeof d ? d = C.kb.sd(d) : C.assert(0, C.n.QIa)) : d = C.kb.sd(C.path.BB(c, g.HCa || ".png"));
  9285. var g = this.wr,
  9286. h = this.Hn,
  9287. k;
  9288. for (k in f) {
  9289. var n = f[k],
  9290. p = h[k];
  9291. if (!p) {
  9292. p = C.di.create(d, n.rect, n.jR, n.offset, n.size);
  9293. if (n = n.Gwa) for (var r = 0,
  9294. v = n.length; r < v; r++) {
  9295. var y = n[r];
  9296. g[y] && C.log(C.n.OIa, y);
  9297. g[y] = k
  9298. }
  9299. C.L === C.cb && p.fg && p.ob().de && (n = p.ob().jd, n = C.J_(n, p.EBa()), r = new C.Ma, r.Ng(n), r.Md(), p.Va(r), n = p.Ra, p.jia(C.rect(0, 0, n.width, n.height)));
  9300. h[k] = p
  9301. }
  9302. }
  9303. }
  9304. },
  9305. eOa: function(c) {
  9306. c = c.frames;
  9307. for (var d in c) this.Hn[d] && C.log(C.n.LIa, d)
  9308. },
  9309. OZ: function(c, d) {
  9310. this.Hn[d] = c
  9311. },
  9312. q2a: function() {
  9313. this.Hn = {};
  9314. this.wr = {}
  9315. },
  9316. p2a: function(c) {
  9317. c && (this.wr[c] && delete this.wr[c], this.Hn[c] && delete this.Hn[c])
  9318. },
  9319. AGa: function(c) {
  9320. var d = this.Hn,
  9321. f = this.wr;
  9322. if (c = this.bA[c]) {
  9323. c = c.frames;
  9324. for (var g in c) if (d[g]) {
  9325. delete d[g];
  9326. for (var h in f) f[h] == g && delete f[h]
  9327. }
  9328. }
  9329. },
  9330. r2a: function(c) {
  9331. var d = this.Hn,
  9332. f = this.wr,
  9333. g;
  9334. for (g in d) {
  9335. var h = d[g];
  9336. if (h && h.ob() == c) {
  9337. delete d[g];
  9338. for (var k in f) f[k] == g && delete f[k]
  9339. }
  9340. }
  9341. },
  9342. nh: function(c) {
  9343. var d = this.Hn[c];
  9344. if (!d) {
  9345. var f = this.wr[c];
  9346. f && ((d = this.Hn[f.toString()]) || delete this.wr[c])
  9347. }
  9348. d || C.log(C.n.RIa, c);
  9349. return d
  9350. },
  9351. dt: function() {
  9352. this.Hn = {};
  9353. this.wr = {};
  9354. this.bA = {}
  9355. }
  9356. };
  9357. C.FB = {
  9358. KLa: 0,
  9359. dNa: 1,
  9360. INT: 2,
  9361. xLa: 3,
  9362. JKa: 4,
  9363. bG: 0,
  9364. Eta: 0,
  9365. hZ: t,
  9366. mO: t,
  9367. fZ: t,
  9368. gZ: t,
  9369. iZ: t,
  9370. dPa: 0,
  9371. wX: 0,
  9372. bL: "",
  9373. dH: {},
  9374. nA: t,
  9375. UF: function() {
  9376. var c = this.dH;
  9377. c["cocos2d.x.version"] = C.$S;
  9378. c["cocos2d.x.compiled_with_profiler"] = t;
  9379. c["cocos2d.x.compiled_with_gl_state_cache"] = C.an;
  9380. this.nA = q
  9381. },
  9382. pVa: A("bG"),
  9383. oVa: A("Eta"),
  9384. qVa: A("wX"),
  9385. $5a: A("mO"),
  9386. a6a: A("hZ"),
  9387. Z5a: B(t),
  9388. b6a: B(t),
  9389. W5a: B(t),
  9390. X5a: A("fZ"),
  9391. Y5a: A("gZ"),
  9392. c6a: A("iZ"),
  9393. CB: function(c) {
  9394. return - 1 < this.bL.indexOf(c)
  9395. },
  9396. Qf: function(c, d) {
  9397. this.nA || this.UF();
  9398. var f = this.dH;
  9399. return f[c] ? f[c] : d
  9400. },
  9401. ne: function(c, d) {
  9402. this.dH[c] = d
  9403. },
  9404. Sya: function() {
  9405. 0 === C.an && (C.log(""), C.log(C.n.Mxa), C.log(""))
  9406. },
  9407. Uza: function() {
  9408. if (C.L !== C.cb) {
  9409. this.nA || this.UF();
  9410. var c = C.t,
  9411. d = this.dH;
  9412. d["gl.vendor"] = c.getParameter(c.VENDOR);
  9413. d["gl.renderer"] = c.getParameter(c.RENDERER);
  9414. d["gl.version"] = c.getParameter(c.VERSION);
  9415. this.bL = "";
  9416. for (var f = c.getSupportedExtensions(), g = 0; g < f.length; g++) this.bL += f[g] + " ";
  9417. this.bG = c.getParameter(c.MAX_TEXTURE_SIZE);
  9418. d["gl.max_texture_size"] = this.bG;
  9419. this.wX = c.getParameter(c.MAX_COMBINED_TEXTURE_IMAGE_UNITS);
  9420. d["gl.max_texture_units"] = this.wX;
  9421. this.hZ = this.CB("GL_IMG_texture_compression_pvrtc");
  9422. d["gl.supports_PVRTC"] = this.hZ;
  9423. this.mO = t;
  9424. d["gl.supports_NPOT"] = this.mO;
  9425. this.fZ = this.CB("GL_IMG_texture_format_BGRA888");
  9426. d["gl.supports_BGRA8888"] = this.fZ;
  9427. this.gZ = this.CB("GL_EXT_discard_framebuffer");
  9428. d["gl.supports_discard_framebuffer"] = this.gZ;
  9429. this.iZ = this.CB("vertex_array_object");
  9430. d["gl.supports_vertex_array_object"] = this.iZ;
  9431. C.DB()
  9432. }
  9433. },
  9434. $_a: function(c) {
  9435. this.nA || this.UF();
  9436. var d = C.M.xd(c);
  9437. d || e("Please load the resource first : " + c);
  9438. C.assert(d, C.n.Oxa, c);
  9439. if (d = d.data) for (var f in d) this.dH[f] = d[f];
  9440. else C.log(C.n.Nxa, c)
  9441. }
  9442. };
  9443. C.U.WS = function() {
  9444. C.zLa = C.O.extend({
  9445. H6a: u()
  9446. });
  9447. var c = C.ec.prototype;
  9448. c.py = function(c) {
  9449. var f = this.aa;
  9450. this.Aia();
  9451. var g = this.vn,
  9452. h = g.jh.x / g.ia,
  9453. k = g.jh.y / g.pa;
  9454. switch (c) {
  9455. case C.ec.Mna:
  9456. C.Op(C.mq);
  9457. C.kC();
  9458. g = new C.Ia;
  9459. C.q1(g, 0, f.width, 0, f.height, -1024, 1024);
  9460. C.lC(g);
  9461. C.Op(C.lq);
  9462. C.kC();
  9463. break;
  9464. case C.ec.k7:
  9465. var n = this.dI(),
  9466. p = new C.Ia,
  9467. g = new C.Ia;
  9468. C.Op(C.mq);
  9469. C.kC();
  9470. C.TDa(p, f.width / f.height, 2 * n);
  9471. C.lC(p);
  9472. C.Op(C.lq);
  9473. C.kC();
  9474. n = C.nC(s, -h + f.width / 2, -k + f.height / 2, n);
  9475. f = C.nC(s, -h + f.width / 2, -k + f.height / 2, 0);
  9476. h = C.nC(s, 0, 1, 0);
  9477. C.rfa(g, n, f, h);
  9478. C.lC(g);
  9479. break;
  9480. case C.ec.Nna:
  9481. break;
  9482. default:
  9483. C.log(C.n.Kla)
  9484. }
  9485. this.op = c;
  9486. C.Ka.dispatchEvent(this.qM);
  9487. C.$ha()
  9488. };
  9489. c.wha = function(c) {
  9490. var f = C.t;
  9491. c ? (f.clearDepth(1), f.enable(f.DEPTH_TEST), f.depthFunc(f.LEQUAL)) : f.disable(f.DEPTH_TEST)
  9492. };
  9493. c.W2 = function(c) {
  9494. this.aa.width = C.Pb.width;
  9495. this.aa.height = C.Pb.height;
  9496. this.vn = c || C.view;
  9497. c = C.FB;
  9498. c.Uza();
  9499. c.Sya();
  9500. this.Kz();
  9501. this.Fha();
  9502. C.Ka && C.Ka.Ib(q)
  9503. };
  9504. c.dt = function() {
  9505. var c = C.t;
  9506. c.clear(c.COLOR_BUFFER_BIT | c.DEPTH_BUFFER_BIT)
  9507. };
  9508. c.vV = function() {
  9509. C.Zr()
  9510. };
  9511. c.cV = function() {
  9512. C.Yr()
  9513. };
  9514. c.Kz = function() {
  9515. if (C.Gl) {
  9516. if (! (C.ec.D$ == s || C.ec.D$ == t)) {
  9517. var c = new C.Ma;
  9518. c.Ng(C.ec.aA);
  9519. c.Md();
  9520. var f = C.view.LH().height / 320;
  9521. 0 === f && (f = this.aa.height / 320);
  9522. var g = new C.Gl;
  9523. g.CY(q);
  9524. g.sf("00.0", c, 12, 32, ".");
  9525. g.scale = f;
  9526. this.Gk = g;
  9527. g = new C.Gl;
  9528. g.CY(q);
  9529. g.sf("0.000", c, 12, 32, ".");
  9530. g.scale = f;
  9531. this.Hk = g;
  9532. g = new C.Gl;
  9533. g.CY(q);
  9534. g.sf("000", c, 12, 32, ".");
  9535. g.scale = f;
  9536. this.Rk = g;
  9537. c = C.US;
  9538. this.Rk.p(c.x, 34 * f + c.y);
  9539. this.Hk.p(c.x, 17 * f + c.y);
  9540. this.Gk.p(c)
  9541. }
  9542. } else this.Bra()
  9543. };
  9544. c.Bra = function() {
  9545. var c = 0,
  9546. c = this.aa.width > this.aa.height ? 0 | 24 * (this.aa.height / 320) : 0 | 24 * (this.aa.width / 320);
  9547. this.Gk = C.fa.create("000.0", "Arial", c);
  9548. this.Hk = C.fa.create("0.000", "Arial", c);
  9549. this.Rk = C.fa.create("0000", "Arial", c);
  9550. c = C.US;
  9551. this.Rk.p(this.Rk.width / 2 + c.x, 5 * this.Rk.height / 2 + c.y);
  9552. this.Hk.p(this.Hk.width / 2 + c.x, 3 * this.Hk.height / 2 + c.y);
  9553. this.Gk.p(this.Gk.width / 2 + c.x, this.Gk.height / 2 + c.y)
  9554. };
  9555. c.Sxa = function(c) {
  9556. var f = new C.Ia;
  9557. C.X5(f);
  9558. var g = new C.Ia;
  9559. C.SDa(g, f);
  9560. var f = f.c[14] / f.c[15],
  9561. h = this.vn.LH(),
  9562. k = new C.Zc;
  9563. C.Bfa(k, new C.Zc(2 * c.x / h.width - 1, 1 - 2 * c.y / h.height, f), g);
  9564. return C.d(k.x, k.y)
  9565. };
  9566. c.Uxa = function(c) {
  9567. var f = new C.Ia;
  9568. C.X5(f);
  9569. var g = new C.Zc;
  9570. C.Bfa(g, new C.Zc(c.x, c.y, 0), f);
  9571. c = this.vn.LH();
  9572. return C.d(c.width * (0.5 * g.x + 0.5), c.height * (0.5 * -g.y + 0.5))
  9573. };
  9574. c.aI = function() {
  9575. return this.vn.aI()
  9576. };
  9577. c.L0 = function() {
  9578. return this.vn.L0()
  9579. };
  9580. c.dI = function() {
  9581. return this.aa.height / 1.1566
  9582. };
  9583. c.Aia = function() {
  9584. var c = this.vn;
  9585. if (c) {
  9586. var f = this.aa;
  9587. c.AIa( - c.jh.x / c.ia, -c.jh.y / c.pa, f.width, f.height)
  9588. }
  9589. };
  9590. c.DVa = A("vn");
  9591. c.gWa = A("op");
  9592. c.WGa = function() {
  9593. C.Gm(C.Ic, C.Hc)
  9594. };
  9595. c.Fha = function() {
  9596. this.WGa();
  9597. this.wha(t);
  9598. this.py(this.op);
  9599. C.t.clearColor(0, 0, 0, 1)
  9600. }
  9601. };
  9602. C.kl = 0;
  9603. C.X5 = function(c) {
  9604. var d = new C.Ia;
  9605. C.rQ(C.mq, d);
  9606. var f = new C.Ia;
  9607. C.rQ(C.lq, f);
  9608. C.Qp(c, d, f)
  9609. };
  9610. C.ec = C.O.extend({
  9611. YOa: t,
  9612. eG: t,
  9613. xe: t,
  9614. GN: t,
  9615. Tt: t,
  9616. TE: 0,
  9617. FX: 0,
  9618. op: 0,
  9619. gz: 0,
  9620. Ul: 1,
  9621. yF: t,
  9622. it: 0,
  9623. zW: 0,
  9624. Gk: s,
  9625. Hk: s,
  9626. Rk: s,
  9627. aa: s,
  9628. At: s,
  9629. ep: s,
  9630. qN: s,
  9631. vn: s,
  9632. rp: s,
  9633. hY: s,
  9634. gg: s,
  9635. Lh: 0,
  9636. tO: 0,
  9637. vY: 0,
  9638. zOa: s,
  9639. hh: s,
  9640. Pl: s,
  9641. qM: s,
  9642. qW: s,
  9643. sW: s,
  9644. rW: s,
  9645. ctor: function() {
  9646. var c = this;
  9647. c.At = Date.now();
  9648. C.Ka.MZ(C.qf.JD,
  9649. function() {
  9650. c.At = Date.now()
  9651. })
  9652. },
  9653. j: function() {
  9654. this.FX = this.TE = 1 / C.wya;
  9655. this.rp = [];
  9656. this.op = C.ec.Ona;
  9657. this.hY = s;
  9658. this.zW = this.gz = 0;
  9659. this.yF = t;
  9660. this.tO = this.Lh = 0;
  9661. this.At = Date.now();
  9662. this.GN = this.xe = t;
  9663. this.aa = C.size(0, 0);
  9664. this.vn = s;
  9665. this.Ul = 1;
  9666. this.hh = new C.cz;
  9667. this.Pl = C.k4 ? new C.k4: s;
  9668. this.hh.lR(this.Pl, C.cz.BK, t);
  9669. this.qW = new C.jq(C.ec.Ula);
  9670. this.qW.setUserData(this);
  9671. this.sW = new C.jq(C.ec.Wla);
  9672. this.sW.setUserData(this);
  9673. this.rW = new C.jq(C.ec.Vla);
  9674. this.rW.setUserData(this);
  9675. this.qM = new C.jq(C.ec.ama);
  9676. this.qM.setUserData(this);
  9677. return q
  9678. },
  9679. xxa: function() {
  9680. var c = Date.now();
  9681. this.eG ? (this.it = 0, this.eG = t) : this.it = (c - this.At) / 1E3;
  9682. 0 < C.qf.gj[C.qf.Wm.CH] && 0.2 < this.it && (this.it = 1 / 60);
  9683. this.At = c
  9684. },
  9685. Qya: function() {
  9686. this.xxa();
  9687. this.xe || (this.hh.update(this.it), C.Ka.dispatchEvent(this.rW));
  9688. this.dt();
  9689. this.ep && this.OHa();
  9690. this.vV && this.vV();
  9691. this.gg && (this.gg.J(), C.Ka.dispatchEvent(this.sW));
  9692. this.qN && this.qN.J();
  9693. this.yF && this.Dva();
  9694. this.cV && this.cV();
  9695. C.Ka.dispatchEvent(this.qW);
  9696. this.tO++;
  9697. this.yF && this.fra()
  9698. },
  9699. vV: s,
  9700. cV: s,
  9701. end: function() {
  9702. this.GN = q
  9703. },
  9704. JTa: A("Ul"),
  9705. wVa: A("qN"),
  9706. vXa: A("aa"),
  9707. bI: function() {
  9708. return C.size(this.aa.width * this.Ul, this.aa.height * this.Ul)
  9709. },
  9710. pause: function() {
  9711. this.xe || (this.FX = this.TE, this.hha(0.25), this.xe = q)
  9712. },
  9713. j1a: function() {
  9714. C.assert(this.gg, C.n.Hla);
  9715. this.rp.pop();
  9716. var c = this.rp.length;
  9717. 0 == c ? this.end() : (this.Tt = q, this.ep = this.rp[c - 1])
  9718. },
  9719. WFa: function() {
  9720. C.oH.dt();
  9721. C.Fe.dt();
  9722. C.kb.dt()
  9723. },
  9724. XFa: function() {
  9725. this.Em().FJ();
  9726. C.Ka && C.Ka.Ib(t);
  9727. this.gg && (this.gg.ph(), this.gg.Na(), this.gg.ze());
  9728. this.ep = this.gg = s;
  9729. this.rp.length = 0;
  9730. this.Qia();
  9731. this.WFa();
  9732. C.DB()
  9733. },
  9734. ZFa: function(c) {
  9735. C.assert(c, C.n.y5);
  9736. this.Tt = t;
  9737. this.rp.push(c);
  9738. this.ep = c
  9739. },
  9740. PC: function(c) {
  9741. C.assert(c, C.n.y5);
  9742. if (this.gg) {
  9743. var d = this.rp.length;
  9744. 0 === d ? (this.Tt = q, this.rp[d] = c) : (this.Tt = q, this.rp[d - 1] = c);
  9745. this.ep = c
  9746. } else this.ZFa(c),
  9747. this.Nia()
  9748. },
  9749. nk: function() {
  9750. this.xe && (this.hha(this.FX), (this.At = Date.now()) || C.log(C.n.Jla), this.xe = t, this.it = 0)
  9751. },
  9752. J3a: function(c) {
  9753. c != this.Ul && (this.Ul = c, this.Kz())
  9754. },
  9755. Q3a: u(),
  9756. B4a: x("eG"),
  9757. OHa: function() {
  9758. var c = t,
  9759. d = t;
  9760. C.tb && (c = this.gg ? this.gg instanceof C.tb: t, d = this.ep ? this.ep instanceof C.tb: t);
  9761. if (!d) {
  9762. if (d = this.gg) d.ph(),
  9763. d.Na();
  9764. this.Tt && d && d.ze()
  9765. }
  9766. this.gg = this.ep;
  9767. this.ep = s; ! c && this.gg != s && (this.gg.Z(), this.gg.qj())
  9768. },
  9769. D4a: x("qN"),
  9770. ZB: A("hY"),
  9771. bq: x("hY"),
  9772. Dva: function() {
  9773. this.Lh++;
  9774. this.gz += this.it;
  9775. this.Gk && this.Hk && this.Rk ? (this.gz > C.Ela && (this.Hk.string = this.vY.toFixed(3), this.zW = this.Lh / this.gz, this.gz = this.Lh = 0, this.Gk.string = this.zW.toFixed(1), this.Rk.string = (0 | C.kl).toString()), this.Gk.J(), this.Hk.J(), this.Rk.J()) : this.Kz();
  9776. C.kl = 0
  9777. },
  9778. JYa: A("Tt"),
  9779. rWa: A("gg"),
  9780. NSa: A("TE"),
  9781. nYa: A("yF"),
  9782. qHa: x("yF"),
  9783. wWa: A("vY"),
  9784. yYa: A("eG"),
  9785. DYa: A("xe"),
  9786. eXa: A("tO"),
  9787. k1a: function() {
  9788. this.LFa(1)
  9789. },
  9790. LFa: function(c) {
  9791. C.assert(this.gg, C.n.Ila);
  9792. var d = this.rp,
  9793. f = d.length;
  9794. if (0 == f) this.end();
  9795. else if (! (c > f)) {
  9796. for (; f > c;) {
  9797. var g = d.pop();
  9798. g.running && (g.ph(), g.Na());
  9799. g.ze();
  9800. f--
  9801. }
  9802. this.ep = d[d.length - 1];
  9803. this.Tt = t
  9804. }
  9805. },
  9806. Em: A("hh"),
  9807. nia: function(c) {
  9808. this.hh != c && (this.hh = c)
  9809. },
  9810. UB: A("Pl"),
  9811. eha: function(c) {
  9812. this.Pl != c && (this.Pl = c)
  9813. },
  9814. bUa: A("it"),
  9815. Kz: s,
  9816. fra: function() {
  9817. this.vY = (Date.now() - this.At) / 1E3
  9818. }
  9819. });
  9820. C.ec.ama = "director_projection_changed";
  9821. C.ec.Ula = "director_after_draw";
  9822. C.ec.Wla = "director_after_visit";
  9823. C.ec.Vla = "director_after_update";
  9824. C.Lla = C.ec.extend({
  9825. kQ: t,
  9826. Nia: function() {
  9827. this.eG = q;
  9828. this.kQ = t
  9829. },
  9830. Ofa: function() {
  9831. this.GN ? (this.GN = t, this.XFa()) : this.kQ || this.Qya()
  9832. },
  9833. Qia: function() {
  9834. this.kQ = q
  9835. },
  9836. hha: function(c) {
  9837. this.TE = c;
  9838. this.kQ || (this.Qia(), this.Nia())
  9839. }
  9840. });
  9841. C.ec.z3 = s;
  9842. C.ec.yda = q;
  9843. C.ec.KW = function() {
  9844. C.ec.yda && (C.ec.yda = t, C.ec.z3 = new C.Lla, C.ec.z3.j());
  9845. return C.ec.z3
  9846. };
  9847. C.wya = 60;
  9848. C.ec.Mna = 0;
  9849. C.ec.k7 = 1;
  9850. C.ec.Nna = 3;
  9851. C.ec.Ona = C.ec.k7;
  9852. C.L === C.cb ? (H = C.ec.prototype, H.py = function(c) {
  9853. this.op = c;
  9854. C.Ka.dispatchEvent(this.qM)
  9855. },
  9856. H.wha = u(), H.W2 = function(c) {
  9857. this.aa.width = C.Pb.width;
  9858. this.aa.height = C.Pb.height;
  9859. this.vn = c || C.view;
  9860. C.Ka && C.Ka.Ib(q)
  9861. },
  9862. H.dt = function() {
  9863. var c = this.vn.jh;
  9864. C.t.clearRect( - c.x, c.y, c.width, -c.height)
  9865. },
  9866. H.Kz = function() {
  9867. var c = 0,
  9868. c = this.aa.width > this.aa.height ? 0 | 24 * (this.aa.height / 320) : 0 | 24 * (this.aa.width / 320);
  9869. this.Gk = C.fa.create("000.0", "Arial", c);
  9870. this.Hk = C.fa.create("0.000", "Arial", c);
  9871. this.Rk = C.fa.create("0000", "Arial", c);
  9872. c = C.US;
  9873. this.Rk.p(this.Rk.width / 2 + c.x, 5 * this.Rk.height / 2 + c.y);
  9874. this.Hk.p(this.Hk.width / 2 + c.x, 3 * this.Hk.height / 2 + c.y);
  9875. this.Gk.p(this.Gk.width / 2 + c.x, this.Gk.height / 2 + c.y)
  9876. },
  9877. H.aI = A("aa"), H.L0 = function() {
  9878. return C.d(0, 0)
  9879. }) : (C.ec.aA = new Image, C.qb(C.ec.aA, "load",
  9880. function() {
  9881. C.ec.D$ = q
  9882. }), C.aA && (C.ec.aA.src = C.aA), C.assert("function" === typeof C.U.WS, C.n.Bf, "CCDirectorWebGL.js"), C.U.WS(), delete C.U.WS);
  9883. C.FD = C.O.extend({
  9884. BF: s,
  9885. CF: s,
  9886. DF: s,
  9887. Dz: s,
  9888. Ez: s,
  9889. Fz: s,
  9890. ZG: s,
  9891. $G: s,
  9892. aH: s,
  9893. Ac: s,
  9894. bN: s,
  9895. ctor: function() {
  9896. this.bN = new C.Ia;
  9897. this.restore()
  9898. },
  9899. description: function() {
  9900. return "\x3cCCCamera | center \x3d(" + this.Dz + "," + this.Ez + "," + this.Fz + ")\x3e"
  9901. },
  9902. xha: x("Ac"),
  9903. h1: A("Ac"),
  9904. restore: function() {
  9905. this.BF = this.CF = 0;
  9906. this.DF = C.FD.dI();
  9907. this.ZG = this.Dz = this.Ez = this.Fz = 0;
  9908. this.$G = 1;
  9909. this.aH = 0;
  9910. C.Ox(this.bN);
  9911. this.Ac = t
  9912. },
  9913. yI: function() {
  9914. if (this.Ac) {
  9915. var c = new C.Zc,
  9916. d = new C.Zc,
  9917. f = new C.Zc;
  9918. C.nC(c, this.BF, this.CF, this.DF);
  9919. C.nC(d, this.Dz, this.Ez, this.Fz);
  9920. C.nC(f, this.ZG, this.$G, this.aH);
  9921. C.rfa(this.bN, c, d, f);
  9922. this.Ac = t
  9923. }
  9924. C.lC(this.bN)
  9925. },
  9926. X3a: function(c, d, f) {
  9927. this.Dha(c, d, f)
  9928. },
  9929. Dha: function(c, d, f) {
  9930. this.BF = c;
  9931. this.CF = d;
  9932. this.DF = f;
  9933. this.Ac = q
  9934. },
  9935. B3a: function(c, d, f) {
  9936. this.gHa(c, d, f)
  9937. },
  9938. gHa: function(c, d, f) {
  9939. this.Dz = c;
  9940. this.Ez = d;
  9941. this.Fz = f;
  9942. this.Ac = q
  9943. },
  9944. J5a: function(c, d, f) {
  9945. this.wIa(c, d, f)
  9946. },
  9947. wIa: function(c, d, f) {
  9948. this.ZG = c;
  9949. this.$G = d;
  9950. this.aH = f;
  9951. this.Ac = q
  9952. },
  9953. BUa: function() {
  9954. return {
  9955. x: this.BF,
  9956. y: this.CF,
  9957. f: this.DF
  9958. }
  9959. },
  9960. Yda: function() {
  9961. return {
  9962. x: this.BF,
  9963. y: this.CF,
  9964. f: this.DF
  9965. }
  9966. },
  9967. ATa: function() {
  9968. return {
  9969. x: this.Dz,
  9970. y: this.Ez,
  9971. f: this.Fz
  9972. }
  9973. },
  9974. Oda: function() {
  9975. return {
  9976. x: this.Dz,
  9977. y: this.Ez,
  9978. f: this.Fz
  9979. }
  9980. },
  9981. pXa: function() {
  9982. return {
  9983. x: this.ZG,
  9984. y: this.$G,
  9985. f: this.aH
  9986. }
  9987. },
  9988. kCa: function() {
  9989. return {
  9990. x: this.ZG,
  9991. y: this.$G,
  9992. f: this.aH
  9993. }
  9994. },
  9995. TNa: u()
  9996. });
  9997. C.FD.dI = function() {
  9998. return C.rK
  9999. };
  10000. C.QMa = C.BK + 1;
  10001. C.yB = function(c, d) {
  10002. if (c && 0 < c.length) for (var f = 0; f < c.length; f++) if (! (c[f] instanceof d)) return C.log(C.n.yB),
  10003. t;
  10004. return q
  10005. };
  10006. C.Id = function(c, d) {
  10007. for (var f = 0,
  10008. g = c.length; f < g; f++) if (c[f] == d) {
  10009. c.splice(f, 1);
  10010. break
  10011. }
  10012. };
  10013. C.sQa = function(c, d) {
  10014. for (var f = 0,
  10015. g = d.length; f < g; f++) C.Id(c, d[f])
  10016. };
  10017. C.rQa = function(c, d, f) {
  10018. c.splice.apply(c, [f, 0].concat(d));
  10019. return c
  10020. };
  10021. C.y6 = function(c, d, f) {
  10022. this.next = this.l1a = s;
  10023. this.target = c;
  10024. this.UFa = d;
  10025. this.paused = f;
  10026. this.GQ = t
  10027. };
  10028. C.d6 = function(c, d, f) {
  10029. this.list = c;
  10030. this.Dx = d;
  10031. this.target = f;
  10032. this.WP = s
  10033. };
  10034. C.wma = function(c, d) {
  10035. this.eq = s;
  10036. this.target = c;
  10037. this.fD = 0;
  10038. this.BH = this.AH = s;
  10039. this.paused = d;
  10040. this.WP = s
  10041. };
  10042. C.b8 = C.O.extend({
  10043. Zq: 0,
  10044. Xf: s,
  10045. Xc: s,
  10046. Bc: 0,
  10047. qba: t,
  10048. KO: t,
  10049. kB: 0,
  10050. lY: 0,
  10051. WL: 0,
  10052. UUa: A("Zq"),
  10053. setInterval: x("Zq"),
  10054. tTa: A("Xf"),
  10055. ctor: function(c, d, f, g, h) {
  10056. this.Xc = c;
  10057. this.Xf = d;
  10058. this.Bc = -1;
  10059. this.Zq = f || 0;
  10060. this.WL = h || 0;
  10061. this.KO = 0 < this.WL;
  10062. this.lY = g == s ? C.xv: g;
  10063. this.qba = this.lY == C.xv
  10064. },
  10065. jW: function() {
  10066. if ("string" == typeof this.Xf) this.Xc[this.Xf](this.Bc);
  10067. else this.Xf.call(this.Xc, this.Bc)
  10068. },
  10069. update: function(c) {
  10070. if ( - 1 == this.Bc) this.kB = this.Bc = 0;
  10071. else {
  10072. var d = this.Xc,
  10073. f = this.Xf;
  10074. this.Bc += c;
  10075. this.qba && !this.KO ? this.Bc >= this.Zq && (d && f && this.jW(), this.Bc = 0) : (this.KO ? this.Bc >= this.WL && (d && f && this.jW(), this.Bc -= this.WL, this.kB += 1, this.KO = t) : this.Bc >= this.Zq && (d && f && this.jW(), this.Bc = 0, this.kB += 1), this.kB > this.lY && C.Q.Em().W3(d, f))
  10076. }
  10077. }
  10078. });
  10079. C.cz = C.O.extend({
  10080. fu: 1,
  10081. ex: s,
  10082. Wq: s,
  10083. lL: s,
  10084. Vq: s,
  10085. ZNa: s,
  10086. Cf: s,
  10087. Vo: t,
  10088. DO: t,
  10089. ctor: function() {
  10090. this.fu = 1;
  10091. this.ex = [[], [], []];
  10092. this.Wq = {};
  10093. this.lL = [];
  10094. this.Vq = {};
  10095. this.UE = [];
  10096. this.Cf = s;
  10097. this.DO = this.Vo = t
  10098. },
  10099. kY: function(c) {
  10100. delete this.Vq[c.target.ub];
  10101. C.Id(this.UE, c);
  10102. c.b8 = s;
  10103. c.target = s
  10104. },
  10105. gba: function(c) {
  10106. if (c = this.Wq[c.target.ub]) C.Id(c.list, c.Dx),
  10107. delete this.Wq[c.target.ub],
  10108. C.Id(this.lL, c),
  10109. c.Dx = s,
  10110. c.target = s
  10111. },
  10112. Taa: function(c, d, f, g) {
  10113. g = new C.y6(d, f, g);
  10114. if (c) {
  10115. for (var h = c.length - 1,
  10116. k = 0; k <= h && !(f < c[k].UFa); k++);
  10117. c.splice(k, 0, g)
  10118. } else c = [],
  10119. c.push(g);
  10120. f = new C.d6(c, g, d);
  10121. this.lL.push(f);
  10122. this.Wq[d.ub] = f;
  10123. return c
  10124. },
  10125. Pqa: function(c, d, f) {
  10126. f = new C.y6(d, 0, f);
  10127. c.push(f);
  10128. c = new C.d6(c, f, d);
  10129. this.lL.push(c);
  10130. this.Wq[d.ub] = c
  10131. },
  10132. sIa: x("fu"),
  10133. $Wa: A("fu"),
  10134. update: function(c) {
  10135. var d = this.ex,
  10136. f = this.UE,
  10137. g, h, k;
  10138. this.DO = q;
  10139. 1 != this.fu && (c *= this.fu);
  10140. h = 0;
  10141. for (k = d.length; h < k && 0 <= h; h++) for (var n = this.ex[h], p = 0, r = n.length; p < r; p++) g = n[p],
  10142. !g.paused && !g.GQ && g.target.update(c);
  10143. h = 0;
  10144. for (k = f.length; h < k; h++) {
  10145. g = f[h];
  10146. if (!g) break;
  10147. this.Cf = g;
  10148. this.Vo = t;
  10149. if (!g.paused) for (g.fD = 0; g.fD < g.eq.length; g.fD++) g.AH = g.eq[g.fD],
  10150. g.BH = t,
  10151. g.AH.update(c),
  10152. g.AH = s;
  10153. this.Vo && 0 == g.eq.length && (this.kY(g), h--)
  10154. }
  10155. h = 0;
  10156. for (k = d.length; h < k; h++) {
  10157. n = this.ex[h];
  10158. p = 0;
  10159. for (r = n.length; p < r;) {
  10160. g = n[p];
  10161. if (!g) break;
  10162. g.GQ ? this.gba(g) : p++
  10163. }
  10164. }
  10165. this.DO = t;
  10166. this.Cf = s
  10167. },
  10168. y2: function(c, d, f, g, h, k) {
  10169. C.assert(d, C.n.Doa);
  10170. C.assert(c, C.n.Eoa);
  10171. f = f || 0;
  10172. g = g == s ? C.xv: g;
  10173. h = h || 0;
  10174. k = k || t;
  10175. var n = this.Vq[c.ub];
  10176. n || (n = new C.wma(c, k), this.UE.push(n), this.Vq[c.ub] = n);
  10177. if (n.eq == s) n.eq = [];
  10178. else for (var p = 0; p < n.eq.length; p++) if (k = n.eq[p], d == k.Xf) {
  10179. C.log(C.n.Coa, k.Zq.toFixed(4), f.toFixed(4));
  10180. k.Zq = f;
  10181. return
  10182. }
  10183. k = new C.b8(c, d, f, g, h);
  10184. n.eq.push(k)
  10185. },
  10186. lR: function(c, d, f) {
  10187. if (c !== s) {
  10188. var g = this.ex,
  10189. h = this.Wq[c.ub];
  10190. h ? h.Dx.GQ = t: 0 == d ? this.Pqa(g[1], c, f) : 0 > d ? g[0] = this.Taa(g[0], c, d, f) : g[2] = this.Taa(g[2], c, d, f)
  10191. }
  10192. },
  10193. W3: function(c, d) {
  10194. if (! (c == s || d == s)) {
  10195. var f = this.Vq[c.ub];
  10196. if (f) for (var g = f.eq,
  10197. h = 0,
  10198. k = g.length; h < k; h++) {
  10199. var n = g[h];
  10200. if (d == n.Xf) {
  10201. n == f.AH && !f.BH && (f.BH = q);
  10202. g.splice(h, 1);
  10203. f.fD >= h && f.fD--;
  10204. 0 == g.length && (this.Cf == f ? this.Vo = q: this.kY(f));
  10205. break
  10206. }
  10207. }
  10208. }
  10209. },
  10210. GJ: function(c) {
  10211. c != s && (c = this.Wq[c.ub], c != s && (this.DO ? c.Dx.GQ = q: this.gba(c.Dx)))
  10212. },
  10213. dja: function(c) {
  10214. if (c != s) {
  10215. var d = this.Vq[c.ub];
  10216. if (d) {
  10217. var f = d.eq; ! d.BH && 0 <= f.indexOf(d.AH) && (d.BH = q);
  10218. f.length = 0;
  10219. this.Cf == d ? this.Vo = q: this.kY(d)
  10220. }
  10221. this.GJ(c)
  10222. }
  10223. },
  10224. FJ: function() {
  10225. this.uJa(C.cz.BK)
  10226. },
  10227. uJa: function(c) {
  10228. for (var d = this.UE,
  10229. f = this.ex,
  10230. g = 0,
  10231. h = d.length; g < h; g++) this.dja(d[g].target);
  10232. for (g = 2; 0 <= g; g--) if (! (1 == g && 0 < c || 0 == g && 0 <= c)) for (var d = f[g], h = 0, k = d.length; h < k; h++) this.GJ(d[h].target)
  10233. },
  10234. $0a: function() {
  10235. return this.CFa(C.cz.BK)
  10236. },
  10237. CFa: function() {
  10238. for (var c = [], d, f = this.UE, g = this.ex, h = 0, k = f.length; h < k; h++) if (d = f[h]) d.paused = q,
  10239. c.push(d.target);
  10240. h = 0;
  10241. for (k = g.length; h < k; h++) for (var f = g[h], n = 0, p = f.length; n < p; n++) if (d = f[n]) d.paused = q,
  10242. c.push(d.target);
  10243. return c
  10244. },
  10245. FGa: function(c) {
  10246. if (c) for (var d = 0; d < c.length; d++) this.Mm(c[d])
  10247. },
  10248. hs: function(c) {
  10249. C.assert(c, C.n.Aoa);
  10250. var d = this.Vq[c.ub];
  10251. d && (d.paused = q); (c = this.Wq[c.ub]) && (c.Dx.paused = q)
  10252. },
  10253. Mm: function(c) {
  10254. C.assert(c, C.n.Boa);
  10255. var d = this.Vq[c.ub];
  10256. d && (d.paused = t); (c = this.Wq[c.ub]) && (c.Dx.paused = t)
  10257. },
  10258. MYa: function(c) {
  10259. C.assert(c, C.n.zoa);
  10260. return (c = this.Vq[c.ub]) ? c.paused: t
  10261. }
  10262. });
  10263. C.cz.BK = -2147483648;
  10264. C.V6 = 2 * Math.PI;
  10265. C.z5 = C.O.extend({
  10266. BV: [],
  10267. t: s,
  10268. ctor: x("t"),
  10269. S_: function(c, d) {
  10270. d || (d = 1);
  10271. var f = C.view.ia,
  10272. g = C.d(c.x * f, c.y * C.view.pa);
  10273. this.t.beginPath();
  10274. this.t.arc(g.x, -g.y, d * f, 0, 2 * Math.PI, t);
  10275. this.t.closePath();
  10276. this.t.fill()
  10277. },
  10278. Oya: function(c, d, f) {
  10279. if (c != s) {
  10280. f || (f = 1);
  10281. d = this.t;
  10282. var g = C.view.ia,
  10283. h = C.view.pa;
  10284. d.beginPath();
  10285. for (var k = 0,
  10286. n = c.length; k < n; k++) d.arc(c[k].x * g, -c[k].y * h, f * g, 0, 2 * Math.PI, t);
  10287. d.closePath();
  10288. d.fill()
  10289. }
  10290. },
  10291. Tn: function(c, d) {
  10292. var f = this.t,
  10293. g = C.view.ia,
  10294. h = C.view.pa;
  10295. f.beginPath();
  10296. f.moveTo(c.x * g, -c.y * h);
  10297. f.lineTo(d.x * g, -d.y * h);
  10298. f.closePath();
  10299. f.stroke()
  10300. },
  10301. U_: function(c, d) {
  10302. this.Tn(C.d(c.x, c.y), C.d(d.x, c.y));
  10303. this.Tn(C.d(d.x, c.y), C.d(d.x, d.y));
  10304. this.Tn(C.d(d.x, d.y), C.d(c.x, d.y));
  10305. this.Tn(C.d(c.x, d.y), C.d(c.x, c.y))
  10306. },
  10307. X_: function(c, d, f) {
  10308. c = [c, C.d(d.x, c.y), d, C.d(c.x, d.y)];
  10309. this.W_(c, 4, f)
  10310. },
  10311. Of: function(c, d, f, g) {
  10312. g = g || t;
  10313. if (c != s) {
  10314. 3 > c.length && e(Error("Polygon's point must greater than 2"));
  10315. var h = c[0];
  10316. d = this.t;
  10317. var k = C.view.ia,
  10318. n = C.view.pa;
  10319. d.beginPath();
  10320. d.moveTo(h.x * k, -h.y * n);
  10321. for (var h = 1,
  10322. p = c.length; h < p; h++) d.lineTo(c[h].x * k, -c[h].y * n);
  10323. f && d.closePath();
  10324. g ? d.fill() : d.stroke()
  10325. }
  10326. },
  10327. W_: function(c, d, f) {
  10328. this.tj(f.r, f.g, f.b, f.a);
  10329. this.Of(c, d, q, q)
  10330. },
  10331. O_: function(c, d, f, g, h) {
  10332. h = h || t;
  10333. g = this.t;
  10334. var k = C.view.ia,
  10335. n = C.view.pa;
  10336. g.beginPath();
  10337. g.arc(0 | c.x * k, 0 | -(c.y * n), d * k, -f, -(f - 2 * Math.PI), t);
  10338. h && g.lineTo(0 | c.x * k, 0 | -(c.y * n));
  10339. g.stroke()
  10340. },
  10341. T_: function(c, d, f, g) {
  10342. for (var h = this.BV,
  10343. k = h.length = 0,
  10344. n = 0; n < g; n++) h.push(C.d(Math.pow(1 - k, 2) * c.x + 2 * (1 - k) * k * d.x + k * k * f.x, Math.pow(1 - k, 2) * c.y + 2 * (1 - k) * k * d.y + k * k * f.y)),
  10345. k += 1 / g;
  10346. h.push(C.d(f.x, f.y));
  10347. this.Of(h, g + 1, t, t)
  10348. },
  10349. P_: function(c, d, f, g, h) {
  10350. for (var k = this.BV,
  10351. n = k.length = 0,
  10352. p = 0; p < h; p++) k.push(C.d(Math.pow(1 - n, 3) * c.x + 3 * Math.pow(1 - n, 2) * n * d.x + 3 * (1 - n) * n * n * f.x + n * n * n * g.x, Math.pow(1 - n, 3) * c.y + 3 * Math.pow(1 - n, 2) * n * d.y + 3 * (1 - n) * n * n * f.y + n * n * n * g.y)),
  10353. n += 1 / h;
  10354. k.push(C.d(g.x, g.y));
  10355. this.Of(k, h + 1, t, t)
  10356. },
  10357. N_: function(c, d) {
  10358. this.zx(c, 0.5, d)
  10359. },
  10360. zx: function(c, d, f) {
  10361. C.t.strokeStyle = "rgba(255,255,255,1)";
  10362. var g = this.BV;
  10363. g.length = 0;
  10364. for (var h, k, n = 1 / c.length,
  10365. p = 0; p < f + 1; p++) k = p / f,
  10366. 1 == k ? (h = c.length - 1, k = 1) : (h = 0 | k / n, k = (k - n * h) / n),
  10367. h = C.tla(C.og(c, h - 1), C.og(c, h - 0), C.og(c, h + 1), C.og(c, h + 2), d, k),
  10368. g.push(h);
  10369. this.Of(g, f + 1, t, t)
  10370. },
  10371. drawImage: function(c, d, f, g, h) {
  10372. switch (arguments.length) {
  10373. case 2:
  10374. this.t.drawImage(c, d.x, -(d.y + c.height));
  10375. break;
  10376. case 3:
  10377. this.t.drawImage(c, d.x, -(d.y + f.height), f.width, f.height);
  10378. break;
  10379. case 5:
  10380. this.t.drawImage(c, d.x, d.y, f.width, f.height, g.x, -(g.y + h.height), h.width, h.height);
  10381. break;
  10382. default:
  10383. e(Error("Argument must be non-nil"))
  10384. }
  10385. },
  10386. Rya: function(c, d, f) {
  10387. c = c || this.t;
  10388. d *= C.view.ia;
  10389. f = "rgba(" + (0 | f.r) + "," + (0 | f.g) + "," + (0 | f.b);
  10390. c.fillStyle = f + ",1)";
  10391. var g = d / 10;
  10392. c.beginPath();
  10393. c.moveTo( - d, d);
  10394. c.lineTo(0, g);
  10395. c.lineTo(d, d);
  10396. c.lineTo(g, 0);
  10397. c.lineTo(d, -d);
  10398. c.lineTo(0, -g);
  10399. c.lineTo( - d, -d);
  10400. c.lineTo( - g, 0);
  10401. c.lineTo( - d, d);
  10402. c.closePath();
  10403. c.fill();
  10404. var h = c.createRadialGradient(0, 0, g, 0, 0, d);
  10405. h.addColorStop(0, f + ", 1)");
  10406. h.addColorStop(0.3, f + ", 0.8)");
  10407. h.addColorStop(1, f + ", 0.0)");
  10408. c.fillStyle = h;
  10409. c.beginPath();
  10410. c.arc(0, 0, d - g, 0, C.V6, t);
  10411. c.closePath();
  10412. c.fill()
  10413. },
  10414. Lya: function(c, d, f) {
  10415. c = c || this.t;
  10416. d *= C.view.ia;
  10417. f = "rgba(" + (0 | f.r) + "," + (0 | f.g) + "," + (0 | f.b);
  10418. var g = c.createRadialGradient(0, 0, d / 10, 0, 0, d);
  10419. g.addColorStop(0, f + ", 1)");
  10420. g.addColorStop(0.3, f + ", 0.8)");
  10421. g.addColorStop(0.6, f + ", 0.4)");
  10422. g.addColorStop(1, f + ", 0.0)");
  10423. c.fillStyle = g;
  10424. c.beginPath();
  10425. c.arc(0, 0, d, 0, C.V6, t);
  10426. c.closePath();
  10427. c.fill()
  10428. },
  10429. fillText: function(c, d, f) {
  10430. this.t.fillText(c, d, -f)
  10431. },
  10432. tj: function(c, d, f, g) {
  10433. this.t.fillStyle = "rgba(" + c + "," + d + "," + f + "," + g / 255 + ")";
  10434. this.t.strokeStyle = "rgba(" + c + "," + d + "," + f + "," + g / 255 + ")"
  10435. },
  10436. Y2: u(),
  10437. Su: function(c) {
  10438. this.t.lineWidth = c * C.view.ia
  10439. }
  10440. });
  10441. C.Ola = C.O.extend({
  10442. t: s,
  10443. VF: t,
  10444. Te: s,
  10445. To: -1,
  10446. Lj: s,
  10447. TX: -1,
  10448. SX: -1,
  10449. ctor: function(c) {
  10450. c == s && (c = C.t); ! c instanceof WebGLRenderingContext && e("Can't initialise DrawingPrimitiveWebGL. context need is WebGLRenderingContext");
  10451. this.t = c;
  10452. this.Lj = new Float32Array([1, 1, 1, 1])
  10453. },
  10454. $r: function() {
  10455. this.VF || (this.Te = C.ug.Xd(C.aU), this.To = this.t.getUniformLocation(this.Te.Lx(), "u_color"), this.TX = this.t.getUniformLocation(this.Te.Lx(), "u_pointSize"), this.VF = q)
  10456. },
  10457. ORa: function() {
  10458. this.VF = t
  10459. },
  10460. S_: function(c) {
  10461. this.$r();
  10462. var d = this.t;
  10463. this.Te.Af();
  10464. this.Te.Bj();
  10465. C.rf(C.Ch);
  10466. d.uniform4fv(this.To, this.Lj);
  10467. this.Te.sJ(this.TX, this.SX);
  10468. var f = d.createBuffer();
  10469. d.bindBuffer(d.ARRAY_BUFFER, f);
  10470. d.bufferData(d.ARRAY_BUFFER, new Float32Array([c.x, c.y]), d.STATIC_DRAW);
  10471. d.vertexAttribPointer(C.Lc, 2, d.FLOAT, t, 0, 0);
  10472. d.drawArrays(d.POINTS, 0, 1);
  10473. d.deleteBuffer(f);
  10474. C.nl()
  10475. },
  10476. Oya: function(c) {
  10477. if (c && 0 != c.length) {
  10478. this.$r();
  10479. var d = this.t;
  10480. this.Te.Af();
  10481. this.Te.Bj();
  10482. C.rf(C.Ch);
  10483. d.uniform4fv(this.To, this.Lj);
  10484. this.Te.sJ(this.TX, this.SX);
  10485. var f = d.createBuffer();
  10486. d.bindBuffer(d.ARRAY_BUFFER, f);
  10487. d.bufferData(d.ARRAY_BUFFER, this.DN(c), d.STATIC_DRAW);
  10488. d.vertexAttribPointer(C.Lc, 2, d.FLOAT, t, 0, 0);
  10489. d.drawArrays(d.POINTS, 0, c.length);
  10490. d.deleteBuffer(f);
  10491. C.nl()
  10492. }
  10493. },
  10494. DN: function(c) {
  10495. for (var d = new Float32Array(2 * c.length), f = 0; f < c.length; f++) d[2 * f] = c[f].x,
  10496. d[2 * f + 1] = c[f].y;
  10497. return d
  10498. },
  10499. Tn: function(c, d) {
  10500. this.$r();
  10501. var f = this.t;
  10502. this.Te.Af();
  10503. this.Te.Bj();
  10504. C.rf(C.Ch);
  10505. f.uniform4fv(this.To, this.Lj);
  10506. var g = f.createBuffer();
  10507. f.bindBuffer(f.ARRAY_BUFFER, g);
  10508. f.bufferData(f.ARRAY_BUFFER, this.DN([c, d]), f.STATIC_DRAW);
  10509. f.vertexAttribPointer(C.Lc, 2, f.FLOAT, t, 0, 0);
  10510. f.drawArrays(f.LINES, 0, 2);
  10511. f.deleteBuffer(g);
  10512. C.nl()
  10513. },
  10514. U_: function(c, d) {
  10515. this.Tn(C.d(c.x, c.y), C.d(d.x, c.y));
  10516. this.Tn(C.d(d.x, c.y), C.d(d.x, d.y));
  10517. this.Tn(C.d(d.x, d.y), C.d(c.x, d.y));
  10518. this.Tn(C.d(c.x, d.y), C.d(c.x, c.y))
  10519. },
  10520. X_: function(c, d, f) {
  10521. c = [c, C.d(d.x, c.y), d, C.d(c.x, d.y)];
  10522. this.W_(c, 4, f)
  10523. },
  10524. Of: function(c, d, f) {
  10525. this.$r();
  10526. d = this.t;
  10527. this.Te.Af();
  10528. this.Te.Bj();
  10529. C.rf(C.Ch);
  10530. d.uniform4fv(this.To, this.Lj);
  10531. var g = d.createBuffer();
  10532. d.bindBuffer(d.ARRAY_BUFFER, g);
  10533. d.bufferData(d.ARRAY_BUFFER, this.DN(c), d.STATIC_DRAW);
  10534. d.vertexAttribPointer(C.Lc, 2, d.FLOAT, t, 0, 0);
  10535. f ? d.drawArrays(d.LINE_LOOP, 0, c.length) : d.drawArrays(d.LINE_STRIP, 0, c.length);
  10536. d.deleteBuffer(g);
  10537. C.nl()
  10538. },
  10539. W_: function(c, d, f) {
  10540. this.$r();
  10541. f && this.tj(f.r, f.g, f.b, f.a);
  10542. d = this.t;
  10543. this.Te.Af();
  10544. this.Te.Bj();
  10545. C.rf(C.Ch);
  10546. d.uniform4fv(this.To, this.Lj);
  10547. f = d.createBuffer();
  10548. d.bindBuffer(d.ARRAY_BUFFER, f);
  10549. d.bufferData(d.ARRAY_BUFFER, this.DN(c), d.STATIC_DRAW);
  10550. d.vertexAttribPointer(C.Lc, 2, d.FLOAT, t, 0, 0);
  10551. d.drawArrays(d.TRIANGLE_FAN, 0, c.length);
  10552. d.deleteBuffer(f);
  10553. C.nl()
  10554. },
  10555. O_: function(c, d, f, g, h) {
  10556. this.$r();
  10557. var k = 1;
  10558. h && k++;
  10559. var n = 2 * Math.PI / g;
  10560. if (h = new Float32Array(2 * (g + 2))) {
  10561. for (var p = 0; p <= g; p++) {
  10562. var r = p * n,
  10563. v = d * Math.sin(r + f) + c.y;
  10564. h[2 * p] = d * Math.cos(r + f) + c.x;
  10565. h[2 * p + 1] = v
  10566. }
  10567. h[2 * (g + 1)] = c.x;
  10568. h[2 * (g + 1) + 1] = c.y;
  10569. c = this.t;
  10570. this.Te.Af();
  10571. this.Te.Bj();
  10572. C.rf(C.Ch);
  10573. c.uniform4fv(this.To, this.Lj);
  10574. d = c.createBuffer();
  10575. c.bindBuffer(c.ARRAY_BUFFER, d);
  10576. c.bufferData(c.ARRAY_BUFFER, h, c.STATIC_DRAW);
  10577. c.vertexAttribPointer(C.Lc, 2, c.FLOAT, t, 0, 0);
  10578. c.drawArrays(c.LINE_STRIP, 0, g + k);
  10579. c.deleteBuffer(d);
  10580. C.nl()
  10581. }
  10582. },
  10583. T_: function(c, d, f, g) {
  10584. this.$r();
  10585. for (var h = new Float32Array(2 * (g + 1)), k = 0, n = 0; n < g; n++) h[2 * n] = Math.pow(1 - k, 2) * c.x + 2 * (1 - k) * k * d.x + k * k * f.x,
  10586. h[2 * n + 1] = Math.pow(1 - k, 2) * c.y + 2 * (1 - k) * k * d.y + k * k * f.y,
  10587. k += 1 / g;
  10588. h[2 * g] = f.x;
  10589. h[2 * g + 1] = f.y;
  10590. c = this.t;
  10591. this.Te.Af();
  10592. this.Te.Bj();
  10593. C.rf(C.Ch);
  10594. c.uniform4fv(this.To, this.Lj);
  10595. d = c.createBuffer();
  10596. c.bindBuffer(c.ARRAY_BUFFER, d);
  10597. c.bufferData(c.ARRAY_BUFFER, h, c.STATIC_DRAW);
  10598. c.vertexAttribPointer(C.Lc, 2, c.FLOAT, t, 0, 0);
  10599. c.drawArrays(c.LINE_STRIP, 0, g + 1);
  10600. c.deleteBuffer(d);
  10601. C.nl()
  10602. },
  10603. P_: function(c, d, f, g, h) {
  10604. this.$r();
  10605. for (var k = new Float32Array(2 * (h + 1)), n = 0, p = 0; p < h; p++) k[2 * p] = Math.pow(1 - n, 3) * c.x + 3 * Math.pow(1 - n, 2) * n * d.x + 3 * (1 - n) * n * n * f.x + n * n * n * g.x,
  10606. k[2 * p + 1] = Math.pow(1 - n, 3) * c.y + 3 * Math.pow(1 - n, 2) * n * d.y + 3 * (1 - n) * n * n * f.y + n * n * n * g.y,
  10607. n += 1 / h;
  10608. k[2 * h] = g.x;
  10609. k[2 * h + 1] = g.y;
  10610. c = this.t;
  10611. this.Te.Af();
  10612. this.Te.Bj();
  10613. C.rf(C.Ch);
  10614. c.uniform4fv(this.To, this.Lj);
  10615. d = c.createBuffer();
  10616. c.bindBuffer(c.ARRAY_BUFFER, d);
  10617. c.bufferData(c.ARRAY_BUFFER, k, c.STATIC_DRAW);
  10618. c.vertexAttribPointer(C.Lc, 2, c.FLOAT, t, 0, 0);
  10619. c.drawArrays(c.LINE_STRIP, 0, h + 1);
  10620. c.deleteBuffer(d);
  10621. C.nl()
  10622. },
  10623. N_: function(c, d) {
  10624. this.zx(c, 0.5, d)
  10625. },
  10626. zx: function(c, d, f) {
  10627. this.$r();
  10628. for (var g = new Float32Array(2 * (f + 1)), h, k, n = 1 / c.length, p = 0; p < f + 1; p++) k = p / f,
  10629. 1 == k ? (h = c.length - 1, k = 1) : (h = 0 | k / n, k = (k - n * h) / n),
  10630. h = C.tla(C.og(c, h - 1), C.og(c, h), C.og(c, h + 1), C.og(c, h + 2), d, k),
  10631. g[2 * p] = h.x,
  10632. g[2 * p + 1] = h.y;
  10633. c = this.t;
  10634. this.Te.Af();
  10635. this.Te.Bj();
  10636. C.rf(C.Ch);
  10637. c.uniform4fv(this.To, this.Lj);
  10638. d = c.createBuffer();
  10639. c.bindBuffer(c.ARRAY_BUFFER, d);
  10640. c.bufferData(c.ARRAY_BUFFER, g, c.STATIC_DRAW);
  10641. c.vertexAttribPointer(C.Lc, 2, c.FLOAT, t, 0, 0);
  10642. c.drawArrays(c.LINE_STRIP, 0, f + 1);
  10643. c.deleteBuffer(d);
  10644. C.nl()
  10645. },
  10646. tj: function(c, d, f, g) {
  10647. this.Lj[0] = c / 255;
  10648. this.Lj[1] = d / 255;
  10649. this.Lj[2] = f / 255;
  10650. this.Lj[3] = g / 255
  10651. },
  10652. Y2: function(c) {
  10653. this.SX = c * C.Ec()
  10654. },
  10655. Su: function(c) {
  10656. this.t.lineWidth && this.t.lineWidth(c)
  10657. }
  10658. });
  10659. C.U.QU = function() {
  10660. var c = C.fa.prototype;
  10661. c.G = C.u.prototype.G;
  10662. c.Yj = function() {
  10663. this.Dc = q;
  10664. var c = this.Uw,
  10665. f = this.Vw;
  10666. this.aO = "rgba(128,128,128," + this.sr + ")";
  10667. this.tM = "rgba(" + (0 | f.r) + "," + (0 | f.g) + "," + (0 | f.b) + ", 1)";
  10668. this.gO = "rgba(" + (0 | c.r) + "," + (0 | c.g) + "," + (0 | c.b) + ", 1)"
  10669. };
  10670. c.Tb = C.u.prototype.Tb;
  10671. c.K = C.u.prototype.K;
  10672. c.dc = C.u.prototype.dc;
  10673. c.Z0 = function(c, f) {
  10674. if (!C.u.prototype.j.call(this)) return t;
  10675. this.shaderProgram = C.ug.Xd(C.fa.Bqa);
  10676. this.uZ(f, t);
  10677. this.string = c;
  10678. return q
  10679. };
  10680. c.zR = function(c) {
  10681. var f = this.Vw;
  10682. if (f.r != c.r || f.g != c.g || f.b != c.b) f.r = c.r,
  10683. f.g = c.g,
  10684. f.b = c.b,
  10685. this.Yj(),
  10686. this.Dc = q
  10687. };
  10688. c.ka = function(c) {
  10689. if (this.qd && "" != this.qd) {
  10690. c = c || C.t;
  10691. var f = this.da;
  10692. f && f.de && (this.pd.Af(), this.pd.Bj(), C.Gm(this.C.src, this.C.ga), C.yi(f), C.rf(C.Dv), c.bindBuffer(c.ARRAY_BUFFER, this.HN), this.Ti && (c.bufferData(c.ARRAY_BUFFER, this.Td.WO, c.STATIC_DRAW), this.Ti = t), c.vertexAttribPointer(C.Lc, 3, c.FLOAT, t, 24, 0), c.vertexAttribPointer(C.Vg, 2, c.FLOAT, t, 24, 16), c.vertexAttribPointer(C.Hi, 4, c.UNSIGNED_BYTE, q, 24, 12), c.drawArrays(c.TRIANGLE_STRIP, 0, 4));
  10693. if (1 === C.Es) c = this.Td,
  10694. c = [C.d(c.X.m.x, c.X.m.y), C.d(c.T.m.x, c.T.m.y), C.d(c.Y.m.x, c.Y.m.y), C.d(c.V.m.x, c.V.m.y)],
  10695. C.Df.Of(c, 4, q);
  10696. else if (2 === C.Es) {
  10697. c = this.WH().ca;
  10698. var f = this.offsetX,
  10699. g = this.offsetY;
  10700. c = [C.d(f, g), C.d(f + c.width, g), C.d(f + c.width, g + c.height), C.d(f, g + c.height)];
  10701. C.Df.Of(c, 4, q)
  10702. }
  10703. C.kl++
  10704. }
  10705. };
  10706. c.qc = C.u.prototype.qc
  10707. };
  10708. C.U.OT = function() {
  10709. var c = C.fa.prototype;
  10710. C.e(c, "color", c.Xa, c.G);
  10711. C.e(c, "opacity", c.rb, c.K);
  10712. C.e(c, "string", c.Wb, c.sa);
  10713. C.e(c, "textAlign", c.EAa, c.S2);
  10714. C.e(c, "verticalAlign", c.pCa, c.y3);
  10715. C.e(c, "fontSize", c.Vn, c.Od);
  10716. C.e(c, "fontName", c.Fp, c.Zd);
  10717. C.e(c, "font", c.bw, c.rr);
  10718. C.e(c, "boundingWidth", c.KF, c.VN);
  10719. C.e(c, "boundingHeight", c.IW, c.UN);
  10720. C.e(c, "fillStyle", c.msa, c.zR);
  10721. C.e(c, "strokeStyle", c.Msa, c.vva);
  10722. C.e(c, "lineWidth", c.xsa, c.cva);
  10723. C.e(c, "shadowOffsetX", c.Isa, c.lva);
  10724. C.e(c, "shadowOffsetY", c.Jsa, c.mva);
  10725. C.e(c, "shadowOpacity", c.Ksa, c.nva);
  10726. C.e(c, "shadowBlur", c.Hsa, c.kva)
  10727. };
  10728. C.fa = C.u.extend({
  10729. ue: s,
  10730. $o: C.Fs,
  10731. xp: C.OE,
  10732. Oc: s,
  10733. Pc: 0,
  10734. qd: "",
  10735. KX: s,
  10736. sA: t,
  10737. kn: s,
  10738. Jg: t,
  10739. ih: s,
  10740. sr: 0,
  10741. Wt: 0,
  10742. aO: s,
  10743. pm: t,
  10744. Uw: s,
  10745. yr: 0,
  10746. gO: s,
  10747. Vw: s,
  10748. tM: s,
  10749. cZ: 0,
  10750. dZ: 0,
  10751. Dc: t,
  10752. XM: s,
  10753. YM: s,
  10754. raa: s,
  10755. qa: "LabelTTF",
  10756. ctor: function(c, d, f, g, h, k) {
  10757. C.u.prototype.ctor.call(this);
  10758. this.ue = C.size(0, 0);
  10759. this.$o = C.dz;
  10760. this.xp = C.OE;
  10761. this.Fb = t;
  10762. this.kn = "";
  10763. this.Oc = "Arial";
  10764. this.Jg = this.sA = t;
  10765. this.ih = C.d(0, 0);
  10766. this.Wt = this.sr = 0;
  10767. this.aO = "rgba(128, 128, 128, 0.5)";
  10768. this.pm = t;
  10769. this.Uw = C.color(255, 255, 255, 255);
  10770. this.yr = 0;
  10771. this.gO = "";
  10772. this.Vw = C.color(255, 255, 255, 255);
  10773. this.tM = "rgba(255,255,255,1)";
  10774. this.dZ = this.cZ = 0;
  10775. this.Dc = t;
  10776. this.raa = [];
  10777. this.Yj();
  10778. d && d instanceof C.W5 ? this.Z0(c, d) : C.fa.prototype.sf.call(this, c, d, f, g, h, k)
  10779. },
  10780. j: function() {
  10781. return this.sf(" ", this.Oc, this.Pc)
  10782. },
  10783. Fta: function() {
  10784. this.LW().font = this.kn
  10785. },
  10786. cG: function(c) {
  10787. return this.LW().measureText(c).width
  10788. },
  10789. jra: function(c, d) {
  10790. var f = this.cG(c),
  10791. g = Math.floor(c.length * d / f),
  10792. h = c.indexOf("\n");
  10793. if (0.8 * g >= h && 0 < h) return h + 1;
  10794. if (f < d) return c.length;
  10795. for (var f = t,
  10796. h = d + 1,
  10797. k = -1,
  10798. n = g,
  10799. p, r = C.fa.lra,
  10800. v = C.fa.Hua,
  10801. y = C.fa.ira,
  10802. z = c.substr(g); p = r.exec(z);) {
  10803. n += p[0].length;
  10804. h = this.cG(c.substr(0, n));
  10805. if ("\n" == p[2] && h < d) {
  10806. f = q;
  10807. k = n;
  10808. break
  10809. }
  10810. if (h > d) { - 1 != k && (f = q);
  10811. break
  10812. }
  10813. k = n;
  10814. z = c.substr(n)
  10815. }
  10816. if (f) return k;
  10817. z = c.substr(0, g);
  10818. for (k = g; p = v.exec(z);) if (k = p[1].length, z = p[1], h = this.cG(z), h < d) {
  10819. y.test(p[2]) && k++;
  10820. break
  10821. }
  10822. return k || 1
  10823. },
  10824. description: function() {
  10825. return "\x3ccc.LabelTTF | FontName \x3d" + this.Oc + " FontSize \x3d " + this.Pc.toFixed(1) + "\x3e"
  10826. },
  10827. G: s,
  10828. Yj: s,
  10829. Tb: s,
  10830. K: s,
  10831. dc: s,
  10832. G6a: function(c) {
  10833. C.ha.prototype.dc.call(this, c);
  10834. this.Yj()
  10835. },
  10836. Wb: A("qd"),
  10837. EAa: A("$o"),
  10838. pCa: A("xp"),
  10839. rAa: function() {
  10840. return C.size(this.ue.width, this.ue.height)
  10841. },
  10842. Vn: A("Pc"),
  10843. Fp: A("Oc"),
  10844. sf: function(c, d, f, g, h, k) {
  10845. c = c ? c + "": "";
  10846. f = f || 16;
  10847. g = g || C.size(0, f);
  10848. h = h || C.dz;
  10849. k = k || C.OE;
  10850. this.Fb = t;
  10851. this.ue = C.size(g.width, g.height);
  10852. this.Oc = d || "Arial";
  10853. this.$o = h;
  10854. this.xp = k;
  10855. this.Pc = f;
  10856. this.kn = this.Pc + "px '" + d + "'";
  10857. this.Yo = C.fa.QE(d, this.Pc);
  10858. this.string = c;
  10859. this.Yj();
  10860. this.JO();
  10861. this.Dc = t;
  10862. return q
  10863. },
  10864. Z0: s,
  10865. m5a: function(c) {
  10866. c && this.uZ(c, q)
  10867. },
  10868. SWa: function() {
  10869. return this.nua(t)
  10870. },
  10871. a0: function(c, d, f, g) {
  10872. f = f || 0.5;
  10873. t === this.Jg && (this.Jg = q);
  10874. var h = this.ih;
  10875. if (h && h.x != c || h.cj != d) h.x = c,
  10876. h.y = d;
  10877. this.sr != f && (this.sr = f);
  10878. this.Yj();
  10879. this.Wt != g && (this.Wt = g);
  10880. this.Dc = q
  10881. },
  10882. Isa: function() {
  10883. return this.ih.x
  10884. },
  10885. lva: function(c) {
  10886. t === this.Jg && (this.Jg = q);
  10887. this.ih.x != c && (this.ih.x = c, this.Dc = q)
  10888. },
  10889. Jsa: function() {
  10890. return this.ih.cj
  10891. },
  10892. mva: function(c) {
  10893. t === this.Jg && (this.Jg = q);
  10894. this.ih.cj != c && (this.ih.cj = c, this.Dc = q)
  10895. },
  10896. NOa: function() {
  10897. return C.d(this.ih.x, this.ih.y)
  10898. },
  10899. xPa: function(c) {
  10900. t === this.Jg && (this.Jg = q);
  10901. if (this.ih.x != c.x || this.ih.y != c.y) this.ih.x = c.x,
  10902. this.ih.y = c.y,
  10903. this.Dc = q
  10904. },
  10905. Ksa: A("sr"),
  10906. nva: function(c) {
  10907. t === this.Jg && (this.Jg = q);
  10908. this.sr != c && (this.sr = c, this.Yj(), this.Dc = q)
  10909. },
  10910. Hsa: A("Wt"),
  10911. kva: function(c) {
  10912. t === this.Jg && (this.Jg = q);
  10913. this.Wt != c && (this.Wt = c, this.Dc = q)
  10914. },
  10915. BRa: function() {
  10916. this.Jg && (this.Jg = t, this.Dc = q)
  10917. },
  10918. zza: function(c, d) {
  10919. this.pm === t && (this.pm = q);
  10920. var f = this.Uw;
  10921. if (f.r !== c.r || f.g !== c.g || f.b !== c.b) f.r = c.r,
  10922. f.g = c.g,
  10923. f.b = c.b,
  10924. this.Yj();
  10925. this.yr !== d && (this.yr = d || 0);
  10926. this.Dc = q
  10927. },
  10928. Msa: A("Uw"),
  10929. vva: function(c) {
  10930. this.pm === t && (this.pm = q);
  10931. var d = this.Uw;
  10932. if (d.r !== c.r || d.g !== c.g || d.b !== c.b) d.r = c.r,
  10933. d.g = c.g,
  10934. d.b = c.b,
  10935. this.Yj(),
  10936. this.Dc = q
  10937. },
  10938. xsa: A("yr"),
  10939. cva: function(c) {
  10940. this.pm === t && (this.pm = q);
  10941. this.yr !== c && (this.yr = c || 0, this.Dc = q)
  10942. },
  10943. CRa: function() {
  10944. this.pm && (this.pm = t, this.Dc = q)
  10945. },
  10946. zR: s,
  10947. msa: A("Vw"),
  10948. uZ: function(c, d) {
  10949. c.zSa ? (this.ue.width = c.boundingWidth, this.ue.height = c.boundingHeight) : (this.ue.width = 0, this.ue.height = 0);
  10950. this.$o = c.textAlign;
  10951. this.xp = c.verticalAlign;
  10952. this.Oc = c.fontName;
  10953. this.Pc = c.fontSize || 12;
  10954. this.kn = this.Pc + "px '" + this.Oc + "'";
  10955. this.Yo = C.fa.QE(this.Oc, this.Pc);
  10956. c.Dia && this.a0(c.shadowOffsetX, c.shadowOffsetY, c.shadowOpacity, c.shadowBlur);
  10957. c.I3 && this.zza(c.strokeStyle, c.lineWidth);
  10958. this.zR(c.fillStyle);
  10959. d && this.JO()
  10960. },
  10961. nua: function(c) {
  10962. var d = new C.W5;
  10963. c ? (d.fontSize = this.Pc, d.boundingWidth = C.Ec() * this.ue.width, d.boundingHeight = C.Ec() * this.ue.height) : (d.fontSize = this.Pc, d.boundingWidth = this.ue.width, d.boundingHeight = this.ue.height);
  10964. d.fontName = this.Oc;
  10965. d.textAlign = this.$o;
  10966. d.verticalAlign = this.xp;
  10967. if (this.pm) {
  10968. d.I3 = q;
  10969. var f = this.Uw;
  10970. d.strokeStyle = C.color(f.r, f.g, f.b);
  10971. d.lineWidth = this.yr
  10972. } else d.I3 = t;
  10973. this.Jg ? (d.Dia = q, d.shadowBlur = this.Wt, d.shadowOpacity = this.sr, d.shadowOffsetX = (c ? C.Ec() : 1) * this.ih.x, d.shadowOffsetY = (c ? C.Ec() : 1) * this.ih.y) : d.Jg = t;
  10974. c = this.Vw;
  10975. d.fillStyle = C.color(c.r, c.g, c.b);
  10976. return d
  10977. },
  10978. Yo: 18,
  10979. sa: function(c) {
  10980. c = String(c);
  10981. this.KX != c && (this.KX = c + "", this.HO(), this.Dc = q)
  10982. },
  10983. HO: function() {
  10984. this.qd = this.KX
  10985. },
  10986. S2: function(c) {
  10987. c !== this.$o && (this.$o = c, this.Dc = q)
  10988. },
  10989. y3: function(c) {
  10990. c != this.xp && (this.xp = c, this.Dc = q)
  10991. },
  10992. N2: function(c) {
  10993. if (c.width != this.ue.width || c.height != this.ue.height) this.ue = c,
  10994. this.HO(),
  10995. this.Dc = q
  10996. },
  10997. KF: function() {
  10998. return this.ue.width
  10999. },
  11000. VN: function(c) {
  11001. c != this.ue.width && (this.ue.width = c, this.HO(), this.Dc = q)
  11002. },
  11003. IW: function() {
  11004. return this.ue.height
  11005. },
  11006. UN: function(c) {
  11007. c != this.ue.height && (this.ue.height = c, this.HO(), this.Dc = q)
  11008. },
  11009. Od: function(c) {
  11010. this.Pc !== c && (this.Pc = c, this.kn = c + "px '" + this.Oc + "'", this.Yo = C.fa.QE(this.Oc, c), this.Dc = q)
  11011. },
  11012. Zd: function(c) {
  11013. this.Oc && this.Oc != c && (this.Oc = c, this.kn = this.Pc + "px '" + c + "'", this.Yo = C.fa.QE(c, this.Pc), this.Dc = q)
  11014. },
  11015. bw: A("kn"),
  11016. rr: function(c) {
  11017. var d = C.fa.xM.exec(c);
  11018. d && (this.Pc = parseInt(d[1]), this.Oc = d[2], this.kn = c, this.Yo = C.fa.QE(this.Oc, this.Pc), this.Dc = q)
  11019. },
  11020. Mra: function(c) {
  11021. if (c) {
  11022. var d = this.cZ,
  11023. f = this.dZ,
  11024. g = this.o.height - f,
  11025. h = this.xp,
  11026. k = this.$o,
  11027. n = this.Yo,
  11028. p = this.yr;
  11029. c.setTransform(1, 0, 0, 1, 0 + 0.5 * d, g + 0.5 * f);
  11030. c.font != this.kn && (c.font = this.kn);
  11031. c.fillStyle = this.tM;
  11032. var r = f = 0,
  11033. v = this.pm;
  11034. v && (c.lineWidth = 2 * p, c.strokeStyle = this.gO);
  11035. this.Jg && (p = this.ih, c.shadowColor = this.aO, c.shadowOffsetX = p.x, c.shadowOffsetY = -p.y, c.shadowBlur = this.Wt);
  11036. c.textBaseline = C.fa.Qva[h];
  11037. c.textAlign = C.fa.Pva[k];
  11038. d = this.o.width - d;
  11039. f = k === C.Q7 ? f + d: k === C.Fs ? f + d / 2 : f + 0;
  11040. if (this.sA) {
  11041. k = this.xr.length;
  11042. h === C.J8 ? r = n + g - n * k: h === C.MU && (r = n / 2 + (g - n * k) / 2);
  11043. for (h = 0; h < k; h++) d = this.xr[h],
  11044. p = -g + n * h + r,
  11045. v && c.strokeText(d, f, p),
  11046. c.fillText(d, f, p)
  11047. } else h !== C.J8 && (r = h === C.OE ? r - g: r - 0.5 * g),
  11048. v && c.strokeText(this.qd, f, r),
  11049. c.fillText(this.qd, f, r)
  11050. }
  11051. },
  11052. LW: function() {
  11053. if (this.YM) return this.YM;
  11054. if (!this.XM) {
  11055. var c = C.bd("canvas"),
  11056. d = new C.Ma;
  11057. d.Ng(c);
  11058. this.texture = d;
  11059. this.XM = c
  11060. }
  11061. return this.YM = this.XM.getContext("2d")
  11062. },
  11063. IO: function() {
  11064. var c = this.ue.width,
  11065. d, f, g = this.raa;
  11066. g.length = 0;
  11067. this.sA = t;
  11068. this.Fta();
  11069. if (0 !== c) {
  11070. var h = this.qd;
  11071. this.xr = [];
  11072. d = 0;
  11073. for (f = this.qd.length; d < f;) {
  11074. var k = this.jra(h.substr(d), c);
  11075. this.xr.push(h.substr(d, k));
  11076. d += k
  11077. }
  11078. } else {
  11079. this.xr = this.qd.split("\n");
  11080. d = 0;
  11081. for (f = this.xr.length; d < f; d++) g.push(this.cG(this.xr[d]))
  11082. }
  11083. 0 < this.xr.length && (this.sA = q);
  11084. f = d = 0;
  11085. this.pm && (d = f = 2 * this.yr);
  11086. this.Jg && (h = this.ih, d += 2 * Math.abs(h.x), f += 2 * Math.abs(h.y));
  11087. c = 0 === c ? this.sA ? C.size(0 | Math.max.apply(Math, g) + d, 0 | this.Yo * this.xr.length + f) : C.size(0 | this.cG(this.qd) + d, 0 | this.Yo + f) : 0 === this.ue.height ? this.sA ? C.size(0 | c + d, 0 | this.Yo * this.xr.length + f) : C.size(0 | c + d, 0 | this.Yo + f) : C.size(0 | c + d, 0 | this.ue.height + f);
  11088. this.Ca(c);
  11089. this.cZ = d;
  11090. this.dZ = f;
  11091. g = this.Ab;
  11092. this.Nb.x = 0.5 * d + (c.width - d) * g.x;
  11093. this.Nb.y = 0.5 * f + (c.height - f) * g.y
  11094. },
  11095. i: function() {
  11096. this.Dc && this.IO();
  11097. return C.u.prototype.i.call(this)
  11098. },
  11099. ef: function() {
  11100. this.Dc && this.IO();
  11101. return C.u.prototype.ef.call(this)
  11102. },
  11103. Dg: function() {
  11104. this.Dc && this.IO();
  11105. return C.u.prototype.Dg.call(this)
  11106. },
  11107. JO: function() {
  11108. var c = this.LW(),
  11109. d = this.XM,
  11110. f = this.o;
  11111. if (0 === this.qd.length) return d.width = 1,
  11112. d.height = f.height,
  11113. this.qc(C.rect(0, 0, 1, f.height)),
  11114. q;
  11115. c.font = this.kn;
  11116. this.IO();
  11117. var g = f.width,
  11118. f = f.height,
  11119. h = d.width == g && d.height == f;
  11120. d.width = g;
  11121. d.height = f;
  11122. h && c.clearRect(0, 0, g, f);
  11123. this.Mra(c);
  11124. this.da && this.da.Md();
  11125. this.qc(C.rect(0, 0, g, f));
  11126. return q
  11127. },
  11128. J: function(c) {
  11129. this.qd && "" != this.qd && (this.Dc && (this.Dc = t, this.JO()), C.u.prototype.J.call(this, c || C.t))
  11130. },
  11131. ka: s,
  11132. xba: function(c) {
  11133. var d = this.wa ? this.textureAtlas.texture: this.da;
  11134. if (d) {
  11135. var f = d.pixelsWidth,
  11136. g = d.pixelsHeight,
  11137. h, k = this.Td;
  11138. this.jf ? (C.Qy ? (d = (2 * c.x + 1) / (2 * f), f = d + (2 * c.height - 2) / (2 * f), h = (2 * c.y + 1) / (2 * g), c = h + (2 * c.width - 2) / (2 * g)) : (d = c.x / f, f = (c.x + c.height) / f, h = c.y / g, c = (c.y + c.width) / g), this.Bb && (g = h, h = c, c = g), this.Db && (g = d, d = f, f = g), k.T.v.xa = d, k.T.v.ea = h, k.Y.v.xa = d, k.Y.v.ea = c, k.X.v.xa = f, k.X.v.ea = h, k.V.v.xa = f, k.V.v.ea = c) : (C.Qy ? (d = (2 * c.x + 1) / (2 * f), f = d + (2 * c.width - 2) / (2 * f), h = (2 * c.y + 1) / (2 * g), c = h + (2 * c.height - 2) / (2 * g)) : (d = c.x / f, f = (c.x + c.width) / f, h = c.y / g, c = (c.y + c.height) / g), this.Bb && (g = d, d = f, f = g), this.Db && (g = h, h = c, c = g), k.T.v.xa = d, k.T.v.ea = c, k.Y.v.xa = f, k.Y.v.ea = c, k.X.v.xa = d, k.X.v.ea = h, k.V.v.xa = f, k.V.v.ea = h);
  11139. this.Ti = q
  11140. }
  11141. }
  11142. });
  11143. C.L === C.cb ? (H = C.fa.prototype, H.G = function(c) {
  11144. C.ha.prototype.G.call(this, c);
  11145. this.Yj()
  11146. },
  11147. H.Yj = function() {
  11148. this.Dc = q;
  11149. var c = this.wb,
  11150. d = this.hb,
  11151. f = this.Uw,
  11152. g = this.Vw;
  11153. this.aO = "rgba(" + (0 | 0.5 * c.r) + "," + (0 | 0.5 * c.g) + "," + (0 | 0.5 * c.b) + "," + this.sr + ")";
  11154. this.tM = "rgba(" + (0 | c.r / 255 * g.r) + "," + (0 | c.g / 255 * g.g) + "," + (0 | c.b / 255 * g.b) + ", " + d / 255 + ")";
  11155. this.gO = "rgba(" + (0 | c.r / 255 * f.r) + "," + (0 | c.g / 255 * f.g) + "," + (0 | c.b / 255 * f.b) + ", " + d / 255 + ")"
  11156. },
  11157. H.Tb = function(c) {
  11158. C.ha.prototype.Tb.call(this, c);
  11159. this.Yj()
  11160. },
  11161. H.K = function(c) {
  11162. this.Eb !== c && (C.u.prototype.K.call(this, c), this.Yj(), this.Dc = q)
  11163. },
  11164. H.dc = C.u.prototype.dc, H.Z0 = function(c, d) {
  11165. this.uZ(d, t);
  11166. this.string = c;
  11167. return q
  11168. },
  11169. H.zR = function(c) {
  11170. var d = this.Vw;
  11171. if (d.r != c.r || d.g != c.g || d.b != c.b) d.r = c.r,
  11172. d.g = c.g,
  11173. d.b = c.b,
  11174. this.Yj(),
  11175. this.Dc = q
  11176. },
  11177. H.ka = C.u.prototype.ka, H.qc = function(c, d, f) {
  11178. this.jf = d || t;
  11179. this.Ca(f || c);
  11180. this.x3(c);
  11181. d = this.jB;
  11182. d.x = c.x;
  11183. d.y = c.y;
  11184. d.width = c.width;
  11185. d.height = c.height;
  11186. d.nD = !(0 === d.width || 0 === d.height || 0 > d.x || 0 > d.y);
  11187. c = this.Nn;
  11188. this.Bb && (c.x = -c.x);
  11189. this.Db && (c.y = -c.y);
  11190. this.ld.x = c.x + (this.o.width - this.Ra.width) / 2;
  11191. this.ld.y = c.y + (this.o.height - this.Ra.height) / 2;
  11192. this.wa && (this.dirty = q)
  11193. },
  11194. H = s) : (C.assert("function" === typeof C.U.QU, C.n.Bf, "LabelTTFWebGL.js"), C.U.QU(), delete C.U.QU);
  11195. C.assert("function" === typeof C.U.OT, C.n.Bf, "LabelTTFPropertyDefine.js");
  11196. C.U.OT();
  11197. delete C.U.OT;
  11198. C.fa.Pva = ["left", "center", "right"];
  11199. C.fa.Qva = ["top", "middle", "bottom"];
  11200. C.fa.lra = /(.+?)([\s\n\r\-\/\\\:]|[\u4E00-\u9FA5]|[\uFE30-\uFFA0])/;
  11201. C.fa.Hua = /(.*)([\s\n\r\-\/\\\:]|[\u4E00-\u9FA5]|[\uFE30-\uFFA0])/;
  11202. C.fa.ira = /[\s\-\/\\\:]/;
  11203. C.fa.xM = /^(\d+)px\s+['"]?([\w\s\d]+)['"]?$/;
  11204. C.fa.create = function(c, d, f, g, h, k) {
  11205. return new C.fa(c, d, f, g, h, k)
  11206. };
  11207. C.fa.Bqa = C.nqa ? C.Co: C.$T;
  11208. C.fa.Rs = C.bd("div");
  11209. C.fa.Rs.style.fontFamily = "Arial";
  11210. C.fa.Rs.style.position = "absolute";
  11211. C.fa.Rs.style.left = "-100px";
  11212. C.fa.Rs.style.top = "-100px";
  11213. C.fa.Rs.style.lineHeight = "normal";
  11214. document.body ? document.body.appendChild(C.fa.Rs) : C.qb(window, "load",
  11215. function() {
  11216. this.removeEventListener("load", arguments.callee, t);
  11217. document.body.appendChild(C.fa.Rs)
  11218. },
  11219. t);
  11220. C.fa.QE = function(c, d) {
  11221. var f = C.fa.R8[c + "." + d];
  11222. if (0 < f) return f;
  11223. var g = C.fa.Rs;
  11224. g.innerHTML = "ajghl~!";
  11225. g.style.fontFamily = c;
  11226. g.style.fontSize = d + "px";
  11227. f = g.clientHeight;
  11228. C.fa.R8[c + "." + d] = f;
  11229. g.innerHTML = "";
  11230. return f
  11231. };
  11232. C.fa.R8 = {};
  11233. C.vma = C.O.extend({
  11234. Ve: s,
  11235. target: s,
  11236. kx: 0,
  11237. bk: s,
  11238. wx: t,
  11239. paused: t,
  11240. WP: s,
  11241. ctor: function() {
  11242. this.Ve = [];
  11243. this.target = s;
  11244. this.kx = 0;
  11245. this.bk = s;
  11246. this.paused = this.wx = t;
  11247. this.WP = s
  11248. }
  11249. });
  11250. C.k4 = C.O.extend({
  11251. mn: s,
  11252. lz: s,
  11253. Cf: s,
  11254. Vo: t,
  11255. tPa: function(c, d) {
  11256. for (var f = 0; f < c.length; f++) if (d == c[f].target) return c[f];
  11257. return s
  11258. },
  11259. ctor: function() {
  11260. this.mn = {};
  11261. this.lz = [];
  11262. this.Cf = s;
  11263. this.Vo = t
  11264. },
  11265. mwa: function(c, d, f) {
  11266. c || e("cc.ActionManager.addAction(): action must be non-null");
  11267. d || e("cc.ActionManager.addAction(): action must be non-null");
  11268. var g = this.mn[d.ub];
  11269. g || (g = new C.vma, g.paused = f, g.target = d, this.mn[d.ub] = g, this.lz.push(g));
  11270. this.Hqa(g);
  11271. g.Ve.push(c);
  11272. c.R(d)
  11273. },
  11274. P1a: function() {
  11275. for (var c = this.lz,
  11276. d = 0; d < c.length; d++) {
  11277. var f = c[d];
  11278. f && this.Pga(f.target, q)
  11279. }
  11280. },
  11281. Pga: function(c, d) {
  11282. if (c != s) {
  11283. var f = this.mn[c.ub];
  11284. f && ( - 1 !== f.Ve.indexOf(f.bk) && !f.wx && (f.wx = q), f.Ve.length = 0, this.Cf == f && !d ? this.Vo = q: this.ZV(f))
  11285. }
  11286. },
  11287. Oga: function(c) {
  11288. if (c != s) {
  11289. var d = this.mn[c.originalTarget.ub];
  11290. if (d) for (var f = 0; f < d.Ve.length; f++) {
  11291. if (d.Ve[f] == c) {
  11292. d.Ve.splice(f, 1);
  11293. break
  11294. }
  11295. } else C.log(C.n.Ija)
  11296. }
  11297. },
  11298. nGa: function(c, d) {
  11299. c == C.Gy && C.log(C.n.l4);
  11300. C.assert(d, C.n.l4);
  11301. var f = this.mn[d.ub];
  11302. if (f) for (var g = f.Ve.length,
  11303. h = 0; h < g; ++h) {
  11304. var k = f.Ve[h];
  11305. if (k && k.Fm() === c && k.originalTarget == d) {
  11306. this.yua(h, f);
  11307. break
  11308. }
  11309. }
  11310. },
  11311. xP: function(c, d) {
  11312. c == C.Gy && C.log(C.n.Gja);
  11313. var f = this.mn[d.ub];
  11314. if (f) {
  11315. if (f.Ve != s) for (var g = 0; g < f.Ve.length; ++g) {
  11316. var h = f.Ve[g];
  11317. if (h && h.Fm() === c) return h
  11318. }
  11319. C.log(C.n.Hja, c)
  11320. }
  11321. return s
  11322. },
  11323. wEa: function(c) {
  11324. return (c = this.mn[c.ub]) ? c.Ve ? c.Ve.length: 0 : 0
  11325. },
  11326. hs: function(c) { (c = this.mn[c.ub]) && (c.paused = q)
  11327. },
  11328. Mm: function(c) { (c = this.mn[c.ub]) && (c.paused = t)
  11329. },
  11330. Z0a: function() {
  11331. for (var c = [], d = this.lz, f = 0; f < d.length; f++) {
  11332. var g = d[f];
  11333. g && !g.paused && (g.paused = q, c.push(g.target))
  11334. }
  11335. return c
  11336. },
  11337. FGa: function(c) {
  11338. if (c) for (var d = 0; d < c.length; d++) c[d] && this.Mm(c[d])
  11339. },
  11340. t1a: function() {
  11341. C.Q.Em().GJ(this)
  11342. },
  11343. yua: function(c, d) {
  11344. d.Ve[c] == d.bk && !d.wx && (d.wx = q);
  11345. d.Ve.splice(c, 1);
  11346. d.kx >= c && d.kx--;
  11347. 0 == d.Ve.length && (this.Cf == d ? this.Vo = q: this.ZV(d))
  11348. },
  11349. ZV: function(c) {
  11350. c && (delete this.mn[c.target.ub], C.Id(this.lz, c), c.Ve = s, c.target = s)
  11351. },
  11352. Hqa: function(c) {
  11353. c.Ve == s && (c.Ve = [])
  11354. },
  11355. update: function(c) {
  11356. for (var d = this.lz,
  11357. f, g = 0; g < d.length; g++) {
  11358. f = this.Cf = d[g];
  11359. if (!f.paused) for (f.kx = 0; f.kx < f.Ve.length; f.kx++) if (f.bk = f.Ve[f.kx], f.bk) {
  11360. f.wx = t;
  11361. f.bk.step(c * (f.bk.JG ? f.bk.Hf: 1));
  11362. if (f.wx) f.bk = s;
  11363. else if (f.bk.ik()) {
  11364. f.bk.stop();
  11365. var h = f.bk;
  11366. f.bk = s;
  11367. this.Oga(h)
  11368. }
  11369. f.bk = s
  11370. }
  11371. this.Vo && 0 === f.Ve.length && this.ZV(f)
  11372. }
  11373. }
  11374. });
  11375. C.s_a = Number;
  11376. C.iZa = Number;
  11377. C.jZa = Number;
  11378. C.Wy = 0;
  11379. C.Xy = 1;
  11380. C.r1 = 3.141592;
  11381. C.WDa = 0.017453;
  11382. C.XDa = 57.295779;
  11383. C.xb = 0.015625;
  11384. C.tf = function(c) {
  11385. return c * c
  11386. };
  11387. C.tI = function(c) {
  11388. return c * C.WDa
  11389. };
  11390. C.n_a = function(c) {
  11391. return c * C.XDa
  11392. };
  11393. C.uQ = function(c, d) {
  11394. return c < d ? c: d
  11395. };
  11396. C.tQ = function(c, d) {
  11397. return c > d ? c: d
  11398. };
  11399. C.hZa = function(c, d) {
  11400. return c + C.xb > d && c - C.xb < d
  11401. };
  11402. C.bo = function() {
  11403. this.y = this.x = 0
  11404. };
  11405. C.w_a = function(c, d, f) {
  11406. c.x = d;
  11407. c.y = f;
  11408. return c
  11409. };
  11410. C.wQ = function(c) {
  11411. return Math.sqrt(C.tf(c.x) + C.tf(c.y))
  11412. };
  11413. C.x_a = function(c) {
  11414. return C.tf(c.x) + C.tf(c.y)
  11415. };
  11416. C.cEa = function(c, d) {
  11417. var f = 1 / C.wQ(d),
  11418. g = new C.bo;
  11419. g.x = d.x * f;
  11420. g.y = d.y * f;
  11421. c.x = g.x;
  11422. c.y = g.y
  11423. };
  11424. C.t_a = function(c, d, f) {
  11425. c.x = d.x + f.x;
  11426. c.y = d.y + f.y;
  11427. return c
  11428. };
  11429. C.v_a = function(c, d) {
  11430. return c.x * d.x + c.y * d.y
  11431. };
  11432. C.xQ = function(c, d, f) {
  11433. c.x = d.x - f.x;
  11434. c.y = d.y - f.y;
  11435. return c
  11436. };
  11437. C.z_a = function(c, d, f) {
  11438. var g = new C.bo;
  11439. g.x = d.x * f.c[0] + d.y * f.c[3] + f.c[6];
  11440. g.y = d.x * f.c[1] + d.y * f.c[4] + f.c[7];
  11441. c.x = g.x;
  11442. c.y = g.y;
  11443. return c
  11444. };
  11445. C.A_a = B(s);
  11446. C.y_a = function(c, d, f) {
  11447. c.x = d.x * f;
  11448. c.y = d.y * f;
  11449. return c
  11450. };
  11451. C.u_a = function(c, d) {
  11452. return c.x < d.x + C.xb && c.x > d.x - C.xb && c.y < d.y + C.xb && c.y > d.y - C.xb
  11453. };
  11454. C.Zc = function(c, d, f) {
  11455. this.x = c || 0;
  11456. this.y = d || 0;
  11457. this.f = f || 0
  11458. };
  11459. C.nC = function(c, d, f, g) {
  11460. if (!c) return new C.Zc(d, f, g);
  11461. c.x = d;
  11462. c.y = f;
  11463. c.f = g;
  11464. return c
  11465. };
  11466. C.zfa = function(c) {
  11467. return Math.sqrt(C.tf(c.x) + C.tf(c.y) + C.tf(c.f))
  11468. };
  11469. C.Afa = function(c) {
  11470. return C.tf(c.x) + C.tf(c.y) + C.tf(c.f)
  11471. };
  11472. C.jk = function(c, d) {
  11473. var f = 1 / C.zfa(d);
  11474. c.x = d.x * f;
  11475. c.y = d.y * f;
  11476. c.f = d.f * f
  11477. };
  11478. C.Du = function(c, d, f) {
  11479. c.x = d.y * f.f - d.f * f.y;
  11480. c.y = d.f * f.x - d.x * f.f;
  11481. c.f = d.x * f.y - d.y * f.x
  11482. };
  11483. C.t1 = function(c, d) {
  11484. return c.x * d.x + c.y * d.y + c.f * d.f
  11485. };
  11486. C.yfa = function(c, d, f) {
  11487. c.x = d.x + f.x;
  11488. c.y = d.y + f.y;
  11489. c.f = d.f + f.f
  11490. };
  11491. C.v1 = function(c, d, f) {
  11492. c.x = d.x - f.x;
  11493. c.y = d.y - f.y;
  11494. c.f = d.f - f.f
  11495. };
  11496. C.F_a = function(c, d, f) {
  11497. c.x = d.x * f.c[0] + d.y * f.c[4] + d.f * f.c[8] + f.c[12];
  11498. c.y = d.x * f.c[1] + d.y * f.c[5] + d.f * f.c[9] + f.c[13];
  11499. c.f = d.x * f.c[2] + d.y * f.c[6] + d.f * f.c[10] + f.c[14];
  11500. return c
  11501. };
  11502. C.G_a = function(c, d, f) {
  11503. c.x = d.x * f.c[0] + d.y * f.c[4] + d.f * f.c[8];
  11504. c.y = d.x * f.c[1] + d.y * f.c[5] + d.f * f.c[9];
  11505. c.f = d.x * f.c[2] + d.y * f.c[6] + d.f * f.c[10];
  11506. return c
  11507. };
  11508. C.Bfa = function(c, d, f) {
  11509. var g = new C.Cfa,
  11510. h = new C.Cfa;
  11511. C.dEa(h, d.x, d.y, d.f);
  11512. C.Dfa(g, h, f);
  11513. c.x = g.x / g.ba;
  11514. c.y = g.y / g.ba;
  11515. c.f = g.f / g.ba
  11516. };
  11517. C.u1 = function(c, d, f) {
  11518. c.x = d.x * f;
  11519. c.y = d.y * f;
  11520. c.f = d.f * f;
  11521. return c
  11522. };
  11523. C.B_a = function(c, d) {
  11524. return c.x < d.x + C.xb && c.x > d.x - C.xb && c.y < d.y + C.xb && c.y > d.y - C.xb && c.f < d.f + C.xb && c.f > d.f - C.xb ? 1 : 0
  11525. };
  11526. C.C_a = function(c, d, f) {
  11527. d = new C.Zc(d.x - f.c[12], d.y - f.c[13], d.f - f.c[14]);
  11528. c.x = d.x * f.c[0] + d.y * f.c[1] + d.f * f.c[2];
  11529. c.y = d.x * f.c[4] + d.y * f.c[5] + d.f * f.c[6];
  11530. c.f = d.x * f.c[8] + d.y * f.c[9] + d.f * f.c[10];
  11531. return c
  11532. };
  11533. C.D_a = function(c, d, f) {
  11534. c.x = d.x * f.c[0] + d.y * f.c[1] + d.f * f.c[2];
  11535. c.y = d.x * f.c[4] + d.y * f.c[5] + d.f * f.c[6];
  11536. c.f = d.x * f.c[8] + d.y * f.c[9] + d.f * f.c[10];
  11537. return c
  11538. };
  11539. C.uI = function(c, d) {
  11540. c != d && (c.x = d.x, c.y = d.y, c.f = d.f)
  11541. };
  11542. C.H_a = function(c) {
  11543. c.x = 0;
  11544. c.y = 0;
  11545. c.f = 0;
  11546. return c
  11547. };
  11548. C.E_a = function(c) {
  11549. if (!c) return s;
  11550. var d = new Float32Array(3);
  11551. d[0] = c.x;
  11552. d[1] = c.y;
  11553. d[2] = c.f;
  11554. return d
  11555. };
  11556. C.Cfa = function() {
  11557. this.ba = this.f = this.y = this.x = 0
  11558. };
  11559. C.dEa = function(c, d, f, g) {
  11560. c.x = d;
  11561. c.y = f;
  11562. c.f = g;
  11563. c.ba = 1
  11564. };
  11565. C.I_a = function(c, d, f) {
  11566. c.x = d.x + f.x;
  11567. c.y = d.y + f.y;
  11568. c.f = d.f + f.f;
  11569. c.ba = d.ba + f.ba;
  11570. return c
  11571. };
  11572. C.L_a = function(c, d) {
  11573. return c.x * d.x + c.y * d.y + c.f * d.f + c.ba * d.ba
  11574. };
  11575. C.eEa = function(c) {
  11576. return Math.sqrt(C.tf(c.x) + C.tf(c.y) + C.tf(c.f) + C.tf(c.ba))
  11577. };
  11578. C.M_a = function(c) {
  11579. return C.tf(c.x) + C.tf(c.y) + C.tf(c.f) + C.tf(c.ba)
  11580. };
  11581. C.N_a = da();
  11582. C.fEa = function(c, d) {
  11583. var f = 1 / C.eEa(d);
  11584. c.x *= f;
  11585. c.y *= f;
  11586. c.f *= f;
  11587. c.ba *= f
  11588. };
  11589. C.O_a = function(c, d, f) {
  11590. C.fEa(c, d);
  11591. c.x *= f;
  11592. c.y *= f;
  11593. c.f *= f;
  11594. c.ba *= f;
  11595. return c
  11596. };
  11597. C.P_a = function(c, d, f) {
  11598. c.x = d.x - f.x;
  11599. c.y = d.y - f.y;
  11600. c.f = d.f - f.f;
  11601. c.ba = d.ba - f.ba;
  11602. return c
  11603. };
  11604. C.Dfa = function(c, d, f) {
  11605. c.x = d.x * f.c[0] + d.y * f.c[4] + d.f * f.c[8] + d.ba * f.c[12];
  11606. c.y = d.x * f.c[1] + d.y * f.c[5] + d.f * f.c[9] + d.ba * f.c[13];
  11607. c.f = d.x * f.c[2] + d.y * f.c[6] + d.f * f.c[10] + d.ba * f.c[14];
  11608. c.ba = d.x * f.c[3] + d.y * f.c[7] + d.f * f.c[11] + d.ba * f.c[15]
  11609. };
  11610. C.R_a = function(c, d, f, g, h, k) {
  11611. for (var n = 0; n < k;) C.Dfa(c + n * d, f + n * g, h),
  11612. ++n;
  11613. return c
  11614. };
  11615. C.J_a = function(c, d) {
  11616. return c.x < d.x + C.xb && c.x > d.x - C.xb && c.y < d.y + C.xb && c.y > d.y - C.xb && c.f < d.f + C.xb && c.f > d.f - C.xb && c.ba < d.ba + C.xb && c.ba > d.ba - C.xb
  11617. };
  11618. C.K_a = function(c, d) {
  11619. if (c == d) return C.log("destVec and srcVec are same object"),
  11620. c;
  11621. c.x = d.x;
  11622. c.y = d.y;
  11623. c.f = d.f;
  11624. c.ba = d.ba;
  11625. return c
  11626. };
  11627. C.Q_a = function(c) {
  11628. if (!c) return s;
  11629. var d = new Float32Array(4);
  11630. d[0] = c.x;
  11631. d[1] = c.y;
  11632. d[2] = c.f;
  11633. d[3] = c.ba;
  11634. return d
  11635. };
  11636. C.o_a = function(c) {
  11637. this.start = c || new C.bo;
  11638. this.start = c || new C.bo
  11639. };
  11640. C.p_a = function(c, d, f, g, h) {
  11641. c.start.x = d;
  11642. c.start.y = f;
  11643. c.dir.x = g;
  11644. c.dir.y = h
  11645. };
  11646. C.s1 = function(c, d, f, g) {
  11647. var h = c.start.x,
  11648. k = c.start.y,
  11649. n = c.start.x + c.dir.x;
  11650. c = c.start.y + c.dir.y;
  11651. var p = d.x,
  11652. r = d.y,
  11653. v = f.x,
  11654. y = f.y,
  11655. z = (y - r) * (n - h) - (v - p) * (c - k);
  11656. if (z > -C.xb && z < C.xb) return C.Wy;
  11657. r = ((v - p) * (k - r) - (y - r) * (h - p)) / z;
  11658. p = h + r * (n - h);
  11659. r = k + r * (c - k);
  11660. if (p < C.uQ(d.x, f.x) - C.xb || p > C.tQ(d.x, f.x) + C.xb || r < C.uQ(d.y, f.y) - C.xb || r > C.tQ(d.y, f.y) + C.xb || p < C.uQ(h, n) - C.xb || p > C.tQ(h, n) + C.xb || r < C.uQ(k, c) - C.xb || r > C.tQ(k, c) + C.xb) return C.Wy;
  11661. g.x = p;
  11662. g.y = r;
  11663. return C.Xy
  11664. };
  11665. C.m_ = function(c, d, f) {
  11666. var g = new C.bo;
  11667. C.xQ(g, d, c);
  11668. f.x = -g.y;
  11669. f.y = g.x;
  11670. C.cEa(f, f)
  11671. };
  11672. C.r_a = function(c, d, f, g, h, k) {
  11673. var n = new C.bo,
  11674. p = new C.bo,
  11675. r = new C.bo,
  11676. v = 1E4,
  11677. y = C.Wy,
  11678. z;
  11679. C.s1(c, d, f, n) && (z = new C.bo, y = C.Xy, z = C.wQ(C.xQ(z, n, c.start)), z < v && (p.x = n.x, p.y = n.y, v = z, C.m_(d, f, r)));
  11680. C.s1(c, f, g, n) && (z = new C.bo, y = C.Xy, z = C.wQ(C.xQ(z, n, c.start)), z < v && (p.x = n.x, p.y = n.y, v = z, C.m_(f, g, r)));
  11681. C.s1(c, g, d, n) && (z = new C.bo, y = C.Xy, z = C.wQ(C.xQ(z, n, c.start)), z < v && (p.x = n.x, p.y = n.y, C.m_(g, d, r)));
  11682. y && (h.x = p.x, h.y = p.y, k && (k.x = r.x, k.y = r.y));
  11683. return y
  11684. };
  11685. C.q_a = function() {
  11686. C.log("cc.kmRay2IntersectCircle() has not been implemented.")
  11687. };
  11688. var Float32Array = Float32Array || Array;
  11689. C.sQ = function() {
  11690. this.c = new Float32Array([0, 0, 0, 0, 0, 0, 0, 0, 0])
  11691. };
  11692. C.rZa = function(c, d) {
  11693. for (var f = 0; 9 > f; f++) c.c[f] = d;
  11694. return c
  11695. };
  11696. C.PDa = function(c, d) {
  11697. c.c[0] = d.c[4] * d.c[8] - d.c[5] * d.c[7];
  11698. c.c[1] = d.c[2] * d.c[7] - d.c[1] * d.c[8];
  11699. c.c[2] = d.c[1] * d.c[5] - d.c[2] * d.c[4];
  11700. c.c[3] = d.c[5] * d.c[6] - d.c[3] * d.c[8];
  11701. c.c[4] = d.c[0] * d.c[8] - d.c[2] * d.c[6];
  11702. c.c[5] = d.c[2] * d.c[3] - d.c[0] * d.c[5];
  11703. c.c[6] = d.c[3] * d.c[7] - d.c[4] * d.c[6];
  11704. c.c[8] = d.c[0] * d.c[4] - d.c[1] * d.c[3]
  11705. };
  11706. C.qfa = function(c) {
  11707. c.c[1] = c.c[2] = c.c[3] = c.c[5] = c.c[6] = c.c[7] = 0;
  11708. c.c[0] = c.c[4] = c.c[8] = 1
  11709. };
  11710. C.sZa = function(c, d, f) {
  11711. var g = new C.sQ;
  11712. if (0 === d) return s;
  11713. d = 1 / d;
  11714. C.PDa(g, f);
  11715. C.QDa(c, g, d);
  11716. return c
  11717. };
  11718. C.sQ.YW = new Float32Array([1, 0, 0, 0, 1, 0, 0, 0, 1]);
  11719. C.tZa = function(c) {
  11720. for (var d = 0; 9 > d; d++) if (C.sQ.YW[d] !== c.c[d]) return t;
  11721. return q
  11722. };
  11723. C.EZa = function(c, d) {
  11724. var f, g;
  11725. for (f = 0; 3 > f; ++f) for (g = 0; 3 > g; ++g) c.c[3 * f + g] = d.c[3 * g + f];
  11726. return c
  11727. };
  11728. C.qZa = function(c) {
  11729. var d;
  11730. d = c.c[0] * c.c[4] * c.c[8] + c.c[1] * c.c[5] * c.c[6] + c.c[2] * c.c[3] * c.c[7];
  11731. return d -= c.c[2] * c.c[4] * c.c[6] + c.c[0] * c.c[5] * c.c[7] + c.c[1] * c.c[3] * c.c[8]
  11732. };
  11733. C.uZa = function(c, d, f) {
  11734. d = d.c;
  11735. f = f.c;
  11736. c.c[0] = d[0] * f[0] + d[3] * f[1] + d[6] * f[2];
  11737. c.c[1] = d[1] * f[0] + d[4] * f[1] + d[7] * f[2];
  11738. c.c[2] = d[2] * f[0] + d[5] * f[1] + d[8] * f[2];
  11739. c.c[3] = d[0] * f[3] + d[3] * f[4] + d[6] * f[5];
  11740. c.c[4] = d[1] * f[3] + d[4] * f[4] + d[7] * f[5];
  11741. c.c[5] = d[2] * f[3] + d[5] * f[4] + d[8] * f[5];
  11742. c.c[6] = d[0] * f[6] + d[3] * f[7] + d[6] * f[8];
  11743. c.c[7] = d[1] * f[6] + d[4] * f[7] + d[7] * f[8];
  11744. c.c[8] = d[2] * f[6] + d[5] * f[7] + d[8] * f[8];
  11745. return c
  11746. };
  11747. C.QDa = function(c, d, f) {
  11748. for (var g = 0; 9 > g; g++) c.c[g] = d.c[g] * f
  11749. };
  11750. C.wZa = function(c, d, f) {
  11751. var g = Math.cos(f);
  11752. f = Math.sin(f);
  11753. c.c[0] = g + d.x * d.x * (1 - g);
  11754. c.c[1] = d.f * f + d.y * d.x * (1 - g);
  11755. c.c[2] = -d.y * f + d.f * d.x * (1 - g);
  11756. c.c[3] = -d.f * f + d.x * d.y * (1 - g);
  11757. c.c[4] = g + d.y * d.y * (1 - g);
  11758. c.c[5] = d.x * f + d.f * d.y * (1 - g);
  11759. c.c[6] = d.y * f + d.x * d.f * (1 - g);
  11760. c.c[7] = -d.x * f + d.y * d.f * (1 - g);
  11761. c.c[8] = g + d.f * d.f * (1 - g);
  11762. return c
  11763. };
  11764. C.pZa = function(c, d) {
  11765. if (c == d) return C.log("cc.kmMat3Assign(): pOut equals pIn"),
  11766. c;
  11767. for (var f = 0; 9 > f; f++) c.c[f] = d.c[f];
  11768. return c
  11769. };
  11770. C.oZa = function(c, d) {
  11771. if (c == d) return q;
  11772. for (var f = 0; 9 > f; ++f) if (! (c.c[f] + C.xb > d.c[f] && c.c[f] - C.xb < d.c[f])) return t;
  11773. return q
  11774. };
  11775. C.zZa = function(c, d) {
  11776. c.c[0] = 1;
  11777. c.c[1] = 0;
  11778. c.c[2] = 0;
  11779. c.c[3] = 0;
  11780. c.c[4] = Math.cos(d);
  11781. c.c[5] = Math.sin(d);
  11782. c.c[6] = 0;
  11783. c.c[7] = -Math.sin(d);
  11784. c.c[8] = Math.cos(d);
  11785. return c
  11786. };
  11787. C.AZa = function(c, d) {
  11788. c.c[0] = Math.cos(d);
  11789. c.c[1] = 0;
  11790. c.c[2] = -Math.sin(d);
  11791. c.c[3] = 0;
  11792. c.c[4] = 1;
  11793. c.c[5] = 0;
  11794. c.c[6] = Math.sin(d);
  11795. c.c[7] = 0;
  11796. c.c[8] = Math.cos(d);
  11797. return c
  11798. };
  11799. C.BZa = function(c, d) {
  11800. c.c[0] = Math.cos(d);
  11801. c.c[1] = -Math.sin(d);
  11802. c.c[2] = 0;
  11803. c.c[3] = Math.sin(d);
  11804. c.c[4] = Math.cos(d);
  11805. c.c[5] = 0;
  11806. c.c[6] = 0;
  11807. c.c[7] = 0;
  11808. c.c[8] = 1;
  11809. return c
  11810. };
  11811. C.vZa = function(c, d) {
  11812. c.c[0] = Math.cos(d);
  11813. c.c[1] = Math.sin(d);
  11814. c.c[2] = 0;
  11815. c.c[3] = -Math.sin(d);
  11816. c.c[4] = Math.cos(d);
  11817. c.c[5] = 0;
  11818. c.c[6] = 0;
  11819. c.c[7] = 0;
  11820. c.c[8] = 1;
  11821. return c
  11822. };
  11823. C.CZa = function(c, d, f) {
  11824. C.qfa(c);
  11825. c.c[0] = d;
  11826. c.c[4] = f;
  11827. return c
  11828. };
  11829. C.DZa = function(c, d, f) {
  11830. C.qfa(c);
  11831. c.c[6] = d;
  11832. c.c[7] = f;
  11833. return c
  11834. };
  11835. C.xZa = function(c, d) {
  11836. if (!d || !c) return s;
  11837. c.c[0] = 1 - 2 * (d.y * d.y + d.f * d.f);
  11838. c.c[1] = 2 * (d.x * d.y - d.ba * d.f);
  11839. c.c[2] = 2 * (d.x * d.f + d.ba * d.y);
  11840. c.c[3] = 2 * (d.x * d.y + d.ba * d.f);
  11841. c.c[4] = 1 - 2 * (d.x * d.x + d.f * d.f);
  11842. c.c[5] = 2 * (d.y * d.f - d.ba * d.x);
  11843. c.c[6] = 2 * (d.x * d.f - d.ba * d.y);
  11844. c.c[7] = 2 * (d.y * d.f + d.ba * d.x);
  11845. c.c[8] = 1 - 2 * (d.x * d.x + d.y * d.y);
  11846. return c
  11847. };
  11848. C.yZa = function(c, d, f) {
  11849. C.wfa(m, f);
  11850. C.xfa(m, c);
  11851. return c
  11852. };
  11853. C.Ia = function() {
  11854. this.c = new Float32Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0])
  11855. };
  11856. C.HZa = function(c, d) {
  11857. c.c[0] = c.c[1] = c.c[2] = c.c[3] = c.c[4] = c.c[5] = c.c[6] = c.c[7] = c.c[8] = c.c[9] = c.c[10] = c.c[11] = c.c[12] = c.c[13] = c.c[14] = c.c[15] = d
  11858. };
  11859. C.Ox = function(c) {
  11860. c.c[1] = c.c[2] = c.c[3] = c.c[4] = c.c[6] = c.c[7] = c.c[8] = c.c[9] = c.c[11] = c.c[12] = c.c[13] = c.c[14] = 0;
  11861. c.c[0] = c.c[5] = c.c[10] = c.c[15] = 1
  11862. };
  11863. C.Ia.Uk = function(c, d, f) {
  11864. return c.c[d + 4 * f]
  11865. };
  11866. C.Ia.Ut = function(c, d, f, g) {
  11867. c.c[d + 4 * f] = g
  11868. };
  11869. C.Ia.cu = function(c, d, f, g, h) {
  11870. var k = C.Ia.Uk(c, d, f);
  11871. C.Ia.Ut(c, d, f, C.Ia.Uk(c, g, h));
  11872. C.Ia.Ut(c, g, h, k)
  11873. };
  11874. C.Ia.csa = function(c, d) {
  11875. var f, g = 0,
  11876. h = 0,
  11877. k, n, p, r = [0, 0, 0, 0],
  11878. v = [0, 0, 0, 0],
  11879. y = [0, 0, 0, 0];
  11880. for (f = 0; 4 > f; f++) {
  11881. for (k = p = 0; 4 > k; k++) if (1 != y[k]) for (n = 0; 4 > n; n++) 0 == y[n] && Math.abs(C.Ia.Uk(c, k, n)) >= p && (p = Math.abs(C.Ia.Uk(c, k, n)), h = k, g = n); ++y[g];
  11882. if (h != g) {
  11883. for (k = 0; 4 > k; k++) C.Ia.cu(c, h, k, g, k);
  11884. for (k = 0; 4 > k; k++) C.Ia.cu(d, h, k, g, k)
  11885. }
  11886. v[f] = h;
  11887. r[f] = g;
  11888. if (0 == C.Ia.Uk(c, g, g)) return C.Wy;
  11889. n = 1 / C.Ia.Uk(c, g, g);
  11890. C.Ia.Ut(c, g, g, 1);
  11891. for (k = 0; 4 > k; k++) C.Ia.Ut(c, g, k, C.Ia.Uk(c, g, k) * n);
  11892. for (k = 0; 4 > k; k++) C.Ia.Ut(d, g, k, C.Ia.Uk(d, g, k) * n);
  11893. for (n = 0; 4 > n; n++) if (n != g) {
  11894. p = C.Ia.Uk(c, n, g);
  11895. C.Ia.Ut(c, n, g, 0);
  11896. for (k = 0; 4 > k; k++) C.Ia.Ut(c, n, k, C.Ia.Uk(c, n, k) - C.Ia.Uk(c, g, k) * p);
  11897. for (k = 0; 4 > k; k++) C.Ia.Ut(d, n, k, C.Ia.Uk(c, n, k) - C.Ia.Uk(d, g, k) * p)
  11898. }
  11899. }
  11900. for (k = 3; 0 <= k; k--) if (v[k] != r[k]) for (n = 0; 4 > n; n++) C.Ia.cu(c, n, v[k], n, r[k]);
  11901. return C.Xy
  11902. };
  11903. C.Ia.YW = new Float32Array([1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]);
  11904. C.SDa = function(c, d) {
  11905. var f = new C.Ia,
  11906. g = new C.Ia;
  11907. C.Pp(f, d);
  11908. C.Ox(g);
  11909. C.Ia.csa(f, g) != C.Wy && C.Pp(c, f)
  11910. };
  11911. C.LZa = function(c) {
  11912. for (var d = 0; 16 > d; d++) if (C.Ia.YW[d] != c.c[d]) return t;
  11913. return q
  11914. };
  11915. C.TZa = function(c, d) {
  11916. var f, g, h = c.c,
  11917. k = d.c;
  11918. for (g = 0; 4 > g; ++g) for (f = 0; 4 > f; ++f) h[4 * g + f] = k[4 * f + g];
  11919. return c
  11920. };
  11921. C.Qp = function(c, d, f) {
  11922. c = c.c;
  11923. var g = d.c[0],
  11924. h = d.c[1],
  11925. k = d.c[2],
  11926. n = d.c[3],
  11927. p = d.c[4],
  11928. r = d.c[5],
  11929. v = d.c[6],
  11930. y = d.c[7],
  11931. z = d.c[8],
  11932. D = d.c[9],
  11933. E = d.c[10],
  11934. F = d.c[11],
  11935. G = d.c[12],
  11936. K = d.c[13],
  11937. O = d.c[14];
  11938. d = d.c[15];
  11939. var U = f.c[0],
  11940. X = f.c[1],
  11941. N = f.c[2],
  11942. Q = f.c[3],
  11943. S = f.c[4],
  11944. M = f.c[5],
  11945. R = f.c[6],
  11946. $ = f.c[7],
  11947. sa = f.c[8],
  11948. aa = f.c[9],
  11949. ta = f.c[10],
  11950. ma = f.c[11],
  11951. ba = f.c[12],
  11952. xa = f.c[13],
  11953. ca = f.c[14];
  11954. f = f.c[15];
  11955. c[0] = U * g + X * p + N * z + Q * G;
  11956. c[1] = U * h + X * r + N * D + Q * K;
  11957. c[2] = U * k + X * v + N * E + Q * O;
  11958. c[3] = U * n + X * y + N * F + Q * d;
  11959. c[4] = S * g + M * p + R * z + $ * G;
  11960. c[5] = S * h + M * r + R * D + $ * K;
  11961. c[6] = S * k + M * v + R * E + $ * O;
  11962. c[7] = S * n + M * y + R * F + $ * d;
  11963. c[8] = sa * g + aa * p + ta * z + ma * G;
  11964. c[9] = sa * h + aa * r + ta * D + ma * K;
  11965. c[10] = sa * k + aa * v + ta * E + ma * O;
  11966. c[11] = sa * n + aa * y + ta * F + ma * d;
  11967. c[12] = ba * g + xa * p + ca * z + f * G;
  11968. c[13] = ba * h + xa * r + ca * D + f * K;
  11969. c[14] = ba * k + xa * v + ca * E + f * O;
  11970. c[15] = ba * n + xa * y + ca * F + f * d
  11971. };
  11972. C.aBa = function() {
  11973. var c = C.Iu.top.c,
  11974. d = C.cs.top.c,
  11975. f = new Float32Array(16);
  11976. f[0] = c[0] * d[0] + c[4] * d[1] + c[8] * d[2] + c[12] * d[3];
  11977. f[1] = c[1] * d[0] + c[5] * d[1] + c[9] * d[2] + c[13] * d[3];
  11978. f[2] = c[2] * d[0] + c[6] * d[1] + c[10] * d[2] + c[14] * d[3];
  11979. f[3] = c[3] * d[0] + c[7] * d[1] + c[11] * d[2] + c[15] * d[3];
  11980. f[4] = c[0] * d[4] + c[4] * d[5] + c[8] * d[6] + c[12] * d[7];
  11981. f[5] = c[1] * d[4] + c[5] * d[5] + c[9] * d[6] + c[13] * d[7];
  11982. f[6] = c[2] * d[4] + c[6] * d[5] + c[10] * d[6] + c[14] * d[7];
  11983. f[7] = c[3] * d[4] + c[7] * d[5] + c[11] * d[6] + c[15] * d[7];
  11984. f[8] = c[0] * d[8] + c[4] * d[9] + c[8] * d[10] + c[12] * d[11];
  11985. f[9] = c[1] * d[8] + c[5] * d[9] + c[9] * d[10] + c[13] * d[11];
  11986. f[10] = c[2] * d[8] + c[6] * d[9] + c[10] * d[10] + c[14] * d[11];
  11987. f[11] = c[3] * d[8] + c[7] * d[9] + c[11] * d[10] + c[15] * d[11];
  11988. f[12] = c[0] * d[12] + c[4] * d[13] + c[8] * d[14] + c[12] * d[15];
  11989. f[13] = c[1] * d[12] + c[5] * d[13] + c[9] * d[14] + c[13] * d[15];
  11990. f[14] = c[2] * d[12] + c[6] * d[13] + c[10] * d[14] + c[14] * d[15];
  11991. f[15] = c[3] * d[12] + c[7] * d[13] + c[11] * d[14] + c[15] * d[15];
  11992. return f
  11993. };
  11994. C.nVa = function(c, d, f) {
  11995. c = c.c;
  11996. d = d.c;
  11997. var g = f.c;
  11998. g[0] = c[0] * d[0] + c[4] * d[1] + c[8] * d[2] + c[12] * d[3];
  11999. g[1] = c[1] * d[0] + c[5] * d[1] + c[9] * d[2] + c[13] * d[3];
  12000. g[2] = c[2] * d[0] + c[6] * d[1] + c[10] * d[2] + c[14] * d[3];
  12001. g[3] = c[3] * d[0] + c[7] * d[1] + c[11] * d[2] + c[15] * d[3];
  12002. g[4] = c[0] * d[4] + c[4] * d[5] + c[8] * d[6] + c[12] * d[7];
  12003. g[5] = c[1] * d[4] + c[5] * d[5] + c[9] * d[6] + c[13] * d[7];
  12004. g[6] = c[2] * d[4] + c[6] * d[5] + c[10] * d[6] + c[14] * d[7];
  12005. g[7] = c[3] * d[4] + c[7] * d[5] + c[11] * d[6] + c[15] * d[7];
  12006. g[8] = c[0] * d[8] + c[4] * d[9] + c[8] * d[10] + c[12] * d[11];
  12007. g[9] = c[1] * d[8] + c[5] * d[9] + c[9] * d[10] + c[13] * d[11];
  12008. g[10] = c[2] * d[8] + c[6] * d[9] + c[10] * d[10] + c[14] * d[11];
  12009. g[11] = c[3] * d[8] + c[7] * d[9] + c[11] * d[10] + c[15] * d[11];
  12010. g[12] = c[0] * d[12] + c[4] * d[13] + c[8] * d[14] + c[12] * d[15];
  12011. g[13] = c[1] * d[12] + c[5] * d[13] + c[9] * d[14] + c[13] * d[15];
  12012. g[14] = c[2] * d[12] + c[6] * d[13] + c[10] * d[14] + c[14] * d[15];
  12013. g[15] = c[3] * d[12] + c[7] * d[13] + c[11] * d[14] + c[15] * d[15];
  12014. return f.c
  12015. };
  12016. C.Pp = function(c, d) {
  12017. if (c == d) C.log("cc.kmMat4Assign(): pOut equals pIn");
  12018. else {
  12019. var f = c.c,
  12020. g = d.c;
  12021. f[0] = g[0];
  12022. f[1] = g[1];
  12023. f[2] = g[2];
  12024. f[3] = g[3];
  12025. f[4] = g[4];
  12026. f[5] = g[5];
  12027. f[6] = g[6];
  12028. f[7] = g[7];
  12029. f[8] = g[8];
  12030. f[9] = g[9];
  12031. f[10] = g[10];
  12032. f[11] = g[11];
  12033. f[12] = g[12];
  12034. f[13] = g[13];
  12035. f[14] = g[14];
  12036. f[15] = g[15]
  12037. }
  12038. };
  12039. C.FZa = function(c, d) {
  12040. if (c == d) return C.log("cc.kmMat4AreEqual(): pMat1 and pMat2 are same object."),
  12041. q;
  12042. for (var f = 0; 16 > f; f++) if (! (c.c[f] + C.xb > d.c[f] && c.c[f] - C.xb < d.c[f])) return t;
  12043. return q
  12044. };
  12045. C.QZa = function(c, d) {
  12046. c.c[0] = 1;
  12047. c.c[1] = 0;
  12048. c.c[2] = 0;
  12049. c.c[3] = 0;
  12050. c.c[4] = 0;
  12051. c.c[5] = Math.cos(d);
  12052. c.c[6] = Math.sin(d);
  12053. c.c[7] = 0;
  12054. c.c[8] = 0;
  12055. c.c[9] = -Math.sin(d);
  12056. c.c[10] = Math.cos(d);
  12057. c.c[11] = 0;
  12058. c.c[12] = 0;
  12059. c.c[13] = 0;
  12060. c.c[14] = 0;
  12061. c.c[15] = 1;
  12062. return c
  12063. };
  12064. C.RZa = function(c, d) {
  12065. c.c[0] = Math.cos(d);
  12066. c.c[1] = 0;
  12067. c.c[2] = -Math.sin(d);
  12068. c.c[3] = 0;
  12069. c.c[4] = 0;
  12070. c.c[5] = 1;
  12071. c.c[6] = 0;
  12072. c.c[7] = 0;
  12073. c.c[8] = Math.sin(d);
  12074. c.c[9] = 0;
  12075. c.c[10] = Math.cos(d);
  12076. c.c[11] = 0;
  12077. c.c[12] = 0;
  12078. c.c[13] = 0;
  12079. c.c[14] = 0;
  12080. c.c[15] = 1;
  12081. return c
  12082. };
  12083. C.SZa = function(c, d) {
  12084. c.c[0] = Math.cos(d);
  12085. c.c[1] = Math.sin(d);
  12086. c.c[2] = 0;
  12087. c.c[3] = 0;
  12088. c.c[4] = -Math.sin(d);
  12089. c.c[5] = Math.cos(d);
  12090. c.c[6] = 0;
  12091. c.c[7] = 0;
  12092. c.c[8] = 0;
  12093. c.c[9] = 0;
  12094. c.c[10] = 1;
  12095. c.c[11] = 0;
  12096. c.c[12] = 0;
  12097. c.c[13] = 0;
  12098. c.c[14] = 0;
  12099. c.c[15] = 1;
  12100. return c
  12101. };
  12102. C.MZa = function(c, d, f, g) {
  12103. var h = Math.cos(d);
  12104. d = Math.sin(d);
  12105. var k = Math.cos(f);
  12106. f = Math.sin(f);
  12107. var n = Math.cos(g);
  12108. g = Math.sin(g);
  12109. var p = d * f,
  12110. r = h * f;
  12111. c.c[0] = k * n;
  12112. c.c[4] = k * g;
  12113. c.c[8] = -f;
  12114. c.c[1] = p * n - h * g;
  12115. c.c[5] = p * g + h * n;
  12116. c.c[9] = d * k;
  12117. c.c[2] = r * n + d * g;
  12118. c.c[6] = r * g - d * n;
  12119. c.c[10] = h * k;
  12120. c.c[3] = c.c[7] = c.c[11] = 0;
  12121. c.c[15] = 1;
  12122. return c
  12123. };
  12124. C.NZa = function(c, d) {
  12125. c.c[0] = 1 - 2 * (d.y * d.y + d.f * d.f);
  12126. c.c[1] = 2 * (d.x * d.y + d.f * d.ba);
  12127. c.c[2] = 2 * (d.x * d.f - d.y * d.ba);
  12128. c.c[3] = 0;
  12129. c.c[4] = 2 * (d.x * d.y - d.f * d.ba);
  12130. c.c[5] = 1 - 2 * (d.x * d.x + d.f * d.f);
  12131. c.c[6] = 2 * (d.f * d.y + d.x * d.ba);
  12132. c.c[7] = 0;
  12133. c.c[8] = 2 * (d.x * d.f + d.y * d.ba);
  12134. c.c[9] = 2 * (d.y * d.f - d.x * d.ba);
  12135. c.c[10] = 1 - 2 * (d.x * d.x + d.y * d.y);
  12136. c.c[11] = 0;
  12137. c.c[12] = 0;
  12138. c.c[13] = 0;
  12139. c.c[14] = 0;
  12140. c.c[15] = 1;
  12141. return c
  12142. };
  12143. C.PZa = function(c, d, f) {
  12144. c.c[0] = d.c[0];
  12145. c.c[1] = d.c[1];
  12146. c.c[2] = d.c[2];
  12147. c.c[3] = 0;
  12148. c.c[4] = d.c[3];
  12149. c.c[5] = d.c[4];
  12150. c.c[6] = d.c[5];
  12151. c.c[7] = 0;
  12152. c.c[8] = d.c[6];
  12153. c.c[9] = d.c[7];
  12154. c.c[10] = d.c[8];
  12155. c.c[11] = 0;
  12156. c.c[12] = f.x;
  12157. c.c[13] = f.y;
  12158. c.c[14] = f.f;
  12159. c.c[15] = 1;
  12160. return c
  12161. };
  12162. C.VDa = function(c, d, f, g) {
  12163. c.c[0] = d;
  12164. c.c[5] = f;
  12165. c.c[10] = g;
  12166. c.c[15] = 1;
  12167. c.c[1] = c.c[2] = c.c[3] = c.c[4] = c.c[6] = c.c[7] = c.c[8] = c.c[9] = c.c[11] = c.c[12] = c.c[13] = c.c[14] = 0
  12168. };
  12169. C.sfa = function(c, d, f, g) {
  12170. c.c[0] = c.c[5] = c.c[10] = c.c[15] = 1;
  12171. c.c[1] = c.c[2] = c.c[3] = c.c[4] = c.c[6] = c.c[7] = c.c[8] = c.c[9] = c.c[11] = 0;
  12172. c.c[12] = d;
  12173. c.c[13] = f;
  12174. c.c[14] = g
  12175. };
  12176. C.KZa = function(c, d) {
  12177. c.x = d.c[4];
  12178. c.y = d.c[5];
  12179. c.f = d.c[6];
  12180. C.jk(c, c);
  12181. return c
  12182. };
  12183. C.JZa = function(c, d) {
  12184. c.x = d.c[0];
  12185. c.y = d.c[1];
  12186. c.f = d.c[2];
  12187. C.jk(c, c);
  12188. return c
  12189. };
  12190. C.IZa = function(c, d) {
  12191. c.x = d.c[8];
  12192. c.y = d.c[9];
  12193. c.f = d.c[10];
  12194. C.jk(c, c);
  12195. return c
  12196. };
  12197. C.TDa = function(c, d, f) {
  12198. var g = C.tI(30),
  12199. h = f - 0.1,
  12200. k = Math.sin(g);
  12201. 0 == h || (0 == k || 0 == d) || (g = Math.cos(g) / k, C.Ox(c), c.c[0] = g / d, c.c[5] = g, c.c[10] = -(f + 0.1) / h, c.c[11] = -1, c.c[14] = -0.2 * f / h, c.c[15] = 0)
  12202. };
  12203. C.q1 = function(c, d, f, g, h, k, n) {
  12204. C.Ox(c);
  12205. c.c[0] = 2 / (f - d);
  12206. c.c[5] = 2 / (h - g);
  12207. c.c[10] = -2 / (n - k);
  12208. c.c[12] = -((f + d) / (f - d));
  12209. c.c[13] = -((h + g) / (h - g));
  12210. c.c[14] = -((n + k) / (n - k))
  12211. };
  12212. C.rfa = function(c, d, f, g) {
  12213. var h = new C.Zc,
  12214. k = new C.Zc,
  12215. n = new C.Zc,
  12216. p = new C.Zc,
  12217. r = new C.Ia;
  12218. C.v1(h, f, d);
  12219. C.jk(h, h);
  12220. C.uI(k, g);
  12221. C.jk(k, k);
  12222. C.Du(n, h, k);
  12223. C.jk(n, n);
  12224. C.Du(p, n, h);
  12225. C.jk(n, n);
  12226. C.Ox(c);
  12227. c.c[0] = n.x;
  12228. c.c[4] = n.y;
  12229. c.c[8] = n.f;
  12230. c.c[1] = p.x;
  12231. c.c[5] = p.y;
  12232. c.c[9] = p.f;
  12233. c.c[2] = -h.x;
  12234. c.c[6] = -h.y;
  12235. c.c[10] = -h.f;
  12236. C.sfa(r, -d.x, -d.y, -d.f);
  12237. C.Qp(c, c, r)
  12238. };
  12239. C.UDa = function(c, d, f) {
  12240. var g = Math.cos(f);
  12241. f = Math.sin(f);
  12242. var h = new C.Zc;
  12243. C.jk(h, d);
  12244. c.c[0] = g + h.x * h.x * (1 - g);
  12245. c.c[1] = h.f * f + h.y * h.x * (1 - g);
  12246. c.c[2] = -h.y * f + h.f * h.x * (1 - g);
  12247. c.c[3] = 0;
  12248. c.c[4] = -h.f * f + h.x * h.y * (1 - g);
  12249. c.c[5] = g + h.y * h.y * (1 - g);
  12250. c.c[6] = h.x * f + h.f * h.y * (1 - g);
  12251. c.c[7] = 0;
  12252. c.c[8] = h.y * f + h.x * h.f * (1 - g);
  12253. c.c[9] = -h.x * f + h.y * h.f * (1 - g);
  12254. c.c[10] = g + h.f * h.f * (1 - g);
  12255. c.c[11] = 0;
  12256. c.c[12] = 0;
  12257. c.c[13] = 0;
  12258. c.c[14] = 0;
  12259. c.c[15] = 1
  12260. };
  12261. C.RDa = function(c, d) {
  12262. c.c[0] = d.c[0];
  12263. c.c[1] = d.c[1];
  12264. c.c[2] = d.c[2];
  12265. c.c[3] = d.c[4];
  12266. c.c[4] = d.c[5];
  12267. c.c[5] = d.c[6];
  12268. c.c[6] = d.c[8];
  12269. c.c[7] = d.c[9];
  12270. c.c[8] = d.c[10]
  12271. };
  12272. C.GZa = function(c, d, f) {
  12273. switch (f) {
  12274. case C.Nma:
  12275. c.a = d.c[3] - d.c[0];
  12276. c.b = d.c[7] - d.c[4];
  12277. c.H = d.c[11] - d.c[8];
  12278. c.P = d.c[15] - d.c[12];
  12279. break;
  12280. case C.Lma:
  12281. c.a = d.c[3] + d.c[0];
  12282. c.b = d.c[7] + d.c[4];
  12283. c.H = d.c[11] + d.c[8];
  12284. c.P = d.c[15] + d.c[12];
  12285. break;
  12286. case C.Jma:
  12287. c.a = d.c[3] + d.c[1];
  12288. c.b = d.c[7] + d.c[5];
  12289. c.H = d.c[11] + d.c[9];
  12290. c.P = d.c[15] + d.c[13];
  12291. break;
  12292. case C.Oma:
  12293. c.a = d.c[3] - d.c[1];
  12294. c.b = d.c[7] - d.c[5];
  12295. c.H = d.c[11] - d.c[9];
  12296. c.P = d.c[15] - d.c[13];
  12297. break;
  12298. case C.Kma:
  12299. c.a = d.c[3] - d.c[2];
  12300. c.b = d.c[7] - d.c[6];
  12301. c.H = d.c[11] - d.c[10];
  12302. c.P = d.c[15] - d.c[14];
  12303. break;
  12304. case C.Mma:
  12305. c.a = d.c[3] + d.c[2];
  12306. c.b = d.c[7] + d.c[6];
  12307. c.H = d.c[11] + d.c[10];
  12308. c.P = d.c[15] + d.c[14];
  12309. break;
  12310. default:
  12311. C.log("cc.kmMat4ExtractPlane(): Invalid plane index")
  12312. }
  12313. d = Math.sqrt(c.a * c.a + c.b * c.b + c.H * c.H);
  12314. c.a /= d;
  12315. c.b /= d;
  12316. c.H /= d;
  12317. c.P /= d;
  12318. return c
  12319. };
  12320. C.OZa = function(c, d, f) {
  12321. d = new la;
  12322. var g = new C.sQ;
  12323. C.RDa(g, f);
  12324. C.wfa(d, g);
  12325. C.xfa(d, c);
  12326. return c
  12327. };
  12328. C.Lma = 0;
  12329. C.Nma = 1;
  12330. C.Jma = 2;
  12331. C.Oma = 3;
  12332. C.Mma = 4;
  12333. C.Kma = 5;
  12334. C.UZa = function(c, d, f, g) {
  12335. this.a = c || 0;
  12336. this.b = d || 0;
  12337. this.H = f || 0;
  12338. this.P = g || 0
  12339. };
  12340. C.Ina = 0;
  12341. C.Hna = 1;
  12342. C.Jna = 2;
  12343. C.WZa = function(c, d) {
  12344. return c.a * d.x + c.b * d.y + c.H * d.f + c.P * d.ba
  12345. };
  12346. C.XZa = function(c, d) {
  12347. return c.a * d.x + c.b * d.y + c.H * d.f + c.P
  12348. };
  12349. C.YZa = function(c, d) {
  12350. return c.a * d.x + c.b * d.y + c.H * d.f
  12351. };
  12352. C.ZZa = function(c, d, f) {
  12353. c.a = f.x;
  12354. c.b = f.y;
  12355. c.H = f.f;
  12356. c.P = -C.t1(f, d);
  12357. return c
  12358. };
  12359. C.$Za = function(c, d, f, g) {
  12360. var h = new C.Zc,
  12361. k = new C.Zc,
  12362. n = new C.Zc;
  12363. C.v1(k, f, d);
  12364. C.v1(n, g, d);
  12365. C.Du(h, k, n);
  12366. C.jk(h, h);
  12367. c.a = h.x;
  12368. c.b = h.y;
  12369. c.H = h.f;
  12370. c.P = C.t1(C.u1(h, h, -1), d);
  12371. return c
  12372. };
  12373. C.a_a = function() {
  12374. e("cc.kmPlaneIntersectLine() hasn't been implemented.")
  12375. };
  12376. C.b_a = function(c, d) {
  12377. var f = new C.Zc;
  12378. f.x = d.a;
  12379. f.y = d.b;
  12380. f.f = d.H;
  12381. var g = 1 / C.zfa(f);
  12382. C.jk(f, f);
  12383. c.a = f.x;
  12384. c.b = f.y;
  12385. c.H = f.f;
  12386. c.P = d.P * g;
  12387. return c
  12388. };
  12389. C.c_a = function() {
  12390. C.log("cc.kmPlaneScale() has not been implemented.")
  12391. };
  12392. C.VZa = function(c, d) {
  12393. var f = c.a * d.x + c.b * d.y + c.H * d.f + c.P;
  12394. return 0.0010 < f ? C.Ina: -0.0010 > f ? C.Hna: C.Jna
  12395. };
  12396. function la() {
  12397. this.ba = this.f = this.y = this.x = 0
  12398. }
  12399. C.ZDa = function(c, d) {
  12400. c.x = -d.x;
  12401. c.y = -d.y;
  12402. c.f = -d.f;
  12403. c.ba = d.ba;
  12404. return c
  12405. };
  12406. C.$Da = function(c, d) {
  12407. return c.ba * d.ba + c.x * d.x + c.y * d.y + c.f * d.f
  12408. };
  12409. C.e_a = da();
  12410. C.aEa = function(c) {
  12411. c.x = 0;
  12412. c.y = 0;
  12413. c.f = 0;
  12414. c.ba = 1
  12415. };
  12416. C.f_a = function(c, d) {
  12417. var f = C.tfa(d),
  12418. g = new la;
  12419. if (Math.abs(f) > C.xb) return c.x = 0,
  12420. c.y = 0,
  12421. c.f = 0,
  12422. c.ba = 0,
  12423. c;
  12424. C.vQ(c, C.ZDa(g, d), 1 / f);
  12425. return c
  12426. };
  12427. C.g_a = function(c) {
  12428. return 0 == c.x && 0 == c.y && 0 == c.f && 1 == c.ba
  12429. };
  12430. C.tfa = function(c) {
  12431. return Math.sqrt(C.bEa(c))
  12432. };
  12433. C.bEa = function(c) {
  12434. return c.x * c.x + c.y * c.y + c.f * c.f + c.ba * c.ba
  12435. };
  12436. C.h_a = da();
  12437. C.i_a = function(c, d, f) {
  12438. c.ba = d.ba * f.ba - d.x * f.x - d.y * f.y - d.f * f.f;
  12439. c.x = d.ba * f.x + d.x * f.ba + d.y * f.f - d.f * f.y;
  12440. c.y = d.ba * f.y + d.y * f.ba + d.f * f.x - d.x * f.f;
  12441. c.f = d.ba * f.f + d.f * f.ba + d.x * f.y - d.y * f.x;
  12442. return c
  12443. };
  12444. C.ufa = function(c, d) {
  12445. var f = C.tfa(d);
  12446. Math.abs(f) <= C.xb && e("cc.kmQuaternionNormalize(): pIn is an invalid value");
  12447. C.vQ(c, d, 1 / f)
  12448. };
  12449. C.vfa = function(c, d) {
  12450. var f = 0.5 * C.r1,
  12451. g = Math.sin(f);
  12452. c.ba = Math.cos(f);
  12453. c.x = d.x * g;
  12454. c.y = d.y * g;
  12455. c.f = d.f * g
  12456. };
  12457. C.wfa = function(c, d) {
  12458. var f, g, h, k;
  12459. f = [];
  12460. g = k = 0;
  12461. if (d) {
  12462. f[0] = d.c[0];
  12463. f[1] = d.c[3];
  12464. f[2] = d.c[6];
  12465. f[4] = d.c[1];
  12466. f[5] = d.c[4];
  12467. f[6] = d.c[7];
  12468. f[8] = d.c[2];
  12469. f[9] = d.c[5];
  12470. f[10] = d.c[8];
  12471. f[15] = 1;
  12472. var n = f[0];
  12473. g = n[0] + n[5] + n[10] + 1;
  12474. g > C.xb ? (k = 2 * Math.sqrt(g), f = (n[9] - n[6]) / k, g = (n[2] - n[8]) / k, h = (n[4] - n[1]) / k, k *= 0.25) : n[0] > n[5] && n[0] > n[10] ? (k = 2 * Math.sqrt(1 + n[0] - n[5] - n[10]), f = 0.25 * k, g = (n[4] + n[1]) / k, h = (n[2] + n[8]) / k, k = (n[9] - n[6]) / k) : n[5] > n[10] ? (k = 2 * Math.sqrt(1 + n[5] - n[0] - n[10]), f = (n[4] + n[1]) / k, g = 0.25 * k, h = (n[9] + n[6]) / k, k = (n[2] - n[8]) / k) : (k = 2 * Math.sqrt(1 + n[10] - n[0] - n[5]), f = (n[2] + n[8]) / k, g = (n[9] + n[6]) / k, h = 0.25 * k, k = (n[4] - n[1]) / k);
  12475. c.x = f;
  12476. c.y = g;
  12477. c.f = h;
  12478. c.ba = k
  12479. }
  12480. };
  12481. C.l_a = function(c, d, f, g) {
  12482. var h, k, n, p, r;
  12483. h = C.tI(f) / 2;
  12484. k = C.tI(d) / 2;
  12485. n = C.tI(g) / 2;
  12486. g = Math.cos(h);
  12487. d = Math.cos(k);
  12488. f = Math.cos(n);
  12489. h = Math.sin(h);
  12490. k = Math.sin(k);
  12491. n = Math.sin(n);
  12492. p = d * f;
  12493. r = k * n;
  12494. c.ba = g * p + h * r;
  12495. c.x = h * p - g * r;
  12496. c.y = g * k * f + h * d * n;
  12497. c.f = g * d * n - h * k * f;
  12498. C.ufa(c, c);
  12499. return c
  12500. };
  12501. C.m_a = function(c, d, f, g) {
  12502. if (d.x == f.x && d.y == f.y && d.f == f.f && d.ba == f.ba) return c.x = d.x,
  12503. c.y = d.y,
  12504. c.f = d.f,
  12505. c.ba = d.ba,
  12506. c;
  12507. var h = C.$Da(d, f),
  12508. k = Math.acos(h),
  12509. h = Math.sqrt(1 - C.tf(h)),
  12510. n = Math.sin(g * k) / h,
  12511. p = new la,
  12512. r = new la;
  12513. C.vQ(p, d, Math.sin((1 - g) * k) / h);
  12514. C.vQ(r, f, n);
  12515. C.YDa(c, p, r);
  12516. return c
  12517. };
  12518. C.xfa = function(c, d) {
  12519. var f;
  12520. f = Math.sqrt(C.tf(c.x) + C.tf(c.y) + C.tf(c.f));
  12521. f > -C.xb && f < C.xb || f < 2 * C.r1 + C.xb && f > 2 * C.r1 - C.xb ? (d.x = 0, d.y = 0, d.f = 1) : (d.x = c.x / f, d.y = c.y / f, d.f = c.f / f, C.jk(d, d))
  12522. };
  12523. C.vQ = function(c, d, f) {
  12524. c.x = d.x * f;
  12525. c.y = d.y * f;
  12526. c.f = d.f * f;
  12527. c.ba = d.ba * f
  12528. };
  12529. C.d_a = function(c, d) {
  12530. c.x = d.x;
  12531. c.y = d.y;
  12532. c.f = d.f;
  12533. c.ba = d.ba;
  12534. return c
  12535. };
  12536. C.YDa = function(c, d, f) {
  12537. c.x = d.x + f.x;
  12538. c.y = d.y + f.y;
  12539. c.f = d.f + f.f;
  12540. c.ba = d.ba + f.ba
  12541. };
  12542. C.k_a = function(c, d, f, g) {
  12543. var h = new C.Zc,
  12544. k = new C.Zc;
  12545. C.uI(h, d);
  12546. C.uI(k, f);
  12547. C.jk(h, h);
  12548. C.jk(k, k);
  12549. f = C.t1(h, k);
  12550. if (1 <= f) return C.aEa(c),
  12551. c; - 0.999999 > f ? Math.abs(C.Afa(g)) < C.xb ? C.vfa(c, g) : (h = new C.Zc, k = new C.Zc, k.x = 1, k.y = 0, k.f = 0, C.Du(h, k, d), Math.abs(C.Afa(h)) < C.xb && (k = new C.Zc, k.x = 0, k.y = 1, k.f = 0, C.Du(h, k, d)), C.jk(h, h), C.vfa(c, h)) : (d = Math.sqrt(2 * (1 + f)), g = 1 / d, f = new C.Zc, C.Du(f, h, k), c.x = f.x * g, c.y = f.y * g, c.f = f.f * g, c.ba = 0.5 * d, C.ufa(c, c));
  12552. return c
  12553. };
  12554. C.j_a = function(c, d, f) {
  12555. var g = new C.Zc,
  12556. h = new C.Zc,
  12557. k = new C.Zc;
  12558. k.x = d.x;
  12559. k.y = d.y;
  12560. k.f = d.f;
  12561. C.Du(g, k, f);
  12562. C.Du(h, k, g);
  12563. C.u1(g, g, 2 * d.ba);
  12564. C.u1(h, h, 2);
  12565. C.yfa(c, f, g);
  12566. C.yfa(c, c, h);
  12567. return c
  12568. };
  12569. C.dZa = function(c, d) {
  12570. this.min = c || new C.Zc;
  12571. this.max = d || new C.Zc
  12572. };
  12573. C.fZa = function(c, d) {
  12574. return c.x >= d.min.x && c.x <= d.max.x && c.y >= d.min.y && c.y <= d.max.y && c.f >= d.min.f && c.f <= d.max.f ? C.Xy: C.Wy
  12575. };
  12576. C.eZa = function(c, d) {
  12577. C.uI(c.min, d.min);
  12578. C.uI(c.max, d.max);
  12579. return c
  12580. };
  12581. C.gZa = function() {
  12582. C.log("cc.kmAABBScale hasn't been supported.")
  12583. };
  12584. C.yQ = function(c, d, f, g) {
  12585. this.top = f;
  12586. this.stack = g
  12587. };
  12588. C.yQ.YLa = 30;
  12589. C.w1 = function(c) {
  12590. c.stack = [];
  12591. c.top = s
  12592. };
  12593. C.zQ = function(c, d) {
  12594. c.stack.push(c.top);
  12595. c.top = new C.Ia;
  12596. C.Pp(c.top, d)
  12597. };
  12598. C.S_a = function(c) {
  12599. c.top = c.stack.pop()
  12600. };
  12601. C.x1 = function(c) {
  12602. c.stack = s;
  12603. c.top = s
  12604. };
  12605. C.lq = 5888;
  12606. C.mq = 5889;
  12607. C.g6 = 5890;
  12608. C.cs = new C.yQ;
  12609. C.Iu = new C.yQ;
  12610. C.zJ = new C.yQ;
  12611. C.Jd = s;
  12612. C.c1 = t;
  12613. C.iEa = function() {
  12614. if (!C.c1) {
  12615. var c = new C.Ia;
  12616. C.w1(C.cs);
  12617. C.w1(C.Iu);
  12618. C.w1(C.zJ);
  12619. C.Jd = C.cs;
  12620. C.c1 = q;
  12621. C.Ox(c);
  12622. C.zQ(C.cs, c);
  12623. C.zQ(C.Iu, c);
  12624. C.zQ(C.zJ, c)
  12625. }
  12626. };
  12627. C.iEa();
  12628. C.ODa = function() {
  12629. C.x1(C.cs);
  12630. C.x1(C.Iu);
  12631. C.x1(C.zJ);
  12632. C.c1 = t;
  12633. C.Jd = s
  12634. };
  12635. C.Zr = function() {
  12636. C.zQ(C.Jd, C.Jd.top)
  12637. };
  12638. C.lZa = function(c) {
  12639. C.Jd.stack.push(C.Jd.top);
  12640. C.Pp(c, C.Jd.top);
  12641. C.Jd.top = c
  12642. };
  12643. C.Yr = function() {
  12644. C.Jd.top = C.Jd.stack.pop()
  12645. };
  12646. C.Op = function(c) {
  12647. switch (c) {
  12648. case C.lq:
  12649. C.Jd = C.cs;
  12650. break;
  12651. case C.mq:
  12652. C.Jd = C.Iu;
  12653. break;
  12654. case C.g6:
  12655. C.Jd = C.zJ;
  12656. break;
  12657. default:
  12658. e("Invalid matrix mode specified")
  12659. }
  12660. };
  12661. C.kC = function() {
  12662. C.Ox(C.Jd.top)
  12663. };
  12664. C.kZa = function(c) {
  12665. C.Pp(C.Jd.top, c)
  12666. };
  12667. C.lC = function(c) {
  12668. C.Qp(C.Jd.top, C.Jd.top, c)
  12669. };
  12670. C.mC = function(c, d) {
  12671. var f = new C.Ia;
  12672. C.sfa(f, c, d, 0);
  12673. C.Qp(C.Jd.top, C.Jd.top, f)
  12674. };
  12675. C.mZa = function(c, d, f, g) {
  12676. d = new C.Zc(d, f, g);
  12677. f = new C.Ia;
  12678. C.UDa(f, d, C.tI(c));
  12679. C.Qp(C.Jd.top, C.Jd.top, f)
  12680. };
  12681. C.nZa = function(c, d, f) {
  12682. var g = new C.Ia;
  12683. C.VDa(g, c, d, f);
  12684. C.Qp(C.Jd.top, C.Jd.top, g)
  12685. };
  12686. C.rQ = function(c, d) {
  12687. switch (c) {
  12688. case C.lq:
  12689. C.Pp(d, C.cs.top);
  12690. break;
  12691. case C.mq:
  12692. C.Pp(d, C.Iu.top);
  12693. break;
  12694. case C.g6:
  12695. C.Pp(d, C.zJ.top);
  12696. break;
  12697. default:
  12698. e("Invalid matrix mode specified")
  12699. }
  12700. };
  12701. C.soa = "precision lowp float;\nvarying vec4 v_fragmentColor;\nvoid main() \n{ \n gl_FragColor \x3d v_fragmentColor; \n}\n";
  12702. C.toa = "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}";
  12703. C.goa = "precision lowp float; \nvarying vec4 v_fragmentColor; \nvoid main() \n{ \n gl_FragColor \x3d v_fragmentColor; \n} ";
  12704. C.joa = "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}";
  12705. C.hoa = "// #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}";
  12706. C.ioa = "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}";
  12707. C.ooa = "precision lowp float; \nvarying vec2 v_texCoord; \nuniform sampler2D CC_Texture0; \nvoid main() \n{ \n gl_FragColor \x3d texture2D(CC_Texture0, v_texCoord); \n}";
  12708. C.roa = "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}";
  12709. C.poa = "precision lowp float; \nuniform vec4 u_color; \nvarying vec2 v_texCoord; \nuniform sampler2D CC_Texture0; \nvoid main() \n{ \n gl_FragColor \x3d texture2D(CC_Texture0, v_texCoord) * u_color; \n}";
  12710. C.qoa = "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}";
  12711. C.koa = "precision lowp float; \nvarying vec4 v_fragmentColor; \nvarying vec2 v_texCoord; \nuniform sampler2D CC_Texture0; \nvoid main() \n{ \n gl_FragColor \x3d vec4( v_fragmentColor.rgb, \n v_fragmentColor.a * texture2D(CC_Texture0, v_texCoord).a \n ); \n}";
  12712. C.loa = "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}";
  12713. C.noa = "precision lowp float;\nvarying vec4 v_fragmentColor; \nvarying vec2 v_texCoord; \nuniform sampler2D CC_Texture0; \nvoid main() \n{ \n gl_FragColor \x3d v_fragmentColor * texture2D(CC_Texture0, v_texCoord); \n}";
  12714. C.D7 = "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}";
  12715. C.moa = "precision lowp float; \nvarying vec4 v_fragmentColor; \nvarying vec2 v_texCoord; \nuniform sampler2D CC_Texture0; \nuniform float CC_alpha_value; \nvoid main() \n{ \n vec4 texColor \x3d texture2D(CC_Texture0, v_texCoord); \n // mimic: glAlphaFunc(GL_GREATER) \n //pass if ( incoming_pixel \x3e\x3d CC_alpha_value ) \x3d\x3e fail if incoming_pixel \x3c CC_alpha_value \n if ( texColor.a \x3c\x3d CC_alpha_value ) \n discard; \n gl_FragColor \x3d texColor * v_fragmentColor; \n}";
  12716. C.$Ma = "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}";
  12717. C.ug = {
  12718. qU: 0,
  12719. rU: 1,
  12720. oU: 2,
  12721. pU: 3,
  12722. tU: 4,
  12723. sU: 5,
  12724. uU: 6,
  12725. X7: 7,
  12726. yNa: 8,
  12727. Hg: {},
  12728. UF: function() {
  12729. this.mEa();
  12730. return q
  12731. },
  12732. Qi: function(c, d) {
  12733. switch (d) {
  12734. case this.qU:
  12735. c.Np(C.D7, C.noa);
  12736. c.Mg(C.ev, C.Lc);
  12737. c.Mg(C.tD, C.Hi);
  12738. c.Mg(C.Hy, C.Vg);
  12739. break;
  12740. case this.rU:
  12741. c.Np(C.D7, C.moa);
  12742. c.Mg(C.ev, C.Lc);
  12743. c.Mg(C.tD, C.Hi);
  12744. c.Mg(C.Hy, C.Vg);
  12745. break;
  12746. case this.oU:
  12747. c.Np(C.joa, C.goa);
  12748. c.Mg(C.ev, C.Lc);
  12749. c.Mg(C.tD, C.Hi);
  12750. break;
  12751. case this.pU:
  12752. c.Np(C.roa, C.ooa);
  12753. c.Mg(C.ev, C.Lc);
  12754. c.Mg(C.Hy, C.Vg);
  12755. break;
  12756. case this.tU:
  12757. c.Np(C.qoa, C.poa);
  12758. c.Mg(C.ev, C.Lc);
  12759. c.Mg(C.Hy, C.Vg);
  12760. break;
  12761. case this.sU:
  12762. c.Np(C.loa, C.koa);
  12763. c.Mg(C.ev, C.Lc);
  12764. c.Mg(C.tD, C.Hi);
  12765. c.Mg(C.Hy, C.Vg);
  12766. break;
  12767. case this.uU:
  12768. c.Np(C.toa, C.soa);
  12769. c.Mg("aVertex", C.Lc);
  12770. break;
  12771. case this.X7:
  12772. c.Np(C.ioa, C.hoa);
  12773. c.Mg(C.ev, C.Lc);
  12774. c.Mg(C.Hy, C.Vg);
  12775. c.Mg(C.tD, C.Hi);
  12776. break;
  12777. default:
  12778. C.log("cocos2d: cc.shaderCache._loadDefaultShader, error shader type");
  12779. return
  12780. }
  12781. c.link();
  12782. c.MJa()
  12783. },
  12784. mEa: function() {
  12785. var c = new C.yo;
  12786. this.Qi(c, this.qU);
  12787. this.Hg[C.Co] = c;
  12788. this.Hg.ShaderPositionTextureColor = c;
  12789. c = new C.yo;
  12790. this.Qi(c, this.rU);
  12791. this.Hg[C.KK] = c;
  12792. this.Hg.ShaderPositionTextureColorAlphaTest = c;
  12793. c = new C.yo;
  12794. this.Qi(c, this.oU);
  12795. this.Hg[C.JK] = c;
  12796. this.Hg.ShaderPositionColor = c;
  12797. c = new C.yo;
  12798. this.Qi(c, this.pU);
  12799. this.Hg[C.yE] = c;
  12800. this.Hg.ShaderPositionTexture = c;
  12801. c = new C.yo;
  12802. this.Qi(c, this.tU);
  12803. this.Hg[C.LK] = c;
  12804. this.Hg.ShaderPositionTextureUColor = c;
  12805. c = new C.yo;
  12806. this.Qi(c, this.sU);
  12807. this.Hg[C.$T] = c;
  12808. this.Hg.ShaderPositionTextureA8Color = c;
  12809. c = new C.yo;
  12810. this.Qi(c, this.uU);
  12811. this.Hg[C.aU] = c;
  12812. this.Hg.ShaderPositionUColor = c;
  12813. c = new C.yo;
  12814. this.Qi(c, this.X7);
  12815. this.Hg[C.C7] = c;
  12816. this.Hg.ShaderPositionLengthTextureColor = c
  12817. },
  12818. N1a: function() {
  12819. var c = this.Xd(C.Co);
  12820. c.reset();
  12821. this.Qi(c, this.qU);
  12822. c = this.Xd(C.KK);
  12823. c.reset();
  12824. this.Qi(c, this.rU);
  12825. c = this.Xd(C.JK);
  12826. c.reset();
  12827. this.Qi(c, this.oU);
  12828. c = this.Xd(C.yE);
  12829. c.reset();
  12830. this.Qi(c, this.pU);
  12831. c = this.Xd(C.LK);
  12832. c.reset();
  12833. this.Qi(c, this.tU);
  12834. c = this.Xd(C.$T);
  12835. c.reset();
  12836. this.Qi(c, this.sU);
  12837. c = this.Xd(C.aU);
  12838. c.reset();
  12839. this.Qi(c, this.uU)
  12840. },
  12841. Xd: function(c) {
  12842. return this.Hg[c]
  12843. },
  12844. Lx: function(c) {
  12845. return this.Hg[c]
  12846. },
  12847. fQa: function(c, d) {
  12848. this.Hg[d] = c
  12849. }
  12850. };
  12851. C.xma = function() {
  12852. this.location = this.value = m;
  12853. this.WP = {}
  12854. };
  12855. C.yo = C.O.extend({
  12856. Qa: s,
  12857. nd: s,
  12858. Zj: s,
  12859. Xl: s,
  12860. ad: s,
  12861. ln: s,
  12862. hca: t,
  12863. bj: function(c, d) {
  12864. if (c == s) return t;
  12865. for (var f = q,
  12866. g = s,
  12867. h = 0; h < this.ln.length; h++) this.ln[h].location == c && (g = this.ln[h]);
  12868. g ? g.value == d ? f = t: g.value = d: (g = new C.xma, g.location = c, g.value = d, this.ln.push(g));
  12869. return f
  12870. },
  12871. wOa: function() {
  12872. return "\x3cCCGLProgram \x3d " + this.toString() + " | Program \x3d " + this.nd.toString() + ", VertexShader \x3d " + this.Zj.toString() + ", FragmentShader \x3d " + this.Xl.toString() + "\x3e"
  12873. },
  12874. x9: function(c, d, f) {
  12875. if (!f || !c) return t;
  12876. this.Qa.shaderSource(c, "precision highp float; \nuniform mat4 CC_PMatrix; \nuniform mat4 CC_MVMatrix; \nuniform mat4 CC_MVPMatrix; \nuniform vec4 CC_Time; \nuniform vec4 CC_SinTime; \nuniform vec4 CC_CosTime; \nuniform vec4 CC_Random01; \n//CC INCLUDES END \n" + f);
  12877. this.Qa.compileShader(c);
  12878. f = this.Qa.getShaderParameter(c, this.Qa.COMPILE_STATUS);
  12879. f || (C.log("cocos2d: ERROR: Failed to compile shader:\n" + this.Qa.getShaderSource(c)), d == this.Qa.VERTEX_SHADER ? C.log("cocos2d: \n" + this.RJa()) : C.log("cocos2d: \n" + this.Qza()));
  12880. return 1 == f
  12881. },
  12882. ctor: function(c, d, f) {
  12883. this.ad = [];
  12884. this.ln = [];
  12885. this.Qa = f || C.t;
  12886. c && d && this.j(c, d)
  12887. },
  12888. xRa: function() {
  12889. this.ln = this.ad = this.Xl = this.Zj = s;
  12890. this.Qa.deleteProgram(this.nd)
  12891. },
  12892. Np: function(c, d) {
  12893. var f = this.Qa;
  12894. this.nd = f.createProgram();
  12895. this.Xl = this.Zj = s;
  12896. c && (this.Zj = f.createShader(f.VERTEX_SHADER), this.x9(this.Zj, f.VERTEX_SHADER, c) || C.log("cocos2d: ERROR: Failed to compile vertex shader"));
  12897. d && (this.Xl = f.createShader(f.FRAGMENT_SHADER), this.x9(this.Xl, f.FRAGMENT_SHADER, d) || C.log("cocos2d: ERROR: Failed to compile fragment shader"));
  12898. this.Zj && f.attachShader(this.nd, this.Zj);
  12899. C.DB();
  12900. this.Xl && f.attachShader(this.nd, this.Xl);
  12901. this.ln.length = 0;
  12902. C.DB();
  12903. return q
  12904. },
  12905. sf: function(c, d) {
  12906. return this.Np(c, d)
  12907. },
  12908. dDa: function(c, d) {
  12909. var f = C.M.xd(c);
  12910. f || e("Please load the resource firset : " + c);
  12911. var g = C.M.xd(d);
  12912. g || e("Please load the resource firset : " + d);
  12913. return this.Np(f, g)
  12914. },
  12915. j: function(c, d) {
  12916. return this.dDa(c, d)
  12917. },
  12918. Mg: function(c, d) {
  12919. this.Qa.bindAttribLocation(this.nd, d, c)
  12920. },
  12921. link: function() {
  12922. if (!this.nd) return C.log("cc.GLProgram.link(): Cannot link invalid program"),
  12923. t;
  12924. this.Qa.linkProgram(this.nd);
  12925. this.Zj && this.Qa.deleteShader(this.Zj);
  12926. this.Xl && this.Qa.deleteShader(this.Xl);
  12927. this.Xl = this.Zj = s;
  12928. return C.qf.gj[C.qf.Wm.CH] && !this.Qa.getProgramParameter(this.nd, this.Qa.LINK_STATUS) ? (C.log("cocos2d: ERROR: Failed to link program: " + this.Qa.getProgramInfoLog(this.nd)), C.vCa(this.nd), this.nd = s, t) : q
  12929. },
  12930. Af: function() {
  12931. C.N0(this.nd)
  12932. },
  12933. MJa: function() {
  12934. this.ad[C.HU] = this.Qa.getUniformLocation(this.nd, C.hqa);
  12935. this.ad[C.GU] = this.Qa.getUniformLocation(this.nd, C.fqa);
  12936. this.ad[C.NE] = this.Qa.getUniformLocation(this.nd, C.gqa);
  12937. this.ad[C.LU] = this.Qa.getUniformLocation(this.nd, C.lqa);
  12938. this.ad[C.KU] = this.Qa.getUniformLocation(this.nd, C.kqa);
  12939. this.ad[C.FU] = this.Qa.getUniformLocation(this.nd, C.eqa);
  12940. this.hca = this.ad[C.LU] != s || this.ad[C.KU] != s || this.ad[C.FU] != s;
  12941. this.ad[C.IU] = this.Qa.getUniformLocation(this.nd, C.iqa);
  12942. this.ad[C.JU] = this.Qa.getUniformLocation(this.nd, C.jqa);
  12943. this.Af();
  12944. this.zia(this.ad[C.JU], 0)
  12945. },
  12946. mXa: function(c) {
  12947. c || e("cc.GLProgram.getUniformLocationForName(): uniform name should be non-null");
  12948. this.nd || e("cc.GLProgram.getUniformLocationForName(): Invalid operation. Cannot get uniform location when program is not initialized");
  12949. return this.Qa.getUniformLocation(this.nd, c)
  12950. },
  12951. nXa: function() {
  12952. return this.ad[C.NE]
  12953. },
  12954. oXa: function() {
  12955. return this.ad[C.JU]
  12956. },
  12957. zia: function(c, d) {
  12958. this.bj(c, d) && this.Qa.uniform1i(c, d)
  12959. },
  12960. B5a: function(c, d, f) {
  12961. this.bj(c, [d, f]) && this.Qa.uniform2i(c, d, f)
  12962. },
  12963. E5a: function(c, d, f, g) {
  12964. this.bj(c, [d, f, g]) && this.Qa.uniform3i(c, d, f, g)
  12965. },
  12966. H5a: function(c, d, f, g, h) {
  12967. this.bj(c, [d, f, g, h]) && this.Qa.uniform4i(c, d, f, g, h)
  12968. },
  12969. C5a: function(c, d) {
  12970. this.bj(c, d) && this.Qa.uniform2iv(c, d)
  12971. },
  12972. F5a: function(c, d) {
  12973. this.bj(c, d) && this.Qa.uniform3iv(c, d)
  12974. },
  12975. I5a: function(c, d) {
  12976. this.bj(c, d) && this.Qa.uniform4iv(c, d)
  12977. },
  12978. z5a: function(c, d) {
  12979. this.zia(c, d)
  12980. },
  12981. sJ: function(c, d) {
  12982. this.bj(c, d) && this.Qa.uniform1f(c, d)
  12983. },
  12984. uIa: function(c, d, f) {
  12985. this.bj(c, [d, f]) && this.Qa.uniform2f(c, d, f)
  12986. },
  12987. vIa: function(c, d, f, g) {
  12988. this.bj(c, [d, f, g]) && this.Qa.uniform3f(c, d, f, g)
  12989. },
  12990. tJ: function(c, d, f, g, h) {
  12991. this.bj(c, [d, f, g, h]) && this.Qa.uniform4f(c, d, f, g, h)
  12992. },
  12993. A5a: function(c, d) {
  12994. this.bj(c, d) && this.Qa.uniform2fv(c, d)
  12995. },
  12996. D5a: function(c, d) {
  12997. this.bj(c, d) && this.Qa.uniform3fv(c, d)
  12998. },
  12999. G5a: function(c, d) {
  13000. this.bj(c, d) && this.Qa.uniform4fv(c, d)
  13001. },
  13002. v3: function(c, d) {
  13003. this.bj(c, d) && this.Qa.uniformMatrix4fv(c, t, d)
  13004. },
  13005. y5a: function() {
  13006. if (! (2 > arguments.length)) switch (arguments.length) {
  13007. case 2:
  13008. this.sJ(arguments[0], arguments[1]);
  13009. break;
  13010. case 3:
  13011. this.uIa(arguments[0], arguments[1], arguments[2]);
  13012. break;
  13013. case 4:
  13014. this.vIa(arguments[0], arguments[1], arguments[2], arguments[3]);
  13015. break;
  13016. case 5:
  13017. this.tJ(arguments[0], arguments[1], arguments[2], arguments[3], arguments[4])
  13018. }
  13019. },
  13020. uJ: function() {
  13021. var c = new C.Ia,
  13022. d = new C.Ia,
  13023. f = new C.Ia;
  13024. C.rQ(C.mq, c);
  13025. C.rQ(C.lq, d);
  13026. C.Qp(f, c, d);
  13027. this.v3(this.ad[C.HU], c.c, 1);
  13028. this.v3(this.ad[C.GU], d.c, 1);
  13029. this.v3(this.ad[C.NE], f.c, 1);
  13030. this.hca && (c = C.Q, c = c.tO * c.TE, this.tJ(this.ad[C.LU], c / 10, c, 2 * c, 4 * c), this.tJ(this.ad[C.KU], c / 8, c / 4, c / 2, Math.sin(c)), this.tJ(this.ad[C.FU], c / 8, c / 4, c / 2, Math.cos(c))); - 1 != this.ad[C.IU] && this.tJ(this.ad[C.IU], Math.random(), Math.random(), Math.random(), Math.random())
  13031. },
  13032. w5a: function() {
  13033. this.Qa.uniformMatrix4fv(this.ad[C.NE], t, C.aBa())
  13034. },
  13035. x5a: function(c) {
  13036. C.Qp(c, C.Iu.top, C.cs.top);
  13037. this.Qa.uniformMatrix4fv(this.ad[C.NE], t, c.c)
  13038. },
  13039. Bj: function() {
  13040. this.Qa.uniformMatrix4fv(this.ad[C.GU], t, C.cs.top.c);
  13041. this.Qa.uniformMatrix4fv(this.ad[C.HU], t, C.Iu.top.c)
  13042. },
  13043. RJa: function() {
  13044. return this.Qa.getShaderInfoLog(this.Zj)
  13045. },
  13046. sXa: function() {
  13047. return this.Qa.getShaderInfoLog(this.Zj)
  13048. },
  13049. JUa: function() {
  13050. return this.Qa.getShaderInfoLog(this.Zj)
  13051. },
  13052. Qza: function() {
  13053. return this.Qa.getShaderInfoLog(this.Xl)
  13054. },
  13055. o1a: function() {
  13056. return this.Qa.getProgramInfoLog(this.nd)
  13057. },
  13058. fWa: function() {
  13059. return this.Qa.getProgramInfoLog(this.nd)
  13060. },
  13061. reset: function() {
  13062. this.Xl = this.Zj = s;
  13063. this.ad.length = 0;
  13064. this.Qa.deleteProgram(this.nd);
  13065. this.nd = s;
  13066. for (var c = 0; c < this.ln.length; c++) this.ln[c].value = s,
  13067. this.ln[c] = s;
  13068. this.ln.length = 0
  13069. },
  13070. Lx: A("nd"),
  13071. fR: u(),
  13072. rh: u()
  13073. });
  13074. C.yo.create = function(c, d) {
  13075. return new C.yo(c, d)
  13076. };
  13077. C.E9 = -1;
  13078. C.yZ = t;
  13079. C.xZ = t;
  13080. C.zZ = t;
  13081. C.an && (C.Zma = 16, C.sF = -1, C.rF = [ - 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], C.uz = -1, C.tz = -1, C.yqa = 0, C.jU && (C.Yba = 0));
  13082. C.DXa = function() {
  13083. C.ODa();
  13084. C.E9 = -1;
  13085. C.yZ = t;
  13086. C.xZ = t;
  13087. C.zZ = t;
  13088. if (C.an) {
  13089. C.sF = -1;
  13090. for (var c = 0; c < C.Zma; c++) C.rF[c] = -1;
  13091. C.uz = -1;
  13092. C.tz = -1;
  13093. C.yqa = 0
  13094. }
  13095. };
  13096. C.N0 = function(c) {
  13097. c !== C.sF && (C.sF = c, C.t.useProgram(c))
  13098. };
  13099. C.an || (C.N0 = function(c) {
  13100. C.t.useProgram(c)
  13101. });
  13102. C.vCa = function(c) {
  13103. C.an && c === C.sF && (C.sF = -1);
  13104. gl.deleteProgram(c)
  13105. };
  13106. C.Gm = function(c, d) {
  13107. if (c !== C.uz || d !== C.tz) C.uz = c,
  13108. C.tz = d,
  13109. C.tR(c, d)
  13110. };
  13111. C.tR = function(c, d) {
  13112. var f = C.t;
  13113. c === f.ONE && d === f.ZERO ? f.disable(f.BLEND) : (f.enable(f.BLEND), C.t.blendFunc(c, d))
  13114. };
  13115. C.Gea = function(c, d) {
  13116. if (c !== C.uz || d !== C.tz) {
  13117. C.uz = c;
  13118. C.tz = d;
  13119. var f = C.t;
  13120. c === f.ONE && d === f.ZERO ? f.disable(f.BLEND) : (f.enable(f.BLEND), f.blendFuncSeparate(f.SRC_ALPHA, d, c, d))
  13121. }
  13122. };
  13123. C.an || (C.Gm = C.tR);
  13124. C.AXa = function() {
  13125. var c = C.t;
  13126. c.blendEquation(c.FUNC_ADD);
  13127. C.an ? C.tR(C.uz, C.tz) : C.tR(c.Ic, c.Hc)
  13128. };
  13129. C.$ha = function() {
  13130. C.E9 = -1
  13131. };
  13132. C.rf = function(c) {
  13133. var d = C.t,
  13134. f = c & C.Ch;
  13135. f !== C.yZ && (f ? d.enableVertexAttribArray(C.Lc) : d.disableVertexAttribArray(C.Lc), C.yZ = f);
  13136. f = c & C.ZK;
  13137. f !== C.xZ && (f ? d.enableVertexAttribArray(C.Hi) : d.disableVertexAttribArray(C.Hi), C.xZ = f);
  13138. c &= C.fz;
  13139. c !== C.zZ && (c ? d.enableVertexAttribArray(C.Vg) : d.disableVertexAttribArray(C.Vg), C.zZ = c)
  13140. };
  13141. C.yi = function(c) {
  13142. C.M0(0, c)
  13143. };
  13144. C.M0 = function(c, d) {
  13145. if (C.rF[c] != d) {
  13146. C.rF[c] = d;
  13147. var f = C.t;
  13148. f.activeTexture(f.TEXTURE0 + c);
  13149. d ? f.bindTexture(f.TEXTURE_2D, d.Sh) : f.bindTexture(f.TEXTURE_2D, s)
  13150. }
  13151. };
  13152. C.an || (C.M0 = function(c, d) {
  13153. var f = C.t;
  13154. f.activeTexture(f.TEXTURE0 + c);
  13155. d ? f.bindTexture(f.TEXTURE_2D, d.Sh) : f.bindTexture(f.TEXTURE_2D, s)
  13156. });
  13157. C.BXa = function(c) {
  13158. C.wCa(c)
  13159. };
  13160. C.wCa = function(c) {
  13161. C.an && c == C.rF[0] && (C.rF[0] = -1);
  13162. C.t.deleteTexture(c)
  13163. };
  13164. C.zXa = function(c) {
  13165. C.jU && (C.an && C.Yba != c) && (C.Yba = c)
  13166. };
  13167. C.CXa = u();
  13168. C.TLa = 0;
  13169. C.ULa = 1;
  13170. C.VLa = 2;
  13171. C.Cs = function(c) {
  13172. c -= 1;
  13173. c |= c >> 1;
  13174. c |= c >> 2;
  13175. c |= c >> 4;
  13176. c |= c >> 8;
  13177. return (c | c >> 16) + 1
  13178. };
  13179. C.yv = C.A.extend({
  13180. sprite: s,
  13181. eP: 0,
  13182. w_: 0,
  13183. qH: t,
  13184. gi: s,
  13185. Ki: s,
  13186. sM: 0,
  13187. uF: 0,
  13188. hp: 0,
  13189. da: s,
  13190. VG: s,
  13191. Xva: s,
  13192. ip: C.Ma.qq,
  13193. Jq: s,
  13194. x_: 0,
  13195. MV: s,
  13196. qa: "RenderTexture",
  13197. ctor: s,
  13198. pF: function(c, d, f, g) {
  13199. C.A.prototype.ctor.call(this);
  13200. this.Jq = C.color(255, 255, 255, 255);
  13201. this.MV = "rgba(255,255,255,1)";
  13202. this.gi = C.bd("canvas");
  13203. this.Ki = this.gi.getContext("2d");
  13204. this.anchorY = this.anchorX = 0;
  13205. c !== m && d !== m && (f = f || C.Ma.qq, this.hQ(c, d, f, g || 0))
  13206. },
  13207. qF: function(c, d, f, g) {
  13208. C.A.prototype.ctor.call(this);
  13209. this.Jq = C.color(0, 0, 0, 0);
  13210. c !== m && d !== m && (f = f || C.Ma.qq, this.hQ(c, d, f, g || 0))
  13211. },
  13212. ze: s,
  13213. mra: function() {
  13214. C.A.prototype.Na.call(this);
  13215. this.gi = this.Ki = s
  13216. },
  13217. nra: function() {
  13218. C.A.prototype.Na.call(this);
  13219. this.VG = s;
  13220. var c = C.t;
  13221. c.deleteFramebuffer(this.sM);
  13222. this.uF && c.deleteRenderbuffer(this.uF);
  13223. this.Xva = s
  13224. },
  13225. E0: A("sprite"),
  13226. NR: x("sprite"),
  13227. hQ: s,
  13228. hta: function(c, d) {
  13229. var f = this.gi,
  13230. g = C.Ec();
  13231. f.width = 0 | c * g;
  13232. f.height = 0 | d * g;
  13233. this.Ki.translate(0, f.height);
  13234. g = new C.Ma;
  13235. g.Ng(f);
  13236. g.Md();
  13237. this.sprite = C.u.create(g);
  13238. return q
  13239. },
  13240. ita: function(c, d, f, g) {
  13241. f == C.Ma.pE && C.log("cc.RenderTexture._initWithWidthAndHeightForWebGL() : only RGB and RGBA formats are valid for a render texture;");
  13242. var h = C.t,
  13243. k = C.Ec();
  13244. c = 0 | c * k;
  13245. d = 0 | d * k;
  13246. this.hp = h.getParameter(h.FRAMEBUFFER_BINDING);
  13247. var n;
  13248. C.FB.mO ? (k = c, n = d) : (k = C.Cs(c), n = C.Cs(d));
  13249. for (var p = new Uint8Array(4 * k * n), r = 0; r < 4 * k * n; r++) p[r] = 0;
  13250. this.ip = f;
  13251. this.da = new C.Ma;
  13252. if (!this.da) return t;
  13253. r = this.da;
  13254. r.Au(p, this.ip, k, n, C.size(c, d));
  13255. f = h.getParameter(h.RENDERBUFFER_BINDING);
  13256. if (C.FB.CB("GL_QCOM")) {
  13257. this.VG = new C.Ma;
  13258. if (!this.VG) return t;
  13259. this.VG.Au(p, this.ip, k, n, C.size(c, d))
  13260. }
  13261. this.sM = h.createFramebuffer();
  13262. h.bindFramebuffer(h.FRAMEBUFFER, this.sM);
  13263. h.framebufferTexture2D(h.FRAMEBUFFER, h.COLOR_ATTACHMENT0, h.TEXTURE_2D, r.Sh, 0);
  13264. 0 != g && (this.uF = h.createRenderbuffer(), h.bindRenderbuffer(h.RENDERBUFFER, this.uF), h.renderbufferStorage(h.RENDERBUFFER, g, k, n), h.framebufferRenderbuffer(h.FRAMEBUFFER, h.DEPTH_ATTACHMENT, h.RENDERBUFFER, this.uF));
  13265. h.checkFramebufferStatus(h.FRAMEBUFFER) !== h.FRAMEBUFFER_COMPLETE && C.log("Could not attach texture to the framebuffer");
  13266. r.B2();
  13267. c = this.sprite = C.u.create(r);
  13268. c.scaleY = -1;
  13269. c.Yd(h.ONE, h.ONE_MINUS_SRC_ALPHA);
  13270. h.bindRenderbuffer(h.RENDERBUFFER, f);
  13271. h.bindFramebuffer(h.FRAMEBUFFER, this.hp);
  13272. this.qH = t;
  13273. this.q(c);
  13274. return q
  13275. },
  13276. Sn: s,
  13277. Wqa: function() {
  13278. C.t = this.Ki;
  13279. C.view.vba()
  13280. },
  13281. Xqa: function() {
  13282. C.Op(C.mq);
  13283. C.Zr();
  13284. C.Op(C.lq);
  13285. C.Zr();
  13286. var c = C.Q;
  13287. c.py(c.op);
  13288. var d = this.da.o,
  13289. f = C.Q.bI(),
  13290. c = f.width / d.width,
  13291. f = f.height / d.height,
  13292. g = C.t;
  13293. g.viewport(0, 0, d.width, d.height);
  13294. d = new C.Ia;
  13295. C.q1(d, -1 / c, 1 / c, -1 / f, 1 / f, -1, 1);
  13296. C.lC(d);
  13297. this.hp = g.getParameter(g.FRAMEBUFFER_BINDING);
  13298. g.bindFramebuffer(g.FRAMEBUFFER, this.sM);
  13299. C.FB.CB("GL_QCOM") && (g.framebufferTexture2D(g.FRAMEBUFFER, g.COLOR_ATTACHMENT0, g.TEXTURE_2D, this.VG.Sh, 0), g.clear(g.COLOR_BUFFER_BIT | g.DEPTH_BUFFER_BIT), g.framebufferTexture2D(g.FRAMEBUFFER, g.COLOR_ATTACHMENT0, g.TEXTURE_2D, this.da.Sh, 0))
  13300. },
  13301. nxa: function(c, d, f, g, h, k) {
  13302. var n = C.t;
  13303. h = h || n.COLOR_BUFFER_BIT;
  13304. k = k || n.COLOR_BUFFER_BIT | n.DEPTH_BUFFER_BIT;
  13305. this.wV(c, d, f, g, h, k, n.COLOR_BUFFER_BIT | n.DEPTH_BUFFER_BIT | n.STENCIL_BUFFER_BIT)
  13306. },
  13307. wV: s,
  13308. Yqa: function(c, d, f, g) {
  13309. this.Sn();
  13310. c = c || 0;
  13311. d = d || 0;
  13312. f = f || 0;
  13313. g = isNaN(g) ? 1 : g;
  13314. var h = this.Ki,
  13315. k = this.gi;
  13316. h.save();
  13317. h.fillStyle = "rgba(" + (0 | c) + "," + (0 | d) + "," + (0 | f) + "," + g / 255 + ")";
  13318. h.clearRect(0, 0, k.width, -k.height);
  13319. h.fillRect(0, 0, k.width, -k.height);
  13320. h.restore()
  13321. },
  13322. Zqa: function(c, d, f, g, h, k, n) {
  13323. this.Sn();
  13324. var p = C.t,
  13325. r = [0, 0, 0, 0],
  13326. v = 0,
  13327. y = 0;
  13328. n & p.COLOR_BUFFER_BIT && (r = p.getParameter(p.COLOR_CLEAR_VALUE), p.clearColor(c, d, f, g));
  13329. n & p.DEPTH_BUFFER_BIT && (v = p.getParameter(p.DEPTH_CLEAR_VALUE), p.clearDepth(h));
  13330. n & p.STENCIL_BUFFER_BIT && (y = p.getParameter(p.STENCIL_CLEAR_VALUE), p.clearStencil(k));
  13331. p.clear(n);
  13332. n & p.COLOR_BUFFER_BIT && p.clearColor(r[0], r[1], r[2], r[3]);
  13333. n & p.DEPTH_BUFFER_BIT && p.clearDepth(v);
  13334. n & p.STENCIL_BUFFER_BIT && p.clearStencil(y)
  13335. },
  13336. end: s,
  13337. Rra: function() {
  13338. C.t = C.Dta;
  13339. C.view.hba()
  13340. },
  13341. Sra: function() {
  13342. var c = C.t,
  13343. d = C.Q;
  13344. c.bindFramebuffer(c.FRAMEBUFFER, this.hp);
  13345. d.Aia();
  13346. C.Op(C.mq);
  13347. C.Yr();
  13348. C.Op(C.lq);
  13349. C.Yr()
  13350. },
  13351. clear: function(c, d, f, g) {
  13352. this.nxa(c, d, f, g);
  13353. this.end()
  13354. },
  13355. clearRect: s,
  13356. qra: function(c, d, f, g) {
  13357. this.Ki.clearRect(c, d, f, -g)
  13358. },
  13359. rra: u(),
  13360. clearDepth: s,
  13361. ora: function() {
  13362. C.log("clearDepth isn't supported on Cocos2d-Html5")
  13363. },
  13364. pra: function(c) {
  13365. this.Sn();
  13366. var d = C.t,
  13367. f = d.getParameter(d.DEPTH_CLEAR_VALUE);
  13368. d.clearDepth(c);
  13369. d.clear(d.DEPTH_BUFFER_BIT);
  13370. d.clearDepth(f);
  13371. this.end()
  13372. },
  13373. clearStencil: s,
  13374. sra: function() {
  13375. C.log("clearDepth isn't supported on Cocos2d-Html5")
  13376. },
  13377. tra: function(c) {
  13378. var d = C.t,
  13379. f = d.getParameter(d.STENCIL_CLEAR_VALUE);
  13380. d.clearStencil(c);
  13381. d.clear(d.STENCIL_BUFFER_BIT);
  13382. d.clearStencil(f)
  13383. },
  13384. J: s,
  13385. Hr: function(c) {
  13386. this.Ja && (c = c || C.t, c.save(), this.ka(c), this.transform(c), this.sprite.J(), c.restore(), this.arrivalOrder = 0)
  13387. },
  13388. fx: function(c) {
  13389. if (this.Ja) {
  13390. C.Zr();
  13391. var d = this.grid;
  13392. d && d.zi() && (d.px(), this.CJ());
  13393. this.transform(c);
  13394. this.sprite.J();
  13395. this.ka(c);
  13396. d && d.zi() && d.mx(this);
  13397. C.Yr();
  13398. this.arrivalOrder = 0
  13399. }
  13400. },
  13401. ka: s,
  13402. Qq: function(c) {
  13403. c = c || C.t;
  13404. if (this.qH) {
  13405. this.Sn();
  13406. if (this.eP) {
  13407. var d = this.gi;
  13408. c.save();
  13409. c.fillStyle = this.MV;
  13410. c.clearRect(0, 0, d.width, -d.height);
  13411. c.fillRect(0, 0, d.width, -d.height);
  13412. c.restore()
  13413. }
  13414. this.ed();
  13415. c = this.l;
  13416. for (var d = c.length,
  13417. f = this.sprite,
  13418. g = 0; g < d; g++) {
  13419. var h = c[g];
  13420. h != f && h.J()
  13421. }
  13422. this.end()
  13423. }
  13424. },
  13425. gn: function() {
  13426. var c = C.t;
  13427. if (this.qH) {
  13428. this.Sn();
  13429. var d = this.eP;
  13430. if (d) {
  13431. var f = [0, 0, 0, 0],
  13432. g = 0,
  13433. h = 0;
  13434. d & c.COLOR_BUFFER_BIT && (f = c.getParameter(c.COLOR_CLEAR_VALUE), c.clearColor(this.Jq.r / 255, this.Jq.g / 255, this.Jq.b / 255, this.Jq.a / 255));
  13435. d & c.DEPTH_BUFFER_BIT && (g = c.getParameter(c.DEPTH_CLEAR_VALUE), c.clearDepth(this.w_));
  13436. d & c.STENCIL_BUFFER_BIT && (h = c.getParameter(c.STENCIL_CLEAR_VALUE), c.clearStencil(this.x_));
  13437. c.clear(d);
  13438. d & c.COLOR_BUFFER_BIT && c.clearColor(f[0], f[1], f[2], f[3]);
  13439. d & c.DEPTH_BUFFER_BIT && c.clearDepth(g);
  13440. d & c.STENCIL_BUFFER_BIT && c.clearStencil(h)
  13441. }
  13442. this.ed();
  13443. c = this.l;
  13444. for (d = 0; d < c.length; d++) f = c[d],
  13445. f != this.sprite && f.J();
  13446. this.end()
  13447. }
  13448. },
  13449. g0a: function() {
  13450. C.log("saveToFile isn't supported on cocos2d-html5");
  13451. return s
  13452. },
  13453. fPa: function(c, d, f, g, h) {
  13454. for (var k = 0; k < h; k++) c[d + k] = f[g + k]
  13455. },
  13456. O2a: function() {
  13457. C.log("saveToFile isn't supported on Cocos2d-Html5")
  13458. },
  13459. W_a: function() {
  13460. C.log("listenToBackground isn't supported on Cocos2d-Html5")
  13461. },
  13462. X_a: function() {
  13463. C.log("listenToForeground isn't supported on Cocos2d-Html5")
  13464. },
  13465. ETa: A("eP"),
  13466. D3a: x("eP"),
  13467. jAa: A("Jq"),
  13468. L2: s,
  13469. Rua: function(c) {
  13470. var d = this.Jq;
  13471. d.r = c.r;
  13472. d.g = c.g;
  13473. d.b = c.b;
  13474. d.a = c.a;
  13475. this.MV = "rgba(" + (0 | c.r) + "," + (0 | c.g) + "," + (0 | c.b) + "," + c.a / 255 + ")"
  13476. },
  13477. Sua: function(c) {
  13478. var d = this.Jq;
  13479. d.r = c.r;
  13480. d.g = c.g;
  13481. d.b = c.b;
  13482. d.a = c.a
  13483. },
  13484. DTa: A("w_"),
  13485. C3a: x("w_"),
  13486. FTa: A("x_"),
  13487. E3a: x("x_"),
  13488. cYa: A("qH"),
  13489. r3a: x("qH")
  13490. });
  13491. H = C.yv.prototype;
  13492. C.L == C.la ? (H.ctor = H.qF, H.ze = H.nra, H.hQ = H.ita, H.Sn = H.Xqa, H.wV = H.Zqa, H.end = H.Sra, H.clearRect = H.rra, H.clearDepth = H.pra, H.clearStencil = H.tra, H.J = H.fx, H.ka = H.gn, H.L2 = H.Sua) : (H.ctor = H.pF, H.ze = H.mra, H.hQ = H.hta, H.Sn = H.Wqa, H.wV = H.Yqa, H.end = H.Rra, H.clearRect = H.qra, H.clearDepth = H.ora, H.clearStencil = H.sra, H.J = H.Hr, H.ka = H.Qq, H.L2 = H.Rua);
  13493. C.e(H, "clearColorVal", H.jAa, H.L2);
  13494. C.yv.create = function(c, d, f, g) {
  13495. return new C.yv(c, d, f, g)
  13496. };
  13497. C.Gl = C.gq.extend({
  13498. qd: s,
  13499. rX: s,
  13500. Aa: t,
  13501. ac: s,
  13502. qa: "LabelAtlas",
  13503. ctor: function(c, d, f, g, h) {
  13504. C.gq.prototype.ctor.call(this);
  13505. d && C.Gl.prototype.sf.call(this, c, d, f, g, h)
  13506. },
  13507. eD: A("Aa"),
  13508. ye: function(c, d) {
  13509. this.ac || (this.ac = []);
  13510. this.ac.push({
  13511. jl: c,
  13512. jj: d
  13513. })
  13514. },
  13515. cf: function() {
  13516. if (this.ac) {
  13517. this.Aa = q;
  13518. for (var c = this.ac,
  13519. d = 0,
  13520. f = c.length; d < f; d++) {
  13521. var g = c[d];
  13522. g.jl.call(g.jj, this)
  13523. }
  13524. c.length = 0
  13525. }
  13526. },
  13527. sf: function(c, d, f, g, h) {
  13528. var k = c + "",
  13529. n, p;
  13530. if (f === m) {
  13531. f = C.M.xd(d);
  13532. if (1 !== parseInt(f.version, 10)) return C.log("cc.LabelAtlas.initWithString(): Unsupported version. Upgrade cocos2d version"),
  13533. t;
  13534. d = C.path.BB(d, f.textureFilename);
  13535. g = C.Ec();
  13536. n = parseInt(f.itemWidth, 10) / g;
  13537. p = parseInt(f.itemHeight, 10) / g;
  13538. f = String.fromCharCode(parseInt(f.firstChar, 10))
  13539. } else n = f || 0,
  13540. p = g || 0,
  13541. f = h || " ";
  13542. var r = s,
  13543. r = d instanceof C.Ma ? d: C.kb.sd(d); (this.Aa = d = r.de) || r.ye(function() {
  13544. this.ta(r, n, p, k.length);
  13545. this.string = k;
  13546. this.cf()
  13547. },
  13548. this);
  13549. return this.ta(r, n, p, k.length) ? (this.rX = f, this.string = k, q) : t
  13550. },
  13551. G: function(c) {
  13552. C.gq.prototype.G.call(this, c);
  13553. this.iD()
  13554. },
  13555. Wb: A("qd"),
  13556. ka: function(c) {
  13557. C.gq.prototype.ka.call(this, c);
  13558. C.Qma && (c = this.size, c = [C.d(0, 0), C.d(c.width, 0), C.d(c.width, c.height), C.d(0, c.height)], C.Df.Of(c, 4, q))
  13559. },
  13560. aV: function(c, d, f) {
  13561. c.xta = q;
  13562. C.ha.prototype.q.call(this, c, d, f)
  13563. },
  13564. iD: s,
  13565. Yva: function() {
  13566. for (var c = this.qd || "",
  13567. d = c.length,
  13568. f = this.texture,
  13569. g = this.Tj,
  13570. h = this.Oi,
  13571. k = 0; k < d; k++) {
  13572. var n = c.charCodeAt(k) - this.rX.charCodeAt(0),
  13573. n = C.rect(parseInt(n % this.uA, 10) * g, parseInt(n / this.uA, 10) * h, g, h),
  13574. p = c.charCodeAt(k),
  13575. r = this.lj(k);
  13576. r ? 32 == p ? (r.j(), r.qc(C.rect(0, 0, 10, 10), t, C.size(0, 0))) : (r.ta(f, n), r.visible = q, r.opacity = this.hb) : (r = new C.u, 32 == p ? (r.j(), r.qc(C.rect(0, 0, 10, 10), t, C.size(0, 0))) : r.ta(f, n), C.ha.prototype.q.call(this, r, 0, k));
  13577. r.p(k * g + g / 2, h / 2)
  13578. }
  13579. },
  13580. Zva: function() {
  13581. var c = this.qd,
  13582. d = c.length,
  13583. f = this.textureAtlas,
  13584. g = f.texture,
  13585. h = g.pixelsWidth,
  13586. g = g.pixelsHeight,
  13587. k = this.Tj,
  13588. n = this.Oi;
  13589. this.IM || (k = this.Tj * C.Ec(), n = this.Oi * C.Ec());
  13590. d > f.Yf && C.log("cc.LabelAtlas._updateAtlasValues(): Invalid String length");
  13591. for (var p = f.quads,
  13592. r = this.wb,
  13593. r = {
  13594. r: r.r,
  13595. g: r.g,
  13596. b: r.b,
  13597. a: this.hb
  13598. },
  13599. v = this.Tj, y = 0; y < d; y++) {
  13600. var z = c.charCodeAt(y) - this.rX.charCodeAt(0),
  13601. D = z % this.uA,
  13602. E = 0 | z / this.uA,
  13603. F;
  13604. C.Qy ? (D = (2 * D * k + 1) / (2 * h), z = D + (2 * k - 2) / (2 * h), E = (2 * E * n + 1) / (2 * g), F = E + (2 * n - 2) / (2 * g)) : (D = D * k / h, z = D + k / h, E = E * n / g, F = E + n / g);
  13605. var G = p[y],
  13606. K = G.X,
  13607. O = G.V,
  13608. U = G.T,
  13609. G = G.Y;
  13610. K.v.xa = D;
  13611. K.v.ea = E;
  13612. O.v.xa = z;
  13613. O.v.ea = E;
  13614. U.v.xa = D;
  13615. U.v.ea = F;
  13616. G.v.xa = z;
  13617. G.v.ea = F;
  13618. U.m.x = y * v;
  13619. U.m.y = 0;
  13620. U.m.f = 0;
  13621. G.m.x = y * v + v;
  13622. G.m.y = 0;
  13623. G.m.f = 0;
  13624. K.m.x = y * v;
  13625. K.m.y = this.Oi;
  13626. K.m.f = 0;
  13627. O.m.x = y * v + v;
  13628. O.m.y = this.Oi;
  13629. O.m.f = 0;
  13630. K.F = r;
  13631. O.F = r;
  13632. U.F = r;
  13633. G.F = r
  13634. }
  13635. 0 < d && (f.dirty = q, c = f.totalQuads, d > c && f.Pea(d - c))
  13636. },
  13637. sa: s,
  13638. sva: function(c) {
  13639. c = String(c);
  13640. var d = c.length;
  13641. this.qd = c;
  13642. this.width = d * this.Tj;
  13643. this.height = this.Oi;
  13644. if (this.l) {
  13645. c = this.l;
  13646. for (var d = c.length,
  13647. f = 0; f < d; f++) {
  13648. var g = c[f];
  13649. g && !g.xta && (g.visible = t)
  13650. }
  13651. }
  13652. this.iD();
  13653. this.quadsToDraw = d
  13654. },
  13655. uva: function(c) {
  13656. c = String(c);
  13657. var d = c.length;
  13658. d > this.textureAtlas.totalQuads && this.textureAtlas.eR(d);
  13659. this.qd = c;
  13660. this.width = d * this.Tj;
  13661. this.height = this.Oi;
  13662. this.iD();
  13663. this.quadsToDraw = d
  13664. },
  13665. K: s,
  13666. FY: function(c) {
  13667. if (this.hb !== c) {
  13668. C.gq.prototype.K.call(this, c);
  13669. for (var d = this.l,
  13670. f = 0,
  13671. g = d.length; f < g; f++) d[f] && (d[f].opacity = c)
  13672. }
  13673. },
  13674. GY: function(c) {
  13675. this.Eb !== c && C.gq.prototype.K.call(this, c)
  13676. }
  13677. });
  13678. H = C.Gl.prototype;
  13679. C.L === C.la ? (H.iD = H.Zva, H.sa = H.uva, H.K = H.GY) : (H.iD = H.Yva, H.sa = H.sva, H.K = H.FY, H.q = H.aV);
  13680. C.e(H, "opacity", H.rb, H.K);
  13681. C.e(H, "string", H.Wb, H.sa);
  13682. C.Gl.create = function(c, d, f, g, h) {
  13683. return new C.Gl(c, d, f, g, h)
  13684. };
  13685. C.eMa = -1;
  13686. C.rv = C.Bh.extend({
  13687. sb: q,
  13688. Fb: t,
  13689. qd: "",
  13690. Nk: s,
  13691. FF: "",
  13692. oA: "",
  13693. RE: C.Fs,
  13694. iH: -1,
  13695. qaa: t,
  13696. JM: s,
  13697. kba: s,
  13698. hb: 255,
  13699. Ig: 255,
  13700. wb: s,
  13701. od: s,
  13702. Zf: q,
  13703. Ag: q,
  13704. Aa: t,
  13705. ac: s,
  13706. qa: "LabelBMFont",
  13707. wba: function(c, d) {
  13708. d ? this.oA = c: this.qd = c;
  13709. var f = this.l;
  13710. if (f) for (var g = 0; g < f.length; g++) {
  13711. var h = f[g];
  13712. h && h.va(t)
  13713. }
  13714. this.Aa && (this.jP(), d && this.zl())
  13715. },
  13716. ctor: function(c, d, f, g, h) {
  13717. C.Bh.prototype.ctor.call(this);
  13718. this.JM = C.d(0, 0);
  13719. this.wb = C.color(255, 255, 255, 255);
  13720. this.od = C.color(255, 255, 255, 255);
  13721. this.kba = [];
  13722. this.sf(c, d, f, g, h)
  13723. },
  13724. eD: A("Aa"),
  13725. ye: function(c, d) {
  13726. this.ac || (this.ac = []);
  13727. this.ac.push({
  13728. jl: c,
  13729. jj: d
  13730. })
  13731. },
  13732. cf: function() {
  13733. if (this.ac) {
  13734. for (var c = this.ac,
  13735. d = 0,
  13736. f = c.length; d < f; d++) {
  13737. var g = c[d];
  13738. g.jl.call(g.jj, this)
  13739. }
  13740. c.length = 0
  13741. }
  13742. },
  13743. ka: function(c) {
  13744. C.Bh.prototype.ka.call(this, c);
  13745. if (C.Rma) {
  13746. c = this.i();
  13747. var d = C.d(0 | -this.Nb.x, 0 | -this.Nb.y);
  13748. c = [C.d(d.x, d.y), C.d(d.x + c.width, d.y), C.d(d.x + c.width, d.y + c.height), C.d(d.x, d.y + c.height)];
  13749. C.Df.tj(0, 255, 0, 255);
  13750. C.Df.Of(c, 4, q)
  13751. }
  13752. },
  13753. G: function(c) {
  13754. var d = this.wb,
  13755. f = this.od;
  13756. f.r == c.r && f.g == c.g && f.b == c.b && f.a == c.a || (d.r = f.r = c.r, d.g = f.g = c.g, d.b = f.b = c.b, this.Aa && this.Zf && (d = C.color.WHITE, (f = this.Vb) && (f.sb && f.cascadeColor) && (d = f.xu()), this.Tb(d)), c.a !== m && !c.jx && this.K(c.a))
  13757. },
  13758. qg: A("Fb"),
  13759. $d: function(c) {
  13760. this.Fb = c;
  13761. if (c = this.l) for (var d = 0; d < c.length; d++) {
  13762. var f = c[d];
  13763. f && f.sb && (f.opacityModifyRGB = this.Fb)
  13764. }
  13765. },
  13766. rb: A("Ig"),
  13767. Tda: A("hb"),
  13768. K: function(c) {
  13769. this.hb = this.Ig = c;
  13770. if (this.Ag) {
  13771. var d = 255,
  13772. f = this.Vb;
  13773. f && (f.sb && f.cascadeOpacity) && (d = f.hb);
  13774. this.dc(d)
  13775. }
  13776. this.wb.a = this.od.a = c
  13777. },
  13778. dc: function(c) {
  13779. this.hb = this.Ig * c / 255;
  13780. c = this.l;
  13781. for (var d = 0; d < c.length; d++) {
  13782. var f = c[d];
  13783. C.L == C.la ? f.dc(this.hb) : (C.ha.prototype.dc.call(f, this.hb), f.Da())
  13784. }
  13785. this.ct()
  13786. },
  13787. nI: B(t),
  13788. Qu: x("Ag"),
  13789. Xa: function() {
  13790. var c = this.od;
  13791. return C.color(c.r, c.g, c.b, c.a)
  13792. },
  13793. xu: A("wb"),
  13794. Tb: function(c) {
  13795. var d = this.wb,
  13796. f = this.od;
  13797. d.r = f.r * c.r / 255;
  13798. d.g = f.g * c.g / 255;
  13799. d.b = f.b * c.b / 255;
  13800. c = this.l;
  13801. for (d = 0; d < c.length; d++) f = c[d],
  13802. C.L == C.la ? f.Tb(this.wb) : (C.ha.prototype.Tb.call(f, this.wb), f.Da());
  13803. this.ct()
  13804. },
  13805. ct: function() {
  13806. if (C.L != C.la) {
  13807. var c, d = this.texture;
  13808. if (d && 0 < d.width && (c = d.jd)) if (d = C.kb.OP(this.qi.jd)) c instanceof HTMLCanvasElement && !this.jf ? C.TB(c, d, this.wb, s, c) : (c = C.TB(c, d, this.wb), d = new C.Ma, d.Ng(c), d.Md(), this.texture = d)
  13809. }
  13810. },
  13811. mI: B(t),
  13812. Pu: x("Zf"),
  13813. j: function() {
  13814. return this.sf(s, s, s, s, s)
  13815. },
  13816. sf: function(c, d, f, g, h) {
  13817. c = c || "";
  13818. this.Nk && C.log("cc.LabelBMFont.initWithString(): re-init is no longer supported");
  13819. if (d) {
  13820. var k = C.M.xd(d);
  13821. if (!k) return C.log("cc.LabelBMFont.initWithString(): Impossible to create font. Please check file"),
  13822. t;
  13823. this.Nk = k;
  13824. this.FF = d;
  13825. d = C.kb.sd(k.Eca); (this.Aa = k = d.de) || d.ye(function(c) {
  13826. this.Aa = q;
  13827. this.ta(c, this.oA.length);
  13828. this.sa(this.oA, q);
  13829. this.cf()
  13830. },
  13831. this)
  13832. } else d = new C.Ma,
  13833. k = new Image,
  13834. d.Ng(k),
  13835. this.Aa = t;
  13836. return this.ta(d, c.length) ? (this.RE = g || C.dz, this.JM = h || C.d(0, 0), this.iH = f == s ? -1 : f, this.hb = this.Ig = 255, this.wb = C.color(255, 255, 255, 255), this.od = C.color(255, 255, 255, 255), this.Zf = this.Ag = q, this.o.width = 0, this.o.height = 0, this.S(0.5, 0.5), C.L === C.la && (f = this.textureAtlas.texture, this.Fb = f.Hp(), g = this.kba = new C.u, g.ta(f, C.rect(0, 0, 0, 0), t), g.batchNode = this), this.sa(c, q), q) : t
  13837. },
  13838. jP: function() {
  13839. var c = C.L,
  13840. d = c === C.cb ? this.texture: this.textureAtlas.texture,
  13841. f = 0,
  13842. g = C.size(0, 0),
  13843. h = 0,
  13844. k = 1,
  13845. n = this.qd,
  13846. p = n ? n.length: 0;
  13847. if (0 !== p) {
  13848. var r, v = this.Nk,
  13849. y = v.JDa,
  13850. z = v.z_,
  13851. D = v.Lza;
  13852. for (r = 0; r < p - 1; r++) 10 == n.charCodeAt(r) && k++;
  13853. var E = z * k,
  13854. k = -(z - z * k),
  13855. F = -1;
  13856. for (r = 0; r < p; r++) if (z = n.charCodeAt(r), 0 != z) if (10 === z) f = 0,
  13857. k -= v.z_;
  13858. else {
  13859. var G = y[F << 16 | z & 65535] || 0,
  13860. K = D[z];
  13861. if (K) {
  13862. var O = C.rect(K.rect.x, K.rect.y, K.rect.width, K.rect.height),
  13863. O = C.js(O);
  13864. O.x += this.JM.x;
  13865. O.y += this.JM.y; (F = this.lj(r)) ? 32 === z && c === C.cb ? F.qc(O, t, C.size(0, 0)) : (F.qc(O, t), F.visible = q) : (F = new C.u, 32 === z && c === C.cb && (O = C.rect(0, 0, 0, 0)), F.ta(d, O, t), F.zX = q, this.q(F, 0, r));
  13866. F.opacityModifyRGB = this.Fb;
  13867. C.L == C.la ? (F.Tb(this.wb), F.dc(this.hb)) : (C.ha.prototype.Tb.call(F, this.wb), C.ha.prototype.dc.call(F, this.hb), F.Da());
  13868. O = C.d(f + K.wja + 0.5 * K.rect.width + G, k + (v.z_ - K.xja) - 0.5 * O.height * C.Ec());
  13869. F.p(C.c2(O));
  13870. f += K.WJa + G;
  13871. F = z;
  13872. h < f && (h = f)
  13873. } else C.log("cocos2d: LabelBMFont: character not found " + n[r])
  13874. }
  13875. g.width = h;
  13876. g.height = E;
  13877. this.Ca(C.Gia(g))
  13878. }
  13879. },
  13880. J6a: function(c) {
  13881. var d = this.l;
  13882. if (d) for (var f = 0,
  13883. g = d.length; f < g; f++) {
  13884. var h = d[f];
  13885. h && (h.visible = t)
  13886. }
  13887. this.Nk && this.jP();
  13888. c || this.zl()
  13889. },
  13890. Wb: A("oA"),
  13891. sa: function(c, d) {
  13892. c = String(c);
  13893. d == s && (d = q);
  13894. if (c == s || "string" != typeof c) c += "";
  13895. this.oA = c;
  13896. this.wba(c, d)
  13897. },
  13898. tva: function(c) {
  13899. this.sa(c, t)
  13900. },
  13901. A3a: function(c) {
  13902. this.sa(c, q)
  13903. },
  13904. zl: function() {
  13905. this.string = this.oA;
  13906. if (0 < this.iH) {
  13907. for (var c = this.qd.length,
  13908. d = [], f = [], g = 1, h = 0, k = t, n = t, p = -1, r = -1, v = 0, y, z = 0, D = this.l.length; z < D; z++) {
  13909. for (var E = 0; ! (y = this.lj(z + v + E));) E++;
  13910. v += E;
  13911. if (h >= c) break;
  13912. var F = this.qd[h];
  13913. n || (r = this.OW(y), n = q);
  13914. k || (p = r, k = q);
  13915. if (10 == F.charCodeAt(0)) {
  13916. f.push("\n");
  13917. d = d.concat(f);
  13918. f.length = 0;
  13919. k = n = t;
  13920. p = r = -1;
  13921. z--;
  13922. v -= E;
  13923. g++;
  13924. if (h >= c) break;
  13925. r || (r = this.OW(y), n = q);
  13926. p || (p = r, k = q);
  13927. h++
  13928. } else if (C.m1(F)) f.push(F),
  13929. d = d.concat(f),
  13930. f.length = 0,
  13931. n = t,
  13932. r = -1,
  13933. h++;
  13934. else if (this.wsa(y) - p > this.iH) if (this.qaa) {
  13935. C.rja(f);
  13936. f.push("\n");
  13937. d = d.concat(f);
  13938. f.length = 0;
  13939. k = n = t;
  13940. p = r = -1;
  13941. g++;
  13942. if (h >= c) break;
  13943. r || (r = this.OW(y), n = q);
  13944. p || (p = r, k = q);
  13945. z--
  13946. } else f.push(F),
  13947. -1 != d.lastIndexOf(" ") ? C.rja(d) : d = [],
  13948. 0 < d.length && d.push("\n"),
  13949. g++,
  13950. k = t,
  13951. p = -1,
  13952. h++;
  13953. else f.push(F),
  13954. h++
  13955. }
  13956. d = d.concat(f);
  13957. z = d.length;
  13958. y = "";
  13959. for (h = 0; h < z; ++h) y += d[h];
  13960. y += String.fromCharCode(0);
  13961. this.wba(y, t)
  13962. }
  13963. if (this.RE != C.dz) {
  13964. d = h = 0;
  13965. c = this.qd.length;
  13966. f = [];
  13967. for (g = 0; g < c; g++) if (10 == this.qd[g].charCodeAt(0) || 0 == this.qd[g].charCodeAt(0)) if (z = 0, k = f.length, 0 == k) d++;
  13968. else {
  13969. if (y = h + k - 1 + d, !(0 > y) && (z = this.lj(y), z != s)) {
  13970. z = z.Rc() + z.ef() / 2;
  13971. n = 0;
  13972. switch (this.RE) {
  13973. case C.Fs:
  13974. n = this.width / 2 - z / 2;
  13975. break;
  13976. case C.Q7:
  13977. n = this.width - z
  13978. }
  13979. if (0 != n) for (z = 0; z < k; z++) if (y = h + z + d, !(0 > y) && (y = this.lj(y))) y.x += n;
  13980. h += k;
  13981. d++;
  13982. f.length = 0
  13983. }
  13984. } else f.push(this.qd[h])
  13985. }
  13986. },
  13987. VGa: function(c) {
  13988. this.RE = c;
  13989. this.zl()
  13990. },
  13991. fsa: A("RE"),
  13992. dHa: function(c) {
  13993. this.iH = c;
  13994. this.zl()
  13995. },
  13996. KF: A("iH"),
  13997. v4a: function(c) {
  13998. this.qaa = c;
  13999. this.zl()
  14000. },
  14001. Za: function(c, d) {
  14002. C.A.prototype.Za.call(this, c, d);
  14003. this.zl()
  14004. },
  14005. gb: function(c) {
  14006. C.A.prototype.gb.call(this, c);
  14007. this.zl()
  14008. },
  14009. pb: function(c) {
  14010. C.A.prototype.pb.call(this, c);
  14011. this.zl()
  14012. },
  14013. UC: function(c) {
  14014. if (c != s && c != this.FF) {
  14015. var d = C.M.xd(c);
  14016. d ? (this.FF = c, this.Nk = d, c = C.kb.sd(d.Eca), this.Aa = d = c.de, this.texture = c, C.L === C.cb && (this.qi = this.texture), d ? this.jP() : c.ye(function(c) {
  14017. this.Aa = q;
  14018. this.texture = c;
  14019. this.jP();
  14020. this.ct();
  14021. this.zl();
  14022. this.cf()
  14023. },
  14024. this)) : C.log("cc.LabelBMFont.setFntFile() : Impossible to create font. Please check file")
  14025. }
  14026. },
  14027. GUa: A("FF"),
  14028. S: function(c, d) {
  14029. C.A.prototype.S.call(this, c, d);
  14030. this.zl()
  14031. },
  14032. tba: function(c) {
  14033. C.A.prototype.tba.call(this, c);
  14034. this.zl()
  14035. },
  14036. Re: function(c) {
  14037. C.A.prototype.Re.call(this, c);
  14038. this.zl()
  14039. },
  14040. Se: function(c) {
  14041. C.A.prototype.Se.call(this, c);
  14042. this.zl()
  14043. },
  14044. aOa: u(),
  14045. XOa: function(c, d) {
  14046. var f = 0;
  14047. if (this.wra.KDa) {
  14048. var g = this.wra.KDa[(c << 16 | d & 65535).toString()];
  14049. g && (f = g.nQa)
  14050. }
  14051. return f
  14052. },
  14053. OW: function(c) {
  14054. return c.Rc() * this.ia - c.ef() * this.ia * c.Ab.x
  14055. },
  14056. wsa: function(c) {
  14057. return c.Rc() * this.ia + c.ef() * this.ia * c.Ab.x
  14058. }
  14059. });
  14060. H = C.rv.prototype;
  14061. C.e(H, "opacityModifyRGB", H.qg, H.$d);
  14062. C.e(H, "opacity", H.rb, H.K);
  14063. C.e(H, "cascadeOpacity", H.nI, H.Qu);
  14064. C.e(H, "color", H.Xa, H.G);
  14065. C.e(H, "cascadeColor", H.mI, H.Pu);
  14066. C.e(H, "string", H.Wb, H.tva);
  14067. C.e(H, "boundingWidth", H.KF, H.dHa);
  14068. C.e(H, "textAlign", H.fsa, H.VGa);
  14069. C.rv.create = function(c, d, f, g, h) {
  14070. return new C.rv(c, d, f, g, h)
  14071. };
  14072. C.m1 = function(c) {
  14073. c = c.charCodeAt(0);
  14074. return 9 <= c && 13 >= c || 32 == c || 133 == c || 160 == c || 5760 == c || 8192 <= c && 8202 >= c || 8232 == c || 8233 == c || 8239 == c || 8287 == c || 12288 == c
  14075. };
  14076. C.rja = function(c) {
  14077. var d = c.length;
  14078. if (! (0 >= d) && (d -= 1, C.m1(c[d]))) {
  14079. for (var f = d - 1; 0 <= f; --f) if (C.m1(c[f])) d = f;
  14080. else break;
  14081. C.PJa(c, d)
  14082. }
  14083. };
  14084. C.PJa = function(c, d) {
  14085. var f = c.length;
  14086. d >= f || 0 > d || c.splice(d, f)
  14087. };
  14088. C.$ra = {
  14089. zma: /info [^\n]*(\n|$)/gi,
  14090. Aka: /common [^\n]*(\n|$)/gi,
  14091. Ena: /page [^\n]*(\n|$)/gi,
  14092. zka: /char [^\n]*(\n|$)/gi,
  14093. Hma: /kerning [^\n]*(\n|$)/gi,
  14094. Bma: /\w+=[^ \r\n]+/gi,
  14095. Ama: /^[\-]?\d+$/,
  14096. nG: function(c) {
  14097. c = c.match(this.Bma);
  14098. var d = {};
  14099. if (c) for (var f = 0,
  14100. g = c.length; f < g; f++) {
  14101. var h = c[f],
  14102. k = h.indexOf("\x3d"),
  14103. n = h.substring(0, k),
  14104. h = h.substring(k + 1);
  14105. h.match(this.Ama) ? h = parseInt(h) : '"' == h[0] && (h = h.substring(1, h.length - 1));
  14106. d[n] = h
  14107. }
  14108. return d
  14109. },
  14110. XEa: function(c, d) {
  14111. var f = {};
  14112. this.nG(c.match(this.zma)[0]);
  14113. var g = this.nG(c.match(this.Aka)[0]);
  14114. f.z_ = g.lineHeight;
  14115. if (C.L === C.la) {
  14116. var h = C.FB.bG; (g.scaleW > h.width || g.scaleH > h.height) && C.log("cc.LabelBMFont._parseCommonArguments(): page can't be larger than supported")
  14117. }
  14118. 1 !== g.pages && C.log("cc.LabelBMFont._parseCommonArguments(): only supports 1 page");
  14119. g = this.nG(c.match(this.Ena)[0]);
  14120. 0 !== g.id && C.log("cc.LabelBMFont._parseImageFileName() : file could not be found");
  14121. f.Eca = C.path.BB(d, g.file);
  14122. for (var k = c.match(this.zka), n = f.Lza = {},
  14123. g = 0, h = k.length; g < h; g++) {
  14124. var p = this.nG(k[g]);
  14125. n[p.id] = {
  14126. rect: {
  14127. x: p.x,
  14128. y: p.y,
  14129. width: p.width,
  14130. height: p.height
  14131. },
  14132. wja: p.xoffset,
  14133. xja: p.yoffset,
  14134. WJa: p.xadvance
  14135. }
  14136. }
  14137. k = f.JDa = {};
  14138. if (n = c.match(this.Hma)) {
  14139. g = 0;
  14140. for (h = n.length; g < h; g++) p = this.nG(n[g]),
  14141. k[p.first << 16 | p.second & 65535] = p.amount
  14142. }
  14143. return f
  14144. },
  14145. load: function(c, d, f, g) {
  14146. var h = this;
  14147. C.M.EQ(c,
  14148. function(c, f) {
  14149. if (c) return g(c);
  14150. g(s, h.XEa(f, d))
  14151. })
  14152. }
  14153. };
  14154. C.M.Zp(["fnt"], C.$ra);
  14155. C.G6 = C.ha.extend({
  14156. texture: s,
  14157. PB: t,
  14158. dq: t,
  14159. C: s,
  14160. RG: 0,
  14161. vW: 0,
  14162. qw: 0,
  14163. vX: 0,
  14164. Jt: 0,
  14165. eY: 0,
  14166. VX: s,
  14167. UX: s,
  14168. bc: s,
  14169. Iz: s,
  14170. dl: s,
  14171. lg: s,
  14172. Jz: s,
  14173. gB: s,
  14174. qa: "MotionStreak",
  14175. ctor: function(c, d, f, g, h) {
  14176. C.ha.prototype.ctor.call(this);
  14177. this.fm = C.d(0, 0);
  14178. this.C = new C.Vm(C.SRC_ALPHA, C.ONE_MINUS_SRC_ALPHA);
  14179. this.AZ = C.t.createBuffer();
  14180. this.dq = this.PB = t;
  14181. this.texture = s;
  14182. this.eY = this.Jt = this.vX = this.qw = this.vW = this.RG = 0;
  14183. this.gB = this.Jz = this.lg = this.dl = this.Iz = this.bc = this.UX = this.VX = s;
  14184. h !== m && this.RCa(c, d, f, g, h)
  14185. },
  14186. ob: A("texture"),
  14187. Va: function(c) {
  14188. this.texture != c && (this.texture = c)
  14189. },
  14190. ek: A("C"),
  14191. Yd: function(c, d) {
  14192. d === m ? this.C = c: (this.C.src = c, this.C.ga = d)
  14193. },
  14194. rb: function() {
  14195. C.log("cc.MotionStreak.getOpacity has not been supported.");
  14196. return 0
  14197. },
  14198. K: function() {
  14199. C.log("cc.MotionStreak.setOpacity has not been supported.")
  14200. },
  14201. $d: u(),
  14202. qg: B(t),
  14203. Na: function() {
  14204. C.A.prototype.Na.call(this);
  14205. this.lg && C.t.deleteBuffer(this.lg);
  14206. this.gB && C.t.deleteBuffer(this.gB);
  14207. this.Jz && C.t.deleteBuffer(this.Jz)
  14208. },
  14209. pYa: A("PB"),
  14210. Y3a: x("PB"),
  14211. KYa: A("dq"),
  14212. f5a: x("dq"),
  14213. RCa: function(c, d, f, g, h) {
  14214. h || e("cc.MotionStreak.initWithFade(): Invalid filename or texture");
  14215. "string" === typeof h && (h = C.kb.sd(h));
  14216. C.A.prototype.p.call(this, C.d(0, 0));
  14217. this.anchorY = this.anchorX = 0;
  14218. this.ignoreAnchor = q;
  14219. this.dq = t;
  14220. this.PB = q;
  14221. this.qw = -1 == d ? f / 5 : d;
  14222. this.qw *= this.qw;
  14223. this.RG = f;
  14224. this.vW = 1 / c;
  14225. c = (0 | 60 * c) + 2;
  14226. this.Jt = 0;
  14227. this.UX = new Float32Array(c);
  14228. this.VX = new Float32Array(2 * c);
  14229. this.bc = new Float32Array(4 * c);
  14230. this.dl = new Float32Array(4 * c);
  14231. this.Iz = new Uint8Array(8 * c);
  14232. this.vX = c;
  14233. c = C.t;
  14234. this.lg = c.createBuffer();
  14235. this.gB = c.createBuffer();
  14236. this.Jz = c.createBuffer();
  14237. this.C.src = c.SRC_ALPHA;
  14238. this.C.ga = c.ONE_MINUS_SRC_ALPHA;
  14239. this.shaderProgram = C.ug.Xd(C.Co);
  14240. this.texture = h;
  14241. this.color = g;
  14242. this.Lu();
  14243. c.bindBuffer(c.ARRAY_BUFFER, this.lg);
  14244. c.bufferData(c.ARRAY_BUFFER, this.bc, c.DYNAMIC_DRAW);
  14245. c.bindBuffer(c.ARRAY_BUFFER, this.gB);
  14246. c.bufferData(c.ARRAY_BUFFER, this.dl, c.DYNAMIC_DRAW);
  14247. c.bindBuffer(c.ARRAY_BUFFER, this.Jz);
  14248. c.bufferData(c.ARRAY_BUFFER, this.Iz, c.DYNAMIC_DRAW);
  14249. return q
  14250. },
  14251. w6a: function(c) {
  14252. this.color = c;
  14253. for (var d = this.Iz,
  14254. f = 0,
  14255. g = 2 * this.Jt; f < g; f++) d[4 * f] = c.r,
  14256. d[4 * f + 1] = c.g,
  14257. d[4 * f + 2] = c.b
  14258. },
  14259. reset: function() {
  14260. this.Jt = 0
  14261. },
  14262. p: function(c, d) {
  14263. this.dq = q;
  14264. d === m ? (this.fm.x = c.x, this.fm.y = c.y) : (this.fm.x = c, this.fm.y = d)
  14265. },
  14266. Rc: function() {
  14267. return this.fm.x
  14268. },
  14269. rs: function(c) {
  14270. this.fm.x = c;
  14271. this.dq || (this.dq = q)
  14272. },
  14273. Vd: function() {
  14274. return this.fm.y
  14275. },
  14276. Uu: function(c) {
  14277. this.fm.y = c;
  14278. this.dq || (this.dq = q)
  14279. },
  14280. ka: function(c) { ! (1 >= this.Jt) && (this.texture && this.texture.de) && (c = c || C.t, C.BC(this), C.rf(C.Dv), C.Gm(this.C.src, this.C.ga), C.yi(this.texture), c.bindBuffer(c.ARRAY_BUFFER, this.lg), c.bufferData(c.ARRAY_BUFFER, this.bc, c.DYNAMIC_DRAW), c.vertexAttribPointer(C.Lc, 2, c.FLOAT, t, 0, 0), c.bindBuffer(c.ARRAY_BUFFER, this.gB), c.bufferData(c.ARRAY_BUFFER, this.dl, c.DYNAMIC_DRAW), c.vertexAttribPointer(C.Vg, 2, c.FLOAT, t, 0, 0), c.bindBuffer(c.ARRAY_BUFFER, this.Jz), c.bufferData(c.ARRAY_BUFFER, this.Iz, c.DYNAMIC_DRAW), c.vertexAttribPointer(C.Hi, 4, c.UNSIGNED_BYTE, q, 0, 0), c.drawArrays(c.TRIANGLE_STRIP, 0, 2 * this.Jt), C.kl++)
  14281. },
  14282. update: function(c) {
  14283. if (this.dq) {
  14284. c *= this.vW;
  14285. var d, f, g, h, k = 0,
  14286. n = this.Jt,
  14287. p = this.UX,
  14288. r = this.VX,
  14289. v = this.bc,
  14290. y = this.Iz;
  14291. for (g = 0; g < n; g++) p[g] -= c,
  14292. 0 >= p[g] ? k++:(d = g - k, 0 < k ? (p[d] = p[g], r[2 * d] = r[2 * g], r[2 * d + 1] = r[2 * g + 1], h = 2 * g, f = 2 * d, v[2 * f] = v[2 * h], v[2 * f + 1] = v[2 * h + 1], v[2 * (f + 1)] = v[2 * (h + 1)], v[2 * (f + 1) + 1] = v[2 * (h + 1) + 1], h *= 4, f *= 4, y[f + 0] = y[h + 0], y[f + 1] = y[h + 1], y[f + 2] = y[h + 2], y[f + 4] = y[h + 4], y[f + 5] = y[h + 5], y[f + 6] = y[h + 6]) : f = 8 * d, d = 255 * p[d], y[f + 3] = d, y[f + 7] = d);
  14293. n -= k;
  14294. g = q;
  14295. if (n >= this.vX) g = t;
  14296. else if (0 < n && (c = C.lga(C.d(r[2 * (n - 1)], r[2 * (n - 1) + 1]), this.fm) < this.qw, f = 1 == n ? t: C.lga(C.d(r[2 * (n - 2)], r[2 * (n - 2) + 1]), this.fm) < 2 * this.qw, c || f)) g = t;
  14297. g && (r[2 * n] = this.fm.x, r[2 * n + 1] = this.fm.y, p[n] = 1, p = 8 * n, g = this.wb, y[p] = g.r, y[p + 1] = g.g, y[p + 2] = g.b, y[p + 4] = g.r, y[p + 5] = g.g, y[p + 6] = g.b, y[p + 3] = 255, y[p + 7] = 255, 0 < n && this.PB && (1 < n ? C.d4(r, this.RG, this.bc, n, 1) : C.d4(r, this.RG, this.bc, 0, 2)), n++);
  14298. this.PB || C.d4(r, this.RG, this.bc, 0, n);
  14299. if (n && this.eY != n) {
  14300. r = 1 / n;
  14301. y = this.dl;
  14302. for (g = 0; g < n; g++) y[4 * g] = 0,
  14303. y[4 * g + 1] = r * g,
  14304. y[2 * (2 * g + 1)] = 1,
  14305. y[2 * (2 * g + 1) + 1] = r * g;
  14306. this.eY = n
  14307. }
  14308. this.Jt = n
  14309. }
  14310. }
  14311. });
  14312. C.G6.create = function(c, d, f, g, h) {
  14313. return new C.G6(c, d, f, g, h)
  14314. };
  14315. C.DT = C.A.extend({
  14316. grid: s,
  14317. Xc: s,
  14318. NH: A("grid"),
  14319. wHa: x("grid"),
  14320. pJ: x("Xc"),
  14321. q: function(c, d, f) {
  14322. C.A.prototype.q.call(this, c, d, f);
  14323. c && !this.Xc && (this.Xc = c)
  14324. },
  14325. J: function() {
  14326. if (this.Ja) {
  14327. var c = C.L == C.la,
  14328. d = this.grid;
  14329. c && (d && d.Wg) && d.px();
  14330. this.transform();
  14331. var f = this.l;
  14332. if (f && 0 < f.length) {
  14333. var g = f.length;
  14334. this.ed();
  14335. for (i = 0; i < g; i++) {
  14336. var h = f[i];
  14337. h && h.J()
  14338. }
  14339. }
  14340. c && (d && d.Wg) && d.mx(this.Xc)
  14341. }
  14342. },
  14343. Wva: function() {
  14344. var c = this.nZ,
  14345. d = C.Jd.top,
  14346. f = this.me(),
  14347. g = c.c;
  14348. g[0] = f.a;
  14349. g[4] = f.H;
  14350. g[12] = f.na;
  14351. g[1] = f.b;
  14352. g[5] = f.P;
  14353. g[13] = f.oa;
  14354. g[14] = this.gH;
  14355. C.Qp(d, d, c);
  14356. if (this.Gq != s && (!this.grid || !this.grid.zi())) c = this.Nb.x,
  14357. d = this.Nb.y,
  14358. 0 !== c || 0 !== d ? (C.bU || (c |= 0, d |= 0), C.mC(c, d), this.Gq.yI(), C.mC( - c, -d)) : this.Gq.yI()
  14359. }
  14360. });
  14361. H = C.DT.prototype;
  14362. C.L === C.la && (H.transform = H.Wva);
  14363. C.e(H, "target", s, H.pJ);
  14364. C.DT.create = function() {
  14365. return new C.DT
  14366. };
  14367. C.M6a = function() {
  14368. return {
  14369. x: 0,
  14370. y: 0
  14371. }
  14372. };
  14373. C.cv = function(c, d) {
  14374. return {
  14375. x: c,
  14376. y: d
  14377. }
  14378. };
  14379. C.Fi = function(c, d) {
  14380. return C.cv(c.x + d.x, c.y + d.y)
  14381. };
  14382. C.Ge = function(c, d) {
  14383. return C.cv(c.x - d.x, c.y - d.y)
  14384. };
  14385. C.Pg = function(c, d) {
  14386. return C.cv(c.x * d, c.y * d)
  14387. };
  14388. C.mD = function(c) {
  14389. return C.cv( - c.y, c.x)
  14390. };
  14391. C.Bl = function(c) {
  14392. return C.cv( - c.x, -c.y)
  14393. };
  14394. C.sja = function(c, d) {
  14395. return c.x * d.x + c.y * d.y
  14396. };
  14397. C.L6a = function(c) {
  14398. return C.cv(Math.cos(c), Math.sin(c))
  14399. };
  14400. C.JJ = function(c) {
  14401. c = C.vf(C.d(c.x, c.y));
  14402. return C.cv(c.x, c.y)
  14403. };
  14404. C.Ii = function(c) {
  14405. return C.cv(c.x, c.y)
  14406. };
  14407. C.Mb = function(c) {
  14408. return {
  14409. xa: c.x,
  14410. ea: c.y
  14411. }
  14412. };
  14413. C.Mla = C.A.extend({
  14414. $b: s,
  14415. C: s,
  14416. cg: 1,
  14417. Pj: s,
  14418. qa: "DrawNodeCanvas",
  14419. ctor: function() {
  14420. C.A.prototype.ctor.call(this);
  14421. this.$b = [];
  14422. this.Pj = C.color(255, 255, 255, 255);
  14423. this.C = new C.Vm(C.Ic, C.Hc);
  14424. this.j()
  14425. },
  14426. ek: A("C"),
  14427. Yd: function(c, d) {
  14428. d === m ? (this.C.src = c.src, this.C.ga = c.ga) : (this.C.src = c, this.C.ga = d)
  14429. },
  14430. Su: x("cg"),
  14431. UAa: A("cg"),
  14432. tj: function(c) {
  14433. var d = this.Pj;
  14434. d.r = c.r;
  14435. d.g = c.g;
  14436. d.b = c.b;
  14437. d.a = c.a == s ? 255 : c.a
  14438. },
  14439. lh: function() {
  14440. return C.color(this.Pj.r, this.Pj.g, this.Pj.b, this.Pj.a)
  14441. },
  14442. U_: function(c, d, f, g, h) {
  14443. g = g || this.cg;
  14444. h = h || this.lh();
  14445. h.a == s && (h.a = 255);
  14446. c = [c, C.d(d.x, c.y), d, C.d(c.x, d.y)];
  14447. d = new C.Ms(C.Tg.Js);
  14448. d.wg = c;
  14449. d.lineWidth = g;
  14450. d.as = h;
  14451. d.lQ = q;
  14452. d.Bu = q;
  14453. d.lineCap = "butt";
  14454. if (d.fillColor = f) f.a == s && (f.a = 255),
  14455. d.i1 = q;
  14456. this.$b.push(d)
  14457. },
  14458. O_: function(c, d, f, g, h, k, n) {
  14459. k = k || this.cg;
  14460. n = n || this.lh();
  14461. n.a == s && (n.a = 255);
  14462. for (var p = 2 * Math.PI / g,
  14463. r = [], v = 0; v <= g; v++) {
  14464. var y = v * p;
  14465. r.push(C.d(d * Math.cos(y + f) + c.x, d * Math.sin(y + f) + c.y))
  14466. }
  14467. h && r.push(C.d(c.x, c.y));
  14468. c = new C.Ms(C.Tg.Js);
  14469. c.wg = r;
  14470. c.lineWidth = k;
  14471. c.as = n;
  14472. c.lQ = q;
  14473. c.Bu = q;
  14474. this.$b.push(c)
  14475. },
  14476. T_: function(c, d, f, g, h, k) {
  14477. h = h || this.cg;
  14478. k = k || this.lh();
  14479. k.a == s && (k.a = 255);
  14480. for (var n = [], p = 0, r = 0; r < g; r++) n.push(C.d(Math.pow(1 - p, 2) * c.x + 2 * (1 - p) * p * d.x + p * p * f.x, Math.pow(1 - p, 2) * c.y + 2 * (1 - p) * p * d.y + p * p * f.y)),
  14481. p += 1 / g;
  14482. n.push(C.d(f.x, f.y));
  14483. c = new C.Ms(C.Tg.Js);
  14484. c.wg = n;
  14485. c.lineWidth = h;
  14486. c.as = k;
  14487. c.Bu = q;
  14488. c.lineCap = "round";
  14489. this.$b.push(c)
  14490. },
  14491. P_: function(c, d, f, g, h, k, n) {
  14492. k = k || this.cg;
  14493. n = n || this.lh();
  14494. n.a == s && (n.a = 255);
  14495. for (var p = [], r = 0, v = 0; v < h; v++) p.push(C.d(Math.pow(1 - r, 3) * c.x + 3 * Math.pow(1 - r, 2) * r * d.x + 3 * (1 - r) * r * r * f.x + r * r * r * g.x, Math.pow(1 - r, 3) * c.y + 3 * Math.pow(1 - r, 2) * r * d.y + 3 * (1 - r) * r * r * f.y + r * r * r * g.y)),
  14496. r += 1 / h;
  14497. p.push(C.d(g.x, g.y));
  14498. c = new C.Ms(C.Tg.Js);
  14499. c.wg = p;
  14500. c.lineWidth = k;
  14501. c.as = n;
  14502. c.Bu = q;
  14503. c.lineCap = "round";
  14504. this.$b.push(c)
  14505. },
  14506. N_: function(c, d, f, g) {
  14507. this.zx(c, 0.5, d, f, g)
  14508. },
  14509. zx: function(c, d, f, g, h) {
  14510. g = g || this.cg;
  14511. h = h || this.lh();
  14512. h.a == s && (h.a = 255);
  14513. for (var k = [], n, p, r = 1 / c.length, v = 0; v < f + 1; v++) p = v / f,
  14514. 1 == p ? (n = c.length - 1, p = 1) : (n = 0 | p / r, p = (p - r * n) / r),
  14515. n = C.q_(C.og(c, n - 1), C.og(c, n - 0), C.og(c, n + 1), C.og(c, n + 2), d, p),
  14516. k.push(n);
  14517. c = new C.Ms(C.Tg.Js);
  14518. c.wg = k;
  14519. c.lineWidth = g;
  14520. c.as = h;
  14521. c.Bu = q;
  14522. c.lineCap = "round";
  14523. this.$b.push(c)
  14524. },
  14525. Q_: function(c, d, f) {
  14526. f = f || this.lh();
  14527. f.a == s && (f.a = 255);
  14528. var g = new C.Ms(C.Tg.W7);
  14529. g.wg = [c];
  14530. g.lineWidth = d;
  14531. g.fillColor = f;
  14532. this.$b.push(g)
  14533. },
  14534. Mya: function(c, d, f) {
  14535. if (c && 0 != c.length) {
  14536. f = f || this.lh();
  14537. f.a == s && (f.a = 255);
  14538. for (var g = 0,
  14539. h = c.length; g < h; g++) this.Q_(c[g], d, f)
  14540. }
  14541. },
  14542. V_: function(c, d, f, g) {
  14543. f = f || this.cg;
  14544. g = g || this.lh();
  14545. g.a == s && (g.a = 255);
  14546. var h = new C.Ms(C.Tg.Js);
  14547. h.wg = [c, d];
  14548. h.lineWidth = 2 * f;
  14549. h.as = g;
  14550. h.Bu = q;
  14551. h.lineCap = "round";
  14552. this.$b.push(h)
  14553. },
  14554. Pya: function(c, d, f, g) {
  14555. f = f || this.cg;
  14556. g = g || this.lh();
  14557. g.a == s && (g.a = 255);
  14558. var h = new C.Ms(C.Tg.Js);
  14559. h.wg = c;
  14560. h.fillColor = d;
  14561. h.lineWidth = f;
  14562. h.as = g;
  14563. h.lQ = q;
  14564. h.Bu = q;
  14565. h.lineCap = "round";
  14566. d && (h.i1 = q);
  14567. this.$b.push(h)
  14568. },
  14569. Of: function(c, d, f, g) {
  14570. for (var h = [], k = 0; k < c.length; k++) h.push(C.d(c[k].x, c[k].y));
  14571. return this.Pya(h, d, f, g)
  14572. },
  14573. ka: function(c) {
  14574. c = c || C.t;
  14575. this.C && (this.C.src == C.SRC_ALPHA && this.C.ga == C.ONE) && (c.globalCompositeOperation = "lighter");
  14576. for (var d = 0; d < this.$b.length; d++) {
  14577. var f = this.$b[d];
  14578. switch (f.type) {
  14579. case C.Tg.W7:
  14580. this.Jra(c, f);
  14581. break;
  14582. case C.Tg.ypa:
  14583. this.Lra(c, f);
  14584. break;
  14585. case C.Tg.Js:
  14586. this.Kra(c, f)
  14587. }
  14588. }
  14589. },
  14590. Jra: function(c, d) {
  14591. var f = d.fillColor,
  14592. g = d.wg[0],
  14593. h = d.lineWidth,
  14594. k = C.view.ia,
  14595. n = C.view.pa;
  14596. c.fillStyle = "rgba(" + (0 | f.r) + "," + (0 | f.g) + "," + (0 | f.b) + "," + f.a / 255 + ")";
  14597. c.beginPath();
  14598. c.arc(g.x * k, -g.y * n, h * k, 0, 2 * Math.PI, t);
  14599. c.closePath();
  14600. c.fill()
  14601. },
  14602. Lra: function(c, d) {
  14603. var f = d.as,
  14604. g = d.wg[0],
  14605. h = d.wg[1],
  14606. k = d.lineWidth,
  14607. n = d.lineCap,
  14608. p = C.view.ia,
  14609. r = C.view.pa;
  14610. c.strokeStyle = "rgba(" + (0 | f.r) + "," + (0 | f.g) + "," + (0 | f.b) + "," + f.a / 255 + ")";
  14611. c.lineWidth = k * p;
  14612. c.beginPath();
  14613. c.lineCap = n;
  14614. c.moveTo(g.x * p, -g.y * r);
  14615. c.lineTo(h.x * p, -h.y * r);
  14616. c.stroke()
  14617. },
  14618. Kra: function(c, d) {
  14619. var f = d.wg,
  14620. g = d.lineCap,
  14621. h = d.fillColor,
  14622. k = d.lineWidth,
  14623. n = d.as,
  14624. p = d.lQ,
  14625. r = d.i1,
  14626. v = d.Bu;
  14627. if (f != s) {
  14628. var y = f[0],
  14629. z = C.view.ia,
  14630. D = C.view.pa;
  14631. c.lineCap = g;
  14632. h && (c.fillStyle = "rgba(" + (0 | h.r) + "," + (0 | h.g) + "," + (0 | h.b) + "," + h.a / 255 + ")");
  14633. k && (c.lineWidth = k * z);
  14634. n && (c.strokeStyle = "rgba(" + (0 | n.r) + "," + (0 | n.g) + "," + (0 | n.b) + "," + n.a / 255 + ")");
  14635. c.beginPath();
  14636. c.moveTo(y.x * z, -y.y * D);
  14637. g = 1;
  14638. for (h = f.length; g < h; g++) c.lineTo(f[g].x * z, -f[g].y * D);
  14639. p && c.closePath();
  14640. r && c.fill();
  14641. v && c.stroke()
  14642. }
  14643. },
  14644. clear: function() {
  14645. this.$b.length = 0
  14646. }
  14647. });
  14648. C.Nla = C.A.extend({
  14649. xz: 0,
  14650. $b: s,
  14651. Fr: s,
  14652. Uba: s,
  14653. Tba: s,
  14654. cg: 1,
  14655. Pj: s,
  14656. C: s,
  14657. Ac: t,
  14658. qa: "DrawNodeWebGL",
  14659. ek: A("C"),
  14660. Yd: function(c, d) {
  14661. d === m ? (this.C.src = c.src, this.C.ga = c.ga) : (this.C.src = c, this.C.ga = d)
  14662. },
  14663. ctor: function() {
  14664. C.A.prototype.ctor.call(this);
  14665. this.$b = [];
  14666. this.C = new C.Vm(C.Ic, C.Hc);
  14667. this.Pj = C.color(255, 255, 255, 255);
  14668. this.j()
  14669. },
  14670. j: function() {
  14671. return C.A.prototype.j.call(this) ? (this.shaderProgram = C.ug.Xd(C.C7), this.AF(64), this.Uba = C.t.createBuffer(), this.Ac = q) : t
  14672. },
  14673. Su: x("cg"),
  14674. UAa: A("cg"),
  14675. tj: function(c) {
  14676. var d = this.Pj;
  14677. d.r = c.r;
  14678. d.g = c.g;
  14679. d.b = c.b;
  14680. d.a = c.a
  14681. },
  14682. lh: function() {
  14683. return C.color(this.Pj.r, this.Pj.g, this.Pj.b, this.Pj.a)
  14684. },
  14685. U_: function(c, d, f, g, h) {
  14686. g = g || this.cg;
  14687. h = h || this.lh();
  14688. h.a == s && (h.a = 255);
  14689. c = [c, C.d(d.x, c.y), d, C.d(c.x, d.y)];
  14690. f == s ? this.gM(c, g, h, q) : this.Of(c, f, g, h)
  14691. },
  14692. O_: function(c, d, f, g, h, k, n) {
  14693. k = k || this.cg;
  14694. n = n || this.lh();
  14695. n.a == s && (n.a = 255);
  14696. var p = 2 * Math.PI / g,
  14697. r = [],
  14698. v;
  14699. for (v = 0; v <= g; v++) {
  14700. var y = v * p;
  14701. r.push(C.d(d * Math.cos(y + f) + c.x, d * Math.sin(y + f) + c.y))
  14702. }
  14703. h && r.push(C.d(c.x, c.y));
  14704. k *= 0.5;
  14705. v = 0;
  14706. for (c = r.length; v < c - 1; v++) this.V_(r[v], r[v + 1], k, n)
  14707. },
  14708. T_: function(c, d, f, g, h, k) {
  14709. h = h || this.cg;
  14710. k = k || this.lh();
  14711. k.a == s && (k.a = 255);
  14712. for (var n = [], p = 0, r = 0; r < g; r++) n.push(C.d(Math.pow(1 - p, 2) * c.x + 2 * (1 - p) * p * d.x + p * p * f.x, Math.pow(1 - p, 2) * c.y + 2 * (1 - p) * p * d.y + p * p * f.y)),
  14713. p += 1 / g;
  14714. n.push(C.d(f.x, f.y));
  14715. this.gM(n, h, k, t)
  14716. },
  14717. P_: function(c, d, f, g, h, k, n) {
  14718. k = k || this.cg;
  14719. n = n || this.lh();
  14720. n.a == s && (n.a = 255);
  14721. for (var p = [], r = 0, v = 0; v < h; v++) p.push(C.d(Math.pow(1 - r, 3) * c.x + 3 * Math.pow(1 - r, 2) * r * d.x + 3 * (1 - r) * r * r * f.x + r * r * r * g.x, Math.pow(1 - r, 3) * c.y + 3 * Math.pow(1 - r, 2) * r * d.y + 3 * (1 - r) * r * r * f.y + r * r * r * g.y)),
  14722. r += 1 / h;
  14723. p.push(C.d(g.x, g.y));
  14724. this.gM(p, k, n, t)
  14725. },
  14726. N_: function(c, d, f, g) {
  14727. this.zx(c, 0.5, d, f, g)
  14728. },
  14729. zx: function(c, d, f, g, h) {
  14730. g = g || this.cg;
  14731. h = h || this.lh();
  14732. h.a == s && (h.a = 255);
  14733. for (var k = [], n, p, r = 1 / c.length, v = 0; v < f + 1; v++) p = v / f,
  14734. 1 == p ? (n = c.length - 1, p = 1) : (n = 0 | p / r, p = (p - r * n) / r),
  14735. n = C.q_(C.og(c, n - 1), C.og(c, n - 0), C.og(c, n + 1), C.og(c, n + 2), d, p),
  14736. k.push(n);
  14737. g *= 0.5;
  14738. c = 0;
  14739. for (d = k.length; c < d - 1; c++) this.V_(k[c], k[c + 1], g, h)
  14740. },
  14741. Rt: function() {
  14742. var c = C.t;
  14743. C.rf(C.Dv);
  14744. c.bindBuffer(c.ARRAY_BUFFER, this.Uba);
  14745. this.Ac && (c.bufferData(c.ARRAY_BUFFER, this.Fr, c.STREAM_DRAW), this.Ac = t);
  14746. var d = C.Ug.BYTES_PER_ELEMENT;
  14747. c.vertexAttribPointer(C.Lc, 2, c.FLOAT, t, d, 0);
  14748. c.vertexAttribPointer(C.Hi, 4, c.UNSIGNED_BYTE, q, d, 8);
  14749. c.vertexAttribPointer(C.Vg, 2, c.FLOAT, t, d, 12);
  14750. c.drawArrays(c.TRIANGLES, 0, 3 * this.$b.length);
  14751. C.nl()
  14752. },
  14753. AF: function(c) {
  14754. var d = this.$b;
  14755. if (d.length + c > this.xz) {
  14756. var f = C.be.BYTES_PER_ELEMENT;
  14757. this.xz += Math.max(this.xz, c);
  14758. if (d == s || 0 === d.length) this.$b = [],
  14759. this.Fr = new ArrayBuffer(f * this.xz),
  14760. this.Tba = new Uint8Array(this.Fr);
  14761. else {
  14762. c = [];
  14763. for (var g = new ArrayBuffer(f * this.xz), h = 0; h < d.length; h++) c[h] = new C.be(d[h].a, d[h].b, d[h].H, g, h * f);
  14764. this.Tba = new Uint8Array(g);
  14765. this.Fr = g;
  14766. this.$b = c
  14767. }
  14768. }
  14769. },
  14770. ka: function() {
  14771. C.Gm(this.C.src, this.C.ga);
  14772. this.pd.Af();
  14773. this.pd.uJ();
  14774. this.Rt()
  14775. },
  14776. Q_: function(c, d, f) {
  14777. f = f || this.lh();
  14778. f.a == s && (f.a = 255);
  14779. var g = {
  14780. r: 0 | f.r,
  14781. g: 0 | f.g,
  14782. b: 0 | f.b,
  14783. a: 0 | f.a
  14784. };
  14785. f = {
  14786. m: {
  14787. x: c.x - d,
  14788. y: c.y - d
  14789. },
  14790. F: g,
  14791. v: {
  14792. xa: -1,
  14793. ea: -1
  14794. }
  14795. };
  14796. var h = {
  14797. m: {
  14798. x: c.x - d,
  14799. y: c.y + d
  14800. },
  14801. F: g,
  14802. v: {
  14803. xa: -1,
  14804. ea: 1
  14805. }
  14806. },
  14807. k = {
  14808. m: {
  14809. x: c.x + d,
  14810. y: c.y + d
  14811. },
  14812. F: g,
  14813. v: {
  14814. xa: 1,
  14815. ea: 1
  14816. }
  14817. };
  14818. c = {
  14819. m: {
  14820. x: c.x + d,
  14821. y: c.y - d
  14822. },
  14823. F: g,
  14824. v: {
  14825. xa: 1,
  14826. ea: -1
  14827. }
  14828. };
  14829. this.AF(6);
  14830. this.$b.push(new C.be(f, h, k, this.Fr, this.$b.length * C.be.BYTES_PER_ELEMENT));
  14831. this.$b.push(new C.be(f, k, c, this.Fr, this.$b.length * C.be.BYTES_PER_ELEMENT));
  14832. this.Ac = q
  14833. },
  14834. Mya: function(c, d, f) {
  14835. if (c && 0 != c.length) {
  14836. f = f || this.lh();
  14837. f.a == s && (f.a = 255);
  14838. for (var g = 0,
  14839. h = c.length; g < h; g++) this.Q_(c[g], d, f)
  14840. }
  14841. },
  14842. V_: function(c, d, f, g) {
  14843. g = g || this.lh();
  14844. g.a == s && (g.a = 255);
  14845. f = f || 0.5 * this.cg;
  14846. this.AF(18);
  14847. g = {
  14848. r: 0 | g.r,
  14849. g: 0 | g.g,
  14850. b: 0 | g.b,
  14851. a: 0 | g.a
  14852. };
  14853. var h = C.Ii(c);
  14854. d = C.Ii(d);
  14855. c = C.JJ(C.mD(C.Ge(d, h)));
  14856. var k = C.mD(c),
  14857. n = C.Pg(c, f);
  14858. f = C.Pg(k, f);
  14859. var p = C.Fi(d, C.Ge(n, f)),
  14860. r = C.Ge(d, n),
  14861. v = C.Fi(d, n),
  14862. y = C.Ge(h, n),
  14863. z = C.Fi(h, n),
  14864. D = C.Ge(h, C.Ge(n, f)),
  14865. h = C.Fi(h, C.Fi(n, f)),
  14866. E = C.be.BYTES_PER_ELEMENT,
  14867. F = this.Fr,
  14868. G = this.$b;
  14869. G.push(new C.be({
  14870. m: C.Ge(d, C.Fi(n, f)),
  14871. F: g,
  14872. v: C.Mb(C.Bl(C.Fi(c, k)))
  14873. },
  14874. {
  14875. m: p,
  14876. F: g,
  14877. v: C.Mb(C.Ge(c, k))
  14878. },
  14879. {
  14880. m: r,
  14881. F: g,
  14882. v: C.Mb(C.Bl(c))
  14883. },
  14884. F, G.length * E));
  14885. G.push(new C.be({
  14886. m: v,
  14887. F: g,
  14888. v: C.Mb(c)
  14889. },
  14890. {
  14891. m: p,
  14892. F: g,
  14893. v: C.Mb(C.Ge(c, k))
  14894. },
  14895. {
  14896. m: r,
  14897. F: g,
  14898. v: C.Mb(C.Bl(c))
  14899. },
  14900. F, G.length * E));
  14901. G.push(new C.be({
  14902. m: v,
  14903. F: g,
  14904. v: C.Mb(c)
  14905. },
  14906. {
  14907. m: y,
  14908. F: g,
  14909. v: C.Mb(C.Bl(c))
  14910. },
  14911. {
  14912. m: r,
  14913. F: g,
  14914. v: C.Mb(C.Bl(c))
  14915. },
  14916. F, G.length * E));
  14917. G.push(new C.be({
  14918. m: v,
  14919. F: g,
  14920. v: C.Mb(c)
  14921. },
  14922. {
  14923. m: y,
  14924. F: g,
  14925. v: C.Mb(C.Bl(c))
  14926. },
  14927. {
  14928. m: z,
  14929. F: g,
  14930. v: C.Mb(c)
  14931. },
  14932. F, G.length * E));
  14933. G.push(new C.be({
  14934. m: D,
  14935. F: g,
  14936. v: C.Mb(C.Ge(k, c))
  14937. },
  14938. {
  14939. m: y,
  14940. F: g,
  14941. v: C.Mb(C.Bl(c))
  14942. },
  14943. {
  14944. m: z,
  14945. F: g,
  14946. v: C.Mb(c)
  14947. },
  14948. F, G.length * E));
  14949. G.push(new C.be({
  14950. m: D,
  14951. F: g,
  14952. v: C.Mb(C.Ge(k, c))
  14953. },
  14954. {
  14955. m: h,
  14956. F: g,
  14957. v: C.Mb(C.Fi(c, k))
  14958. },
  14959. {
  14960. m: z,
  14961. F: g,
  14962. v: C.Mb(c)
  14963. },
  14964. F, G.length * E));
  14965. this.Ac = q
  14966. },
  14967. Of: function(c, d, f, g) {
  14968. if (d == s) this.gM(c, f, g, q);
  14969. else {
  14970. d.a == s && (d.a = 255);
  14971. g.a == s && (g.a = 255);
  14972. f = f || this.cg;
  14973. f *= 0.5;
  14974. d = {
  14975. r: 0 | d.r,
  14976. g: 0 | d.g,
  14977. b: 0 | d.b,
  14978. a: 0 | d.a
  14979. };
  14980. g = {
  14981. r: 0 | g.r,
  14982. g: 0 | g.g,
  14983. b: 0 | g.b,
  14984. a: 0 | g.a
  14985. };
  14986. var h = [],
  14987. k,
  14988. n,
  14989. p,
  14990. r,
  14991. v = c.length;
  14992. for (k = 0; k < v; k++) {
  14993. n = C.Ii(c[(k - 1 + v) % v]);
  14994. p = C.Ii(c[k]);
  14995. r = C.Ii(c[(k + 1) % v]);
  14996. var y = C.JJ(C.mD(C.Ge(p, n)));
  14997. p = C.JJ(C.mD(C.Ge(r, p)));
  14998. h[k] = {
  14999. offset: C.Pg(C.Fi(y, p), 1 / (C.sja(y, p) + 1)),
  15000. ds: p
  15001. }
  15002. }
  15003. y = 0 < f;
  15004. this.AF(3 * (3 * v - 2));
  15005. var z = C.be.BYTES_PER_ELEMENT,
  15006. D = this.Fr,
  15007. E = this.$b,
  15008. F = y == t ? 0.5 : 0;
  15009. for (k = 0; k < v - 2; k++) n = C.Ge(C.Ii(c[0]), C.Pg(h[0].offset, F)),
  15010. p = C.Ge(C.Ii(c[k + 1]), C.Pg(h[k + 1].offset, F)),
  15011. r = C.Ge(C.Ii(c[k + 2]), C.Pg(h[k + 2].offset, F)),
  15012. E.push(new C.be({
  15013. m: n,
  15014. F: d,
  15015. v: C.Mb({
  15016. x: 0,
  15017. y: 0
  15018. })
  15019. },
  15020. {
  15021. m: p,
  15022. F: d,
  15023. v: C.Mb({
  15024. x: 0,
  15025. y: 0
  15026. })
  15027. },
  15028. {
  15029. m: r,
  15030. F: d,
  15031. v: C.Mb({
  15032. x: 0,
  15033. y: 0
  15034. })
  15035. },
  15036. D, E.length * z));
  15037. for (k = 0; k < v; k++) {
  15038. F = (k + 1) % v;
  15039. n = C.Ii(c[k]);
  15040. p = C.Ii(c[F]);
  15041. r = h[k].ds;
  15042. var G = h[k].offset,
  15043. K = h[F].offset,
  15044. F = y ? C.Ge(n, C.Pg(G, f)) : C.Ge(n, C.Pg(G, 0.5)),
  15045. O = y ? C.Ge(p, C.Pg(K, f)) : C.Ge(p, C.Pg(K, 0.5));
  15046. n = y ? C.Fi(n, C.Pg(G, f)) : C.Fi(n, C.Pg(G, 0.5));
  15047. p = y ? C.Fi(p, C.Pg(K, f)) : C.Fi(p, C.Pg(K, 0.5));
  15048. y ? (E.push(new C.be({
  15049. m: F,
  15050. F: g,
  15051. v: C.Mb(C.Bl(r))
  15052. },
  15053. {
  15054. m: O,
  15055. F: g,
  15056. v: C.Mb(C.Bl(r))
  15057. },
  15058. {
  15059. m: p,
  15060. F: g,
  15061. v: C.Mb(r)
  15062. },
  15063. D, E.length * z)), E.push(new C.be({
  15064. m: F,
  15065. F: g,
  15066. v: C.Mb(C.Bl(r))
  15067. },
  15068. {
  15069. m: n,
  15070. F: g,
  15071. v: C.Mb(r)
  15072. },
  15073. {
  15074. m: p,
  15075. F: g,
  15076. v: C.Mb(r)
  15077. },
  15078. D, E.length * z))) : (E.push(new C.be({
  15079. m: F,
  15080. F: d,
  15081. v: C.Mb({
  15082. x: 0,
  15083. y: 0
  15084. })
  15085. },
  15086. {
  15087. m: O,
  15088. F: d,
  15089. v: C.Mb({
  15090. x: 0,
  15091. y: 0
  15092. })
  15093. },
  15094. {
  15095. m: p,
  15096. F: d,
  15097. v: C.Mb(r)
  15098. },
  15099. D, E.length * z)), E.push(new C.be({
  15100. m: F,
  15101. F: d,
  15102. v: C.Mb({
  15103. x: 0,
  15104. y: 0
  15105. })
  15106. },
  15107. {
  15108. m: n,
  15109. F: d,
  15110. v: C.Mb(r)
  15111. },
  15112. {
  15113. m: p,
  15114. F: d,
  15115. v: C.Mb(r)
  15116. },
  15117. D, E.length * z)))
  15118. }
  15119. this.Ac = q
  15120. }
  15121. },
  15122. gM: function(c, d, f, g) {
  15123. d = d || this.cg;
  15124. f = f || this.Pj;
  15125. f.a == s && (f.a = 255);
  15126. d *= 0.5;
  15127. if (! (0 >= d)) {
  15128. f = {
  15129. r: 0 | f.r,
  15130. g: 0 | f.g,
  15131. b: 0 | f.b,
  15132. a: 0 | f.a
  15133. };
  15134. var h = [],
  15135. k,
  15136. n,
  15137. p,
  15138. r,
  15139. v = c.length;
  15140. for (k = 0; k < v; k++) {
  15141. n = C.Ii(c[(k - 1 + v) % v]);
  15142. p = C.Ii(c[k]);
  15143. r = C.Ii(c[(k + 1) % v]);
  15144. var y = C.JJ(C.mD(C.Ge(p, n)));
  15145. p = C.JJ(C.mD(C.Ge(r, p)));
  15146. h[k] = {
  15147. offset: C.Pg(C.Fi(y, p), 1 / (C.sja(y, p) + 1)),
  15148. ds: p
  15149. }
  15150. }
  15151. this.AF(3 * (3 * v - 2));
  15152. r = C.be.BYTES_PER_ELEMENT;
  15153. var y = this.Fr,
  15154. z = this.$b;
  15155. g = g ? v: v - 1;
  15156. for (k = 0; k < g; k++) {
  15157. var D = (k + 1) % v;
  15158. n = C.Ii(c[k]);
  15159. p = C.Ii(c[D]);
  15160. var E = h[k].ds,
  15161. F = h[k].offset,
  15162. D = h[D].offset,
  15163. G = C.Ge(n, C.Pg(F, d));
  15164. n = C.Fi(n, C.Pg(F, d));
  15165. F = C.Fi(p, C.Pg(D, d));
  15166. z.push(new C.be({
  15167. m: G,
  15168. F: f,
  15169. v: C.Mb(C.Bl(E))
  15170. },
  15171. {
  15172. m: C.Ge(p, C.Pg(D, d)),
  15173. F: f,
  15174. v: C.Mb(C.Bl(E))
  15175. },
  15176. {
  15177. m: F,
  15178. F: f,
  15179. v: C.Mb(E)
  15180. },
  15181. y, z.length * r));
  15182. z.push(new C.be({
  15183. m: G,
  15184. F: f,
  15185. v: C.Mb(C.Bl(E))
  15186. },
  15187. {
  15188. m: n,
  15189. F: f,
  15190. v: C.Mb(E)
  15191. },
  15192. {
  15193. m: F,
  15194. F: f,
  15195. v: C.Mb(E)
  15196. },
  15197. y, z.length * r))
  15198. }
  15199. this.Ac = q
  15200. }
  15201. },
  15202. clear: function() {
  15203. this.$b.length = 0;
  15204. this.Ac = q
  15205. }
  15206. });
  15207. C.Tg = C.L == C.la ? C.Nla: C.Mla;
  15208. C.Tg.create = function() {
  15209. return new C.Tg
  15210. };
  15211. C.Ms = function(c) {
  15212. this.type = c;
  15213. this.fillColor = this.wg = s;
  15214. this.lineWidth = 0;
  15215. this.as = s;
  15216. this.lineCap = "butt";
  15217. this.Bu = this.i1 = this.lQ = t
  15218. };
  15219. C.Tg.W7 = 0;
  15220. C.Tg.ypa = 1;
  15221. C.Tg.Js = 2;
  15222. C.xy = -1;
  15223. C.Yha = function(c, d) {
  15224. c.shaderProgram = d;
  15225. var f = c.children;
  15226. if (f) for (var g = 0; g < f.length; g++) C.Yha(f[g], d)
  15227. };
  15228. C.Tc = C.A.extend({
  15229. nx: 0,
  15230. Yn: t,
  15231. Ud: s,
  15232. QF: t,
  15233. ctor: function(c) {
  15234. C.A.prototype.ctor.call(this);
  15235. this.Ud = s;
  15236. this.nx = 0;
  15237. this.Yn = t;
  15238. C.Tc.prototype.j.call(this, c || s)
  15239. },
  15240. j: s,
  15241. qa: "ClippingNode",
  15242. cta: function(c) {
  15243. this.Ud = c;
  15244. this.nx = 1;
  15245. this.Yn = t;
  15246. C.Tc.MM = q;
  15247. C.Tc.MM && (C.xy = C.t.getParameter(C.t.STENCIL_BITS), 0 >= C.xy && C.log("Stencil buffer is not enabled."), C.Tc.MM = t);
  15248. return q
  15249. },
  15250. bta: function(c) {
  15251. this.Ud = c;
  15252. this.nx = 1;
  15253. this.Yn = t
  15254. },
  15255. Z: function() {
  15256. C.A.prototype.Z.call(this);
  15257. this.Ud.Z()
  15258. },
  15259. qj: function() {
  15260. C.A.prototype.qj.call(this);
  15261. this.Ud.qj()
  15262. },
  15263. ph: function() {
  15264. this.Ud.ph();
  15265. C.A.prototype.ph.call(this)
  15266. },
  15267. Na: function() {
  15268. this.Ud.Na();
  15269. C.A.prototype.Na.call(this)
  15270. },
  15271. J: s,
  15272. fx: function(c) {
  15273. var d = c || C.t;
  15274. if (1 > C.xy) C.A.prototype.J.call(this, c);
  15275. else if (!this.Ud || !this.Ud.visible) this.Yn && C.A.prototype.J.call(this, c);
  15276. else if (C.Tc.rn = -1, C.Tc.rn + 1 == C.xy) C.Tc.gx = q,
  15277. C.Tc.gx && (C.log("Nesting more than " + C.xy + "stencils is not supported. Everything will be drawn without stencil for this node and its childs."), C.Tc.gx = t),
  15278. C.A.prototype.J.call(this, c);
  15279. else {
  15280. C.Tc.rn++;
  15281. var f = 1 << C.Tc.rn,
  15282. g = f | f - 1,
  15283. h = d.isEnabled(d.STENCIL_TEST),
  15284. k = d.getParameter(d.STENCIL_WRITEMASK),
  15285. n = d.getParameter(d.STENCIL_FUNC),
  15286. p = d.getParameter(d.STENCIL_REF),
  15287. r = d.getParameter(d.STENCIL_VALUE_MASK),
  15288. v = d.getParameter(d.STENCIL_FAIL),
  15289. y = d.getParameter(d.STENCIL_PASS_DEPTH_FAIL),
  15290. z = d.getParameter(d.STENCIL_PASS_DEPTH_PASS);
  15291. d.enable(d.STENCIL_TEST);
  15292. d.stencilMask(f);
  15293. var D = d.getParameter(d.DEPTH_WRITEMASK);
  15294. d.depthMask(t);
  15295. d.stencilFunc(d.NEVER, f, f);
  15296. d.stencilOp(!this.Yn ? d.ZERO: d.REPLACE, d.KEEP, d.KEEP);
  15297. C.Df.X_(C.d(0, 0), C.mga(), C.color(255, 255, 255, 255));
  15298. d.stencilFunc(d.NEVER, f, f);
  15299. d.stencilOp(!this.Yn ? d.REPLACE: d.ZERO, d.KEEP, d.KEEP);
  15300. if (1 > this.nx) {
  15301. var f = C.ug.Xd(C.KK),
  15302. E = d.getUniformLocation(f.Lx(), C.G8);
  15303. C.N0(f.Lx());
  15304. f.sJ(E, this.nx);
  15305. C.Yha(this.Ud, f)
  15306. }
  15307. C.Zr();
  15308. this.transform();
  15309. this.Ud.J();
  15310. C.Yr();
  15311. d.depthMask(D);
  15312. d.stencilFunc(d.EQUAL, g, g);
  15313. d.stencilOp(d.KEEP, d.KEEP, d.KEEP);
  15314. C.A.prototype.J.call(this, c);
  15315. d.stencilFunc(n, p, r);
  15316. d.stencilOp(v, y, z);
  15317. d.stencilMask(k);
  15318. h || d.disable(d.STENCIL_TEST);
  15319. C.Tc.rn--
  15320. }
  15321. },
  15322. Hr: function(c) {
  15323. if (!this.Ud || !this.Ud.visible) this.Yn && C.A.prototype.J.call(this, c);
  15324. else {
  15325. c = c || C.t;
  15326. var d = c.canvas;
  15327. if (this.Rv() || this.Ud instanceof C.u) {
  15328. var f = C.Tc.TW();
  15329. f.width = d.width;
  15330. f.height = d.height;
  15331. f.getContext("2d").drawImage(d, 0, 0);
  15332. c.save();
  15333. C.A.prototype.J.call(this, c);
  15334. c.globalCompositeOperation = this.Yn ? "destination-out": "destination-in";
  15335. this.transform(c);
  15336. this.Ud.J();
  15337. c.restore();
  15338. c.save();
  15339. c.setTransform(1, 0, 0, 1, 0, 0);
  15340. c.globalCompositeOperation = "destination-over";
  15341. c.drawImage(f, 0, 0)
  15342. } else {
  15343. var f = this.l,
  15344. g;
  15345. c.save();
  15346. this.transform(c);
  15347. this.Ud.J(c);
  15348. this.Yn && (c.save(), c.setTransform(1, 0, 0, 1, 0, 0), c.moveTo(0, 0), c.lineTo(0, d.height), c.lineTo(d.width, d.height), c.lineTo(d.width, 0), c.lineTo(0, 0), c.restore());
  15349. c.clip();
  15350. this.Rv(q);
  15351. var h = f.length;
  15352. if (0 < h) {
  15353. this.ed();
  15354. for (d = 0; d < h; d++) if (g = f[d], 0 > g.Wa) g.J(c);
  15355. else break;
  15356. for (this.ka(c); d < h; d++) f[d].J(c)
  15357. } else this.ka(c);
  15358. this.Rv(t)
  15359. }
  15360. c.restore()
  15361. }
  15362. },
  15363. VBa: A("Ud"),
  15364. OR: s,
  15365. rva: x("Ud"),
  15366. qva: function(c) {
  15367. this.Ud = c;
  15368. var d = C.t; ! (c instanceof C.u) && c instanceof C.Tg && (c.ka = function() {
  15369. var f = C.view.ia,
  15370. g = C.view.pa;
  15371. d.beginPath();
  15372. for (var h = 0; h < c.$b.length; h++) {
  15373. var k = c.$b[h].wg,
  15374. n = k[0];
  15375. d.moveTo(n.x * f, -n.y * g);
  15376. for (var n = 1,
  15377. p = k.length; n < p; n++) d.lineTo(k[n].x * f, -k[n].y * g)
  15378. }
  15379. })
  15380. },
  15381. HSa: A("nx"),
  15382. m3a: x("nx"),
  15383. uYa: A("Yn"),
  15384. p4a: x("Yn"),
  15385. Rv: function(c) {
  15386. if (c === q || c === t) C.Tc.prototype.QF = c;
  15387. return C.Tc.prototype.QF
  15388. }
  15389. });
  15390. H = C.Tc.prototype;
  15391. C.L === C.la ? (H.j = H.cta, H.J = H.fx, H.OR = H.rva) : (H.j = H.bta, H.J = H.Hr, H.OR = H.qva);
  15392. C.e(H, "stencil", H.VBa, H.OR);
  15393. C.Tc.MM = s;
  15394. C.Tc.gx = s;
  15395. C.Tc.rn = s;
  15396. C.Tc.GG = s;
  15397. C.Tc.TW = function() {
  15398. return C.Tc.GG || (C.Tc.GG = document.createElement("canvas"))
  15399. };
  15400. C.Tc.create = function(c) {
  15401. return new C.Tc(c)
  15402. };
  15403. C.Ty = C.O.extend({
  15404. Wg: t,
  15405. pp: 0,
  15406. ua: s,
  15407. da: s,
  15408. om: s,
  15409. gA: s,
  15410. iw: t,
  15411. pd: s,
  15412. bW: 0,
  15413. Ac: t,
  15414. ctor: function(c, d, f) {
  15415. C.LV();
  15416. this.Wg = t;
  15417. this.pp = 0;
  15418. this.da = this.ua = s;
  15419. this.om = C.d(0, 0);
  15420. this.gA = s;
  15421. this.iw = t;
  15422. this.pd = s;
  15423. this.bW = 0;
  15424. this.Ac = t;
  15425. c !== m && this.Mp(c, d, f)
  15426. },
  15427. zi: A("Wg"),
  15428. setActive: function(c) {
  15429. this.Wg = c;
  15430. c || (c = C.Q, c.py(c.op))
  15431. },
  15432. oWa: A("pp"),
  15433. gIa: x("pp"),
  15434. CAa: function() {
  15435. return C.size(this.ua.width, this.ua.height)
  15436. },
  15437. j4a: function(c) {
  15438. this.ua.width = parseInt(c.width);
  15439. this.ua.height = parseInt(c.height)
  15440. },
  15441. G0: function() {
  15442. return C.d(this.om.x, this.om.y)
  15443. },
  15444. g5a: function(c) {
  15445. this.om.x = c.x;
  15446. this.om.y = c.y
  15447. },
  15448. NYa: A("iw"),
  15449. n5a: function(c) {
  15450. this.iw != c && (this.iw = c, this.cP())
  15451. },
  15452. Mp: function(c, d, f) {
  15453. if (!d) {
  15454. var g = C.Q.bI(),
  15455. h = C.Cs(g.width),
  15456. k = C.Cs(g.height),
  15457. n = new Uint8Array(4 * h * k);
  15458. if (!n) return C.log("cocos2d: CCGrid: not enough memory."),
  15459. t;
  15460. d = new C.Ma;
  15461. d.Au(n, C.Ma.qq, h, k, g);
  15462. if (!d) return C.log("cocos2d: CCGrid: error creating texture"),
  15463. t
  15464. }
  15465. this.Wg = t;
  15466. this.pp = 0;
  15467. this.ua = c;
  15468. this.da = d;
  15469. this.iw = f || t;
  15470. this.om.x = this.da.width / c.width;
  15471. this.om.y = this.da.height / c.height;
  15472. this.gA = new C.sma;
  15473. if (!this.gA) return t;
  15474. this.gA.yCa(this.da);
  15475. this.pd = C.ug.Xd(C.yE);
  15476. this.cP();
  15477. return q
  15478. },
  15479. px: function() {
  15480. this.bW = C.Q.op;
  15481. this.TGa();
  15482. this.gA.mxa(this.da)
  15483. },
  15484. mx: function(c) {
  15485. this.gA.Fwa(this.da);
  15486. C.Q.py(this.bW);
  15487. if (c.Ix().h1()) {
  15488. var d = c.Ep();
  15489. C.mC(d.x, d.y);
  15490. c.Ix().yI();
  15491. C.mC( - d.x, -d.y)
  15492. }
  15493. C.yi(this.da);
  15494. this.a_()
  15495. },
  15496. a_: function() {
  15497. C.log("cc.GridBase.blit(): Shall be overridden in subclass.")
  15498. },
  15499. gR: function() {
  15500. C.log("cc.GridBase.reuse(): Shall be overridden in subclass.")
  15501. },
  15502. cP: function() {
  15503. C.log("cc.GridBase.calculateVertexPoints(): Shall be overridden in subclass.")
  15504. },
  15505. TGa: function() {
  15506. var c = C.Q.bI();
  15507. C.t.viewport(0, 0, c.width, c.height);
  15508. C.Op(C.mq);
  15509. C.kC();
  15510. var d = new C.Ia;
  15511. C.q1(d, 0, c.width, 0, c.height, -1, 1);
  15512. C.lC(d);
  15513. C.Op(C.lq);
  15514. C.kC();
  15515. C.$ha()
  15516. }
  15517. });
  15518. C.Ty.create = function(c, d, f) {
  15519. return new C.Ty(c, d, f)
  15520. };
  15521. C.iT = C.Ty.extend({
  15522. qm: s,
  15523. bc: s,
  15524. jr: s,
  15525. Qb: s,
  15526. cl: s,
  15527. lg: s,
  15528. Vk: s,
  15529. ctor: function(c, d, f) {
  15530. C.Ty.prototype.ctor.call(this);
  15531. this.Vk = this.lg = this.cl = this.Qb = this.jr = this.bc = this.qm = s;
  15532. c !== m && this.Mp(c, d, f)
  15533. },
  15534. uja: function(c) { (c.x !== (0 | c.x) || c.y !== (0 | c.y)) && C.log("cc.Grid3D.vertex() : Numbers must be integers");
  15535. c = 0 | 3 * (c.x * (this.ua.height + 1) + c.y);
  15536. var d = this.bc;
  15537. return new C.re(d[c], d[c + 1], d[c + 2])
  15538. },
  15539. uf: function(c) { (c.x !== (0 | c.x) || c.y !== (0 | c.y)) && C.log("cc.Grid3D.originalVertex() : Numbers must be integers");
  15540. c = 0 | 3 * (c.x * (this.ua.height + 1) + c.y);
  15541. var d = this.jr;
  15542. return new C.re(d[c], d[c + 1], d[c + 2])
  15543. },
  15544. wh: function(c, d) { (c.x !== (0 | c.x) || c.y !== (0 | c.y)) && C.log("cc.Grid3D.setVertex() : Numbers must be integers");
  15545. var f = 0 | 3 * (c.x * (this.ua.height + 1) + c.y),
  15546. g = this.bc;
  15547. g[f] = d.x;
  15548. g[f + 1] = d.y;
  15549. g[f + 2] = d.f;
  15550. this.Ac = q
  15551. },
  15552. a_: function() {
  15553. var c = this.ua.width * this.ua.height;
  15554. C.rf(C.Ch | C.fz);
  15555. this.pd.Af();
  15556. this.pd.uJ();
  15557. var d = C.t,
  15558. f = this.Ac;
  15559. d.bindBuffer(d.ARRAY_BUFFER, this.lg);
  15560. f && d.bufferData(d.ARRAY_BUFFER, this.bc, d.DYNAMIC_DRAW);
  15561. d.vertexAttribPointer(C.Lc, 3, d.FLOAT, t, 0, 0);
  15562. d.bindBuffer(d.ARRAY_BUFFER, this.cl);
  15563. f && d.bufferData(d.ARRAY_BUFFER, this.qm, d.DYNAMIC_DRAW);
  15564. d.vertexAttribPointer(C.Vg, 2, d.FLOAT, t, 0, 0);
  15565. d.bindBuffer(d.ELEMENT_ARRAY_BUFFER, this.Vk);
  15566. f && d.bufferData(d.ELEMENT_ARRAY_BUFFER, this.Qb, d.STATIC_DRAW);
  15567. d.drawElements(d.TRIANGLES, 6 * c, d.UNSIGNED_SHORT, 0);
  15568. f && (this.Ac = t);
  15569. C.nl()
  15570. },
  15571. gR: function() {
  15572. if (0 < this.pp) {
  15573. for (var c = this.jr,
  15574. d = this.bc,
  15575. f = 0,
  15576. g = this.bc.length; f < g; f++) c[f] = d[f]; --this.pp
  15577. }
  15578. },
  15579. cP: function() {
  15580. var c = C.t,
  15581. d = this.da.pixelsWidth,
  15582. f = this.da.pixelsHeight,
  15583. g = this.da.o.height,
  15584. h = this.ua,
  15585. k = (h.width + 1) * (h.height + 1);
  15586. this.bc = new Float32Array(3 * k);
  15587. this.qm = new Float32Array(2 * k);
  15588. this.Qb = new Uint16Array(6 * h.width * h.height);
  15589. this.lg && c.deleteBuffer(this.lg);
  15590. this.lg = c.createBuffer();
  15591. this.cl && c.deleteBuffer(this.cl);
  15592. this.cl = c.createBuffer();
  15593. this.Vk && c.deleteBuffer(this.Vk);
  15594. this.Vk = c.createBuffer();
  15595. for (var n, p, r = this.Qb,
  15596. v = this.qm,
  15597. y = this.iw,
  15598. z = this.bc,
  15599. k = 0; k < h.width; ++k) for (n = 0; n < h.height; ++n) {
  15600. var D = n * h.width + k;
  15601. p = k * this.om.x;
  15602. var E = p + this.om.x,
  15603. F = n * this.om.y,
  15604. G = F + this.om.y,
  15605. K = k * (h.height + 1) + n,
  15606. O = (k + 1) * (h.height + 1) + n,
  15607. U = (k + 1) * (h.height + 1) + (n + 1),
  15608. X = k * (h.height + 1) + (n + 1);
  15609. r[6 * D] = K;
  15610. r[6 * D + 1] = O;
  15611. r[6 * D + 2] = X;
  15612. r[6 * D + 3] = O;
  15613. r[6 * D + 4] = U;
  15614. r[6 * D + 5] = X;
  15615. var D = [3 * K, 3 * O, 3 * U, 3 * X],
  15616. N = [{
  15617. x: p,
  15618. y: F,
  15619. f: 0
  15620. },
  15621. {
  15622. x: E,
  15623. y: F,
  15624. f: 0
  15625. },
  15626. {
  15627. x: E,
  15628. y: G,
  15629. f: 0
  15630. },
  15631. {
  15632. x: p,
  15633. y: G,
  15634. f: 0
  15635. }],
  15636. K = [2 * K, 2 * O, 2 * U, 2 * X],
  15637. E = [C.d(p, F), C.d(E, F), C.d(E, G), C.d(p, G)];
  15638. for (p = 0; 4 > p; ++p) z[D[p]] = N[p].x,
  15639. z[D[p] + 1] = N[p].y,
  15640. z[D[p] + 2] = N[p].f,
  15641. v[K[p]] = E[p].x / d,
  15642. v[K[p] + 1] = y ? (g - E[p].y) / f: E[p].y / f
  15643. }
  15644. this.jr = new Float32Array(this.bc);
  15645. c.bindBuffer(c.ARRAY_BUFFER, this.lg);
  15646. c.bufferData(c.ARRAY_BUFFER, this.bc, c.DYNAMIC_DRAW);
  15647. c.bindBuffer(c.ARRAY_BUFFER, this.cl);
  15648. c.bufferData(c.ARRAY_BUFFER, this.qm, c.DYNAMIC_DRAW);
  15649. c.bindBuffer(c.ELEMENT_ARRAY_BUFFER, this.Vk);
  15650. c.bufferData(c.ELEMENT_ARRAY_BUFFER, this.Qb, c.STATIC_DRAW);
  15651. this.Ac = q
  15652. }
  15653. });
  15654. C.iT.create = function(c, d, f) {
  15655. return new C.iT(c, d, f)
  15656. };
  15657. C.yU = C.Ty.extend({
  15658. qm: s,
  15659. bc: s,
  15660. jr: s,
  15661. Qb: s,
  15662. cl: s,
  15663. lg: s,
  15664. Vk: s,
  15665. ctor: function(c, d, f) {
  15666. C.Ty.prototype.ctor.call(this);
  15667. this.Vk = this.lg = this.cl = this.Qb = this.jr = this.bc = this.qm = s;
  15668. c !== m && this.Mp(c, d, f)
  15669. },
  15670. Xia: function(c) { (c.x !== (0 | c.x) || c.y !== (0 | c.y)) && C.log("cc.TiledGrid3D.tile() : Numbers must be integers");
  15671. c = 12 * (this.ua.height * c.x + c.y);
  15672. var d = this.bc;
  15673. return new C.FK(new C.re(d[c], d[c + 1], d[c + 2]), new C.re(d[c + 3], d[c + 4], d[c + 5]), new C.re(d[c + 6], d[c + 7], d[c + 8]), new C.re(d[c + 9], d[c + 10], d[c + 11]))
  15674. },
  15675. sl: function(c) { (c.x !== (0 | c.x) || c.y !== (0 | c.y)) && C.log("cc.TiledGrid3D.originalTile() : Numbers must be integers");
  15676. c = 12 * (this.ua.height * c.x + c.y);
  15677. var d = this.jr;
  15678. return new C.FK(new C.re(d[c], d[c + 1], d[c + 2]), new C.re(d[c + 3], d[c + 4], d[c + 5]), new C.re(d[c + 6], d[c + 7], d[c + 8]), new C.re(d[c + 9], d[c + 10], d[c + 11]))
  15679. },
  15680. Aj: function(c, d) { (c.x !== (0 | c.x) || c.y !== (0 | c.y)) && C.log("cc.TiledGrid3D.setTile() : Numbers must be integers");
  15681. var f = 12 * (this.ua.height * c.x + c.y),
  15682. g = this.bc;
  15683. g[f] = d.T.x;
  15684. g[f + 1] = d.T.y;
  15685. g[f + 2] = d.T.f;
  15686. g[f + 3] = d.Y.x;
  15687. g[f + 4] = d.Y.y;
  15688. g[f + 5] = d.Y.f;
  15689. g[f + 6] = d.X.x;
  15690. g[f + 7] = d.X.y;
  15691. g[f + 8] = d.X.f;
  15692. g[f + 9] = d.V.x;
  15693. g[f + 10] = d.V.y;
  15694. g[f + 11] = d.V.f;
  15695. this.Ac = q
  15696. },
  15697. a_: function() {
  15698. var c = this.ua.width * this.ua.height;
  15699. this.pd.Af();
  15700. this.pd.uJ();
  15701. var d = C.t,
  15702. f = this.Ac;
  15703. C.rf(C.Ch | C.fz);
  15704. d.bindBuffer(d.ARRAY_BUFFER, this.lg);
  15705. f && d.bufferData(d.ARRAY_BUFFER, this.bc, d.DYNAMIC_DRAW);
  15706. d.vertexAttribPointer(C.Lc, 3, d.FLOAT, t, 0, this.bc);
  15707. d.bindBuffer(d.ARRAY_BUFFER, this.cl);
  15708. f && d.bufferData(d.ARRAY_BUFFER, this.qm, d.DYNAMIC_DRAW);
  15709. d.vertexAttribPointer(C.Vg, 2, d.FLOAT, t, 0, this.qm);
  15710. d.bindBuffer(d.ELEMENT_ARRAY_BUFFER, this.Vk);
  15711. f && d.bufferData(d.ELEMENT_ARRAY_BUFFER, this.Qb, d.STATIC_DRAW);
  15712. d.drawElements(d.TRIANGLES, 6 * c, d.UNSIGNED_SHORT, 0);
  15713. f && (this.Ac = t);
  15714. C.nl()
  15715. },
  15716. gR: function() {
  15717. if (0 < this.pp) {
  15718. for (var c = this.bc,
  15719. d = this.jr,
  15720. f = 0; f < c.length; f++) d[f] = c[f]; --this.pp
  15721. }
  15722. },
  15723. cP: function() {
  15724. var c = this.da.pixelsWidth,
  15725. d = this.da.pixelsHeight,
  15726. f = this.da.o.height,
  15727. g = this.ua,
  15728. h = g.width * g.height;
  15729. this.bc = new Float32Array(12 * h);
  15730. this.qm = new Float32Array(8 * h);
  15731. this.Qb = new Uint16Array(6 * h);
  15732. var k = C.t;
  15733. this.lg && k.deleteBuffer(this.lg);
  15734. this.lg = k.createBuffer();
  15735. this.cl && k.deleteBuffer(this.cl);
  15736. this.cl = k.createBuffer();
  15737. this.Vk && k.deleteBuffer(this.Vk);
  15738. this.Vk = k.createBuffer();
  15739. var n, p, r = 0,
  15740. v = this.om,
  15741. y = this.bc,
  15742. z = this.qm,
  15743. D = this.iw;
  15744. for (n = 0; n < g.width; n++) for (p = 0; p < g.height; p++) {
  15745. var E = n * v.x,
  15746. F = E + v.x,
  15747. G = p * v.y,
  15748. K = G + v.y;
  15749. y[12 * r] = E;
  15750. y[12 * r + 1] = G;
  15751. y[12 * r + 2] = 0;
  15752. y[12 * r + 3] = F;
  15753. y[12 * r + 4] = G;
  15754. y[12 * r + 5] = 0;
  15755. y[12 * r + 6] = E;
  15756. y[12 * r + 7] = K;
  15757. y[12 * r + 8] = 0;
  15758. y[12 * r + 9] = F;
  15759. y[12 * r + 10] = K;
  15760. y[12 * r + 11] = 0;
  15761. var O = G,
  15762. U = K;
  15763. D && (O = f - G, U = f - K);
  15764. z[8 * r] = E / c;
  15765. z[8 * r + 1] = O / d;
  15766. z[8 * r + 2] = F / c;
  15767. z[8 * r + 3] = O / d;
  15768. z[8 * r + 4] = E / c;
  15769. z[8 * r + 5] = U / d;
  15770. z[8 * r + 6] = F / c;
  15771. z[8 * r + 7] = U / d;
  15772. r++
  15773. }
  15774. c = this.Qb;
  15775. for (n = 0; n < h; n++) c[6 * n + 0] = 4 * n + 0,
  15776. c[6 * n + 1] = 4 * n + 1,
  15777. c[6 * n + 2] = 4 * n + 2,
  15778. c[6 * n + 3] = 4 * n + 1,
  15779. c[6 * n + 4] = 4 * n + 2,
  15780. c[6 * n + 5] = 4 * n + 3;
  15781. this.jr = new Float32Array(this.bc);
  15782. k.bindBuffer(k.ARRAY_BUFFER, this.lg);
  15783. k.bufferData(k.ARRAY_BUFFER, this.bc, k.DYNAMIC_DRAW);
  15784. k.bindBuffer(k.ARRAY_BUFFER, this.cl);
  15785. k.bufferData(k.ARRAY_BUFFER, this.qm, k.DYNAMIC_DRAW);
  15786. k.bindBuffer(k.ELEMENT_ARRAY_BUFFER, this.Vk);
  15787. k.bufferData(k.ELEMENT_ARRAY_BUFFER, this.Qb, k.DYNAMIC_DRAW);
  15788. this.Ac = q
  15789. }
  15790. });
  15791. C.yU.create = function(c, d, f) {
  15792. return new C.yU(c, d, f)
  15793. };
  15794. C.sma = C.O.extend({
  15795. aL: s,
  15796. hp: s,
  15797. Eaa: s,
  15798. fA: s,
  15799. ctor: function() {
  15800. C.LV();
  15801. this.fA = C.t;
  15802. this.Eaa = [0, 0, 0, 0];
  15803. this.hp = s;
  15804. this.aL = this.fA.createFramebuffer()
  15805. },
  15806. yCa: function(c) {
  15807. var d = this.fA;
  15808. this.hp = d.getParameter(d.FRAMEBUFFER_BINDING);
  15809. d.bindFramebuffer(d.FRAMEBUFFER, this.aL);
  15810. d.framebufferTexture2D(d.FRAMEBUFFER, d.COLOR_ATTACHMENT0, d.TEXTURE_2D, c.Sh, 0);
  15811. d.checkFramebufferStatus(d.FRAMEBUFFER) != d.FRAMEBUFFER_COMPLETE && C.log("Frame Grabber: could not attach texture to frmaebuffer");
  15812. d.bindFramebuffer(d.FRAMEBUFFER, this.hp)
  15813. },
  15814. mxa: function() {
  15815. var c = this.fA;
  15816. this.hp = c.getParameter(c.FRAMEBUFFER_BINDING);
  15817. c.bindFramebuffer(c.FRAMEBUFFER, this.aL);
  15818. this.Eaa = c.getParameter(c.COLOR_CLEAR_VALUE);
  15819. c.clearColor(0, 0, 0, 0);
  15820. c.clear(c.COLOR_BUFFER_BIT | c.DEPTH_BUFFER_BIT)
  15821. },
  15822. Fwa: function() {
  15823. var c = this.fA;
  15824. c.bindFramebuffer(c.FRAMEBUFFER, this.hp);
  15825. c.colorMask(q, q, q, q)
  15826. },
  15827. vRa: function() {
  15828. this.fA.deleteFramebuffer(this.aL)
  15829. }
  15830. });
  15831. C.Gy = -1;
  15832. C.xg = C.O.extend({
  15833. originalTarget: s,
  15834. target: s,
  15835. tag: C.Gy,
  15836. ctor: function() {
  15837. this.target = this.originalTarget = s;
  15838. this.tag = C.Gy
  15839. },
  15840. copy: function() {
  15841. C.log("copy is deprecated. Please use clone instead.");
  15842. return this.s()
  15843. },
  15844. s: function() {
  15845. var c = new C.xg;
  15846. c.originalTarget = s;
  15847. c.target = s;
  15848. c.tag = this.tag;
  15849. return c
  15850. },
  15851. ik: B(q),
  15852. R: function(c) {
  15853. this.target = this.originalTarget = c
  15854. },
  15855. stop: function() {
  15856. this.target = s
  15857. },
  15858. step: function() {
  15859. C.log("[Action step]. override me")
  15860. },
  15861. update: function() {
  15862. C.log("[Action update]. override me")
  15863. },
  15864. zea: A("target"),
  15865. pJ: x("target"),
  15866. HVa: A("originalTarget"),
  15867. J4a: x("originalTarget"),
  15868. Fm: A("tag"),
  15869. Qm: x("tag"),
  15870. fR: u(),
  15871. rh: u()
  15872. });
  15873. C.xg.create = function() {
  15874. return new C.xg
  15875. };
  15876. C.kq = C.xg.extend({
  15877. D: 0,
  15878. ctor: function() {
  15879. C.xg.prototype.ctor.call(this);
  15880. this.D = 0
  15881. },
  15882. Rr: function() {
  15883. return this.D * (this.ke || 1)
  15884. },
  15885. Wh: x("D"),
  15886. reverse: function() {
  15887. C.log("cocos2d: FiniteTimeAction#reverse: Implement me");
  15888. return s
  15889. },
  15890. s: function() {
  15891. return new C.kq
  15892. }
  15893. });
  15894. C.AE = C.xg.extend({
  15895. Hf: 0,
  15896. Cc: s,
  15897. ctor: function(c, d) {
  15898. C.xg.prototype.ctor.call(this);
  15899. this.Hf = 0;
  15900. this.Cc = s;
  15901. c && this.Ba(c, d)
  15902. },
  15903. MP: A("Hf"),
  15904. Xh: x("Hf"),
  15905. Ba: function(c, d) {
  15906. c || e("cc.Speed.initWithAction(): action must be non nil");
  15907. this.Cc = c;
  15908. this.Hf = d;
  15909. return q
  15910. },
  15911. s: function() {
  15912. var c = new C.AE;
  15913. c.Ba(this.Cc.s(), this.Hf);
  15914. return c
  15915. },
  15916. R: function(c) {
  15917. C.xg.prototype.R.call(this, c);
  15918. this.Cc.R(c)
  15919. },
  15920. stop: function() {
  15921. this.Cc.stop();
  15922. C.xg.prototype.stop.call(this)
  15923. },
  15924. step: function(c) {
  15925. this.Cc.step(c * this.Hf)
  15926. },
  15927. ik: function() {
  15928. return this.Cc.ik()
  15929. },
  15930. reverse: function() {
  15931. return C.AE.create(this.Cc.reverse(), this.Hf)
  15932. },
  15933. Hha: function(c) {
  15934. this.Cc != c && (this.Cc = c)
  15935. },
  15936. r0: A("Cc")
  15937. });
  15938. C.AE.create = function(c, d) {
  15939. return new C.AE(c, d)
  15940. };
  15941. C.tK = C.xg.extend({
  15942. Zz: s,
  15943. vz: t,
  15944. AL: t,
  15945. GM: s,
  15946. GF: s,
  15947. Px: 0,
  15948. dy: 0,
  15949. zy: 0,
  15950. rx: 0,
  15951. IZ: s,
  15952. ctor: function(c, d) {
  15953. C.xg.prototype.ctor.call(this);
  15954. this.Zz = s;
  15955. this.AL = this.vz = t;
  15956. this.GF = this.GM = s;
  15957. this.rx = this.zy = this.dy = this.Px = 0;
  15958. this.IZ = C.rect(0, 0, 0, 0);
  15959. c && (d ? this.jC(c, d) : this.jC(c))
  15960. },
  15961. s: function() {
  15962. var c = new C.tK,
  15963. d = this.IZ;
  15964. c.jC(this.Zz, new C.az(d.x, d.y, d.width, d.height));
  15965. return c
  15966. },
  15967. lYa: A("vz"),
  15968. z3a: x("vz"),
  15969. jC: function(c, d) {
  15970. c || e("cc.Follow.initWithAction(): followedNode must be non nil");
  15971. d = d || C.rect(0, 0, 0, 0);
  15972. this.Zz = c;
  15973. this.IZ = d;
  15974. this.vz = !C.wG(d);
  15975. this.AL = t;
  15976. var f = C.Q.aa;
  15977. this.GF = C.d(f.width, f.height);
  15978. this.GM = C.Wp(this.GF, 0.5);
  15979. this.vz && (this.Px = -(d.x + d.width - this.GF.x), this.dy = -d.x, this.zy = -d.y, this.rx = -(d.y + d.height - this.GF.y), this.dy < this.Px && (this.dy = this.Px = (this.Px + this.dy) / 2), this.zy < this.rx && (this.zy = this.rx = (this.zy + this.rx) / 2), this.zy == this.rx && this.Px == this.dy && (this.AL = q));
  15980. return q
  15981. },
  15982. step: function() {
  15983. var c = this.Zz.x,
  15984. d = this.Zz.y,
  15985. c = this.GM.x - c,
  15986. d = this.GM.y - d;
  15987. this.vz ? this.AL || this.target.p(C.Nf(c, this.Px, this.dy), C.Nf(d, this.rx, this.zy)) : this.target.p(c, d)
  15988. },
  15989. ik: function() {
  15990. return ! this.Zz.running
  15991. },
  15992. stop: function() {
  15993. this.target = s;
  15994. C.xg.prototype.stop.call(this)
  15995. }
  15996. });
  15997. C.tK.create = function(c, d) {
  15998. return new C.tK(c, d)
  15999. };
  16000. C.N = C.kq.extend({
  16001. Bc: 0,
  16002. wM: t,
  16003. Wl: s,
  16004. ke: 1,
  16005. xG: t,
  16006. UA: t,
  16007. Hf: 1,
  16008. JG: t,
  16009. ctor: function(c) {
  16010. this.ke = this.Hf = 1;
  16011. this.xG = t;
  16012. this.MAX_VALUE = 2;
  16013. this.JG = this.UA = t;
  16014. C.kq.prototype.ctor.call(this);
  16015. c !== m && this.k(c)
  16016. },
  16017. rUa: A("Bc"),
  16018. k: function(c) {
  16019. this.D = 0 === c ? C.rK: c;
  16020. this.Bc = 0;
  16021. return this.wM = q
  16022. },
  16023. ik: function() {
  16024. return this.Bc >= this.D
  16025. },
  16026. vb: function(c) {
  16027. c.xG = this.xG;
  16028. c.Hf = this.Hf;
  16029. c.ke = this.ke;
  16030. c.Wl = this.Wl;
  16031. c.JG = this.JG;
  16032. c.UA = this.UA
  16033. },
  16034. si: function(c) {
  16035. if (this.Wl) {
  16036. c.Wl = [];
  16037. for (var d = 0; d < this.Wl.length; d++) c.Wl.push(this.Wl[d].reverse())
  16038. }
  16039. },
  16040. s: function() {
  16041. var c = new C.N(this.D);
  16042. this.vb(c);
  16043. return c
  16044. },
  16045. ra: function(c) {
  16046. this.Wl ? this.Wl.length = 0 : this.Wl = [];
  16047. for (var d = 0; d < arguments.length; d++) this.Wl.push(arguments[d]);
  16048. return this
  16049. },
  16050. Bg: function(c) {
  16051. var d = this.Wl;
  16052. if (!d || 0 === d.length) return c;
  16053. for (var f = 0,
  16054. g = d.length; f < g; f++) c = d[f].ra(c);
  16055. return c
  16056. },
  16057. step: function(c) {
  16058. this.wM ? (this.wM = t, this.Bc = 0) : this.Bc += c;
  16059. c = this.Bc / (1.192092896E-7 < this.D ? this.D: 1.192092896E-7);
  16060. c = 1 > c ? c: 1;
  16061. this.update(0 < c ? c: 0);
  16062. this.UA && (1 < this.ke && this.ik()) && (this.xG || this.ke--, this.R(this.target), this.step(this.Bc - this.D))
  16063. },
  16064. R: function(c) {
  16065. C.xg.prototype.R.call(this, c);
  16066. this.Bc = 0;
  16067. this.wM = q
  16068. },
  16069. reverse: function() {
  16070. C.log("cc.IntervalAction: reverse not implemented.");
  16071. return s
  16072. },
  16073. fy: function() {
  16074. C.log("cc.ActionInterval.setAmplitudeRate(): it should be overridden in subclass.")
  16075. },
  16076. Fx: function() {
  16077. C.log("cc.ActionInterval.getAmplitudeRate(): it should be overridden in subclass.");
  16078. return 0
  16079. },
  16080. speed: function(c) {
  16081. if (0 >= c) return C.log("The speed parameter error"),
  16082. this;
  16083. this.JG = q;
  16084. this.Hf *= c;
  16085. return this
  16086. },
  16087. MP: A("Hf"),
  16088. Xh: function(c) {
  16089. this.Hf = c;
  16090. return this
  16091. },
  16092. repeat: function(c) {
  16093. c = Math.round(c);
  16094. if (isNaN(c) || 1 > c) return C.log("The repeat parameter error"),
  16095. this;
  16096. this.UA = q;
  16097. this.ke *= c;
  16098. return this
  16099. },
  16100. cR: function() {
  16101. this.UA = q;
  16102. this.ke = this.MAX_VALUE;
  16103. this.xG = q;
  16104. return this
  16105. }
  16106. });
  16107. C.N.create = function(c) {
  16108. return new C.N(c)
  16109. };
  16110. C.La = C.N.extend({
  16111. Lo: s,
  16112. Lba: s,
  16113. ZF: 0,
  16114. ctor: function(c) {
  16115. C.N.prototype.ctor.call(this);
  16116. this.Lo = [];
  16117. var d = c instanceof Array ? c: arguments,
  16118. f = d.length - 1;
  16119. 0 <= f && d[f] == s && C.log("parameters should not be ending with null in Javascript");
  16120. if (0 <= f) {
  16121. for (var g = d[0], h = 1; h < f; h++) d[h] && (g = C.La.wq(g, d[h]));
  16122. this.Nx(g, d[f])
  16123. }
  16124. },
  16125. Nx: function(c, d) { (!c || !d) && e("cc.Sequence.initWithTwoActions(): arguments must all be non nil");
  16126. this.k(c.D + d.D);
  16127. this.Lo[0] = c;
  16128. this.Lo[1] = d;
  16129. return q
  16130. },
  16131. s: function() {
  16132. var c = new C.La;
  16133. this.vb(c);
  16134. c.Nx(this.Lo[0].s(), this.Lo[1].s());
  16135. return c
  16136. },
  16137. R: function(c) {
  16138. C.N.prototype.R.call(this, c);
  16139. this.Lba = this.Lo[0].D / this.D;
  16140. this.ZF = -1
  16141. },
  16142. stop: function() { - 1 !== this.ZF && this.Lo[this.ZF].stop();
  16143. C.xg.prototype.stop.call(this)
  16144. },
  16145. update: function(c) {
  16146. c = this.Bg(c);
  16147. var d = 0,
  16148. f = this.Lba,
  16149. g = this.Lo,
  16150. h = this.ZF;
  16151. c < f ? (c = 0 !== f ? c / f: 1, 0 === d && 1 === h && (g[1].update(0), g[1].stop())) : (d = 1, c = 1 === f ? 1 : (c - f) / (1 - f), -1 === h && (g[0].R(this.target), g[0].update(1), g[0].stop()), h || (g[0].update(1), g[0].stop()));
  16152. h === d && g[d].ik() || (h !== d && g[d].R(this.target), g[d].update(c), this.ZF = d)
  16153. },
  16154. reverse: function() {
  16155. var c = C.La.wq(this.Lo[1].reverse(), this.Lo[0].reverse());
  16156. this.vb(c);
  16157. this.si(c);
  16158. return c
  16159. }
  16160. });
  16161. C.La.create = function(c) {
  16162. var d = c instanceof Array ? c: arguments;
  16163. 0 < d.length && d[d.length - 1] == s && C.log("parameters should not be ending with null in Javascript");
  16164. for (var f = d[0], g = 1; g < d.length; g++) d[g] && (f = C.La.wq(f, d[g]));
  16165. return f
  16166. };
  16167. C.La.wq = function(c, d) {
  16168. var f = new C.La;
  16169. f.Nx(c, d);
  16170. return f
  16171. };
  16172. C.uE = C.N.extend({
  16173. ke: 0,
  16174. ku: 0,
  16175. AX: 0,
  16176. X8: t,
  16177. Cc: s,
  16178. ctor: function(c, d) {
  16179. C.N.prototype.ctor.call(this);
  16180. d !== m && this.Ba(c, d)
  16181. },
  16182. Ba: function(c, d) {
  16183. return this.k(c.D * d) ? (this.ke = d, this.Cc = c, c instanceof C.yh && (this.X8 = q, this.ke -= 1), this.ku = 0, q) : t
  16184. },
  16185. s: function() {
  16186. var c = new C.uE;
  16187. this.vb(c);
  16188. c.Ba(this.Cc.s(), this.ke);
  16189. return c
  16190. },
  16191. R: function(c) {
  16192. this.ku = 0;
  16193. this.AX = this.Cc.D / this.D;
  16194. C.N.prototype.R.call(this, c);
  16195. this.Cc.R(c)
  16196. },
  16197. stop: function() {
  16198. this.Cc.stop();
  16199. C.xg.prototype.stop.call(this)
  16200. },
  16201. update: function(c) {
  16202. c = this.Bg(c);
  16203. var d = this.Cc,
  16204. f = this.D,
  16205. g = this.ke,
  16206. h = this.AX;
  16207. if (c >= h) {
  16208. for (; c > h && this.ku < g;) d.update(1),
  16209. this.ku++,
  16210. d.stop(),
  16211. d.R(this.target),
  16212. this.AX = h += d.D / f;
  16213. 1 <= c && this.ku < g && this.ku++;
  16214. this.X8 || (this.ku === g ? (d.update(1), d.stop()) : d.update(c - (h - d.D / f)))
  16215. } else d.update(c * g % 1)
  16216. },
  16217. ik: function() {
  16218. return this.ku == this.ke
  16219. },
  16220. reverse: function() {
  16221. var c = C.uE.create(this.Cc.reverse(), this.ke);
  16222. this.vb(c);
  16223. this.si(c);
  16224. return c
  16225. },
  16226. Hha: function(c) {
  16227. this.Cc != c && (this.Cc = c)
  16228. },
  16229. r0: A("Cc")
  16230. });
  16231. C.uE.create = function(c, d) {
  16232. return new C.uE(c, d)
  16233. };
  16234. C.vE = C.N.extend({
  16235. Cc: s,
  16236. ctor: function(c) {
  16237. C.N.prototype.ctor.call(this);
  16238. this.Cc = s;
  16239. c && this.Ba(c)
  16240. },
  16241. Ba: function(c) {
  16242. c || e("cc.RepeatForever.initWithAction(): action must be non null");
  16243. this.Cc = c;
  16244. return q
  16245. },
  16246. s: function() {
  16247. var c = new C.vE;
  16248. this.vb(c);
  16249. c.Ba(this.Cc.s());
  16250. return c
  16251. },
  16252. R: function(c) {
  16253. C.N.prototype.R.call(this, c);
  16254. this.Cc.R(c)
  16255. },
  16256. step: function(c) {
  16257. var d = this.Cc;
  16258. d.step(c);
  16259. d.ik() && (d.R(this.target), d.step(d.Bc - d.D))
  16260. },
  16261. ik: B(t),
  16262. reverse: function() {
  16263. var c = C.vE.create(this.Cc.reverse());
  16264. this.vb(c);
  16265. this.si(c);
  16266. return c
  16267. },
  16268. Hha: function(c) {
  16269. this.Cc != c && (this.Cc = c)
  16270. },
  16271. r0: A("Cc")
  16272. });
  16273. C.vE.create = function(c) {
  16274. return new C.vE(c)
  16275. };
  16276. C.ci = C.N.extend({
  16277. ir: s,
  16278. Gr: s,
  16279. ctor: function(c) {
  16280. C.N.prototype.ctor.call(this);
  16281. this.Gr = this.ir = s;
  16282. var d = c instanceof Array ? c: arguments,
  16283. f = d.length - 1;
  16284. 0 <= f && d[f] == s && C.log("parameters should not be ending with null in Javascript");
  16285. if (0 <= f) {
  16286. for (var g = d[0], h = 1; h < f; h++) d[h] && (g = C.ci.wq(g, d[h]));
  16287. this.Nx(g, d[f])
  16288. }
  16289. },
  16290. Nx: function(c, d) { (!c || !d) && e("cc.Spawn.initWithTwoActions(): arguments must all be non null");
  16291. var f = t,
  16292. g = c.D,
  16293. h = d.D;
  16294. this.k(Math.max(g, h)) && (this.ir = c, this.Gr = d, g > h ? this.Gr = C.La.wq(d, C.fd.create(g - h)) : g < h && (this.ir = C.La.wq(c, C.fd.create(h - g))), f = q);
  16295. return f
  16296. },
  16297. s: function() {
  16298. var c = new C.ci;
  16299. this.vb(c);
  16300. c.Nx(this.ir.s(), this.Gr.s());
  16301. return c
  16302. },
  16303. R: function(c) {
  16304. C.N.prototype.R.call(this, c);
  16305. this.ir.R(c);
  16306. this.Gr.R(c)
  16307. },
  16308. stop: function() {
  16309. this.ir.stop();
  16310. this.Gr.stop();
  16311. C.xg.prototype.stop.call(this)
  16312. },
  16313. update: function(c) {
  16314. c = this.Bg(c);
  16315. this.ir && this.ir.update(c);
  16316. this.Gr && this.Gr.update(c)
  16317. },
  16318. reverse: function() {
  16319. var c = C.ci.wq(this.ir.reverse(), this.Gr.reverse());
  16320. this.vb(c);
  16321. this.si(c);
  16322. return c
  16323. }
  16324. });
  16325. C.ci.create = function(c) {
  16326. var d = c instanceof Array ? c: arguments;
  16327. 0 < d.length && d[d.length - 1] == s && C.log("parameters should not be ending with null in Javascript");
  16328. for (var f = d[0], g = 1; g < d.length; g++) d[g] != s && (f = C.ci.wq(f, d[g]));
  16329. return f
  16330. };
  16331. C.ci.wq = function(c, d) {
  16332. var f = new C.ci;
  16333. f.Nx(c, d);
  16334. return f
  16335. };
  16336. C.wE = C.N.extend({
  16337. hM: 0,
  16338. LG: 0,
  16339. K9: 0,
  16340. nW: 0,
  16341. dB: 0,
  16342. L9: 0,
  16343. ctor: function(c, d, f) {
  16344. C.N.prototype.ctor.call(this);
  16345. d !== m && this.k(c, d, f)
  16346. },
  16347. k: function(c, d, f) {
  16348. return C.N.prototype.k.call(this, c) ? (this.hM = d || 0, this.nW = f || this.hM, q) : t
  16349. },
  16350. s: function() {
  16351. var c = new C.wE;
  16352. this.vb(c);
  16353. c.k(this.D, this.hM, this.nW);
  16354. return c
  16355. },
  16356. R: function(c) {
  16357. C.N.prototype.R.call(this, c);
  16358. var d = c.rotationX % 360,
  16359. f = this.hM - d;
  16360. 180 < f && (f -= 360); - 180 > f && (f += 360);
  16361. this.LG = d;
  16362. this.K9 = f;
  16363. this.dB = c.rotationY % 360;
  16364. c = this.nW - this.dB;
  16365. 180 < c && (c -= 360); - 180 > c && (c += 360);
  16366. this.L9 = c
  16367. },
  16368. reverse: function() {
  16369. C.log("cc.RotateTo.reverse(): it should be overridden in subclass.")
  16370. },
  16371. update: function(c) {
  16372. c = this.Bg(c);
  16373. this.target && (this.target.rotationX = this.LG + this.K9 * c, this.target.rotationY = this.dB + this.L9 * c)
  16374. }
  16375. });
  16376. C.wE.create = function(c, d, f) {
  16377. return new C.wE(c, d, f)
  16378. };
  16379. C.Ds = C.N.extend({
  16380. cn: 0,
  16381. LG: 0,
  16382. jL: 0,
  16383. dB: 0,
  16384. ctor: function(c, d, f) {
  16385. C.N.prototype.ctor.call(this);
  16386. d !== m && this.k(c, d, f)
  16387. },
  16388. k: function(c, d, f) {
  16389. return C.N.prototype.k.call(this, c) ? (this.cn = d || 0, this.jL = f || this.cn, q) : t
  16390. },
  16391. s: function() {
  16392. var c = new C.Ds;
  16393. this.vb(c);
  16394. c.k(this.D, this.cn, this.jL);
  16395. return c
  16396. },
  16397. R: function(c) {
  16398. C.N.prototype.R.call(this, c);
  16399. this.LG = c.rotationX;
  16400. this.dB = c.rotationY
  16401. },
  16402. update: function(c) {
  16403. c = this.Bg(c);
  16404. this.target && (this.target.rotationX = this.LG + this.cn * c, this.target.rotationY = this.dB + this.jL * c)
  16405. },
  16406. reverse: function() {
  16407. var c = C.Ds.create(this.D, -this.cn, -this.jL);
  16408. this.vb(c);
  16409. this.si(c);
  16410. return c
  16411. }
  16412. });
  16413. C.Ds.create = function(c, d, f) {
  16414. var g = new C.Ds;
  16415. g.k(c, d, f);
  16416. return g
  16417. };
  16418. C.Dk = C.N.extend({
  16419. kp: s,
  16420. of: s,
  16421. Ff: s,
  16422. ctor: function(c, d, f) {
  16423. C.N.prototype.ctor.call(this);
  16424. this.kp = C.d(0, 0);
  16425. this.of = C.d(0, 0);
  16426. this.Ff = C.d(0, 0);
  16427. d !== m && this.k(c, d, f)
  16428. },
  16429. k: function(c, d, f) {
  16430. return C.N.prototype.k.call(this, c) ? (d.x !== m && (f = d.y, d = d.x), this.kp.x = d, this.kp.y = f, q) : t
  16431. },
  16432. s: function() {
  16433. var c = new C.Dk;
  16434. this.vb(c);
  16435. c.k(this.D, this.kp);
  16436. return c
  16437. },
  16438. R: function(c) {
  16439. C.N.prototype.R.call(this, c);
  16440. var d = c.Rc();
  16441. c = c.Vd();
  16442. this.Ff.x = d;
  16443. this.Ff.y = c;
  16444. this.of.x = d;
  16445. this.of.y = c
  16446. },
  16447. update: function(c) {
  16448. c = this.Bg(c);
  16449. if (this.target) {
  16450. var d = this.kp.x * c;
  16451. c *= this.kp.y;
  16452. var f = this.of;
  16453. if (C.iK) {
  16454. var g = this.target.Vd(),
  16455. h = this.Ff;
  16456. f.x = f.x + this.target.Rc() - h.x;
  16457. f.y = f.y + g - h.y;
  16458. d += f.x;
  16459. c += f.y;
  16460. h.x = d;
  16461. h.y = c;
  16462. this.target.p(d, c)
  16463. } else this.target.p(f.x + d, f.y + c)
  16464. }
  16465. },
  16466. reverse: function() {
  16467. var c = C.Dk.create(this.D, C.d( - this.kp.x, -this.kp.y));
  16468. this.vb(c);
  16469. this.si(c);
  16470. return c
  16471. }
  16472. });
  16473. C.Dk.create = function(c, d, f) {
  16474. return new C.Dk(c, d, f)
  16475. };
  16476. C.Bs = C.Dk.extend({
  16477. Sk: s,
  16478. ctor: function(c, d, f) {
  16479. C.Dk.prototype.ctor.call(this);
  16480. this.Sk = C.d(0, 0);
  16481. d !== m && this.k(c, d, f)
  16482. },
  16483. k: function(c, d, f) {
  16484. return C.Dk.prototype.k.call(this, c, d, f) ? (d.x !== m && (f = d.y, d = d.x), this.Sk.x = d, this.Sk.y = f, q) : t
  16485. },
  16486. s: function() {
  16487. var c = new C.Bs;
  16488. this.vb(c);
  16489. c.k(this.D, this.Sk);
  16490. return c
  16491. },
  16492. R: function(c) {
  16493. C.Dk.prototype.R.call(this, c);
  16494. this.kp.x = this.Sk.x - c.Rc();
  16495. this.kp.y = this.Sk.y - c.Vd()
  16496. }
  16497. });
  16498. C.Bs.create = function(c, d, f) {
  16499. return new C.Bs(c, d, f)
  16500. };
  16501. C.rq = C.N.extend({
  16502. ig: 0,
  16503. jg: 0,
  16504. dO: 0,
  16505. eO: 0,
  16506. nM: 0,
  16507. oM: 0,
  16508. Nj: 0,
  16509. Oj: 0,
  16510. ctor: function(c, d, f) {
  16511. C.N.prototype.ctor.call(this);
  16512. f !== m && this.k(c, d, f)
  16513. },
  16514. k: function(c, d, f) {
  16515. var g = t;
  16516. C.N.prototype.k.call(this, c) && (this.nM = d, this.oM = f, g = q);
  16517. return g
  16518. },
  16519. s: function() {
  16520. var c = new C.rq;
  16521. this.vb(c);
  16522. c.k(this.D, this.nM, this.oM);
  16523. return c
  16524. },
  16525. R: function(c) {
  16526. C.N.prototype.R.call(this, c);
  16527. this.dO = c.skewX % 180;
  16528. this.Nj = this.nM - this.dO;
  16529. 180 < this.Nj && (this.Nj -= 360); - 180 > this.Nj && (this.Nj += 360);
  16530. this.eO = c.skewY % 360;
  16531. this.Oj = this.oM - this.eO;
  16532. 180 < this.Oj && (this.Oj -= 360); - 180 > this.Oj && (this.Oj += 360)
  16533. },
  16534. update: function(c) {
  16535. c = this.Bg(c);
  16536. this.target.skewX = this.dO + this.Nj * c;
  16537. this.target.skewY = this.eO + this.Oj * c
  16538. }
  16539. });
  16540. C.rq.create = function(c, d, f) {
  16541. return new C.rq(c, d, f)
  16542. };
  16543. C.zE = C.rq.extend({
  16544. ctor: function(c, d, f) {
  16545. C.rq.prototype.ctor.call(this);
  16546. f !== m && this.k(c, d, f)
  16547. },
  16548. k: function(c, d, f) {
  16549. var g = t;
  16550. C.rq.prototype.k.call(this, c, d, f) && (this.ig = d, this.jg = f, g = q);
  16551. return g
  16552. },
  16553. s: function() {
  16554. var c = new C.zE;
  16555. this.vb(c);
  16556. c.k(this.D, this.ig, this.jg);
  16557. return c
  16558. },
  16559. R: function(c) {
  16560. C.rq.prototype.R.call(this, c);
  16561. this.Nj = this.ig;
  16562. this.Oj = this.jg;
  16563. this.nM = this.dO + this.Nj;
  16564. this.oM = this.eO + this.Oj
  16565. },
  16566. reverse: function() {
  16567. var c = C.zE.create(this.D, -this.ig, -this.jg);
  16568. this.vb(c);
  16569. this.si(c);
  16570. return c
  16571. }
  16572. });
  16573. C.zE.create = function(c, d, f) {
  16574. var g = new C.zE;
  16575. g && g.k(c, d, f);
  16576. return g
  16577. };
  16578. C.Ao = C.N.extend({
  16579. of: s,
  16580. Wo: s,
  16581. RF: 0,
  16582. ar: 0,
  16583. Ff: s,
  16584. ctor: function(c, d, f, g, h) {
  16585. C.N.prototype.ctor.call(this);
  16586. this.of = C.d(0, 0);
  16587. this.Ff = C.d(0, 0);
  16588. this.Wo = C.d(0, 0);
  16589. g !== m && this.k(c, d, f, g, h)
  16590. },
  16591. k: function(c, d, f, g, h) {
  16592. return C.N.prototype.k.call(this, c) ? (h === m && (h = g, g = f, f = d.y, d = d.x), this.Wo.x = d, this.Wo.y = f, this.RF = g, this.ar = h, q) : t
  16593. },
  16594. s: function() {
  16595. var c = new C.Ao;
  16596. this.vb(c);
  16597. c.k(this.D, this.Wo, this.RF, this.ar);
  16598. return c
  16599. },
  16600. R: function(c) {
  16601. C.N.prototype.R.call(this, c);
  16602. var d = c.Rc();
  16603. c = c.Vd();
  16604. this.Ff.x = d;
  16605. this.Ff.y = c;
  16606. this.of.x = d;
  16607. this.of.y = c
  16608. },
  16609. update: function(c) {
  16610. c = this.Bg(c);
  16611. if (this.target) {
  16612. var d = c * this.ar % 1,
  16613. d = 4 * this.RF * d * (1 - d),
  16614. d = d + this.Wo.y * c;
  16615. c *= this.Wo.x;
  16616. var f = this.of;
  16617. if (C.iK) {
  16618. var g = this.target.Vd(),
  16619. h = this.Ff;
  16620. f.x = f.x + this.target.Rc() - h.x;
  16621. f.y = f.y + g - h.y;
  16622. c += f.x;
  16623. d += f.y;
  16624. h.x = c;
  16625. h.y = d;
  16626. this.target.p(c, d)
  16627. } else this.target.p(f.x + c, f.y + d)
  16628. }
  16629. },
  16630. reverse: function() {
  16631. var c = C.Ao.create(this.D, C.d( - this.Wo.x, -this.Wo.y), this.RF, this.ar);
  16632. this.vb(c);
  16633. this.si(c);
  16634. return c
  16635. }
  16636. });
  16637. C.Ao.create = function(c, d, f, g, h) {
  16638. return new C.Ao(c, d, f, g, h)
  16639. };
  16640. C.uK = C.Ao.extend({
  16641. Sk: s,
  16642. ctor: function(c, d, f, g, h) {
  16643. C.Ao.prototype.ctor.call(this);
  16644. this.Sk = C.d(0, 0);
  16645. g !== m && this.k(c, d, f, g, h)
  16646. },
  16647. k: function(c, d, f, g, h) {
  16648. return C.Ao.prototype.k.call(this, c, d, f, g, h) ? (h === m && (f = d.y, d = d.x), this.Sk.x = d, this.Sk.y = f, q) : t
  16649. },
  16650. R: function(c) {
  16651. C.Ao.prototype.R.call(this, c);
  16652. this.Wo.x = this.Sk.x - this.of.x;
  16653. this.Wo.y = this.Sk.y - this.of.y
  16654. },
  16655. s: function() {
  16656. var c = new C.uK;
  16657. this.vb(c);
  16658. c.k(this.D, this.Sk, this.RF, this.ar);
  16659. return c
  16660. }
  16661. });
  16662. C.uK.create = function(c, d, f, g, h) {
  16663. return new C.uK(c, d, f, g, h)
  16664. };
  16665. C.Ica = function(c, d, f, g) {
  16666. return 0 * Math.pow(1 - g, 3) + 3 * g * Math.pow(1 - g, 2) * c + 3 * Math.pow(g, 2) * (1 - g) * d + Math.pow(g, 3) * f
  16667. };
  16668. C.vs = C.N.extend({
  16669. Nk: s,
  16670. of: s,
  16671. Ff: s,
  16672. ctor: function(c, d) {
  16673. C.N.prototype.ctor.call(this);
  16674. this.Nk = [];
  16675. this.of = C.d(0, 0);
  16676. this.Ff = C.d(0, 0);
  16677. d && this.k(c, d)
  16678. },
  16679. k: function(c, d) {
  16680. return C.N.prototype.k.call(this, c) ? (this.Nk = d, q) : t
  16681. },
  16682. s: function() {
  16683. var c = new C.vs;
  16684. this.vb(c);
  16685. for (var d = [], f = 0; f < this.Nk.length; f++) {
  16686. var g = this.Nk[f];
  16687. d.push(C.d(g.x, g.y))
  16688. }
  16689. c.k(this.D, d);
  16690. return c
  16691. },
  16692. R: function(c) {
  16693. C.N.prototype.R.call(this, c);
  16694. var d = c.Rc();
  16695. c = c.Vd();
  16696. this.Ff.x = d;
  16697. this.Ff.y = c;
  16698. this.of.x = d;
  16699. this.of.y = c
  16700. },
  16701. update: function(c) {
  16702. c = this.Bg(c);
  16703. if (this.target) {
  16704. var d = this.Nk,
  16705. f = C.Ica(d[0].x, d[1].x, d[2].x, c);
  16706. c = C.Ica(d[0].y, d[1].y, d[2].y, c);
  16707. d = this.of;
  16708. if (C.iK) {
  16709. var g = this.target.Vd(),
  16710. h = this.Ff;
  16711. d.x = d.x + this.target.Rc() - h.x;
  16712. d.y = d.y + g - h.y;
  16713. f += d.x;
  16714. c += d.y;
  16715. h.x = f;
  16716. h.y = c;
  16717. this.target.p(f, c)
  16718. } else this.target.p(d.x + f, d.y + c)
  16719. }
  16720. },
  16721. reverse: function() {
  16722. var c = this.Nk,
  16723. c = [C.ho(c[1], C.T1(c[2])), C.ho(c[0], C.T1(c[2])), C.T1(c[2])],
  16724. c = C.vs.create(this.D, c);
  16725. this.vb(c);
  16726. this.si(c);
  16727. return c
  16728. }
  16729. });
  16730. C.vs.create = function(c, d) {
  16731. return new C.vs(c, d)
  16732. };
  16733. C.QJ = C.vs.extend({
  16734. sO: s,
  16735. ctor: function(c, d) {
  16736. C.vs.prototype.ctor.call(this);
  16737. this.sO = [];
  16738. d && this.k(c, d)
  16739. },
  16740. k: function(c, d) {
  16741. return C.N.prototype.k.call(this, c) ? (this.sO = d, q) : t
  16742. },
  16743. s: function() {
  16744. var c = new C.QJ;
  16745. this.vb(c);
  16746. c.k(this.D, this.sO);
  16747. return c
  16748. },
  16749. R: function(c) {
  16750. C.vs.prototype.R.call(this, c);
  16751. c = this.of;
  16752. var d = this.sO,
  16753. f = this.Nk;
  16754. f[0] = C.cc(d[0], c);
  16755. f[1] = C.cc(d[1], c);
  16756. f[2] = C.cc(d[2], c)
  16757. }
  16758. });
  16759. C.QJ.create = function(c, d) {
  16760. return new C.QJ(c, d)
  16761. };
  16762. C.ae = C.N.extend({
  16763. ia: 1,
  16764. pa: 1,
  16765. OG: 1,
  16766. PG: 1,
  16767. Uz: 0,
  16768. Vz: 0,
  16769. Nj: 0,
  16770. Oj: 0,
  16771. ctor: function(c, d, f) {
  16772. C.N.prototype.ctor.call(this);
  16773. d !== m && this.k(c, d, f)
  16774. },
  16775. k: function(c, d, f) {
  16776. return C.N.prototype.k.call(this, c) ? (this.Uz = d, this.Vz = f != s ? f: d, q) : t
  16777. },
  16778. s: function() {
  16779. var c = new C.ae;
  16780. this.vb(c);
  16781. c.k(this.D, this.Uz, this.Vz);
  16782. return c
  16783. },
  16784. R: function(c) {
  16785. C.N.prototype.R.call(this, c);
  16786. this.OG = c.scaleX;
  16787. this.PG = c.scaleY;
  16788. this.Nj = this.Uz - this.OG;
  16789. this.Oj = this.Vz - this.PG
  16790. },
  16791. update: function(c) {
  16792. c = this.Bg(c);
  16793. this.target && (this.target.scaleX = this.OG + this.Nj * c, this.target.scaleY = this.PG + this.Oj * c)
  16794. }
  16795. });
  16796. C.ae.create = function(c, d, f) {
  16797. var g = new C.ae;
  16798. g.k(c, d, f);
  16799. return g
  16800. };
  16801. C.Av = C.ae.extend({
  16802. R: function(c) {
  16803. C.ae.prototype.R.call(this, c);
  16804. this.Nj = this.OG * this.Uz - this.OG;
  16805. this.Oj = this.PG * this.Vz - this.PG
  16806. },
  16807. reverse: function() {
  16808. var c = C.Av.create(this.D, 1 / this.Uz, 1 / this.Vz);
  16809. this.vb(c);
  16810. this.si(c);
  16811. return c
  16812. },
  16813. s: function() {
  16814. var c = new C.Av;
  16815. this.vb(c);
  16816. c.k(this.D, this.Uz, this.Vz);
  16817. return c
  16818. }
  16819. });
  16820. C.Av.create = function(c, d, f) {
  16821. return new C.Av(c, d, f)
  16822. };
  16823. C.yD = C.N.extend({
  16824. ke: 0,
  16825. Jaa: t,
  16826. ctor: function(c, d) {
  16827. C.N.prototype.ctor.call(this);
  16828. d !== m && this.k(c, d)
  16829. },
  16830. k: function(c, d) {
  16831. return C.N.prototype.k.call(this, c) ? (this.ke = d, q) : t
  16832. },
  16833. s: function() {
  16834. var c = new C.yD;
  16835. this.vb(c);
  16836. c.k(this.D, this.ke);
  16837. return c
  16838. },
  16839. update: function(c) {
  16840. c = this.Bg(c);
  16841. if (this.target && !this.ik()) {
  16842. var d = 1 / this.ke;
  16843. this.target.visible = c % d > d / 2
  16844. }
  16845. },
  16846. R: function(c) {
  16847. C.N.prototype.R.call(this, c);
  16848. this.Jaa = c.visible
  16849. },
  16850. stop: function() {
  16851. this.target.visible = this.Jaa;
  16852. C.N.prototype.stop.call(this)
  16853. },
  16854. reverse: function() {
  16855. var c = C.yD.create(this.D, this.ke);
  16856. this.vb(c);
  16857. this.si(c);
  16858. return c
  16859. }
  16860. });
  16861. C.yD.create = function(c, d) {
  16862. var f = new C.yD;
  16863. f.k(c, d);
  16864. return f
  16865. };
  16866. C.xo = C.N.extend({
  16867. nB: 0,
  16868. AM: 0,
  16869. ctor: function(c, d) {
  16870. C.N.prototype.ctor.call(this);
  16871. d !== m && this.k(c, d)
  16872. },
  16873. k: function(c, d) {
  16874. return C.N.prototype.k.call(this, c) ? (this.nB = d, q) : t
  16875. },
  16876. s: function() {
  16877. var c = new C.xo;
  16878. this.vb(c);
  16879. c.k(this.D, this.nB);
  16880. return c
  16881. },
  16882. update: function(c) {
  16883. c = this.Bg(c);
  16884. if (this.target.sb) {
  16885. var d = this.AM !== m ? this.AM: 255;
  16886. this.target.opacity = d + (this.nB - d) * c
  16887. }
  16888. },
  16889. R: function(c) {
  16890. C.N.prototype.R.call(this, c);
  16891. this.target.sb && (this.AM = c.opacity)
  16892. }
  16893. });
  16894. C.xo.create = function(c, d) {
  16895. return new C.xo(c, d)
  16896. };
  16897. C.Ry = C.xo.extend({
  16898. rY: s,
  16899. reverse: function() {
  16900. var c = new C.Sy;
  16901. c.k(this.D, 0);
  16902. this.vb(c);
  16903. this.si(c);
  16904. return c
  16905. },
  16906. s: function() {
  16907. var c = new C.Ry;
  16908. this.vb(c);
  16909. c.k(this.D, this.nB);
  16910. return c
  16911. },
  16912. R: function(c) {
  16913. this.rY && (this.nB = this.rY.AM);
  16914. C.xo.prototype.R.call(this, c)
  16915. }
  16916. });
  16917. C.Ry.create = function(c) {
  16918. return new C.Ry(c, 255)
  16919. };
  16920. C.Sy = C.xo.extend({
  16921. reverse: function() {
  16922. var c = new C.Ry;
  16923. c.rY = this;
  16924. c.k(this.D, 255);
  16925. this.vb(c);
  16926. this.si(c);
  16927. return c
  16928. },
  16929. s: function() {
  16930. var c = new C.Sy;
  16931. this.vb(c);
  16932. c.k(this.D, this.nB);
  16933. return c
  16934. }
  16935. });
  16936. C.Sy.create = function(c) {
  16937. var d = new C.Sy;
  16938. d.k(c, 0);
  16939. return d
  16940. };
  16941. C.ez = C.N.extend({
  16942. Jf: s,
  16943. Qc: s,
  16944. ctor: function(c, d, f, g) {
  16945. C.N.prototype.ctor.call(this);
  16946. this.Jf = C.color(0, 0, 0);
  16947. this.Qc = C.color(0, 0, 0);
  16948. g !== m && this.k(c, d, f, g)
  16949. },
  16950. k: function(c, d, f, g) {
  16951. return C.N.prototype.k.call(this, c) ? (this.Jf = C.color(d, f, g), q) : t
  16952. },
  16953. s: function() {
  16954. var c = new C.ez;
  16955. this.vb(c);
  16956. var d = this.Jf;
  16957. c.k(this.D, d.r, d.g, d.b);
  16958. return c
  16959. },
  16960. R: function(c) {
  16961. C.N.prototype.R.call(this, c);
  16962. this.target.sb && (this.Qc = this.target.color)
  16963. },
  16964. update: function(c) {
  16965. c = this.Bg(c);
  16966. var d = this.Qc,
  16967. f = this.Jf;
  16968. d && this.target.sb && (this.target.color = C.color(d.r + (f.r - d.r) * c, d.g + (f.g - d.g) * c, d.b + (f.b - d.b) * c))
  16969. }
  16970. });
  16971. C.ez.create = function(c, d, f, g) {
  16972. return new C.ez(c, d, f, g)
  16973. };
  16974. C.IE = C.N.extend({
  16975. ZL: 0,
  16976. YL: 0,
  16977. XL: 0,
  16978. G$: 0,
  16979. F$: 0,
  16980. E$: 0,
  16981. ctor: function(c, d, f, g) {
  16982. C.N.prototype.ctor.call(this);
  16983. g !== m && this.k(c, d, f, g)
  16984. },
  16985. k: function(c, d, f, g) {
  16986. return C.N.prototype.k.call(this, c) ? (this.ZL = d, this.YL = f, this.XL = g, q) : t
  16987. },
  16988. s: function() {
  16989. var c = new C.IE;
  16990. this.vb(c);
  16991. c.k(this.D, this.ZL, this.YL, this.XL);
  16992. return c
  16993. },
  16994. R: function(c) {
  16995. C.N.prototype.R.call(this, c);
  16996. c.sb && (c = c.color, this.G$ = c.r, this.F$ = c.g, this.E$ = c.b)
  16997. },
  16998. update: function(c) {
  16999. c = this.Bg(c);
  17000. this.target.sb && (this.target.color = C.color(this.G$ + this.ZL * c, this.F$ + this.YL * c, this.E$ + this.XL * c))
  17001. },
  17002. reverse: function() {
  17003. var c = C.IE.create(this.D, -this.ZL, -this.YL, -this.XL);
  17004. this.vb(c);
  17005. this.si(c);
  17006. return c
  17007. }
  17008. });
  17009. C.IE.create = function(c, d, f, g) {
  17010. return new C.IE(c, d, f, g)
  17011. };
  17012. C.fd = C.N.extend({
  17013. update: u(),
  17014. reverse: function() {
  17015. var c = C.fd.create(this.D);
  17016. this.vb(c);
  17017. this.si(c);
  17018. return c
  17019. },
  17020. s: function() {
  17021. var c = new C.fd;
  17022. this.vb(c);
  17023. c.k(this.D);
  17024. return c
  17025. }
  17026. });
  17027. C.fd.create = function(c) {
  17028. return new C.fd(c)
  17029. };
  17030. C.zv = C.N.extend({
  17031. kr: s,
  17032. ctor: function(c) {
  17033. C.N.prototype.ctor.call(this);
  17034. this.kr = s;
  17035. c && this.Ba(c)
  17036. },
  17037. Ba: function(c) {
  17038. c || e("cc.ReverseTime.initWithAction(): action must be non null");
  17039. c == this.kr && e("cc.ReverseTime.initWithAction(): the action was already passed in.");
  17040. return C.N.prototype.k.call(this, c.D) ? (this.kr = c, q) : t
  17041. },
  17042. s: function() {
  17043. var c = new C.zv;
  17044. this.vb(c);
  17045. c.Ba(this.kr.s());
  17046. return c
  17047. },
  17048. R: function(c) {
  17049. C.N.prototype.R.call(this, c);
  17050. this.kr.R(c)
  17051. },
  17052. update: function(c) {
  17053. c = this.Bg(c);
  17054. this.kr && this.kr.update(1 - c)
  17055. },
  17056. reverse: function() {
  17057. return this.kr.s()
  17058. },
  17059. stop: function() {
  17060. this.kr.stop();
  17061. C.xg.prototype.stop.call(this)
  17062. }
  17063. });
  17064. C.zv.create = function(c) {
  17065. return new C.zv(c)
  17066. };
  17067. C.uD = C.N.extend({
  17068. Us: s,
  17069. fG: 0,
  17070. JX: s,
  17071. rM: 0,
  17072. UY: s,
  17073. ctor: function(c) {
  17074. C.N.prototype.ctor.call(this);
  17075. this.UY = [];
  17076. c && this.Uea(c)
  17077. },
  17078. ll: A("Us"),
  17079. gy: x("Us"),
  17080. Uea: function(c) {
  17081. c || e("cc.Animate.initWithAnimation(): animation must be non-NULL");
  17082. var d = c.Rr();
  17083. if (this.k(d * c.dr)) {
  17084. this.fG = 0;
  17085. this.gy(c);
  17086. this.JX = s;
  17087. this.rM = 0;
  17088. var f = this.UY,
  17089. g = f.length = 0,
  17090. h = d / c.wp;
  17091. c = c.Lh;
  17092. C.yB(c, C.Cl);
  17093. for (var k = 0; k < c.length; k++) {
  17094. var n = g * h / d,
  17095. g = g + c[k].Jh;
  17096. f.push(n)
  17097. }
  17098. return q
  17099. }
  17100. return t
  17101. },
  17102. s: function() {
  17103. var c = new C.uD;
  17104. this.vb(c);
  17105. c.Uea(this.Us.s());
  17106. return c
  17107. },
  17108. R: function(c) {
  17109. C.N.prototype.R.call(this, c);
  17110. this.Us.Kw && (this.JX = c.Hya());
  17111. this.rM = this.fG = 0
  17112. },
  17113. update: function(c) {
  17114. c = this.Bg(c);
  17115. 1 > c && (c *= this.Us.dr, (0 | c) > this.rM && (this.fG = 0, this.rM++), c %= 1);
  17116. for (var d = this.Us.Lh,
  17117. f = d.length,
  17118. g = this.UY,
  17119. h = this.fG; h < f; h++) if (g[h] <= c) this.target.pc(d[h].nh()),
  17120. this.fG = h + 1;
  17121. else break
  17122. },
  17123. reverse: function() {
  17124. var c = this.Us,
  17125. d = c.Lh,
  17126. f = [];
  17127. C.yB(d, C.Cl);
  17128. if (0 < d.length) for (var g = d.length - 1; 0 <= g; g--) {
  17129. var h = d[g];
  17130. if (!h) break;
  17131. f.push(h.s())
  17132. }
  17133. d = C.gv.create(f, c.Jh, c.dr);
  17134. d.KR(c.Kw);
  17135. c = C.uD.create(d);
  17136. this.vb(c);
  17137. this.si(c);
  17138. return c
  17139. },
  17140. stop: function() {
  17141. this.Us.Kw && this.target && this.target.pc(this.JX);
  17142. C.xg.prototype.stop.call(this)
  17143. }
  17144. });
  17145. C.uD.create = function(c) {
  17146. return new C.uD(c)
  17147. };
  17148. C.XK = C.N.extend({
  17149. Ke: s,
  17150. $z: s,
  17151. ctor: function(c, d) {
  17152. C.N.prototype.ctor.call(this);
  17153. d && this.jC(c, d)
  17154. },
  17155. jC: function(c, d) {
  17156. return this.k(d.D) ? (this.$z = c, this.Ke = d, q) : t
  17157. },
  17158. s: function() {
  17159. var c = new C.XK;
  17160. this.vb(c);
  17161. c.jC(this.$z, this.Ke.s());
  17162. return c
  17163. },
  17164. R: function(c) {
  17165. C.N.prototype.R.call(this, c);
  17166. this.Ke.R(this.$z)
  17167. },
  17168. stop: function() {
  17169. this.Ke.stop()
  17170. },
  17171. update: function(c) {
  17172. c = this.Bg(c);
  17173. this.Ke.update(c)
  17174. },
  17175. IUa: A("$z"),
  17176. c4a: function(c) {
  17177. this.$z != c && (this.$z = c)
  17178. }
  17179. });
  17180. C.XK.create = function(c, d) {
  17181. return new C.XK(c, d)
  17182. };
  17183. C.yh = C.kq.extend({
  17184. ik: B(q),
  17185. step: function() {
  17186. this.update(1)
  17187. },
  17188. update: u(),
  17189. reverse: function() {
  17190. return this.s()
  17191. },
  17192. s: function() {
  17193. return new C.yh
  17194. }
  17195. });
  17196. C.Fj = C.yh.extend({
  17197. update: function() {
  17198. this.target.visible = q
  17199. },
  17200. reverse: function() {
  17201. return C.Fl.create()
  17202. },
  17203. s: function() {
  17204. return new C.Fj
  17205. }
  17206. });
  17207. C.Fj.create = function() {
  17208. return new C.Fj
  17209. };
  17210. C.Fl = C.yh.extend({
  17211. update: function() {
  17212. this.target.visible = t
  17213. },
  17214. reverse: function() {
  17215. return C.Fj.create()
  17216. },
  17217. s: function() {
  17218. return new C.Fl
  17219. }
  17220. });
  17221. C.Fl.create = function() {
  17222. return new C.Fl
  17223. };
  17224. C.JE = C.yh.extend({
  17225. update: function() {
  17226. this.target.visible = !this.target.visible
  17227. },
  17228. reverse: function() {
  17229. return new C.JE
  17230. },
  17231. s: function() {
  17232. return new C.JE
  17233. }
  17234. });
  17235. C.JE.create = function() {
  17236. return new C.JE
  17237. };
  17238. C.tE = C.yh.extend({
  17239. SM: q,
  17240. ctor: function(c) {
  17241. C.kq.prototype.ctor.call(this);
  17242. c !== m && this.j(c)
  17243. },
  17244. update: function() {
  17245. this.target.Lm(this.SM)
  17246. },
  17247. j: function(c) {
  17248. this.SM = c;
  17249. return q
  17250. },
  17251. reverse: function() {
  17252. return new C.tE(this.SM)
  17253. },
  17254. s: function() {
  17255. return new C.tE(this.SM)
  17256. }
  17257. });
  17258. C.tE.create = function(c) {
  17259. return new C.tE(c)
  17260. };
  17261. C.lE = C.yh.extend({
  17262. Bb: t,
  17263. ctor: function(c) {
  17264. C.kq.prototype.ctor.call(this);
  17265. this.Bb = t;
  17266. c !== m && this.Xea(c)
  17267. },
  17268. Xea: function(c) {
  17269. this.Bb = c;
  17270. return q
  17271. },
  17272. update: function() {
  17273. this.target.flippedX = this.Bb
  17274. },
  17275. reverse: function() {
  17276. return C.lE.create(!this.Bb)
  17277. },
  17278. s: function() {
  17279. var c = new C.lE;
  17280. c.Xea(this.Bb);
  17281. return c
  17282. }
  17283. });
  17284. C.lE.create = function(c) {
  17285. return new C.lE(c)
  17286. };
  17287. C.mE = C.yh.extend({
  17288. Db: t,
  17289. ctor: function(c) {
  17290. C.kq.prototype.ctor.call(this);
  17291. this.Db = t;
  17292. c !== m && this.Yea(c)
  17293. },
  17294. Yea: function(c) {
  17295. this.Db = c;
  17296. return q
  17297. },
  17298. update: function() {
  17299. this.target.flippedY = this.Db
  17300. },
  17301. reverse: function() {
  17302. return C.mE.create(!this.Db)
  17303. },
  17304. s: function() {
  17305. var c = new C.mE;
  17306. c.Yea(this.Db);
  17307. return c
  17308. }
  17309. });
  17310. C.mE.create = function(c) {
  17311. return new C.mE(c)
  17312. };
  17313. C.EK = C.yh.extend({
  17314. Pn: 0,
  17315. cj: 0,
  17316. ctor: function(c, d) {
  17317. C.kq.prototype.ctor.call(this);
  17318. this.cj = this.Pn = 0;
  17319. c !== m && (c.x !== m && (d = c.y, c = c.x), this.bfa(c, d))
  17320. },
  17321. bfa: function(c, d) {
  17322. this.Pn = c;
  17323. this.cj = d;
  17324. return q
  17325. },
  17326. update: function() {
  17327. this.target.p(this.Pn, this.cj)
  17328. },
  17329. s: function() {
  17330. var c = new C.EK;
  17331. c.bfa(this.Pn, this.cj);
  17332. return c
  17333. }
  17334. });
  17335. C.EK.create = function(c, d) {
  17336. return new C.EK(c, d)
  17337. };
  17338. C.Jc = C.yh.extend({
  17339. km: s,
  17340. $s: s,
  17341. HF: s,
  17342. Ih: s,
  17343. ctor: function(c, d, f) {
  17344. C.kq.prototype.ctor.call(this);
  17345. c !== m && (d === m ? this.eQ(c) : this.eQ(c, d, f))
  17346. },
  17347. eQ: function(c, d, f) {
  17348. d ? (this.Ih = f, this.$s = c, this.km = d) : c && (this.HF = c);
  17349. return q
  17350. },
  17351. execute: function() {
  17352. this.$s != s ? this.$s.call(this.km, this.target, this.Ih) : this.HF && this.HF.call(s, this.target)
  17353. },
  17354. update: function() {
  17355. this.execute()
  17356. },
  17357. PWa: A("km"),
  17358. l5a: function(c) {
  17359. c != this.km && (this.km && (this.km = s), this.km = c)
  17360. },
  17361. s: function() {
  17362. var c = new C.Jc;
  17363. this.km ? c.eQ(this.$s, this.km, this.Ih) : this.HF && c.eQ(this.HF);
  17364. return c
  17365. }
  17366. });
  17367. C.Jc.create = function(c, d, f) {
  17368. return new C.Jc(c, d, f)
  17369. };
  17370. C.hS = C.N.extend({
  17371. EV: 0,
  17372. FV: 0,
  17373. GV: 0,
  17374. u$: 0,
  17375. v$: 0,
  17376. w$: 0,
  17377. Zba: 0,
  17378. $ba: 0,
  17379. aca: 0,
  17380. ctor: function() {
  17381. C.N.prototype.ctor.call(this);
  17382. this.aca = this.$ba = this.Zba = this.w$ = this.v$ = this.u$ = this.GV = this.FV = this.EV = 0
  17383. },
  17384. R: function(c) {
  17385. C.N.prototype.R.call(this, c);
  17386. c = c.Ix();
  17387. var d = c.Oda();
  17388. this.EV = d.x;
  17389. this.FV = d.y;
  17390. this.GV = d.f;
  17391. d = c.Yda();
  17392. this.u$ = d.x;
  17393. this.v$ = d.y;
  17394. this.w$ = d.f;
  17395. c = c.kCa();
  17396. this.Zba = c.x;
  17397. this.$ba = c.y;
  17398. this.aca = c.f
  17399. },
  17400. s: function() {
  17401. return new C.hS
  17402. },
  17403. reverse: function() {
  17404. return C.zv.create(this)
  17405. }
  17406. });
  17407. C.bi = C.hS.extend({
  17408. Ui: 0,
  17409. $V: 0,
  17410. SE: 0,
  17411. H9: 0,
  17412. cn: 0,
  17413. G9: 0,
  17414. Xaa: 0,
  17415. Vaa: 0,
  17416. Waa: 0,
  17417. Uaa: 0,
  17418. ctor: function(c, d, f, g, h, k, n) {
  17419. C.hS.prototype.ctor.call(this);
  17420. n !== m && this.k(c, d, f, g, h, k, n)
  17421. },
  17422. k: function(c, d, f, g, h, k, n) {
  17423. return C.N.prototype.k.call(this, c) ? (this.Ui = d, this.$V = f, this.SE = g, this.H9 = h, this.cn = k, this.G9 = n, this.Vaa = C.ng(h), this.Uaa = C.ng(n), q) : t
  17424. },
  17425. JIa: function() {
  17426. var c = this.target.Ix(),
  17427. d = c.Yda(),
  17428. f = c.Oda(),
  17429. c = d.x - f.x,
  17430. g = d.y - f.y,
  17431. d = d.f - f.f,
  17432. f = Math.sqrt(Math.pow(c, 2) + Math.pow(g, 2) + Math.pow(d, 2)),
  17433. h = Math.sqrt(Math.pow(c, 2) + Math.pow(g, 2));
  17434. 0 === h && (h = C.rK);
  17435. 0 === f && (f = C.rK);
  17436. return {
  17437. uEa: f / C.FD.dI(),
  17438. XJa: Math.acos(d / f),
  17439. azimuth: 0 > c ? Math.PI - Math.asin(g / h) : Math.asin(g / h)
  17440. }
  17441. },
  17442. R: function(c) {
  17443. C.N.prototype.R.call(this, c);
  17444. c = this.JIa();
  17445. isNaN(this.Ui) && (this.Ui = c.uEa);
  17446. isNaN(this.SE) && (this.SE = C.LC(c.XJa));
  17447. isNaN(this.cn) && (this.cn = C.LC(c.azimuth));
  17448. this.Xaa = C.ng(this.SE);
  17449. this.Waa = C.ng(this.cn)
  17450. },
  17451. s: function() {
  17452. var c = new C.bi;
  17453. c.k(this.D, this.Ui, this.$V, this.SE, this.H9, this.cn, this.G9);
  17454. return c
  17455. },
  17456. update: function(c) {
  17457. c = this.Bg(c);
  17458. var d = (this.Ui + this.$V * c) * C.FD.dI(),
  17459. f = this.Xaa + this.Vaa * c,
  17460. g = this.Waa + this.Uaa * c;
  17461. c = Math.sin(f) * Math.cos(g) * d + this.EV;
  17462. g = Math.sin(f) * Math.sin(g) * d + this.FV;
  17463. d = Math.cos(f) * d + this.GV;
  17464. this.target.Ix().Dha(c, g, d)
  17465. }
  17466. });
  17467. C.bi.create = function(c, d, f, g, h, k, n) {
  17468. return new C.bi(c, d, f, g, h, k, n)
  17469. };
  17470. C.Zb = C.N.extend({
  17471. I: s,
  17472. ctor: function(c) {
  17473. C.N.prototype.ctor.call(this);
  17474. c && this.Ba(c)
  17475. },
  17476. Ba: function(c) {
  17477. c || e("cc.ActionEase.initWithAction(): action must be non nil");
  17478. return this.k(c.Rr()) ? (this.I = c, q) : t
  17479. },
  17480. s: function() {
  17481. var c = new C.Zb;
  17482. c.Ba(this.I.s());
  17483. return c
  17484. },
  17485. R: function(c) {
  17486. C.N.prototype.R.call(this, c);
  17487. this.I.R(this.target)
  17488. },
  17489. stop: function() {
  17490. this.I.stop();
  17491. C.N.prototype.stop.call(this)
  17492. },
  17493. update: function(c) {
  17494. this.I.update(c)
  17495. },
  17496. reverse: function() {
  17497. return C.Zb.create(this.I.reverse())
  17498. },
  17499. r0: A("I")
  17500. });
  17501. C.Zb.create = function(c) {
  17502. return new C.Zb(c)
  17503. };
  17504. C.ov = C.Zb.extend({
  17505. fe: 0,
  17506. ctor: function(c, d) {
  17507. C.Zb.prototype.ctor.call(this);
  17508. d !== m && this.Ba(c, d)
  17509. },
  17510. V4a: x("fe"),
  17511. iWa: A("fe"),
  17512. Ba: function(c, d) {
  17513. return C.Zb.prototype.Ba.call(this, c) ? (this.fe = d, q) : t
  17514. },
  17515. s: function() {
  17516. var c = new C.ov;
  17517. c.Ba(this.I.s(), this.fe);
  17518. return c
  17519. },
  17520. reverse: function() {
  17521. return C.ov.create(this.I.reverse(), 1 / this.fe)
  17522. }
  17523. });
  17524. C.ov.create = function(c, d) {
  17525. return new C.ov(c, d)
  17526. };
  17527. C.$D = C.ov.extend({
  17528. update: function(c) {
  17529. this.I.update(Math.pow(c, this.fe))
  17530. },
  17531. reverse: function() {
  17532. return C.$D.create(this.I.reverse(), 1 / this.fe)
  17533. },
  17534. s: function() {
  17535. var c = new C.$D;
  17536. c.Ba(this.I.s(), this.fe);
  17537. return c
  17538. }
  17539. });
  17540. C.$D.create = function(c, d) {
  17541. return new C.$D(c, d)
  17542. };
  17543. C.iza = function(c) {
  17544. return {
  17545. fe: c,
  17546. ra: function(c) {
  17547. return Math.pow(c, this.fe)
  17548. },
  17549. reverse: function() {
  17550. return C.iza(1 / this.fe)
  17551. }
  17552. }
  17553. };
  17554. C.As = C.ov.extend({
  17555. update: function(c) {
  17556. this.I.update(Math.pow(c, 1 / this.fe))
  17557. },
  17558. reverse: function() {
  17559. return C.As.create(this.I.reverse(), 1 / this.fe)
  17560. },
  17561. s: function() {
  17562. var c = new C.As;
  17563. c.Ba(this.I.s(), this.fe);
  17564. return c
  17565. }
  17566. });
  17567. C.As.create = function(c, d) {
  17568. return new C.As(c, d)
  17569. };
  17570. C.kza = function(c) {
  17571. return {
  17572. fe: c,
  17573. ra: function(c) {
  17574. return Math.pow(c, 1 / this.fe)
  17575. },
  17576. reverse: function() {
  17577. return C.kza(1 / this.fe)
  17578. }
  17579. }
  17580. };
  17581. C.Oy = C.ov.extend({
  17582. update: function(c) {
  17583. c *= 2;
  17584. 1 > c ? this.I.update(0.5 * Math.pow(c, this.fe)) : this.I.update(1 - 0.5 * Math.pow(2 - c, this.fe))
  17585. },
  17586. s: function() {
  17587. var c = new C.Oy;
  17588. c.Ba(this.I.s(), this.fe);
  17589. return c
  17590. },
  17591. reverse: function() {
  17592. return C.Oy.create(this.I.reverse(), this.fe)
  17593. }
  17594. });
  17595. C.Oy.create = function(c, d) {
  17596. return new C.Oy(c, d)
  17597. };
  17598. C.jza = function(c) {
  17599. return {
  17600. fe: c,
  17601. ra: function(c) {
  17602. c *= 2;
  17603. return 1 > c ? 0.5 * Math.pow(c, this.fe) : 1 - 0.5 * Math.pow(2 - c, this.fe)
  17604. },
  17605. reverse: function() {
  17606. return C.jza(this.fe)
  17607. }
  17608. }
  17609. };
  17610. C.lK = C.Zb.extend({
  17611. update: function(c) {
  17612. this.I.update(0 === c ? 0 : Math.pow(2, 10 * (c - 1)))
  17613. },
  17614. reverse: function() {
  17615. return C.nK.create(this.I.reverse())
  17616. },
  17617. s: function() {
  17618. var c = new C.lK;
  17619. c.Ba(this.I.s());
  17620. return c
  17621. }
  17622. });
  17623. C.lK.create = function(c) {
  17624. return new C.lK(c)
  17625. };
  17626. C.d$ = {
  17627. ra: function(c) {
  17628. return 0 === c ? 0 : Math.pow(2, 10 * (c - 1))
  17629. },
  17630. reverse: function() {
  17631. return C.f$
  17632. }
  17633. };
  17634. C.fza = function() {
  17635. return C.d$
  17636. };
  17637. C.nK = C.Zb.extend({
  17638. update: function(c) {
  17639. this.I.update(1 == c ? 1 : -Math.pow(2, -10 * c) + 1)
  17640. },
  17641. reverse: function() {
  17642. return C.lK.create(this.I.reverse())
  17643. },
  17644. s: function() {
  17645. var c = new C.nK;
  17646. c.Ba(this.I.s());
  17647. return c
  17648. }
  17649. });
  17650. C.nK.create = function(c) {
  17651. return new C.nK(c)
  17652. };
  17653. C.f$ = {
  17654. ra: function(c) {
  17655. return 1 == c ? 1 : -Math.pow(2, -10 * c) + 1
  17656. },
  17657. reverse: function() {
  17658. return C.d$
  17659. }
  17660. };
  17661. C.hza = function() {
  17662. return C.f$
  17663. };
  17664. C.mK = C.Zb.extend({
  17665. update: function(c) {
  17666. 1 != c && 0 !== c && (c *= 2, c = 1 > c ? 0.5 * Math.pow(2, 10 * (c - 1)) : 0.5 * ( - Math.pow(2, -10 * (c - 1)) + 2));
  17667. this.I.update(c)
  17668. },
  17669. reverse: function() {
  17670. return C.mK.create(this.I.reverse())
  17671. },
  17672. s: function() {
  17673. var c = new C.mK;
  17674. c.Ba(this.I.s());
  17675. return c
  17676. }
  17677. });
  17678. C.mK.create = function(c) {
  17679. return new C.mK(c)
  17680. };
  17681. C.e$ = {
  17682. ra: function(c) {
  17683. return 1 !== c && 0 !== c ? (c *= 2, 1 > c ? 0.5 * Math.pow(2, 10 * (c - 1)) : 0.5 * ( - Math.pow(2, -10 * (c - 1)) + 2)) : c
  17684. },
  17685. reverse: function() {
  17686. return C.e$
  17687. }
  17688. };
  17689. C.gza = function() {
  17690. return C.e$
  17691. };
  17692. C.oK = C.Zb.extend({
  17693. update: function(c) {
  17694. c = 0 === c || 1 === c ? c: -1 * Math.cos(c * Math.PI / 2) + 1;
  17695. this.I.update(c)
  17696. },
  17697. reverse: function() {
  17698. return C.qK.create(this.I.reverse())
  17699. },
  17700. s: function() {
  17701. var c = new C.oK;
  17702. c.Ba(this.I.s());
  17703. return c
  17704. }
  17705. });
  17706. C.oK.create = function(c) {
  17707. return new C.oK(c)
  17708. };
  17709. C.p$ = {
  17710. ra: function(c) {
  17711. return 0 === c || 1 === c ? c: -1 * Math.cos(c * Math.PI / 2) + 1
  17712. },
  17713. reverse: function() {
  17714. return C.r$
  17715. }
  17716. };
  17717. C.uza = function() {
  17718. return C.p$
  17719. };
  17720. C.qK = C.Zb.extend({
  17721. update: function(c) {
  17722. c = 0 === c || 1 === c ? c: Math.sin(c * Math.PI / 2);
  17723. this.I.update(c)
  17724. },
  17725. reverse: function() {
  17726. return C.oK.create(this.I.reverse())
  17727. },
  17728. s: function() {
  17729. var c = new C.qK;
  17730. c.Ba(this.I.s());
  17731. return c
  17732. }
  17733. });
  17734. C.qK.create = function(c) {
  17735. return new C.qK(c)
  17736. };
  17737. C.r$ = {
  17738. ra: function(c) {
  17739. return 0 === c || 1 == c ? c: Math.sin(c * Math.PI / 2)
  17740. },
  17741. reverse: function() {
  17742. return C.p$
  17743. }
  17744. };
  17745. C.wza = function() {
  17746. return C.r$
  17747. };
  17748. C.pK = C.Zb.extend({
  17749. update: function(c) {
  17750. c = 0 === c || 1 === c ? c: -0.5 * (Math.cos(Math.PI * c) - 1);
  17751. this.I.update(c)
  17752. },
  17753. s: function() {
  17754. var c = new C.pK;
  17755. c.Ba(this.I.s());
  17756. return c
  17757. },
  17758. reverse: function() {
  17759. return C.pK.create(this.I.reverse())
  17760. }
  17761. });
  17762. C.pK.create = function(c) {
  17763. return new C.pK(c)
  17764. };
  17765. C.q$ = {
  17766. ra: function(c) {
  17767. return 0 === c || 1 === c ? c: -0.5 * (Math.cos(Math.PI * c) - 1)
  17768. },
  17769. reverse: function() {
  17770. return C.q$
  17771. }
  17772. };
  17773. C.vza = function() {
  17774. return C.q$
  17775. };
  17776. C.Ny = C.Zb.extend({
  17777. md: 0.3,
  17778. ctor: function(c, d) {
  17779. C.Zb.prototype.ctor.call(this);
  17780. c && this.Ba(c, d)
  17781. },
  17782. XVa: A("md"),
  17783. P4a: x("md"),
  17784. Ba: function(c, d) {
  17785. C.Zb.prototype.Ba.call(this, c);
  17786. this.md = d == s ? 0.3 : d;
  17787. return q
  17788. },
  17789. reverse: function() {
  17790. C.log("cc.EaseElastic.reverse(): it should be overridden in subclass.");
  17791. return s
  17792. },
  17793. s: function() {
  17794. var c = new C.Ny;
  17795. c.Ba(this.I.s(), this.md);
  17796. return c
  17797. }
  17798. });
  17799. C.Ny.create = function(c, d) {
  17800. return new C.Ny(c, d)
  17801. };
  17802. C.XD = C.Ny.extend({
  17803. update: function(c) {
  17804. var d = 0;
  17805. 0 === c || 1 === c ? d = c: (d = this.md / 4, c -= 1, d = -Math.pow(2, 10 * c) * Math.sin(2 * (c - d) * Math.PI / this.md));
  17806. this.I.update(d)
  17807. },
  17808. reverse: function() {
  17809. return C.ZD.create(this.I.reverse(), this.md)
  17810. },
  17811. s: function() {
  17812. var c = new C.XD;
  17813. c.Ba(this.I.s(), this.md);
  17814. return c
  17815. }
  17816. });
  17817. C.XD.create = function(c, d) {
  17818. return new C.XD(c, d)
  17819. };
  17820. C.b$ = {
  17821. ra: function(c) {
  17822. if (0 === c || 1 === c) return c;
  17823. c -= 1;
  17824. return - Math.pow(2, 10 * c) * Math.sin(2 * (c - 0.075) * Math.PI / 0.3)
  17825. },
  17826. reverse: function() {
  17827. return C.c$
  17828. }
  17829. };
  17830. C.qda = function(c) {
  17831. return c && 0.3 !== c ? {
  17832. md: c,
  17833. ra: function(c) {
  17834. if (0 === c || 1 === c) return c;
  17835. c -= 1;
  17836. return - Math.pow(2, 10 * c) * Math.sin(2 * (c - this.md / 4) * Math.PI / this.md)
  17837. },
  17838. reverse: function() {
  17839. return C.sda(this.md)
  17840. }
  17841. }: C.b$
  17842. };
  17843. C.ZD = C.Ny.extend({
  17844. update: function(c) {
  17845. var d = 0,
  17846. d = 0 === c || 1 == c ? c: Math.pow(2, -10 * c) * Math.sin(2 * (c - this.md / 4) * Math.PI / this.md) + 1;
  17847. this.I.update(d)
  17848. },
  17849. reverse: function() {
  17850. return C.XD.create(this.I.reverse(), this.md)
  17851. },
  17852. s: function() {
  17853. var c = new C.ZD;
  17854. c.Ba(this.I.s(), this.md);
  17855. return c
  17856. }
  17857. });
  17858. C.ZD.create = function(c, d) {
  17859. return new C.ZD(c, d)
  17860. };
  17861. C.c$ = {
  17862. ra: function(c) {
  17863. return 0 === c || 1 === c ? c: Math.pow(2, -10 * c) * Math.sin(2 * (c - 0.075) * Math.PI / 0.3) + 1
  17864. },
  17865. reverse: function() {
  17866. return C.b$
  17867. }
  17868. };
  17869. C.sda = function(c) {
  17870. return c && 0.3 !== c ? {
  17871. md: c,
  17872. ra: function(c) {
  17873. return 0 === c || 1 === c ? c: Math.pow(2, -10 * c) * Math.sin(2 * (c - this.md / 4) * Math.PI / this.md) + 1
  17874. },
  17875. reverse: function() {
  17876. return C.qda(this.md)
  17877. }
  17878. }: C.c$
  17879. };
  17880. C.YD = C.Ny.extend({
  17881. update: function(c) {
  17882. var d = 0,
  17883. d = this.md;
  17884. if (0 === c || 1 == c) d = c;
  17885. else {
  17886. d || (d = this.md = 0.3 * 1.5);
  17887. var f = d / 4;
  17888. c = 2 * c - 1;
  17889. d = 0 > c ? -0.5 * Math.pow(2, 10 * c) * Math.sin(2 * (c - f) * Math.PI / d) : 0.5 * Math.pow(2, -10 * c) * Math.sin(2 * (c - f) * Math.PI / d) + 1
  17890. }
  17891. this.I.update(d)
  17892. },
  17893. reverse: function() {
  17894. return C.YD.create(this.I.reverse(), this.md)
  17895. },
  17896. s: function() {
  17897. var c = new C.YD;
  17898. c.Ba(this.I.s(), this.md);
  17899. return c
  17900. }
  17901. });
  17902. C.YD.create = function(c, d) {
  17903. return new C.YD(c, d)
  17904. };
  17905. C.rda = function(c) {
  17906. return {
  17907. md: c || 0.3,
  17908. ra: function(c) {
  17909. var f = 0,
  17910. f = this.md;
  17911. if (0 === c || 1 === c) f = c;
  17912. else {
  17913. f || (f = this.md = 0.3 * 1.5);
  17914. var g = f / 4;
  17915. c = 2 * c - 1;
  17916. f = 0 > c ? -0.5 * Math.pow(2, 10 * c) * Math.sin(2 * (c - g) * Math.PI / f) : 0.5 * Math.pow(2, -10 * c) * Math.sin(2 * (c - g) * Math.PI / f) + 1
  17917. }
  17918. return f
  17919. },
  17920. reverse: function() {
  17921. return C.rda(this.md)
  17922. }
  17923. }
  17924. };
  17925. C.nv = C.Zb.extend({
  17926. Nr: function(c) {
  17927. if (c < 1 / 2.75) return 7.5625 * c * c;
  17928. if (c < 2 / 2.75) return c -= 1.5 / 2.75,
  17929. 7.5625 * c * c + 0.75;
  17930. if (c < 2.5 / 2.75) return c -= 2.25 / 2.75,
  17931. 7.5625 * c * c + 0.9375;
  17932. c -= 2.625 / 2.75;
  17933. return 7.5625 * c * c + 0.984375
  17934. },
  17935. s: function() {
  17936. var c = new C.nv;
  17937. c.Ba(this.I.s());
  17938. return c
  17939. },
  17940. reverse: function() {
  17941. return C.nv.create(this.I.reverse())
  17942. }
  17943. });
  17944. C.nv.create = function(c) {
  17945. return new C.nv(c)
  17946. };
  17947. C.OD = C.nv.extend({
  17948. update: function(c) {
  17949. this.I.update(1 - this.Nr(1 - c))
  17950. },
  17951. reverse: function() {
  17952. return C.QD.create(this.I.reverse())
  17953. },
  17954. s: function() {
  17955. var c = new C.OD;
  17956. c.Ba(this.I.s());
  17957. return c
  17958. }
  17959. });
  17960. C.OD.create = function(c) {
  17961. return new C.OD(c)
  17962. };
  17963. C.zL = function(c) {
  17964. if (c < 1 / 2.75) return 7.5625 * c * c;
  17965. if (c < 2 / 2.75) return c -= 1.5 / 2.75,
  17966. 7.5625 * c * c + 0.75;
  17967. if (c < 2.5 / 2.75) return c -= 2.25 / 2.75,
  17968. 7.5625 * c * c + 0.9375;
  17969. c -= 2.625 / 2.75;
  17970. return 7.5625 * c * c + 0.984375
  17971. };
  17972. C.S9 = {
  17973. ra: function(c) {
  17974. return 1 - C.zL(1 - c)
  17975. },
  17976. reverse: function() {
  17977. return C.U9
  17978. }
  17979. };
  17980. C.Xya = function() {
  17981. return C.S9
  17982. };
  17983. C.QD = C.nv.extend({
  17984. update: function(c) {
  17985. this.I.update(this.Nr(c))
  17986. },
  17987. reverse: function() {
  17988. return C.OD.create(this.I.reverse())
  17989. },
  17990. s: function() {
  17991. var c = new C.QD;
  17992. c.Ba(this.I.s());
  17993. return c
  17994. }
  17995. });
  17996. C.QD.create = function(c) {
  17997. return new C.QD(c)
  17998. };
  17999. C.U9 = {
  18000. ra: function(c) {
  18001. return C.zL(c)
  18002. },
  18003. reverse: function() {
  18004. return C.S9
  18005. }
  18006. };
  18007. C.Zya = function() {
  18008. return C.U9
  18009. };
  18010. C.PD = C.nv.extend({
  18011. update: function(c) {
  18012. var d = 0,
  18013. d = 0.5 > c ? 0.5 * (1 - this.Nr(1 - 2 * c)) : 0.5 * this.Nr(2 * c - 1) + 0.5;
  18014. this.I.update(d)
  18015. },
  18016. s: function() {
  18017. var c = new C.PD;
  18018. c.Ba(this.I.s());
  18019. return c
  18020. },
  18021. reverse: function() {
  18022. return C.PD.create(this.I.reverse())
  18023. }
  18024. });
  18025. C.PD.create = function(c) {
  18026. return new C.PD(c)
  18027. };
  18028. C.T9 = {
  18029. ra: function(c) {
  18030. return c = 0.5 > c ? 0.5 * (1 - C.zL(1 - 2 * c)) : 0.5 * C.zL(2 * c - 1) + 0.5
  18031. },
  18032. reverse: function() {
  18033. return C.T9
  18034. }
  18035. };
  18036. C.Yya = function() {
  18037. return C.T9
  18038. };
  18039. C.KD = C.Zb.extend({
  18040. update: function(c) {
  18041. this.I.update(0 === c || 1 == c ? c: c * c * (2.70158 * c - 1.70158))
  18042. },
  18043. reverse: function() {
  18044. return C.MD.create(this.I.reverse())
  18045. },
  18046. s: function() {
  18047. var c = new C.KD;
  18048. c.Ba(this.I.s());
  18049. return c
  18050. }
  18051. });
  18052. C.KD.create = function(c) {
  18053. return new C.KD(c)
  18054. };
  18055. C.P9 = {
  18056. ra: function(c) {
  18057. return 0 === c || 1 === c ? c: c * c * (2.70158 * c - 1.70158)
  18058. },
  18059. reverse: function() {
  18060. return C.R9
  18061. }
  18062. };
  18063. C.Tya = function() {
  18064. return C.P9
  18065. };
  18066. C.MD = C.Zb.extend({
  18067. update: function(c) {
  18068. c -= 1;
  18069. this.I.update(c * c * (2.70158 * c + 1.70158) + 1)
  18070. },
  18071. reverse: function() {
  18072. return C.KD.create(this.I.reverse())
  18073. },
  18074. s: function() {
  18075. var c = new C.MD;
  18076. c.Ba(this.I.s());
  18077. return c
  18078. }
  18079. });
  18080. C.MD.create = function(c) {
  18081. return new C.MD(c)
  18082. };
  18083. C.R9 = {
  18084. ra: function(c) {
  18085. c -= 1;
  18086. return c * c * (2.70158 * c + 1.70158) + 1
  18087. },
  18088. reverse: function() {
  18089. return C.P9
  18090. }
  18091. };
  18092. C.Vya = function() {
  18093. return C.R9
  18094. };
  18095. C.LD = C.Zb.extend({
  18096. update: function(c) {
  18097. c *= 2;
  18098. 1 > c ? this.I.update(c * c * (3.5949095 * c - 2.5949095) / 2) : (c -= 2, this.I.update(c * c * (3.5949095 * c + 2.5949095) / 2 + 1))
  18099. },
  18100. s: function() {
  18101. var c = new C.LD;
  18102. c.Ba(this.I.s());
  18103. return c
  18104. },
  18105. reverse: function() {
  18106. return C.LD.create(this.I.reverse())
  18107. }
  18108. });
  18109. C.LD.create = function(c) {
  18110. return new C.LD(c)
  18111. };
  18112. C.Q9 = {
  18113. ra: function(c) {
  18114. c *= 2;
  18115. if (1 > c) return c * c * (3.5949095 * c - 2.5949095) / 2;
  18116. c -= 2;
  18117. return c * c * (3.5949095 * c + 2.5949095) / 2 + 1
  18118. },
  18119. reverse: function() {
  18120. return C.Q9
  18121. }
  18122. };
  18123. C.Uya = function() {
  18124. return C.Q9
  18125. };
  18126. C.ND = C.Zb.extend({
  18127. vN: s,
  18128. wN: s,
  18129. xN: s,
  18130. yN: s,
  18131. ctor: function(c) {
  18132. C.Zb.prototype.ctor.call(this, c)
  18133. },
  18134. jb: function(c, d, f, g, h) {
  18135. return Math.pow(1 - h, 3) * c + 3 * h * Math.pow(1 - h, 2) * d + 3 * Math.pow(h, 2) * (1 - h) * f + Math.pow(h, 3) * g
  18136. },
  18137. update: function(c) {
  18138. this.I.update(this.jb(this.vN, this.wN, this.xN, this.yN, c))
  18139. },
  18140. s: function() {
  18141. var c = new C.ND;
  18142. c.Ba(this.I.s());
  18143. c.kha(this.vN, this.wN, this.xN, this.yN);
  18144. return c
  18145. },
  18146. reverse: function() {
  18147. var c = C.ND.create(this.I.reverse());
  18148. c.kha(this.yN, this.xN, this.wN, this.vN);
  18149. return c
  18150. },
  18151. kha: function(c, d, f, g) {
  18152. this.vN = c || 0;
  18153. this.wN = d || 0;
  18154. this.xN = f || 0;
  18155. this.yN = g || 0
  18156. }
  18157. });
  18158. C.ND.create = function(c) {
  18159. return new C.ND(c)
  18160. };
  18161. C.Wya = function(c, d, f, g) {
  18162. return {
  18163. ra: function(h) {
  18164. return C.ND.prototype.jb(c, d, f, g, h)
  18165. },
  18166. reverse: function() {
  18167. return C.Wya(g, f, d, c)
  18168. }
  18169. }
  18170. };
  18171. C.aE = C.Zb.extend({
  18172. jb: function(c) {
  18173. return Math.pow(c, 2)
  18174. },
  18175. update: function(c) {
  18176. this.I.update(this.jb(c))
  18177. },
  18178. s: function() {
  18179. var c = new C.aE;
  18180. c.Ba(this.I.s());
  18181. return c
  18182. },
  18183. reverse: function() {
  18184. return C.aE.create(this.I.reverse())
  18185. }
  18186. });
  18187. C.aE.create = function(c) {
  18188. return new C.aE(c)
  18189. };
  18190. C.g$ = {
  18191. ra: C.aE.prototype.jb,
  18192. reverse: function() {
  18193. return C.g$
  18194. }
  18195. };
  18196. C.lza = function() {
  18197. return C.g$
  18198. };
  18199. C.cE = C.Zb.extend({
  18200. jb: function(c) {
  18201. return - c * (c - 2)
  18202. },
  18203. update: function(c) {
  18204. this.I.update(this.jb(c))
  18205. },
  18206. s: function() {
  18207. var c = new C.cE;
  18208. c.Ba();
  18209. return c
  18210. },
  18211. reverse: function() {
  18212. return C.cE.create(this.I.reverse())
  18213. }
  18214. });
  18215. C.cE.create = function(c) {
  18216. return new C.cE(c)
  18217. };
  18218. C.i$ = {
  18219. ra: C.cE.prototype.jb,
  18220. reverse: function() {
  18221. return C.i$
  18222. }
  18223. };
  18224. C.nza = function() {
  18225. return C.i$
  18226. };
  18227. C.bE = C.Zb.extend({
  18228. jb: function(c) {
  18229. var d = c;
  18230. c *= 2;
  18231. 1 > c ? d = 0.5 * c * c: (--c, d = -0.5 * (c * (c - 2) - 1));
  18232. return d
  18233. },
  18234. update: function(c) {
  18235. this.I.update(this.jb(c))
  18236. },
  18237. s: function() {
  18238. var c = new C.bE;
  18239. c.Ba(this.I.s());
  18240. return c
  18241. },
  18242. reverse: function() {
  18243. return C.bE.create(this.I.reverse())
  18244. }
  18245. });
  18246. C.bE.create = function(c) {
  18247. return new C.bE(c)
  18248. };
  18249. C.h$ = {
  18250. ra: C.bE.prototype.jb,
  18251. reverse: function() {
  18252. return C.h$
  18253. }
  18254. };
  18255. C.mza = function() {
  18256. return C.h$
  18257. };
  18258. C.dE = C.Zb.extend({
  18259. jb: function(c) {
  18260. return c * c * c * c
  18261. },
  18262. update: function(c) {
  18263. this.I.update(this.jb(c))
  18264. },
  18265. s: function() {
  18266. var c = new C.dE;
  18267. c.Ba(this.I.s());
  18268. return c
  18269. },
  18270. reverse: function() {
  18271. return C.dE.create(this.I.reverse())
  18272. }
  18273. });
  18274. C.dE.create = function(c) {
  18275. return new C.dE(c)
  18276. };
  18277. C.j$ = {
  18278. ra: C.dE.prototype.jb,
  18279. reverse: function() {
  18280. return C.j$
  18281. }
  18282. };
  18283. C.oza = function() {
  18284. return C.j$
  18285. };
  18286. C.fE = C.Zb.extend({
  18287. jb: function(c) {
  18288. c -= 1;
  18289. return - (c * c * c * c - 1)
  18290. },
  18291. update: function(c) {
  18292. this.I.update(this.jb(c))
  18293. },
  18294. s: function() {
  18295. var c = new C.fE;
  18296. c.Ba(this.I.s());
  18297. return c
  18298. },
  18299. reverse: function() {
  18300. return C.fE.create(this.I.reverse())
  18301. }
  18302. });
  18303. C.fE.create = function(c) {
  18304. return new C.fE(c)
  18305. };
  18306. C.l$ = {
  18307. ra: C.fE.prototype.jb,
  18308. reverse: function() {
  18309. return C.l$
  18310. }
  18311. };
  18312. C.qza = function() {
  18313. return C.l$
  18314. };
  18315. C.eE = C.Zb.extend({
  18316. jb: function(c) {
  18317. c *= 2;
  18318. if (1 > c) return 0.5 * c * c * c * c;
  18319. c -= 2;
  18320. return - 0.5 * (c * c * c * c - 2)
  18321. },
  18322. update: function(c) {
  18323. this.I.update(this.jb(c))
  18324. },
  18325. s: function() {
  18326. var c = new C.eE;
  18327. c.Ba(this.I.s());
  18328. return c
  18329. },
  18330. reverse: function() {
  18331. return C.eE.create(this.I.reverse())
  18332. }
  18333. });
  18334. C.eE.create = function(c) {
  18335. return new C.eE(c)
  18336. };
  18337. C.k$ = {
  18338. ra: C.eE.prototype.jb,
  18339. reverse: function() {
  18340. return C.k$
  18341. }
  18342. };
  18343. C.pza = function() {
  18344. return C.k$
  18345. };
  18346. C.gE = C.Zb.extend({
  18347. jb: function(c) {
  18348. return c * c * c * c * c
  18349. },
  18350. update: function(c) {
  18351. this.I.update(this.jb(c))
  18352. },
  18353. s: function() {
  18354. var c = new C.gE;
  18355. c.Ba(this.I.s());
  18356. return c
  18357. },
  18358. reverse: function() {
  18359. return C.gE.create(this.I.reverse())
  18360. }
  18361. });
  18362. C.gE.create = function(c) {
  18363. return new C.gE(c)
  18364. };
  18365. C.m$ = {
  18366. ra: C.gE.prototype.jb,
  18367. reverse: function() {
  18368. return C.m$
  18369. }
  18370. };
  18371. C.rza = function() {
  18372. return C.m$
  18373. };
  18374. C.iE = C.Zb.extend({
  18375. jb: function(c) {
  18376. c -= 1;
  18377. return c * c * c * c * c + 1
  18378. },
  18379. update: function(c) {
  18380. this.I.update(this.jb(c))
  18381. },
  18382. s: function() {
  18383. var c = new C.iE;
  18384. c.Ba(this.I.s());
  18385. return c
  18386. },
  18387. reverse: function() {
  18388. return C.iE.create(this.I.reverse())
  18389. }
  18390. });
  18391. C.iE.create = function(c) {
  18392. return new C.iE(c)
  18393. };
  18394. C.o$ = {
  18395. ra: C.iE.prototype.jb,
  18396. reverse: function() {
  18397. return C.o$
  18398. }
  18399. };
  18400. C.tza = function() {
  18401. return C.o$
  18402. };
  18403. C.hE = C.Zb.extend({
  18404. jb: function(c) {
  18405. c *= 2;
  18406. if (1 > c) return 0.5 * c * c * c * c * c;
  18407. c -= 2;
  18408. return 0.5 * (c * c * c * c * c + 2)
  18409. },
  18410. update: function(c) {
  18411. this.I.update(this.jb(c))
  18412. },
  18413. s: function() {
  18414. var c = new C.hE;
  18415. c.Ba(this.I.s());
  18416. return c
  18417. },
  18418. reverse: function() {
  18419. return C.hE.create(this.I.reverse())
  18420. }
  18421. });
  18422. C.hE.create = function(c) {
  18423. return new C.hE(c)
  18424. };
  18425. C.n$ = {
  18426. ra: C.hE.prototype.jb,
  18427. reverse: function() {
  18428. return C.n$
  18429. }
  18430. };
  18431. C.sza = function() {
  18432. return C.n$
  18433. };
  18434. C.RD = C.Zb.extend({
  18435. jb: function(c) {
  18436. return - 1 * (Math.sqrt(1 - c * c) - 1)
  18437. },
  18438. update: function(c) {
  18439. this.I.update(this.jb(c))
  18440. },
  18441. s: function() {
  18442. var c = new C.RD;
  18443. c.Ba(this.I.s());
  18444. return c
  18445. },
  18446. reverse: function() {
  18447. return C.RD.create(this.I.reverse())
  18448. }
  18449. });
  18450. C.RD.create = function(c) {
  18451. return new C.RD(c)
  18452. };
  18453. C.V9 = {
  18454. ra: C.RD.prototype.jb,
  18455. reverse: function() {
  18456. return C.V9
  18457. }
  18458. };
  18459. C.$ya = function() {
  18460. return C.V9
  18461. };
  18462. C.TD = C.Zb.extend({
  18463. jb: function(c) {
  18464. c -= 1;
  18465. return Math.sqrt(1 - c * c)
  18466. },
  18467. update: function(c) {
  18468. this.I.update(this.jb(c))
  18469. },
  18470. s: function() {
  18471. var c = new C.TD;
  18472. c.Ba(this.I.s());
  18473. return c
  18474. },
  18475. reverse: function() {
  18476. return C.TD.create(this.I.reverse())
  18477. }
  18478. });
  18479. C.TD.create = function(c) {
  18480. return new C.TD(c)
  18481. };
  18482. C.X9 = {
  18483. ra: C.TD.prototype.jb,
  18484. reverse: function() {
  18485. return C.X9
  18486. }
  18487. };
  18488. C.bza = function() {
  18489. return C.X9
  18490. };
  18491. C.SD = C.Zb.extend({
  18492. jb: function(c) {
  18493. c *= 2;
  18494. if (1 > c) return - 0.5 * (Math.sqrt(1 - c * c) - 1);
  18495. c -= 2;
  18496. return 0.5 * (Math.sqrt(1 - c * c) + 1)
  18497. },
  18498. update: function(c) {
  18499. this.I.update(this.jb(c))
  18500. },
  18501. s: function() {
  18502. var c = new C.SD;
  18503. c.Ba(this.I.s());
  18504. return c
  18505. },
  18506. reverse: function() {
  18507. return C.SD.create(this.I.reverse())
  18508. }
  18509. });
  18510. C.SD.create = function(c) {
  18511. return new C.SD(c)
  18512. };
  18513. C.W9 = {
  18514. ra: C.SD.prototype.jb,
  18515. reverse: function() {
  18516. return C.W9
  18517. }
  18518. };
  18519. C.aza = function() {
  18520. return C.W9
  18521. };
  18522. C.UD = C.Zb.extend({
  18523. jb: function(c) {
  18524. return c * c * c
  18525. },
  18526. update: function(c) {
  18527. this.I.update(this.jb(c))
  18528. },
  18529. s: function() {
  18530. var c = new C.UD;
  18531. c.Ba(this.I.s());
  18532. return c
  18533. },
  18534. reverse: function() {
  18535. return C.UD.create(this.I.reverse())
  18536. }
  18537. });
  18538. C.UD.create = function(c) {
  18539. return new C.UD(c)
  18540. };
  18541. C.Y9 = {
  18542. ra: C.UD.prototype.jb,
  18543. reverse: function() {
  18544. return C.Y9
  18545. }
  18546. };
  18547. C.cza = function() {
  18548. return C.Y9
  18549. };
  18550. C.WD = C.Zb.extend({
  18551. jb: function(c) {
  18552. c -= 1;
  18553. return c * c * c + 1
  18554. },
  18555. update: function(c) {
  18556. this.I.update(this.jb(c))
  18557. },
  18558. s: function() {
  18559. var c = new C.WD;
  18560. c.Ba(this.I.s());
  18561. return c
  18562. },
  18563. reverse: function() {
  18564. return C.WD.create(this.I.reverse())
  18565. }
  18566. });
  18567. C.WD.create = function(c) {
  18568. return new C.WD(c)
  18569. };
  18570. C.a$ = {
  18571. ra: C.WD.prototype.jb,
  18572. reverse: function() {
  18573. return C.a$
  18574. }
  18575. };
  18576. C.eza = function() {
  18577. return C.a$
  18578. };
  18579. C.VD = C.Zb.extend({
  18580. jb: function(c) {
  18581. c *= 2;
  18582. if (1 > c) return 0.5 * c * c * c;
  18583. c -= 2;
  18584. return 0.5 * (c * c * c + 2)
  18585. },
  18586. update: function(c) {
  18587. this.I.update(this.jb(c))
  18588. },
  18589. s: function() {
  18590. var c = new C.VD;
  18591. c.Ba(this.I.s());
  18592. return c
  18593. },
  18594. reverse: function() {
  18595. return C.VD.create(this.I.reverse())
  18596. }
  18597. });
  18598. C.VD.create = function(c) {
  18599. return new C.VD(c)
  18600. };
  18601. C.Z9 = {
  18602. ra: C.VD.prototype.jb,
  18603. reverse: function() {
  18604. return C.Z9
  18605. }
  18606. };
  18607. C.dza = function() {
  18608. return C.Z9
  18609. };
  18610. C.q_ = function(c, d, f, g, h, k) {
  18611. var n = k * k,
  18612. p = n * k,
  18613. r = (1 - h) / 2;
  18614. h = r * ( - p + 2 * n - k);
  18615. var v = r * ( - p + n) + (2 * p - 3 * n + 1);
  18616. k = r * (p - 2 * n + k) + ( - 2 * p + 3 * n);
  18617. n = r * (p - n);
  18618. return C.d(c.x * h + d.x * v + f.x * k + g.x * n, c.y * h + d.y * v + f.y * k + g.y * n)
  18619. };
  18620. C.bha = function(c) {
  18621. for (var d = [], f = c.length - 1; 0 <= f; f--) d.push(C.d(c[f].x, c[f].y));
  18622. return d
  18623. };
  18624. C.hP = function(c) {
  18625. for (var d = [], f = 0; f < c.length; f++) d.push(C.d(c[f].x, c[f].y));
  18626. return d
  18627. };
  18628. C.og = function(c, d) {
  18629. var f = Math.min(c.length - 1, Math.max(d, 0));
  18630. return c[f]
  18631. };
  18632. C.F2a = function(c) {
  18633. for (var d = c.length,
  18634. f = 0 | d / 2,
  18635. g = 0; g < f; ++g) {
  18636. var h = c[g];
  18637. c[g] = c[d - g - 1];
  18638. c[d - g - 1] = h
  18639. }
  18640. };
  18641. C.Xm = C.N.extend({
  18642. yn: s,
  18643. I9: 0,
  18644. fB: 0,
  18645. Ff: s,
  18646. W8: s,
  18647. ctor: function(c, d, f) {
  18648. C.N.prototype.ctor.call(this);
  18649. this.yn = [];
  18650. f !== m && this.k(c, d, f)
  18651. },
  18652. k: function(c, d, f) { (!d || 0 == d.length) && e("Invalid configuration. It must at least have one control point");
  18653. return C.N.prototype.k.call(this, c) ? (this.WHa(d), this.fB = f, q) : t
  18654. },
  18655. s: function() {
  18656. var c = new C.Xm;
  18657. c.k(this.D, C.hP(this.yn), this.fB);
  18658. return c
  18659. },
  18660. R: function(c) {
  18661. C.N.prototype.R.call(this, c);
  18662. this.I9 = 1 / (this.yn.length - 1);
  18663. this.Ff = C.d(this.target.Rc(), this.target.Vd());
  18664. this.W8 = C.d(0, 0)
  18665. },
  18666. update: function(c) {
  18667. c = this.Bg(c);
  18668. var d, f = this.yn;
  18669. if (1 == c) d = f.length - 1,
  18670. c = 1;
  18671. else {
  18672. var g = this.I9;
  18673. d = 0 | c / g;
  18674. c = (c - g * d) / g
  18675. }
  18676. d = C.q_(C.og(f, d - 1), C.og(f, d - 0), C.og(f, d + 1), C.og(f, d + 2), this.fB, c);
  18677. if (C.iK && (f = this.target.Rc() - this.Ff.x, c = this.target.Vd() - this.Ff.y, 0 != f || 0 != c)) g = this.W8,
  18678. f = g.x + f,
  18679. c = g.y + c,
  18680. g.x = f,
  18681. g.y = c,
  18682. d.x += f,
  18683. d.y += c;
  18684. this.jja(d)
  18685. },
  18686. reverse: function() {
  18687. var c = C.bha(this.yn);
  18688. return C.Xm.create(this.D, c, this.fB)
  18689. },
  18690. jja: function(c) {
  18691. this.target.p(c);
  18692. this.Ff = c
  18693. },
  18694. ZVa: A("yn"),
  18695. WHa: x("yn")
  18696. });
  18697. C.Xm.create = function(c, d, f) {
  18698. return new C.Xm(c, d, f)
  18699. };
  18700. C.kv = C.Xm.extend({
  18701. of: s,
  18702. ctor: function(c, d, f) {
  18703. C.Xm.prototype.ctor.call(this);
  18704. this.of = C.d(0, 0);
  18705. f !== m && this.k(c, d, f)
  18706. },
  18707. R: function(c) {
  18708. C.Xm.prototype.R.call(this, c);
  18709. this.of.x = c.Rc();
  18710. this.of.y = c.Vd()
  18711. },
  18712. reverse: function() {
  18713. for (var c = this.yn.slice(), d, f = c[0], g = 1; g < c.length; ++g) d = c[g],
  18714. c[g] = C.cc(d, f),
  18715. f = d;
  18716. c = C.bha(c);
  18717. f = c[c.length - 1];
  18718. c.pop();
  18719. f.x = -f.x;
  18720. f.y = -f.y;
  18721. c.unshift(f);
  18722. for (g = 1; g < c.length; ++g) d = c[g],
  18723. d.x = -d.x,
  18724. d.y = -d.y,
  18725. d.x += f.x,
  18726. d.y += f.y,
  18727. f = c[g] = d;
  18728. return C.kv.create(this.D, c, this.fB)
  18729. },
  18730. jja: function(c) {
  18731. var d = this.of,
  18732. f = c.x + d.x;
  18733. c = c.y + d.y;
  18734. this.Ff.x = f;
  18735. this.Ff.y = c;
  18736. this.target.p(f, c)
  18737. },
  18738. s: function() {
  18739. var c = new C.kv;
  18740. c.k(this.D, C.hP(this.yn), this.fB);
  18741. return c
  18742. }
  18743. });
  18744. C.kv.create = function(c, d, f) {
  18745. return new C.kv(c, d, f)
  18746. };
  18747. C.ZJ = C.Xm.extend({
  18748. ctor: function(c, d) {
  18749. d && this.k(c, d)
  18750. },
  18751. k: function(c, d) {
  18752. return C.Xm.prototype.k.call(this, c, d, 0.5)
  18753. },
  18754. s: function() {
  18755. var c = new C.ZJ;
  18756. c.k(this.D, C.hP(this.yn));
  18757. return c
  18758. }
  18759. });
  18760. C.ZJ.create = function(c, d) {
  18761. return new C.ZJ(c, d)
  18762. };
  18763. C.YJ = C.kv.extend({
  18764. ctor: function(c, d) {
  18765. C.kv.prototype.ctor.call(this);
  18766. d && this.k(c, d)
  18767. },
  18768. k: function(c, d) {
  18769. return C.Xm.prototype.k.call(this, c, d, 0.5)
  18770. },
  18771. s: function() {
  18772. var c = new C.YJ;
  18773. c.k(this.D, C.hP(this.yn));
  18774. return c
  18775. }
  18776. });
  18777. C.YJ.create = function(c, d) {
  18778. return new C.YJ(c, d)
  18779. };
  18780. C.pKa = C.O.extend({
  18781. Z3: u()
  18782. });
  18783. C.fv = C.N.extend({
  18784. key: "",
  18785. wP: 0,
  18786. BJ: 0,
  18787. JB: 0,
  18788. ctor: function(c, d, f, g) {
  18789. C.N.prototype.ctor.call(this);
  18790. this.key = "";
  18791. g !== m && this.k(c, d, f, g)
  18792. },
  18793. k: function(c, d, f, g) {
  18794. return C.N.prototype.k.call(this, c) ? (this.key = d, this.BJ = g, this.wP = f, q) : t
  18795. },
  18796. R: function(c) { (!c || !c.Z3) && e("cc.ActionTween.startWithTarget(): target must be non-null, and target must implement updateTweenAction function");
  18797. C.N.prototype.R.call(this, c);
  18798. this.JB = this.BJ - this.wP
  18799. },
  18800. update: function(c) {
  18801. this.target.Z3(this.BJ - this.JB * (1 - c), this.key)
  18802. },
  18803. reverse: function() {
  18804. return C.fv.create(this.duration, this.key, this.BJ, this.wP)
  18805. },
  18806. s: function() {
  18807. var c = new C.fv;
  18808. c.k(this.D, this.key, this.wP, this.BJ);
  18809. return c
  18810. }
  18811. });
  18812. C.fv.create = function(c, d, f, g) {
  18813. var h = new C.fv;
  18814. return h.k(c, d, f, g) ? h: s
  18815. };
  18816. C.action = C.xg.create;
  18817. C.speed = C.AE.create;
  18818. C.ySa = C.tK.create;
  18819. C.H0a = C.bi.create;
  18820. C.JQa = C.Xm.create;
  18821. C.IQa = C.kv.create;
  18822. C.LQa = C.ZJ.create;
  18823. C.KQa = C.YJ.create;
  18824. C.show = C.Fj.create;
  18825. C.JXa = C.Fl.create;
  18826. C.x6a = C.JE.create;
  18827. C.n2a = C.tE.create;
  18828. C.Ada = C.lE.create;
  18829. C.Bda = C.mE.create;
  18830. C.e1a = C.EK.create;
  18831. C.EQa = C.Jc.create;
  18832. C.OPa = C.N.create;
  18833. C.j3a = C.La.create;
  18834. C.repeat = C.uE.create;
  18835. C.cR = C.vE.create;
  18836. C.U5a = C.ci.create;
  18837. C.L2a = C.wE.create;
  18838. C.K2a = C.Ds.create;
  18839. C.moveBy = C.Dk.create;
  18840. C.moveTo = C.Bs.create;
  18841. C.T5a = C.rq.create;
  18842. C.S5a = C.zE.create;
  18843. C.RYa = C.Ao.create;
  18844. C.SYa = C.uK.create;
  18845. C.yQa = C.vs.create;
  18846. C.zQa = C.QJ.create;
  18847. C.Q2a = C.ae.create;
  18848. C.P2a = C.Av.create;
  18849. C.blink = C.yD.create;
  18850. C.uSa = C.xo.create;
  18851. C.sSa = C.Ry.create;
  18852. C.tSa = C.Sy.create;
  18853. C.v6a = C.ez.create;
  18854. C.u6a = C.IE.create;
  18855. C.rRa = C.fd.create;
  18856. C.G2a = C.zv.create;
  18857. C.oQa = C.uD.create;
  18858. C.l6a = C.XK.create;
  18859. C.PPa = C.fv.create;
  18860. C.pe = C.N.extend({
  18861. ua: s,
  18862. ctor: function(c, d) {
  18863. C.LV();
  18864. C.N.prototype.ctor.call(this);
  18865. this.ua = C.size(0, 0);
  18866. d && this.k(c, d)
  18867. },
  18868. s: function() {
  18869. var c = new C.pe,
  18870. d = this.ua;
  18871. c.k(this.D, C.size(d.width, d.height));
  18872. return c
  18873. },
  18874. R: function(c) {
  18875. C.N.prototype.R.call(this, c);
  18876. var d = this.NH(),
  18877. f = this.target; (c = f.grid) && 0 < c.pp ? (d = c.CAa(), c.zi() && (d.width == this.ua.width && d.height == this.ua.height) && c.gR()) : (c && c.zi() && c.setActive(t), f.grid = d, f.grid.setActive(q))
  18878. },
  18879. reverse: function() {
  18880. return C.zv.create(this)
  18881. },
  18882. k: function(c, d) {
  18883. return C.N.prototype.k.call(this, c) ? (this.ua.width = d.width, this.ua.height = d.height, q) : t
  18884. },
  18885. NH: function() {
  18886. C.log("cc.GridAction.getGrid(): it should be overridden in subclass.")
  18887. }
  18888. });
  18889. C.pe.create = function(c, d) {
  18890. return new C.pe(c, d)
  18891. };
  18892. C.Vf = C.pe.extend({
  18893. NH: function() {
  18894. return C.iT.create(this.ua)
  18895. },
  18896. uja: function(c) {
  18897. return this.target.grid.uja(c)
  18898. },
  18899. uf: function(c) {
  18900. return this.target.grid.uf(c)
  18901. },
  18902. wh: function(c, d) {
  18903. this.target.grid.wh(c, d)
  18904. }
  18905. });
  18906. C.Vf.create = function(c, d) {
  18907. return new C.Vf(c, d)
  18908. };
  18909. C.Ie = C.pe.extend({
  18910. Xia: function(c) {
  18911. return this.target.grid.Xia(c)
  18912. },
  18913. sl: function(c) {
  18914. return this.target.grid.sl(c)
  18915. },
  18916. Aj: function(c, d) {
  18917. this.target.grid.Aj(c, d)
  18918. },
  18919. NH: function() {
  18920. return C.yU.create(this.ua)
  18921. }
  18922. });
  18923. C.Ie.create = function(c, d) {
  18924. return new C.Ie(c, d)
  18925. };
  18926. C.Bv = C.yh.extend({
  18927. R: function(c) {
  18928. C.yh.prototype.R.call(this, c); (c = this.target.grid) && c.zi() && c.setActive(t)
  18929. }
  18930. });
  18931. C.Bv.create = function() {
  18932. return new C.Bv
  18933. };
  18934. C.y7 = C.yh.extend({
  18935. ke: s,
  18936. ctor: function(c) {
  18937. C.yh.prototype.ctor.call(this);
  18938. c !== m && this.aDa(c)
  18939. },
  18940. aDa: function(c) {
  18941. this.ke = c;
  18942. return q
  18943. },
  18944. R: function(c) {
  18945. C.yh.prototype.R.call(this, c);
  18946. this.target.grid && this.target.grid.zi() && this.target.grid.gIa(this.target.grid.pp + this.ke)
  18947. }
  18948. });
  18949. C.y7.create = function(c) {
  18950. return new C.y7(c)
  18951. };
  18952. C.L8 = C.Vf.extend({
  18953. ak: 0,
  18954. kc: 0,
  18955. lc: 0,
  18956. ctor: function(c, d, f, g) {
  18957. C.pe.prototype.ctor.call(this);
  18958. g !== m && this.k(c, d, f, g)
  18959. },
  18960. VB: A("kc"),
  18961. RC: x("kc"),
  18962. Fx: A("lc"),
  18963. fy: x("lc"),
  18964. k: function(c, d, f, g) {
  18965. return C.Vf.prototype.k.call(this, c, d) ? (this.ak = f, this.kc = g, this.lc = 1, q) : t
  18966. },
  18967. update: function(c) {
  18968. for (var d = this.ua,
  18969. f = this.kc,
  18970. g = C.d(0, 0), h = this.lc, k = this.ak, n = 0; n < d.width + 1; ++n) for (var p = 0; p < d.height + 1; ++p) {
  18971. g.x = n;
  18972. g.y = p;
  18973. var r = this.uf(g);
  18974. r.f += Math.sin(2 * Math.PI * c * k + 0.01 * (r.y + r.x)) * f * h;
  18975. this.wh(g, r)
  18976. }
  18977. }
  18978. });
  18979. C.L8.create = function(c, d, f, g) {
  18980. return new C.L8(c, d, f, g)
  18981. };
  18982. C.gT = C.Vf.extend({
  18983. ctor: function(c) {
  18984. c !== m ? C.pe.prototype.ctor.call(this, c, C.size(1, 1)) : C.pe.prototype.ctor.call(this)
  18985. },
  18986. k: function(c) {
  18987. return C.Vf.prototype.k.call(this, c, C.size(1, 1))
  18988. },
  18989. Mp: function(c, d) {
  18990. return 1 != c.width || 1 != c.height ? (C.log("Grid size must be (1,1)"), t) : C.Vf.prototype.k.call(this, d, c)
  18991. },
  18992. update: function(c) {
  18993. var d = Math.PI * c;
  18994. c = Math.sin(d);
  18995. var f = Math.cos(d / 2),
  18996. d = new C.re,
  18997. g = C.d(0, 0);
  18998. g.x = g.y = 1;
  18999. var h = this.uf(g);
  19000. g.x = g.y = 0;
  19001. var g = this.uf(g),
  19002. k = h.x,
  19003. n = g.x,
  19004. p,
  19005. r;
  19006. k > n ? (h = C.d(0, 0), g = C.d(0, 1), p = C.d(1, 0), r = C.d(1, 1)) : (p = C.d(0, 0), r = C.d(0, 1), h = C.d(1, 0), g = C.d(1, 1), k = n);
  19007. d.x = k - k * f;
  19008. d.f = Math.abs(parseFloat(k * c / 4));
  19009. c = this.uf(h);
  19010. c.x = d.x;
  19011. c.f += d.f;
  19012. this.wh(h, c);
  19013. c = this.uf(g);
  19014. c.x = d.x;
  19015. c.f += d.f;
  19016. this.wh(g, c);
  19017. c = this.uf(p);
  19018. c.x -= d.x;
  19019. c.f -= d.f;
  19020. this.wh(p, c);
  19021. c = this.uf(r);
  19022. c.x -= d.x;
  19023. c.f -= d.f;
  19024. this.wh(r, c)
  19025. }
  19026. });
  19027. C.gT.create = function(c) {
  19028. return new C.gT(c)
  19029. };
  19030. C.V5 = C.gT.extend({
  19031. ctor: function(c) {
  19032. c !== m ? C.pe.prototype.ctor.call(this, c, C.size(1, 1)) : C.pe.prototype.ctor.call(this)
  19033. },
  19034. update: function(c) {
  19035. var d = Math.PI * c;
  19036. c = Math.sin(d);
  19037. var f = Math.cos(d / 2),
  19038. d = new C.re,
  19039. g = C.d(0, 0);
  19040. g.x = g.y = 1;
  19041. var h = this.uf(g);
  19042. g.x = g.y = 0;
  19043. var g = this.uf(g),
  19044. k = h.y,
  19045. n = g.y,
  19046. p,
  19047. r;
  19048. k > n ? (h = C.d(0, 0), g = C.d(0, 1), p = C.d(1, 0), r = C.d(1, 1)) : (g = C.d(0, 0), h = C.d(0, 1), r = C.d(1, 0), p = C.d(1, 1), k = n);
  19049. d.y = k - k * f;
  19050. d.f = Math.abs(parseFloat(k * c) / 4);
  19051. c = this.uf(h);
  19052. c.y = d.y;
  19053. c.f += d.f;
  19054. this.wh(h, c);
  19055. c = this.uf(g);
  19056. c.y -= d.y;
  19057. c.f -= d.f;
  19058. this.wh(g, c);
  19059. c = this.uf(p);
  19060. c.y = d.y;
  19061. c.f += d.f;
  19062. this.wh(p, c);
  19063. c = this.uf(r);
  19064. c.y -= d.y;
  19065. c.f -= d.f;
  19066. this.wh(r, c)
  19067. }
  19068. });
  19069. C.V5.create = function(c) {
  19070. return new C.V5(c)
  19071. };
  19072. C.w6 = C.Vf.extend({
  19073. ma: s,
  19074. Ui: 0,
  19075. ZM: 0,
  19076. vra: t,
  19077. Ac: t,
  19078. ctor: function(c, d, f, g) {
  19079. C.pe.prototype.ctor.call(this);
  19080. this.ma = C.d(0, 0);
  19081. g !== m && this.k(c, d, f, g)
  19082. },
  19083. fVa: A("ZM"),
  19084. u4a: x("ZM"),
  19085. I3a: x("vra"),
  19086. Ld: A("ma"),
  19087. p: function(c) {
  19088. C.b2(c, this.ma) || (this.ma.x = c.x, this.ma.y = c.y, this.Ac = q)
  19089. },
  19090. k: function(c, d, f, g) {
  19091. return C.Vf.prototype.k.call(this, c, d) ? (this.p(f), this.Ui = g, this.ZM = 0.7, this.Ac = q) : t
  19092. },
  19093. update: function() {
  19094. if (this.Ac) {
  19095. for (var c = this.ua.width,
  19096. d = this.ua.height,
  19097. f = this.Ui,
  19098. g = this.ZM,
  19099. h = C.d(0, 0), k = C.d(0, 0), n, p, r, v = 0; v < c + 1; ++v) for (var y = 0; y < d + 1; ++y) h.x = v,
  19100. h.y = y,
  19101. n = this.uf(h),
  19102. k.x = this.ma.x - n.x,
  19103. k.y = this.ma.y - n.y,
  19104. p = C.Ye(k),
  19105. p < f && (p = f - p, p /= f, 0 == p && (p = 0.0010), p = Math.log(p) * g, r = Math.exp(p) * f, p = C.Ye(k), 0 < p && (k.x /= p, k.y /= p, k.x *= r, k.y *= r, n.f += C.Ye(k) * g)),
  19106. this.wh(h, n);
  19107. this.Ac = t
  19108. }
  19109. }
  19110. });
  19111. C.w6.create = function(c, d, f, g) {
  19112. return new C.w6(c, d, f, g)
  19113. };
  19114. C.z7 = C.Vf.extend({
  19115. ma: s,
  19116. Ui: 0,
  19117. ak: 0,
  19118. kc: 0,
  19119. lc: 0,
  19120. ctor: function(c, d, f, g, h, k) {
  19121. C.pe.prototype.ctor.call(this);
  19122. this.ma = C.d(0, 0);
  19123. k !== m && this.k(c, d, f, g, h, k)
  19124. },
  19125. Ld: A("ma"),
  19126. p: function(c) {
  19127. this.ma.x = c.x;
  19128. this.ma.y = c.y
  19129. },
  19130. VB: A("kc"),
  19131. RC: x("kc"),
  19132. Fx: A("lc"),
  19133. fy: x("lc"),
  19134. k: function(c, d, f, g, h, k) {
  19135. return C.Vf.prototype.k.call(this, c, d) ? (this.p(f), this.Ui = g, this.ak = h, this.kc = k, this.lc = 1, q) : t
  19136. },
  19137. update: function(c) {
  19138. for (var d = this.ua.width,
  19139. f = this.ua.height,
  19140. g = C.d(0, 0), h = this.Ui, k = this.ak, n = this.kc, p = this.lc, r, v, y = C.d(0, 0), z = 0; z < d + 1; ++z) for (var D = 0; D < f + 1; ++D) g.x = z,
  19141. g.y = D,
  19142. r = this.uf(g),
  19143. y.x = this.ma.x - r.x,
  19144. y.y = this.ma.y - r.y,
  19145. v = C.Ye(y),
  19146. v < h && (v = h - v, r.f += Math.sin(2 * c * Math.PI * k + 0.1 * v) * n * p * Math.pow(v / h, 2)),
  19147. this.wh(g, r)
  19148. }
  19149. });
  19150. C.z7.create = function(c, d, f, g, h, k) {
  19151. return new C.z7(c, d, f, g, h, k)
  19152. };
  19153. C.H7 = C.Vf.extend({
  19154. Qt: 0,
  19155. FG: t,
  19156. ctor: function(c, d, f, g) {
  19157. C.pe.prototype.ctor.call(this);
  19158. g !== m && this.k(c, d, f, g)
  19159. },
  19160. k: function(c, d, f, g) {
  19161. return C.Vf.prototype.k.call(this, c, d) ? (this.Qt = f, this.FG = g, q) : t
  19162. },
  19163. update: function() {
  19164. for (var c = this.ua.width,
  19165. d = this.ua.height,
  19166. f = this.Qt,
  19167. g = this.FG,
  19168. h = C.d(0, 0), k, n = 0; n < c + 1; ++n) for (var p = 0; p < d + 1; ++p) h.x = n,
  19169. h.y = p,
  19170. k = this.uf(h),
  19171. k.x += C.dd() % (2 * f) - f,
  19172. k.y += C.dd() % (2 * f) - f,
  19173. g && (k.f += C.dd() % (2 * f) - f),
  19174. this.wh(h, k)
  19175. }
  19176. });
  19177. C.H7.create = function(c, d, f, g) {
  19178. return new C.H7(c, d, f, g)
  19179. };
  19180. C.x6 = C.Vf.extend({
  19181. ak: 0,
  19182. kc: 0,
  19183. lc: 0,
  19184. ctor: function(c, d, f, g) {
  19185. C.pe.prototype.ctor.call(this);
  19186. g !== m && this.k(c, d, f, g)
  19187. },
  19188. VB: A("kc"),
  19189. RC: x("kc"),
  19190. Fx: A("lc"),
  19191. fy: x("lc"),
  19192. k: function(c, d, f, g) {
  19193. return C.Vf.prototype.k.call(this, c, d) ? (this.ak = f, this.kc = g, this.lc = 1, q) : t
  19194. },
  19195. update: function(c) {
  19196. for (var d = this.ua.width,
  19197. f = this.ua.height,
  19198. g = C.d(0, 0), h = this.ak, k = this.kc, n = this.lc, p, r = 1; r < d; ++r) for (var v = 1; v < f; ++v) g.x = r,
  19199. g.y = v,
  19200. p = this.uf(g),
  19201. p.x += Math.sin(2 * c * Math.PI * h + 0.01 * p.x) * k * n,
  19202. p.y += Math.sin(2 * c * Math.PI * h + 0.01 * p.y) * k * n,
  19203. this.wh(g, p)
  19204. }
  19205. });
  19206. C.x6.create = function(c, d, f, g) {
  19207. return new C.x6(c, d, f, g)
  19208. };
  19209. C.K8 = C.Vf.extend({
  19210. ak: 0,
  19211. kc: 0,
  19212. lc: 0,
  19213. jca: t,
  19214. Z$: t,
  19215. ctor: function(c, d, f, g, h, k) {
  19216. C.pe.prototype.ctor.call(this);
  19217. k !== m && this.k(c, d, f, g, h, k)
  19218. },
  19219. VB: A("kc"),
  19220. RC: x("kc"),
  19221. Fx: A("lc"),
  19222. fy: x("lc"),
  19223. k: function(c, d, f, g, h, k) {
  19224. return C.Vf.prototype.k.call(this, c, d) ? (this.ak = f, this.kc = g, this.lc = 1, this.Z$ = h, this.jca = k, q) : t
  19225. },
  19226. update: function(c) {
  19227. for (var d = this.ua.width,
  19228. f = this.ua.height,
  19229. g = C.d(0, 0), h = this.jca, k = this.Z$, n = this.ak, p = this.kc, r = this.lc, v, y = 0; y < d + 1; ++y) for (var z = 0; z < f + 1; ++z) g.x = y,
  19230. g.y = z,
  19231. v = this.uf(g),
  19232. h && (v.x += Math.sin(2 * c * Math.PI * n + 0.01 * v.y) * p * r),
  19233. k && (v.y += Math.sin(2 * c * Math.PI * n + 0.01 * v.x) * p * r),
  19234. this.wh(g, v)
  19235. }
  19236. });
  19237. C.K8.create = function(c, d, f, g, h, k) {
  19238. return new C.K8(c, d, f, g, h, k)
  19239. };
  19240. C.F8 = C.Vf.extend({
  19241. ma: s,
  19242. Wba: 0,
  19243. kc: 0,
  19244. lc: 0,
  19245. ctor: function(c, d, f, g, h) {
  19246. C.pe.prototype.ctor.call(this);
  19247. this.ma = C.d(0, 0);
  19248. h !== m && this.k(c, d, f, g, h)
  19249. },
  19250. Ld: A("ma"),
  19251. p: function(c) {
  19252. this.ma.x = c.x;
  19253. this.ma.y = c.y
  19254. },
  19255. VB: A("kc"),
  19256. RC: x("kc"),
  19257. Fx: A("lc"),
  19258. fy: x("lc"),
  19259. k: function(c, d, f, g, h) {
  19260. return C.Vf.prototype.k.call(this, c, d) ? (this.p(f), this.Wba = g, this.kc = h, this.lc = 1, q) : t
  19261. },
  19262. update: function(c) {
  19263. for (var d = this.ma,
  19264. f = this.ua.width,
  19265. g = this.ua.height,
  19266. h = C.d(0, 0), k = 0.1 * this.kc * this.lc, n = this.Wba, p, r, v, y = C.d(0, 0), z = 0; z < f + 1; ++z) for (var D = 0; D < g + 1; ++D) h.x = z,
  19267. h.y = D,
  19268. p = this.uf(h),
  19269. y.x = z - f / 2,
  19270. y.y = D - g / 2,
  19271. r = C.Ye(y) * Math.cos(Math.PI / 2 + 2 * c * Math.PI * n) * k,
  19272. v = Math.sin(r) * (p.y - d.y) + Math.cos(r) * (p.x - d.x),
  19273. r = Math.cos(r) * (p.y - d.y) - Math.sin(r) * (p.x - d.x),
  19274. p.x = d.x + v,
  19275. p.y = d.y + r,
  19276. this.wh(h, p)
  19277. }
  19278. });
  19279. C.F8.create = function(c, d, f, g, h) {
  19280. return new C.F8(c, d, f, g, h)
  19281. };
  19282. C.I7 = C.Ie.extend({
  19283. Qt: 0,
  19284. FG: t,
  19285. ctor: function(c, d, f, g) {
  19286. C.pe.prototype.ctor.call(this);
  19287. g !== m && this.k(c, d, f, g)
  19288. },
  19289. k: function(c, d, f, g) {
  19290. return C.Ie.prototype.k.call(this, c, d) ? (this.Qt = f, this.FG = g, q) : t
  19291. },
  19292. update: function() {
  19293. for (var c = this.ua,
  19294. d = this.Qt,
  19295. f = C.d(0, 0), g = 0; g < c.width; ++g) for (var h = 0; h < c.height; ++h) {
  19296. f.x = g;
  19297. f.y = h;
  19298. var k = this.sl(f);
  19299. k.T.x += C.dd() % (2 * d) - d;
  19300. k.Y.x += C.dd() % (2 * d) - d;
  19301. k.X.x += C.dd() % (2 * d) - d;
  19302. k.V.x += C.dd() % (2 * d) - d;
  19303. k.T.y += C.dd() % (2 * d) - d;
  19304. k.Y.y += C.dd() % (2 * d) - d;
  19305. k.X.y += C.dd() % (2 * d) - d;
  19306. k.V.y += C.dd() % (2 * d) - d;
  19307. this.FG && (k.T.f += C.dd() % (2 * d) - d, k.Y.f += C.dd() % (2 * d) - d, k.X.f += C.dd() % (2 * d) - d, k.V.f += C.dd() % (2 * d) - d);
  19308. this.Aj(f, k)
  19309. }
  19310. }
  19311. });
  19312. C.I7.create = function(c, d, f, g) {
  19313. return new C.I7(c, d, f, g)
  19314. };
  19315. C.J7 = C.Ie.extend({
  19316. Qt: 0,
  19317. IX: t,
  19318. Eba: t,
  19319. ctor: function(c, d, f, g) {
  19320. C.pe.prototype.ctor.call(this);
  19321. g !== m && this.k(c, d, f, g)
  19322. },
  19323. k: function(c, d, f, g) {
  19324. return C.Ie.prototype.k.call(this, c, d) ? (this.IX = t, this.Qt = f, this.Eba = g, q) : t
  19325. },
  19326. update: function() {
  19327. if (this.IX === t) {
  19328. for (var c = this.ua,
  19329. d = this.Qt,
  19330. f, g = C.d(0, 0), h = 0; h < c.width; ++h) for (var k = 0; k < c.height; ++k) g.x = h,
  19331. g.y = k,
  19332. f = this.sl(g),
  19333. f.T.x += C.dd() % (2 * d) - d,
  19334. f.Y.x += C.dd() % (2 * d) - d,
  19335. f.X.x += C.dd() % (2 * d) - d,
  19336. f.V.x += C.dd() % (2 * d) - d,
  19337. f.T.y += C.dd() % (2 * d) - d,
  19338. f.Y.y += C.dd() % (2 * d) - d,
  19339. f.X.y += C.dd() % (2 * d) - d,
  19340. f.V.y += C.dd() % (2 * d) - d,
  19341. this.Eba && (f.T.f += C.dd() % (2 * d) - d, f.Y.f += C.dd() % (2 * d) - d, f.X.f += C.dd() % (2 * d) - d, f.V.f += C.dd() % (2 * d) - d),
  19342. this.Aj(g, f);
  19343. this.IX = q
  19344. }
  19345. }
  19346. });
  19347. C.J7.create = function(c, d, f, g) {
  19348. return new C.J7(c, d, f, g)
  19349. };
  19350. function na() {
  19351. this.position = C.d(0, 0);
  19352. this.TIa = C.d(0, 0);
  19353. this.JB = C.d(0, 0)
  19354. }
  19355. C.K7 = C.Ie.extend({
  19356. wY: 0,
  19357. Cr: 0,
  19358. up: s,
  19359. $i: s,
  19360. ctor: function(c, d, f) {
  19361. C.pe.prototype.ctor.call(this);
  19362. this.up = [];
  19363. this.$i = [];
  19364. f !== m && this.k(c, d, f)
  19365. },
  19366. k: function(c, d, f) {
  19367. return C.Ie.prototype.k.call(this, c, d) ? (this.wY = f, this.up.length = 0, this.$i.length = 0, q) : t
  19368. },
  19369. A3: function(c, d) {
  19370. for (var f = d - 1; 0 <= f; f--) {
  19371. var g = 0 | C.dd() % (f + 1),
  19372. h = c[f];
  19373. c[f] = c[g];
  19374. c[g] = h
  19375. }
  19376. },
  19377. p0: function(c) {
  19378. var d = this.ua,
  19379. f = c.width * d.height + c.height;
  19380. return C.size(this.up[f] / d.height - c.width, this.up[f] % d.height - c.height)
  19381. },
  19382. EFa: function(c, d) {
  19383. var f = this.sl(c),
  19384. g = this.target.grid.G0(),
  19385. h = d.position;
  19386. f.T.x += h.x * g.x;
  19387. f.T.y += h.y * g.y;
  19388. f.Y.x += h.x * g.x;
  19389. f.Y.y += h.y * g.y;
  19390. f.X.x += h.x * g.x;
  19391. f.X.y += h.y * g.y;
  19392. f.V.x += h.x * g.x;
  19393. f.V.y += h.y * g.y;
  19394. this.Aj(c, f)
  19395. },
  19396. R: function(c) {
  19397. C.Ie.prototype.R.call(this, c);
  19398. c = this.ua;
  19399. this.Cr = c.width * c.height;
  19400. for (var d = this.up,
  19401. f = d.length = 0; f < this.Cr; ++f) d[f] = f;
  19402. this.A3(d, this.Cr);
  19403. for (var d = this.$i,
  19404. f = d.length = 0,
  19405. g = C.size(0, 0), h = 0; h < c.width; ++h) for (var k = 0; k < c.height; ++k) d[f] = new na,
  19406. d[f].position = C.d(h, k),
  19407. d[f].TIa = C.d(h, k),
  19408. g.width = h,
  19409. g.height = k,
  19410. d[f].JB = this.p0(g),
  19411. ++f
  19412. },
  19413. update: function(c) {
  19414. for (var d = 0,
  19415. f = this.ua,
  19416. g = this.$i,
  19417. h, k = C.d(0, 0), n = 0; n < f.width; ++n) for (var p = 0; p < f.height; ++p) k.x = n,
  19418. k.y = p,
  19419. h = g[d],
  19420. h.position.x = h.JB.width * c,
  19421. h.position.y = h.JB.height * c,
  19422. this.EFa(k, h),
  19423. ++d
  19424. }
  19425. });
  19426. C.K7.create = function(c, d, f) {
  19427. return new C.K7(c, d, f)
  19428. };
  19429. C.kE = C.Ie.extend({
  19430. cS: function(c, d) {
  19431. var f = this.ua.width * d,
  19432. g = this.ua.height * d;
  19433. return 0 == f + g ? 1 : Math.pow((c.width + c.height) / (f + g), 6)
  19434. },
  19435. R3: function(c) {
  19436. this.Aj(c, this.sl(c))
  19437. },
  19438. Q3: function(c) {
  19439. this.Aj(c, new C.FK)
  19440. },
  19441. aja: function(c, d) {
  19442. var f = this.sl(c),
  19443. g = this.target.grid.G0();
  19444. f.T.x += g.x / 2 * (1 - d);
  19445. f.T.y += g.y / 2 * (1 - d);
  19446. f.Y.x -= g.x / 2 * (1 - d);
  19447. f.Y.y += g.y / 2 * (1 - d);
  19448. f.X.x += g.x / 2 * (1 - d);
  19449. f.X.y -= g.y / 2 * (1 - d);
  19450. f.V.x -= g.x / 2 * (1 - d);
  19451. f.V.y -= g.y / 2 * (1 - d);
  19452. this.Aj(c, f)
  19453. },
  19454. update: function(c) {
  19455. for (var d = this.ua,
  19456. f = C.d(0, 0), g = C.size(0, 0), h, k = 0; k < d.width; ++k) for (var n = 0; n < d.height; ++n) f.x = k,
  19457. f.y = n,
  19458. g.width = k,
  19459. g.height = n,
  19460. h = this.cS(g, c),
  19461. 0 == h ? this.Q3(f) : 1 > h ? this.aja(f, h) : this.R3(f)
  19462. }
  19463. });
  19464. C.kE.create = function(c, d) {
  19465. return new C.kE(c, d)
  19466. };
  19467. C.eT = C.kE.extend({
  19468. cS: function(c, d) {
  19469. return 0 == c.width + c.height ? 1 : Math.pow((this.ua.width * (1 - d) + this.ua.height * (1 - d)) / (c.width + c.height), 6)
  19470. }
  19471. });
  19472. C.eT.create = function(c, d) {
  19473. return new C.eT(c, d)
  19474. };
  19475. C.sK = C.kE.extend({
  19476. cS: function(c, d) {
  19477. var f = this.ua.height * d;
  19478. return 0 == f ? 1 : Math.pow(c.height / f, 6)
  19479. },
  19480. aja: function(c, d) {
  19481. var f = this.sl(c),
  19482. g = this.target.grid.G0();
  19483. f.T.y += g.y / 2 * (1 - d);
  19484. f.Y.y += g.y / 2 * (1 - d);
  19485. f.X.y -= g.y / 2 * (1 - d);
  19486. f.V.y -= g.y / 2 * (1 - d);
  19487. this.Aj(c, f)
  19488. }
  19489. });
  19490. C.sK.create = function(c, d) {
  19491. return new C.sK(c, d)
  19492. };
  19493. C.fT = C.sK.extend({
  19494. cS: function(c, d) {
  19495. return 0 == c.height ? 1 : Math.pow(this.ua.height * (1 - d) / c.height, 6)
  19496. }
  19497. });
  19498. C.fT.create = function(c, d) {
  19499. return new C.fT(c, d)
  19500. };
  19501. C.CU = C.Ie.extend({
  19502. wY: s,
  19503. Cr: 0,
  19504. up: s,
  19505. ctor: function(c, d, f) {
  19506. C.pe.prototype.ctor.call(this);
  19507. this.up = [];
  19508. d !== m && this.k(c, d, f)
  19509. },
  19510. k: function(c, d, f) {
  19511. return C.Ie.prototype.k.call(this, c, d) ? (this.wY = f || 0, this.up.length = 0, q) : t
  19512. },
  19513. A3: function(c, d) {
  19514. for (var f = d - 1; 0 <= f; f--) {
  19515. var g = 0 | C.dd() % (f + 1),
  19516. h = c[f];
  19517. c[f] = c[g];
  19518. c[g] = h
  19519. }
  19520. },
  19521. R3: function(c) {
  19522. this.Aj(c, this.sl(c))
  19523. },
  19524. Q3: function(c) {
  19525. this.Aj(c, new C.FK)
  19526. },
  19527. R: function(c) {
  19528. C.Ie.prototype.R.call(this, c);
  19529. this.Cr = this.ua.width * this.ua.height;
  19530. c = this.up;
  19531. for (var d = c.length = 0; d < this.Cr; ++d) c[d] = d;
  19532. this.A3(c, this.Cr)
  19533. },
  19534. update: function(c) {
  19535. c = 0 | c * this.Cr;
  19536. for (var d = this.ua,
  19537. f, g = C.d(0, 0), h = this.up, k = 0; k < this.Cr; k++) f = h[k],
  19538. g.x = 0 | f / d.height,
  19539. g.y = f % (0 | d.height),
  19540. k < c ? this.Q3(g) : this.R3(g)
  19541. }
  19542. });
  19543. C.CU.create = function(c, d, f) {
  19544. return new C.CU(c, d, f)
  19545. };
  19546. C.M8 = C.Ie.extend({
  19547. ak: 0,
  19548. kc: 0,
  19549. lc: 0,
  19550. ctor: function(c, d, f, g) {
  19551. C.pe.prototype.ctor.call(this);
  19552. g !== m && this.k(c, d, f, g)
  19553. },
  19554. VB: A("kc"),
  19555. RC: x("kc"),
  19556. Fx: A("lc"),
  19557. fy: x("lc"),
  19558. k: function(c, d, f, g) {
  19559. return C.Ie.prototype.k.call(this, c, d) ? (this.ak = f, this.kc = g, this.lc = 1, q) : t
  19560. },
  19561. update: function(c) {
  19562. for (var d = this.ua,
  19563. f = this.ak,
  19564. g = this.kc,
  19565. h = this.lc,
  19566. k = C.d(0, 0), n, p = 0; p < d.width; p++) for (var r = 0; r < d.height; r++) k.x = p,
  19567. k.y = r,
  19568. n = this.sl(k),
  19569. n.T.f = Math.sin(2 * c * Math.PI * f + 0.01 * (n.T.y + n.T.x)) * g * h,
  19570. n.Y.f = n.T.f,
  19571. n.X.f = n.T.f,
  19572. n.V.f = n.T.f,
  19573. this.Aj(k, n)
  19574. }
  19575. });
  19576. C.M8.create = function(c, d, f, g) {
  19577. return new C.M8(c, d, f, g)
  19578. };
  19579. C.f6 = C.Ie.extend({
  19580. ar: 0,
  19581. kc: 0,
  19582. lc: 0,
  19583. ctor: function(c, d, f, g) {
  19584. C.pe.prototype.ctor.call(this);
  19585. g !== m && this.k(c, d, f, g)
  19586. },
  19587. VB: A("kc"),
  19588. RC: x("kc"),
  19589. Fx: A("lc"),
  19590. fy: x("lc"),
  19591. k: function(c, d, f, g) {
  19592. return C.Ie.prototype.k.call(this, c, d) ? (this.ar = f, this.kc = g, this.lc = 1, q) : t
  19593. },
  19594. update: function(c) {
  19595. var d = Math.sin(2 * Math.PI * c * this.ar) * this.kc * this.lc;
  19596. c = Math.sin(Math.PI * (2 * c * this.ar + 1)) * this.kc * this.lc;
  19597. for (var f = this.ua,
  19598. g = this.target.grid,
  19599. h, k = C.d(0, 0), n = 0; n < f.width; n++) for (var p = 0; p < f.height; p++) k.x = n,
  19600. k.y = p,
  19601. h = g.sl(k),
  19602. 0 == (n + p) % 2 ? (h.T.f += d, h.Y.f += d, h.X.f += d, h.V.f += d) : (h.T.f += c, h.Y.f += c, h.X.f += c, h.V.f += c),
  19603. g.Aj(k, h)
  19604. }
  19605. });
  19606. C.f6.create = function(c, d, f, g) {
  19607. return new C.f6(c, d, f, g)
  19608. };
  19609. C.gU = C.Ie.extend({
  19610. Jua: 0,
  19611. jH: s,
  19612. ctor: function(c, d) {
  19613. C.pe.prototype.ctor.call(this);
  19614. d !== m && this.k(c, d)
  19615. },
  19616. k: function(c, d) {
  19617. this.Jua = d;
  19618. return C.Ie.prototype.k.call(this, c, C.size(1, d))
  19619. },
  19620. update: function(c) {
  19621. for (var d = this.ua,
  19622. f = this.jH.width,
  19623. g, h, k = C.d(0, 0), n = 0; n < d.height; ++n) k.y = n,
  19624. g = this.sl(k),
  19625. h = 1,
  19626. 0 == n % 2 && (h = -1),
  19627. g.T.x += h * f * c,
  19628. g.Y.x += h * f * c,
  19629. g.X.x += h * f * c,
  19630. g.V.x += h * f * c,
  19631. this.Aj(k, g)
  19632. },
  19633. R: function(c) {
  19634. C.Ie.prototype.R.call(this, c);
  19635. this.jH = C.Q.bI()
  19636. }
  19637. });
  19638. C.gU.create = function(c, d) {
  19639. return new C.gU(c, d)
  19640. };
  19641. C.fU = C.Ie.extend({
  19642. ura: 0,
  19643. jH: s,
  19644. ctor: function(c, d) {
  19645. C.pe.prototype.ctor.call(this);
  19646. d !== m && this.k(c, d)
  19647. },
  19648. k: function(c, d) {
  19649. this.ura = d;
  19650. return C.Ie.prototype.k.call(this, c, C.size(d, 1))
  19651. },
  19652. update: function(c) {
  19653. for (var d = this.ua.width,
  19654. f = this.jH.height,
  19655. g, h, k = C.d(0, 0), n = 0; n < d; ++n) k.x = n,
  19656. g = this.sl(k),
  19657. h = 1,
  19658. 0 == n % 2 && (h = -1),
  19659. g.T.y += h * f * c,
  19660. g.Y.y += h * f * c,
  19661. g.X.y += h * f * c,
  19662. g.V.y += h * f * c,
  19663. this.Aj(k, g)
  19664. },
  19665. R: function(c) {
  19666. C.Ie.prototype.R.call(this, c);
  19667. this.jH = C.Q.bI()
  19668. }
  19669. });
  19670. C.fU.create = function(c, d) {
  19671. return new C.fU(c, d)
  19672. };
  19673. C.CK = C.Vf.extend({
  19674. update: function(c) {
  19675. var d = Math.max(0, c - 0.25),
  19676. d = -100 - 500 * d * d,
  19677. f = +Math.PI / 2 + -Math.PI / 2 * Math.sqrt(c);
  19678. c = Math.sin(f);
  19679. for (var f = Math.cos(f), g = this.ua, h = C.d(0, 0), k = 0; k <= g.width; ++k) for (var n = 0; n <= g.height; ++n) {
  19680. h.x = k;
  19681. h.y = n;
  19682. var p = this.uf(h),
  19683. r = Math.sqrt(p.x * p.x + (p.y - d) * (p.y - d)),
  19684. v = r * c,
  19685. y = Math.asin(p.x / r) / c,
  19686. z = Math.cos(y);
  19687. p.x = y <= Math.PI ? v * Math.sin(y) : 0;
  19688. p.y = r + d - v * (1 - z) * c;
  19689. p.f = v * (1 - z) * f / 7;
  19690. 0.5 > p.f && (p.f = 0.5);
  19691. this.wh(h, p)
  19692. }
  19693. }
  19694. });
  19695. C.CK.create = function(c, d) {
  19696. return new C.CK(c, d)
  19697. };
  19698. C.Lb = C.ha.extend({
  19699. xc: s,
  19700. wn: 0,
  19701. ie: s,
  19702. tn: s,
  19703. Lv: s,
  19704. gh: t,
  19705. qa: "ProgressTimer",
  19706. eBa: function() {
  19707. return C.d(this.tn.x, this.tn.y)
  19708. },
  19709. KHa: function(c) {
  19710. this.tn = C.jga(c)
  19711. },
  19712. dAa: function() {
  19713. return C.d(this.Lv.x, this.Lv.y)
  19714. },
  19715. cHa: function(c) {
  19716. this.Lv = C.jga(c)
  19717. },
  19718. $H: A("xc"),
  19719. uBa: A("wn"),
  19720. E0: A("ie"),
  19721. X2: function(c) {
  19722. this.wn != c && (this.wn = C.Nf(c, 0, 100), this.tZ())
  19723. },
  19724. $d: u(),
  19725. qg: B(t),
  19726. yDa: A("gh"),
  19727. zV: function(c) {
  19728. if (c < C.Lb.O7) {
  19729. var d = C.Lb.qpa;
  19730. return this.gh ? C.d(d >> 7 - (c << 1) & 1, d >> 7 - ((c << 1) + 1) & 1) : C.d(d >> (c << 1) + 1 & 1, d >> (c << 1) & 1)
  19731. }
  19732. return C.d(0, 0)
  19733. },
  19734. uN: s,
  19735. Sw: 270,
  19736. pW: 270,
  19737. Ui: 0,
  19738. TV: t,
  19739. tV: s,
  19740. Lg: 0,
  19741. Ue: s,
  19742. $j: s,
  19743. AZ: s,
  19744. fH: t,
  19745. ctor: s,
  19746. pF: function() {
  19747. C.ha.prototype.ctor.call(this);
  19748. this.xc = C.Lb.Fo;
  19749. this.wn = 0;
  19750. this.tn = C.d(0, 0);
  19751. this.Lv = C.d(0, 0);
  19752. this.gh = t;
  19753. this.ie = s;
  19754. this.uN = C.d(0, 0);
  19755. this.pW = this.Sw = 270;
  19756. this.Ui = 0;
  19757. this.TV = t;
  19758. this.tV = C.rect(0, 0, 0, 0)
  19759. },
  19760. qF: function() {
  19761. C.ha.prototype.ctor.call(this);
  19762. this.xc = C.Lb.Fo;
  19763. this.wn = 0;
  19764. this.tn = C.d(0, 0);
  19765. this.Lv = C.d(0, 0);
  19766. this.gh = t;
  19767. this.ie = s;
  19768. this.AZ = C.t.createBuffer();
  19769. this.Lg = 0;
  19770. this.$j = this.Ue = s;
  19771. this.fH = t
  19772. },
  19773. G: function(c) {
  19774. this.ie.color = c;
  19775. this.Gd()
  19776. },
  19777. K: function(c) {
  19778. this.ie.opacity = c;
  19779. this.Gd()
  19780. },
  19781. Xa: function() {
  19782. return this.ie.color
  19783. },
  19784. rb: function() {
  19785. return this.ie.opacity
  19786. },
  19787. lia: s,
  19788. iva: function(c) {
  19789. this.gh !== c && (this.gh = c)
  19790. },
  19791. jva: function(c) {
  19792. this.gh !== c && (this.gh = c, this.$j = this.Ue = s, this.Lg = 0)
  19793. },
  19794. NR: s,
  19795. ova: function(c) {
  19796. this.ie != c && (this.ie = c, this.width = this.ie.width, this.height = this.ie.height)
  19797. },
  19798. pva: function(c) {
  19799. c && this.ie != c && (this.ie = c, this.width = c.width, this.height = c.height, this.Ue && (this.$j = this.Ue = s, this.Lg = 0))
  19800. },
  19801. rJ: s,
  19802. xva: function(c) {
  19803. c !== this.xc && (this.xc = c)
  19804. },
  19805. yva: function(c) {
  19806. c !== this.xc && (this.Ue && (this.$j = this.Ue = s, this.Lg = 0), this.xc = c)
  19807. },
  19808. e3: s,
  19809. gva: function(c) {
  19810. this.gh !== c && (this.gh = c)
  19811. },
  19812. hva: function(c) {
  19813. this.gh !== c && (this.gh = c, this.$j = this.Ue = s, this.Lg = 0)
  19814. },
  19815. ti: function(c) {
  19816. var d = this.ie;
  19817. if (!d) return {
  19818. xa: 0,
  19819. ea: 0
  19820. };
  19821. var f = d.quad,
  19822. g = C.d(f.T.v.xa, f.T.v.ea),
  19823. f = C.d(f.V.v.xa, f.V.v.ea);
  19824. d.textureRectRotated && (d = c.x, c.x = c.y, c.y = d);
  19825. return {
  19826. xa: g.x * (1 - c.x) + f.x * c.x,
  19827. ea: g.y * (1 - c.y) + f.y * c.y
  19828. }
  19829. },
  19830. vi: function(c) {
  19831. if (!this.ie) return {
  19832. x: 0,
  19833. y: 0
  19834. };
  19835. var d = this.ie.quad,
  19836. f = C.d(d.T.m.x, d.T.m.y),
  19837. d = C.d(d.V.m.x, d.V.m.y);
  19838. return {
  19839. x: f.x * (1 - c.x) + d.x * c.x,
  19840. y: f.y * (1 - c.y) + d.y * c.y
  19841. }
  19842. },
  19843. Y0: s,
  19844. fta: function(c) {
  19845. this.percentage = 0;
  19846. this.anchorY = this.anchorX = 0.5;
  19847. this.xc = C.Lb.Fo;
  19848. this.gh = t;
  19849. this.midPoint = C.d(0.5, 0.5);
  19850. this.barChangeRate = C.d(1, 1);
  19851. this.sprite = c;
  19852. return q
  19853. },
  19854. gta: function(c) {
  19855. this.percentage = 0;
  19856. this.$j = this.Ue = s;
  19857. this.Lg = 0;
  19858. this.anchorY = this.anchorX = 0.5;
  19859. this.xc = C.Lb.Fo;
  19860. this.gh = t;
  19861. this.midPoint = C.d(0.5, 0.5);
  19862. this.barChangeRate = C.d(1, 1);
  19863. this.sprite = c;
  19864. this.shaderProgram = C.ug.Xd(C.Co);
  19865. return q
  19866. },
  19867. ka: s,
  19868. Qq: function(c) {
  19869. c = c || C.t;
  19870. var d = this.ie;
  19871. d.rA && (c.globalCompositeOperation = "lighter");
  19872. var f = C.view.ia,
  19873. g = C.view.pa;
  19874. c.globalAlpha = d.hb / 255;
  19875. var h = d.Ra,
  19876. k = d.o,
  19877. n = d.ld,
  19878. p = d.mW,
  19879. r = 0 | n.x,
  19880. v = -n.y - h.height,
  19881. y = d.jB;
  19882. p.width = h.width * f;
  19883. p.height = h.height * g;
  19884. c.save();
  19885. d.Bb && (r = -n.x - h.width, c.scale( - 1, 1));
  19886. d.Db && (v = n.y, c.scale(1, -1));
  19887. r *= f;
  19888. v *= g;
  19889. this.xc == C.Lb.Is ? (h = this.tV, c.beginPath(), c.rect(h.x * f, h.y * g, h.width * f, h.height * g), c.clip(), c.closePath()) : this.xc == C.Lb.Fo && (h = this.uN.x * f, n = this.uN.y * g, c.beginPath(), c.arc(h, n, this.Ui * g, Math.PI / 180 * this.Sw, Math.PI / 180 * this.pW, this.TV), c.lineTo(h, n), c.clip(), c.closePath());
  19890. d.da && y.nD ? (f = d.da.jd, this.KL ? c.drawImage(f, 0, 0, y.width, y.height, r, v, p.width, p.height) : c.drawImage(f, y.x, y.y, y.width, y.height, r, v, p.width, p.height)) : 0 !== k.width && (p = this.color, c.fillStyle = "rgba(" + p.r + "," + p.g + "," + p.b + ",1)", c.fillRect(r, v, k.width * f, k.height * g));
  19891. c.restore();
  19892. C.nl()
  19893. },
  19894. gn: function(c) {
  19895. c = c || C.t;
  19896. if (this.Ue && this.ie) {
  19897. C.BC(this);
  19898. var d = this.ie.ek();
  19899. C.Gm(d.src, d.ga);
  19900. C.rf(C.Dv);
  19901. C.yi(this.ie.texture);
  19902. c.bindBuffer(c.ARRAY_BUFFER, this.AZ);
  19903. this.fH && (c.bufferData(c.ARRAY_BUFFER, this.$j, c.DYNAMIC_DRAW), this.fH = t);
  19904. d = C.Ug.BYTES_PER_ELEMENT;
  19905. c.vertexAttribPointer(C.Lc, 2, c.FLOAT, t, d, 0);
  19906. c.vertexAttribPointer(C.Hi, 4, c.UNSIGNED_BYTE, q, d, 8);
  19907. c.vertexAttribPointer(C.Vg, 2, c.FLOAT, t, d, 12);
  19908. this.xc === C.Lb.Fo ? c.drawArrays(c.TRIANGLE_FAN, 0, this.Lg) : this.xc == C.Lb.Is && (this.gh ? (c.drawArrays(c.TRIANGLE_STRIP, 0, this.Lg / 2), c.drawArrays(c.TRIANGLE_STRIP, 4, this.Lg / 2), C.kl++) : c.drawArrays(c.TRIANGLE_STRIP, 0, this.Lg));
  19909. C.kl++
  19910. }
  19911. },
  19912. hwa: function() {
  19913. if (this.ie) {
  19914. var c, d = this.tn;
  19915. c = this.wn / 100;
  19916. var f = 2 * C.PI * (this.gh ? c: 1 - c),
  19917. g = C.d(d.x, 1),
  19918. h = C.TEa(g, d, f),
  19919. f = 0;
  19920. if (0 == c) h = g,
  19921. f = 0;
  19922. else if (1 == c) h = g,
  19923. f = 4;
  19924. else {
  19925. var k = C.pv,
  19926. n = C.Lb.O7;
  19927. for (c = 0; c <= n; ++c) {
  19928. var p = (c + (n - 1)) % n,
  19929. r = this.zV(c % n),
  19930. p = this.zV(p);
  19931. 0 == c ? p = C.oga(r, p, 1 - d.x) : 4 == c && (r = C.oga(r, p, 1 - d.x));
  19932. var v = C.d(0, 0);
  19933. if (C.R1(r, p, d, h, v) && (!(0 == c || 4 == c) || 0 <= v.x && 1 >= v.x) && 0 <= v.y && v.y < k) k = v.y,
  19934. f = c
  19935. }
  19936. h = C.ho(d, C.Wp(C.cc(h, d), k))
  19937. }
  19938. k = q;
  19939. this.Lg != f + 3 && (k = t, this.$j = this.Ue = s, this.Lg = 0);
  19940. if (!this.Ue) {
  19941. n = this.Lg = f + 3;
  19942. r = C.Ug.BYTES_PER_ELEMENT;
  19943. this.$j = new ArrayBuffer(n * r);
  19944. p = [];
  19945. for (c = 0; c < n; c++) p[c] = new C.Ug(s, s, s, this.$j, c * r);
  19946. this.Ue = p;
  19947. if (!this.Ue) {
  19948. C.log("cc.ProgressTimer._updateRadial() : Not enough memory");
  19949. return
  19950. }
  19951. }
  19952. this.Gd();
  19953. n = this.Ue;
  19954. if (!k) {
  19955. n[0].v = this.ti(d);
  19956. n[0].m = this.vi(d);
  19957. n[1].v = this.ti(g);
  19958. n[1].m = this.vi(g);
  19959. for (c = 0; c < f; c++) d = this.zV(c),
  19960. n[c + 2].v = this.ti(d),
  19961. n[c + 2].m = this.vi(d)
  19962. }
  19963. n[this.Lg - 1].v = this.ti(h);
  19964. n[this.Lg - 1].m = this.vi(h)
  19965. }
  19966. },
  19967. $va: function() {
  19968. if (this.ie) {
  19969. var c, d = this.wn / 100,
  19970. f = this.Lv,
  19971. f = C.Wp(C.d(1 - f.x + d * f.x, 1 - f.y + d * f.y), 0.5),
  19972. d = C.cc(this.tn, f),
  19973. f = C.ho(this.tn, f);
  19974. 0 > d.x && (f.x += -d.x, d.x = 0);
  19975. 1 < f.x && (d.x -= f.x - 1, f.x = 1);
  19976. 0 > d.y && (f.y += -d.y, d.y = 0);
  19977. 1 < f.y && (d.y -= f.y - 1, f.y = 1);
  19978. if (this.gh) {
  19979. if (!this.Ue) {
  19980. this.Lg = 8;
  19981. var g = C.Ug.BYTES_PER_ELEMENT;
  19982. this.$j = new ArrayBuffer(8 * g);
  19983. var h = [];
  19984. for (c = 0; 8 > c; c++) h[c] = new C.Ug(s, s, s, this.$j, c * g);
  19985. h[0].v = this.ti(C.d(0, 1));
  19986. h[0].m = this.vi(C.d(0, 1));
  19987. h[1].v = this.ti(C.d(0, 0));
  19988. h[1].m = this.vi(C.d(0, 0));
  19989. h[6].v = this.ti(C.d(1, 1));
  19990. h[6].m = this.vi(C.d(1, 1));
  19991. h[7].v = this.ti(C.d(1, 0));
  19992. h[7].m = this.vi(C.d(1, 0));
  19993. this.Ue = h
  19994. }
  19995. c = this.Ue;
  19996. c[2].v = this.ti(C.d(d.x, f.y));
  19997. c[2].m = this.vi(C.d(d.x, f.y));
  19998. c[3].v = this.ti(C.d(d.x, d.y));
  19999. c[3].m = this.vi(C.d(d.x, d.y));
  20000. c[4].v = this.ti(C.d(f.x, f.y));
  20001. c[4].m = this.vi(C.d(f.x, f.y));
  20002. c[5].v = this.ti(C.d(f.x, d.y));
  20003. c[5].m = this.vi(C.d(f.x, d.y))
  20004. } else {
  20005. if (!this.Ue) {
  20006. this.Lg = 4;
  20007. g = C.Ug.BYTES_PER_ELEMENT;
  20008. this.$j = new ArrayBuffer(4 * g);
  20009. this.Ue = [];
  20010. for (c = 0; 4 > c; c++) this.Ue[c] = new C.Ug(s, s, s, this.$j, c * g)
  20011. }
  20012. c = this.Ue;
  20013. c[0].v = this.ti(C.d(d.x, f.y));
  20014. c[0].m = this.vi(C.d(d.x, f.y));
  20015. c[1].v = this.ti(C.d(d.x, d.y));
  20016. c[1].m = this.vi(C.d(d.x, d.y));
  20017. c[2].v = this.ti(C.d(f.x, f.y));
  20018. c[2].m = this.vi(C.d(f.x, f.y));
  20019. c[3].v = this.ti(C.d(f.x, d.y));
  20020. c[3].m = this.vi(C.d(f.x, d.y))
  20021. }
  20022. this.Gd()
  20023. }
  20024. },
  20025. Gd: function() {
  20026. if (this.ie && this.Ue) {
  20027. for (var c = this.ie.quad.X.F,
  20028. d = this.Ue,
  20029. f = 0,
  20030. g = this.Lg; f < g; ++f) d[f].F = c;
  20031. this.fH = q
  20032. }
  20033. },
  20034. tZ: s,
  20035. dwa: function() {
  20036. var c = this.ie,
  20037. d = c.width,
  20038. f = c.height,
  20039. g = this.tn;
  20040. if (this.xc == C.Lb.Fo) {
  20041. this.Ui = Math.round(Math.sqrt(d * d + f * f));
  20042. var h, k = t,
  20043. n = this.uN;
  20044. n.x = d * g.x;
  20045. n.y = -f * g.y;
  20046. this.gh ? (h = 270, g = 270 - 3.6 * this.wn) : (g = -90, h = -90 + 3.6 * this.wn);
  20047. c.Bb && (n.x -= d * 2 * this.tn.x, g = -g - 180, h = -h - 180, k = !k);
  20048. c.Db && (n.y += f * 2 * this.tn.y, k = !k, g = -g, h = -h);
  20049. this.Sw = g;
  20050. this.pW = h;
  20051. this.TV = k
  20052. } else {
  20053. h = this.Lv;
  20054. n = this.wn / 100;
  20055. k = this.tV;
  20056. h = C.size(d * (1 - h.x), f * (1 - h.y));
  20057. var n = C.size((d - h.width) * n, (f - h.height) * n),
  20058. n = C.size(h.width + n.width, h.height + n.height),
  20059. p = C.d(d * g.x, f * g.y);
  20060. h = p.x - n.width / 2;
  20061. 0.5 < g.x && n.width / 2 >= d - p.x && (h = d - n.width);
  20062. d = p.y - n.height / 2;
  20063. 0.5 < g.y && n.height / 2 >= f - p.y && (d = f - n.height);
  20064. k.x = 0;
  20065. f = 1;
  20066. c.Bb && (k.x -= n.width, f = -1);
  20067. 0 < h && (k.x += h * f);
  20068. k.y = 0;
  20069. f = 1;
  20070. c.Db && (k.y += n.height, f = -1);
  20071. 0 < d && (k.y -= d * f);
  20072. k.width = n.width;
  20073. k.height = -n.height
  20074. }
  20075. },
  20076. ewa: function() {
  20077. var c = this.xc;
  20078. c === C.Lb.Fo ? this.hwa() : c === C.Lb.Is && this.$va();
  20079. this.fH = q
  20080. }
  20081. });
  20082. H = C.Lb.prototype;
  20083. C.L == C.la ? (H.ctor = H.qF, H.lia = H.jva, H.NR = H.pva, H.rJ = H.yva, H.e3 = H.hva, H.Y0 = H.gta, H.ka = H.gn, H.tZ = H.ewa) : (H.ctor = H.pF, H.lia = H.iva, H.NR = H.ova, H.rJ = H.xva, H.e3 = H.gva, H.Y0 = H.fta, H.ka = H.Qq, H.tZ = C.Lb.prototype.dwa);
  20084. C.e(H, "midPoint", H.eBa, H.KHa);
  20085. C.e(H, "barChangeRate", H.dAa, H.cHa);
  20086. C.e(H, "type", H.$H, H.rJ);
  20087. C.e(H, "percentage", H.uBa, H.X2);
  20088. C.e(H, "sprite", H.E0, H.NR);
  20089. C.e(H, "reverseDir", H.yDa, H.e3);
  20090. C.Lb.create = function(c) {
  20091. var d = new C.Lb;
  20092. return d.Y0(c) ? d: s
  20093. };
  20094. C.Lb.O7 = 4;
  20095. C.Lb.qpa = 75;
  20096. C.Lb.Fo = 0;
  20097. C.Lb.Is = 1;
  20098. C.KT = C.N.extend({
  20099. Jf: 0,
  20100. Qc: 0,
  20101. ctor: function(c, d) {
  20102. C.N.prototype.ctor.call(this);
  20103. this.Qc = this.Jf = 0;
  20104. d !== m && this.k(c, d)
  20105. },
  20106. k: function(c, d) {
  20107. return C.N.prototype.k.call(this, c) ? (this.Jf = d, q) : t
  20108. },
  20109. s: function() {
  20110. var c = new C.KT;
  20111. c.k(this.D, this.Jf);
  20112. return c
  20113. },
  20114. reverse: function() {
  20115. C.log("cc.ProgressTo.reverse(): reverse hasn't been supported.");
  20116. return s
  20117. },
  20118. R: function(c) {
  20119. C.N.prototype.R.call(this, c);
  20120. this.Qc = c.percentage;
  20121. 100 == this.Qc && (this.Qc = 0)
  20122. },
  20123. update: function(c) {
  20124. this.target instanceof C.Lb && (this.target.percentage = this.Qc + (this.Jf - this.Qc) * c)
  20125. }
  20126. });
  20127. C.KT.create = function(c, d) {
  20128. return new C.KT(c, d)
  20129. };
  20130. C.sE = C.N.extend({
  20131. Jf: 0,
  20132. Qc: 0,
  20133. ctor: function(c, d, f) {
  20134. C.N.prototype.ctor.call(this);
  20135. this.Qc = this.Jf = 0;
  20136. f !== m && this.k(c, d, f)
  20137. },
  20138. k: function(c, d, f) {
  20139. return C.N.prototype.k.call(this, c) ? (this.Jf = f, this.Qc = d, q) : t
  20140. },
  20141. s: function() {
  20142. var c = new C.sE;
  20143. c.k(this.D, this.Qc, this.Jf);
  20144. return c
  20145. },
  20146. reverse: function() {
  20147. return C.sE.create(this.D, this.Jf, this.Qc)
  20148. },
  20149. R: function(c) {
  20150. C.N.prototype.R.call(this, c)
  20151. },
  20152. update: function(c) {
  20153. this.target instanceof C.Lb && (this.target.percentage = this.Qc + (this.Jf - this.Qc) * c)
  20154. }
  20155. });
  20156. C.sE.create = function(c, d, f) {
  20157. return new C.sE(c, d, f)
  20158. };
  20159. C.xE = 4208917214;
  20160. C.GNa = C.O.extend({
  20161. ck: u()
  20162. });
  20163. C.wNa = 0;
  20164. C.Hs = 1;
  20165. C.VK = 0;
  20166. C.vNa = 1;
  20167. C.tb = C.Ll.extend({
  20168. ib: s,
  20169. tc: s,
  20170. D: s,
  20171. on: t,
  20172. maa: t,
  20173. qa: "TransitionScene",
  20174. ctor: function(c, d) {
  20175. C.Ll.prototype.ctor.call(this);
  20176. c !== m && d !== m && this.k(c, d)
  20177. },
  20178. uba: function() {
  20179. this.Zh(this.uba);
  20180. var c = C.Q;
  20181. this.maa = c.Tt;
  20182. c.PC(this.ib);
  20183. C.Ka.Ib(q);
  20184. this.tc.visible = q
  20185. },
  20186. qp: function() {
  20187. this.on = q
  20188. },
  20189. ka: function() {
  20190. this.on ? (this.tc.J(), this.ib.J()) : (this.ib.J(), this.tc.J())
  20191. },
  20192. Z: function() {
  20193. C.A.prototype.Z.call(this);
  20194. C.Ka.Ib(t);
  20195. this.tc.ph();
  20196. this.ib.Z()
  20197. },
  20198. Na: function() {
  20199. C.A.prototype.Na.call(this);
  20200. C.Ka.Ib(q);
  20201. this.tc.Na();
  20202. this.ib.qj()
  20203. },
  20204. ze: function() {
  20205. C.A.prototype.ze.call(this);
  20206. this.maa && this.tc.ze()
  20207. },
  20208. k: function(c, d) {
  20209. d || e("cc.TransitionScene.initWithDuration(): Argument scene must be non-nil");
  20210. return this.j() ? (this.D = c, this.dj({
  20211. x: 0,
  20212. y: 0,
  20213. anchorX: 0,
  20214. anchorY: 0
  20215. }), this.ib = d, this.tc = C.Q.gg, this.tc || (this.tc = C.Ll.create(), this.tc.j()), this.ib == this.tc && e("cc.TransitionScene.initWithDuration(): Incoming scene must be different from the outgoing scene"), this.qp(), q) : t
  20216. },
  20217. finish: function() {
  20218. this.ib.dj({
  20219. visible: q,
  20220. x: 0,
  20221. y: 0,
  20222. scale: 1,
  20223. rotation: 0
  20224. });
  20225. C.L === C.la && this.ib.Ix().restore();
  20226. this.tc.dj({
  20227. visible: t,
  20228. x: 0,
  20229. y: 0,
  20230. scale: 1,
  20231. rotation: 0
  20232. });
  20233. C.L === C.la && this.tc.Ix().restore();
  20234. this.rg(this.uba, 0)
  20235. },
  20236. XP: function() {
  20237. this.ib.visible = q;
  20238. this.tc.visible = t
  20239. }
  20240. });
  20241. C.tb.create = function(c, d) {
  20242. return new C.tb(c, d)
  20243. };
  20244. C.Ls = C.tb.extend({
  20245. yw: 0,
  20246. k: function(c, d, f) {
  20247. C.tb.prototype.k.call(this, c, d) && (this.yw = f);
  20248. return q
  20249. }
  20250. });
  20251. C.Ls.create = function(c, d, f) {
  20252. var g = new C.Ls;
  20253. g.k(c, d, f);
  20254. return g
  20255. };
  20256. C.v8 = C.tb.extend({
  20257. Z: function() {
  20258. C.tb.prototype.Z.call(this);
  20259. this.ib.dj({
  20260. scale: 0.0010,
  20261. anchorX: 0.5,
  20262. anchorY: 0.5
  20263. });
  20264. this.tc.dj({
  20265. scale: 1,
  20266. anchorX: 0.5,
  20267. anchorY: 0.5
  20268. });
  20269. var c = C.La.create(C.ci.create(C.Av.create(this.D / 2, 0.0010), C.Ds.create(this.D / 2, 720)), C.fd.create(this.D / 2));
  20270. this.tc.Ya(c);
  20271. this.ib.Ya(C.La.create(c.reverse(), C.Jc.create(this.finish, this)))
  20272. }
  20273. });
  20274. C.v8.create = function(c, d) {
  20275. var f = new C.v8;
  20276. return f != s && f.k(c, d) ? f: s
  20277. };
  20278. C.k8 = C.tb.extend({
  20279. Z: function() {
  20280. C.tb.prototype.Z.call(this);
  20281. var c = C.Q.aa;
  20282. this.ib.dj({
  20283. scale: 0.5,
  20284. x: c.width,
  20285. y: 0,
  20286. anchorX: 0.5,
  20287. anchorY: 0.5
  20288. });
  20289. this.tc.anchorX = 0.5;
  20290. this.tc.anchorY = 0.5;
  20291. var d = C.Ao.create(this.D / 4, C.d( - c.width, 0), c.width / 4, 2),
  20292. f = C.ae.create(this.D / 4, 1),
  20293. c = C.ae.create(this.D / 4, 0.5),
  20294. c = C.La.create(c, d),
  20295. d = C.La.create(d, f),
  20296. f = C.fd.create(this.D / 2);
  20297. this.tc.Ya(c);
  20298. this.ib.Ya(C.La.create(f, d, C.Jc.create(this.finish, this)))
  20299. }
  20300. });
  20301. C.k8.create = function(c, d) {
  20302. var f = new C.k8;
  20303. return f != s && f.k(c, d) ? f: s
  20304. };
  20305. C.LE = C.tb.extend({
  20306. Z: function() {
  20307. C.tb.prototype.Z.call(this);
  20308. this.Vr();
  20309. var c = this.action();
  20310. this.ib.Ya(C.La.create(this.ck(c), C.Jc.create(this.finish, this)))
  20311. },
  20312. Vr: function() {
  20313. this.ib.p( - C.Q.aa.width, 0)
  20314. },
  20315. action: function() {
  20316. return C.Bs.create(this.D, C.d(0, 0))
  20317. },
  20318. ck: function(c) {
  20319. return C.As.create(c, 2)
  20320. }
  20321. });
  20322. C.LE.create = function(c, d) {
  20323. var f = new C.LE;
  20324. return f != s && f.k(c, d) ? f: s
  20325. };
  20326. C.m8 = C.LE.extend({
  20327. Vr: function() {
  20328. this.ib.p(C.Q.aa.width, 0)
  20329. }
  20330. });
  20331. C.m8.create = function(c, d) {
  20332. var f = new C.m8;
  20333. return f != s && f.k(c, d) ? f: s
  20334. };
  20335. C.n8 = C.LE.extend({
  20336. Vr: function() {
  20337. this.ib.p(0, C.Q.aa.height)
  20338. }
  20339. });
  20340. C.n8.create = function(c, d) {
  20341. var f = new C.n8;
  20342. return f != s && f.k(c, d) ? f: s
  20343. };
  20344. C.l8 = C.LE.extend({
  20345. Vr: function() {
  20346. this.ib.p(0, -C.Q.aa.height)
  20347. }
  20348. });
  20349. C.l8.create = function(c, d) {
  20350. var f = new C.l8;
  20351. return f != s && f.k(c, d) ? f: s
  20352. };
  20353. C.us = 0.5;
  20354. C.ME = C.tb.extend({
  20355. qp: function() {
  20356. this.on = t
  20357. },
  20358. Z: function() {
  20359. C.tb.prototype.Z.call(this);
  20360. this.Vr();
  20361. var c = this.action(),
  20362. d = this.action(),
  20363. c = this.ck(c),
  20364. d = C.La.create(this.ck(d), C.Jc.create(this.finish, this));
  20365. this.ib.Ya(c);
  20366. this.tc.Ya(d)
  20367. },
  20368. Vr: function() {
  20369. this.ib.p( - C.Q.aa.width + C.us, 0)
  20370. },
  20371. action: function() {
  20372. return C.Dk.create(this.D, C.d(C.Q.aa.width - C.us, 0))
  20373. },
  20374. ck: function(c) {
  20375. return C.As.create(c, 2)
  20376. }
  20377. });
  20378. C.ME.create = function(c, d) {
  20379. var f = new C.ME;
  20380. return f != s && f.k(c, d) ? f: s
  20381. };
  20382. C.y8 = C.ME.extend({
  20383. qp: function() {
  20384. this.on = q
  20385. },
  20386. Vr: function() {
  20387. this.ib.p(C.Q.aa.width - C.us, 0)
  20388. },
  20389. action: function() {
  20390. return C.Dk.create(this.D, C.d( - (C.Q.aa.width - C.us), 0))
  20391. }
  20392. });
  20393. C.y8.create = function(c, d) {
  20394. var f = new C.y8;
  20395. return f != s && f.k(c, d) ? f: s
  20396. };
  20397. C.x8 = C.ME.extend({
  20398. qp: function() {
  20399. this.on = t
  20400. },
  20401. Vr: function() {
  20402. this.ib.p(0, C.Q.aa.height - C.us)
  20403. },
  20404. action: function() {
  20405. return C.Dk.create(this.D, C.d(0, -(C.Q.aa.height - C.us)))
  20406. }
  20407. });
  20408. C.x8.create = function(c, d) {
  20409. var f = new C.x8;
  20410. return f != s && f.k(c, d) ? f: s
  20411. };
  20412. C.z8 = C.ME.extend({
  20413. qp: function() {
  20414. this.on = q
  20415. },
  20416. Vr: function() {
  20417. this.ib.p(0, -(C.Q.aa.height - C.us))
  20418. },
  20419. action: function() {
  20420. return C.Dk.create(this.D, C.d(0, C.Q.aa.height - C.us))
  20421. }
  20422. });
  20423. C.z8.create = function(c, d) {
  20424. var f = new C.z8;
  20425. return f != s && f.k(c, d) ? f: s
  20426. };
  20427. C.w8 = C.tb.extend({
  20428. Z: function() {
  20429. C.tb.prototype.Z.call(this);
  20430. this.ib.dj({
  20431. scale: 0.0010,
  20432. anchorX: 2 / 3,
  20433. anchorY: 0.5
  20434. });
  20435. this.tc.dj({
  20436. scale: 1,
  20437. anchorX: 1 / 3,
  20438. anchorY: 0.5
  20439. });
  20440. var c = C.ae.create(this.D, 0.01),
  20441. d = C.ae.create(this.D, 1);
  20442. this.ib.Ya(this.ck(d));
  20443. this.tc.Ya(C.La.create(this.ck(c), C.Jc.create(this.finish, this)))
  20444. },
  20445. ck: function(c) {
  20446. return C.As.create(c, 2)
  20447. }
  20448. });
  20449. C.w8.create = function(c, d) {
  20450. var f = new C.w8;
  20451. return f != s && f.k(c, d) ? f: s
  20452. };
  20453. C.i8 = C.Ls.extend({
  20454. Z: function() {
  20455. C.tb.prototype.Z.call(this);
  20456. var c, d;
  20457. this.ib.visible = t;
  20458. var f;
  20459. this.yw === C.Hs ? (c = 90, f = 270, d = 90) : (c = -90, f = 90, d = -90);
  20460. c = C.La.create(C.fd.create(this.D / 2), C.Fj.create(), C.bi.create(this.D / 2, 1, 0, f, c, 0, 0), C.Jc.create(this.finish, this));
  20461. d = C.La.create(C.bi.create(this.D / 2, 1, 0, 0, d, 0, 0), C.Fl.create(), C.fd.create(this.D / 2));
  20462. this.ib.Ya(c);
  20463. this.tc.Ya(d)
  20464. }
  20465. });
  20466. C.i8.create = function(c, d, f) {
  20467. f == s && (f = C.Hs);
  20468. var g = new C.i8;
  20469. g.k(c, d, f);
  20470. return g
  20471. };
  20472. C.j8 = C.Ls.extend({
  20473. Z: function() {
  20474. C.tb.prototype.Z.call(this);
  20475. var c, d;
  20476. this.ib.visible = t;
  20477. var f;
  20478. this.yw == C.VK ? (c = 90, f = 270, d = 90) : (c = -90, f = 90, d = -90);
  20479. c = C.La.create(C.fd.create(this.D / 2), C.Fj.create(), C.bi.create(this.D / 2, 1, 0, f, c, 90, 0), C.Jc.create(this.finish, this));
  20480. d = C.La.create(C.bi.create(this.D / 2, 1, 0, 0, d, 90, 0), C.Fl.create(), C.fd.create(this.D / 2));
  20481. this.ib.Ya(c);
  20482. this.tc.Ya(d)
  20483. }
  20484. });
  20485. C.j8.create = function(c, d, f) {
  20486. f == s && (f = C.VK);
  20487. var g = new C.j8;
  20488. g.k(c, d, f);
  20489. return g
  20490. };
  20491. C.h8 = C.Ls.extend({
  20492. Z: function() {
  20493. C.tb.prototype.Z.call(this);
  20494. var c, d;
  20495. this.ib.visible = t;
  20496. var f;
  20497. this.yw === C.Hs ? (c = 90, f = 270, d = 90) : (c = -90, f = 90, d = -90);
  20498. c = C.La.create(C.fd.create(this.D / 2), C.Fj.create(), C.bi.create(this.D / 2, 1, 0, f, c, -45, 0), C.Jc.create(this.finish, this));
  20499. d = C.La.create(C.bi.create(this.D / 2, 1, 0, 0, d, 45, 0), C.Fl.create(), C.fd.create(this.D / 2));
  20500. this.ib.Ya(c);
  20501. this.tc.Ya(d)
  20502. }
  20503. });
  20504. C.h8.create = function(c, d, f) {
  20505. f == s && (f = C.Hs);
  20506. var g = new C.h8;
  20507. g.k(c, d, f);
  20508. return g
  20509. };
  20510. C.D8 = C.Ls.extend({
  20511. Z: function() {
  20512. C.tb.prototype.Z.call(this);
  20513. var c, d;
  20514. this.ib.visible = t;
  20515. var f;
  20516. this.yw === C.Hs ? (c = 90, f = 270, d = 90) : (c = -90, f = 90, d = -90);
  20517. c = C.La.create(C.fd.create(this.D / 2), C.ci.create(C.bi.create(this.D / 2, 1, 0, f, c, 0, 0), C.ae.create(this.D / 2, 1), C.Fj.create()), C.Jc.create(this.finish, this));
  20518. d = C.La.create(C.ci.create(C.bi.create(this.D / 2, 1, 0, 0, d, 0, 0), C.ae.create(this.D / 2, 0.5)), C.Fl.create(), C.fd.create(this.D / 2));
  20519. this.ib.scale = 0.5;
  20520. this.ib.Ya(c);
  20521. this.tc.Ya(d)
  20522. }
  20523. });
  20524. C.D8.create = function(c, d, f) {
  20525. f == s && (f = C.Hs);
  20526. var g = new C.D8;
  20527. g.k(c, d, f);
  20528. return g
  20529. };
  20530. C.E8 = C.Ls.extend({
  20531. Z: function() {
  20532. C.tb.prototype.Z.call(this);
  20533. var c, d;
  20534. this.ib.visible = t;
  20535. var f;
  20536. this.yw === C.VK ? (c = 90, f = 270, d = 90) : (c = -90, f = 90, d = -90);
  20537. c = C.La.create(C.fd.create(this.D / 2), C.ci.create(C.bi.create(this.D / 2, 1, 0, f, c, 90, 0), C.ae.create(this.D / 2, 1), C.Fj.create()), C.Jc.create(this.finish, this));
  20538. d = C.La.create(C.ci.create(C.bi.create(this.D / 2, 1, 0, 0, d, 90, 0), C.ae.create(this.D / 2, 0.5)), C.Fl.create(), C.fd.create(this.D / 2));
  20539. this.ib.scale = 0.5;
  20540. this.ib.Ya(c);
  20541. this.tc.Ya(d)
  20542. }
  20543. });
  20544. C.E8.create = function(c, d, f) {
  20545. f == s && (f = C.VK);
  20546. var g = new C.E8;
  20547. g.k(c, d, f);
  20548. return g
  20549. };
  20550. C.C8 = C.Ls.extend({
  20551. Z: function() {
  20552. C.tb.prototype.Z.call(this);
  20553. var c, d;
  20554. this.ib.visible = t;
  20555. var f;
  20556. this.yw === C.Hs ? (c = 90, f = 270, d = 90) : (c = -90, f = 90, d = -90);
  20557. c = C.La.create(C.fd.create(this.D / 2), C.ci.create(C.bi.create(this.D / 2, 1, 0, f, c, -45, 0), C.ae.create(this.D / 2, 1), C.Fj.create()), C.Fj.create(), C.Jc.create(this.finish, this));
  20558. d = C.La.create(C.ci.create(C.bi.create(this.D / 2, 1, 0, 0, d, 45, 0), C.ae.create(this.D / 2, 0.5)), C.Fl.create(), C.fd.create(this.D / 2));
  20559. this.ib.scale = 0.5;
  20560. this.ib.Ya(c);
  20561. this.tc.Ya(d)
  20562. }
  20563. });
  20564. C.C8.create = function(c, d, f) {
  20565. f == s && (f = C.Hs);
  20566. var g = new C.C8;
  20567. g.k(c, d, f);
  20568. return g
  20569. };
  20570. C.d8 = C.tb.extend({
  20571. ya: s,
  20572. ctor: function() {
  20573. C.tb.prototype.ctor.call(this);
  20574. this.ya = C.color()
  20575. },
  20576. Z: function() {
  20577. C.tb.prototype.Z.call(this);
  20578. var c = C.gd.create(this.ya);
  20579. this.ib.visible = t;
  20580. this.q(c, 2, C.xE);
  20581. var c = this.lj(C.xE),
  20582. d = C.La.create(C.Ry.create(this.D / 2), C.Jc.create(this.XP, this), C.Sy.create(this.D / 2), C.Jc.create(this.finish, this));
  20583. c.Ya(d)
  20584. },
  20585. Na: function() {
  20586. C.tb.prototype.Na.call(this);
  20587. this.$Q(C.xE, t)
  20588. },
  20589. k: function(c, d, f) {
  20590. f = f || C.color.BLACK;
  20591. C.tb.prototype.k.call(this, c, d) && (this.ya.r = f.r, this.ya.g = f.g, this.ya.b = f.b, this.ya.a = 0);
  20592. return q
  20593. }
  20594. });
  20595. C.d8.create = function(c, d, f) {
  20596. var g = new C.d8;
  20597. g.k(c, d, f);
  20598. return g
  20599. };
  20600. C.c8 = C.tb.extend({
  20601. Z: function() {
  20602. C.tb.prototype.Z.call(this);
  20603. var c = C.color(0, 0, 0, 0),
  20604. d = C.Q.aa,
  20605. c = C.gd.create(c),
  20606. f = C.yv.create(d.width, d.height);
  20607. if (s != f) {
  20608. f.sprite.anchorX = 0.5;
  20609. f.sprite.anchorY = 0.5;
  20610. f.dj({
  20611. x: d.width / 2,
  20612. y: d.height / 2,
  20613. anchorX: 0.5,
  20614. anchorY: 0.5
  20615. });
  20616. f.Sn();
  20617. this.ib.J();
  20618. f.end();
  20619. var g = C.yv.create(d.width, d.height);
  20620. g.p(d.width / 2, d.height / 2);
  20621. g.sprite.anchorX = g.anchorX = 0.5;
  20622. g.sprite.anchorY = g.anchorY = 0.5;
  20623. g.Sn();
  20624. this.tc.J();
  20625. g.end();
  20626. f.sprite.Yd(C.ONE, C.ONE);
  20627. g.sprite.Yd(C.SRC_ALPHA, C.ONE_MINUS_SRC_ALPHA);
  20628. c.q(f);
  20629. c.q(g);
  20630. f.sprite.opacity = 255;
  20631. g.sprite.opacity = 255;
  20632. d = C.La.create(C.xo.create(this.D, 0), C.Jc.create(this.XP, this), C.Jc.create(this.finish, this));
  20633. g.sprite.Ya(d);
  20634. this.q(c, 2, C.xE)
  20635. }
  20636. },
  20637. Na: function() {
  20638. this.$Q(C.xE, t);
  20639. C.tb.prototype.Na.call(this)
  20640. },
  20641. ka: u()
  20642. });
  20643. C.c8.create = function(c, d) {
  20644. var f = new C.c8;
  20645. f.k(c, d);
  20646. return f
  20647. };
  20648. C.B8 = C.tb.extend({
  20649. qp: function() {
  20650. this.on = t
  20651. },
  20652. Z: function() {
  20653. C.tb.prototype.Z.call(this);
  20654. var c = C.Q.aa,
  20655. c = C.CU.create(this.D, C.size(0 | 12 * (c.width / c.height), 12)),
  20656. c = this.ck(c);
  20657. this.tc.Ya(C.La.create(c, C.Jc.create(this.finish, this), C.Bv.create()))
  20658. },
  20659. ck: da()
  20660. });
  20661. C.B8.create = function(c, d) {
  20662. var f = new C.B8;
  20663. return f != s && f.k(c, d) ? f: s
  20664. };
  20665. C.AU = C.tb.extend({
  20666. Z: function() {
  20667. C.tb.prototype.Z.call(this);
  20668. this.ib.visible = t;
  20669. var c = this.action(),
  20670. c = C.La.create(c, C.Jc.create(this.XP, this), c.reverse());
  20671. this.Ya(C.La.create(this.ck(c), C.Jc.create(this.finish, this), C.Bv.create()))
  20672. },
  20673. ck: function(c) {
  20674. return C.Oy.create(c, 3)
  20675. },
  20676. action: function() {
  20677. return C.fU.create(this.D / 2, 3)
  20678. }
  20679. });
  20680. C.AU.create = function(c, d) {
  20681. var f = new C.AU;
  20682. return f != s && f.k(c, d) ? f: s
  20683. };
  20684. C.A8 = C.AU.extend({
  20685. action: function() {
  20686. return C.gU.create(this.D / 2, 3)
  20687. }
  20688. });
  20689. C.A8.create = function(c, d) {
  20690. var f = new C.A8;
  20691. return f != s && f.k(c, d) ? f: s
  20692. };
  20693. C.KE = C.tb.extend({
  20694. qp: function() {
  20695. this.on = t
  20696. },
  20697. Z: function() {
  20698. C.tb.prototype.Z.call(this);
  20699. var c = C.Q.aa,
  20700. c = this.tB(C.size(0 | 12 * (c.width / c.height), 12));
  20701. this.tc.Ya(C.La.create(this.ck(c), C.Jc.create(this.finish, this), C.Bv.create()))
  20702. },
  20703. ck: da(),
  20704. tB: function(c) {
  20705. return C.kE.create(this.D, c)
  20706. }
  20707. });
  20708. C.KE.create = function(c, d) {
  20709. var f = new C.KE;
  20710. return f != s && f.k(c, d) ? f: s
  20711. };
  20712. C.e8 = C.KE.extend({
  20713. tB: function(c) {
  20714. return C.eT.create(this.D, c)
  20715. }
  20716. });
  20717. C.e8.create = function(c, d) {
  20718. var f = new C.e8;
  20719. return f != s && f.k(c, d) ? f: s
  20720. };
  20721. C.g8 = C.KE.extend({
  20722. tB: function(c) {
  20723. return C.sK.create(this.D, c)
  20724. }
  20725. });
  20726. C.g8.create = function(c, d) {
  20727. var f = new C.g8;
  20728. return f != s && f.k(c, d) ? f: s
  20729. };
  20730. C.f8 = C.KE.extend({
  20731. tB: function(c) {
  20732. return C.fT.create(this.D, c)
  20733. }
  20734. });
  20735. C.f8.create = function(c, d) {
  20736. var f = new C.f8;
  20737. return f != s && f.k(c, d) ? f: s
  20738. };
  20739. C.A7 = 49153;
  20740. C.Ks = C.tb.extend({
  20741. Jf: 0,
  20742. Qc: 0,
  20743. RN: s,
  20744. qa: "TransitionProgress",
  20745. Nw: function(c, d, f) {
  20746. c.dj({
  20747. x: d,
  20748. y: f,
  20749. anchorX: 0.5,
  20750. anchorY: 0.5
  20751. })
  20752. },
  20753. Z: function() {
  20754. C.tb.prototype.Z.call(this);
  20755. this.Bba();
  20756. var c = C.Q.aa,
  20757. d = C.yv.create(c.width, c.height);
  20758. d.sprite.anchorX = 0.5;
  20759. d.sprite.anchorY = 0.5;
  20760. this.Nw(d, c.width / 2, c.height / 2);
  20761. d.clear(0, 0, 0, 1);
  20762. d.Sn();
  20763. this.RN.J();
  20764. d.end();
  20765. this.RN == this.tc && this.XP();
  20766. c = this.Gw(d);
  20767. d = C.La.create(C.sE.create(this.D, this.Qc, this.Jf), C.Jc.create(this.finish, this));
  20768. c.Ya(d);
  20769. this.q(c, 2, C.A7)
  20770. },
  20771. Na: function() {
  20772. this.$Q(C.A7, q);
  20773. C.tb.prototype.Na.call(this)
  20774. },
  20775. Bba: function() {
  20776. this.RN = this.tc;
  20777. this.Qc = 100;
  20778. this.Jf = 0
  20779. },
  20780. Gw: function() {
  20781. C.log("cc.TransitionProgress._progressTimerNodeWithRenderTexture(): should be overridden in subclass");
  20782. return s
  20783. },
  20784. qp: function() {
  20785. this.on = t
  20786. }
  20787. });
  20788. C.Ks.create = function(c, d) {
  20789. var f = new C.Ks;
  20790. return f != s && f.k(c, d) ? f: s
  20791. };
  20792. C.s8 = C.Ks.extend({
  20793. Gw: function(c) {
  20794. var d = C.Q.aa;
  20795. c = C.Lb.create(c.sprite);
  20796. C.L === C.la && (c.sprite.flippedY = q);
  20797. c.type = C.Lb.Fo;
  20798. c.reverseDir = t;
  20799. c.percentage = 100;
  20800. this.Nw(c, d.width / 2, d.height / 2);
  20801. return c
  20802. }
  20803. });
  20804. C.s8.create = function(c, d) {
  20805. var f = new C.s8;
  20806. return f != s && f.k(c, d) ? f: s
  20807. };
  20808. C.t8 = C.Ks.extend({
  20809. Gw: function(c) {
  20810. var d = C.Q.aa;
  20811. c = C.Lb.create(c.sprite);
  20812. C.L === C.la && (c.sprite.flippedY = q);
  20813. c.type = C.Lb.Fo;
  20814. c.reverseDir = q;
  20815. c.percentage = 100;
  20816. this.Nw(c, d.width / 2, d.height / 2);
  20817. return c
  20818. }
  20819. });
  20820. C.t8.create = function(c, d) {
  20821. var f = new C.t8;
  20822. return f != s && f.k(c, d) ? f: s
  20823. };
  20824. C.p8 = C.Ks.extend({
  20825. Gw: function(c) {
  20826. var d = C.Q.aa;
  20827. c = C.Lb.create(c.sprite);
  20828. C.L === C.la && (c.sprite.flippedY = q);
  20829. c.type = C.Lb.Is;
  20830. c.midPoint = C.d(1, 0);
  20831. c.barChangeRate = C.d(1, 0);
  20832. c.percentage = 100;
  20833. this.Nw(c, d.width / 2, d.height / 2);
  20834. return c
  20835. }
  20836. });
  20837. C.p8.create = function(c, d) {
  20838. var f = new C.p8;
  20839. return f != s && f.k(c, d) ? f: s
  20840. };
  20841. C.u8 = C.Ks.extend({
  20842. Gw: function(c) {
  20843. var d = C.Q.aa;
  20844. c = C.Lb.create(c.sprite);
  20845. C.L === C.la && (c.sprite.flippedY = q);
  20846. c.type = C.Lb.Is;
  20847. c.midPoint = C.d(0, 0);
  20848. c.barChangeRate = C.d(0, 1);
  20849. c.percentage = 100;
  20850. this.Nw(c, d.width / 2, d.height / 2);
  20851. return c
  20852. }
  20853. });
  20854. C.u8.create = function(c, d) {
  20855. var f = new C.u8;
  20856. return f != s && f.k(c, d) ? f: s
  20857. };
  20858. C.q8 = C.Ks.extend({
  20859. Gw: function(c) {
  20860. var d = C.Q.aa;
  20861. c = C.Lb.create(c.sprite);
  20862. C.L === C.la && (c.sprite.flippedY = q);
  20863. c.type = C.Lb.Is;
  20864. c.midPoint = C.d(0.5, 0.5);
  20865. c.barChangeRate = C.d(1, 1);
  20866. c.percentage = 0;
  20867. this.Nw(c, d.width / 2, d.height / 2);
  20868. return c
  20869. },
  20870. qp: function() {
  20871. this.on = t
  20872. },
  20873. Bba: function() {
  20874. this.RN = this.ib;
  20875. this.Qc = 0;
  20876. this.Jf = 100
  20877. }
  20878. });
  20879. C.q8.create = function(c, d) {
  20880. var f = new C.q8;
  20881. return f != s && f.k(c, d) ? f: s
  20882. };
  20883. C.r8 = C.Ks.extend({
  20884. Gw: function(c) {
  20885. var d = C.Q.aa;
  20886. c = C.Lb.create(c.sprite);
  20887. C.L === C.la && (c.sprite.flippedY = q);
  20888. c.type = C.Lb.Is;
  20889. c.midPoint = C.d(0.5, 0.5);
  20890. c.barChangeRate = C.d(1, 1);
  20891. c.percentage = 100;
  20892. this.Nw(c, d.width / 2, d.height / 2);
  20893. return c
  20894. }
  20895. });
  20896. C.r8.create = function(c, d) {
  20897. var f = new C.r8;
  20898. return f != s && f.k(c, d) ? f: s
  20899. };
  20900. C.o8 = C.tb.extend({
  20901. nL: q,
  20902. qa: "TransitionPageTurn",
  20903. k: function(c, d, f) {
  20904. this.nL = f;
  20905. C.tb.prototype.k.call(this, c, d);
  20906. return q
  20907. },
  20908. tB: function(c) {
  20909. return this.nL ? C.zv.create(C.CK.create(this.D, c)) : C.CK.create(this.D, c)
  20910. },
  20911. Z: function() {
  20912. C.tb.prototype.Z.call(this);
  20913. var c = C.Q.aa,
  20914. d;
  20915. c.width > c.height ? (c = 16, d = 12) : (c = 12, d = 16);
  20916. c = this.tB(C.size(c, d));
  20917. this.nL ? (this.ib.visible = t, this.ib.Ya(C.La.create(C.Fj.create(), c, C.Jc.create(this.finish, this), C.Bv.create()))) : this.tc.Ya(C.La.create(c, C.Jc.create(this.finish, this), C.Bv.create()))
  20918. },
  20919. qp: function() {
  20920. this.on = this.nL
  20921. }
  20922. });
  20923. C.o8.create = function(c, d, f) {
  20924. var g = new C.o8;
  20925. g.k(c, d, f);
  20926. return g
  20927. };
  20928. C.$a = {
  20929. name: "Jacob__Codec"
  20930. };
  20931. C.vJa = function() {
  20932. return C.$a.Kb.RP.apply(C.$a.Kb, arguments)
  20933. };
  20934. C.wJa = function() {
  20935. var c = C.$a.hv.eda.apply(C.$a.hv, arguments);
  20936. return C.$a.Kb.RP.apply(C.$a.Kb, [c])
  20937. };
  20938. C.eja = function(c, d) {
  20939. d = d || 1;
  20940. var f = this.wJa(c),
  20941. g = [],
  20942. h,
  20943. k,
  20944. n;
  20945. h = 0;
  20946. for (n = f.length / d; h < n; h++) {
  20947. g[h] = 0;
  20948. for (k = d - 1; 0 <= k; --k) g[h] += f.charCodeAt(h * d + k) << 8 * k
  20949. }
  20950. return g
  20951. };
  20952. C.D6a = function(c, d) {
  20953. d = d || 1;
  20954. var f = this.vJa(c),
  20955. g = [],
  20956. h,
  20957. k,
  20958. n;
  20959. h = 0;
  20960. for (n = f.length / d; h < n; h++) {
  20961. g[h] = 0;
  20962. for (k = d - 1; 0 <= k; --k) g[h] += f.charCodeAt(h * d + k) << 8 * k
  20963. }
  20964. return g
  20965. };
  20966. C.iNa = function(c) {
  20967. c = c.split(",");
  20968. var d = [],
  20969. f;
  20970. for (f = 0; f < c.length; f++) d.push(parseInt(c[f]));
  20971. return d
  20972. };
  20973. C.$a.hv = {
  20974. name: "Jacob__Codec__Base64"
  20975. };
  20976. C.$a.hv.UM = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d";
  20977. C.$a.hv.eda = function(c) {
  20978. var d = [],
  20979. f,
  20980. g,
  20981. h,
  20982. k,
  20983. n,
  20984. p = 0;
  20985. for (c = c.replace(/[^A-Za-z0-9\+\/\=]/g, ""); p < c.length;) f = this.UM.indexOf(c.charAt(p++)),
  20986. g = this.UM.indexOf(c.charAt(p++)),
  20987. k = this.UM.indexOf(c.charAt(p++)),
  20988. n = this.UM.indexOf(c.charAt(p++)),
  20989. f = f << 2 | g >> 4,
  20990. g = (g & 15) << 4 | k >> 2,
  20991. h = (k & 3) << 6 | n,
  20992. d.push(String.fromCharCode(f)),
  20993. 64 != k && d.push(String.fromCharCode(g)),
  20994. 64 != n && d.push(String.fromCharCode(h));
  20995. return d = d.join("")
  20996. };
  20997. C.$a.hv.fda = function(c, d) {
  20998. var f = this.eda(c),
  20999. g = [],
  21000. h,
  21001. k,
  21002. n;
  21003. h = 0;
  21004. for (n = f.length / d; h < n; h++) {
  21005. g[h] = 0;
  21006. for (k = d - 1; 0 <= k; --k) g[h] += f.charCodeAt(h * d + k) << 8 * k
  21007. }
  21008. return g
  21009. };
  21010. C.sJa = function(c) {
  21011. if (0 != c.length % 4) return s;
  21012. for (var d = c.length / 4,
  21013. f = window.KNa ? new Uint32Array(d) : [], g = 0; g < d; g++) {
  21014. var h = 4 * g;
  21015. f[g] = c[h] + 256 * c[h + 1] + 65536 * c[h + 2] + 16777216 * c[h + 3]
  21016. }
  21017. return f
  21018. };
  21019. C.$a.Kb = function(c) {
  21020. this.data = c;
  21021. this.debug = t;
  21022. this.Tr = m;
  21023. this.files = 0;
  21024. this.dS = [];
  21025. this.j_ = Array(32768);
  21026. this.Rn = 0;
  21027. this.IQ = t;
  21028. this.Lca = 0;
  21029. this.zp = 1;
  21030. this.zB = 0;
  21031. this.AC = [];
  21032. this.vda = m;
  21033. this.vI = Array(C.$a.Kb.Tma);
  21034. this.yx = Array(32);
  21035. this.EJ = 0;
  21036. this.IT = s;
  21037. this.co = 0;
  21038. this.RB = Array(17);
  21039. this.RB[0] = 0;
  21040. this.Gda = this.zda = m
  21041. };
  21042. C.$a.Kb.RP = function(c) {
  21043. return (new C.$a.Kb(c)).RP()[0][0]
  21044. };
  21045. C.$a.Kb.kT = function() {
  21046. this.ZO = this.YO = 0;
  21047. this.o1 = s;
  21048. this.HDa = -1
  21049. };
  21050. C.$a.Kb.Tma = 288;
  21051. C.$a.Kb.J6 = 256;
  21052. C.$a.Kb.$Z = [0, 128, 64, 192, 32, 160, 96, 224, 16, 144, 80, 208, 48, 176, 112, 240, 8, 136, 72, 200, 40, 168, 104, 232, 24, 152, 88, 216, 56, 184, 120, 248, 4, 132, 68, 196, 36, 164, 100, 228, 20, 148, 84, 212, 52, 180, 116, 244, 12, 140, 76, 204, 44, 172, 108, 236, 28, 156, 92, 220, 60, 188, 124, 252, 2, 130, 66, 194, 34, 162, 98, 226, 18, 146, 82, 210, 50, 178, 114, 242, 10, 138, 74, 202, 42, 170, 106, 234, 26, 154, 90, 218, 58, 186, 122, 250, 6, 134, 70, 198, 38, 166, 102, 230, 22, 150, 86, 214, 54, 182, 118, 246, 14, 142, 78, 206, 46, 174, 110, 238, 30, 158, 94, 222, 62, 190, 126, 254, 1, 129, 65, 193, 33, 161, 97, 225, 17, 145, 81, 209, 49, 177, 113, 241, 9, 137, 73, 201, 41, 169, 105, 233, 25, 153, 89, 217, 57, 185, 121, 249, 5, 133, 69, 197, 37, 165, 101, 229, 21, 149, 85, 213, 53, 181, 117, 245, 13, 141, 77, 205, 45, 173, 109, 237, 29, 157, 93, 221, 61, 189, 125, 253, 3, 131, 67, 195, 35, 163, 99, 227, 19, 147, 83, 211, 51, 179, 115, 243, 11, 139, 75, 203, 43, 171, 107, 235, 27, 155, 91, 219, 59, 187, 123, 251, 7, 135, 71, 199, 39, 167, 103, 231, 23, 151, 87, 215, 55, 183, 119, 247, 15, 143, 79, 207, 47, 175, 111, 239, 31, 159, 95, 223, 63, 191, 127, 255];
  21053. C.$a.Kb.Wca = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0];
  21054. C.$a.Kb.Xca = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, 99, 99];
  21055. C.$a.Kb.Vca = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577];
  21056. C.$a.Kb.GB = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13];
  21057. C.$a.Kb.border = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
  21058. C.$a.Kb.prototype.RP = function() {
  21059. this.QI = [];
  21060. oa(this);
  21061. return this.dS
  21062. };
  21063. C.$a.Kb.prototype.$ = function() {
  21064. this.zB += 8;
  21065. return this.Lca < this.data.length ? this.data.charCodeAt(this.Lca++) : -1
  21066. };
  21067. function qa(c) {
  21068. var d;
  21069. c.zB++;
  21070. d = c.zp & 1;
  21071. c.zp >>= 1;
  21072. 0 == c.zp && (c.zp = c.$(), d = c.zp & 1, c.zp = c.zp >> 1 | 128);
  21073. return d
  21074. }
  21075. function ra(c, d) {
  21076. for (var f = 0,
  21077. g = d; g--;) f = f << 1 | qa(c);
  21078. d && (f = C.$a.Kb.$Z[f] >> 8 - d);
  21079. return f
  21080. }
  21081. function wa(c, d) {
  21082. c.j_[c.Rn++] = d;
  21083. c.QI.push(String.fromCharCode(d));
  21084. 32768 == c.Rn && (c.Rn = 0)
  21085. }
  21086. function za(c) {
  21087. for (;;) {
  21088. if (c.RB[c.co] >= c.Gda) return - 1;
  21089. if (c.zda[c.RB[c.co]] == c.co) return c.RB[c.co]++;
  21090. c.RB[c.co]++
  21091. }
  21092. }
  21093. function Da(c) {
  21094. var d = c.IT[c.EJ],
  21095. f;
  21096. if (17 == c.co) return - 1;
  21097. c.EJ++;
  21098. c.co++;
  21099. f = za(c);
  21100. if (0 <= f) d.YO = f;
  21101. else if (d.YO = 32768, Da(c)) return - 1;
  21102. f = za(c);
  21103. if (0 <= f) d.ZO = f,
  21104. d.o1 = s;
  21105. else if (d.ZO = 32768, d.o1 = c.IT[c.EJ], d.HDa = c.EJ, Da(c)) return - 1;
  21106. c.co--;
  21107. return 0
  21108. }
  21109. function Ea(c, d, f, g) {
  21110. c.IT = d;
  21111. c.EJ = 0;
  21112. c.zda = g;
  21113. c.Gda = f;
  21114. for (d = 0; 17 > d; d++) c.RB[d] = 0;
  21115. c.co = 0;
  21116. return Da(c) ? -1 : 0
  21117. }
  21118. function Ha(c, d) {
  21119. for (var f, g, h = 0,
  21120. k = d[h];;) if (f = qa(c)) {
  21121. if (! (k.ZO & 32768)) return k.ZO;
  21122. k = k.o1;
  21123. f = d.length;
  21124. for (g = 0; g < f; g++) if (d[g] === k) {
  21125. h = g;
  21126. break
  21127. }
  21128. } else {
  21129. if (! (k.YO & 32768)) return k.YO;
  21130. h++;
  21131. k = d[h]
  21132. }
  21133. return - 1
  21134. }
  21135. function Ja(c) {
  21136. var d, f, g, h, k;
  21137. do
  21138. if (d = qa(c), g = ra(c, 2), 0 == g) {
  21139. c.zp = 1;
  21140. g = c.$();
  21141. g |= c.$() << 8;
  21142. f = c.$();
  21143. f |= c.$() << 8;
  21144. for ((g ^ ~f) & 65535 && document.write("BlockLen checksum mismatch\n"); g--;) f = c.$(),
  21145. wa(c, f)
  21146. } else if (1 == g) for (;;) if (g = C.$a.Kb.$Z[ra(c, 7)] >> 1, 23 < g ? (g = g << 1 | qa(c), 199 < g ? (g -= 128, g = g << 1 | qa(c)) : (g -= 48, 143 < g && (g += 136))) : g += 256, 256 > g) wa(c, g);
  21147. else if (256 == g) break;
  21148. else {
  21149. var n;
  21150. g -= 257;
  21151. k = ra(c, C.$a.Kb.Xca[g]) + C.$a.Kb.Wca[g];
  21152. g = C.$a.Kb.$Z[ra(c, 5)] >> 3;
  21153. 8 < C.$a.Kb.GB[g] ? (n = ra(c, 8), n |= ra(c, C.$a.Kb.GB[g] - 8) << 8) : n = ra(c, C.$a.Kb.GB[g]);
  21154. n += C.$a.Kb.Vca[g];
  21155. for (g = 0; g < k; g++) f = c.j_[c.Rn - n & 32767],
  21156. wa(c, f)
  21157. } else if (2 == g) {
  21158. var p = Array(320);
  21159. f = 257 + ra(c, 5);
  21160. n = 1 + ra(c, 5);
  21161. h = 4 + ra(c, 4);
  21162. for (g = 0; 19 > g; g++) p[g] = 0;
  21163. for (g = 0; g < h; g++) p[C.$a.Kb.border[g]] = ra(c, 3);
  21164. k = c.yx.length;
  21165. for (h = 0; h < k; h++) c.yx[h] = new C.$a.Kb.kT;
  21166. if (Ea(c, c.yx, 19, p)) {
  21167. c.Rn = 0;
  21168. return
  21169. }
  21170. k = f + n;
  21171. h = 0;
  21172. for (var r = -1; h < k;) if (r++, g = Ha(c, c.yx), 16 > g) p[h++] = g;
  21173. else if (16 == g) {
  21174. var v;
  21175. g = 3 + ra(c, 2);
  21176. if (h + g > k) {
  21177. c.Rn = 0;
  21178. return
  21179. }
  21180. for (v = h ? p[h - 1] : 0; g--;) p[h++] = v
  21181. } else {
  21182. g = 17 == g ? 3 + ra(c, 3) : 11 + ra(c, 7);
  21183. if (h + g > k) {
  21184. c.Rn = 0;
  21185. return
  21186. }
  21187. for (; g--;) p[h++] = 0
  21188. }
  21189. k = c.vI.length;
  21190. for (h = 0; h < k; h++) c.vI[h] = new C.$a.Kb.kT;
  21191. if (Ea(c, c.vI, f, p)) {
  21192. c.Rn = 0;
  21193. return
  21194. }
  21195. k = c.vI.length;
  21196. for (h = 0; h < k; h++) c.yx[h] = new C.$a.Kb.kT;
  21197. g = [];
  21198. for (h = f; h < p.length; h++) g[h - f] = p[h];
  21199. if (Ea(c, c.yx, n, g)) {
  21200. c.Rn = 0;
  21201. return
  21202. }
  21203. for (;;) if (g = Ha(c, c.vI), 256 <= g) {
  21204. g -= 256;
  21205. if (0 == g) break;
  21206. g--;
  21207. k = ra(c, C.$a.Kb.Xca[g]) + C.$a.Kb.Wca[g];
  21208. g = Ha(c, c.yx);
  21209. 8 < C.$a.Kb.GB[g] ? (n = ra(c, 8), n |= ra(c, C.$a.Kb.GB[g] - 8) << 8) : n = ra(c, C.$a.Kb.GB[g]);
  21210. for (n += C.$a.Kb.Vca[g]; k--;) f = c.j_[c.Rn - n & 32767],
  21211. wa(c, f)
  21212. } else wa(c, g)
  21213. }
  21214. while (!d);
  21215. c.Rn = 0;
  21216. c.zp = 1
  21217. }
  21218. function oa(c) {
  21219. c.QI = [];
  21220. c.IQ = t;
  21221. var d = [];
  21222. d[0] = c.$();
  21223. d[1] = c.$();
  21224. 120 == d[0] && 218 == d[1] && (Ja(c), c.dS[c.files] = [c.QI.join(""), "geonext.gxt"], c.files++);
  21225. 31 == d[0] && 139 == d[1] && (La(c), c.dS[c.files] = [c.QI.join(""), "file"], c.files++);
  21226. if (80 == d[0] && 75 == d[1] && (c.IQ = q, d[2] = c.$(), d[3] = c.$(), 3 == d[2] && 4 == d[3])) {
  21227. d[0] = c.$();
  21228. d[1] = c.$();
  21229. c.Tr = c.$();
  21230. c.Tr |= c.$() << 8;
  21231. d = c.$();
  21232. d |= c.$() << 8;
  21233. c.$();
  21234. c.$();
  21235. c.$();
  21236. c.$();
  21237. c.$();
  21238. c.$();
  21239. c.$();
  21240. c.$();
  21241. c.$();
  21242. c.$();
  21243. c.$();
  21244. c.$();
  21245. var f = c.$(),
  21246. f = f | c.$() << 8,
  21247. g = c.$(),
  21248. g = g | c.$() << 8,
  21249. h = 0;
  21250. for (c.AC = []; f--;) {
  21251. var k = c.$();
  21252. "/" == k | ":" == k ? h = 0 : h < C.$a.Kb.J6 - 1 && (c.AC[h++] = String.fromCharCode(k))
  21253. }
  21254. c.vda || (c.vda = c.AC);
  21255. for (var h = 0; h < g;) c.$(),
  21256. h++;
  21257. 8 == d && (Ja(c), c.dS[c.files] = [c.QI.join(""), c.AC.join("")], c.files++);
  21258. La(c)
  21259. }
  21260. }
  21261. function La(c) {
  21262. var d = [],
  21263. f;
  21264. c.Tr & 8 && (d[0] = c.$(), d[1] = c.$(), d[2] = c.$(), d[3] = c.$(), c.$(), c.$(), c.$(), c.$(), c.$(), c.$(), c.$(), c.$());
  21265. c.IQ && oa(c);
  21266. d[0] = c.$();
  21267. if (8 == d[0]) {
  21268. c.Tr = c.$();
  21269. c.$();
  21270. c.$();
  21271. c.$();
  21272. c.$();
  21273. c.$();
  21274. c.$();
  21275. if (c.Tr & 4) {
  21276. d[0] = c.$();
  21277. d[2] = c.$();
  21278. c.co = d[0] + 256 * d[1];
  21279. for (d = 0; d < c.co; d++) c.$()
  21280. }
  21281. if (c.Tr & 8) {
  21282. d = 0;
  21283. for (c.AC = []; f = c.$();) {
  21284. if ("7" == f || ":" == f) d = 0;
  21285. d < C.$a.Kb.J6 - 1 && (c.AC[d++] = f)
  21286. }
  21287. }
  21288. if (c.Tr & 16) for (; c.$(););
  21289. c.Tr & 2 && (c.$(), c.$());
  21290. Ja(c);
  21291. c.$();
  21292. c.$();
  21293. c.$();
  21294. c.$();
  21295. c.IQ && oa(c)
  21296. }
  21297. };
  21298. /*
  21299. zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License */
  21300. (function() {
  21301. function c(c) {
  21302. e(c)
  21303. }
  21304. function d(c, d) {
  21305. var f = c.split("."),
  21306. g = N; ! (f[0] in g) && g.execScript && g.execScript("var " + f[0]);
  21307. for (var h; f.length && (h = f.shift());) ! f.length && d !== U ? g[h] = d: g = g[h] ? g[h] : g[h] = {}
  21308. }
  21309. function f(c) {
  21310. if ("string" === typeof c) {
  21311. c = c.split("");
  21312. var d, f;
  21313. d = 0;
  21314. for (f = c.length; d < f; d++) c[d] = (c[d].charCodeAt(0) & 255) >>> 0
  21315. }
  21316. d = 1;
  21317. f = 0;
  21318. for (var g = c.length,
  21319. h, k = 0; 0 < g;) {
  21320. h = 1024 < g ? 1024 : g;
  21321. g -= h;
  21322. do d += c[k++],
  21323. f += d;
  21324. while (--h);
  21325. d %= 65521;
  21326. f %= 65521
  21327. }
  21328. return (f << 16 | d) >>> 0
  21329. }
  21330. function g(d, f) {
  21331. this.index = "number" === typeof f ? f: 0;
  21332. this.hI = 0;
  21333. this.buffer = d instanceof(Q ? Uint8Array: Array) ? d: new(Q ? Uint8Array: Array)(32768);
  21334. 2 * this.buffer.length <= this.index && c(Error("invalid index"));
  21335. this.buffer.length <= this.index && this.Un()
  21336. }
  21337. function h(c) {
  21338. this.buffer = new(Q ? Uint16Array: Array)(2 * c);
  21339. this.length = 0
  21340. }
  21341. function k(c) {
  21342. var d = c.length,
  21343. f = 0,
  21344. g = Number.POSITIVE_INFINITY,
  21345. h, k, n, p, r, v, y, z, D;
  21346. for (z = 0; z < d; ++z) c[z] > f && (f = c[z]),
  21347. c[z] < g && (g = c[z]);
  21348. h = 1 << f;
  21349. k = new(Q ? Uint32Array: Array)(h);
  21350. n = 1;
  21351. p = 0;
  21352. for (r = 2; n <= f;) {
  21353. for (z = 0; z < d; ++z) if (c[z] === n) {
  21354. v = 0;
  21355. y = p;
  21356. for (D = 0; D < n; ++D) v = v << 1 | y & 1,
  21357. y >>= 1;
  21358. for (D = v; D < h; D += r) k[D] = n << 16 | z; ++p
  21359. }++n;
  21360. p <<= 1;
  21361. r <<= 1
  21362. }
  21363. return [k, f, g]
  21364. }
  21365. function n(c, d) {
  21366. this.Rf = ta;
  21367. this.ba = 0;
  21368. this.input = c;
  21369. this.b = 0;
  21370. d && (d.hEa && (this.ba = d.hEa), "number" === typeof d.A_ && (this.Rf = d.A_), d.QQ && (this.a = Q && d.QQ instanceof Array ? new Uint8Array(d.QQ) : d.QQ), "number" === typeof d.QEa && (this.b = d.QEa));
  21371. this.a || (this.a = new(Q ? Uint8Array: Array)(32768))
  21372. }
  21373. function p(c, d) {
  21374. this.length = c;
  21375. this.rma = d
  21376. }
  21377. function r() {
  21378. var d = ba;
  21379. switch (X) {
  21380. case 3 === d: return [257, d - 3, 0];
  21381. case 4 === d: return [258, d - 4, 0];
  21382. case 5 === d: return [259, d - 5, 0];
  21383. case 6 === d: return [260, d - 6, 0];
  21384. case 7 === d: return [261, d - 7, 0];
  21385. case 8 === d: return [262, d - 8, 0];
  21386. case 9 === d: return [263, d - 9, 0];
  21387. case 10 === d: return [264, d - 10, 0];
  21388. case 12 >= d: return [265, d - 11, 1];
  21389. case 14 >= d: return [266, d - 13, 1];
  21390. case 16 >= d: return [267, d - 15, 1];
  21391. case 18 >= d: return [268, d - 17, 1];
  21392. case 22 >= d: return [269, d - 19, 2];
  21393. case 26 >= d: return [270, d - 23, 2];
  21394. case 30 >= d: return [271, d - 27, 2];
  21395. case 34 >= d: return [272, d - 31, 2];
  21396. case 42 >= d: return [273, d - 35, 3];
  21397. case 50 >= d: return [274, d - 43, 3];
  21398. case 58 >= d: return [275, d - 51, 3];
  21399. case 66 >= d: return [276, d - 59, 3];
  21400. case 82 >= d: return [277, d - 67, 4];
  21401. case 98 >= d: return [278, d - 83, 4];
  21402. case 114 >= d: return [279, d - 99, 4];
  21403. case 130 >= d: return [280, d - 115, 4];
  21404. case 162 >= d: return [281, d - 131, 5];
  21405. case 194 >= d: return [282, d - 163, 5];
  21406. case 226 >= d: return [283, d - 195, 5];
  21407. case 257 >= d: return [284, d - 227, 5];
  21408. case 258 === d: return [285, d - 258, 0];
  21409. default:
  21410. c("invalid length: " + d)
  21411. }
  21412. }
  21413. function v(d, f) {
  21414. function g(d, f) {
  21415. var h = d.rma,
  21416. k = [],
  21417. n = 0,
  21418. p;
  21419. p = xa[d.length];
  21420. k[n++] = p & 65535;
  21421. k[n++] = p >> 16 & 255;
  21422. k[n++] = p >> 24;
  21423. var r;
  21424. switch (X) {
  21425. case 1 === h: r = [0, h - 1, 0];
  21426. break;
  21427. case 2 === h: r = [1, h - 2, 0];
  21428. break;
  21429. case 3 === h: r = [2, h - 3, 0];
  21430. break;
  21431. case 4 === h: r = [3, h - 4, 0];
  21432. break;
  21433. case 6 >= h: r = [4, h - 5, 1];
  21434. break;
  21435. case 8 >= h: r = [5, h - 7, 1];
  21436. break;
  21437. case 12 >= h: r = [6, h - 9, 2];
  21438. break;
  21439. case 16 >= h: r = [7, h - 13, 2];
  21440. break;
  21441. case 24 >= h: r = [8, h - 17, 3];
  21442. break;
  21443. case 32 >= h: r = [9, h - 25, 3];
  21444. break;
  21445. case 48 >= h: r = [10, h - 33, 4];
  21446. break;
  21447. case 64 >= h: r = [11, h - 49, 4];
  21448. break;
  21449. case 96 >= h: r = [12, h - 65, 5];
  21450. break;
  21451. case 128 >= h: r = [13, h - 97, 5];
  21452. break;
  21453. case 192 >= h: r = [14, h - 129, 6];
  21454. break;
  21455. case 256 >= h: r = [15, h - 193, 6];
  21456. break;
  21457. case 384 >= h: r = [16, h - 257, 7];
  21458. break;
  21459. case 512 >= h: r = [17, h - 385, 7];
  21460. break;
  21461. case 768 >= h: r = [18, h - 513, 8];
  21462. break;
  21463. case 1024 >= h: r = [19, h - 769, 8];
  21464. break;
  21465. case 1536 >= h: r = [20, h - 1025, 9];
  21466. break;
  21467. case 2048 >= h: r = [21, h - 1537, 9];
  21468. break;
  21469. case 3072 >= h: r = [22, h - 2049, 10];
  21470. break;
  21471. case 4096 >= h: r = [23, h - 3073, 10];
  21472. break;
  21473. case 6144 >= h: r = [24, h - 4097, 11];
  21474. break;
  21475. case 8192 >= h: r = [25, h - 6145, 11];
  21476. break;
  21477. case 12288 >= h: r = [26, h - 8193, 12];
  21478. break;
  21479. case 16384 >= h: r = [27, h - 12289, 12];
  21480. break;
  21481. case 24576 >= h: r = [28, h - 16385, 13];
  21482. break;
  21483. case 32768 >= h: r = [29, h - 24577, 13];
  21484. break;
  21485. default:
  21486. c("invalid distance")
  21487. }
  21488. p = r;
  21489. k[n++] = p[0];
  21490. k[n++] = p[1];
  21491. k[n++] = p[2];
  21492. h = 0;
  21493. for (n = k.length; h < n; ++h) D[E++] = k[h];
  21494. G[k[0]]++;
  21495. K[k[3]]++;
  21496. F = d.length + f - 1;
  21497. z = s
  21498. }
  21499. var h, k, n, r, v, y = {},
  21500. z, D = Q ? new Uint16Array(2 * f.length) : [],
  21501. E = 0,
  21502. F = 0,
  21503. G = new(Q ? Uint32Array: Array)(286),
  21504. K = new(Q ? Uint32Array: Array)(30),
  21505. M = d.ba,
  21506. O;
  21507. if (!Q) {
  21508. for (n = 0; 285 >= n;) G[n++] = 0;
  21509. for (n = 0; 29 >= n;) K[n++] = 0
  21510. }
  21511. G[256] = 1;
  21512. h = 0;
  21513. for (k = f.length; h < k; ++h) {
  21514. n = v = 0;
  21515. for (r = 3; n < r && h + n !== k; ++n) v = v << 8 | f[h + n];
  21516. y[v] === U && (y[v] = []);
  21517. n = y[v];
  21518. if (! (0 < F--)) {
  21519. for (; 0 < n.length && 32768 < h - n[0];) n.shift();
  21520. if (h + 3 >= k) {
  21521. z && g(z, -1);
  21522. n = 0;
  21523. for (r = k - h; n < r; ++n) O = f[h + n],
  21524. D[E++] = O,
  21525. ++G[O];
  21526. break
  21527. }
  21528. if (0 < n.length) {
  21529. v = r = U;
  21530. var S = 0,
  21531. R = U,
  21532. N = U,
  21533. W = R = U,
  21534. ca = f.length,
  21535. N = 0,
  21536. W = n.length;
  21537. a: for (; N < W; N++) {
  21538. r = n[W - N - 1];
  21539. R = 3;
  21540. if (3 < S) {
  21541. for (R = S; 3 < R; R--) if (f[r + R - 1] !== f[h + R - 1]) continue a;
  21542. R = S
  21543. }
  21544. for (; 258 > R && h + R < ca && f[r + R] === f[h + R];)++R;
  21545. R > S && (v = r, S = R);
  21546. if (258 === R) break
  21547. }
  21548. r = new p(S, h - v);
  21549. z ? z.length < r.length ? (O = f[h - 1], D[E++] = O, ++G[O], g(r, 0)) : g(z, -1) : r.length < M ? z = r: g(r, 0)
  21550. } else z ? g(z, -1) : (O = f[h], D[E++] = O, ++G[O])
  21551. }
  21552. n.push(h)
  21553. }
  21554. D[E++] = 256;
  21555. G[256]++;
  21556. d.Pma = G;
  21557. d.Gma = K;
  21558. return Q ? D.subarray(0, E) : D
  21559. }
  21560. function y(c, d) {
  21561. function f(c) {
  21562. var d = D[c][E[c]];
  21563. d === y ? (f(c + 1), f(c + 1)) : --z[d]; ++E[c]
  21564. }
  21565. var g = c.length,
  21566. k = new h(572),
  21567. n = new(Q ? Uint8Array: Array)(g),
  21568. p,
  21569. r,
  21570. v;
  21571. if (!Q) for (r = 0; r < g; r++) n[r] = 0;
  21572. for (r = 0; r < g; ++r) 0 < c[r] && k.push(r, c[r]);
  21573. g = Array(k.length / 2);
  21574. p = new(Q ? Uint32Array: Array)(k.length / 2);
  21575. if (1 === g.length) return n[k.pop().index] = 1,
  21576. n;
  21577. r = 0;
  21578. for (v = k.length / 2; r < v; ++r) g[r] = k.pop(),
  21579. p[r] = g[r].value;
  21580. var y = p.length;
  21581. r = new(Q ? Uint16Array: Array)(d);
  21582. var k = new(Q ? Uint8Array: Array)(d),
  21583. z = new(Q ? Uint8Array: Array)(y);
  21584. v = Array(d);
  21585. var D = Array(d),
  21586. E = Array(d),
  21587. F = (1 << d) - y,
  21588. G = 1 << d - 1,
  21589. K,
  21590. M,
  21591. O;
  21592. r[d - 1] = y;
  21593. for (K = 0; K < d; ++K) F < G ? k[K] = 0 : (k[K] = 1, F -= G),
  21594. F <<= 1,
  21595. r[d - 2 - K] = (r[d - 1 - K] / 2 | 0) + y;
  21596. r[0] = k[0];
  21597. v[0] = Array(r[0]);
  21598. D[0] = Array(r[0]);
  21599. for (K = 1; K < d; ++K) r[K] > 2 * r[K - 1] + k[K] && (r[K] = 2 * r[K - 1] + k[K]),
  21600. v[K] = Array(r[K]),
  21601. D[K] = Array(r[K]);
  21602. for (F = 0; F < y; ++F) z[F] = d;
  21603. for (G = 0; G < r[d - 1]; ++G) v[d - 1][G] = p[G],
  21604. D[d - 1][G] = G;
  21605. for (F = 0; F < d; ++F) E[F] = 0;
  21606. 1 === k[d - 1] && (--z[0], ++E[d - 1]);
  21607. for (K = d - 2; 0 <= K; --K) {
  21608. M = F = 0;
  21609. O = E[K + 1];
  21610. for (G = 0; G < r[K]; G++) M = v[K + 1][O] + v[K + 1][O + 1],
  21611. M > p[F] ? (v[K][G] = M, D[K][G] = y, O += 2) : (v[K][G] = p[F], D[K][G] = F, ++F);
  21612. E[K] = 0;
  21613. 1 === k[K] && f(K)
  21614. }
  21615. p = z;
  21616. r = 0;
  21617. for (v = g.length; r < v; ++r) n[g[r].index] = p[r];
  21618. return n
  21619. }
  21620. function z(d) {
  21621. var f = new(Q ? Uint16Array: Array)(d.length),
  21622. g = [],
  21623. h = [],
  21624. k = 0,
  21625. n,
  21626. p,
  21627. r;
  21628. n = 0;
  21629. for (p = d.length; n < p; n++) g[d[n]] = (g[d[n]] | 0) + 1;
  21630. n = 1;
  21631. for (p = 16; n <= p; n++) h[n] = k,
  21632. k += g[n] | 0,
  21633. k > 1 << n && c("overcommitted"),
  21634. k <<= 1;
  21635. 65536 > k && c("undercommitted");
  21636. n = 0;
  21637. for (p = d.length; n < p; n++) {
  21638. k = h[d[n]];
  21639. h[d[n]] += 1;
  21640. g = f[n] = 0;
  21641. for (r = d[n]; g < r; g++) f[n] = f[n] << 1 | k & 1,
  21642. k >>>= 1
  21643. }
  21644. return f
  21645. }
  21646. function D(c, d) {
  21647. this.input = c;
  21648. this.a = new(Q ? Uint8Array: Array)(32768);
  21649. this.Rf = ca.pQ;
  21650. var f = {},
  21651. g;
  21652. if ((d || !(d = {})) && "number" === typeof d.A_) this.Rf = d.A_;
  21653. for (g in d) f[g] = d[g];
  21654. f.QQ = this.a;
  21655. this.f = new n(this.input, f)
  21656. }
  21657. function E(d, f) {
  21658. this.qQ = [];
  21659. this.AQ = 32768;
  21660. this.xm = this.g = this.H = this.ZQ = 0;
  21661. this.input = Q ? new Uint8Array(d) : d;
  21662. this.tl = t;
  21663. this.FQ = W;
  21664. this.q4 = t;
  21665. if (f || !(f = {})) f.index && (this.H = f.index),
  21666. f.k_ && (this.AQ = f.k_),
  21667. f.l_ && (this.FQ = f.l_),
  21668. f.$p && (this.q4 = f.$p);
  21669. switch (this.FQ) {
  21670. case Ma:
  21671. this.b = 32768;
  21672. this.a = new(Q ? Uint8Array: Array)(32768 + this.AQ + 258);
  21673. break;
  21674. case W:
  21675. this.b = 0;
  21676. this.a = new(Q ? Uint8Array: Array)(this.AQ);
  21677. this.Un = this.Fma;
  21678. this.K3 = this.tma;
  21679. this.LQ = this.yma;
  21680. break;
  21681. default:
  21682. c(Error("invalid inflate mode"))
  21683. }
  21684. }
  21685. function F(d, f) {
  21686. for (var g = d.g,
  21687. h = d.xm,
  21688. k = d.input,
  21689. n = d.H,
  21690. p; h < f;) p = k[n++],
  21691. p === U && c(Error("input buffer is broken")),
  21692. g |= p << h,
  21693. h += 8;
  21694. d.g = g >>> f;
  21695. d.xm = h - f;
  21696. d.H = n;
  21697. return g & (1 << f) - 1
  21698. }
  21699. function G(d, f) {
  21700. for (var g = d.g,
  21701. h = d.xm,
  21702. k = d.input,
  21703. n = d.H,
  21704. p = f[0], r = f[1], v; h < r;) v = k[n++],
  21705. v === U && c(Error("input buffer is broken")),
  21706. g |= v << h,
  21707. h += 8;
  21708. k = p[g & (1 << r) - 1];
  21709. p = k >>> 16;
  21710. d.g = g >> p;
  21711. d.xm = h - p;
  21712. d.H = n;
  21713. return k & 65535
  21714. }
  21715. function K(c) {
  21716. function d(c, f, g) {
  21717. var h, k, n, p;
  21718. for (p = 0; p < c;) switch (h = G(this, f), h) {
  21719. case 16:
  21720. for (n = 3 + F(this, 2); n--;) g[p++] = k;
  21721. break;
  21722. case 17:
  21723. for (n = 3 + F(this, 3); n--;) g[p++] = 0;
  21724. k = 0;
  21725. break;
  21726. case 18:
  21727. for (n = 11 + F(this, 7); n--;) g[p++] = 0;
  21728. k = 0;
  21729. break;
  21730. default:
  21731. k = g[p++] = h
  21732. }
  21733. return g
  21734. }
  21735. var f = F(c, 5) + 257,
  21736. g = F(c, 5) + 1,
  21737. h = F(c, 4) + 4,
  21738. n = new(Q ? Uint8Array: Array)(pa.length),
  21739. p;
  21740. for (p = 0; p < h; ++p) n[pa[p]] = F(c, 3);
  21741. h = k(n);
  21742. n = new(Q ? Uint8Array: Array)(f);
  21743. p = new(Q ? Uint8Array: Array)(g);
  21744. c.LQ(k(d.call(c, f, h, n)), k(d.call(c, g, h, p)))
  21745. }
  21746. function O(d, f) {
  21747. var g, h;
  21748. this.input = d;
  21749. this.H = 0;
  21750. if (f || !(f = {})) f.index && (this.H = f.index),
  21751. f.tja && (this.Yma = f.tja);
  21752. g = d[this.H++];
  21753. h = d[this.H++];
  21754. switch (g & 15) {
  21755. case Ka:
  21756. this.method = Ka;
  21757. break;
  21758. default:
  21759. c(Error("unsupported compression method"))
  21760. }
  21761. 0 !== ((g << 8) + h) % 31 && c(Error("invalid fcheck flag:" + ((g << 8) + h) % 31));
  21762. h & 32 && c(Error("fdict flag is not supported"));
  21763. this.g4 = new E(d, {
  21764. index: this.H,
  21765. k_: f.k_,
  21766. l_: f.l_,
  21767. $p: f.$p
  21768. })
  21769. }
  21770. var U = m,
  21771. X = q,
  21772. N = this,
  21773. Q = "undefined" !== typeof Uint8Array && "undefined" !== typeof Uint16Array && "undefined" !== typeof Uint32Array;
  21774. g.prototype.Un = function() {
  21775. var c = this.buffer,
  21776. d, f = c.length,
  21777. g = new(Q ? Uint8Array: Array)(f << 1);
  21778. if (Q) g.set(c);
  21779. else for (d = 0; d < f; ++d) g[d] = c[d];
  21780. return this.buffer = g
  21781. };
  21782. g.prototype.P = function(c, d, f) {
  21783. var g = this.buffer,
  21784. h = this.index,
  21785. k = this.hI,
  21786. n = g[h];
  21787. f && 1 < d && (c = 8 < d ? (aa[c & 255] << 24 | aa[c >>> 8 & 255] << 16 | aa[c >>> 16 & 255] << 8 | aa[c >>> 24 & 255]) >> 32 - d: aa[c] >> 8 - d);
  21788. if (8 > d + k) n = n << d | c,
  21789. k += d;
  21790. else for (f = 0; f < d; ++f) n = n << 1 | c >> d - f - 1 & 1,
  21791. 8 === ++k && (k = 0, g[h++] = aa[n], n = 0, h === g.length && (g = this.Un()));
  21792. g[h] = n;
  21793. this.buffer = g;
  21794. this.hI = k;
  21795. this.index = h
  21796. };
  21797. g.prototype.finish = function() {
  21798. var c = this.buffer,
  21799. d = this.index,
  21800. f;
  21801. 0 < this.hI && (c[d] <<= 8 - this.hI, c[d] = aa[c[d]], d++);
  21802. Q ? f = c.subarray(0, d) : (c.length = d, f = c);
  21803. return f
  21804. };
  21805. var S = new(Q ? Uint8Array: Array)(256),
  21806. M;
  21807. for (M = 0; 256 > M; ++M) {
  21808. for (var R = M,
  21809. $ = R,
  21810. sa = 7,
  21811. R = R >>> 1; R; R >>>= 1) $ <<= 1,
  21812. $ |= R & 1,
  21813. --sa;
  21814. S[M] = ($ << sa & 255) >>> 0
  21815. }
  21816. var aa = S,
  21817. S = [0, 1996959894, 3993919788, 2567524794, 124634137, 1886057615, 3915621685, 2657392035, 249268274, 2044508324, 3772115230, 2547177864, 162941995, 2125561021, 3887607047, 2428444049, 498536548, 1789927666, 4089016648, 2227061214, 450548861, 1843258603, 4107580753, 2211677639, 325883990, 1684777152, 4251122042, 2321926636, 335633487, 1661365465, 4195302755, 2366115317, 997073096, 1281953886, 3579855332, 2724688242, 1006888145, 1258607687, 3524101629, 2768942443, 901097722, 1119000684, 3686517206, 2898065728, 853044451, 1172266101, 3705015759, 2882616665, 651767980, 1373503546, 3369554304, 3218104598, 565507253, 1454621731, 3485111705, 3099436303, 671266974, 1594198024, 3322730930, 2970347812, 795835527, 1483230225, 3244367275, 3060149565, 1994146192, 31158534, 2563907772, 4023717930, 1907459465, 112637215, 2680153253, 3904427059, 2013776290, 251722036, 2517215374, 3775830040, 2137656763, 141376813, 2439277719, 3865271297, 1802195444, 476864866, 2238001368, 4066508878, 1812370925, 453092731, 2181625025, 4111451223, 1706088902, 314042704, 2344532202, 4240017532, 1658658271, 366619977, 2362670323, 4224994405, 1303535960, 984961486, 2747007092, 3569037538, 1256170817, 1037604311, 2765210733, 3554079995, 1131014506, 879679996, 2909243462, 3663771856, 1141124467, 855842277, 2852801631, 3708648649, 1342533948, 654459306, 3188396048, 3373015174, 1466479909, 544179635, 3110523913, 3462522015, 1591671054, 702138776, 2966460450, 3352799412, 1504918807, 783551873, 3082640443, 3233442989, 3988292384, 2596254646, 62317068, 1957810842, 3939845945, 2647816111, 81470997, 1943803523, 3814918930, 2489596804, 225274430, 2053790376, 3826175755, 2466906013, 167816743, 2097651377, 4027552580, 2265490386, 503444072, 1762050814, 4150417245, 2154129355, 426522225, 1852507879, 4275313526, 2312317920, 282753626, 1742555852, 4189708143, 2394877945, 397917763, 1622183637, 3604390888, 2714866558, 953729732, 1340076626, 3518719985, 2797360999, 1068828381, 1219638859, 3624741850, 2936675148, 906185462, 1090812512, 3747672003, 2825379669, 829329135, 1181335161, 3412177804, 3160834842, 628085408, 1382605366, 3423369109, 3138078467, 570562233, 1426400815, 3317316542, 2998733608, 733239954, 1555261956, 3268935591, 3050360625, 752459403, 1541320221, 2607071920, 3965973030, 1969922972, 40735498, 2617837225, 3943577151, 1913087877, 83908371, 2512341634, 3803740692, 2075208622, 213261112, 2463272603, 3855990285, 2094854071, 198958881, 2262029012, 4057260610, 1759359992, 534414190, 2176718541, 4139329115, 1873836001, 414664567, 2282248934, 4279200368, 1711684554, 285281116, 2405801727, 4167216745, 1634467795, 376229701, 2685067896, 3608007406, 1308918612, 956543938, 2808555105, 3495958263, 1231636301, 1047427035, 2932959818, 3654703836, 1088359270, 936918E3, 2847714899, 3736837829, 1202900863, 817233897, 3183342108, 3401237130, 1404277552, 615818150, 3134207493, 3453421203, 1423857449, 601450431, 3009837614, 3294710456, 1567103746, 711928724, 3020668471, 3272380065, 1510334235, 755167117];
  21818. Q && new Uint32Array(S);
  21819. h.prototype.getParent = function(c) {
  21820. return 2 * ((c - 2) / 4 | 0)
  21821. };
  21822. h.prototype.push = function(c, d) {
  21823. var f, g, h = this.buffer,
  21824. k;
  21825. f = this.length;
  21826. h[this.length++] = d;
  21827. for (h[this.length++] = c; 0 < f;) if (g = this.getParent(f), h[f] > h[g]) k = h[f],
  21828. h[f] = h[g],
  21829. h[g] = k,
  21830. k = h[f + 1],
  21831. h[f + 1] = h[g + 1],
  21832. h[g + 1] = k,
  21833. f = g;
  21834. else break;
  21835. return this.length
  21836. };
  21837. h.prototype.pop = function() {
  21838. var c, d, f = this.buffer,
  21839. g, h, k;
  21840. d = f[0];
  21841. c = f[1];
  21842. this.length -= 2;
  21843. f[0] = f[this.length];
  21844. f[1] = f[this.length + 1];
  21845. for (k = 0;;) {
  21846. h = 2 * k + 2;
  21847. if (h >= this.length) break;
  21848. h + 2 < this.length && f[h + 2] > f[h] && (h += 2);
  21849. if (f[h] > f[k]) g = f[k],
  21850. f[k] = f[h],
  21851. f[h] = g,
  21852. g = f[k + 1],
  21853. f[k + 1] = f[h + 1],
  21854. f[h + 1] = g;
  21855. else break;
  21856. k = h
  21857. }
  21858. return {
  21859. index: c,
  21860. value: d,
  21861. length: this.length
  21862. }
  21863. };
  21864. var ta = 2,
  21865. S = {
  21866. NONE: 0,
  21867. r: 1,
  21868. pQ: ta,
  21869. AMa: 3
  21870. },
  21871. ma = [];
  21872. for (M = 0; 288 > M; M++) switch (X) {
  21873. case 143 >= M: ma.push([M + 48, 8]);
  21874. break;
  21875. case 255 >= M: ma.push([M - 144 + 400, 9]);
  21876. break;
  21877. case 279 >= M: ma.push([M - 256 + 0, 7]);
  21878. break;
  21879. case 287 >= M: ma.push([M - 280 + 192, 8]);
  21880. break;
  21881. default:
  21882. c("invalid literal: " + M)
  21883. }
  21884. n.prototype.ds = function() {
  21885. var d, f, h, k, n = this.input;
  21886. switch (this.Rf) {
  21887. case 0:
  21888. h = 0;
  21889. for (k = n.length; h < k;) {
  21890. f = Q ? n.subarray(h, h + 65535) : n.slice(h, h + 65535);
  21891. h += f.length;
  21892. var p = h === k,
  21893. r = U,
  21894. D = r = U,
  21895. D = r = U,
  21896. E = this.a,
  21897. F = this.b;
  21898. if (Q) {
  21899. for (E = new Uint8Array(this.a.buffer); E.length <= F + f.length + 5;) E = new Uint8Array(E.length << 1);
  21900. E.set(this.a)
  21901. }
  21902. r = p ? 1 : 0;
  21903. E[F++] = r | 0;
  21904. r = f.length;
  21905. D = ~r + 65536 & 65535;
  21906. E[F++] = r & 255;
  21907. E[F++] = r >>> 8 & 255;
  21908. E[F++] = D & 255;
  21909. E[F++] = D >>> 8 & 255;
  21910. if (Q) E.set(f, F),
  21911. F += f.length,
  21912. E = E.subarray(0, F);
  21913. else {
  21914. r = 0;
  21915. for (D = f.length; r < D; ++r) E[F++] = f[r];
  21916. E.length = F
  21917. }
  21918. this.b = F;
  21919. this.a = E
  21920. }
  21921. break;
  21922. case 1:
  21923. h = new g(new Uint8Array(this.a.buffer), this.b);
  21924. h.P(1, 1, X);
  21925. h.P(1, 2, X);
  21926. n = v(this, n);
  21927. f = 0;
  21928. for (p = n.length; f < p; f++) if (k = n[f], g.prototype.P.apply(h, ma[k]), 256 < k) h.P(n[++f], n[++f], X),
  21929. h.P(n[++f], 5),
  21930. h.P(n[++f], n[++f], X);
  21931. else if (256 === k) break;
  21932. this.a = h.finish();
  21933. this.b = this.a.length;
  21934. break;
  21935. case ta:
  21936. k = new g(new Uint8Array(this.a), this.b);
  21937. var G, K, M, O = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15],
  21938. S,
  21939. R,
  21940. r = Array(19),
  21941. N,
  21942. E = ta;
  21943. k.P(1, 1, X);
  21944. k.P(E, 2, X);
  21945. n = v(this, n);
  21946. D = y(this.Pma, 15);
  21947. S = z(D);
  21948. E = y(this.Gma, 7);
  21949. F = z(E);
  21950. for (G = 286; 257 < G && 0 === D[G - 1]; G--);
  21951. for (K = 30; 1 < K && 0 === E[K - 1]; K--);
  21952. var W = G,
  21953. ca = K;
  21954. d = new(Q ? Uint32Array: Array)(W + ca);
  21955. var $ = new(Q ? Uint32Array: Array)(316),
  21956. aa,
  21957. ba;
  21958. R = new(Q ? Uint8Array: Array)(19);
  21959. for (N = M = 0; N < W; N++) d[M++] = D[N];
  21960. for (N = 0; N < ca; N++) d[M++] = E[N];
  21961. if (!Q) {
  21962. N = 0;
  21963. for (ca = R.length; N < ca; ++N) R[N] = 0
  21964. }
  21965. N = aa = 0;
  21966. for (ca = d.length; N < ca; N += M) {
  21967. for (M = 1; N + M < ca && d[N + M] === d[N]; ++M);
  21968. W = M;
  21969. if (0 === d[N]) if (3 > W) for (; 0 < W--;) $[aa++] = 0,
  21970. R[0]++;
  21971. else for (; 0 < W;) ba = 138 > W ? W: 138,
  21972. ba > W - 3 && ba < W && (ba = W - 3),
  21973. 10 >= ba ? ($[aa++] = 17, $[aa++] = ba - 3, R[17]++) : ($[aa++] = 18, $[aa++] = ba - 11, R[18]++),
  21974. W -= ba;
  21975. else if ($[aa++] = d[N], R[d[N]]++, W--, 3 > W) for (; 0 < W--;) $[aa++] = d[N],
  21976. R[d[N]]++;
  21977. else for (; 0 < W;) ba = 6 > W ? W: 6,
  21978. ba > W - 3 && ba < W && (ba = W - 3),
  21979. $[aa++] = 16,
  21980. $[aa++] = ba - 3,
  21981. R[16]++,
  21982. W -= ba
  21983. }
  21984. d = Q ? $.subarray(0, aa) : $.slice(0, aa);
  21985. R = y(R, 7);
  21986. for (N = 0; 19 > N; N++) r[N] = R[O[N]];
  21987. for (M = 19; 4 < M && 0 === r[M - 1]; M--);
  21988. O = z(R);
  21989. k.P(G - 257, 5, X);
  21990. k.P(K - 1, 5, X);
  21991. k.P(M - 4, 4, X);
  21992. for (N = 0; N < M; N++) k.P(r[N], 3, X);
  21993. N = 0;
  21994. for (r = d.length; N < r; N++) if (f = d[N], k.P(O[f], R[f], X), 16 <= f) {
  21995. N++;
  21996. switch (f) {
  21997. case 16:
  21998. p = 2;
  21999. break;
  22000. case 17:
  22001. p = 3;
  22002. break;
  22003. case 18:
  22004. p = 7;
  22005. break;
  22006. default:
  22007. c("invalid code: " + f)
  22008. }
  22009. k.P(d[N], p, X)
  22010. }
  22011. p = [S, D];
  22012. F = [F, E];
  22013. f = p[0];
  22014. p = p[1];
  22015. E = F[0];
  22016. S = F[1];
  22017. F = 0;
  22018. for (r = n.length; F < r; ++F) if (h = n[F], k.P(f[h], p[h], X), 256 < h) k.P(n[++F], n[++F], X),
  22019. D = n[++F],
  22020. k.P(E[D], S[D], X),
  22021. k.P(n[++F], n[++F], X);
  22022. else if (256 === h) break;
  22023. this.a = k.finish();
  22024. this.b = this.a.length;
  22025. break;
  22026. default:
  22027. c("invalid compression type")
  22028. }
  22029. return this.a
  22030. };
  22031. M = [];
  22032. var ba;
  22033. for (ba = 3; 258 >= ba; ba++) R = r(),
  22034. M[ba] = R[2] << 24 | R[1] << 16 | R[0];
  22035. var xa = Q ? new Uint32Array(M) : M,
  22036. ca = S;
  22037. D.prototype.ds = function() {
  22038. var d, g, h, k, n = 0;
  22039. k = this.a;
  22040. d = Ka;
  22041. switch (d) {
  22042. case Ka:
  22043. g = Math.LOG2E * Math.log(32768) - 8;
  22044. break;
  22045. default:
  22046. c(Error("invalid compression method"))
  22047. }
  22048. g = g << 4 | d;
  22049. k[n++] = g;
  22050. switch (d) {
  22051. case Ka:
  22052. switch (this.Rf) {
  22053. case ca.NONE:
  22054. h = 0;
  22055. break;
  22056. case ca.r:
  22057. h = 1;
  22058. break;
  22059. case ca.pQ:
  22060. h = 2;
  22061. break;
  22062. default:
  22063. c(Error("unsupported compression type"))
  22064. }
  22065. break;
  22066. default:
  22067. c(Error("invalid compression method"))
  22068. }
  22069. d = h << 6 | 0;
  22070. k[n++] = d | 31 - (256 * g + d) % 31;
  22071. d = f(this.input);
  22072. this.f.b = n;
  22073. k = this.f.ds();
  22074. n = k.length;
  22075. Q && (k = new Uint8Array(k.buffer), k.length <= n + 4 && (this.a = new Uint8Array(k.length + 4), this.a.set(k), k = this.a), k = k.subarray(0, n + 4));
  22076. k[n++] = d >> 24 & 255;
  22077. k[n++] = d >> 16 & 255;
  22078. k[n++] = d >> 8 & 255;
  22079. k[n++] = d & 255;
  22080. return k
  22081. };
  22082. d("Zlib.Deflate", D);
  22083. d("Zlib.Deflate.compress",
  22084. function(c, d) {
  22085. return (new D(c, d)).ds()
  22086. });
  22087. d("Zlib.Deflate.CompressionType", ca);
  22088. d("Zlib.Deflate.CompressionType.NONE", ca.NONE);
  22089. d("Zlib.Deflate.CompressionType.FIXED", ca.r);
  22090. d("Zlib.Deflate.CompressionType.DYNAMIC", ca.pQ);
  22091. var Ma = 0,
  22092. W = 1,
  22093. S = {
  22094. Bla: Ma,
  22095. oka: W
  22096. };
  22097. E.prototype.d = function() {
  22098. for (; ! this.tl;) {
  22099. var d = F(this, 3);
  22100. d & 1 && (this.tl = X);
  22101. d >>>= 1;
  22102. switch (d) {
  22103. case 0:
  22104. var d = this.input,
  22105. f = this.H,
  22106. g = this.a,
  22107. h = this.b,
  22108. k = U,
  22109. n = U,
  22110. p = U,
  22111. r = g.length,
  22112. k = U;
  22113. this.xm = this.g = 0;
  22114. k = d[f++];
  22115. k === U && c(Error("invalid uncompressed block header: LEN (first byte)"));
  22116. n = k;
  22117. k = d[f++];
  22118. k === U && c(Error("invalid uncompressed block header: LEN (second byte)"));
  22119. n |= k << 8;
  22120. k = d[f++];
  22121. k === U && c(Error("invalid uncompressed block header: NLEN (first byte)"));
  22122. p = k;
  22123. k = d[f++];
  22124. k === U && c(Error("invalid uncompressed block header: NLEN (second byte)"));
  22125. p |= k << 8;
  22126. n === ~p && c(Error("invalid uncompressed block header: length verify"));
  22127. f + n > d.length && c(Error("input buffer is broken"));
  22128. switch (this.FQ) {
  22129. case Ma:
  22130. for (; h + n > g.length;) {
  22131. k = r - h;
  22132. n -= k;
  22133. if (Q) g.set(d.subarray(f, f + k), h),
  22134. h += k,
  22135. f += k;
  22136. else for (; k--;) g[h++] = d[f++];
  22137. this.b = h;
  22138. g = this.Un();
  22139. h = this.b
  22140. }
  22141. break;
  22142. case W:
  22143. for (; h + n > g.length;) g = this.Un({
  22144. ea: 2
  22145. });
  22146. break;
  22147. default:
  22148. c(Error("invalid inflate mode"))
  22149. }
  22150. if (Q) g.set(d.subarray(f, f + n), h),
  22151. h += n,
  22152. f += n;
  22153. else for (; n--;) g[h++] = d[f++];
  22154. this.H = f;
  22155. this.b = h;
  22156. this.a = g;
  22157. break;
  22158. case 1:
  22159. this.LQ(fb, gb);
  22160. break;
  22161. case 2:
  22162. K(this);
  22163. break;
  22164. default:
  22165. c(Error("unknown BTYPE: " + d))
  22166. }
  22167. }
  22168. return this.K3()
  22169. };
  22170. M = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
  22171. var pa = Q ? new Uint16Array(M) : M;
  22172. M = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 258, 258];
  22173. var hb = Q ? new Uint16Array(M) : M;
  22174. M = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, 0, 0];
  22175. var Na = Q ? new Uint8Array(M) : M;
  22176. M = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577];
  22177. var Gb = Q ? new Uint16Array(M) : M;
  22178. M = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13];
  22179. var Aa = Q ? new Uint8Array(M) : M;
  22180. M = new(Q ? Uint8Array: Array)(288);
  22181. R = 0;
  22182. for ($ = M.length; R < $; ++R) M[R] = 143 >= R ? 8 : 255 >= R ? 9 : 279 >= R ? 7 : 8;
  22183. var fb = k(M);
  22184. M = new(Q ? Uint8Array: Array)(30);
  22185. R = 0;
  22186. for ($ = M.length; R < $; ++R) M[R] = 5;
  22187. var gb = k(M);
  22188. E.prototype.LQ = function(c, d) {
  22189. var f = this.a,
  22190. g = this.b;
  22191. this.xa = c;
  22192. for (var h = f.length - 258,
  22193. k, n, p; 256 !== (k = G(this, c));) if (256 > k) g >= h && (this.b = g, f = this.Un(), g = this.b),
  22194. f[g++] = k;
  22195. else {
  22196. k -= 257;
  22197. p = hb[k];
  22198. 0 < Na[k] && (p += F(this, Na[k]));
  22199. k = G(this, d);
  22200. n = Gb[k];
  22201. 0 < Aa[k] && (n += F(this, Aa[k]));
  22202. for (g >= h && (this.b = g, f = this.Un(), g = this.b); p--;) f[g] = f[g++-n]
  22203. }
  22204. for (; 8 <= this.xm;) this.xm -= 8,
  22205. this.H--;
  22206. this.b = g
  22207. };
  22208. E.prototype.yma = function(c, d) {
  22209. var f = this.a,
  22210. g = this.b;
  22211. this.xa = c;
  22212. for (var h = f.length,
  22213. k, n, p; 256 !== (k = G(this, c));) if (256 > k) g >= h && (f = this.Un(), h = f.length),
  22214. f[g++] = k;
  22215. else {
  22216. k -= 257;
  22217. p = hb[k];
  22218. 0 < Na[k] && (p += F(this, Na[k]));
  22219. k = G(this, d);
  22220. n = Gb[k];
  22221. 0 < Aa[k] && (n += F(this, Aa[k]));
  22222. for (g + p > h && (f = this.Un(), h = f.length); p--;) f[g] = f[g++-n]
  22223. }
  22224. for (; 8 <= this.xm;) this.xm -= 8,
  22225. this.H--;
  22226. this.b = g
  22227. };
  22228. E.prototype.Un = function() {
  22229. var c = new(Q ? Uint8Array: Array)(this.b - 32768),
  22230. d = this.b - 32768,
  22231. f,
  22232. g,
  22233. h = this.a;
  22234. if (Q) c.set(h.subarray(32768, c.length));
  22235. else {
  22236. f = 0;
  22237. for (g = c.length; f < g; ++f) c[f] = h[f + 32768]
  22238. }
  22239. this.qQ.push(c);
  22240. this.ZQ += c.length;
  22241. if (Q) h.set(h.subarray(d, d + 32768));
  22242. else for (f = 0; 32768 > f; ++f) h[f] = h[d + f];
  22243. this.b = 32768;
  22244. return h
  22245. };
  22246. E.prototype.Fma = function(c) {
  22247. var d, f = this.input.length / this.H + 1 | 0,
  22248. g, h, k, n = this.input,
  22249. p = this.a;
  22250. c && ("number" === typeof c.ea && (f = c.ea), "number" === typeof c.mma && (f += c.mma));
  22251. 2 > f ? (g = (n.length - this.H) / this.xa[2], k = 258 * (g / 2) | 0, h = k < p.length ? p.length + k: p.length << 1) : h = p.length * f;
  22252. Q ? (d = new Uint8Array(h), d.set(p)) : d = p;
  22253. return this.a = d
  22254. };
  22255. E.prototype.K3 = function() {
  22256. var c = 0,
  22257. d = this.a,
  22258. f = this.qQ,
  22259. g, h = new(Q ? Uint8Array: Array)(this.ZQ + (this.b - 32768)),
  22260. k,
  22261. n,
  22262. p,
  22263. r;
  22264. if (0 === f.length) return Q ? this.a.subarray(32768, this.b) : this.a.slice(32768, this.b);
  22265. k = 0;
  22266. for (n = f.length; k < n; ++k) {
  22267. g = f[k];
  22268. p = 0;
  22269. for (r = g.length; p < r; ++p) h[c++] = g[p]
  22270. }
  22271. k = 32768;
  22272. for (n = this.b; k < n; ++k) h[c++] = d[k];
  22273. this.qQ = [];
  22274. return this.buffer = h
  22275. };
  22276. E.prototype.tma = function() {
  22277. var c, d = this.b;
  22278. Q ? this.q4 ? (c = new Uint8Array(d), c.set(this.a.subarray(0, d))) : c = this.a.subarray(0, d) : (this.a.length > d && (this.a.length = d), c = this.a);
  22279. return this.buffer = c
  22280. };
  22281. O.prototype.d = function() {
  22282. var d = this.input,
  22283. g, h;
  22284. g = this.g4.d();
  22285. this.H = this.g4.H;
  22286. this.Yma && (h = (d[this.H++] << 24 | d[this.H++] << 16 | d[this.H++] << 8 | d[this.H++]) >>> 0, h !== f(g) && c(Error("invalid adler-32 checksum")));
  22287. return g
  22288. };
  22289. d("Zlib.Inflate", O);
  22290. d("Zlib.Inflate.BufferType", S);
  22291. S.YJa = S.oka;
  22292. S.IKa = S.Bla;
  22293. d("Zlib.Inflate.prototype.decompress", O.prototype.d);
  22294. S = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
  22295. Q && new Uint16Array(S);
  22296. S = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 258, 258];
  22297. Q && new Uint16Array(S);
  22298. S = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, 0, 0];
  22299. Q && new Uint8Array(S);
  22300. S = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577];
  22301. Q && new Uint16Array(S);
  22302. S = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13];
  22303. Q && new Uint8Array(S);
  22304. S = new(Q ? Uint8Array: Array)(288);
  22305. M = 0;
  22306. for (R = S.length; M < R; ++M) S[M] = 143 >= M ? 8 : 255 >= M ? 9 : 279 >= M ? 7 : 8;
  22307. k(S);
  22308. S = new(Q ? Uint8Array: Array)(30);
  22309. M = 0;
  22310. for (R = S.length; M < R; ++M) S[M] = 5;
  22311. k(S);
  22312. var Ka = 8
  22313. }).call(this);
  22314. H = window;
  22315. H = H.SNa = H.Zlib;
  22316. H.x5 = H.Deflate;
  22317. H.x5.dRa = H.x5.compress;
  22318. H.Inflate = H.Inflate;
  22319. H.Inflate.YKa = H.Inflate.BufferType;
  22320. H.Inflate.prototype.decompress = H.Inflate.prototype.decompress;
  22321. C.Gna = C.O.extend({
  22322. ctor: function(c) {
  22323. var d, f, g, h;
  22324. this.data = c;
  22325. this.hc = 8;
  22326. this.U1 = [];
  22327. this.$P = [];
  22328. this.By = {};
  22329. this.td = s;
  22330. this.text = {};
  22331. for (g = s;;) {
  22332. d = this.is();
  22333. h = c = m;
  22334. h = [];
  22335. for (c = 0; 4 > c; ++c) h.push(String.fromCharCode(this.data[this.hc++]));
  22336. c = h.join("");
  22337. switch (c) {
  22338. case "IHDR":
  22339. this.width = this.is();
  22340. this.height = this.is();
  22341. this.zB = this.data[this.hc++];
  22342. this.y_ = this.data[this.hc++];
  22343. this.eRa = this.data[this.hc++];
  22344. this.vSa = this.data[this.hc++];
  22345. this.aYa = this.data[this.hc++];
  22346. break;
  22347. case "acTL":
  22348. this.td = {
  22349. v0a: this.is(),
  22350. w0a: this.is() || Infinity,
  22351. frames: []
  22352. };
  22353. break;
  22354. case "PLTE":
  22355. this.U1 = this.UI(d);
  22356. break;
  22357. case "fcTL":
  22358. g && this.td.frames.push(g);
  22359. this.hc += 4;
  22360. g = {
  22361. width: this.is(),
  22362. height: this.is(),
  22363. wja: this.is(),
  22364. xja: this.is()
  22365. };
  22366. c = this.Cga();
  22367. d = this.Cga() || 100;
  22368. g.wm = 1E3 * c / d;
  22369. g.IRa = this.data[this.hc++];
  22370. g.CQa = this.data[this.hc++];
  22371. g.data = [];
  22372. break;
  22373. case "IDAT":
  22374. case "fdAT":
  22375. "fdAT" === c && (this.hc += 4, d -= 4);
  22376. c = (g != s ? g.data: m) || this.$P;
  22377. for (h = 0; 0 <= d ? h < d: h > d; 0 <= d ? ++h: --h) c.push(this.data[this.hc++]);
  22378. break;
  22379. case "tRNS":
  22380. this.By = {};
  22381. switch (this.y_) {
  22382. case 3:
  22383. this.By.T0 = this.UI(d);
  22384. d = 255 - this.By.T0.length;
  22385. if (0 < d) for (c = 0; 0 <= d ? c < d: c > d; 0 <= d ? ++c: --c) this.By.T0.push(255);
  22386. break;
  22387. case 0:
  22388. this.By.FXa = this.UI(d)[0];
  22389. break;
  22390. case 2:
  22391. this.By.I2a = this.UI(d)
  22392. }
  22393. break;
  22394. case "tEXt":
  22395. h = this.UI(d);
  22396. d = h.indexOf(0);
  22397. c = String.fromCharCode.apply(String, h.slice(0, d));
  22398. this.text[c] = String.fromCharCode.apply(String, h.slice(d + 1));
  22399. break;
  22400. case "IEND":
  22401. g && this.td.frames.push(g);
  22402. a: {
  22403. switch (this.y_) {
  22404. case 0:
  22405. case 3:
  22406. case 4:
  22407. g = 1;
  22408. break a;
  22409. case 2:
  22410. case 6:
  22411. g = 3;
  22412. break a
  22413. }
  22414. g = m
  22415. }
  22416. this.F = g;
  22417. this.Nea = 4 === (f = this.y_) || 6 === f;
  22418. f = this.F + (this.Nea ? 1 : 0);
  22419. this.DFa = this.zB * f;
  22420. a: {
  22421. switch (this.F) {
  22422. case 1:
  22423. f = "DeviceGray";
  22424. break a;
  22425. case 3:
  22426. f = "DeviceRGB";
  22427. break a
  22428. }
  22429. f = m
  22430. }
  22431. this.aRa = f;
  22432. Uint8Array != Array && (this.$P = new Uint8Array(this.$P));
  22433. return;
  22434. default:
  22435. this.hc += d
  22436. }
  22437. this.hc += 4;
  22438. this.hc > this.data.length && e(Error("Incomplete or corrupt PNG file"))
  22439. }
  22440. },
  22441. UI: function(c) {
  22442. var d, f;
  22443. f = [];
  22444. for (d = 0; 0 <= c ? d < c: d > c; 0 <= c ? ++d: --d) f.push(this.data[this.hc++]);
  22445. return f
  22446. },
  22447. is: function() {
  22448. var c, d, f, g;
  22449. c = this.data[this.hc++] << 24;
  22450. d = this.data[this.hc++] << 16;
  22451. f = this.data[this.hc++] << 8;
  22452. g = this.data[this.hc++];
  22453. return c | d | f | g
  22454. },
  22455. Cga: function() {
  22456. var c, d;
  22457. c = this.data[this.hc++] << 8;
  22458. d = this.data[this.hc++];
  22459. return c | d
  22460. },
  22461. tya: function(c) {
  22462. var d, f, g, h, k, n, p, r, v, y, z, D, E, F, G;
  22463. c == s && (c = this.$P);
  22464. if (0 === c.length) return new Uint8Array(0);
  22465. c = (new Zlib.Inflate(c, {
  22466. index: 0,
  22467. tja: t
  22468. })).decompress();
  22469. r = this.DFa / 8;
  22470. D = r * this.width;
  22471. v = new Uint8Array(D * this.height);
  22472. n = c.length;
  22473. for (f = y = z = 0; y < n;) {
  22474. switch (c[y++]) {
  22475. case 0:
  22476. for (d = 0; d < D; d += 1) v[f++] = c[y++];
  22477. break;
  22478. case 1:
  22479. for (h = E = 0; E < D; h = E += 1) d = c[y++],
  22480. k = h < r ? 0 : v[f - r],
  22481. v[f++] = (d + k) % 256;
  22482. break;
  22483. case 2:
  22484. for (h = k = 0; k < D; h = k += 1) d = c[y++],
  22485. g = (h - h % r) / r,
  22486. E = z && v[(z - 1) * D + g * r + h % r],
  22487. v[f++] = (E + d) % 256;
  22488. break;
  22489. case 3:
  22490. for (h = G = 0; G < D; h = G += 1) d = c[y++],
  22491. g = (h - h % r) / r,
  22492. k = h < r ? 0 : v[f - r],
  22493. E = z && v[(z - 1) * D + g * r + h % r],
  22494. v[f++] = (d + Math.floor((k + E) / 2)) % 256;
  22495. break;
  22496. case 4:
  22497. for (h = G = 0; G < D; h = G += 1) d = c[y++],
  22498. g = (h - h % r) / r,
  22499. k = h < r ? 0 : v[f - r],
  22500. 0 === z ? E = F = 0 : (E = v[(z - 1) * D + g * r + h % r], F = g && v[(z - 1) * D + (g - 1) * r + h % r]),
  22501. p = k + E - F,
  22502. h = Math.abs(p - k),
  22503. g = Math.abs(p - E),
  22504. p = Math.abs(p - F),
  22505. k = h <= g && h <= p ? k: g <= p ? E: F,
  22506. v[f++] = (d + k) % 256;
  22507. break;
  22508. default:
  22509. e(Error("Invalid filter algorithm: " + c[y - 1]))
  22510. }
  22511. z++
  22512. }
  22513. return v
  22514. },
  22515. Vxa: function(c, d) {
  22516. var f, g, h, k, n, p, r, v;
  22517. g = this.F;
  22518. v = s;
  22519. f = this.Nea;
  22520. this.U1.length && (v = (h = this.Dra) != s ? h: this.Dra = this.sya(), g = 4, f = q);
  22521. h = c.data || c;
  22522. r = h.length;
  22523. n = v || d;
  22524. k = p = 0;
  22525. if (1 === g) for (; k < r;) g = v ? 4 * d[k / 4] : p,
  22526. p = n[g++],
  22527. h[k++] = p,
  22528. h[k++] = p,
  22529. h[k++] = p,
  22530. h[k++] = f ? n[g++] : 255,
  22531. p = g;
  22532. else for (; k < r;) g = v ? 4 * d[k / 4] : p,
  22533. h[k++] = n[g++],
  22534. h[k++] = n[g++],
  22535. h[k++] = n[g++],
  22536. h[k++] = f ? n[g++] : 255,
  22537. p = g
  22538. },
  22539. sya: function() {
  22540. var c, d, f, g, h, k, n, p, r;
  22541. f = this.U1;
  22542. k = this.By.T0 || [];
  22543. h = new Uint8Array((k.length || 0) + f.length);
  22544. d = n = c = g = 0;
  22545. for (p = f.length; n < p; d = n += 3) h[g++] = f[d],
  22546. h[g++] = f[d + 1],
  22547. h[g++] = f[d + 2],
  22548. h[g++] = (r = k[c++]) != s ? r: 255;
  22549. return h
  22550. },
  22551. DGa: function(c) {
  22552. var d;
  22553. c.width = this.width;
  22554. c.height = this.height;
  22555. c = c.getContext("2d");
  22556. d = c.createImageData(this.width, this.height);
  22557. this.Vxa(d, this.tya());
  22558. return c.putImageData(d, 0, 0)
  22559. }
  22560. });
  22561. C.mJa = {
  22562. saa: t,
  22563. Ww: s,
  22564. xW: [],
  22565. getUint8: function(c) {
  22566. return this.Ww[c]
  22567. },
  22568. getUint16: function(c) {
  22569. return this.saa ? this.Ww[c + 1] << 8 | this.Ww[c] : this.Ww[c] << 8 | this.Ww[c + 1]
  22570. },
  22571. getUint32: function(c) {
  22572. var d = this.Ww;
  22573. return this.saa ? d[c + 3] << 24 | d[c + 2] << 16 | d[c + 1] << 8 | d[c] : d[c] << 24 | d[c + 1] << 16 | d[c + 2] << 8 | d[c + 3]
  22574. },
  22575. Gxa: function() {
  22576. var c = this.getUint16(0);
  22577. 18761 === c ? this.A1 = q: 19789 === c ? this.A1 = t: (console.log(c), e(TypeError("Invalid byte order value.")));
  22578. return this.A1
  22579. },
  22580. CCa: function() {
  22581. 42 !== this.getUint16(2) && e(RangeError("You forgot your towel!"));
  22582. return q
  22583. },
  22584. yAa: function(c) {
  22585. var d = this.Kza;
  22586. return c in d ? d[c] : s
  22587. },
  22588. wAa: function(c) {
  22589. var d = this.Jza;
  22590. if (c in d) return d[c];
  22591. console.log("Unknown Field Tag:", c);
  22592. return "Tag" + c
  22593. },
  22594. xAa: function(c) {
  22595. return - 1 !== ["BYTE", "ASCII", "SBYTE", "UNDEFINED"].indexOf(c) ? 1 : -1 !== ["SHORT", "SSHORT"].indexOf(c) ? 2 : -1 !== ["LONG", "SLONG", "FLOAT"].indexOf(c) ? 4 : -1 !== ["RATIONAL", "SRATIONAL", "DOUBLE"].indexOf(c) ? 8 : s
  22596. },
  22597. zAa: function(c, d, f, g) {
  22598. c = [];
  22599. var h = this.xAa(d);
  22600. if (4 >= h * f) this.A1 === t ? c.push(g >>> 8 * (4 - h)) : c.push(g);
  22601. else for (var k = 0; k < f; k++) {
  22602. var n = h * k;
  22603. 8 <= h ? -1 !== ["RATIONAL", "SRATIONAL"].indexOf(d) ? (c.push(this.getUint32(g + n)), c.push(this.getUint32(g + n + 4))) : C.log("Can't handle this field type or size") : c.push(this.Lda(h, g + n))
  22604. }
  22605. "ASCII" === d && c.forEach(function(c, d, f) {
  22606. f[d] = String.fromCharCode(c)
  22607. });
  22608. return c
  22609. },
  22610. Lda: function(c, d) {
  22611. if (0 >= c) C.log("No bytes requested");
  22612. else {
  22613. if (1 >= c) return this.getUint8(d);
  22614. if (2 >= c) return this.getUint16(d);
  22615. if (3 >= c) return this.getUint32(d) >>> 8;
  22616. if (4 >= c) return this.getUint32(d);
  22617. C.log("Too many bytes requested")
  22618. }
  22619. },
  22620. eAa: function(c, d, f) {
  22621. f = f || 0;
  22622. d += Math.floor(f / 8);
  22623. var g = f + c;
  22624. c = 32 - c;
  22625. var h, k;
  22626. 0 >= g ? console.log("No bits requested") : 8 >= g ? (h = 24 + f, k = this.getUint8(d)) : 16 >= g ? (h = 16 + f, k = this.getUint16(d)) : 32 >= g ? (h = f, k = this.getUint32(d)) : console.log("Too many bits requested");
  22627. return {
  22628. bits: k << h >>> c,
  22629. byteOffset: d + Math.floor(g / 8),
  22630. bitOffset: g % 8
  22631. }
  22632. },
  22633. rga: function(c) {
  22634. var d = this.getUint16(c),
  22635. f = [];
  22636. c += 2;
  22637. for (var g = 0; g < d; c += 12, g++) {
  22638. var h = this.getUint16(c),
  22639. k = this.getUint16(c + 2),
  22640. n = this.getUint32(c + 4),
  22641. p = this.getUint32(c + 8),
  22642. h = this.wAa(h),
  22643. k = this.yAa(k),
  22644. n = this.zAa(h, k, n, p);
  22645. f[h] = {
  22646. type: k,
  22647. so: n
  22648. }
  22649. }
  22650. this.xW.push(f);
  22651. d = this.getUint32(c);
  22652. 0 !== d && this.rga(d)
  22653. },
  22654. sx: function(c, d) {
  22655. var f = Math.pow(2, 8 - d);
  22656. return Math.floor(c * f + (f - 1))
  22657. },
  22658. AFa: function(c, d) {
  22659. d = d || C.bd("canvas");
  22660. this.Ww = c;
  22661. this.canvas = d;
  22662. this.Gxa();
  22663. if (this.CCa()) {
  22664. var f = this.getUint32(4);
  22665. this.xW.length = 0;
  22666. this.rga(f);
  22667. var g = this.xW[0],
  22668. f = g.ImageWidth.so[0],
  22669. h = g.ImageLength.so[0];
  22670. this.canvas.width = f;
  22671. this.canvas.height = h;
  22672. var k = [],
  22673. n = g.Compression ? g.Compression.so[0] : 1,
  22674. p = g.SamplesPerPixel.so[0],
  22675. r = [],
  22676. v = 0,
  22677. y = t;
  22678. g.BitsPerSample.so.forEach(function(c, d) {
  22679. r[d] = {
  22680. AB: c,
  22681. TP: t,
  22682. tH: m
  22683. };
  22684. 0 === c % 8 && (r[d].TP = q, r[d].tH = c / 8);
  22685. v += c
  22686. },
  22687. this);
  22688. if (0 === v % 8) var y = q,
  22689. z = v / 8;
  22690. var D = g.StripOffsets.so,
  22691. E = D.length;
  22692. if (g.StripByteCounts) var F = g.StripByteCounts.so;
  22693. else C.log("Missing StripByteCounts!"),
  22694. 1 === E ? F = [Math.ceil(f * h * v / 8)] : e(Error("Cannot recover from missing StripByteCounts"));
  22695. for (var G = 0; G < E; G++) {
  22696. var K = D[G];
  22697. k[G] = [];
  22698. for (var O = F[G], U = 0, X = 0, N = 1, Q = q, S = [], M = 0, R = 0, $ = 0; U < O; U += N) switch (n) {
  22699. case 1:
  22700. N = 0;
  22701. for (S = []; N < p; N++) r[N].TP ? S.push(this.Lda(r[N].tH, K + U + r[N].tH * N)) : (X = this.eAa(r[N].AB, K + U, X), S.push(X.zB), U = X.byteOffset - K, X = X.AQa, e(RangeError("Cannot handle sub-byte bits per sample")));
  22702. k[G].push(S);
  22703. y ? N = z: (N = 0, e(RangeError("Cannot handle sub-byte bits per pixel")));
  22704. break;
  22705. case 32773:
  22706. if (Q) {
  22707. var Q = t,
  22708. sa = 1,
  22709. aa = 1,
  22710. N = this.getInt8(K + U);
  22711. 0 <= N && 127 >= N ? sa = N + 1 : -127 <= N && -1 >= N ? aa = -N + 1 : Q = q
  22712. } else {
  22713. for (var ta = this.getUint8(K + U), N = 0; N < aa; N++) r[R].TP ? ($ = $ << 8 * M | ta, M++, M === r[R].tH && (S.push($), $ = M = 0, R++)) : e(RangeError("Cannot handle sub-byte bits per sample")),
  22714. R === p && (k[G].push(S), S = [], R = 0);
  22715. sa--;
  22716. 0 === sa && (Q = q)
  22717. }
  22718. N = 1
  22719. }
  22720. }
  22721. if (d.getContext) {
  22722. z = this.canvas.getContext("2d");
  22723. z.fillStyle = "rgba(255, 255, 255, 0)";
  22724. G = g.RowsPerStrip ? g.RowsPerStrip.so[0] : h;
  22725. F = k.length;
  22726. h %= G;
  22727. h = 0 === h ? G: h;
  22728. sa = G;
  22729. y = 0;
  22730. aa = g.PhotometricInterpretation.so[0];
  22731. n = [];
  22732. p = 0;
  22733. g.ExtraSamples && (n = g.ExtraSamples.so, p = n.length);
  22734. if (g.ColorMap) var ma = g.ColorMap.so,
  22735. ba = Math.pow(2, r[0].AB);
  22736. for (G = 0; G < F; G++) {
  22737. G + 1 === F && (sa = h);
  22738. g = k[G].length;
  22739. y *= G;
  22740. for (E = D = 0; D < sa, E < g; D++) for (K = 0; K < f; K++, E++) {
  22741. S = k[G][E];
  22742. M = U = O = 0;
  22743. Q = 1;
  22744. if (0 < p) for (R = 0; R < p; R++) if (1 === n[R] || 2 === n[R]) {
  22745. Q = S[3 + R] / 256;
  22746. break
  22747. }
  22748. switch (aa) {
  22749. case 0:
  22750. if (r[0].TP) var xa = Math.pow(16, 2 * r[0].tH);
  22751. S.forEach(function(c, d, f) {
  22752. f[d] = xa - c
  22753. });
  22754. case 1:
  22755. O = U = M = this.sx(S[0], r[0].AB);
  22756. break;
  22757. case 2:
  22758. O = this.sx(S[0], r[0].AB);
  22759. U = this.sx(S[1], r[1].AB);
  22760. M = this.sx(S[2], r[2].AB);
  22761. break;
  22762. case 3:
  22763. ma === m && e(Error("Palette image missing color map"));
  22764. S = S[0];
  22765. O = this.sx(ma[S], 16);
  22766. U = this.sx(ma[ba + S], 16);
  22767. M = this.sx(ma[2 * ba + S], 16);
  22768. break;
  22769. default:
  22770. e(RangeError("Unknown Photometric Interpretation:", aa))
  22771. }
  22772. z.fillStyle = "rgba(" + O + ", " + U + ", " + M + ", " + Q + ")";
  22773. z.fillRect(K, y + D, 1, 1)
  22774. }
  22775. y = sa
  22776. }
  22777. }
  22778. return this.canvas
  22779. }
  22780. },
  22781. Jza: {
  22782. 315 : "Artist",
  22783. 258 : "BitsPerSample",
  22784. 265 : "CellLength",
  22785. 264 : "CellWidth",
  22786. 320 : "ColorMap",
  22787. 259 : "Compression",
  22788. 33432 : "Copyright",
  22789. 306 : "DateTime",
  22790. 338 : "ExtraSamples",
  22791. 266 : "FillOrder",
  22792. 289 : "FreeByteCounts",
  22793. 288 : "FreeOffsets",
  22794. 291 : "GrayResponseCurve",
  22795. 290 : "GrayResponseUnit",
  22796. 316 : "HostComputer",
  22797. 270 : "ImageDescription",
  22798. 257 : "ImageLength",
  22799. 256 : "ImageWidth",
  22800. 271 : "Make",
  22801. 281 : "MaxSampleValue",
  22802. 280 : "MinSampleValue",
  22803. 272 : "Model",
  22804. 254 : "NewSubfileType",
  22805. 274 : "Orientation",
  22806. 262 : "PhotometricInterpretation",
  22807. 284 : "PlanarConfiguration",
  22808. 296 : "ResolutionUnit",
  22809. 278 : "RowsPerStrip",
  22810. 277 : "SamplesPerPixel",
  22811. 305 : "Software",
  22812. 279 : "StripByteCounts",
  22813. 273 : "StripOffsets",
  22814. 255 : "SubfileType",
  22815. 263 : "Threshholding",
  22816. 282 : "XResolution",
  22817. 283 : "YResolution",
  22818. 326 : "BadFaxLines",
  22819. 327 : "CleanFaxData",
  22820. 343 : "ClipPath",
  22821. 328 : "ConsecutiveBadFaxLines",
  22822. 433 : "Decode",
  22823. 434 : "DefaultImageColor",
  22824. 269 : "DocumentName",
  22825. 336 : "DotRange",
  22826. 321 : "HalftoneHints",
  22827. 346 : "Indexed",
  22828. 347 : "JPEGTables",
  22829. 285 : "PageName",
  22830. 297 : "PageNumber",
  22831. 317 : "Predictor",
  22832. 319 : "PrimaryChromaticities",
  22833. 532 : "ReferenceBlackWhite",
  22834. 339 : "SampleFormat",
  22835. 559 : "StripRowCounts",
  22836. 330 : "SubIFDs",
  22837. 292 : "T4Options",
  22838. 293 : "T6Options",
  22839. 325 : "TileByteCounts",
  22840. 323 : "TileLength",
  22841. 324 : "TileOffsets",
  22842. 322 : "TileWidth",
  22843. 301 : "TransferFunction",
  22844. 318 : "WhitePoint",
  22845. 344 : "XClipPathUnits",
  22846. 286 : "XPosition",
  22847. 529 : "YCbCrCoefficients",
  22848. 531 : "YCbCrPositioning",
  22849. 530 : "YCbCrSubSampling",
  22850. 345 : "YClipPathUnits",
  22851. 287 : "YPosition",
  22852. 37378 : "ApertureValue",
  22853. 40961 : "ColorSpace",
  22854. 36868 : "DateTimeDigitized",
  22855. 36867 : "DateTimeOriginal",
  22856. 34665 : "Exif IFD",
  22857. 36864 : "ExifVersion",
  22858. 33434 : "ExposureTime",
  22859. 41728 : "FileSource",
  22860. 37385 : "Flash",
  22861. 40960 : "FlashpixVersion",
  22862. 33437 : "FNumber",
  22863. 42016 : "ImageUniqueID",
  22864. 37384 : "LightSource",
  22865. 37500 : "MakerNote",
  22866. 37377 : "ShutterSpeedValue",
  22867. 37510 : "UserComment",
  22868. 33723 : "IPTC",
  22869. 34675 : "ICC Profile",
  22870. 700 : "XMP",
  22871. 42112 : "GDAL_METADATA",
  22872. 42113 : "GDAL_NODATA",
  22873. 34377 : "Photoshop"
  22874. },
  22875. Kza: {
  22876. 1 : "BYTE",
  22877. 2 : "ASCII",
  22878. 3 : "SHORT",
  22879. 4 : "LONG",
  22880. 5 : "RATIONAL",
  22881. 6 : "SBYTE",
  22882. 7 : "UNDEFINED",
  22883. 8 : "SSHORT",
  22884. 9 : "SLONG",
  22885. 10 : "SRATIONAL",
  22886. 11 : "FLOAT",
  22887. 12 : "DOUBLE"
  22888. }
  22889. };
  22890. C.Hl = function(c, d, f, g, h, k, n, p, r, v, y, z) {
  22891. this.hc = c ? c: C.d(0, 0);
  22892. this.startPos = d ? d: C.d(0, 0);
  22893. this.color = f ? f: {
  22894. r: 0,
  22895. g: 0,
  22896. b: 0,
  22897. a: 255
  22898. };
  22899. this.DH = g ? g: {
  22900. r: 0,
  22901. g: 0,
  22902. b: 0,
  22903. a: 255
  22904. };
  22905. this.size = h || 0;
  22906. this.L_ = k || 0;
  22907. this.rotation = n || 0;
  22908. this.kda = p || 0;
  22909. this.bv = r || 0;
  22910. this.atlasIndex = v || 0;
  22911. this.Wd = y ? y: new C.Hl.AT;
  22912. this.oh = z ? z: new C.Hl.BT;
  22913. this.ffa = t;
  22914. this.FH = C.d(0, 0)
  22915. };
  22916. C.Hl.AT = function(c, d, f) {
  22917. this.dir = c ? c: C.d(0, 0);
  22918. this.radialAccel = d || 0;
  22919. this.tangentialAccel = f || 0
  22920. };
  22921. C.Hl.BT = function(c, d, f, g) {
  22922. this.tm = c || 0;
  22923. this.ida = d || 0;
  22924. this.TI = f || 0;
  22925. this.jda = g || 0
  22926. };
  22927. C.Hl.YK = [C.d(), C.d(), C.d(), C.d()];
  22928. C.B = C.A.extend({
  22929. CN: "",
  22930. Bc: 0,
  22931. N9: t,
  22932. Wd: s,
  22933. oh: s,
  22934. qa: "ParticleSystem",
  22935. WX: C.d(0, 0),
  22936. Mt: s,
  22937. Xv: 0,
  22938. Wj: 0,
  22939. wa: s,
  22940. atlasIndex: 0,
  22941. cx: t,
  22942. iL: 0,
  22943. pP: s,
  22944. WR: s,
  22945. pA: t,
  22946. Og: 0,
  22947. duration: 0,
  22948. bB: s,
  22949. Ot: s,
  22950. nj: 0,
  22951. qC: 0,
  22952. tm: 0,
  22953. wB: 0,
  22954. ZC: 0,
  22955. $C: 0,
  22956. Bx: 0,
  22957. MB: 0,
  22958. Kg: s,
  22959. Zt: s,
  22960. Ef: s,
  22961. nt: s,
  22962. aD: 0,
  22963. bD: 0,
  22964. NB: 0,
  22965. OB: 0,
  22966. Ax: 0,
  22967. wc: 0,
  22968. da: s,
  22969. C: s,
  22970. Fb: t,
  22971. qh: s,
  22972. rH: t,
  22973. Gb: 0,
  22974. hf: s,
  22975. Qb: s,
  22976. Me: s,
  22977. rG: s,
  22978. Aa: s,
  22979. eg: s,
  22980. ctor: function(c) {
  22981. C.A.prototype.ctor.call(this);
  22982. this.Gb = C.B.rc;
  22983. this.Wd = new C.B.AT;
  22984. this.oh = new C.B.BT;
  22985. this.C = {
  22986. src: C.Ic,
  22987. ga: C.Hc
  22988. };
  22989. this.Mt = [];
  22990. this.bB = C.d(0, 0);
  22991. this.Ot = C.d(0, 0);
  22992. this.Kg = C.color(255, 255, 255, 255);
  22993. this.Zt = C.color(255, 255, 255, 255);
  22994. this.Ef = C.color(255, 255, 255, 255);
  22995. this.nt = C.color(255, 255, 255, 255);
  22996. this.CN = "";
  22997. this.Bc = 0;
  22998. this.N9 = t;
  22999. this.WX = C.d(0, 0);
  23000. this.Wj = this.Xv = 0;
  23001. this.wa = s;
  23002. this.atlasIndex = 0;
  23003. this.cx = t;
  23004. this.iL = 0;
  23005. this.pP = C.B.uoa;
  23006. this.WR = C.B.Uja;
  23007. this.pA = t;
  23008. this.wc = this.Ax = this.OB = this.NB = this.bD = this.aD = this.MB = this.Bx = this.$C = this.ZC = this.wB = this.tm = this.qC = this.nj = this.duration = this.Og = 0;
  23009. this.da = s;
  23010. this.Fb = t;
  23011. this.qh = C.B.GE;
  23012. this.rH = t;
  23013. this.Me = [0, 0];
  23014. this.hf = [];
  23015. this.Qb = [];
  23016. this.rG = C.rect(0, 0, 0, 0);
  23017. this.Aa = q;
  23018. C.L === C.la && (this.eg = s); ! c || "number" === typeof c ? (c = c || 100, this.sHa(C.B.P7), this.Hb(c)) : c && this.Ce(c)
  23019. },
  23020. U0: function() {
  23021. for (var c = this.Qb,
  23022. d = 0,
  23023. f = this.wc; d < f; ++d) {
  23024. var g = 6 * d,
  23025. h = 4 * d;
  23026. c[g + 0] = h + 0;
  23027. c[g + 1] = h + 1;
  23028. c[g + 2] = h + 2;
  23029. c[g + 5] = h + 1;
  23030. c[g + 4] = h + 2;
  23031. c[g + 3] = h + 3
  23032. }
  23033. },
  23034. Tea: function(c) {
  23035. var d = C.Ec(),
  23036. f = C.rect(c.x * d, c.y * d, c.width * d, c.height * d),
  23037. g = c.width,
  23038. h = c.height;
  23039. this.da && (g = this.da.pixelsWidth, h = this.da.pixelsHeight);
  23040. if (C.L !== C.cb) {
  23041. C.Qy ? (c = (2 * f.x + 1) / (2 * g), d = (2 * f.y + 1) / (2 * h), g = c + (2 * f.width - 2) / (2 * g), f = d + (2 * f.height - 2) / (2 * h)) : (c = f.x / g, d = f.y / h, g = c + f.width / g, f = d + f.height / h);
  23042. var h = f,
  23043. f = d,
  23044. d = h,
  23045. k = 0,
  23046. n = 0;
  23047. this.wa ? (h = this.wa.textureAtlas.quads, k = this.atlasIndex, n = this.atlasIndex + this.wc) : (h = this.hf, k = 0, n = this.wc);
  23048. for (; k < n; k++) {
  23049. h[k] || (h[k] = C.I8());
  23050. var p = h[k];
  23051. p.T.v.xa = c;
  23052. p.T.v.ea = d;
  23053. p.Y.v.xa = g;
  23054. p.Y.v.ea = d;
  23055. p.X.v.xa = c;
  23056. p.X.v.ea = f;
  23057. p.V.v.xa = g;
  23058. p.V.v.ea = f
  23059. }
  23060. }
  23061. },
  23062. XB: A("wa"),
  23063. os: function(c) {
  23064. if (this.wa != c) {
  23065. var d = this.wa;
  23066. if (this.wa = c) for (var f = this.Mt,
  23067. g = 0; g < this.wc; g++) f[g].atlasIndex = g;
  23068. c ? d || (this.wa.textureAtlas.zra(this.hf, this.atlasIndex), C.t.deleteBuffer(this.Me[1])) : (this.d9(), this.U0(), this.Va(d.ob()), this.Pw())
  23069. }
  23070. },
  23071. WB: A("atlasIndex"),
  23072. C2: x("atlasIndex"),
  23073. oUa: A("pP"),
  23074. sHa: x("pP"),
  23075. BWa: A("WR"),
  23076. e5a: x("WR"),
  23077. zi: A("pA"),
  23078. VVa: A("Og"),
  23079. N4a: x("Og"),
  23080. Rr: A("duration"),
  23081. Wh: x("duration"),
  23082. RBa: function() {
  23083. return {
  23084. x: this.bB.x,
  23085. y: this.bB.y
  23086. }
  23087. },
  23088. oIa: x("bB"),
  23089. x0: function() {
  23090. return {
  23091. x: this.Ot.x,
  23092. y: this.Ot.y
  23093. }
  23094. },
  23095. vk: x("Ot"),
  23096. gVa: A("nj"),
  23097. tk: x("nj"),
  23098. hVa: A("qC"),
  23099. uk: x("qC"),
  23100. ISa: A("tm"),
  23101. ok: x("tm"),
  23102. JSa: A("wB"),
  23103. pk: x("wB"),
  23104. MH: function() {
  23105. this.Gb !== C.B.rc && C.log("cc.ParticleBatchNode.getGravity() : Particle Mode should be Gravity");
  23106. var c = this.Wd.gravity;
  23107. return C.d(c.x, c.y)
  23108. },
  23109. oc: function(c) {
  23110. this.Gb !== C.B.rc && C.log("cc.ParticleBatchNode.setGravity() : Particle Mode should be Gravity");
  23111. this.Wd.gravity = c
  23112. },
  23113. MP: function() {
  23114. this.Gb !== C.B.rc && C.log("cc.ParticleBatchNode.getSpeed() : Particle Mode should be Gravity");
  23115. return this.Wd.speed
  23116. },
  23117. Xh: function(c) {
  23118. this.Gb !== C.B.rc && C.log("cc.ParticleBatchNode.setSpeed() : Particle Mode should be Gravity");
  23119. this.Wd.speed = c
  23120. },
  23121. tea: function() {
  23122. this.Gb !== C.B.rc && C.log("cc.ParticleBatchNode.getSpeedVar() : Particle Mode should be Gravity");
  23123. return this.Wd.speedVar
  23124. },
  23125. yj: function(c) {
  23126. this.Gb !== C.B.rc && C.log("cc.ParticleBatchNode.setSpeedVar() : Particle Mode should be Gravity");
  23127. this.Wd.speedVar = c
  23128. },
  23129. xea: function() {
  23130. this.Gb !== C.B.rc && C.log("cc.ParticleBatchNode.getTangentialAccel() : Particle Mode should be Gravity");
  23131. return this.Wd.tangentialAccel
  23132. },
  23133. no: function(c) {
  23134. this.Gb !== C.B.rc && C.log("cc.ParticleBatchNode.setTangentialAccel() : Particle Mode should be Gravity");
  23135. this.Wd.tangentialAccel = c
  23136. },
  23137. yea: function() {
  23138. this.Gb !== C.B.rc && C.log("cc.ParticleBatchNode.getTangentialAccelVar() : Particle Mode should be Gravity");
  23139. return this.Wd.tangentialAccelVar
  23140. },
  23141. oo: function(c) {
  23142. this.Gb !== C.B.rc && C.log("cc.ParticleBatchNode.setTangentialAccelVar() : Particle Mode should be Gravity");
  23143. this.Wd.tangentialAccelVar = c
  23144. },
  23145. mea: function() {
  23146. this.Gb !== C.B.rc && C.log("cc.ParticleBatchNode.getRadialAccel() : Particle Mode should be Gravity");
  23147. return this.Wd.radialAccel
  23148. },
  23149. wj: function(c) {
  23150. this.Gb !== C.B.rc && C.log("cc.ParticleBatchNode.setRadialAccel() : Particle Mode should be Gravity");
  23151. this.Wd.radialAccel = c
  23152. },
  23153. nea: function() {
  23154. this.Gb !== C.B.rc && C.log("cc.ParticleBatchNode.getRadialAccelVar() : Particle Mode should be Gravity");
  23155. return this.Wd.radialAccelVar
  23156. },
  23157. xj: function(c) {
  23158. this.Gb !== C.B.rc && C.log("cc.ParticleBatchNode.setRadialAccelVar() : Particle Mode should be Gravity");
  23159. this.Wd.radialAccelVar = c
  23160. },
  23161. FBa: function() {
  23162. this.Gb !== C.B.rc && C.log("cc.ParticleBatchNode.getRotationIsDir() : Particle Mode should be Gravity");
  23163. return this.Wd.rotationIsDir
  23164. },
  23165. iIa: function(c) {
  23166. this.Gb !== C.B.rc && C.log("cc.ParticleBatchNode.setRotationIsDir() : Particle Mode should be Gravity");
  23167. this.Wd.rotationIsDir = c
  23168. },
  23169. vea: function() {
  23170. this.Gb !== C.B.Cj && C.log("cc.ParticleBatchNode.getStartRadius() : Particle Mode should be Radius");
  23171. return this.oh.startRadius
  23172. },
  23173. n3: function(c) {
  23174. this.Gb !== C.B.Cj && C.log("cc.ParticleBatchNode.setStartRadius() : Particle Mode should be Radius");
  23175. this.oh.startRadius = c
  23176. },
  23177. wea: function() {
  23178. this.Gb !== C.B.Cj && C.log("cc.ParticleBatchNode.getStartRadiusVar() : Particle Mode should be Radius");
  23179. return this.oh.startRadiusVar
  23180. },
  23181. o3: function(c) {
  23182. this.Gb !== C.B.Cj && C.log("cc.ParticleBatchNode.setStartRadiusVar() : Particle Mode should be Radius");
  23183. this.oh.startRadiusVar = c
  23184. },
  23185. Wda: function() {
  23186. this.Gb !== C.B.Cj && C.log("cc.ParticleBatchNode.getEndRadius() : Particle Mode should be Radius");
  23187. return this.oh.endRadius
  23188. },
  23189. P2: function(c) {
  23190. this.Gb !== C.B.Cj && C.log("cc.ParticleBatchNode.setEndRadius() : Particle Mode should be Radius");
  23191. this.oh.endRadius = c
  23192. },
  23193. Xda: function() {
  23194. this.Gb !== C.B.Cj && C.log("cc.ParticleBatchNode.getEndRadiusVar() : Particle Mode should be Radius");
  23195. return this.oh.endRadiusVar
  23196. },
  23197. Q2: function(c) {
  23198. this.Gb !== C.B.Cj && C.log("cc.ParticleBatchNode.setEndRadiusVar() : Particle Mode should be Radius");
  23199. this.oh.endRadiusVar = c
  23200. },
  23201. oea: function() {
  23202. this.Gb !== C.B.Cj && C.log("cc.ParticleBatchNode.getRotatePerSecond() : Particle Mode should be Radius");
  23203. return this.oh.hR
  23204. },
  23205. g3: function(c) {
  23206. this.Gb !== C.B.Cj && C.log("cc.ParticleBatchNode.setRotatePerSecond() : Particle Mode should be Radius");
  23207. this.oh.hR = c
  23208. },
  23209. pea: function() {
  23210. this.Gb !== C.B.Cj && C.log("cc.ParticleBatchNode.getRotatePerSecondVar() : Particle Mode should be Radius");
  23211. return this.oh.iR
  23212. },
  23213. h3: function(c) {
  23214. this.Gb !== C.B.Cj && C.log("cc.ParticleBatchNode.setRotatePerSecondVar() : Particle Mode should be Radius");
  23215. this.oh.iR = c
  23216. },
  23217. Za: function(c, d) {
  23218. this.cx = q;
  23219. C.A.prototype.Za.call(this, c, d)
  23220. },
  23221. th: function(c) {
  23222. this.cx = q;
  23223. C.A.prototype.th.call(this, c)
  23224. },
  23225. gb: function(c) {
  23226. this.cx = q;
  23227. C.A.prototype.gb.call(this, c)
  23228. },
  23229. pb: function(c) {
  23230. this.cx = q;
  23231. C.A.prototype.pb.call(this, c)
  23232. },
  23233. GWa: A("ZC"),
  23234. wk: x("ZC"),
  23235. HWa: A("$C"),
  23236. xk: x("$C"),
  23237. uUa: A("Bx"),
  23238. sk: x("Bx"),
  23239. vUa: A("MB"),
  23240. R2: x("MB"),
  23241. NP: function() {
  23242. return C.color(this.Kg.r, this.Kg.g, this.Kg.b, this.Kg.a)
  23243. },
  23244. tg: function(c) {
  23245. this.Kg = C.color(c)
  23246. },
  23247. uea: function() {
  23248. return C.color(this.Zt.r, this.Zt.g, this.Zt.b, this.Zt.a)
  23249. },
  23250. zj: function(c) {
  23251. this.Zt = C.color(c)
  23252. },
  23253. EP: function() {
  23254. return C.color(this.Ef.r, this.Ef.g, this.Ef.b, this.Ef.a)
  23255. },
  23256. sg: function(c) {
  23257. this.Ef = C.color(c)
  23258. },
  23259. Vda: function() {
  23260. return C.color(this.nt.r, this.nt.g, this.nt.b, this.nt.a)
  23261. },
  23262. uj: function(c) {
  23263. this.nt = C.color(c)
  23264. },
  23265. IWa: A("aD"),
  23266. uia: x("aD"),
  23267. JWa: A("bD"),
  23268. via: x("bD"),
  23269. wUa: A("NB"),
  23270. Bha: x("NB"),
  23271. xUa: A("OB"),
  23272. Cha: x("OB"),
  23273. sUa: A("Ax"),
  23274. qk: x("Ax"),
  23275. cCa: A("wc"),
  23276. yia: function(c) {
  23277. if (C.L === C.cb) this.wc = 200 > c ? c: 200;
  23278. else {
  23279. if (c > this.iL) {
  23280. var d = C.Uc.BYTES_PER_ELEMENT;
  23281. this.Qb = new Uint16Array(6 * c);
  23282. var f = new ArrayBuffer(c * d),
  23283. g = this.Mt;
  23284. g.length = 0;
  23285. for (var h = this.hf,
  23286. k = h.length = 0; k < c; k++) g[k] = new C.Hl,
  23287. h[k] = new C.Uc(s, s, s, s, f, k * d);
  23288. this.wc = this.iL = c;
  23289. if (this.wa) for (d = 0; d < c; d++) g[d].atlasIndex = d;
  23290. this.eg = f;
  23291. this.U0();
  23292. this.Pw();
  23293. this.da && this.Tea(C.rect(0, 0, this.da.width, this.da.height))
  23294. } else this.wc = c;
  23295. this.Zga()
  23296. }
  23297. },
  23298. ob: A("da"),
  23299. Va: function(c) {
  23300. c.de ? this.q3(c, C.rect(0, 0, c.width, c.height)) : (this.Aa = t, c.ye(function(c) {
  23301. this.Aa = q;
  23302. this.q3(c, C.rect(0, 0, c.width, c.height))
  23303. },
  23304. this))
  23305. },
  23306. ek: A("C"),
  23307. Yd: function(c, d) {
  23308. if (d === m) this.C != c && (this.C = c, this.hl());
  23309. else if (this.C.src != c || this.C.ga != d) this.C = {
  23310. src: c,
  23311. ga: d
  23312. },
  23313. this.hl()
  23314. },
  23315. qg: A("Fb"),
  23316. $d: x("Fb"),
  23317. lDa: function() {
  23318. return this.C.src == C.SRC_ALPHA && this.C.ga == C.ONE || this.C.src == C.ONE && this.C.ga == C.ONE
  23319. },
  23320. Nm: function(c) {
  23321. var d = this.C;
  23322. c ? (d.src = C.SRC_ALPHA, d.ga = C.ONE) : C.L === C.la ? this.da && !this.da.Hp() ? (d.src = C.SRC_ALPHA, d.ga = C.ONE_MINUS_SRC_ALPHA) : (d.src = C.Ic, d.ga = C.Hc) : (d.src = C.Ic, d.ga = C.Hc)
  23323. },
  23324. xBa: A("qh"),
  23325. a3: x("qh"),
  23326. fYa: A("rH"),
  23327. s3a: x("rH"),
  23328. tUa: A("Gb"),
  23329. rk: x("Gb"),
  23330. j: function() {
  23331. return this.Hb(150)
  23332. },
  23333. Ce: function(c) {
  23334. this.CN = c;
  23335. c = C.M.xd(c);
  23336. return ! c ? (C.log("cc.ParticleSystem.initWithFile(): Particles: file not found"), t) : this.Lp(c, "")
  23337. },
  23338. fAa: function() {
  23339. return C.rect(0, 0, C.Pb.width, C.Pb.height)
  23340. },
  23341. Lp: function(c) {
  23342. var d = t,
  23343. f = s,
  23344. f = this.jwa,
  23345. g = parseInt(f("maxParticles", c));
  23346. if (this.Hb(g)) {
  23347. this.tm = parseFloat(f("angle", c));
  23348. this.wB = parseFloat(f("angleVariance", c));
  23349. this.duration = parseFloat(f("duration", c));
  23350. this.C.src = parseInt(f("blendFuncSource", c));
  23351. this.C.ga = parseInt(f("blendFuncDestination", c));
  23352. d = this.Kg;
  23353. d.r = 255 * parseFloat(f("startColorRed", c));
  23354. d.g = 255 * parseFloat(f("startColorGreen", c));
  23355. d.b = 255 * parseFloat(f("startColorBlue", c));
  23356. d.a = 255 * parseFloat(f("startColorAlpha", c));
  23357. d = this.Zt;
  23358. d.r = 255 * parseFloat(f("startColorVarianceRed", c));
  23359. d.g = 255 * parseFloat(f("startColorVarianceGreen", c));
  23360. d.b = 255 * parseFloat(f("startColorVarianceBlue", c));
  23361. d.a = 255 * parseFloat(f("startColorVarianceAlpha", c));
  23362. d = this.Ef;
  23363. d.r = 255 * parseFloat(f("finishColorRed", c));
  23364. d.g = 255 * parseFloat(f("finishColorGreen", c));
  23365. d.b = 255 * parseFloat(f("finishColorBlue", c));
  23366. d.a = 255 * parseFloat(f("finishColorAlpha", c));
  23367. d = this.nt;
  23368. d.r = 255 * parseFloat(f("finishColorVarianceRed", c));
  23369. d.g = 255 * parseFloat(f("finishColorVarianceGreen", c));
  23370. d.b = 255 * parseFloat(f("finishColorVarianceBlue", c));
  23371. d.a = 255 * parseFloat(f("finishColorVarianceAlpha", c));
  23372. this.ZC = parseFloat(f("startParticleSize", c));
  23373. this.$C = parseFloat(f("startParticleSizeVariance", c));
  23374. this.Bx = parseFloat(f("finishParticleSize", c));
  23375. this.MB = parseFloat(f("finishParticleSizeVariance", c));
  23376. this.p(parseFloat(f("sourcePositionx", c)), parseFloat(f("sourcePositiony", c)));
  23377. this.Ot.x = parseFloat(f("sourcePositionVariancex", c));
  23378. this.Ot.y = parseFloat(f("sourcePositionVariancey", c));
  23379. this.aD = parseFloat(f("rotationStart", c));
  23380. this.bD = parseFloat(f("rotationStartVariance", c));
  23381. this.NB = parseFloat(f("rotationEnd", c));
  23382. this.OB = parseFloat(f("rotationEndVariance", c));
  23383. this.Gb = parseInt(f("emitterType", c));
  23384. if (this.Gb == C.B.rc) d = this.Wd,
  23385. d.gravity.x = parseFloat(f("gravityx", c)),
  23386. d.gravity.y = parseFloat(f("gravityy", c)),
  23387. d.speed = parseFloat(f("speed", c)),
  23388. d.speedVar = parseFloat(f("speedVariance", c)),
  23389. g = f("radialAcceleration", c),
  23390. d.radialAccel = g ? parseFloat(g) : 0,
  23391. g = f("radialAccelVariance", c),
  23392. d.radialAccelVar = g ? parseFloat(g) : 0,
  23393. g = f("tangentialAcceleration", c),
  23394. d.tangentialAccel = g ? parseFloat(g) : 0,
  23395. g = f("tangentialAccelVariance", c),
  23396. d.tangentialAccelVar = g ? parseFloat(g) : 0,
  23397. g = f("rotationIsDir", c).toLowerCase(),
  23398. d.rotationIsDir = g != s && ("true" === g || "1" === g);
  23399. else if (this.Gb == C.B.Cj) d = this.oh,
  23400. d.startRadius = parseFloat(f("maxRadius", c)),
  23401. d.startRadiusVar = parseFloat(f("maxRadiusVariance", c)),
  23402. d.endRadius = parseFloat(f("minRadius", c)),
  23403. d.endRadiusVar = 0,
  23404. d.hR = parseFloat(f("rotatePerSecond", c)),
  23405. d.iR = parseFloat(f("rotatePerSecondVariance", c));
  23406. else return C.log("cc.ParticleSystem.initWithDictionary(): Invalid emitterType in config file"),
  23407. t;
  23408. this.nj = parseFloat(f("particleLifespan", c));
  23409. this.qC = parseFloat(f("particleLifespanVariance", c));
  23410. this.Ax = this.wc / this.nj;
  23411. if (!this.wa) if (this.Fb = t, d = f("textureFileName", c), d = C.path.BB(this.CN, d), g = C.kb.av(d)) this.Va(g);
  23412. else if ((c = f("textureImageData", c)) && 0 == c.length) {
  23413. g = C.kb.sd(d);
  23414. if (!g) return t;
  23415. this.Va(g)
  23416. } else {
  23417. f = C.eja(c, 1);
  23418. if (!f) return C.log("cc.ParticleSystem: error decoding or ungzipping textureImageData"),
  23419. t;
  23420. c = C.JAa(f);
  23421. if (c !== C.P5 && c !== C.dT) return C.log("cc.ParticleSystem: unknown image format with Data"),
  23422. t;
  23423. g = C.bd("canvas");
  23424. c === C.dT ? (new C.Gna(f)).DGa(g) : C.mJa.AFa(f, g);
  23425. C.kb.wxa(d, g); (c = C.kb.av(d)) || C.log("cc.ParticleSystem.initWithDictionary() : error loading the texture");
  23426. this.Va(c)
  23427. }
  23428. d = q
  23429. }
  23430. return d
  23431. },
  23432. Hb: function(c) {
  23433. this.wc = c;
  23434. var d, f = this.Mt;
  23435. for (d = f.length = 0; d < c; d++) f[d] = new C.Hl;
  23436. if (!f) return C.log("Particle system: not enough memory"),
  23437. t;
  23438. this.iL = c;
  23439. if (this.wa) for (d = 0; d < this.wc; d++) f[d].atlasIndex = d;
  23440. this.pA = q;
  23441. this.C.src = C.Ic;
  23442. this.C.ga = C.Hc;
  23443. this.qh = C.B.GE;
  23444. this.Gb = C.B.rc;
  23445. this.cx = this.rH = t;
  23446. this.cha(1);
  23447. if (C.L === C.la) {
  23448. if (!this.d9()) return t;
  23449. this.U0();
  23450. this.Pw();
  23451. this.shaderProgram = C.ug.Xd(C.Co)
  23452. }
  23453. return q
  23454. },
  23455. wRa: function() {
  23456. this.hD()
  23457. },
  23458. ywa: function() {
  23459. if (this.tDa()) return t;
  23460. var c, d = this.Mt;
  23461. C.L === C.cb ? this.Og < d.length ? c = d[this.Og] : (c = new C.Hl, d.push(c)) : c = d[this.Og];
  23462. this.NCa(c); ++this.Og;
  23463. return q
  23464. },
  23465. NCa: function(c) {
  23466. var d = C.$Fa;
  23467. c.bv = this.nj + this.qC * d();
  23468. c.bv = Math.max(0, c.bv);
  23469. c.hc.x = this.bB.x + this.Ot.x * d();
  23470. c.hc.y = this.bB.y + this.Ot.y * d();
  23471. var f, g;
  23472. f = this.Kg;
  23473. var h = this.Zt,
  23474. k = this.Ef;
  23475. g = this.nt;
  23476. C.L === C.cb ? (f = C.color(C.Nf(f.r + h.r * d(), 0, 255), C.Nf(f.g + h.g * d(), 0, 255), C.Nf(f.b + h.b * d(), 0, 255), C.Nf(f.a + h.a * d(), 0, 255)), g = C.color(C.Nf(k.r + g.r * d(), 0, 255), C.Nf(k.g + g.g * d(), 0, 255), C.Nf(k.b + g.b * d(), 0, 255), C.Nf(k.a + g.a * d(), 0, 255))) : (f = {
  23477. r: C.Nf(f.r + h.r * d(), 0, 255),
  23478. g: C.Nf(f.g + h.g * d(), 0, 255),
  23479. b: C.Nf(f.b + h.b * d(), 0, 255),
  23480. a: C.Nf(f.a + h.a * d(), 0, 255)
  23481. },
  23482. g = {
  23483. r: C.Nf(k.r + g.r * d(), 0, 255),
  23484. g: C.Nf(k.g + g.g * d(), 0, 255),
  23485. b: C.Nf(k.b + g.b * d(), 0, 255),
  23486. a: C.Nf(k.a + g.a * d(), 0, 255)
  23487. });
  23488. c.color = f;
  23489. h = c.DH;
  23490. k = c.bv;
  23491. h.r = (g.r - f.r) / k;
  23492. h.g = (g.g - f.g) / k;
  23493. h.b = (g.b - f.b) / k;
  23494. h.a = (g.a - f.a) / k;
  23495. f = this.ZC + this.$C * d();
  23496. f = Math.max(0, f);
  23497. c.size = f;
  23498. this.Bx === C.B.Kl ? c.L_ = 0 : (g = this.Bx + this.MB * d(), g = Math.max(0, g), c.L_ = (g - f) / k);
  23499. f = this.aD + this.bD * d();
  23500. g = this.NB + this.OB * d();
  23501. c.rotation = f;
  23502. c.kda = (g - f) / k;
  23503. this.qh == C.B.GE ? c.startPos = this.vm(this.WX) : this.qh == C.B.vU && (c.startPos.x = this.ma.x, c.startPos.y = this.ma.y);
  23504. f = C.ng(this.tm + this.wB * d());
  23505. if (this.Gb === C.B.rc) k = this.Wd,
  23506. g = c.Wd,
  23507. h = k.speed + k.speedVar * d(),
  23508. g.dir.x = Math.cos(f),
  23509. g.dir.y = Math.sin(f),
  23510. C.JC(g.dir, h),
  23511. g.radialAccel = k.radialAccel + k.radialAccelVar * d(),
  23512. g.tangentialAccel = k.tangentialAccel + k.tangentialAccelVar * d(),
  23513. k.rotationIsDir && (c.rotation = -C.LC(C.UEa(g.dir)));
  23514. else {
  23515. g = this.oh;
  23516. c = c.oh;
  23517. var h = g.startRadius + g.startRadiusVar * d(),
  23518. n = g.endRadius + g.endRadiusVar * d();
  23519. c.TI = h;
  23520. c.jda = g.endRadius === C.B.xoa ? 0 : (n - h) / k;
  23521. c.tm = f;
  23522. c.ida = C.ng(g.hR + g.iR * d())
  23523. }
  23524. },
  23525. ZIa: function() {
  23526. this.pA = t;
  23527. this.Bc = this.duration;
  23528. this.Xv = 0
  23529. },
  23530. Zga: function() {
  23531. this.pA = q;
  23532. this.Bc = 0;
  23533. var c = this.Mt;
  23534. for (this.Wj = 0; this.Wj < this.Og; ++this.Wj) c[this.Wj].bv = 0
  23535. },
  23536. tDa: function() {
  23537. return this.Og >= this.wc
  23538. },
  23539. IJa: function(c, d) {
  23540. var f = s;
  23541. this.wa ? (f = this.wa.textureAtlas.quads[this.atlasIndex + c.atlasIndex], this.wa.textureAtlas.dirty = q) : f = this.hf[this.Wj];
  23542. var g, h, k, n;
  23543. this.Fb ? (g = 0 | c.color.r * c.color.a / 255, h = 0 | c.color.g * c.color.a / 255, k = 0 | c.color.b * c.color.a / 255) : (g = 0 | c.color.r, h = 0 | c.color.g, k = 0 | c.color.b);
  23544. n = 0 | c.color.a;
  23545. var p = f.T.F;
  23546. p.r = g;
  23547. p.g = h;
  23548. p.b = k;
  23549. p.a = n;
  23550. p = f.Y.F;
  23551. p.r = g;
  23552. p.g = h;
  23553. p.b = k;
  23554. p.a = n;
  23555. p = f.X.F;
  23556. p.r = g;
  23557. p.g = h;
  23558. p.b = k;
  23559. p.a = n;
  23560. p = f.V.F;
  23561. p.r = g;
  23562. p.g = h;
  23563. p.b = k;
  23564. p.a = n;
  23565. g = c.size / 2;
  23566. if (c.rotation) {
  23567. h = -g;
  23568. k = -g;
  23569. n = d.x;
  23570. var p = d.y,
  23571. r = -C.ng(c.rotation),
  23572. v = Math.cos(r),
  23573. r = Math.sin(r);
  23574. f.T.m.x = h * v - k * r + n;
  23575. f.T.m.y = h * r + k * v + p;
  23576. f.Y.m.x = g * v - k * r + n;
  23577. f.Y.m.y = g * r + k * v + p;
  23578. f.X.m.x = h * v - g * r + n;
  23579. f.X.m.y = h * r + g * v + p;
  23580. f.V.m.x = g * v - g * r + n;
  23581. f.V.m.y = g * r + g * v + p
  23582. } else f.T.m.x = d.x - g,
  23583. f.T.m.y = d.y - g,
  23584. f.Y.m.x = d.x + g,
  23585. f.Y.m.y = d.y - g,
  23586. f.X.m.x = d.x - g,
  23587. f.X.m.y = d.y + g,
  23588. f.V.m.x = d.x + g,
  23589. f.V.m.y = d.y + g
  23590. },
  23591. MFa: function() {
  23592. if (C.L === C.la) {
  23593. var c = C.t;
  23594. c.bindBuffer(c.ARRAY_BUFFER, this.Me[0]);
  23595. c.bufferData(c.ARRAY_BUFFER, this.eg, c.DYNAMIC_DRAW)
  23596. }
  23597. },
  23598. update: function(c) {
  23599. if (this.pA && this.Ax) {
  23600. var d = 1 / this.Ax;
  23601. this.Og < this.wc && (this.Xv += c);
  23602. for (; this.Og < this.wc && this.Xv > d;) this.ywa(),
  23603. this.Xv -= d;
  23604. this.Bc += c; - 1 != this.duration && this.duration < this.Bc && this.ZIa()
  23605. }
  23606. this.Wj = 0;
  23607. d = C.Hl.YK[0];
  23608. this.qh == C.B.GE ? C.gs(d, this.vm(this.WX)) : this.qh == C.B.vU && (d.x = this.ma.x, d.y = this.ma.y);
  23609. if (this.Ja) {
  23610. for (var f = C.Hl.YK[1], g = C.Hl.YK[2], h = C.Hl.YK[3], k = this.Mt; this.Wj < this.Og;) {
  23611. C.TQ(f);
  23612. C.TQ(g);
  23613. C.TQ(h);
  23614. var n = k[this.Wj];
  23615. n.bv -= c;
  23616. if (0 < n.bv) {
  23617. if (this.Gb == C.B.rc) {
  23618. var p = h,
  23619. r = f,
  23620. v = g;
  23621. n.hc.x || n.hc.y ? (C.gs(r, n.hc), C.SEa(r)) : C.TQ(r);
  23622. C.gs(v, r);
  23623. C.JC(r, n.Wd.radialAccel);
  23624. var y = v.x;
  23625. v.x = -v.y;
  23626. v.y = y;
  23627. C.JC(v, n.Wd.tangentialAccel);
  23628. C.gs(p, r);
  23629. C.RQ(p, v);
  23630. C.RQ(p, this.Wd.gravity);
  23631. C.JC(p, c);
  23632. C.RQ(n.Wd.dir, p);
  23633. C.gs(p, n.Wd.dir);
  23634. C.JC(p, c);
  23635. C.RQ(n.hc, p)
  23636. } else p = n.oh,
  23637. p.tm += p.ida * c,
  23638. p.TI += p.jda * c,
  23639. n.hc.x = -Math.cos(p.tm) * p.TI,
  23640. n.hc.y = -Math.sin(p.tm) * p.TI;
  23641. if (!this.N9 || C.L === C.cb) n.color.r += n.DH.r * c,
  23642. n.color.g += n.DH.g * c,
  23643. n.color.b += n.DH.b * c,
  23644. n.color.a += n.DH.a * c,
  23645. n.ffa = q;
  23646. n.size += n.L_ * c;
  23647. n.size = Math.max(0, n.size);
  23648. n.rotation += n.kda * c;
  23649. p = f;
  23650. this.qh == C.B.GE || this.qh == C.B.vU ? (r = g, C.gs(r, d), C.pga(r, n.startPos), C.gs(p, n.hc), C.pga(p, r)) : C.gs(p, n.hc);
  23651. this.wa && (p.x += this.ma.x, p.y += this.ma.y);
  23652. C.L == C.la ? this.IJa(n, p) : C.gs(n.FH, p); ++this.Wj
  23653. } else if (n = n.atlasIndex, this.Wj !== this.Og - 1 && (p = k[this.Wj], k[this.Wj] = k[this.Og - 1], k[this.Og - 1] = p), this.wa && (this.wa.Gya(this.atlasIndex + n), k[this.Og - 1].atlasIndex = n), --this.Og, 0 == this.Og && this.rH) {
  23654. this.hD();
  23655. this.Vb.removeChild(this, q);
  23656. return
  23657. }
  23658. }
  23659. this.cx = t
  23660. }
  23661. this.wa || this.MFa()
  23662. },
  23663. NJa: function() {
  23664. this.update(0)
  23665. },
  23666. jwa: function(c, d) {
  23667. if (d) {
  23668. var f = d[c];
  23669. return f != s ? f: ""
  23670. }
  23671. return ""
  23672. },
  23673. hl: function() {
  23674. if (this.wa) C.log("Can't change blending functions when the particle is being batched");
  23675. else {
  23676. var c = this.da;
  23677. if (c && c instanceof C.Ma) {
  23678. this.Fb = t;
  23679. var d = this.C;
  23680. d.src == C.Ic && d.ga == C.Hc && (c.Hp() ? this.Fb = q: (d.src = C.SRC_ALPHA, d.ga = C.ONE_MINUS_SRC_ALPHA))
  23681. }
  23682. }
  23683. },
  23684. s: function() {
  23685. var c = new C.B;
  23686. if (c.Hb(this.wc)) {
  23687. c.ok(this.tm);
  23688. c.pk(this.wB);
  23689. c.Wh(this.Rr());
  23690. var d = this.ek();
  23691. c.Yd(d.src, d.ga);
  23692. c.tg(this.NP());
  23693. c.zj(this.uea());
  23694. c.sg(this.EP());
  23695. c.uj(this.Vda());
  23696. c.wk(this.ZC);
  23697. c.xk(this.$C);
  23698. c.sk(this.Bx);
  23699. c.R2(this.MB);
  23700. c.p(C.d(this.x, this.y));
  23701. c.vk(C.d(this.x0().x, this.x0().y));
  23702. c.uia(this.aD || 0);
  23703. c.via(this.bD || 0);
  23704. c.Bha(this.NB || 0);
  23705. c.Cha(this.OB || 0);
  23706. c.rk(this.Gb);
  23707. this.Gb == C.B.rc ? (d = this.MH(), c.oc(C.d(d.x, d.y)), c.Xh(this.MP()), c.yj(this.tea()), c.wj(this.mea()), c.xj(this.nea()), c.no(this.xea()), c.oo(this.yea())) : this.Gb == C.B.Cj && (c.n3(this.vea()), c.o3(this.wea()), c.P2(this.Wda()), c.Q2(this.Xda()), c.g3(this.oea()), c.h3(this.pea()));
  23708. c.tk(this.nj);
  23709. c.uk(this.qC);
  23710. c.qk(this.Ax);
  23711. if (!this.XB() && (c.$d(this.qg()), d = this.ob())) {
  23712. var f = d.i();
  23713. c.q3(d, C.rect(0, 0, f.width, f.height))
  23714. }
  23715. }
  23716. return c
  23717. },
  23718. pHa: function(c) {
  23719. var d = c.Yk; (0 != d.x || 0 != d.y) && C.log("cc.ParticleSystem.setDisplayFrame(): QuadParticle only supports SpriteFrames with no offsets");
  23720. C.L === C.la && (!this.da || c.ob().Sh != this.da.Sh) && this.Va(c.ob())
  23721. },
  23722. q3: function(c, d) {
  23723. var f = this.da;
  23724. if (C.L === C.la) {
  23725. if ((!f || c.Sh != f.Sh) && f != c) this.da = c,
  23726. this.hl()
  23727. } else if ((!f || c != f) && f != c) this.da = c,
  23728. this.hl();
  23729. this.rG = d;
  23730. this.Tea(d)
  23731. },
  23732. ka: function(c) {
  23733. this.Aa && !this.wa && (C.L === C.cb ? this.Qq(c) : this.gn(c), C.kl++)
  23734. },
  23735. Qq: function(c) {
  23736. c = c || C.t;
  23737. c.save();
  23738. c.globalCompositeOperation = this.lDa() ? "lighter": "source-over";
  23739. for (var d = 0; d < this.Og; d++) {
  23740. var f = this.Mt[d],
  23741. g = 0 | 0.5 * f.size;
  23742. if (this.pP == C.B.P7) {
  23743. if (g = this.da.jd, g.width && g.height) {
  23744. c.save();
  23745. c.globalAlpha = f.color.a / 255;
  23746. c.translate(0 | f.FH.x, -(0 | f.FH.y));
  23747. var h = 4 * Math.floor(f.size / 4),
  23748. k = this.rG.width,
  23749. n = this.rG.height;
  23750. c.scale(Math.max(1 / k * h, 1E-6), Math.max(1 / n * h, 1E-6));
  23751. f.rotation && c.rotate(C.ng(f.rotation));
  23752. c.translate( - (0 | k / 2), -(0 | n / 2));
  23753. if (f.ffa && (h = C.kb.OP(g))) h.AJ || (h.AJ = C.bd("canvas"), h.AJ.width = g.width, h.AJ.height = g.height),
  23754. C.TB(g, h, f.color, this.rG, h.AJ),
  23755. g = h.AJ;
  23756. c.drawImage(g, 0, 0);
  23757. c.restore()
  23758. }
  23759. } else c.save(),
  23760. c.globalAlpha = f.color.a / 255,
  23761. c.translate(0 | f.FH.x, -(0 | f.FH.y)),
  23762. this.WR == C.B.yoa ? (f.rotation && c.rotate(C.ng(f.rotation)), C.Df.Rya(c, g, f.color)) : C.Df.Lya(c, g, f.color),
  23763. c.restore()
  23764. }
  23765. c.restore()
  23766. },
  23767. gn: function(c) {
  23768. this.da && (c = c || C.t, this.pd.Af(), this.pd.Bj(), C.yi(this.da), C.Gea(this.C.src, this.C.ga), C.rf(C.Dv), c.bindBuffer(c.ARRAY_BUFFER, this.Me[0]), c.vertexAttribPointer(C.Lc, 3, c.FLOAT, t, 24, 0), c.vertexAttribPointer(C.Hi, 4, c.UNSIGNED_BYTE, q, 24, 12), c.vertexAttribPointer(C.Vg, 2, c.FLOAT, t, 24, 16), c.bindBuffer(c.ELEMENT_ARRAY_BUFFER, this.Me[1]), c.drawElements(c.TRIANGLES, 6 * this.Wj, c.UNSIGNED_SHORT, 0))
  23769. },
  23770. V_a: function() {
  23771. C.jU || this.Pw()
  23772. },
  23773. zPa: u(),
  23774. Pw: function() {
  23775. if (C.L != C.cb) {
  23776. var c = C.t;
  23777. this.Me[0] = c.createBuffer();
  23778. c.bindBuffer(c.ARRAY_BUFFER, this.Me[0]);
  23779. c.bufferData(c.ARRAY_BUFFER, this.eg, c.DYNAMIC_DRAW);
  23780. this.Me[1] = c.createBuffer();
  23781. c.bindBuffer(c.ELEMENT_ARRAY_BUFFER, this.Me[1]);
  23782. c.bufferData(c.ELEMENT_ARRAY_BUFFER, this.Qb, c.STATIC_DRAW)
  23783. }
  23784. },
  23785. d9: function() {
  23786. if (C.L === C.cb) return q;
  23787. if (this.wa) return C.log("cc.ParticleSystem._allocMemory(): Memory should not be allocated when not using batchNode"),
  23788. t;
  23789. var c = C.Uc.BYTES_PER_ELEMENT,
  23790. d = this.wc,
  23791. f = this.hf;
  23792. f.length = 0;
  23793. this.Qb = new Uint16Array(6 * d);
  23794. for (var g = new ArrayBuffer(c * d), h = 0; h < d; h++) f[h] = new C.Uc(s, s, s, s, g, h * c);
  23795. if (!f || !this.Qb) return C.log("cocos2d: Particle system: not enough memory"),
  23796. t;
  23797. this.eg = g;
  23798. return q
  23799. }
  23800. });
  23801. H = C.B.prototype;
  23802. C.e(H, "opacityModifyRGB", H.qg, H.$d);
  23803. C.e(H, "batchNode", H.XB, H.os);
  23804. C.e(H, "active", H.zi);
  23805. C.e(H, "sourcePos", H.RBa, H.oIa);
  23806. C.e(H, "posVar", H.x0, H.vk);
  23807. C.e(H, "gravity", H.MH, H.oc);
  23808. C.e(H, "speed", H.MP, H.Xh);
  23809. C.e(H, "speedVar", H.tea, H.yj);
  23810. C.e(H, "tangentialAccel", H.xea, H.no);
  23811. C.e(H, "tangentialAccelVar", H.yea, H.oo);
  23812. C.e(H, "radialAccel", H.mea, H.wj);
  23813. C.e(H, "radialAccelVar", H.nea, H.xj);
  23814. C.e(H, "rotationIsDir", H.FBa, H.iIa);
  23815. C.e(H, "startRadius", H.vea, H.n3);
  23816. C.e(H, "startRadiusVar", H.wea, H.o3);
  23817. C.e(H, "endRadius", H.Wda, H.P2);
  23818. C.e(H, "endRadiusVar", H.Xda, H.Q2);
  23819. C.e(H, "rotatePerS", H.oea, H.g3);
  23820. C.e(H, "rotatePerSVar", H.pea, H.h3);
  23821. C.e(H, "startColor", H.NP, H.tg);
  23822. C.e(H, "startColorVar", H.uea, H.zj);
  23823. C.e(H, "endColor", H.EP, H.sg);
  23824. C.e(H, "endColorVar", H.Vda, H.uj);
  23825. C.e(H, "totalParticles", H.cCa, H.yia);
  23826. C.e(H, "texture", H.ob, H.Va);
  23827. C.B.create = function(c) {
  23828. return new C.B(c)
  23829. };
  23830. C.B.AT = function(c, d, f, g, h, k, n, p) {
  23831. this.gravity = c ? c: C.d(0, 0);
  23832. this.speed = d || 0;
  23833. this.speedVar = f || 0;
  23834. this.tangentialAccel = g || 0;
  23835. this.tangentialAccelVar = h || 0;
  23836. this.radialAccel = k || 0;
  23837. this.radialAccelVar = n || 0;
  23838. this.rotationIsDir = p || t
  23839. };
  23840. C.B.BT = function(c, d, f, g, h, k) {
  23841. this.startRadius = c || 0;
  23842. this.startRadiusVar = d || 0;
  23843. this.endRadius = f || 0;
  23844. this.endRadiusVar = g || 0;
  23845. this.hR = h || 0;
  23846. this.iR = k || 0
  23847. };
  23848. C.B.uoa = 0;
  23849. C.B.P7 = 1;
  23850. C.B.yoa = 0;
  23851. C.B.Uja = 1;
  23852. C.B.$m = -1;
  23853. C.B.Kl = -1;
  23854. C.B.xoa = -1;
  23855. C.B.rc = 0;
  23856. C.B.Cj = 1;
  23857. C.B.GE = 0;
  23858. C.B.vU = 1;
  23859. C.B.xNa = 2;
  23860. C.o7 = C.B.extend({
  23861. j: function() {
  23862. return this.Hb(C.L === C.la ? 300 : 150)
  23863. },
  23864. Hb: function(c) {
  23865. return C.B.prototype.Hb.call(this, c) ? (this.Wh(C.B.$m), this.rk(C.B.rc), this.oc(C.d(0, 0)), this.wj(0), this.xj(0), this.Xh(60), this.yj(20), this.ok(90), this.pk(10), this.p(C.Q.aa.width / 2, 60), this.vk(C.d(40, 20)), this.tk(3), this.uk(0.25), this.wk(54), this.xk(10), this.sk(C.B.Kl), this.qk(this.wc / this.nj), this.tg(C.color(194, 64, 31, 255)), this.zj(C.color(0, 0, 0, 0)), this.sg(C.color(0, 0, 0, 255)), this.uj(C.color(0, 0, 0, 0)), this.Nm(q), q) : t
  23866. }
  23867. });
  23868. C.o7.create = function() {
  23869. var c = new C.o7;
  23870. return c.j() ? c: s
  23871. };
  23872. C.p7 = C.B.extend({
  23873. j: function() {
  23874. return this.Hb(C.L === C.la ? 1500 : 150)
  23875. },
  23876. Hb: function(c) {
  23877. return C.B.prototype.Hb.call(this, c) ? (this.Wh(C.B.$m), this.rk(C.B.rc), this.oc(C.d(0, -90)), this.wj(0), this.xj(0), this.Xh(180), this.yj(50), c = C.Q.aa, this.p(c.width / 2, c.height / 2), this.ok(90), this.pk(20), this.tk(3.5), this.uk(1), this.qk(this.wc / this.nj), this.tg(C.color(128, 128, 128, 255)), this.zj(C.color(128, 128, 128, 255)), this.sg(C.color(26, 26, 26, 51)), this.uj(C.color(26, 26, 26, 51)), this.wk(8), this.xk(2), this.sk(C.B.Kl), this.Nm(t), q) : t
  23878. }
  23879. });
  23880. C.p7.create = function() {
  23881. var c = new C.p7;
  23882. return c.j() ? c: s
  23883. };
  23884. C.x7 = C.B.extend({
  23885. j: function() {
  23886. return this.Hb(C.L === C.la ? 350 : 150)
  23887. },
  23888. Hb: function(c) {
  23889. return C.B.prototype.Hb.call(this, c) ? (this.Nm(q), this.Wh(C.B.$m), this.rk(C.B.rc), this.oc(C.d(0, 0)), this.wj(0), this.xj(0), this.Xh(20), this.yj(5), this.ok(90), this.pk(360), c = C.Q.aa, this.p(c.width / 2, c.height / 2), this.vk(C.d(0, 0)), this.tk(1), this.uk(0.5), this.wk(30), this.xk(10), this.sk(C.B.Kl), this.qk(this.wc / this.nj), this.tg(C.color(194, 64, 31, 255)), this.zj(C.color(0, 0, 0, 0)), this.sg(C.color(0, 0, 0, 255)), this.uj(C.color(0, 0, 0, 0)), q) : t
  23890. }
  23891. });
  23892. C.x7.create = function() {
  23893. var c = new C.x7;
  23894. return c.j() ? c: s
  23895. };
  23896. C.r7 = C.B.extend({
  23897. j: function() {
  23898. return this.Hb(C.L === C.la ? 200 : 100)
  23899. },
  23900. Hb: function(c) {
  23901. return C.B.prototype.Hb.call(this, c) ? (this.Wh(C.B.$m), this.rk(C.B.rc), this.oc(C.d(0, 0)), this.Xh(60), this.yj(10), this.wj( - 80), this.xj(0), this.no(80), this.oo(0), this.ok(90), this.pk(360), c = C.Q.aa, this.p(c.width / 2, c.height / 2), this.vk(C.d(0, 0)), this.tk(4), this.uk(1), this.wk(37), this.xk(10), this.sk(C.B.Kl), this.qk(this.wc / this.nj), this.tg(C.color(31, 64, 194, 255)), this.zj(C.color(0, 0, 0, 0)), this.sg(C.color(0, 0, 0, 255)), this.uj(C.color(0, 0, 0, 0)), this.Nm(q), q) : t
  23902. }
  23903. });
  23904. C.r7.create = function() {
  23905. var c = new C.r7;
  23906. return c.j() ? c: s
  23907. };
  23908. C.q7 = C.B.extend({
  23909. j: function() {
  23910. return this.Hb(C.L === C.la ? 250 : 100)
  23911. },
  23912. Hb: function(c) {
  23913. return C.B.prototype.Hb.call(this, c) ? (this.Wh(C.B.$m), this.rk(C.B.rc), this.oc(C.d(0, 0)), this.Xh(80), this.yj(10), this.wj( - 60), this.xj(0), this.no(15), this.oo(0), this.ok(90), this.pk(360), c = C.Q.aa, this.p(c.width / 2, c.height / 2), this.vk(C.d(0, 0)), this.tk(4), this.uk(1), this.wk(30), this.xk(10), this.sk(C.B.Kl), this.qk(this.wc / this.nj), this.tg(C.color(128, 128, 128, 255)), this.zj(C.color(128, 128, 128, 128)), this.sg(C.color(0, 0, 0, 255)), this.uj(C.color(0, 0, 0, 0)), this.Nm(q), q) : t
  23914. }
  23915. });
  23916. C.q7.create = function() {
  23917. var c = new C.q7;
  23918. return c.j() ? c: s
  23919. };
  23920. C.s7 = C.B.extend({
  23921. j: function() {
  23922. return this.Hb(C.L === C.la ? 150 : 100)
  23923. },
  23924. Hb: function(c) {
  23925. return C.B.prototype.Hb.call(this, c) ? (this.Wh(C.B.$m), this.rk(C.B.rc), this.oc(C.d( - 200, 200)), this.Xh(15), this.yj(5), this.wj(0), this.xj(0), this.no(0), this.oo(0), this.ok(90), this.pk(360), c = C.Q.aa, this.p(c.width / 2, c.height / 2), this.vk(C.d(0, 0)), this.tk(2), this.uk(1), this.wk(60), this.xk(10), this.sk(C.B.Kl), this.qk(this.wc / this.nj), this.tg(C.color(51, 102, 179)), this.zj(C.color(0, 0, 51, 26)), this.sg(C.color(0, 0, 0, 255)), this.uj(C.color(0, 0, 0, 0)), this.Nm(q), q) : t
  23926. }
  23927. });
  23928. C.s7.create = function() {
  23929. var c = new C.s7;
  23930. return c.j() ? c: s
  23931. };
  23932. C.w7 = C.B.extend({
  23933. j: function() {
  23934. return this.Hb(C.L === C.la ? 500 : 100)
  23935. },
  23936. Hb: function(c) {
  23937. return C.B.prototype.Hb.call(this, c) ? (this.Wh(C.B.$m), this.rk(C.B.rc), this.oc(C.d(0, 0)), this.Xh(150), this.yj(0), this.wj( - 380), this.xj(0), this.no(45), this.oo(0), this.ok(90), this.pk(0), c = C.Q.aa, this.p(c.width / 2, c.height / 2), this.vk(C.d(0, 0)), this.tk(12), this.uk(0), this.wk(20), this.xk(0), this.sk(C.B.Kl), this.qk(this.wc / this.nj), this.tg(C.color(128, 128, 128, 255)), this.zj(C.color(128, 128, 128, 0)), this.sg(C.color(128, 128, 128, 255)), this.uj(C.color(128, 128, 128, 0)), this.Nm(t), q) : t
  23938. }
  23939. });
  23940. C.w7.create = function() {
  23941. var c = new C.w7;
  23942. return c.j() ? c: s
  23943. };
  23944. C.n7 = C.B.extend({
  23945. j: function() {
  23946. return this.Hb(C.L === C.la ? 700 : 300)
  23947. },
  23948. Hb: function(c) {
  23949. return C.B.prototype.Hb.call(this, c) ? (this.Wh(0.1), this.rk(C.B.rc), this.oc(C.d(0, 0)), this.Xh(70), this.yj(40), this.wj(0), this.xj(0), this.no(0), this.oo(0), this.ok(90), this.pk(360), c = C.Q.aa, this.p(c.width / 2, c.height / 2), this.vk(C.d(0, 0)), this.tk(5), this.uk(2), this.wk(15), this.xk(10), this.sk(C.B.Kl), this.qk(this.wc / this.Rr()), this.tg(C.color(179, 26, 51, 255)), this.zj(C.color(128, 128, 128, 0)), this.sg(C.color(128, 128, 128, 0)), this.uj(C.color(128, 128, 128, 0)), this.Nm(t), q) : t
  23950. }
  23951. });
  23952. C.n7.create = function() {
  23953. var c = new C.n7;
  23954. return c.j() ? c: s
  23955. };
  23956. C.u7 = C.B.extend({
  23957. j: function() {
  23958. return this.Hb(C.L === C.la ? 200 : 100)
  23959. },
  23960. Hb: function(c) {
  23961. return C.B.prototype.Hb.call(this, c) ? (this.Wh(C.B.$m), this.rk(C.B.rc), this.oc(C.d(0, 0)), this.wj(0), this.xj(0), this.Xh(25), this.yj(10), this.ok(90), this.pk(5), this.p(C.Q.aa.width / 2, 0), this.vk(C.d(20, 0)), this.tk(4), this.uk(1), this.wk(60), this.xk(10), this.sk(C.B.Kl), this.qk(this.wc / this.nj), this.tg(C.color(204, 204, 204, 255)), this.zj(C.color(5, 5, 5, 0)), this.sg(C.color(0, 0, 0, 255)), this.uj(C.color(0, 0, 0, 0)), this.Nm(t), q) : t
  23962. }
  23963. });
  23964. C.u7.create = function() {
  23965. var c = new C.u7;
  23966. return c.j() ? c: s
  23967. };
  23968. C.v7 = C.B.extend({
  23969. j: function() {
  23970. return this.Hb(C.L === C.la ? 700 : 250)
  23971. },
  23972. Hb: function(c) {
  23973. return C.B.prototype.Hb.call(this, c) ? (this.Wh(C.B.$m), this.rk(C.B.rc), this.oc(C.d(0, -1)), this.Xh(5), this.yj(1), this.wj(0), this.xj(1), this.no(0), this.oo(1), c = C.Q.aa, this.p(c.width / 2, c.height + 10), this.vk(C.d(c.width / 2, 0)), this.ok( - 90), this.pk(5), this.tk(45), this.uk(15), this.wk(10), this.xk(5), this.sk(C.B.Kl), this.qk(10), this.tg(C.color(255, 255, 255, 255)), this.zj(C.color(0, 0, 0, 0)), this.sg(C.color(255, 255, 255, 0)), this.uj(C.color(0, 0, 0, 0)), this.Nm(t), q) : t
  23974. }
  23975. });
  23976. C.v7.create = function() {
  23977. var c = new C.v7;
  23978. return c.j() ? c: s
  23979. };
  23980. C.t7 = C.B.extend({
  23981. j: function() {
  23982. return this.Hb(C.L === C.la ? 1E3: 300)
  23983. },
  23984. Hb: function(c) {
  23985. return C.B.prototype.Hb.call(this, c) ? (this.Wh(C.B.$m), this.rk(C.B.rc), this.oc(C.d(10, -10)), this.wj(0), this.xj(1), this.no(0), this.oo(1), this.Xh(130), this.yj(30), this.ok( - 90), this.pk(5), c = C.Q.aa, this.p(c.width / 2, c.height), this.vk(C.d(c.width / 2, 0)), this.tk(4.5), this.uk(0), this.wk(4), this.xk(2), this.sk(C.B.Kl), this.qk(20), this.tg(C.color(179, 204, 255, 255)), this.zj(C.color(0, 0, 0, 0)), this.sg(C.color(179, 204, 255, 128)), this.uj(C.color(0, 0, 0, 0)), this.Nm(t), q) : t
  23986. }
  23987. });
  23988. C.t7.create = function() {
  23989. var c = new C.t7;
  23990. return c.j() ? c: s
  23991. };
  23992. C.OMa = 500;
  23993. C.GT = C.A.extend({
  23994. textureAtlas: s,
  23995. DNa: q,
  23996. C: s,
  23997. qa: "ParticleBatchNode",
  23998. ctor: function(c, d) {
  23999. C.A.prototype.ctor.call(this);
  24000. this.C = {
  24001. src: C.Ic,
  24002. ga: C.Hc
  24003. };
  24004. "string" == typeof c ? this.j(c, d) : c instanceof C.Ma && this.ta(c, d)
  24005. },
  24006. ta: function(c, d) {
  24007. this.textureAtlas = new C.uq;
  24008. this.textureAtlas.ta(c, d);
  24009. this.l.length = 0;
  24010. C.L === C.la && (this.shaderProgram = C.ug.Xd(C.Co));
  24011. return q
  24012. },
  24013. Ce: function(c, d) {
  24014. var f = C.kb.sd(c);
  24015. return this.ta(f, d)
  24016. },
  24017. j: function(c, d) {
  24018. var f = C.CNa.gk().sd(c);
  24019. return this.ta(f, d)
  24020. },
  24021. q: function(c, d, f) {
  24022. c || e("cc.ParticleBatchNode.addChild() : child should be non-null");
  24023. c instanceof C.B || e("cc.ParticleBatchNode.addChild() : only supports cc.ParticleSystem as children");
  24024. d = d == s ? c.zIndex: d;
  24025. f = f == s ? c.tag: f;
  24026. c.ob() != this.textureAtlas.texture && e("cc.ParticleSystem.addChild() : the child is not using the same texture id");
  24027. var g = c.ek();
  24028. if (0 === this.l.length) this.Yd(g);
  24029. else if (g.src != this.C.src || g.ga != this.C.ga) {
  24030. C.log("cc.ParticleSystem.addChild() : Can't add a ParticleSystem that uses a different blending function");
  24031. return
  24032. }
  24033. d = this.Kqa(c, d, f);
  24034. f = 0;
  24035. 0 != d ? (d = this.l[d - 1], f = d.WB() + d.wc) : f = 0;
  24036. this.d1(c, f);
  24037. c.os(this)
  24038. },
  24039. d1: function(c, d) {
  24040. var f = c.wc,
  24041. g = this.textureAtlas,
  24042. h = g.totalQuads;
  24043. c.C2(d);
  24044. h + f > g.Yf && (this.Ysa(h + f), g.wda(g.Yf - f, f));
  24045. c.WB() + f != h && g.Sfa(d, d + f);
  24046. g.Pea(f);
  24047. this.rZ()
  24048. },
  24049. removeChild: function(c, d) {
  24050. if (c != s) if (c instanceof C.B || e("cc.ParticleBatchNode.removeChild(): only supports cc.ParticleSystem as children"), -1 == this.l.indexOf(c)) C.log("cc.ParticleBatchNode.removeChild(): doesn't contain the sprite. Can't remove it");
  24051. else {
  24052. C.A.prototype.removeChild.call(this, c, d);
  24053. var f = this.textureAtlas;
  24054. f.yGa(c.WB(), c.wc);
  24055. f.wda(f.totalQuads, c.wc);
  24056. c.os(s);
  24057. this.rZ()
  24058. }
  24059. },
  24060. OC: function(c, d) {
  24061. c || e("cc.ParticleBatchNode.reorderChild(): child should be non-null");
  24062. c instanceof C.B || e("cc.ParticleBatchNode.reorderChild(): only supports cc.QuadParticleSystems as children");
  24063. if ( - 1 === this.l.indexOf(c)) C.log("cc.ParticleBatchNode.reorderChild(): Child doesn't belong to batch");
  24064. else if (d != c.zIndex) {
  24065. if (1 < this.l.length) {
  24066. var f = this.ksa(c, d);
  24067. if (f.Zfa != f.Vfa) {
  24068. this.l.splice(f.Zfa, 1);
  24069. this.l.splice(f.Vfa, 0, c);
  24070. f = c.WB();
  24071. this.rZ();
  24072. for (var g = 0,
  24073. h = this.l,
  24074. k = 0; k < h.length; k++) if (h[k] == c) {
  24075. g = c.WB();
  24076. break
  24077. }
  24078. this.textureAtlas.Sfa(f, c.wc, g);
  24079. c.NJa()
  24080. }
  24081. }
  24082. c.Ow(d)
  24083. }
  24084. },
  24085. sGa: function(c, d) {
  24086. this.removeChild(this.l[i], d)
  24087. },
  24088. xf: function(c) {
  24089. for (var d = this.l,
  24090. f = 0; f < d.length; f++) d[f].os(s);
  24091. C.A.prototype.xf.call(this, c);
  24092. this.textureAtlas.NC()
  24093. },
  24094. Gya: function(c) {
  24095. c = this.textureAtlas.quads[c];
  24096. c.Y.m.x = c.Y.m.y = c.V.m.x = c.V.m.y = c.X.m.x = c.X.m.y = c.T.m.x = c.T.m.y = 0;
  24097. this.textureAtlas.Vt(q)
  24098. },
  24099. ka: function() {
  24100. C.L !== C.cb && 0 != this.textureAtlas.totalQuads && (C.BC(this), C.Gea(this.C.src, this.C.ga), this.textureAtlas.KB())
  24101. },
  24102. ob: function() {
  24103. return this.textureAtlas.texture
  24104. },
  24105. Va: function(c) {
  24106. this.textureAtlas.texture = c;
  24107. var d = this.C;
  24108. c && (!c.Hp() && d.src == C.Ic && d.ga == C.Hc) && (d.src = C.SRC_ALPHA, d.ga = C.ONE_MINUS_SRC_ALPHA)
  24109. },
  24110. Yd: function(c, d) {
  24111. d === m ? (this.C.src = c.src, this.C.ga = c.ga) : (this.C.src = c, this.C.src = d)
  24112. },
  24113. ek: function() {
  24114. return {
  24115. src: this.C.src,
  24116. ga: this.C.ga
  24117. }
  24118. },
  24119. J: function(c) {
  24120. C.L !== C.cb && this.Ja && (C.Zr(), this.grid && this.grid.zi() && (this.grid.px(), this.CJ()), this.transform(c), this.ka(c), this.grid && this.grid.zi() && this.grid.mx(this), C.Yr())
  24121. },
  24122. rZ: function() {
  24123. for (var c = 0,
  24124. d = this.l,
  24125. f = 0; f < d.length; f++) {
  24126. var g = d[f];
  24127. g.C2(c);
  24128. c += g.wc
  24129. }
  24130. },
  24131. Ysa: function(c) {
  24132. C.log("cocos2d: cc.ParticleBatchNode: resizing TextureAtlas capacity from [" + this.textureAtlas.Yf + "] to [" + c + "].");
  24133. this.textureAtlas.eR(c) || C.log("cc.ParticleBatchNode._increaseAtlasCapacityTo() : WARNING: Not enough memory to resize the atlas")
  24134. },
  24135. Mua: function(c) {
  24136. for (var d = this.l,
  24137. f = d.length,
  24138. g = 0; g < f; g++) if (d[g].zIndex > c) return g;
  24139. return f
  24140. },
  24141. ksa: function(c, d) {
  24142. for (var f = t,
  24143. g = t,
  24144. h = 0,
  24145. k = 0,
  24146. n = 0,
  24147. p = this.l,
  24148. r = p.length,
  24149. v = 0; v < r; v++) {
  24150. var y = p[v];
  24151. if (y.zIndex > d && !g && (h = v, g = q, f && g)) break;
  24152. if (c == y && (k = v, f = q, g || (n = -1), f && g)) break
  24153. }
  24154. g || (h = r);
  24155. return {
  24156. Vfa: h + n,
  24157. Zfa: k
  24158. }
  24159. },
  24160. Kqa: function(c, d, f) {
  24161. c || e("cc.ParticleBatchNode._addChildHelper(): child should be non-null");
  24162. if (c.parent) return C.log("cc.ParticleBatchNode._addChildHelper(): child already added. It can't be added again"),
  24163. s;
  24164. this.l || (this.l = []);
  24165. var g = this.Mua(d);
  24166. this.l.splice(g, 0, c);
  24167. c.tag = f;
  24168. c.Ow(d);
  24169. c.parent = this;
  24170. this.$c && (c.Z(), c.qj());
  24171. return g
  24172. },
  24173. hl: function() {
  24174. this.textureAtlas.texture.Hp() || (this.C.src = C.SRC_ALPHA, this.C.ga = C.ONE_MINUS_SRC_ALPHA)
  24175. },
  24176. VH: A("textureAtlas"),
  24177. p3: x("textureAtlas")
  24178. });
  24179. H = C.GT.prototype;
  24180. C.e(H, "texture", H.ob, H.Va);
  24181. C.GT.create = function(c, d) {
  24182. return new C.GT(c, d)
  24183. };
  24184. C.XLa = function(c, d, f) {
  24185. this.Sn = c || C.rect(0, 0, 0, 0);
  24186. this.end = d || C.rect(0, 0, 0, 0);
  24187. this.duration = f || 0
  24188. };
  24189. C.WLa = C.O.extend({
  24190. ctor: function() {
  24191. C.Kp.sca(this)
  24192. },
  24193. aR: function() {
  24194. C.Kp.aR(this)
  24195. },
  24196. pH: function() {
  24197. return C.Kp.Fca(this)
  24198. },
  24199. nP: function() {
  24200. return C.Kp.lda(this)
  24201. },
  24202. o_: B(t),
  24203. Dya: u(),
  24204. p_: B(t),
  24205. Eya: u(),
  24206. lI: u(),
  24207. mP: u(),
  24208. o0: B(""),
  24209. p1: u(),
  24210. mfa: u(),
  24211. nfa: u(),
  24212. lfa: u()
  24213. });
  24214. C.mT = C.O.extend({
  24215. ve: s,
  24216. Xb: s,
  24217. Nq: "",
  24218. kw: s,
  24219. ctor: function() {
  24220. this.Xb = new C.mT.Dma;
  24221. this.kw = C.d(0, 0)
  24222. },
  24223. j: function() {
  24224. if (!C.Sc.Xr) {
  24225. this.ve = C.ic("#imeDispatcherInput");
  24226. this.ve || (this.ve = C.pD("input"), this.ve.setAttribute("type", "text"), this.ve.setAttribute("id", "imeDispatcherInput"), this.ve.$p(0, 0), this.ve.DJ(0, 0), this.ve.style.opacity = "0", this.ve.style.fontSize = "1px", this.ve.setAttribute("tabindex", 2), this.ve.style.position = "absolute", this.ve.style.top = 0, this.ve.style.left = 0, document.body.appendChild(this.ve));
  24227. var c = this;
  24228. C.qb(this.ve, "input",
  24229. function() {
  24230. c.fY(c.ve.value)
  24231. },
  24232. t);
  24233. C.qb(this.ve, "keydown",
  24234. function(d) {
  24235. d.keyCode === C.Uy.aJa ? (d.stopPropagation(), d.preventDefault()) : d.keyCode == C.Uy.c0 && (c.EH("\n", 1), d.stopPropagation(), d.preventDefault())
  24236. },
  24237. t);
  24238. /msie/i.test(navigator.userAgent) && C.qb(this.ve, "keyup",
  24239. function(d) {
  24240. d.keyCode == C.Uy.Gca && c.fY(c.ve.value)
  24241. },
  24242. t);
  24243. C.qb(window, "mousedown",
  24244. function(d) {
  24245. var f = d.pageY || 0;
  24246. c.kw.x = d.pageX || 0;
  24247. c.kw.y = f
  24248. },
  24249. t)
  24250. }
  24251. },
  24252. fY: function(c) {
  24253. var d, f;
  24254. d = this.Nq.length < c.length ? this.Nq.length: c.length;
  24255. for (f = 0; f < d && c[f] === this.Nq[f]; f++);
  24256. var g = this.Nq.length - f,
  24257. h = c.length - f;
  24258. for (d = 0; d < g; d++) this.nda();
  24259. for (d = 0; d < h; d++) this.EH(c[f + d], 1);
  24260. this.Nq = c
  24261. },
  24262. EH: function(c, d) {
  24263. this.Xb && c && !(0 >= d) && this.Xb.ki && this.Xb.ki.lI(c, d)
  24264. },
  24265. nda: function() {
  24266. this.Xb && this.Xb.ki && this.Xb.ki.mP()
  24267. },
  24268. o0: function() {
  24269. if (this.Xb && this.Xb.ki) {
  24270. var c = this.Xb.ki.o0();
  24271. return c ? c: ""
  24272. }
  24273. return ""
  24274. },
  24275. HRa: function(c) {
  24276. if (this.Xb) for (var d = 0; d < this.Xb.Qk.length; d++) {
  24277. var f = this.Xb.Qk[d];
  24278. f && f.p1(c)
  24279. }
  24280. },
  24281. FRa: function() {
  24282. if (this.Xb) for (var c = 0; c < this.Xb.Qk.length; c++);
  24283. },
  24284. GRa: function() {
  24285. if (this.Xb) for (var c = 0; c < this.Xb.Qk.length; c++);
  24286. },
  24287. ERa: function() {
  24288. if (this.Xb) for (var c = 0; c < this.Xb.Qk.length; c++);
  24289. },
  24290. sca: function(c) {
  24291. c && this.Xb && ( - 1 < this.Xb.Qk.indexOf(c) || this.Xb.Qk.splice(0, 0, c))
  24292. },
  24293. Fca: function(c) {
  24294. if (!this.Xb || !c || -1 == this.Xb.Qk.indexOf(c)) return t;
  24295. if (this.Xb.ki) {
  24296. if (!this.Xb.ki.p_() || !c.o_()) return t;
  24297. this.Xb.ki = s;
  24298. this.B$(c);
  24299. return q
  24300. }
  24301. if (!c.o_()) return t;
  24302. this.B$(c);
  24303. return q
  24304. },
  24305. B$: function(c) {
  24306. C.Sc.Xr ? (this.Xb.ki = c, this.Nq = c.string || "", c = prompt("please enter your word:", this.Nq), c != s && this.fY(c), this.EH("\n", 1)) : (this.Xb.ki = c, this.Nq = c.string || "", this.ve.focus(), this.ve.value = this.Nq, this.Ira());
  24307. },
  24308. Ira: function() { / msie /i.test(navigator.userAgent) ? (this.ve.style.left = this.kw.x + "px", this.ve.style.top = this.kw.y + "px") : this.ve.DJ(this.kw.x, this.kw.y)
  24309. },
  24310. lda: function(c) {
  24311. if (!this.Xb || !c || this.Xb.ki != c || !c.p_()) return t;
  24312. this.Xb.ki = s;
  24313. C.Pb.focus();
  24314. return q
  24315. },
  24316. aR: function(c) {
  24317. this.Xb && c && -1 != this.Xb.Qk.indexOf(c) && (this.Xb.ki && c == this.Xb.ki && (this.Xb.ki = s), C.Id(this.Xb.Qk, c))
  24318. },
  24319. n1a: function(c) {
  24320. 32 > c ? c == C.Uy.Gca ? this.nda() : c == C.Uy.c0 && this.EH("\n", 1) : 255 > c && this.EH(String.fromCharCode(c), 1)
  24321. }
  24322. });
  24323. C.mT.Dma = C.O.extend({
  24324. ki: s,
  24325. Qk: s,
  24326. ctor: function() {
  24327. this.Qk = []
  24328. },
  24329. wSa: function(c) {
  24330. for (var d = 0; d < this.Qk.length; d++) if (this.Qk[d] == c) return d;
  24331. return s
  24332. }
  24333. });
  24334. C.Kp = new C.mT;
  24335. document.body ? C.Kp.j() : C.qb(window, "load",
  24336. function() {
  24337. C.Kp.j()
  24338. },
  24339. t);
  24340. C.BNa = C.O.extend({
  24341. bga: B(t),
  24342. dga: B(t),
  24343. P1: B(t),
  24344. cga: B(t),
  24345. AEa: B(t)
  24346. });
  24347. C.Hj = C.fa.extend({
  24348. delegate: s,
  24349. gP: s,
  24350. $Oa: s,
  24351. Ni: "",
  24352. Dw: "",
  24353. IL: 0,
  24354. qa: "TextFieldTTF",
  24355. ctor: function(c, d, f, g, h) {
  24356. this.gP = C.color(127, 127, 127);
  24357. C.Kp.sca(this);
  24358. C.fa.prototype.ctor.call(this);
  24359. h !== m ? (this.WCa("", d, f, g, h), c && this.Di(c)) : g === m && f !== m && (this.sf("", d, f), c && this.Di(c))
  24360. },
  24361. ZB: A("delegate"),
  24362. bq: x("delegate"),
  24363. YB: A("IL"),
  24364. ITa: A("gP"),
  24365. F3a: x("gP"),
  24366. WCa: function(c, d, f, g, h) {
  24367. switch (arguments.length) {
  24368. case 5:
  24369. return c && this.Di(c),
  24370. this.sf(this.Dw, g, h, d, f);
  24371. case 3:
  24372. return c && this.Di(c),
  24373. this.sf(this.Dw, arguments[1], arguments[2]);
  24374. default:
  24375. e("Argument must be non-nil ")
  24376. }
  24377. },
  24378. sa: function(c) {
  24379. this.Ni = (c = String(c)) || "";
  24380. this.Ni.length ? C.fa.prototype.sa.call(this, this.Ni) : C.fa.prototype.sa.call(this, this.Dw);
  24381. this.IL = this.Ni.length
  24382. },
  24383. Wb: A("Ni"),
  24384. Di: function(c) {
  24385. this.Dw = c || "";
  24386. this.Ni.length || C.fa.prototype.sa.call(this, this.Dw)
  24387. },
  24388. cC: A("Dw"),
  24389. ka: function(c) {
  24390. c = c || C.t;
  24391. if (this.Ni && 0 < this.Ni.length) C.fa.prototype.ka.call(this, c);
  24392. else {
  24393. var d = this.color;
  24394. this.color = this.gP;
  24395. C.L === C.cb && this.JO();
  24396. C.fa.prototype.ka.call(this, c);
  24397. this.color = d
  24398. }
  24399. },
  24400. J: function(c) {
  24401. this._super(c)
  24402. },
  24403. pH: function() {
  24404. return C.Kp.Fca(this)
  24405. },
  24406. nP: function() {
  24407. return C.Kp.lda(this)
  24408. },
  24409. o_: function() {
  24410. return this.delegate ? !this.delegate.bga(this) : q
  24411. },
  24412. Dya: u(),
  24413. p_: function() {
  24414. return this.delegate ? !this.delegate.dga(this) : q
  24415. },
  24416. Eya: u(),
  24417. mP: function() {
  24418. var c = this.Ni.length;
  24419. if (0 != c && (!this.delegate || !this.delegate.cga(this, this.Ni[c - 1], 1))) 1 >= c ? (this.Ni = "", this.IL = 0, C.fa.prototype.sa.call(this, this.Dw)) : this.string = this.Ni.substring(0, c - 1)
  24420. },
  24421. aR: function() {
  24422. C.Kp.aR(this)
  24423. },
  24424. lI: function(c) {
  24425. var d = c;
  24426. c = d.indexOf("\n"); - 1 < c && (d = d.substring(0, c));
  24427. if (0 < d.length) {
  24428. if (this.delegate && this.delegate.P1(this, d, d.length)) return;
  24429. d = this.Ni + d;
  24430. this.IL = d.length;
  24431. this.string = d
  24432. } - 1 != c && (!this.delegate || !this.delegate.P1(this, "\n", 1)) && this.nP()
  24433. },
  24434. o0: A("Ni"),
  24435. p1: u(),
  24436. mfa: u(),
  24437. nfa: u(),
  24438. lfa: u()
  24439. });
  24440. H = C.Hj.prototype;
  24441. C.e(H, "charCount", H.YB);
  24442. C.e(H, "placeHolder", H.cC, H.Di);
  24443. C.Hj.create = function(c, d, f, g, h) {
  24444. return new C.Hj(c, d, f, g, h)
  24445. };
  24446. C.FM = C.Cma;
  24447. C.PF = "Arial";
  24448. C.T$ = t;
  24449. C.af = C.ha.extend({
  24450. Wc: t,
  24451. Xc: s,
  24452. Xf: s,
  24453. Sj: t,
  24454. qa: "MenuItem",
  24455. ctor: function(c, d) {
  24456. var f = C.ha.prototype;
  24457. f.ctor.call(this);
  24458. this.Xf = this.Xc = s;
  24459. this.Wc = this.Sj = t;
  24460. f.S.call(this, 0.5, 0.5);
  24461. this.Xc = d || s;
  24462. if (this.Xf = c || s) this.Wc = q
  24463. },
  24464. oQ: A("Sj"),
  24465. $d: u(),
  24466. qg: B(t),
  24467. pJ: function(c, d) {
  24468. this.Xc = d;
  24469. this.Xf = c
  24470. },
  24471. isEnabled: A("Wc"),
  24472. Ib: x("Wc"),
  24473. jI: function(c, d) {
  24474. this.anchorY = this.anchorX = 0.5;
  24475. this.Xc = d;
  24476. this.Xf = c;
  24477. this.Wc = q;
  24478. this.Sj = t;
  24479. return q
  24480. },
  24481. rect: function() {
  24482. var c = this.ma,
  24483. d = this.o,
  24484. f = this.Ab;
  24485. return C.rect(c.x - d.width * f.x, c.y - d.height * f.y, d.width, d.height)
  24486. },
  24487. selected: function() {
  24488. this.Sj = q
  24489. },
  24490. qo: function() {
  24491. this.Sj = t
  24492. },
  24493. pha: function(c, d) {
  24494. this.Xc = d;
  24495. this.Xf = c
  24496. },
  24497. kH: function() {
  24498. if (this.Wc) {
  24499. var c = this.Xc,
  24500. d = this.Xf;
  24501. if (d) if (c && "string" == typeof d) c[d](this);
  24502. else c && "function" == typeof d ? d.call(c, this) : d(this)
  24503. }
  24504. }
  24505. });
  24506. H = C.af.prototype;
  24507. C.e(H, "enabled", H.isEnabled, H.Ib);
  24508. C.af.create = function(c, d) {
  24509. return new C.af(c, d)
  24510. };
  24511. C.vv = C.af.extend({
  24512. Pz: s,
  24513. ee: s,
  24514. aua: 0,
  24515. kF: s,
  24516. ctor: function(c, d, f) {
  24517. C.af.prototype.ctor.call(this, d, f);
  24518. this.ee = this.Pz = s;
  24519. this.aua = 0;
  24520. this.kF = s;
  24521. c && (this.lG = 1, this.kF = C.color.WHITE, this.Pz = C.color(126, 126, 126), this.BR(c), this.cascadeOpacity = this.cascadeColor = q)
  24522. },
  24523. sAa: A("Pz"),
  24524. nHa: x("Pz"),
  24525. QAa: A("ee"),
  24526. BR: function(c) {
  24527. c && (this.q(c), c.anchorX = 0, c.anchorY = 0, this.width = c.width, this.height = c.height);
  24528. this.ee && this.removeChild(this.ee, q);
  24529. this.ee = c
  24530. },
  24531. Ib: function(c) {
  24532. if (this.Wc != c) {
  24533. var d = this.ee;
  24534. c ? d.color = this.kF: (this.kF = d.color, d.color = this.Pz)
  24535. }
  24536. C.af.prototype.Ib.call(this, c)
  24537. },
  24538. K: function(c) {
  24539. this.ee.opacity = c
  24540. },
  24541. rb: function() {
  24542. return this.ee.opacity
  24543. },
  24544. G: function(c) {
  24545. this.ee.color = c
  24546. },
  24547. Xa: function() {
  24548. return this.ee.color
  24549. },
  24550. $ea: function(c, d, f) {
  24551. this.jI(d, f);
  24552. this.lG = 1;
  24553. this.kF = C.color.WHITE;
  24554. this.Pz = C.color(126, 126, 126);
  24555. this.BR(c);
  24556. return this.cascadeOpacity = this.cascadeColor = q
  24557. },
  24558. sa: function(c) {
  24559. this.ee.string = c;
  24560. this.width = this.ee.width;
  24561. this.height = this.ee.height
  24562. },
  24563. Wb: function() {
  24564. return this.ee.string
  24565. },
  24566. kH: function() {
  24567. this.Wc && (this.yk(), this.scale = this.lG, C.af.prototype.kH.call(this))
  24568. },
  24569. selected: function() {
  24570. if (this.Wc) {
  24571. C.af.prototype.selected.call(this);
  24572. var c = this.xP(C.$K);
  24573. c ? this.yJ(c) : this.lG = this.scale;
  24574. c = C.ae.create(0.1, 1.2 * this.lG);
  24575. c.Qm(C.$K);
  24576. this.Ya(c)
  24577. }
  24578. },
  24579. qo: function() {
  24580. if (this.Wc) {
  24581. C.af.prototype.qo.call(this);
  24582. this.VIa(C.$K);
  24583. var c = C.ae.create(0.1, this.lG);
  24584. c.Qm(C.$K);
  24585. this.Ya(c)
  24586. }
  24587. }
  24588. });
  24589. H = C.vv.prototype;
  24590. C.e(H, "string", H.Wb, H.sa);
  24591. C.e(H, "disabledColor", H.sAa, H.nHa);
  24592. C.e(H, "label", H.QAa, H.BR);
  24593. C.vv.create = function(c, d, f) {
  24594. return new C.vv(c, d, f)
  24595. };
  24596. C.E6 = C.vv.extend({
  24597. ctor: function(c, d, f, g, h, k, n) {
  24598. var p;
  24599. c && 0 < c.length && (p = C.Gl.create(c, d, f, g, h));
  24600. C.vv.prototype.ctor.call(this, p, k, n)
  24601. },
  24602. sf: function(c, d, f, g, h, k, n) { (!c || 0 == c.length) && e("cc.MenuItemAtlasFont.initWithString(): value should be non-null and its length should be greater than 0");
  24603. var p = new C.Gl;
  24604. p.sf(c, d, f, g, h);
  24605. this.$ea(p, k, n);
  24606. return q
  24607. }
  24608. });
  24609. C.E6.create = function(c, d, f, g, h, k, n) {
  24610. return new C.E6(c, d, f, g, h, k, n)
  24611. };
  24612. C.uv = C.vv.extend({
  24613. Pc: s,
  24614. Oc: s,
  24615. ctor: function(c, d, f) {
  24616. var g;
  24617. c && 0 < c.length ? (this.Oc = C.PF, this.Pc = C.FM, g = C.fa.create(c, this.Oc, this.Pc)) : (this.Pc = 0, this.Oc = "");
  24618. C.vv.prototype.ctor.call(this, g, d, f)
  24619. },
  24620. sf: function(c, d, f) { (!c || 0 == c.length) && e("Value should be non-null and its length should be greater than 0");
  24621. this.Oc = C.PF;
  24622. this.Pc = C.FM;
  24623. c = C.fa.create(c, this.Oc, this.Pc);
  24624. this.$ea(c, d, f);
  24625. return q
  24626. },
  24627. Od: function(c) {
  24628. this.Pc = c;
  24629. this.$aa()
  24630. },
  24631. Vn: A("Pc"),
  24632. Zd: function(c) {
  24633. this.Oc = c;
  24634. this.$aa()
  24635. },
  24636. Fp: A("Oc"),
  24637. $aa: function() {
  24638. var c = C.fa.create(this.ee.string, this.Oc, this.Pc);
  24639. this.BR(c)
  24640. }
  24641. });
  24642. C.uv.Od = function(c) {
  24643. C.FM = c
  24644. };
  24645. C.uv.fontSize = function() {
  24646. return C.FM
  24647. };
  24648. C.uv.Zd = function(c) {
  24649. C.T$ && (C.PF = "");
  24650. C.PF = c;
  24651. C.T$ = q
  24652. };
  24653. H = C.uv.prototype;
  24654. C.e(H, "fontSize", H.Vn, H.Od);
  24655. C.e(H, "fontName", H.Fp, H.Zd);
  24656. C.uv.fontName = function() {
  24657. return C.PF
  24658. };
  24659. C.uv.create = function(c, d, f) {
  24660. return new C.uv(c, d, f)
  24661. };
  24662. C.Zy = C.af.extend({
  24663. Fg: s,
  24664. Zi: s,
  24665. Li: s,
  24666. ctor: function(c, d, f, g, h) {
  24667. C.af.prototype.ctor.call(this);
  24668. this.Li = this.Zi = this.Fg = s;
  24669. if (d !== m) {
  24670. var k, n, p;
  24671. h !== m ? (k = f, p = g, n = h) : g !== m && "function" === typeof g ? (k = f, p = g) : g !== m && "function" === typeof f ? (n = g, p = f, k = d) : f === m && (k = d);
  24672. this.afa(c, d, k, p, n)
  24673. }
  24674. },
  24675. kBa: A("Fg"),
  24676. V2: function(c) {
  24677. this.Fg != c && (c && (this.q(c, 0, C.bna), c.anchorX = 0, c.anchorY = 0), this.Fg && this.removeChild(this.Fg, q), this.Fg = c, this.width = this.Fg.width, this.height = this.Fg.height, this.EO(), c.eD && !c.Aa && c.ye(function(c) {
  24678. this.width = c.width;
  24679. this.height = c.height
  24680. },
  24681. this))
  24682. },
  24683. KBa: A("Zi"),
  24684. k3: function(c) {
  24685. this.Zi != c && (c && (this.q(c, 0, C.foa), c.anchorX = 0, c.anchorY = 0), this.Zi && this.removeChild(this.Zi, q), this.Zi = c, this.EO())
  24686. },
  24687. tAa: A("Li"),
  24688. O2: function(c) {
  24689. this.Li != c && (c && (this.q(c, 0, C.Gla), c.anchorX = 0, c.anchorY = 0), this.Li && this.removeChild(this.Li, q), this.Li = c, this.EO())
  24690. },
  24691. afa: function(c, d, f, g, h) {
  24692. this.jI(g, h);
  24693. this.V2(c);
  24694. this.k3(d);
  24695. this.O2(f);
  24696. if (c = this.Fg) this.width = c.width,
  24697. this.height = c.height,
  24698. c.eD && !c.Aa && c.ye(function(c) {
  24699. this.width = c.width;
  24700. this.height = c.height;
  24701. this.cascadeOpacity = this.cascadeColor = q
  24702. },
  24703. this);
  24704. return this.cascadeOpacity = this.cascadeColor = q
  24705. },
  24706. G: function(c) {
  24707. this.Fg.color = c;
  24708. this.Zi && (this.Zi.color = c);
  24709. this.Li && (this.Li.color = c)
  24710. },
  24711. Xa: function() {
  24712. return this.Fg.color
  24713. },
  24714. K: function(c) {
  24715. this.Fg.opacity = c;
  24716. this.Zi && (this.Zi.opacity = c);
  24717. this.Li && (this.Li.opacity = c)
  24718. },
  24719. rb: function() {
  24720. return this.Fg.opacity
  24721. },
  24722. selected: function() {
  24723. C.af.prototype.selected.call(this);
  24724. this.Fg && (this.Li && (this.Li.visible = t), this.Zi ? (this.Fg.visible = t, this.Zi.visible = q) : this.Fg.visible = q)
  24725. },
  24726. qo: function() {
  24727. C.af.prototype.qo.call(this);
  24728. this.Fg && (this.Fg.visible = q, this.Zi && (this.Zi.visible = t), this.Li && (this.Li.visible = t))
  24729. },
  24730. Ib: function(c) {
  24731. this.Wc != c && (C.af.prototype.Ib.call(this, c), this.EO())
  24732. },
  24733. EO: function() {
  24734. var c = this.Fg,
  24735. d = this.Zi,
  24736. f = this.Li;
  24737. this.Wc ? (c && (c.visible = q), d && (d.visible = t), f && (f.visible = t)) : f ? (c && (c.visible = t), d && (d.visible = t), f && (f.visible = q)) : (c && (c.visible = q), d && (d.visible = t))
  24738. }
  24739. });
  24740. H = C.Zy.prototype;
  24741. C.e(H, "normalImage", H.kBa, H.V2);
  24742. C.e(H, "selectedImage", H.KBa, H.k3);
  24743. C.e(H, "disabledImage", H.tAa, H.O2);
  24744. C.Zy.create = function(c, d, f, g, h) {
  24745. return new C.Zy(c, d, f, g, h || m)
  24746. };
  24747. C.wT = C.Zy.extend({
  24748. ctor: function(c, d, f, g, h) {
  24749. var k = s,
  24750. n = s,
  24751. p = s,
  24752. r = s,
  24753. v = s;
  24754. c === m ? C.Zy.prototype.ctor.call(this) : (k = C.u.create(c), d && (n = C.u.create(d)), g === m ? r = f: h === m ? (r = f, v = g) : h && (p = C.u.create(f), r = g, v = h), C.Zy.prototype.ctor.call(this, k, n, p, r, v))
  24755. },
  24756. PHa: function(c) {
  24757. this.V2(C.u.create(c))
  24758. },
  24759. jIa: function(c) {
  24760. this.k3(C.u.create(c))
  24761. },
  24762. oHa: function(c) {
  24763. this.O2(C.u.create(c))
  24764. },
  24765. QXa: function(c, d, f, g, h) {
  24766. var k = s,
  24767. n = s,
  24768. p = s;
  24769. c && (k = C.u.create(c));
  24770. d && (n = C.u.create(d));
  24771. f && (p = C.u.create(f));
  24772. return this.afa(k, n, p, g, h)
  24773. }
  24774. });
  24775. C.wT.create = function(c, d, f, g, h) {
  24776. return new C.wT(c, d, f, g, h)
  24777. };
  24778. C.yT = C.af.extend({
  24779. vg: s,
  24780. jm: 0,
  24781. Eb: s,
  24782. ya: s,
  24783. ctor: function() {
  24784. var c = arguments.length,
  24785. d, f;
  24786. "function" === typeof arguments[c - 2] ? (d = arguments[c - 2], f = arguments[c - 1], c -= 2) : "function" === typeof arguments[c - 1] && (d = arguments[c - 1], c -= 1);
  24787. C.af.prototype.ctor.call(this, d, f);
  24788. this.jm = 0;
  24789. this.vg = [];
  24790. this.Eb = 0;
  24791. this.ya = C.color.WHITE;
  24792. if (0 < c) {
  24793. d = this.vg;
  24794. for (f = d.length = 0; f < c; f++) arguments[f] && d.push(arguments[f]);
  24795. this.jm = C.EU;
  24796. this.lJ(0);
  24797. this.Pu(q);
  24798. this.Qu(q)
  24799. }
  24800. },
  24801. rb: A("Eb"),
  24802. K: function(c) {
  24803. this.Eb = c;
  24804. if (this.vg && 0 < this.vg.length) for (var d = 0; d < this.vg.length; d++) this.vg[d].opacity = c;
  24805. this.ya.a = c
  24806. },
  24807. Xa: function() {
  24808. var c = this.ya;
  24809. return C.color(c.r, c.g, c.b, c.a)
  24810. },
  24811. G: function(c) {
  24812. var d = this.ya;
  24813. d.r = c.r;
  24814. d.g = c.g;
  24815. d.b = c.b;
  24816. if (this.vg && 0 < this.vg.length) for (d = 0; d < this.vg.length; d++) this.vg[d].G(c);
  24817. c.a !== m && !c.jx && this.K(c.a)
  24818. },
  24819. LBa: A("jm"),
  24820. lJ: function(c) {
  24821. if (c != this.jm) {
  24822. this.jm = c; (c = this.lj(C.k5)) && c.Lm(t);
  24823. c = this.vg[this.jm];
  24824. this.q(c, 0, C.k5);
  24825. var d = c.width,
  24826. f = c.height;
  24827. this.width = d;
  24828. this.height = f;
  24829. c.p(d / 2, f / 2)
  24830. }
  24831. },
  24832. LWa: A("vg"),
  24833. i5a: x("vg"),
  24834. fQ: function(c) {
  24835. var d = c.length;
  24836. "function" === typeof c[c.length - 2] ? (this.jI(c[c.length - 2], c[c.length - 1]), d -= 2) : "function" === typeof c[c.length - 1] ? (this.jI(c[c.length - 1], s), d -= 1) : this.jI(s, s);
  24837. for (var f = this.vg,
  24838. g = f.length = 0; g < d; g++) c[g] && f.push(c[g]);
  24839. this.jm = C.EU;
  24840. this.lJ(0);
  24841. return this.cascadeOpacity = this.cascadeColor = q
  24842. },
  24843. iQa: function(c) {
  24844. this.vg.push(c)
  24845. },
  24846. kH: function() {
  24847. this.Wc && this.lJ((this.jm + 1) % this.vg.length);
  24848. C.af.prototype.kH.call(this)
  24849. },
  24850. selected: function() {
  24851. C.af.prototype.selected.call(this);
  24852. this.vg[this.jm].selected()
  24853. },
  24854. qo: function() {
  24855. C.af.prototype.qo.call(this);
  24856. this.vg[this.jm].qo()
  24857. },
  24858. Ib: function(c) {
  24859. if (this.Wc != c) {
  24860. C.af.prototype.Ib.call(this, c);
  24861. var d = this.vg;
  24862. if (d && 0 < d.length) for (var f = 0; f < d.length; f++) d[f].enabled = c
  24863. }
  24864. },
  24865. e3a: function() {
  24866. return this.vg[this.jm]
  24867. },
  24868. Z: function() {
  24869. C.A.prototype.Z.call(this);
  24870. this.lJ(this.jm)
  24871. }
  24872. });
  24873. H = C.yT.prototype;
  24874. C.e(H, "selectedIndex", H.LBa, H.lJ);
  24875. C.yT.create = function() {
  24876. 0 < arguments.length && arguments[arguments.length - 1] == s && C.log("parameters should not be ending with null in Javascript");
  24877. var c = new C.yT;
  24878. c.fQ(Array.prototype.slice.apply(arguments));
  24879. return c
  24880. };
  24881. C.oE = 0;
  24882. C.nE = 1;
  24883. C.uMa = -128;
  24884. C.eK = 5;
  24885. C.Yy = C.ai.extend({
  24886. enabled: t,
  24887. ya: s,
  24888. Eb: 0,
  24889. Gf: s,
  24890. zb: -1,
  24891. ui: s,
  24892. qa: "Menu",
  24893. ctor: function(c) {
  24894. C.ai.prototype.ctor.call(this);
  24895. this.ya = C.color.WHITE;
  24896. this.enabled = t;
  24897. this.Eb = 255;
  24898. this.Gf = s;
  24899. this.zb = -1;
  24900. this.ui = C.Oa.create({
  24901. event: C.Oa.Gs,
  24902. yy: q,
  24903. nc: this.Vta,
  24904. yd: this.Zta,
  24905. cd: this.Xta,
  24906. Xe: this.Wta
  24907. });
  24908. 0 < arguments.length && arguments[arguments.length - 1] == s && C.log("parameters should not be ending with null in Javascript");
  24909. var d = arguments.length,
  24910. f;
  24911. if (0 == d) f = [];
  24912. else if (1 == d) f = c instanceof Array ? c: [c];
  24913. else if (1 < d) {
  24914. f = [];
  24915. for (var g = 0; g < d; g++) arguments[g] && f.push(arguments[g])
  24916. }
  24917. this.Vea(f)
  24918. },
  24919. Z: function() {
  24920. var c = this.ui;
  24921. c.Wi || C.Ka.addListener(c, this);
  24922. C.A.prototype.Z.call(this)
  24923. },
  24924. Xa: function() {
  24925. var c = this.ya;
  24926. return C.color(c.r, c.g, c.b, c.a)
  24927. },
  24928. G: function(c) {
  24929. var d = this.ya;
  24930. d.r = c.r;
  24931. d.g = c.g;
  24932. d.b = c.b;
  24933. if ((d = this.l) && 0 < d.length) for (var f = 0; f < d.length; f++) d[f].G(c);
  24934. c.a !== m && !c.jx && this.K(c.a)
  24935. },
  24936. rb: A("Eb"),
  24937. K: function(c) {
  24938. this.Eb = c;
  24939. var d = this.l;
  24940. if (d && 0 < d.length) for (var f = 0; f < d.length; f++) d[f].K(c);
  24941. this.ya.a = c
  24942. },
  24943. isEnabled: A("enabled"),
  24944. Ib: x("enabled"),
  24945. fQ: function(c) {
  24946. var d = [];
  24947. if (c) for (var f = 0; f < c.length; f++) c[f] && d.push(c[f]);
  24948. return this.Vea(d)
  24949. },
  24950. Vea: function(c) {
  24951. if (C.ai.prototype.j.call(this)) {
  24952. this.enabled = q;
  24953. var d = C.KJ;
  24954. this.p(d.width / 2, d.height / 2);
  24955. this.Ca(d);
  24956. this.S(0.5, 0.5);
  24957. this.Hm(q);
  24958. if (c) for (d = 0; d < c.length; d++) this.q(c[d], d);
  24959. this.Gf = s;
  24960. this.zb = C.oE;
  24961. return this.cascadeOpacity = this.cascadeColor = q
  24962. }
  24963. return t
  24964. },
  24965. q: function(c, d, f) {
  24966. c instanceof C.af || e("cc.Menu.addChild() : Menu only supports MenuItem objects as children");
  24967. C.qe.prototype.q.call(this, c, d, f)
  24968. },
  24969. Kwa: function() {
  24970. this.RZ(C.eK)
  24971. },
  24972. RZ: function(c) {
  24973. var d = -c,
  24974. f = this.l,
  24975. g, h, k, n;
  24976. if (f && 0 < f.length) {
  24977. h = 0;
  24978. for (g = f.length; h < g; h++) d += f[h].height * f[h].scaleY + c;
  24979. var p = d / 2;
  24980. h = 0;
  24981. for (g = f.length; h < g; h++) n = f[h],
  24982. k = n.height,
  24983. d = n.scaleY,
  24984. n.p(0, p - k * d / 2),
  24985. p -= k * d + c
  24986. }
  24987. },
  24988. Hwa: function() {
  24989. this.QZ(C.eK)
  24990. },
  24991. QZ: function(c) {
  24992. var d = -c,
  24993. f = this.l,
  24994. g, h, k, n;
  24995. if (f && 0 < f.length) {
  24996. g = 0;
  24997. for (h = f.length; g < h; g++) d += f[g].width * f[g].scaleX + c;
  24998. var p = -d / 2;
  24999. g = 0;
  25000. for (h = f.length; g < h; g++) n = f[g],
  25001. d = n.scaleX,
  25002. k = f[g].width,
  25003. n.p(p + k * d / 2, 0),
  25004. p += k * d + c
  25005. }
  25006. },
  25007. Iwa: function() {
  25008. 0 < arguments.length && arguments[arguments.length - 1] == s && C.log("parameters should not be ending with null in Javascript");
  25009. for (var c = [], d = 0; d < arguments.length; d++) c.push(arguments[d]);
  25010. var f = -5,
  25011. g = 0,
  25012. h = 0,
  25013. k = 0,
  25014. n, p, r, v = this.l;
  25015. if (v && 0 < v.length) {
  25016. d = 0;
  25017. for (r = v.length; d < r; d++) if (! (g >= c.length) && (n = c[g])) p = v[d].height,
  25018. h = h >= p || isNaN(p) ? h: p,
  25019. ++k,
  25020. k >= n && (f += h + 5, h = k = 0, ++g)
  25021. }
  25022. var y = C.Q.aa,
  25023. z = n = h = g = 0,
  25024. D = 0,
  25025. f = f / 2;
  25026. if (v && 0 < v.length) {
  25027. d = 0;
  25028. for (r = v.length; d < r; d++) {
  25029. var E = v[d];
  25030. 0 == n && (n = c[g], D = z = y.width / (1 + n));
  25031. p = E.Dg();
  25032. h = h >= p || isNaN(p) ? h: p;
  25033. E.p(D - y.width / 2, f - p / 2);
  25034. D += z; ++k;
  25035. k >= n && (f -= h + 5, h = n = k = 0, ++g)
  25036. }
  25037. }
  25038. },
  25039. Jwa: function() {
  25040. 0 < arguments.length && arguments[arguments.length - 1] == s && C.log("parameters should not be ending with null in Javascript");
  25041. var c = [],
  25042. d;
  25043. for (d = 0; d < arguments.length; d++) c.push(arguments[d]);
  25044. var f = [],
  25045. g = [],
  25046. h = -10,
  25047. k = -5,
  25048. n = 0,
  25049. p = 0,
  25050. r = 0,
  25051. v,
  25052. y,
  25053. z,
  25054. D,
  25055. E = this.l;
  25056. if (E && 0 < E.length) {
  25057. d = 0;
  25058. for (z = E.length; d < z; d++) if (y = E[d], !(n >= c.length) && (v = c[n])) D = y.width,
  25059. p = p >= D || isNaN(D) ? p: D,
  25060. k += y.height + 5,
  25061. ++r,
  25062. r >= v && (f.push(p), g.push(k), h += p + 10, p = r = 0, k = -5, ++n)
  25063. }
  25064. k = C.Q.aa;
  25065. v = p = n = 0;
  25066. var h = -h / 2,
  25067. F = 0;
  25068. if (E && 0 < E.length) {
  25069. d = 0;
  25070. for (z = E.length; d < z; d++) y = E[d],
  25071. 0 == v && (v = c[n], F = g[n]),
  25072. D = y.ef(),
  25073. p = p >= D || isNaN(D) ? p: D,
  25074. y.p(h + f[n] / 2, F - k.height / 2),
  25075. F -= y.height + 10,
  25076. ++r,
  25077. r >= v && (h += p + 5, p = v = r = 0, ++n)
  25078. }
  25079. },
  25080. removeChild: function(c, d) {
  25081. c != s && (c instanceof C.af ? (this.Gf == c && (this.Gf = s), C.A.prototype.removeChild.call(this, c, d)) : C.log("cc.Menu.removeChild():Menu only supports MenuItem objects as children"))
  25082. },
  25083. Vta: function(c, d) {
  25084. var f = d.Cf;
  25085. if (f.zb != C.oE || !f.Ja || !f.enabled) return t;
  25086. for (var g = f.parent; g != s; g = g.parent) if (!g.Ja) return t;
  25087. f.Gf = f.naa(c);
  25088. return f.Gf ? (f.zb = C.nE, f.Gf.selected(), q) : t
  25089. },
  25090. Xta: function(c, d) {
  25091. var f = d.Cf;
  25092. f.zb !== C.nE ? C.log("cc.Menu.onTouchEnded(): invalid state") : (f.Gf && (f.Gf.qo(), f.Gf.kH()), f.zb = C.oE)
  25093. },
  25094. Wta: function(c, d) {
  25095. var f = d.Cf;
  25096. f.zb !== C.nE ? C.log("cc.Menu.onTouchCancelled(): invalid state") : (this.Gf && f.Gf.qo(), f.zb = C.oE)
  25097. },
  25098. Zta: function(c, d) {
  25099. var f = d.Cf;
  25100. if (f.zb !== C.nE) C.log("cc.Menu.onTouchMoved(): invalid state");
  25101. else {
  25102. var g = f.naa(c);
  25103. g != f.Gf && (f.Gf && f.Gf.qo(), f.Gf = g, f.Gf && f.Gf.selected())
  25104. }
  25105. },
  25106. Na: function() {
  25107. this.zb == C.nE && (this.Gf && (this.Gf.qo(), this.Gf = s), this.zb = C.oE);
  25108. C.A.prototype.Na.call(this)
  25109. },
  25110. $d: u(),
  25111. qg: B(t),
  25112. naa: function(c) {
  25113. c = c.mh();
  25114. var d = this.l,
  25115. f;
  25116. if (d && 0 < d.length) for (var g = 0; g < d.length; g++) if (f = d[g], f.Ja && f.isEnabled()) {
  25117. var h = f.wi(c),
  25118. k = f.rect();
  25119. k.x = 0;
  25120. k.y = 0;
  25121. if (C.Ju(k, h)) return f
  25122. }
  25123. return s
  25124. }
  25125. });
  25126. H = C.Yy.prototype;
  25127. C.Yy.create = function(c) {
  25128. var d = arguments.length;
  25129. 0 < d && arguments[d - 1] == s && C.log("parameters should not be ending with null in Javascript");
  25130. return 0 == d ? new C.Yy: 1 == d ? new C.Yy(c) : new C.Yy(Array.prototype.slice.call(arguments, 0))
  25131. };
  25132. C.pNa = 0;
  25133. C.lNa = 1;
  25134. C.oNa = 2;
  25135. C.mNa = 3;
  25136. C.nNa = 4;
  25137. C.kNa = 5;
  25138. C.q6a = function(c, d, f) {
  25139. var g = 2;
  25140. if (g + 1 > d) return t;
  25141. c = new C.jka(c);
  25142. c.DR(g);
  25143. f.type = c.$();
  25144. g += 10;
  25145. if (g + 4 + 1 > d) return t;
  25146. c.DR(g);
  25147. f.width = c.dGa();
  25148. f.height = c.cGa();
  25149. f.pixelDepth = c.$();
  25150. if (g + 5 + 1 > d) return t;
  25151. d = c.$();
  25152. f.Cda = 0;
  25153. d & 32 && (f.Cda = 1);
  25154. return q
  25155. };
  25156. C.r6a = function(c, d, f) {
  25157. var g, h;
  25158. g = 0 | f.pixelDepth / 2;
  25159. h = f.height * f.width * g;
  25160. if (18 + h > d) return t;
  25161. f.hk = C.dL(c, 18, 18 + h);
  25162. if (3 <= g) for (c = 0; c < h; c += g) d = f.hk[c],
  25163. f.hk[c] = f.hk[c + 2],
  25164. f.hk[c + 2] = d;
  25165. return q
  25166. };
  25167. C.t6a = function(c) {
  25168. var d, f;
  25169. if (8 !== c.pixelDepth) {
  25170. var g = c.pixelDepth / 8,
  25171. h = new Uint8Array(c.height * c.width);
  25172. if (h !== s) {
  25173. for (f = d = 0; f < c.width * c.height; d += g, f++) h[f] = 0.3 * c.hk[d] + 0.59 * c.hk[d + 1] + 0.11 * c.hk[d + 2];
  25174. c.pixelDepth = 8;
  25175. c.type = 3;
  25176. c.hk = h
  25177. }
  25178. }
  25179. };
  25180. C.o6a = function(c) {
  25181. c && (c.hk = s)
  25182. };
  25183. C.s6a = function(c, d, f) {
  25184. var g, h, k, n = 0,
  25185. p = 0,
  25186. r = 0,
  25187. v = [],
  25188. y = 0,
  25189. z = 18;
  25190. g = f.pixelDepth / 8;
  25191. h = f.height * f.width;
  25192. for (k = 0; k < h; k++) {
  25193. if (0 != y) y--,
  25194. p = 0 != r;
  25195. else {
  25196. if (z + 1 > d) break;
  25197. y = c[z];
  25198. z += 1; (r = y & 128) && (y -= 128);
  25199. p = 0
  25200. }
  25201. if (!p) {
  25202. if (z + g > d) break;
  25203. v = C.dL(c, z, z + g);
  25204. z += g;
  25205. 3 <= g && (p = v[0], v[0] = v[2], v[2] = p)
  25206. }
  25207. for (p = 0; p < g; p++) f.hk[n + p] = v[p];
  25208. n += g
  25209. }
  25210. return q
  25211. };
  25212. C.p6a = function(c) {
  25213. for (var d = c.width * (c.pixelDepth / 8), f = 0; f < c.height / 2; f++) {
  25214. var g = C.dL(c.hk, f * d, f * d + d);
  25215. C.S8(C.dL(c.hk, (c.height - (f + 1)) * d, d), c.hk, f * d);
  25216. C.S8(g, c.hk, (c.height - (f + 1)) * d)
  25217. }
  25218. c.Cda = 0
  25219. };
  25220. C.dL = function(c, d, f) {
  25221. return c instanceof Array ? c.slice(d, f) : c.subarray(d, f)
  25222. };
  25223. C.S8 = function(c, d, f) {
  25224. for (var g = 0; g < c.length; g++) d[f + g] = c[g]
  25225. };
  25226. C.jka = C.O.extend({
  25227. rz: s,
  25228. fb: 0,
  25229. ctor: x("rz"),
  25230. w3a: function(c) {
  25231. this.rz = c;
  25232. this.fb = 0
  25233. },
  25234. dTa: A("rz"),
  25235. KV: function(c) {
  25236. this.fb + Math.ceil(c / 8) < this.Ih.length || e(Error("Index out of bound"))
  25237. },
  25238. XV: function(c, d) {
  25239. var f = c + d + 1,
  25240. g = f >> 3;
  25241. this.KV(f);
  25242. var f = Math.pow(2, d - 1) - 1,
  25243. h = this.jY(c + d, 1, g),
  25244. k = this.jY(c, d, g),
  25245. n = 0,
  25246. p = 2,
  25247. r = 0;
  25248. do
  25249. for (var v = this.IN(++r, g), y = c % 8 || 8, z = 1 << y; z >>= 1;) v & z && (n += 1 / p),
  25250. p *= 2;
  25251. while (c -= y);
  25252. this.fb += g;
  25253. return k == (f << 1) + 1 ? n ? NaN: h ? -Infinity: Infinity: (1 + -2 * h) * (k || n ? !k ? Math.pow(2, -f + 1) * n: Math.pow(2, k - f) * (1 + n) : 0)
  25254. },
  25255. IN: function(c, d) {
  25256. return this.Ih[this.fb + d - c - 1]
  25257. },
  25258. VL: function(c, d) {
  25259. var f = this.jY(0, c, c / 8),
  25260. g = Math.pow(2, c);
  25261. this.fb += c / 8;
  25262. return d && f >= g / 2 ? f - g: f
  25263. },
  25264. NY: function(c, d) {
  25265. for (++d; --d; c = 1073741824 == ((c %= 2147483648) & 1073741824) ? 2 * c: 2 * (c - 1073741824) + 2147483648);
  25266. return c
  25267. },
  25268. jY: function(c, d, f) {
  25269. var g = (c + d) % 8,
  25270. h = c % 8,
  25271. k = f - (c >> 3) - 1;
  25272. c = f + ( - (c + d) >> 3);
  25273. var n = k - c;
  25274. d = this.IN(k, f) >> h & (1 << (n ? 8 - h: d)) - 1;
  25275. for (n && g && (d += (this.IN(c++, f) & (1 << g) - 1) << (n--<<3) - h); n;) d += this.NY(this.IN(c++, f), (n--<<3) - h);
  25276. return d
  25277. },
  25278. B1a: function() {
  25279. return this.VL(32, q)
  25280. },
  25281. cGa: function() {
  25282. return this.VL(32, t)
  25283. },
  25284. D1a: function() {
  25285. return this.XV(23, 8)
  25286. },
  25287. C1a: function() {
  25288. return this.VL(16, q)
  25289. },
  25290. dGa: function() {
  25291. return this.VL(16, t)
  25292. },
  25293. $: function() {
  25294. var c = this.Ih[this.fb];
  25295. this.fb += 1;
  25296. return c
  25297. },
  25298. y1a: function(c, d) {
  25299. return this.rz instanceof Array ? this.rz.slice(c, d) : this.rz.subarray(c, d)
  25300. },
  25301. DR: x("fb"),
  25302. hea: A("fb")
  25303. });
  25304. C.RK = 0;
  25305. C.PK = 1;
  25306. C.QK = 2;
  25307. C.OK = C.ha.extend({
  25308. zd: s,
  25309. B1: s,
  25310. CC: s,
  25311. dg: s,
  25312. rd: s,
  25313. Br: s,
  25314. qa: "TMXTiledMap",
  25315. ctor: function(c, d) {
  25316. C.A.prototype.ctor.call(this);
  25317. this.dg = C.size(0, 0);
  25318. this.rd = C.size(0, 0);
  25319. d !== m ? this.b1(c, d) : c !== m && this.$0(c)
  25320. },
  25321. s0: function() {
  25322. return C.size(this.dg.width, this.dg.height)
  25323. },
  25324. Mha: function(c) {
  25325. this.dg.width = c.width;
  25326. this.dg.height = c.height
  25327. },
  25328. RW: function() {
  25329. return this.dg.width
  25330. },
  25331. EY: function(c) {
  25332. this.dg.width = c
  25333. },
  25334. QW: function() {
  25335. return this.dg.height
  25336. },
  25337. DY: function(c) {
  25338. this.dg.height = c
  25339. },
  25340. eC: function() {
  25341. return C.size(this.rd.width, this.rd.height)
  25342. },
  25343. xia: function(c) {
  25344. this.rd.width = c.width;
  25345. this.rd.height = c.height
  25346. },
  25347. OF: function() {
  25348. return this.rd.width
  25349. },
  25350. EG: function(c) {
  25351. this.rd.width = c
  25352. },
  25353. NF: function() {
  25354. return this.rd.height
  25355. },
  25356. DG: function(c) {
  25357. this.rd.height = c
  25358. },
  25359. kVa: A("B1"),
  25360. y4a: x("B1"),
  25361. gea: A("CC"),
  25362. Qha: x("CC"),
  25363. KP: A("zd"),
  25364. HR: x("zd"),
  25365. $0: function(c) { (!c || 0 == c.length) && e("cc.TMXTiledMap.initWithTMXFile(): tmxFile should be non-null or non-empty string.");
  25366. this.height = this.width = 0;
  25367. c = C.CE.create(c);
  25368. if (!c) return t;
  25369. var d = c.Xw; (!d || 0 === d.length) && C.log("cc.TMXTiledMap.initWithTMXFile(): Map not found. Please check the filename.");
  25370. this.o9(c);
  25371. return q
  25372. },
  25373. b1: function(c, d) {
  25374. this.height = this.width = 0;
  25375. var f = C.CE.create(c, d),
  25376. g = f.Xw; (!g || 0 === g.length) && C.log("cc.TMXTiledMap.initWithXML(): Map not found. Please check the filename.");
  25377. this.o9(f);
  25378. return q
  25379. },
  25380. o9: function(c) {
  25381. this.dg = c.s0();
  25382. this.rd = c.eC();
  25383. this.B1 = c.orientation;
  25384. this.CC = c.gea();
  25385. this.zd = c.zd;
  25386. this.Br = c.Br;
  25387. var d = 0,
  25388. f = c.oi;
  25389. if (f) for (var g = s,
  25390. h = 0,
  25391. k = f.length; h < k; h++) if ((g = f[h]) && g.visible) g = this.gua(g, c),
  25392. this.q(g, d, d),
  25393. this.width = Math.max(this.width, g.width),
  25394. this.height = Math.max(this.height, g.height),
  25395. d++
  25396. },
  25397. mQa: function() {
  25398. for (var c = [], d = this.l, f = 0, g = d.length; f < g; f++) {
  25399. var h = d[f];
  25400. h && h instanceof C.BE && c.push(h)
  25401. }
  25402. return c
  25403. },
  25404. $Ua: function(c) { (!c || 0 === c.length) && e("cc.TMXTiledMap.getLayer(): layerName should be non-null or non-empty string.");
  25405. for (var d = this.l,
  25406. f = 0; f < d.length; f++) {
  25407. var g = d[f];
  25408. if (g && g.DQ == c) return g
  25409. }
  25410. return s
  25411. },
  25412. yVa: function(c) { (!c || 0 === c.length) && e("cc.TMXTiledMap.getObjectGroup(): groupName should be non-null or non-empty string.");
  25413. if (this.CC) for (var d = 0; d < this.CC.length; d++) {
  25414. var f = this.CC[d];
  25415. if (f && f.eI == c) return f
  25416. }
  25417. return s
  25418. },
  25419. z0: function(c) {
  25420. return this.zd[c.toString()]
  25421. },
  25422. p1a: function(c) {
  25423. return this.Br[c]
  25424. },
  25425. gua: function(c, d) {
  25426. var f = this.Tva(c, d),
  25427. f = C.BE.create(f, c, d);
  25428. c.iga = t;
  25429. f.DIa();
  25430. return f
  25431. },
  25432. Tva: function(c, d) {
  25433. var f = c.nb,
  25434. g = d.Xw;
  25435. if (g) for (var h = g.length - 1; 0 <= h; h--) {
  25436. var k = g[h];
  25437. if (k) for (var n = 0; n < f.height; n++) for (var p = 0; p < f.width; p++) {
  25438. var r = c.$i[p + f.width * n];
  25439. if (0 != r && (r & C.kU) >>> 0 >= k.Ex) return k
  25440. }
  25441. }
  25442. C.log("cocos2d: Warning: TMX Layer " + c.name + " has no tiles");
  25443. return s
  25444. }
  25445. });
  25446. H = C.OK.prototype;
  25447. C.e(H, "mapWidth", H.RW, H.EY);
  25448. C.e(H, "mapHeight", H.QW, H.DY);
  25449. C.e(H, "tileWidth", H.OF, H.EG);
  25450. C.e(H, "tileHeight", H.NF, H.DG);
  25451. C.OK.create = function(c, d) {
  25452. return new C.OK(c, d)
  25453. };
  25454. C.upa = 0;
  25455. C.rNa = 1;
  25456. C.qNa = 2;
  25457. C.tNa = 3;
  25458. C.sNa = 4;
  25459. C.uNa = 5;
  25460. C.DE = 2147483648;
  25461. C.EE = 1073741824;
  25462. C.S7 = 536870912;
  25463. C.T7 = (C.DE | C.EE | C.S7) >>> 0;
  25464. C.kU = ~C.T7 >>> 0;
  25465. C.Cv = C.O.extend({
  25466. zd: s,
  25467. name: "",
  25468. nb: s,
  25469. $i: s,
  25470. visible: s,
  25471. Eb: s,
  25472. iga: q,
  25473. pw: 1E5,
  25474. ow: 0,
  25475. offset: s,
  25476. ctor: function() {
  25477. this.zd = [];
  25478. this.name = "";
  25479. this.nb = s;
  25480. this.$i = [];
  25481. this.visible = q;
  25482. this.Eb = 0;
  25483. this.iga = q;
  25484. this.pw = 1E5;
  25485. this.ow = 0;
  25486. this.offset = C.d(0, 0)
  25487. },
  25488. KP: A("zd"),
  25489. HR: x("zd")
  25490. });
  25491. C.tpa = C.O.extend({
  25492. name: "",
  25493. Ex: 0,
  25494. rd: s,
  25495. xJ: 0,
  25496. margin: 0,
  25497. Jia: "",
  25498. ZP: s,
  25499. ctor: function() {
  25500. this.rd = C.size(0, 0);
  25501. this.ZP = C.size(0, 0)
  25502. },
  25503. WI: function(c) {
  25504. var d = C.rect(0, 0, 0, 0);
  25505. d.width = this.rd.width;
  25506. d.height = this.rd.height;
  25507. c &= C.kU;
  25508. c -= parseInt(this.Ex, 10);
  25509. var f = parseInt((this.ZP.width - 2 * this.margin + this.xJ) / (this.rd.width + this.xJ), 10);
  25510. d.x = parseInt(c % f * (this.rd.width + this.xJ) + this.margin, 10);
  25511. d.y = parseInt(parseInt(c / f, 10) * (this.rd.height + this.xJ) + this.margin, 10);
  25512. return d
  25513. }
  25514. });
  25515. C.CE = C.GK.extend({
  25516. zd: s,
  25517. orientation: s,
  25518. parentElement: s,
  25519. VQ: s,
  25520. CQ: 0,
  25521. H3: t,
  25522. gD: s,
  25523. I_: s,
  25524. rN: s,
  25525. dg: s,
  25526. rd: s,
  25527. oi: s,
  25528. Xw: s,
  25529. Br: s,
  25530. PN: "",
  25531. D9: 0,
  25532. ctor: function(c, d) {
  25533. C.GK.prototype.ctor.apply(this);
  25534. this.dg = C.size(0, 0);
  25535. this.rd = C.size(0, 0);
  25536. this.oi = [];
  25537. this.Xw = [];
  25538. this.rN = [];
  25539. this.zd = [];
  25540. this.Br = {};
  25541. this.D9 = 0;
  25542. d !== m ? this.b1(c, d) : c !== m && this.$0(c)
  25543. },
  25544. FVa: A("orientation"),
  25545. G4a: x("orientation"),
  25546. s0: function() {
  25547. return C.size(this.dg.width, this.dg.height)
  25548. },
  25549. Mha: function(c) {
  25550. this.dg.width = c.width;
  25551. this.dg.height = c.height
  25552. },
  25553. RW: function() {
  25554. return this.dg.width
  25555. },
  25556. EY: function(c) {
  25557. this.dg.width = c
  25558. },
  25559. QW: function() {
  25560. return this.dg.height
  25561. },
  25562. DY: function(c) {
  25563. this.dg.height = c
  25564. },
  25565. eC: function() {
  25566. return C.size(this.rd.width, this.rd.height)
  25567. },
  25568. xia: function(c) {
  25569. this.rd.width = c.width;
  25570. this.rd.height = c.height
  25571. },
  25572. OF: function() {
  25573. return this.rd.width
  25574. },
  25575. EG: function(c) {
  25576. this.rd.width = c
  25577. },
  25578. NF: function() {
  25579. return this.rd.height
  25580. },
  25581. DG: function(c) {
  25582. this.rd.height = c
  25583. },
  25584. eVa: A("oi"),
  25585. DHa: function(c) {
  25586. this.oi.push(c)
  25587. },
  25588. ZWa: A("Xw"),
  25589. rIa: function(c) {
  25590. this.Xw.push(c)
  25591. },
  25592. gea: A("rN"),
  25593. Qha: function(c) {
  25594. this.rN.push(c)
  25595. },
  25596. RVa: A("parentElement"),
  25597. L4a: x("parentElement"),
  25598. SVa: A("VQ"),
  25599. M4a: x("VQ"),
  25600. aVa: A("CQ"),
  25601. q4a: x("CQ"),
  25602. KWa: A("H3"),
  25603. h5a: x("H3"),
  25604. KP: A("zd"),
  25605. HR: x("zd"),
  25606. $0: function(c) {
  25607. this.caa(c, s);
  25608. return this.V1(c)
  25609. },
  25610. b1: function(c, d) {
  25611. this.caa(s, d);
  25612. return this.BFa(c)
  25613. },
  25614. V1: function(c, d) {
  25615. var f = (d = d || t) ? c: C.M.xd(c);
  25616. f || e("Please load the resource first : " + c);
  25617. var g, h, f = this.MX(f).documentElement;
  25618. g = f.getAttribute("version");
  25619. h = f.getAttribute("orientation");
  25620. if ("map" == f.nodeName && ("1.0" != g && g !== s && C.log("cocos2d: TMXFormat: Unsupported TMX version:" + g), "orthogonal" == h ? this.orientation = C.RK: "isometric" == h ? this.orientation = C.QK: "hexagonal" == h ? this.orientation = C.PK: h !== s && C.log("cocos2d: TMXFomat: Unsupported orientation:" + h), g = C.size(0, 0), g.width = parseFloat(f.getAttribute("width")), g.height = parseFloat(f.getAttribute("height")), this.Mha(g), g = C.size(0, 0), g.width = parseFloat(f.getAttribute("tilewidth")), g.height = parseFloat(f.getAttribute("tileheight")), this.xia(g), h = f.querySelectorAll("map \x3e properties \x3e property"))) {
  25621. var k = {};
  25622. for (g = 0; g < h.length; g++) k[h[g].getAttribute("name")] = h[g].getAttribute("value");
  25623. this.zd = k
  25624. }
  25625. k = f.getElementsByTagName("tileset");
  25626. "map" !== f.nodeName && (k = [], k.push(f));
  25627. for (g = 0; g < k.length; g++) {
  25628. h = k[g];
  25629. var n = h.getAttribute("source");
  25630. if (n) h = d ? C.path.join(this.PN, n) : C.path.BB(c, n),
  25631. this.V1(h);
  25632. else {
  25633. n = new C.tpa;
  25634. n.name = h.getAttribute("name") || "";
  25635. n.Ex = parseInt(h.getAttribute("firstgid")) || 0;
  25636. n.xJ = parseInt(h.getAttribute("spacing")) || 0;
  25637. n.margin = parseInt(h.getAttribute("margin")) || 0;
  25638. var p = C.size(0, 0);
  25639. p.width = parseFloat(h.getAttribute("tilewidth"));
  25640. p.height = parseFloat(h.getAttribute("tileheight"));
  25641. n.rd = p;
  25642. var p = h.getElementsByTagName("image")[0].getAttribute("source"),
  25643. r = -1;
  25644. this.gD && (r = this.gD.lastIndexOf("/"));
  25645. n.Jia = -1 !== r ? this.gD.substr(0, r + 1) + p: this.PN + (this.PN ? "/": "") + p;
  25646. this.rIa(n);
  25647. if (p = h.getElementsByTagName("tile")) for (r = 0; r < p.length; r++) {
  25648. h = p[r];
  25649. this.VQ = parseInt(n.Ex) + parseInt(h.getAttribute("id") || 0);
  25650. var v = h.querySelectorAll("properties \x3e property");
  25651. if (v) {
  25652. var y = {};
  25653. for (h = 0; h < v.length; h++) {
  25654. var z = v[h].getAttribute("name");
  25655. y[z] = v[h].getAttribute("value")
  25656. }
  25657. this.Br[this.VQ] = y
  25658. }
  25659. }
  25660. }
  25661. }
  25662. if (k = f.getElementsByTagName("layer")) for (g = 0; g < k.length; g++) {
  25663. p = k[g];
  25664. r = p.getElementsByTagName("data")[0];
  25665. n = new C.Cv;
  25666. n.name = p.getAttribute("name");
  25667. h = C.size(0, 0);
  25668. h.width = parseFloat(p.getAttribute("width"));
  25669. h.height = parseFloat(p.getAttribute("height"));
  25670. n.nb = h;
  25671. h = p.getAttribute("visible");
  25672. n.visible = "0" != h;
  25673. h = p.getAttribute("opacity") || 1;
  25674. n.Eb = h ? parseInt(255 * parseFloat(h)) : 255;
  25675. n.offset = C.d(parseFloat(p.getAttribute("x")) || 0, parseFloat(p.getAttribute("y")) || 0);
  25676. v = "";
  25677. for (h = 0; h < r.childNodes.length; h++) v += r.childNodes[h].nodeValue;
  25678. v = v.trim();
  25679. h = r.getAttribute("compression");
  25680. y = r.getAttribute("encoding");
  25681. if (h && "gzip" !== h && "zlib" !== h) return C.log("cc.TMXMapInfo.parseXMLFile(): unsupported compression method"),
  25682. s;
  25683. switch (h) {
  25684. case "gzip":
  25685. n.$i = C.eja(v, 4);
  25686. break;
  25687. case "zlib":
  25688. h = new Zlib.Inflate(C.$a.hv.fda(v, 1));
  25689. n.$i = C.sJa(h.decompress());
  25690. break;
  25691. case s:
  25692. case "":
  25693. if ("base64" == y) n.$i = C.$a.hv.fda(v, 4);
  25694. else if ("csv" === y) {
  25695. n.$i = [];
  25696. h = v.split(",");
  25697. for (r = 0; r < h.length; r++) n.$i.push(parseInt(h[r]))
  25698. } else {
  25699. h = r.getElementsByTagName("tile");
  25700. n.$i = [];
  25701. for (r = 0; r < h.length; r++) n.$i.push(parseInt(h[r].getAttribute("gid")))
  25702. }
  25703. break;
  25704. default:
  25705. this.CQ == C.Cv.i4 && C.log("cc.TMXMapInfo.parseXMLFile(): Only base64 and/or gzip/zlib maps are supported")
  25706. }
  25707. if (p = p.querySelectorAll("properties \x3e property")) {
  25708. r = {};
  25709. for (h = 0; h < p.length; h++) r[p[h].getAttribute("name")] = p[h].getAttribute("value");
  25710. n.zd = r
  25711. }
  25712. this.DHa(n)
  25713. }
  25714. if (k = f.getElementsByTagName("objectgroup")) for (g = 0; g < k.length; g++) {
  25715. p = k[g];
  25716. n = new C.spa;
  25717. n.eI = p.getAttribute("name");
  25718. n.XHa(C.d(parseFloat(p.getAttribute("x")) * this.eC().width || 0, parseFloat(p.getAttribute("y")) * this.eC().height || 0));
  25719. if (r = p.querySelectorAll("objectgroup \x3e properties \x3e property")) for (h = 0; h < r.length; h++) v = {},
  25720. v[r[h].getAttribute("name")] = r[h].getAttribute("value"),
  25721. n.zd = v;
  25722. if (p = p.querySelectorAll("object")) for (h = 0; h < p.length; h++) {
  25723. v = p[h];
  25724. r = {};
  25725. r.name = v.getAttribute("name") || "";
  25726. r.type = v.getAttribute("type") || "";
  25727. r.x = parseInt(v.getAttribute("x") || 0) + n.NA.x;
  25728. y = parseInt(v.getAttribute("y") || 0) + n.NA.y;
  25729. r.width = parseInt(v.getAttribute("width")) || 0;
  25730. r.height = parseInt(v.getAttribute("height")) || 0;
  25731. r.y = parseInt(this.s0().height * this.eC().height) - y - r.height;
  25732. if (y = v.querySelectorAll("properties \x3e property")) for (z = 0; z < y.length; z++) r[y[z].getAttribute("name")] = y[z].getAttribute("value");
  25733. if ((y = v.querySelectorAll("polygon")) && 0 < y.length)(y = y[0].getAttribute("points")) && (r.polygonPoints = this.Laa(y));
  25734. if ((v = v.querySelectorAll("polyline")) && 0 < v.length)(v = v[0].getAttribute("points")) && (r.polylinePoints = this.Laa(v));
  25735. n.QHa(r)
  25736. }
  25737. this.Qha(n)
  25738. }
  25739. return f
  25740. },
  25741. Laa: function(c) {
  25742. if (!c) return s;
  25743. var d = [];
  25744. c = c.split(" ");
  25745. for (var f = 0; f < c.length; f++) {
  25746. var g = c[f].split(",");
  25747. d.push({
  25748. x: g[0],
  25749. y: g[1]
  25750. })
  25751. }
  25752. return d
  25753. },
  25754. BFa: function(c) {
  25755. return this.V1(c, q)
  25756. },
  25757. WWa: A("Br"),
  25758. q5a: function(c) {
  25759. this.Br.push(c)
  25760. },
  25761. TTa: A("I_"),
  25762. M3a: x("I_"),
  25763. OWa: A("gD"),
  25764. k5a: x("gD"),
  25765. caa: function(c, d) {
  25766. this.Xw.length = 0;
  25767. this.oi.length = 0;
  25768. this.gD = c;
  25769. d && (this.PN = d);
  25770. this.rN.length = 0;
  25771. this.zd.length = 0;
  25772. this.Br.length = 0;
  25773. this.I_ = "";
  25774. this.H3 = t;
  25775. this.CQ = C.Cv.i4;
  25776. this.parentElement = C.upa;
  25777. this.D9 = 0
  25778. }
  25779. });
  25780. H = C.CE.prototype;
  25781. C.e(H, "mapWidth", H.RW, H.EY);
  25782. C.e(H, "mapHeight", H.QW, H.DY);
  25783. C.e(H, "tileWidth", H.OF, H.EG);
  25784. C.e(H, "tileHeight", H.NF, H.DG);
  25785. C.CE.create = function(c, d) {
  25786. return new C.CE(c, d)
  25787. };
  25788. C.M.Zp(["tmx", "tsx"], C.Xba);
  25789. C.Cv.i4 = 1;
  25790. C.Cv.iKa = 2;
  25791. C.Cv.jKa = 4;
  25792. C.Cv.kKa = 8;
  25793. C.spa = C.O.extend({
  25794. zd: s,
  25795. eI: "",
  25796. NA: s,
  25797. EA: s,
  25798. ctor: function() {
  25799. this.eI = "";
  25800. this.NA = C.d(0, 0);
  25801. this.zd = [];
  25802. this.EA = []
  25803. },
  25804. $Va: A("NA"),
  25805. XHa: function(c) {
  25806. this.NA.x = c.x;
  25807. this.NA.y = c.y
  25808. },
  25809. KP: A("zd"),
  25810. HR: function(c) {
  25811. this.zd.push(c)
  25812. },
  25813. NUa: function() {
  25814. return this.eI.toString()
  25815. },
  25816. k4a: x("eI"),
  25817. q1a: function(c) {
  25818. return this.zd[c]
  25819. },
  25820. z0a: function(c) {
  25821. if (this.EA && 0 < this.EA.length) for (var d = this.EA,
  25822. f = 0,
  25823. g = d.length; f < g; f++) {
  25824. var h = d[f].name;
  25825. if (h && h == c) return d[f]
  25826. }
  25827. return s
  25828. },
  25829. AVa: A("EA"),
  25830. QHa: function(c) {
  25831. this.EA.push(c)
  25832. }
  25833. });
  25834. C.BE = C.Bh.extend({
  25835. xh: s,
  25836. xl: s,
  25837. pC: s,
  25838. zd: s,
  25839. DQ: "",
  25840. nb: s,
  25841. Pe: s,
  25842. Eb: 255,
  25843. pw: s,
  25844. ow: s,
  25845. BZ: s,
  25846. vZ: s,
  25847. YNa: s,
  25848. Cn: s,
  25849. Dh: s,
  25850. Ul: s,
  25851. gi: s,
  25852. Ki: s,
  25853. CV: s,
  25854. hO: s,
  25855. iO: s,
  25856. bu: 0,
  25857. eZ: 0,
  25858. yaa: 1E7,
  25859. qa: "TMXLayer",
  25860. ctor: function(c, d, f) {
  25861. C.Bh.prototype.ctor.call(this);
  25862. this.Zg = [];
  25863. this.nb = C.size(0, 0);
  25864. this.Pe = C.size(0, 0);
  25865. if (C.L === C.cb) {
  25866. var g = C.Pb,
  25867. h = C.bd("canvas");
  25868. h.width = g.width;
  25869. h.height = g.height;
  25870. this.gi = h;
  25871. this.Ki = this.gi.getContext("2d");
  25872. var k = new C.Ma;
  25873. k.Ng(h);
  25874. k.Md();
  25875. this.CV = k;
  25876. this.width = g.width;
  25877. this.height = g.height;
  25878. this.Fq = this
  25879. }
  25880. f !== m && this.$Ca(c, d, f)
  25881. },
  25882. Ca: function(c, d) {
  25883. var f = this.o;
  25884. C.A.prototype.Ca.call(this, c, d);
  25885. if (C.L === C.cb) {
  25886. var g = this.gi,
  25887. h = C.Ec();
  25888. g.width = 0 | 1.5 * f.width * h;
  25889. g.height = 0 | 1.5 * f.height * h;
  25890. this.Ki.translate(0, g.height);
  25891. f = this.CV.o;
  25892. f.width = g.width;
  25893. f.height = g.height;
  25894. f = g.width * g.height;
  25895. if (f > this.yaa) {
  25896. this.hO || (this.hO = []);
  25897. this.iO || (this.iO = []);
  25898. this.bu = Math.ceil(f / this.yaa);
  25899. f = this.hO;
  25900. for (h = 0; h < this.bu; h++) {
  25901. f[h] || (f[h] = document.createElement("canvas"), this.iO[h] = f[h].getContext("2d"));
  25902. var k = f[h];
  25903. k.width = this.eZ = Math.round(g.width / this.bu);
  25904. k.height = g.height
  25905. }
  25906. for (h = this.bu; h < f.length; h++) k.width = 0,
  25907. k.height = 0
  25908. } else this.bu = 0
  25909. }
  25910. },
  25911. ob: s,
  25912. MF: A("CV"),
  25913. J: s,
  25914. Hr: function(c) {
  25915. var d = c || C.t;
  25916. if (this.Ja) {
  25917. d.save();
  25918. this.transform(c);
  25919. var f, g = this.l;
  25920. if (this.Lk) {
  25921. var h = C.view;
  25922. h.vba();
  25923. var k = this.Ki,
  25924. n = this.gi;
  25925. k.clearRect(0, 0, n.width, -n.height);
  25926. k.save();
  25927. k.translate(this.Nb.x, -this.Nb.y);
  25928. if (g) {
  25929. this.ed();
  25930. for (f = 0; f < g.length; f++) g[f] && g[f].J(k)
  25931. }
  25932. k.restore();
  25933. if (0 < this.bu) {
  25934. g = this.eZ;
  25935. k = n.height;
  25936. for (f = 0; f < this.bu; f++) this.iO[f].drawImage(n, f * g, 0, g, k, 0, 0, g, k)
  25937. }
  25938. h.hba();
  25939. this.Lk = t
  25940. }
  25941. this.ka(c);
  25942. d.restore()
  25943. }
  25944. },
  25945. ka: s,
  25946. Qq: function(c) {
  25947. c = c || C.t;
  25948. var d = 0 | -this.Nb.x,
  25949. f = 0 | -this.Nb.y,
  25950. g = C.view,
  25951. h = this.gi;
  25952. if (h) {
  25953. var k = this.bu,
  25954. n = h.height * g.pa;
  25955. if (0 < k) for (var h = this.hO,
  25956. p = 0; p < k; p++) {
  25957. var r = h[p];
  25958. c.drawImage(h[p], 0, 0, r.width, r.height, d + p * this.eZ, -(f + n), r.width * g.ia, n)
  25959. } else c.drawImage(h, 0, 0, h.width, h.height, d, -(f + n), h.width * g.ia, n)
  25960. }
  25961. },
  25962. dVa: function() {
  25963. return C.size(this.nb.width, this.nb.height)
  25964. },
  25965. t4a: function(c) {
  25966. this.nb.width = c.width;
  25967. this.nb.height = c.height
  25968. },
  25969. vsa: function() {
  25970. return this.nb.width
  25971. },
  25972. bva: function(c) {
  25973. this.nb.width = c
  25974. },
  25975. usa: function() {
  25976. return this.nb.height
  25977. },
  25978. ava: function(c) {
  25979. this.nb.height = c
  25980. },
  25981. lVa: function() {
  25982. return C.size(this.Pe.width, this.Pe.height)
  25983. },
  25984. z4a: function(c) {
  25985. this.Pe.width = c.width;
  25986. this.Pe.height = c.height
  25987. },
  25988. OF: function() {
  25989. return this.Pe.width
  25990. },
  25991. EG: function(c) {
  25992. this.Pe.width = c
  25993. },
  25994. NF: function() {
  25995. return this.Pe.height
  25996. },
  25997. DG: function(c) {
  25998. this.Pe.height = c
  25999. },
  26000. XWa: A("xh"),
  26001. r5a: x("xh"),
  26002. YWa: A("xl"),
  26003. s5a: x("xl"),
  26004. cVa: A("pC"),
  26005. s4a: x("pC"),
  26006. KP: A("zd"),
  26007. HR: x("zd"),
  26008. $Ca: function(c, d, f) {
  26009. var g = d.nb,
  26010. h = 0.35 * parseInt(g.width * g.height) + 1,
  26011. k;
  26012. c && (k = C.kb.sd(c.Jia));
  26013. return this.ta(k, h) ? (this.DQ = d.name, this.nb = g, this.xh = d.$i, this.pw = d.pw, this.ow = d.ow, this.Eb = d.Eb, this.zd = d.zd, this.Ul = C.Q.Ul, this.xl = c, this.Pe = f.eC(), this.pC = f.orientation, c = this.era(d.offset), this.p(C.c2(c)), this.Dh = [], this.Ca(C.Gia(C.size(this.nb.width * this.Pe.width, this.nb.height * this.Pe.height))), this.vZ = t, this.BZ = 0, q) : t
  26014. },
  26015. M1a: function() {
  26016. this.xh && (this.xh = s);
  26017. this.Dh && (this.Dh = s)
  26018. },
  26019. VWa: function(c, d) {
  26020. c || e("cc.TMXLayer.getTileAt(): pos should be non-null");
  26021. d !== m && (c = C.d(c, d)); (c.x >= this.nb.width || c.y >= this.nb.height || 0 > c.x || 0 > c.y) && e("cc.TMXLayer.getTileAt(): invalid position");
  26022. if (!this.xh || !this.Dh) return C.log("cc.TMXLayer.getTileAt(): TMXLayer: the tiles map has been released"),
  26023. s;
  26024. var f = s,
  26025. g = this.H0(c);
  26026. if (0 === g) return f;
  26027. var h = 0 | c.x + c.y * this.nb.width,
  26028. f = this.lj(h);
  26029. f || (g = this.xl.WI(g), g = C.js(g), f = new C.u, f.ta(this.texture, g), f.batchNode = this, f.p(this.IP(c)), f.vertexZ = this.ica(c), f.anchorX = 0, f.anchorY = 0, f.opacity = this.Eb, g = this.hV(h), this.Dwa(f, g, h));
  26030. return f
  26031. },
  26032. H0: function(c, d) {
  26033. c || e("cc.TMXLayer.getTileGIDAt(): pos should be non-null");
  26034. d !== m && (c = C.d(c, d)); (c.x >= this.nb.width || c.y >= this.nb.height || 0 > c.x || 0 > c.y) && e("cc.TMXLayer.getTileGIDAt(): invalid position");
  26035. return ! this.xh || !this.Dh ? (C.log("cc.TMXLayer.getTileGIDAt(): TMXLayer: the tiles map has been released"), s) : (this.xh[0 | c.x + c.y * this.nb.width] & C.kU) >>> 0
  26036. },
  26037. aCa: function(c, d) {
  26038. c || e("cc.TMXLayer.getTileFlagsAt(): pos should be non-null");
  26039. d !== m && (c = C.d(c, d)); (c.x >= this.nb.width || c.y >= this.nb.height || 0 > c.x || 0 > c.y) && e("cc.TMXLayer.getTileFlagsAt(): invalid position");
  26040. return ! this.xh || !this.Dh ? (C.log("cc.TMXLayer.getTileFlagsAt(): TMXLayer: the tiles map has been released"), s) : (this.xh[0 | c.x + c.y * this.nb.width] & C.T7) >>> 0
  26041. },
  26042. p5a: function(c, d, f, g) {
  26043. d || e("cc.TMXLayer.setTileGID(): pos should be non-null");
  26044. g !== m ? d = C.d(d, f) : g = f; (d.x >= this.nb.width || d.y >= this.nb.height || 0 > d.x || 0 > d.y) && e("cc.TMXLayer.setTileGID(): invalid position");
  26045. if (!this.xh || !this.Dh) C.log("cc.TMXLayer.setTileGID(): TMXLayer: the tiles map has been released");
  26046. else if (0 !== c && c < this.xl.Ex) C.log("cc.TMXLayer.setTileGID(): invalid gid:" + c);
  26047. else {
  26048. g = g || 0;
  26049. this.Fn();
  26050. f = this.aCa(d);
  26051. var h = this.H0(d);
  26052. if (h != c || f != g) if (f = (c | g) >>> 0, 0 === c) this.CGa(d);
  26053. else if (0 === h) this.ota(f, d);
  26054. else {
  26055. var h = d.x + d.y * this.nb.width,
  26056. k = this.lj(h);
  26057. k ? (c = this.xl.WI(c), c = C.js(c), k.qc(c, t), g != s && this.$N(k, d, f), this.xh[h] = f) : this.iwa(f, d)
  26058. }
  26059. }
  26060. },
  26061. CGa: function(c, d) {
  26062. c || e("cc.TMXLayer.removeTileAt(): pos should be non-null");
  26063. d !== m && (c = C.d(c, d)); (c.x >= this.nb.width || c.y >= this.nb.height || 0 > c.x || 0 > c.y) && e("cc.TMXLayer.removeTileAt(): invalid position");
  26064. if (!this.xh || !this.Dh) C.log("cc.TMXLayer.removeTileAt(): TMXLayer: the tiles map has been released");
  26065. else if (0 !== this.H0(c)) {
  26066. C.L === C.cb && this.Fn();
  26067. var f = 0 | c.x + c.y * this.nb.width,
  26068. g = this.hV(f);
  26069. this.xh[f] = 0;
  26070. this.Dh.splice(g, 1);
  26071. if (f = this.lj(f)) C.Bh.prototype.removeChild.call(this, f, q);
  26072. else if (C.L === C.la && this.textureAtlas.Vga(g), this.l) for (var f = this.l,
  26073. h = 0,
  26074. k = f.length; h < k; h++) {
  26075. var n = f[h];
  26076. if (n) {
  26077. var p = n.atlasIndex;
  26078. p >= g && (n.atlasIndex = p - 1)
  26079. }
  26080. }
  26081. }
  26082. },
  26083. IP: function(c, d) {
  26084. d !== m && (c = C.d(c, d));
  26085. var f = C.d(0, 0);
  26086. switch (this.pC) {
  26087. case C.RK:
  26088. f = this.mua(c);
  26089. break;
  26090. case C.QK:
  26091. f = this.lua(c);
  26092. break;
  26093. case C.PK:
  26094. f = this.kua(c)
  26095. }
  26096. return C.c2(f)
  26097. },
  26098. z0: function(c) {
  26099. return this.zd[c]
  26100. },
  26101. DIa: function() {
  26102. C.L === C.cb ? this.xl.ZP = this.qi.o: (this.xl.ZP = this.textureAtlas.texture.o, this.textureAtlas.texture.B2());
  26103. this.fua();
  26104. C.L === C.cb && this.Fn();
  26105. for (var c = this.nb.height,
  26106. d = this.nb.width,
  26107. f = 0; f < c; f++) for (var g = 0; g < d; g++) {
  26108. var h = this.xh[g + d * f];
  26109. 0 !== h && (this.Qqa(h, C.d(g, f)), this.pw = Math.min(h, this.pw), this.ow = Math.max(h, this.ow))
  26110. }
  26111. this.ow >= this.xl.Ex && this.pw >= this.xl.Ex || C.log("cocos2d:TMX: Only 1 tileset per layer is supported")
  26112. },
  26113. q: function() {
  26114. C.log("addChild: is not supported on cc.TMXLayer. Instead use setTileGID or tileAt.")
  26115. },
  26116. removeChild: function(c, d) {
  26117. if (c) if ( - 1 === this.l.indexOf(c)) C.log("cc.TMXLayer.removeChild(): Tile does not belong to TMXLayer");
  26118. else {
  26119. C.L === C.cb && this.Fn();
  26120. var f = c.atlasIndex;
  26121. this.xh[this.Dh[f]] = 0;
  26122. this.Dh.splice(f, 1);
  26123. C.Bh.prototype.removeChild.call(this, c, d)
  26124. }
  26125. },
  26126. bVa: A("DQ"),
  26127. r4a: x("DQ"),
  26128. lua: function(c) {
  26129. return C.d(this.Pe.width / 2 * (this.nb.width + c.x - c.y - 1), this.Pe.height / 2 * (2 * this.nb.height - c.x - c.y - 2))
  26130. },
  26131. mua: function(c) {
  26132. return C.d(c.x * this.Pe.width, (this.nb.height - c.y - 1) * this.Pe.height)
  26133. },
  26134. kua: function(c) {
  26135. return C.d(3 * c.x * this.Pe.width / 4, (this.nb.height - c.y - 1) * this.Pe.height + (1 == c.x % 2 ? -this.Pe.height / 2 : 0))
  26136. },
  26137. era: function(c) {
  26138. var d = C.d(0, 0);
  26139. switch (this.pC) {
  26140. case C.RK:
  26141. d = C.d(c.x * this.Pe.width, -c.y * this.Pe.height);
  26142. break;
  26143. case C.QK:
  26144. d = C.d(this.Pe.width / 2 * (c.x - c.y), this.Pe.height / 2 * ( - c.x - c.y));
  26145. break;
  26146. case C.PK:
  26147. (0 !== c.x || 0 !== c.y) && C.log("offset for hexagonal map not implemented yet")
  26148. }
  26149. return d
  26150. },
  26151. Qqa: function(c, d) {
  26152. var f = this.xl.WI(c),
  26153. f = C.js(f),
  26154. g = 0 | d.x + d.y * this.nb.width,
  26155. f = this.qY(f);
  26156. this.$N(f, d, c);
  26157. var h = this.Dh.length;
  26158. this.iQ(f, h);
  26159. this.Dh.splice(h, 0, g);
  26160. return f
  26161. },
  26162. ota: function(c, d) {
  26163. var f = this.xl.WI(c),
  26164. f = C.js(f),
  26165. g = 0 | d.x + d.y * this.nb.width,
  26166. f = this.qY(f);
  26167. this.$N(f, d, c);
  26168. var h = this.Tqa(g);
  26169. this.iQ(f, h);
  26170. this.Dh.splice(h, 0, g);
  26171. if (this.l) for (var k = this.l,
  26172. n = 0,
  26173. p = k.length; n < p; n++) {
  26174. var r = k[n];
  26175. if (r) {
  26176. var v = r.atlasIndex;
  26177. v >= h && (r.atlasIndex = v + 1)
  26178. }
  26179. }
  26180. this.xh[g] = c;
  26181. return f
  26182. },
  26183. iwa: function(c, d) {
  26184. var f = this.xl.WI(c),
  26185. g = this.Ul,
  26186. f = C.rect(f.x / g, f.y / g, f.width / g, f.height / g),
  26187. g = d.x + d.y * this.nb.width,
  26188. f = this.qY(f);
  26189. this.$N(f, d, c);
  26190. f.atlasIndex = this.hV(g);
  26191. f.dirty = q;
  26192. f.$h();
  26193. this.xh[g] = c;
  26194. return f
  26195. },
  26196. fua: function() {
  26197. var c = this.z0("cc_vertexz");
  26198. if (c) if ("automatic" == c) {
  26199. this.vZ = q;
  26200. var d = this.z0("cc_alpha_func"),
  26201. c = 0;
  26202. d && (c = parseFloat(d));
  26203. C.L === C.la && (this.shaderProgram = C.ug.Xd(C.KK), d = C.t.getUniformLocation(this.shaderProgram.Lx(), C.G8), this.shaderProgram.Af(), this.shaderProgram.sJ(d, c))
  26204. } else this.BZ = parseInt(c, 10)
  26205. },
  26206. $N: function(c, d, f) {
  26207. var g = d.x + d.y * this.nb.width;
  26208. c.p(this.IP(d));
  26209. C.L === C.la ? c.vertexZ = this.ica(d) : c.tag = g;
  26210. c.anchorX = 0;
  26211. c.anchorY = 0;
  26212. c.opacity = this.Eb;
  26213. C.L === C.la && (c.rotation = 0);
  26214. c.Nd(t);
  26215. c.Uf(t); (f & C.S7) >>> 0 ? (c.anchorX = 0.5, c.anchorY = 0.5, c.x = this.IP(d).x + c.width / 2, c.y = this.IP(d).y + c.height / 2, d = (f & (C.DE | C.EE) >>> 0) >>> 0, d == C.DE ? c.rotation = 90 : d == C.EE ? c.rotation = 270 : (c.rotation = d == (C.EE | C.DE) >>> 0 ? 90 : 270, c.Nd(q))) : ((f & C.DE) >>> 0 && c.Nd(q), (f & C.EE) >>> 0 && c.Uf(q))
  26216. },
  26217. qY: function(c) {
  26218. C.L === C.la ? (this.Cn ? (this.Cn.batchNode = s, this.Cn.qc(c, t)) : (this.Cn = new C.u, this.Cn.ta(this.texture, c, t)), this.Cn.batchNode = this) : (this.Cn = new C.u, this.Cn.ta(this.eu, c, t), this.Cn.batchNode = this, this.Cn.parent = this);
  26219. return this.Cn
  26220. },
  26221. ica: function(c) {
  26222. var d = 0,
  26223. f = 0;
  26224. if (this.vZ) switch (this.pC) {
  26225. case C.QK:
  26226. f = this.nb.width + this.nb.height;
  26227. d = -(f - (c.x + c.y));
  26228. break;
  26229. case C.RK:
  26230. d = -(this.nb.height - c.y);
  26231. break;
  26232. case C.PK:
  26233. C.log("TMX Hexa zOrder not supported");
  26234. break;
  26235. default:
  26236. C.log("TMX invalid value")
  26237. } else d = this.BZ;
  26238. return d
  26239. },
  26240. hV: function(c) {
  26241. var d;
  26242. if (this.Dh) for (var f = this.Dh,
  26243. g = 0,
  26244. h = f.length; g < h && !(d = f[g], d == c); g++);
  26245. "number" != typeof d && C.log("cc.TMXLayer._atlasIndexForExistantZ(): TMX atlas index not found. Shall not happen");
  26246. return g
  26247. },
  26248. Tqa: function(c) {
  26249. for (var d = this.Dh,
  26250. f = 0,
  26251. g = d.length; f < g && !(c < d[f]); f++);
  26252. return f
  26253. }
  26254. });
  26255. H = C.BE.prototype;
  26256. C.L == C.la ? (H.ka = C.Bh.prototype.ka, H.J = C.Bh.prototype.J, H.ob = C.Bh.prototype.ob) : (H.ka = H.Qq, H.J = H.Hr, H.ob = H.MF);
  26257. C.e(H, "texture", H.ob, H.Va);
  26258. C.e(H, "layerWidth", H.vsa, H.bva);
  26259. C.e(H, "layerHeight", H.usa, H.ava);
  26260. C.e(H, "tileWidth", H.OF, H.EG);
  26261. C.e(H, "tileHeight", H.NF, H.DG);
  26262. C.BE.create = function(c, d, f) {
  26263. return new C.BE(c, d, f)
  26264. };
  26265. C.JT = C.O.extend({
  26266. vG: s,
  26267. fb: s,
  26268. hF: s,
  26269. jWa: A("vG"),
  26270. W4a: x("vG"),
  26271. hea: A("fb"),
  26272. DR: x("fb"),
  26273. CTa: A("hF"),
  26274. iHa: x("hF"),
  26275. PCa: function(c, d) {
  26276. this.vG = c;
  26277. this.fb = d;
  26278. this.hF = s;
  26279. return q
  26280. }
  26281. });
  26282. C.JT.create = function(c, d) {
  26283. var f = new C.JT;
  26284. f.PCa(c, d);
  26285. return f
  26286. };
  26287. C.m7 = C.ha.extend({
  26288. Yx: s,
  26289. nX: s,
  26290. qa: "ParallaxNode",
  26291. QVa: A("Yx"),
  26292. K4a: x("Yx"),
  26293. ctor: function() {
  26294. C.ha.prototype.ctor.call(this);
  26295. this.Yx = [];
  26296. this.nX = C.d( - 100, -100)
  26297. },
  26298. q: function(c, d, f, g) {
  26299. if (3 === arguments.length) C.log("ParallaxNode: use addChild(child, z, ratio, offset) instead");
  26300. else {
  26301. c || e("cc.ParallaxNode.addChild(): child should be non-null");
  26302. var h = C.JT.create(f, g);
  26303. h.iHa(c);
  26304. this.Yx.push(h);
  26305. c.p(this.ma.x * f.x + g.x, this.ma.y * f.y + g.y);
  26306. C.ha.prototype.q.call(this, c, d, c.tag)
  26307. }
  26308. },
  26309. removeChild: function(c, d) {
  26310. for (var f = this.Yx,
  26311. g = 0; g < f.length; g++) if (f[g].hF == c) {
  26312. f.splice(g, 1);
  26313. break
  26314. }
  26315. C.ha.prototype.removeChild.call(this, c, d)
  26316. },
  26317. xf: function(c) {
  26318. this.Yx.length = 0;
  26319. C.ha.prototype.xf.call(this, c)
  26320. },
  26321. J: function() {
  26322. var c = this.Gqa();
  26323. if (!C.b2(c, this.nX)) {
  26324. for (var d = this.Yx,
  26325. f = 0,
  26326. g = d.length; f < g; f++) {
  26327. var h = d[f];
  26328. h.hF.p( - c.x + c.x * h.vG.x + h.fb.x, -c.y + c.y * h.vG.y + h.fb.y)
  26329. }
  26330. this.nX = c
  26331. }
  26332. C.ha.prototype.J.call(this)
  26333. },
  26334. Gqa: function() {
  26335. for (var c = this.ma,
  26336. d = this; d.parent != s;) d = d.parent,
  26337. c = C.ho(c, d.Ld());
  26338. return c
  26339. }
  26340. });
  26341. C.m7.create = function() {
  26342. return new C.m7
  26343. };
  26344. if (C.Sc.jO) {
  26345. var Oa = C.S6a = new(window.AudioContext || window.webkitAudioContext || window.mozAudioContext);
  26346. C.NU = C.O.extend({
  26347. Wz: s,
  26348. $b: s,
  26349. Rw: s,
  26350. HZ: s,
  26351. src: s,
  26352. KC: s,
  26353. autoplay: s,
  26354. controls: s,
  26355. d0a: s,
  26356. currentTime: 0,
  26357. startTime: 0,
  26358. duration: 0,
  26359. Uj: s,
  26360. GZ: 1,
  26361. AN: 0,
  26362. xe: t,
  26363. QG: q,
  26364. dm: -1,
  26365. ctor: function(c) {
  26366. this.Wz = {};
  26367. this.src = c;
  26368. this.HZ = Oa.createGain ? Oa.createGain() : Oa.createGainNode();
  26369. this.Uta = this.Tta.bind(this);
  26370. this.Rta = this.Qta.bind(this)
  26371. },
  26372. PX: function(c) {
  26373. var d = this.Rw = Oa.createBufferSource(),
  26374. f = this.HZ;
  26375. c = c || 0;
  26376. d.buffer = this.$b;
  26377. f.gain.value = this.GZ;
  26378. d.connect(f);
  26379. f.connect(Oa.destination);
  26380. d.loop = this.Uj;
  26381. this.QG = this.xe = t;
  26382. d.start ? d.start(0, c) : d.noteGrainOn ? (f = d.buffer.duration, this.loop ? d.noteGrainOn(0, c, f) : d.noteGrainOn(0, c, f - c)) : d.noteOn(0);
  26383. this.AN = 0
  26384. },
  26385. Pba: function() {
  26386. var c = this.Rw;
  26387. this.QG || (c.stop ? c.stop(0) : c.k0a(0), this.QG = q)
  26388. },
  26389. play: function() {
  26390. if ( - 1 == this.dm) this.dm = 0;
  26391. else if (1 == this.dm) {
  26392. var c = this.Rw;
  26393. if (this.QG || !(c && 2 == c.playbackState)) this.startTime = Oa.currentTime,
  26394. this.PX(0)
  26395. }
  26396. },
  26397. pause: function() {
  26398. this.AN = Oa.currentTime;
  26399. this.xe = q;
  26400. this.Pba()
  26401. },
  26402. nk: function() {
  26403. this.xe && this.PX(this.$b ? (this.AN - this.startTime) % this.$b.duration: 0)
  26404. },
  26405. stop: function() {
  26406. this.AN = 0;
  26407. this.xe = t;
  26408. this.Pba()
  26409. },
  26410. load: function() {
  26411. var c = this;
  26412. if (1 != c.dm) {
  26413. c.dm = -1;
  26414. c.played = t;
  26415. c.ended = q;
  26416. var d = new XMLHttpRequest;
  26417. d.open("GET", c.src, q);
  26418. d.responseType = "arraybuffer";
  26419. d.onload = function() {
  26420. Oa.decodeAudioData(d.response, c.Uta, c.Rta)
  26421. };
  26422. d.send()
  26423. }
  26424. },
  26425. addEventListener: function(c, d) {
  26426. this.Wz[c] = d.bind(this)
  26427. },
  26428. removeEventListener: function(c) {
  26429. delete this.Wz[c]
  26430. },
  26431. GQa: function() {
  26432. return C.Sc.jO
  26433. },
  26434. Tta: function(c) {
  26435. this.$b = c;
  26436. c = this.Wz.success;
  26437. var d = this.Wz.canplaythrough;
  26438. c && c();
  26439. d && d(); (0 == this.dm || "autoplay" == this.autoplay || this.autoplay == q) && this.PX();
  26440. this.dm = 1
  26441. },
  26442. Qta: function() {
  26443. var c = this.Wz.error;
  26444. c && c();
  26445. this.dm = -2
  26446. },
  26447. cloneNode: function() {
  26448. var c = new C.NU(this.src);
  26449. c.volume = this.volume;
  26450. c.dm = this.dm;
  26451. c.$b = this.$b; (0 == c.dm || -1 == c.dm) && c.load();
  26452. return c
  26453. }
  26454. });
  26455. H = C.NU.prototype;
  26456. C.e(H, "loop", A("Uj"),
  26457. function(c) {
  26458. this.Uj = c;
  26459. this.Rw && (this.Rw.loop = c)
  26460. });
  26461. C.e(H, "volume", A("GZ"),
  26462. function(c) {
  26463. this.GZ = c;
  26464. this.HZ.gain.value = c
  26465. });
  26466. C.e(H, "paused", A("xe"));
  26467. C.e(H, "ended",
  26468. function() {
  26469. var c = this.Rw;
  26470. return ! this.xe && (this.QG || !c || 3 == c.playbackState)
  26471. });
  26472. C.e(H, "played",
  26473. function() {
  26474. var c = this.Rw;
  26475. return c && 2 == c.playbackState
  26476. })
  26477. }
  26478. C.o4 = C.O.extend({
  26479. TY: t,
  26480. Hh: s,
  26481. QL: s,
  26482. Vj: 0,
  26483. f9: 0,
  26484. li: {},
  26485. VE: {},
  26486. lM: 1,
  26487. uX: 5,
  26488. kt: s,
  26489. qG: [],
  26490. ctor: function() {
  26491. this.TY = 0 < C.jV.kO.length;
  26492. this.kt && (this.kt = this.kt.bind(this))
  26493. },
  26494. W6a: B(t),
  26495. Uda: A("lM"),
  26496. tga: function(c, d) {
  26497. if (this.TY) {
  26498. var f = this.Hh;
  26499. f && this.au(f);
  26500. c != this.QL && (this.Hh = f = this.GW(c), this.QL = c);
  26501. f && (f.loop = d || t, this.QX(f))
  26502. }
  26503. },
  26504. GW: function(c) {
  26505. var d = C.M,
  26506. f = d.xd(c);
  26507. f || (d.load(c), f = d.xd(c));
  26508. return f
  26509. },
  26510. QX: function(c) {
  26511. c.ended || (c.stop ? c.stop() : (c.pause(), c.currentTime = 0));
  26512. this.Vj = 2;
  26513. c.play()
  26514. },
  26515. Sia: function(c) {
  26516. if (0 < this.Vj) {
  26517. var d = this.Hh;
  26518. d && this.au(d) && (c && C.M.rh(this.QL), this.QL = this.Hh = s, this.Vj = 0)
  26519. }
  26520. },
  26521. au: function(c) {
  26522. return c && !c.ended ? (c.stop ? c.stop() : c.duration && Infinity != c.duration ? c.currentTime = c.duration: c.pause(), q) : t
  26523. },
  26524. Y1: function() {
  26525. 2 == this.Vj && (this.Hh.pause(), this.Vj = 1)
  26526. },
  26527. aha: function() {
  26528. 1 == this.Vj && (this.qr(this.Hh), this.Vj = 2)
  26529. },
  26530. qr: function(c) {
  26531. c && !c.ended && (c.nk ? c.nk() : c.play())
  26532. },
  26533. GGa: function() {
  26534. this.Hh && this.QX(this.Hh)
  26535. },
  26536. iBa: function() {
  26537. return 0 == this.Vj ? 0 : this.Hh.volume
  26538. },
  26539. NHa: function(c) {
  26540. 0 < this.Vj && (this.Hh.volume = Math.min(Math.max(c, 0), 1))
  26541. },
  26542. nQ: function() {
  26543. return 2 == this.Vj && this.Hh && !this.Hh.ended
  26544. },
  26545. JW: function(c) {
  26546. var d = this.VE[c];
  26547. d || (d = this.VE[c] = []);
  26548. return d
  26549. },
  26550. P$: function(c) {
  26551. var d;
  26552. if (!this.TY) return s;
  26553. for (var f = this.JW(c), g = 0, h = f.length; g < h; g++) {
  26554. var k = f[g];
  26555. if (k.ended) {
  26556. d = k;
  26557. d.currentTime = 0;
  26558. window.TQa && d.load();
  26559. break
  26560. }
  26561. }
  26562. if (!d) {
  26563. if (f.length >= this.uX) return C.log("Error: " + c + " greater than " + this.uX),
  26564. s;
  26565. d = this.GW(c);
  26566. if (!d) return s;
  26567. d = d.cloneNode(q);
  26568. this.kt && C.qb(d, "pause", this.kt);
  26569. d.volume = this.lM;
  26570. f.push(d)
  26571. }
  26572. return d
  26573. },
  26574. Zx: function(c, d) {
  26575. var f = this.P$(c);
  26576. if (!f) return s;
  26577. f.loop = d || t;
  26578. f.play();
  26579. var g = this.f9++;
  26580. this.li[g] = f;
  26581. return g
  26582. },
  26583. zha: function(c) {
  26584. c = this.lM = Math.min(Math.max(c, 0), 1);
  26585. var d = this.li,
  26586. f;
  26587. for (f in d) d[f].volume = c
  26588. },
  26589. X1: function(c) { (c = this.li[c]) && !c.ended && c.pause()
  26590. },
  26591. W1: function() {
  26592. var c = this.li,
  26593. d;
  26594. for (d in c) {
  26595. var f = c[d];
  26596. f.ended || f.pause()
  26597. }
  26598. },
  26599. u2: function(c) {
  26600. this.qr(this.li[c])
  26601. },
  26602. t2: function() {
  26603. var c = this.li,
  26604. d;
  26605. for (d in c) this.qr(c[d])
  26606. },
  26607. G3: function(c) {
  26608. this.au(this.li[c]);
  26609. delete this.li[c]
  26610. },
  26611. cD: function() {
  26612. var c = this.li,
  26613. d;
  26614. for (d in c) this.au(c[d]),
  26615. delete c[d]
  26616. },
  26617. V3: function(c) {
  26618. var d = C.M,
  26619. f = this.li,
  26620. g = this.JW(c);
  26621. d.rh(c);
  26622. if (0 != g.length) {
  26623. d = g[0].src;
  26624. delete this.VE[c];
  26625. for (var h in f) f[h].src == d && (this.au(f[h]), delete f[h])
  26626. }
  26627. },
  26628. end: function() {
  26629. this.Sia();
  26630. this.cD()
  26631. },
  26632. Naa: function() {
  26633. var c = this.li,
  26634. d, f;
  26635. for (f in c) if ((d = c[f]) && !d.ended && !d.paused) this.qG.push(d),
  26636. d.pause();
  26637. this.nQ() && (this.qG.push(this.Hh), this.Hh.pause())
  26638. },
  26639. jba: function() {
  26640. for (var c = this.qG,
  26641. d = 0,
  26642. f = c.length; d < f; d++) this.qr(c[d]);
  26643. c.length = 0
  26644. }
  26645. }); ! C.Sc.jO && 0 > C.Sc.Ova && (C.p4 = C.o4.extend({
  26646. mu: [],
  26647. oG: [],
  26648. Ok: s,
  26649. uX: 2,
  26650. kM: {},
  26651. tw: t,
  26652. Xz: 0,
  26653. hX: t,
  26654. QX: function(c) {
  26655. this.aZ();
  26656. this._super(c)
  26657. },
  26658. aha: function() {
  26659. 1 == this.Vj && (this.aZ(), this.tw = t, this.Xz = 0, this._super())
  26660. },
  26661. Zx: function(c, d) {
  26662. var f = this.Ok,
  26663. g = d ? this.P$(c) : this.Lsa(c);
  26664. if (!g) return s;
  26665. g.loop = d || t;
  26666. var h = this.f9++;
  26667. this.li[h] = g;
  26668. this.nQ() && (this.Y1(), this.tw = q);
  26669. f ? (f != g && this.mu.push(this.Mz), this.mu.push(h), f.pause()) : (this.Ok = g, this.Mz = h, g.play());
  26670. return h
  26671. },
  26672. X1: function() {
  26673. C.log("pauseEffect not supported in single audio mode!")
  26674. },
  26675. W1: function() {
  26676. var c = this.mu,
  26677. d = this.oG,
  26678. f = this.Ok;
  26679. if (f) {
  26680. for (var g = 0,
  26681. h = c.length; g < h; g++) d.push(c[g]);
  26682. c.length = 0;
  26683. d.push(this.Mz);
  26684. f.pause()
  26685. }
  26686. },
  26687. u2: function() {
  26688. C.log("resumeEffect not supported in single audio mode!")
  26689. },
  26690. t2: function() {
  26691. var c = this.mu,
  26692. d = this.oG;
  26693. this.nQ() && (this.Y1(), this.tw = q);
  26694. for (var f = 0,
  26695. g = d.length; f < g; f++) c.push(d[f]);
  26696. d.length = 0;
  26697. if (!this.Ok && 0 <= c.length && (c = c.pop(), d = this.li[c])) this.Mz = c,
  26698. this.Ok = d,
  26699. this.qr(d)
  26700. },
  26701. G3: function(c) {
  26702. var d = this.Ok,
  26703. f = this.mu,
  26704. g = this.oG;
  26705. d && this.Mz == c ? this.au(d) : (d = f.indexOf(c), 0 <= d ? f.splice(d, 1) : (d = g.indexOf(c), 0 <= d && g.splice(d, 1)))
  26706. },
  26707. cD: function() {
  26708. this.aZ(); ! this.Ok && this.tw && (this.qr(this.Hh), this.Vj = 2, this.tw = t, this.Xz = 0)
  26709. },
  26710. V3: function(c) {
  26711. var d = C.M,
  26712. f = this.li,
  26713. g = this.kM,
  26714. h = this.JW(c),
  26715. k = this.Ok;
  26716. d.rh(c);
  26717. if (0 != h.length || g[c]) {
  26718. d = 0 < h.length ? h[0].src: g[c].src;
  26719. delete this.VE[c];
  26720. delete g[c];
  26721. for (var n in f) f[n].src == d && delete f[n];
  26722. k && k.src == d && this.au(k)
  26723. }
  26724. },
  26725. Lsa: function(c) {
  26726. var d = this.kM[c],
  26727. f = this.mu,
  26728. g = this.oG,
  26729. h = this.li;
  26730. if (d) d.currentTime = 0;
  26731. else {
  26732. d = this.GW(c);
  26733. if (!d) return s;
  26734. d = d.cloneNode(q);
  26735. this.kt && C.qb(d, "pause", this.kt);
  26736. d.volume = this.lM;
  26737. this.kM[c] = d
  26738. }
  26739. c = 0;
  26740. for (var k = f.length; c < k;) h[f[c]] == d ? f.splice(c, 1) : c++;
  26741. c = 0;
  26742. for (k = g.length; c < k;) h[g[c]] == d ? g.splice(c, 1) : c++;
  26743. d.WF = q;
  26744. return d
  26745. },
  26746. aZ: function() {
  26747. var c = this.Ok,
  26748. d = this.VE,
  26749. f = this.kM,
  26750. g = this.mu,
  26751. h = this.oG;
  26752. if (c || !(0 == g.length && 0 == h.length)) {
  26753. for (var k in f) {
  26754. var n = f[k];
  26755. n.duration && Infinity != n.duration && (n.currentTime = n.duration)
  26756. }
  26757. g.length = 0;
  26758. h.length = 0;
  26759. for (k in d) {
  26760. f = d[k];
  26761. g = 0;
  26762. for (h = f.length; g < h; g++) n = f[g],
  26763. n.loop = t,
  26764. n.duration && Infinity != n.duration && (n.currentTime = n.duration)
  26765. }
  26766. c && this.au(c)
  26767. }
  26768. },
  26769. kt: function() {
  26770. if (!this.hX) {
  26771. var c = this.Psa();
  26772. if (c) c.WF ? (delete c.WF, c.play()) : this.qr(c);
  26773. else if (this.tw) {
  26774. c = this.Hh;
  26775. if (c.duration && Infinity != c.duration) {
  26776. var d = c.currentTime + this.Xz,
  26777. d = d - c.duration * (d / c.duration | 0);
  26778. c.currentTime = d
  26779. }
  26780. this.Xz = 0;
  26781. this.qr(c);
  26782. this.Vj = 2;
  26783. this.tw = t
  26784. }
  26785. }
  26786. },
  26787. Psa: function() {
  26788. var c = this.mu,
  26789. d = this.li,
  26790. f = this.Ok,
  26791. g = f ? f.currentTime - (f.startTime || 0) : 0;
  26792. for (this.Xz += g; 0 != c.length;) {
  26793. var h = c.pop();
  26794. if (f = d[h]) {
  26795. if (f.WF || f.loop || f.duration && f.currentTime + g < f.duration) return this.Mz = h,
  26796. this.Ok = f,
  26797. !f.WF && (f.duration && Infinity != f.duration) && (c = f.currentTime + g, c -= f.duration * (c / f.duration | 0), f.currentTime = c),
  26798. f.WF = t,
  26799. f;
  26800. f.duration && Infinity != f.duration && (f.currentTime = f.duration)
  26801. }
  26802. }
  26803. return this.Ok = this.Mz = s
  26804. },
  26805. Naa: function() {
  26806. var c = this.Ok;
  26807. this.hX = q;
  26808. if (c = 2 == this.Vj ? this.Hh: c) this.qG.push(c),
  26809. c.pause()
  26810. },
  26811. jba: function() {
  26812. var c = this.qG;
  26813. this.hX = t;
  26814. 0 < c.length && (this.qr(c[0]), c.length = 0)
  26815. }
  26816. }));
  26817. C.jV = {
  26818. kO: s,
  26819. zP: function() {
  26820. return C.M.dxa
  26821. },
  26822. oX: function(c, d, f, g, h, k, n) {
  26823. var p = this,
  26824. r = C.M,
  26825. v = C.path,
  26826. y = this.kO,
  26827. z = "";
  26828. if (0 == y.length) return n("can not support audio!");
  26829. if ( - 1 == g) z = (v.Cp(c) || "").toLowerCase(),
  26830. p.exa(z) || (z = y[0], g = 0);
  26831. else if (g < y.length) z = y[g];
  26832. else return n("can not found the resource of audio! Last match url is : " + c);
  26833. if (0 <= h.indexOf(z)) return p.oX(c, d, f, g + 1, h, k, n);
  26834. c = v.s_(c, z);
  26835. h.push(z);
  26836. k = p.yta(c, k,
  26837. function(r) {
  26838. if (r) return p.oX(c, d, f, g + 1, h, k, n);
  26839. n(s, k)
  26840. },
  26841. g == y.length - 1);
  26842. r.fj[d] = k
  26843. },
  26844. exa: function(c) {
  26845. return ! c ? t: 0 <= this.kO.indexOf(c.toLowerCase())
  26846. },
  26847. yta: function(c, d, f, g) {
  26848. var h = "file://" == location.origin ? Audio: C.NU || Audio;
  26849. 2 == arguments.length ? (f = d, d = new h) : 3 < arguments.length && !d && (d = new h);
  26850. d.src = c;
  26851. d.KC = "auto";
  26852. h = navigator.userAgent;
  26853. /Mobile/.test(h) && (/iPhone OS/.test(h) || /iPad/.test(h) || /Firefox/.test(h)) || /MSIE/.test(h) ? (d.load(), f(s, d)) : (C.qb(d, "canplaythrough",
  26854. function() {
  26855. f(s, d);
  26856. this.removeEventListener("canplaythrough", arguments.callee, t);
  26857. this.removeEventListener("error", arguments.callee, t)
  26858. },
  26859. t), C.qb(d, "error",
  26860. function() {
  26861. f("load " + c + " failed");
  26862. g && (this.removeEventListener("canplaythrough", arguments.callee, t), this.removeEventListener("error", arguments.callee, t))
  26863. },
  26864. t), d.load());
  26865. return d
  26866. },
  26867. load: function(c, d, f, g) {
  26868. this.oX(c, d, f, -1, [], s, g)
  26869. }
  26870. };
  26871. C.jV.kO = function() {
  26872. var c = C.bd("audio"),
  26873. d = [];
  26874. if (c.canPlayType) {
  26875. var f = function(d) {
  26876. d = c.canPlayType(d);
  26877. return "no" != d && "" != d
  26878. };
  26879. f('audio/ogg; codecs\x3d"vorbis"') && d.push(".ogg");
  26880. f("audio/mpeg") && d.push(".mp3");
  26881. f('audio/wav; codecs\x3d"1"') && d.push(".wav");
  26882. f("audio/mp4") && d.push(".mp4"); (f("audio/x-m4a") || f("audio/aac")) && d.push(".m4a")
  26883. }
  26884. return d
  26885. } ();
  26886. C.M.Zp(["mp3", "ogg", "wav", "mp4", "m4a"], C.jV);
  26887. C.ud = C.p4 ? new C.p4: new C.o4;
  26888. C.Ka.MZ(C.qf.kK,
  26889. function() {
  26890. C.ud.Naa()
  26891. });
  26892. C.Ka.MZ(C.qf.JD,
  26893. function() {
  26894. C.ud.jba()
  26895. });
  26896. C.KS = 9;
  26897. C.nla = 1;
  26898. C.qla = 2;
  26899. C.rla = 4;
  26900. C.ola = 8;
  26901. C.pla = 16;
  26902. C.f5 = 32;
  26903. C.sla = 64;
  26904. C.mla = 128;
  26905. C.uo = 256;
  26906. C.Rg = 1;
  26907. C.jv = 2;
  26908. C.iv = 4;
  26909. C.mLa = 8;
  26910. C.lLa = 8;
  26911. C.Kc = C.ai.extend({
  26912. jaa: t,
  26913. ROa: t,
  26914. ui: s,
  26915. qa: "Control",
  26916. qg: A("jaa"),
  26917. $d: function(c) {
  26918. this.jaa = c;
  26919. for (var d = this.le(), f = 0, g = d.length; f < g; f++) {
  26920. var h = d[f];
  26921. h && h.sb && h.$d(c)
  26922. }
  26923. },
  26924. zb: C.Rg,
  26925. UBa: A("zb"),
  26926. Wc: t,
  26927. SN: t,
  26928. xt: t,
  26929. $L: s,
  26930. Ib: function(c) {
  26931. this.zb = (this.Wc = c) ? C.Rg: C.iv;
  26932. this.Tf()
  26933. },
  26934. isEnabled: A("Wc"),
  26935. Wu: function(c) {
  26936. this.SN = c;
  26937. this.Tf()
  26938. },
  26939. oQ: A("SN"),
  26940. vj: function(c) {
  26941. this.xt = c;
  26942. this.Tf()
  26943. },
  26944. mQ: A("xt"),
  26945. DCa: function() {
  26946. for (var c = this.getParent(); c != s; c = c.getParent()) if (!c.Ja) return t;
  26947. return q
  26948. },
  26949. ctor: function() {
  26950. C.ai.prototype.ctor.call(this);
  26951. this.$L = {};
  26952. this.ya = C.color.WHITE
  26953. },
  26954. j: function() {
  26955. if (C.ai.prototype.j.call(this)) {
  26956. this.zb = C.Rg;
  26957. this.Wc = q;
  26958. this.xt = this.SN = t;
  26959. var c = C.Oa.create({
  26960. event: C.Oa.Gs
  26961. });
  26962. this.nc && (c.nc = this.nc.bind(this));
  26963. this.yd && (c.yd = this.yd.bind(this));
  26964. this.cd && (c.cd = this.cd.bind(this));
  26965. this.Xe && (c.Xe = this.Xe.bind(this));
  26966. this.ui = c;
  26967. return q
  26968. }
  26969. return t
  26970. },
  26971. Z: function() {
  26972. var c = this.ui;
  26973. c.Wi || C.Ka.addListener(c, this);
  26974. C.A.prototype.Z.call(this)
  26975. },
  26976. Bi: function(c) {
  26977. for (var d = 0,
  26978. f = C.KS; d < f; d++) if (c & 1 << d) for (var g = this.iW(1 << d), h = 0, k = g.length; h < k; h++) g[h].jDa(this)
  26979. },
  26980. nH: function(c, d, f) {
  26981. for (var g = 0,
  26982. h = C.KS; g < h; g++) f & 1 << g && this.b9(c, d, 1 << g)
  26983. },
  26984. s2a: function(c, d, f) {
  26985. for (var g = 0,
  26986. h = C.KS; g < h; g++) f & 1 << g && this.Eua(c, d, 1 << g)
  26987. },
  26988. Gp: function(c) {
  26989. return this.wi(c.mh())
  26990. },
  26991. Zn: function(c) {
  26992. c = c.mh();
  26993. c = this.getParent().wi(c);
  26994. return C.Ju(this.Ae(), c)
  26995. },
  26996. VOa: B(s),
  26997. iW: function(c) {
  26998. c = c.toString();
  26999. this.$L[c] || (this.$L[c] = []);
  27000. return this.$L[c]
  27001. },
  27002. b9: function(c, d, f) {
  27003. c = new C.Ema(c, d, f);
  27004. this.iW(f).push(c)
  27005. },
  27006. Eua: function(c, d, f) {
  27007. f = this.iW(f);
  27008. if (!c && !d) f.length = 0;
  27009. else for (var g = 0; g < f.length;) {
  27010. var h = f[g],
  27011. k = q;
  27012. c && (k = c == h.zea());
  27013. d && (k = k && d == h.Qr());
  27014. k ? C.Id(f, h) : g++
  27015. }
  27016. },
  27017. Tf: u()
  27018. });
  27019. H = C.Kc.prototype;
  27020. C.e(H, "state", H.UBa);
  27021. C.e(H, "enabled", H.isEnabled, H.Ib);
  27022. C.e(H, "selected", H.oQ, H.Wu);
  27023. C.e(H, "highlighted", H.mQ, H.vj);
  27024. H = s;
  27025. C.Kc.create = function() {
  27026. var c = new C.Kc;
  27027. return c && c.j() ? c: s
  27028. };
  27029. C.j5 = 3435855873;
  27030. C.Ym = C.Kc.extend({
  27031. zF: t,
  27032. MJ: t,
  27033. Nh: s,
  27034. XF: s,
  27035. tF: s,
  27036. SL: s,
  27037. Yw: s,
  27038. Eh: s,
  27039. Eb: 0,
  27040. tA: t,
  27041. qO: s,
  27042. WG: s,
  27043. rO: s,
  27044. Kv: s,
  27045. Kaa: t,
  27046. eN: 0,
  27047. dN: 0,
  27048. qa: "ControlButton",
  27049. ctor: function() {
  27050. C.Kc.prototype.ctor.call(this);
  27051. this.Nh = C.size(0, 0);
  27052. this.XF = C.d(0, 0);
  27053. this.tF = "";
  27054. this.SL = C.color.WHITE;
  27055. this.qO = {};
  27056. this.WG = {};
  27057. this.rO = {};
  27058. this.Kv = {}
  27059. },
  27060. j: function() {
  27061. return this.gQ(C.fa.create("", "Arial", 12), C.Sa.create())
  27062. },
  27063. Tf: function() {
  27064. if (this.Kaa) {
  27065. this.Yw && this.Yw.va(t);
  27066. this.Eh && this.Eh.va(t);
  27067. this.U2(this.XF);
  27068. var c = this.zb;
  27069. this.tF = this.I0(c);
  27070. this.SL = this.bCa(c);
  27071. var d = this.Yw = this.YH(c);
  27072. d && d.sa && d.sa(this.tF);
  27073. d && d.sb && d.G(this.SL);
  27074. var f = this.i();
  27075. d && d.p(f.width / 2, f.height / 2); (c = this.Eh = this.cAa(c)) && c.p(f.width / 2, f.height / 2);
  27076. f = C.size(0, 0);
  27077. if (d) {
  27078. var g = d.Ae();
  27079. f.width = g.width;
  27080. f.height = g.height
  27081. }
  27082. this.zF ? c && c.Ca(f.width + 2 * this.dN, f.height + 2 * this.eN) : c && (g = c.Nh, g = C.size(g.width, g.height), 0 >= g.width && (g.width = f.width), 0 >= g.height && (g.height = f.height), c.Ca(g));
  27083. f = d ? d.Ae() : C.rect(0, 0, 0, 0);
  27084. g = c ? c.Ae() : C.rect(0, 0, 0, 0);
  27085. f = C.MC(f, g);
  27086. this.Ca(f.width, f.height);
  27087. f = this.i();
  27088. d && (d.p(f.width / 2, f.height / 2), d.va(q));
  27089. c && (c.p(f.width / 2, f.height / 2), c.va(q))
  27090. }
  27091. },
  27092. gQ: function(c, d) { (!c || !c.sb) && e("cc.ControlButton.initWithLabelAndBackgroundSprite(): label should be non-null");
  27093. d || e("cc.ControlButton.initWithLabelAndBackgroundSprite(): backgroundSprite should be non-null");
  27094. return C.Kc.prototype.j.call(this, q) ? (this.Kaa = q, this.qO = {},
  27095. this.WG = {},
  27096. this.rO = {},
  27097. this.Kv = {},
  27098. this.tA = t, this.MJ = q, this.tF = s, this.fha(q), this.De(C.size(0, 0)), this.MJ = q, this.Hm(t), this.S(0.5, 0.5), this.Yw = c, this.Eh = d, this.K(255), this.$d(q), this.RR(c.Wb(), C.Rg), this.QR(c.Xa(), C.Rg), this.r3(c, C.Rg), this.sR(d, C.Rg), this.zb = C.Rg, this.dN = 24, this.eN = 12, this.XF = C.d(0.5, 0.5), this.De(C.size(0, 0)), this.Tf(), q) : t
  27099. },
  27100. bDa: function(c, d, f) {
  27101. c = C.fa.create(c, d, f);
  27102. return this.gQ(c, C.Sa.create())
  27103. },
  27104. Wea: function(c) {
  27105. var d = C.fa.create("", "Arial", 30);
  27106. return this.gQ(d, c)
  27107. },
  27108. JRa: A("zF"),
  27109. fha: function(c) {
  27110. this.zF = c;
  27111. this.Tf()
  27112. },
  27113. yXa: A("MJ"),
  27114. Bia: function(c) {
  27115. return this.MJ = c
  27116. },
  27117. y0: A("Nh"),
  27118. De: function(c) {
  27119. if (0 === c.width && 0 === c.height) this.zF = q;
  27120. else {
  27121. this.zF = t;
  27122. var d = this.Kv,
  27123. f;
  27124. for (f in d) d[f].De(c)
  27125. }
  27126. this.Nh = c;
  27127. this.Tf()
  27128. },
  27129. RAa: A("XF"),
  27130. U2: function(c) {
  27131. this.XF = c;
  27132. this.Yw && this.Yw.S(c)
  27133. },
  27134. FOa: A("tF"),
  27135. GOa: A("SL"),
  27136. rb: A("Eb"),
  27137. K: function(c) {
  27138. C.Kc.prototype.K.call(this, c);
  27139. var d = this.Kv,
  27140. f;
  27141. for (f in d) d[f].K(c)
  27142. },
  27143. G: function(c) {
  27144. C.Kc.prototype.G.call(this, c);
  27145. var d = this.Kv,
  27146. f;
  27147. for (f in d) d[f].G(c)
  27148. },
  27149. Xa: function() {
  27150. var c = this.od;
  27151. return C.color(c.r, c.g, c.b, c.a)
  27152. },
  27153. FYa: A("tA"),
  27154. POa: A("eN"),
  27155. IOa: A("dN"),
  27156. A4a: function(c, d) {
  27157. this.eN = d;
  27158. this.dN = c;
  27159. this.Tf()
  27160. },
  27161. Ib: function(c) {
  27162. C.Kc.prototype.Ib.call(this, c);
  27163. this.Tf()
  27164. },
  27165. Wu: function(c) {
  27166. C.Kc.prototype.Wu.call(this, c);
  27167. this.Tf()
  27168. },
  27169. vj: function(c) {
  27170. this.zb = c ? C.jv: C.Rg;
  27171. C.Kc.prototype.vj.call(this, c); (c = this.xP(C.j5)) && this.yJ(c);
  27172. this.Tf();
  27173. this.MJ && (c = C.ae.create(0.05, this.mQ() && this.isEnabled() && !this.oQ() ? 1.1 : 1), c.Qm(C.j5), this.Ya(c))
  27174. },
  27175. nc: function(c) {
  27176. if (!this.Zn(c) || !this.isEnabled() || !this.Ja || !this.DCa()) return t;
  27177. this.tA = q;
  27178. this.vj(q);
  27179. this.Bi(C.nla);
  27180. return q
  27181. },
  27182. yd: function(c) { ! this.Wc || !this.tA || this.SN ? this.xt && this.vj(t) : (c = this.Zn(c)) && !this.xt ? (this.vj(q), this.Bi(C.ola)) : c && this.xt ? this.Bi(C.qla) : !c && this.xt ? (this.vj(t), this.Bi(C.pla)) : !c && !this.xt && this.Bi(C.rla)
  27183. },
  27184. cd: function(c) {
  27185. this.tA = t;
  27186. this.vj(t);
  27187. this.Zn(c) ? this.Bi(C.f5) : this.Bi(C.sla)
  27188. },
  27189. Xe: function() {
  27190. this.tA = t;
  27191. this.vj(t);
  27192. this.Bi(C.mla)
  27193. },
  27194. I0: function(c) {
  27195. var d = this.qO;
  27196. return d ? d[c] ? d[c] : d[C.Rg] : ""
  27197. },
  27198. RR: function(c, d) {
  27199. this.qO[d] = c || "";
  27200. this.zb == d && this.Tf()
  27201. },
  27202. bCa: function(c) {
  27203. return (c = this.WG[c]) ? c: (c = this.WG[C.Rg]) ? c: C.color.WHITE
  27204. },
  27205. QR: function(c, d) {
  27206. this.WG[d] = c;
  27207. this.zb == d && this.Tf()
  27208. },
  27209. YH: function(c) {
  27210. var d = this.rO;
  27211. return d[c] ? d[c] : d[C.Rg]
  27212. },
  27213. r3: function(c, d) {
  27214. var f = this.rO;
  27215. if (f[d]) {
  27216. var g = f[d];
  27217. g && this.removeChild(g, q)
  27218. }
  27219. f[d] = c;
  27220. c.va(t);
  27221. c.S(0.5, 0.5);
  27222. this.q(c, 1);
  27223. this.zb == d && this.Tf()
  27224. },
  27225. s3: function(c, d) {
  27226. var f = this.I0(d);
  27227. f || (f = "");
  27228. this.r3(C.fa.create(f, c, 12), d)
  27229. },
  27230. bXa: function(c) {
  27231. c = this.YH(c);
  27232. return c != s && c instanceof C.fa ? c.Fp() : ""
  27233. },
  27234. t3: function(c, d) {
  27235. var f = this.YH(d);
  27236. f != s && f instanceof C.fa && f.Od(c)
  27237. },
  27238. cXa: function(c) {
  27239. c = this.YH(c);
  27240. return c != s && c instanceof C.fa ? c.Vn() : 0
  27241. },
  27242. t5a: function(c, d) {
  27243. var f = this.I0(d);
  27244. f || (f = "");
  27245. this.r3(C.rv.create(f, c), d)
  27246. },
  27247. aXa: function(c) {
  27248. c = this.YH(c);
  27249. return c != s && c instanceof C.rv ? c.FF: ""
  27250. },
  27251. cAa: function(c) {
  27252. var d = this.Kv;
  27253. return d[c] ? d[c] : d[C.Rg]
  27254. },
  27255. sR: function(c, d) {
  27256. var f = this.Kv;
  27257. if (f[d]) {
  27258. var g = f[d];
  27259. g && this.removeChild(g, q)
  27260. }
  27261. f[d] = c;
  27262. c.va(t);
  27263. c.S(0.5, 0.5);
  27264. this.q(c);
  27265. f = this.Nh; (0 !== f.width || 0 !== f.height) && c.De(f);
  27266. this.zb === d && this.Tf()
  27267. },
  27268. D2: function(c, d) {
  27269. var f = C.Sa.$xa(c);
  27270. this.sR(f, d)
  27271. }
  27272. });
  27273. H = C.Ym.prototype;
  27274. C.e(H, "adjustBackground", H.FSa, H.fha);
  27275. C.e(H, "preferredSize", H.y0, H.De);
  27276. C.e(H, "labelAnchor", H.RAa, H.U2);
  27277. H = s;
  27278. C.Ym.create = function(c, d) {
  27279. var f;
  27280. if (0 == arguments.length) return (f = new C.Ym) && f.j() ? f: s;
  27281. 1 == arguments.length ? (f = new C.Ym, f.Wea(arguments[0])) : 2 == arguments.length ? (f = new C.Ym, f.gQ(c, d)) : 3 == arguments.length && (f = new C.Ym, f.bDa(arguments[0], arguments[1], arguments[2]));
  27282. return f
  27283. };
  27284. function Pa() {
  27285. this.a = this.b = this.g = this.r = m
  27286. }
  27287. C.jT = function(c, d, f) {
  27288. this.Rf = c;
  27289. this.tl = d;
  27290. this.ea = f
  27291. };
  27292. C.Ah = {};
  27293. C.Ah.lx = function(c, d, f, g) {
  27294. c = C.u.create("#" + c);
  27295. if (!c) return s;
  27296. c.p(f);
  27297. c.S(g);
  27298. d.q(c);
  27299. return c
  27300. };
  27301. C.Ah.uma = function(c) {
  27302. var d = new C.jT,
  27303. f, g;
  27304. f = c.r < c.g ? c.r: c.g;
  27305. f = f < c.b ? f: c.b;
  27306. g = c.r > c.g ? c.r: c.g;
  27307. g = g > c.b ? g: c.b;
  27308. d.ea = g;
  27309. f = g - f;
  27310. if (0 < g) d.tl = f / g;
  27311. else return d.tl = 0,
  27312. d.Rf = -1,
  27313. d;
  27314. d.Rf = c.r >= g ? (c.g - c.b) / f: c.g >= g ? 2 + (c.b - c.r) / f: 4 + (c.r - c.g) / f;
  27315. d.Rf *= 60;
  27316. 0 > d.Rf && (d.Rf += 360);
  27317. return d
  27318. };
  27319. C.Ah.WT = function(c) {
  27320. var d, f, g, h, k = new Pa;
  27321. k.a = 1;
  27322. if (0 >= c.tl) {
  27323. if (!c.Rf) return k.r = c.ea,
  27324. k.g = c.ea,
  27325. k.b = c.ea,
  27326. k;
  27327. k.r = 0;
  27328. k.g = 0;
  27329. k.b = 0;
  27330. return k
  27331. }
  27332. d = c.Rf;
  27333. 360 <= d && (d = 0);
  27334. d /= 60;
  27335. h = 0 | d;
  27336. g = d - h;
  27337. d = c.ea * (1 - c.tl);
  27338. f = c.ea * (1 - c.tl * g);
  27339. g = c.ea * (1 - c.tl * (1 - g));
  27340. switch (h) {
  27341. case 0:
  27342. k.r = c.ea;
  27343. k.g = g;
  27344. k.b = d;
  27345. break;
  27346. case 1:
  27347. k.r = f;
  27348. k.g = c.ea;
  27349. k.b = d;
  27350. break;
  27351. case 2:
  27352. k.r = d;
  27353. k.g = c.ea;
  27354. k.b = g;
  27355. break;
  27356. case 3:
  27357. k.r = d;
  27358. k.g = f;
  27359. k.b = c.ea;
  27360. break;
  27361. case 4:
  27362. k.r = g;
  27363. k.g = d;
  27364. k.b = c.ea;
  27365. break;
  27366. default:
  27367. k.r = c.ea,
  27368. k.g = d,
  27369. k.b = f
  27370. }
  27371. return k
  27372. };
  27373. C.Ah.G4 = function(c, d) {
  27374. return C.MC(c, d)
  27375. };
  27376. C.Ema = C.O.extend({
  27377. Ke: s,
  27378. Xc: s,
  27379. OL: s,
  27380. ctor: function(c, d, f) {
  27381. this.Xc = c;
  27382. this.Ke = d;
  27383. this.OL = f
  27384. },
  27385. Qr: A("Ke"),
  27386. zea: A("Xc"),
  27387. LTa: A("OL"),
  27388. jDa: function(c) {
  27389. if (this.Xc && this.Ke) if ("string" == typeof this.Ke) this.Xc[this.Ke](c, this.OL);
  27390. else this.Ke.call(this.Xc, c, this.OL)
  27391. }
  27392. });
  27393. C.Sa = C.ha.extend({
  27394. sb: q,
  27395. cB: s,
  27396. s9: s,
  27397. lp: t,
  27398. Yi: s,
  27399. iu: s,
  27400. Zw: s,
  27401. ju: s,
  27402. lw: s,
  27403. Iq: s,
  27404. Lw: s,
  27405. Zs: s,
  27406. Nv: s,
  27407. Ov: s,
  27408. Mq: s,
  27409. Fb: t,
  27410. Gg: s,
  27411. Nh: s,
  27412. Eb: 0,
  27413. ya: s,
  27414. df: s,
  27415. OM: 0,
  27416. QM: 0,
  27417. PM: 0,
  27418. NM: 0,
  27419. Mba: t,
  27420. WY: t,
  27421. Aa: t,
  27422. ac: s,
  27423. qa: "Scale9Sprite",
  27424. eD: A("Aa"),
  27425. ye: function(c, d) {
  27426. this.ac.push({
  27427. jl: c,
  27428. jj: d
  27429. })
  27430. },
  27431. cf: function() {
  27432. this.Aa = q;
  27433. for (var c = this.ac,
  27434. d = 0,
  27435. f = c.length; d < f; d++) {
  27436. var g = c[d];
  27437. g.jl.call(g.jj, this)
  27438. }
  27439. c.length = 0
  27440. },
  27441. BO: function() {
  27442. var c;
  27443. c = this.OM;
  27444. var d = this.QM,
  27445. f = this.PM,
  27446. g = this.cB,
  27447. h = this.NM;
  27448. c = 0 === c && 0 === d && 0 === f && 0 === h ? C.rect(0, 0, 0, 0) : this.WY ? C.rect(h, c, g.width - f - c, g.height - d - h) : C.rect(c, d, g.width - c - f, g.height - d - h);
  27449. this.Gc(c)
  27450. },
  27451. cwa: function() {
  27452. if (this.iu && this.ju && this.Ov && this.Zs && this.Iq) {
  27453. var c = this.o,
  27454. d = this.iu,
  27455. f = this.ju,
  27456. g = this.Ov,
  27457. h = this.Zs,
  27458. k = this.Iq,
  27459. n = this.Iq.i(),
  27460. p = d.i(),
  27461. r = h.i(),
  27462. v = c.width - p.width - f.i().width,
  27463. c = c.height - p.height - g.i().height,
  27464. v = v / n.width,
  27465. c = c / n.height,
  27466. p = n.width * v,
  27467. y = n.height * c,
  27468. z = r.width,
  27469. r = r.height;
  27470. if (C.L == C.la) {
  27471. var D = Math.round(p);
  27472. p != D && (p = D, v = p / n.width);
  27473. D = Math.round(y);
  27474. y != D && (y = D, c = y / n.height)
  27475. }
  27476. k.gb(v);
  27477. k.pb(c);
  27478. var n = this.lw,
  27479. D = this.Lw,
  27480. E = this.Zw,
  27481. F = this.Nv,
  27482. G = C.d(0, 0);
  27483. h.S(G);
  27484. g.S(G);
  27485. d.S(G);
  27486. f.S(G);
  27487. n.S(G);
  27488. D.S(G);
  27489. E.S(G);
  27490. F.S(G);
  27491. k.S(G);
  27492. h.p(0, 0);
  27493. g.p(z + p, 0);
  27494. d.p(0, r + y);
  27495. f.p(z + p, r + y);
  27496. n.p(0, r);
  27497. n.pb(c);
  27498. D.p(z + p, r);
  27499. D.pb(c);
  27500. F.p(z, 0);
  27501. F.gb(v);
  27502. E.p(z, r + y);
  27503. E.gb(v);
  27504. k.p(z, r)
  27505. }
  27506. },
  27507. ctor: function() {
  27508. C.ha.prototype.ctor.call(this);
  27509. this.cB = C.rect(0, 0, 0, 0);
  27510. this.s9 = C.rect(0, 0, 0, 0);
  27511. this.Mq = C.color(255, 255, 255, 255);
  27512. this.Gg = C.size(0, 0);
  27513. this.Nh = C.size(0, 0);
  27514. this.ya = C.color(255, 255, 255, 255);
  27515. this.Eb = 255;
  27516. this.df = C.rect(0, 0, 0, 0);
  27517. this.ac = []
  27518. },
  27519. sBa: A("Gg"),
  27520. y0: A("Nh"),
  27521. LOa: function() {
  27522. return this.Nh.width
  27523. },
  27524. KOa: function() {
  27525. return this.Nh.height
  27526. },
  27527. De: function(c) {
  27528. this.Ca(c);
  27529. this.Nh = c
  27530. },
  27531. wPa: function(c) {
  27532. this.Qh(c);
  27533. this.Nh.width = c
  27534. },
  27535. vPa: function(c) {
  27536. this.Ph(c);
  27537. this.Nh.height = c
  27538. },
  27539. rb: A("Eb"),
  27540. K: function(c) {
  27541. if (this.Yi) {
  27542. this.Eb = c;
  27543. for (var d = this.Yi.le(), f = 0; f < d.length; f++) {
  27544. var g = d[f];
  27545. g && g.sb && g.K(c)
  27546. }
  27547. this.ya.a = c
  27548. }
  27549. },
  27550. dc: function(c) {
  27551. C.ha.prototype.dc.call(this, c);
  27552. this.K(this.hb)
  27553. },
  27554. Xa: function() {
  27555. var c = this.ya;
  27556. return C.color(c.r, c.g, c.b, c.a)
  27557. },
  27558. G: function(c) {
  27559. if (this.Yi) {
  27560. var d = this.ya;
  27561. d.r = c.r;
  27562. d.g = c.g;
  27563. d.b = c.b;
  27564. for (var d = this.Yi.le(), f = 0; f < d.length; f++) {
  27565. var g = d[f];
  27566. g && g.sb && g.G(c)
  27567. }
  27568. c.a !== m && !c.jx && this.K(c.a)
  27569. }
  27570. },
  27571. Tb: function(c) {
  27572. C.ha.prototype.Tb.call(this, c);
  27573. this.G(this.wb)
  27574. },
  27575. l0: A("df"),
  27576. Gc: function(c) {
  27577. if (this.Yi) {
  27578. var d = this.o,
  27579. f = d.width,
  27580. d = d.height;
  27581. this.kD(this.Yi, this.cB, this.WY, c);
  27582. this.Ca(f, d)
  27583. }
  27584. },
  27585. MAa: A("OM"),
  27586. Jha: function(c) {
  27587. this.OM = c;
  27588. this.BO()
  27589. },
  27590. OAa: A("QM"),
  27591. Lha: function(c) {
  27592. this.QM = c;
  27593. this.BO()
  27594. },
  27595. NAa: A("PM"),
  27596. Kha: function(c) {
  27597. this.PM = c;
  27598. this.BO()
  27599. },
  27600. LAa: A("NM"),
  27601. Iha: function(c) {
  27602. this.NM = c;
  27603. this.BO()
  27604. },
  27605. Ca: function(c, d) {
  27606. C.A.prototype.Ca.call(this, c, d);
  27607. this.lp = q
  27608. },
  27609. Qh: function(c) {
  27610. C.A.prototype.Qh.call(this, c);
  27611. this.lp = q
  27612. },
  27613. Ph: function(c) {
  27614. C.A.prototype.Ph.call(this, c);
  27615. this.lp = q
  27616. },
  27617. J: function(c) {
  27618. this.lp && (this.cwa(), this.lp = t);
  27619. C.ha.prototype.J.call(this, c)
  27620. },
  27621. j: function() {
  27622. return this.dQ(s, C.rect(0, 0, 0, 0), t, C.rect(0, 0, 0, 0))
  27623. },
  27624. dQ: function(c, d, f, g) {
  27625. g === m && (g = f, f = t);
  27626. c && this.kD(c, d, f, g);
  27627. this.S(0.5, 0.5);
  27628. return this.lp = q
  27629. },
  27630. Ce: function(c, d, f) {
  27631. c instanceof C.az ? (f = c = d, d = C.rect(0, 0, 0, 0)) : (d = d || C.rect(0, 0, 0, 0), f = f || C.rect(0, 0, 0, 0));
  27632. c || e("cc.Scale9Sprite.initWithFile(): file should be non-null");
  27633. var g = C.kb.av(c);
  27634. if (!g) {
  27635. var g = C.kb.sd(c),
  27636. h = g.de; (this.Aa = h) || g.ye(function(c) {
  27637. var d = this.Nh,
  27638. d = C.size(d.width, d.height);
  27639. c = c.i();
  27640. this.kD(this.Yi, C.rect(0, 0, c.width, c.height), t, this.df);
  27641. this.De(d);
  27642. this.lp = q;
  27643. this.cf()
  27644. },
  27645. this)
  27646. }
  27647. return this.dQ(C.Bh.create(c, 9), d, t, f)
  27648. },
  27649. mj: function(c, d) { (!c || !c.ob()) && e("cc.Scale9Sprite.initWithSpriteFrame(): spriteFrame should be non-null and its texture should be non-null");
  27650. d = d || C.rect(0, 0, 0, 0);
  27651. var f = c.Aa; (this.Aa = f) || c.ye(function(c) {
  27652. var d = this.Nh,
  27653. d = C.size(d.width, d.height);
  27654. this.kD(this.Yi, c.Vh(), C.L == C.la && c.fg, this.df);
  27655. this.De(d);
  27656. this.lp = q;
  27657. this.cf()
  27658. },
  27659. this);
  27660. f = C.Bh.create(c.ob(), 9);
  27661. return this.dQ(f, c.Vh(), C.L == C.la && c.fg, d)
  27662. },
  27663. pl: function(c, d) {
  27664. c || e("cc.Scale9Sprite.initWithSpriteFrameName(): spriteFrameName should be non-null");
  27665. d = d || C.rect(0, 0, 0, 0);
  27666. var f = C.Fe.nh(c);
  27667. return f == s ? (C.log("cc.Scale9Sprite.initWithSpriteFrameName(): can't find the sprite frame by spriteFrameName"), t) : this.mj(f, d)
  27668. },
  27669. B2a: function(c) {
  27670. var d = new C.Sa;
  27671. return d && d.dQ(this.Yi, this.cB, t, c) ? d: s
  27672. },
  27673. $d: function(c) {
  27674. if (this.Yi) {
  27675. this.Fb = c;
  27676. var d = this.Yi.le();
  27677. if (d) for (var f = 0,
  27678. g = d.length; f < g; f++) d[f].$d(c)
  27679. }
  27680. },
  27681. qg: A("Fb"),
  27682. kD: function(c, d, f, g) {
  27683. var h = this.rb(),
  27684. k = this.Xa();
  27685. d = C.rect(d.x, d.y, d.width, d.height);
  27686. this.xf(q);
  27687. this.Yi != c && (this.Yi = c);
  27688. c = c.ob();
  27689. var n = c.de;
  27690. if (this.Aa = n) {
  27691. c = this.Yi;
  27692. c.xf(q);
  27693. n = this.df;
  27694. n.x = g.x;
  27695. n.y = g.y;
  27696. n.width = g.width;
  27697. n.height = g.height;
  27698. this.WY = f;
  27699. n = c.ob();
  27700. C.wG(d) && (d = n.i(), d = C.rect(0, 0, d.width, d.height));
  27701. var p = this.cB = d;
  27702. p.x = d.x;
  27703. p.y = d.y;
  27704. p.width = d.width;
  27705. p.height = d.height;
  27706. this.Gg.width = d.width;
  27707. this.Gg.height = d.height;
  27708. p = this.Nh;
  27709. 0 === p.width && 0 === p.height && (p.width = d.width, p.height = d.height);
  27710. p = this.s9;
  27711. g && (p.x = g.x, p.y = g.y, p.width = g.width, p.height = g.height);
  27712. var r = d.width;
  27713. g = d.height;
  27714. C.wG(p) && (p.x = r / 3, p.y = g / 3, p.width = r / 3, p.height = g / 3);
  27715. var v = p.x,
  27716. y = p.width,
  27717. z = r - (v + y),
  27718. D = p.y,
  27719. E = p.height,
  27720. F = g - (D + E),
  27721. G = 0,
  27722. K = 0;
  27723. g = C.rect(G, K, v, D);
  27724. var G = G + v,
  27725. p = C.rect(G, K, y, D),
  27726. r = C.rect(G + y, K, z, D),
  27727. G = 0,
  27728. K = 0 + D,
  27729. O = C.rect(G, K, v, E),
  27730. G = G + v,
  27731. U = C.rect(G, K, y, E),
  27732. G = G + y,
  27733. X = C.rect(G, K, z, E),
  27734. G = 0,
  27735. K = 0 + D + E,
  27736. D = C.rect(G, K, v, F),
  27737. G = G + v,
  27738. v = C.rect(G, K, y, F),
  27739. G = G + y,
  27740. y = C.rect(G, K, z, F),
  27741. z = {
  27742. a: 1,
  27743. b: 0,
  27744. H: 0,
  27745. P: 1,
  27746. na: 0,
  27747. oa: 0
  27748. };
  27749. if (f) {
  27750. f = U;
  27751. var F = y,
  27752. G = D,
  27753. K = r,
  27754. E = g,
  27755. N = X,
  27756. Q = O,
  27757. S = v,
  27758. M = p,
  27759. z = C.OJ(z, d.height + d.x, d.y),
  27760. z = C.Pja(z),
  27761. U = C.Gi(U, z),
  27762. y = C.Gi(y, z),
  27763. D = C.Gi(D, z),
  27764. r = C.Gi(r, z);
  27765. g = C.Gi(g, z);
  27766. X = C.Gi(X, z);
  27767. O = C.Gi(O, z);
  27768. v = C.Gi(v, z);
  27769. p = C.Gi(p, z);
  27770. f.x = U.x;
  27771. f.y = U.y;
  27772. F.x = y.x;
  27773. F.y = y.y;
  27774. G.x = D.x;
  27775. G.y = D.y;
  27776. K.x = r.x;
  27777. K.y = r.y;
  27778. E.x = g.x;
  27779. E.y = g.y;
  27780. N.x = X.x;
  27781. N.y = X.y;
  27782. Q.x = O.x;
  27783. Q.y = O.y;
  27784. S.x = v.x;
  27785. S.y = v.y;
  27786. M.x = p.x;
  27787. M.y = p.y;
  27788. this.Iq = new C.u;
  27789. this.Iq.ta(n, f, q);
  27790. c.q(this.Iq, 0, C.Sa.a7);
  27791. this.Zw = new C.u;
  27792. this.Zw.ta(n, M, q);
  27793. c.q(this.Zw, 1, C.Sa.d7);
  27794. this.Nv = new C.u;
  27795. this.Nv.ta(n, S, q);
  27796. c.q(this.Nv, 1, C.Sa.Z6);
  27797. this.lw = new C.u;
  27798. this.lw.ta(n, Q, q);
  27799. c.q(this.lw, 1, C.Sa.b7);
  27800. this.Lw = new C.u;
  27801. this.Lw.ta(n, N, q);
  27802. c.q(this.Lw, 1, C.Sa.c7);
  27803. this.iu = new C.u;
  27804. this.iu.ta(n, E, q);
  27805. c.q(this.iu, 2, C.Sa.e7);
  27806. this.ju = new C.u;
  27807. this.ju.ta(n, K, q);
  27808. c.q(this.ju, 2, C.Sa.f7);
  27809. this.Zs = new C.u;
  27810. this.Zs.ta(n, G, q);
  27811. c.q(this.Zs, 2, C.Sa.Kna);
  27812. this.Ov = new C.u;
  27813. this.Ov.ta(n, F, q)
  27814. } else z = C.OJ(z, d.x, d.y),
  27815. C.Io(U, z),
  27816. C.Io(y, z),
  27817. C.Io(D, z),
  27818. C.Io(r, z),
  27819. C.Io(g, z),
  27820. C.Io(X, z),
  27821. C.Io(O, z),
  27822. C.Io(v, z),
  27823. C.Io(p, z),
  27824. this.Iq = new C.u,
  27825. this.Iq.ta(n, U),
  27826. c.q(this.Iq, 0, C.Sa.a7),
  27827. this.Zw = new C.u,
  27828. this.Zw.ta(n, p),
  27829. c.q(this.Zw, 1, C.Sa.d7),
  27830. this.Nv = new C.u,
  27831. this.Nv.ta(n, v),
  27832. c.q(this.Nv, 1, C.Sa.Z6),
  27833. this.lw = new C.u,
  27834. this.lw.ta(n, O),
  27835. c.q(this.lw, 1, C.Sa.b7),
  27836. this.Lw = new C.u,
  27837. this.Lw.ta(n, X),
  27838. c.q(this.Lw, 1, C.Sa.c7),
  27839. this.iu = new C.u,
  27840. this.iu.ta(n, g),
  27841. c.q(this.iu, 2, C.Sa.e7),
  27842. this.ju = new C.u,
  27843. this.ju.ta(n, r),
  27844. c.q(this.ju, 2, C.Sa.f7),
  27845. this.Zs = new C.u,
  27846. this.Zs.ta(n, D),
  27847. c.q(this.Zs, 2, C.Sa.Kna),
  27848. this.Ov = new C.u,
  27849. this.Ov.ta(n, y);
  27850. c.q(this.Ov, 2, C.Sa.Lna);
  27851. this.Ca(d);
  27852. this.q(c);
  27853. this.Mba && (this.K(h), (255 !== k.r || 255 !== k.g || 255 !== k.b) && this.G(k));
  27854. return this.Mba = q
  27855. }
  27856. c.ye(function() {
  27857. this.lp = q;
  27858. this.cf()
  27859. },
  27860. this)
  27861. },
  27862. pc: function(c) {
  27863. var d = C.Bh.create(c.ob(), 9),
  27864. f = c.Aa; (this.Aa = f) || c.ye(function(c) {
  27865. var d = this.Nh,
  27866. d = C.size(d.width, d.height);
  27867. this.kD(this.Yi, c.Vh(), C.L == C.la && c.fg, this.df);
  27868. this.De(d);
  27869. this.lp = q;
  27870. this.cf()
  27871. },
  27872. this);
  27873. this.kD(d, c.Vh(), C.L == C.la && c.fg, C.rect(0, 0, 0, 0));
  27874. this.NM = this.PM = this.QM = this.OM = 0
  27875. }
  27876. });
  27877. H = C.Sa.prototype;
  27878. C.e(H, "preferredSize", H.y0, H.De);
  27879. C.e(H, "capInsets", H.l0, H.Gc);
  27880. C.e(H, "insetLeft", H.MAa, H.Jha);
  27881. C.e(H, "insetTop", H.OAa, H.Lha);
  27882. C.e(H, "insetRight", H.NAa, H.Kha);
  27883. C.e(H, "insetBottom", H.LAa, H.Iha);
  27884. H = s;
  27885. C.Sa.create = function(c, d, f) {
  27886. var g;
  27887. if (2 === arguments.length) if ("string" == typeof c) {
  27888. if ((g = new C.Sa) && g.Ce(c, d)) return g
  27889. } else {
  27890. if (c instanceof C.az && (g = new C.Sa) && g.Ce(c, f)) return g
  27891. } else if (3 === arguments.length) {
  27892. if ((g = new C.Sa) && g.Ce(c, d, f)) return g
  27893. } else if (1 === arguments.length) {
  27894. if ((g = new C.Sa) && g.Ce(c)) return g
  27895. } else if (0 === arguments.length && (g = new C.Sa) && g.j()) return g;
  27896. return s
  27897. };
  27898. C.Sa.$xa = function(c) {
  27899. var d = new C.Sa;
  27900. return d && d.mj(c, m) ? d: s
  27901. };
  27902. C.Sa.cda = function(c, d) {
  27903. c || e("cc.Scale9Sprite.createWithSpriteFrameName(): spriteFrameName should be non-null");
  27904. var f = new C.Sa;
  27905. return f && f.pl(c, d) ? f: s
  27906. };
  27907. C.Sa.a7 = 0;
  27908. C.Sa.d7 = 1;
  27909. C.Sa.b7 = 2;
  27910. C.Sa.c7 = 3;
  27911. C.Sa.Z6 = 4;
  27912. C.Sa.f7 = 5;
  27913. C.Sa.e7 = 6;
  27914. C.Sa.Lna = 7;
  27915. C.NK = C.qe.extend({});
  27916. C.NK.Q6a = function(c) {
  27917. var d = new C.NK;
  27918. d.j();
  27919. d.Ca(0, c);
  27920. return d
  27921. };
  27922. C.NK.MXa = function(c) {
  27923. var d = new C.NK;
  27924. d.j();
  27925. d.Ca(c, 0);
  27926. return d
  27927. };
  27928. C.wK = C.qe.extend({
  27929. sb: q,
  27930. ya: s,
  27931. Eb: 0,
  27932. qa: "MenuPassive",
  27933. ctor: u(),
  27934. Xa: function() {
  27935. var c = this.ya;
  27936. return C.color(c.r, c.g, c.b, c.a)
  27937. },
  27938. G: function(c) {
  27939. var d = this.ya;
  27940. d.r = c.r;
  27941. d.g = c.g;
  27942. d.b = c.b;
  27943. if (this.l && 0 < this.l.length) for (d = 0; d < this.l.length; d++) this.l[d] && this.l[d].sb && this.l[d].G(c);
  27944. c.a !== m && !c.jx && this.K(c.a)
  27945. },
  27946. rb: A("Eb"),
  27947. K: function(c) {
  27948. this.Eb = c;
  27949. if (this.l && 0 < this.l.length) for (var d = 0; d < this.l.length; d++) this.l[d] && this.l[d].sb && this.l[d].K(c);
  27950. this.ya.a = c
  27951. },
  27952. fQ: function(c, d) {
  27953. if (this.j()) {
  27954. var f = C.Q.aa;
  27955. this.Hm(q);
  27956. this.S(0.5, 0.5);
  27957. this.Ca(f);
  27958. this.p(f.width / 2, f.height / 2);
  27959. f = 0;
  27960. if (c) {
  27961. this.q(c, f);
  27962. for (var g = 0; g < d.length; g++) d[g] && (f++, this.q(d[g], f))
  27963. }
  27964. return q
  27965. }
  27966. return t
  27967. },
  27968. Kwa: function() {
  27969. this.RZ(C.eK)
  27970. },
  27971. RZ: function(c) {
  27972. var d = -c,
  27973. f;
  27974. if (this.l && 0 < this.l.length) for (f = 0; f < this.l.length; f++) this.l[f] && (d += this.l[f].i().height * this.l[f].pa + c);
  27975. var g = 0,
  27976. h = d / 2;
  27977. if (this.l && 0 < this.l.length) for (f = 0; f < this.l.length; f++) this.l[f] && (g = Math.max(g, this.l[f].i().width), this.l[f].p(0, h - this.l[f].i().height * this.l[f].pa / 2), h -= this.l[f].i().height * this.l[f].pa + c);
  27978. this.Ca(g, d)
  27979. },
  27980. Hwa: function() {
  27981. this.QZ(C.eK)
  27982. },
  27983. QZ: function(c) {
  27984. var d = -c,
  27985. f;
  27986. if (this.l && 0 < this.l.length) for (f = 0; f < this.l.length; f++) this.l[f] && (d += this.l[f].i().width * this.l[f].ia + c);
  27987. var g = 0,
  27988. h = -d / 2;
  27989. if (this.l && 0 < this.l.length) for (f = 0; f < this.l.length; f++) this.l[f] && (g = Math.max(g, this.l[f].i().height), this.l[f].p(h + this.l[f].i().width * this.l[f].ia / 2, 0), h += this.l[f].i().width * this.l[f].ia + c);
  27990. this.Ca(d, g)
  27991. },
  27992. Iwa: function(c) {
  27993. var d = [],
  27994. f;
  27995. for (f = 1; f < arguments.length; f++) d.push(arguments[f]);
  27996. var g = -5,
  27997. h = 0,
  27998. k = 0,
  27999. n = 0,
  28000. p, r;
  28001. if (this.l && 0 < this.l.length) for (f = 0; f < this.l.length; f++) this.l[f] && (h >= d.length ? C.log("cc.MenuPassive.alignItemsInColumns(): invalid row index") : (p = d[h]) ? (r = this.l[f].i().height, k = 0 | (k >= r || r == s ? k: r), ++n, n >= p && (g += k + 5, k = n = 0, ++h)) : C.log("cc.MenuPassive.alignItemsInColumns(): can not have zero columns on a row"));
  28002. var v = C.Q.aa,
  28003. y = p = k = h = 0,
  28004. z = 0,
  28005. g = g / 2;
  28006. if (this.l && 0 < this.l.length) for (f = 0; f < this.l.length; f++) this.l[f] && (0 == p && (p = d[h], z = y = v.width / (1 + p)), r = this.l[f].i().height, k = 0 | (k >= r || r == s ? k: r), this.l[f].p(z - v.width / 2, g - this.l[f].i().height / 2), z += y, ++n, n >= p && (g -= k + 5, k = p = n = 0, ++h))
  28007. },
  28008. Jwa: function(c) {
  28009. var d = [],
  28010. f;
  28011. for (f = 1; f < arguments.length; f++) d.push(arguments[f]);
  28012. var g = [],
  28013. h = [],
  28014. k = -10,
  28015. n = -5,
  28016. p = 0,
  28017. r = 0,
  28018. v = 0,
  28019. y,
  28020. z;
  28021. if (this.l && 0 < this.l.length) for (f = 0; f < this.l.length; f++) this.l[f] && (p >= d.length ? C.log("cc.MenuPassive.alignItemsInRows(): invalid row index") : (y = d[p]) ? (z = this.l[f].i().width, r = 0 | (r >= z || z == s ? r: z), n += 0 | this.l[f].i().height + 5, ++v, v >= y && (g.push(r), h.push(n), k += r + 10, r = v = 0, n = -5, ++p)) : C.log("cc.MenuPassive.alignItemsInColumns(): can't have zero rows on a column"));
  28022. n = C.Q.aa;
  28023. r = p = 0;
  28024. y = s;
  28025. var k = -k / 2,
  28026. D = 0;
  28027. if (this.l && 0 < this.l.length) for (f = 0; f < this.l.length; f++) this.l[f] && (y == s && (y = d[p], D = h[p]), z = this.l[f].i().width, r = 0 | (r >= z || z == s ? r: z), this.l[f].p(k + g[p] / 2, D - n.height / 2), D -= this.l[f].i().height + 10, ++v, v >= y && (k += r + 5, r = y = v = 0, ++p))
  28028. },
  28029. $d: u(),
  28030. qg: B(t)
  28031. });
  28032. C.wK.create = function(c) {
  28033. c || (c = s);
  28034. for (var d = [], f = 1; f < arguments.length; f++) d.push(arguments[f]);
  28035. return (f = new C.wK) && f.fQ(c, d) ? f: s
  28036. };
  28037. C.wK.oRa = function(c) {
  28038. return C.wK.create(c, s)
  28039. };
  28040. C.dK = C.Kc.extend({
  28041. tY: 0,
  28042. BL: 0,
  28043. Le: s,
  28044. bua: s,
  28045. Cba: s,
  28046. nm: s,
  28047. je: s,
  28048. Kk: 0,
  28049. Eq: 0,
  28050. qa: "ControlSaturationBrightnessPicker",
  28051. IBa: A("tY"),
  28052. gAa: A("BL"),
  28053. KH: A("Le"),
  28054. tBa: A("BL"),
  28055. NBa: A("Cba"),
  28056. D0: A("nm"),
  28057. F0: A("je"),
  28058. a1: function(c, d) {
  28059. return C.Kc.prototype.j.call(this) ? (this.Le = C.Ah.lx("colourPickerBackground.png", c, d, C.d(0, 0)), this.bua = C.Ah.lx("colourPickerOverlay.png", c, d, C.d(0, 0)), this.Cba = C.Ah.lx("colourPickerShadow.png", c, d, C.d(0, 0)), this.nm = C.Ah.lx("colourPicker.png", c, d, C.d(0.5, 0.5)), this.je = d, this.Kk = 35, this.Eq = this.Le.i().width / 2, q) : t
  28060. },
  28061. Ib: function(c) {
  28062. C.Kc.prototype.Ib.call(this, c);
  28063. this.nm && this.nm.K(c ? 255 : 128)
  28064. },
  28065. qja: function(c) {
  28066. var d = new C.jT;
  28067. d.tl = 1;
  28068. d.Rf = c.Rf;
  28069. d.ea = 1;
  28070. c = C.Ah.WT(d);
  28071. this.Le.G(C.color(0 | 255 * c.r, 0 | 255 * c.g, 0 | 255 * c.b))
  28072. },
  28073. EJa: function(c) {
  28074. c = C.d(this.je.x + this.Kk + this.Eq * (1 - c.tl), this.je.y + this.Kk + this.Eq * c.ea);
  28075. this.GO(c)
  28076. },
  28077. GO: function(c) {
  28078. var d = this.je.x + 0.5 * this.Le.Ae().width,
  28079. f = this.je.y + 0.5 * this.Le.Ae().height,
  28080. g = c.x - d,
  28081. h = c.y - f,
  28082. k = Math.sqrt(g * g + h * h),
  28083. g = Math.atan2(h, g),
  28084. h = 0.5 * this.Le.Ae().width;
  28085. k > h && (c.x = d + h * Math.cos(g), c.y = f + h * Math.sin(g));
  28086. this.nm.p(c);
  28087. c.x < this.je.x + this.Kk ? c.x = this.je.x + this.Kk: c.x > this.je.x + this.Kk + this.Eq - 1 && (c.x = this.je.x + this.Kk + this.Eq - 1);
  28088. c.y < this.je.y + this.Kk ? c.y = this.je.y + this.Kk: c.y > this.je.y + this.Kk + this.Eq && (c.y = this.je.y + this.Kk + this.Eq);
  28089. this.tY = 1 - Math.abs((this.je.x + this.Kk - c.x) / this.Eq);
  28090. this.BL = Math.abs((this.je.y + this.Kk - c.y) / this.Eq)
  28091. },
  28092. gF: function(c) {
  28093. var d = this.je.x + 0.5 * this.Le.Ae().width,
  28094. f = this.je.y + 0.5 * this.Le.Ae().height,
  28095. d = c.x - d,
  28096. f = c.y - f;
  28097. return Math.sqrt(d * d + f * f) <= 0.5 * this.Le.Ae().width ? (this.GO(c), this.Bi(C.uo), q) : t
  28098. },
  28099. nc: function(c) {
  28100. if (!this.isEnabled() || !this.Ja) return t;
  28101. c = this.Gp(c);
  28102. return this.gF(c)
  28103. },
  28104. yd: function(c) {
  28105. c = this.Gp(c);
  28106. this.gF(c)
  28107. }
  28108. });
  28109. H = C.dK.prototype;
  28110. C.e(H, "saturation", H.IBa);
  28111. C.e(H, "brightness", H.gAa);
  28112. C.e(H, "background", H.KH);
  28113. C.e(H, "overlay", H.tBa);
  28114. C.e(H, "shadow", H.NBa);
  28115. C.e(H, "slider", H.D0);
  28116. C.e(H, "startPos", H.F0);
  28117. H = s;
  28118. C.dK.create = function(c, d) {
  28119. var f = new C.dK;
  28120. f.a1(c, d);
  28121. return f
  28122. };
  28123. C.cK = C.Kc.extend({
  28124. kA: 0,
  28125. TF: 0,
  28126. Le: s,
  28127. nm: s,
  28128. je: s,
  28129. qa: "ControlHuePicker",
  28130. GAa: A("kA"),
  28131. AR: function(c) {
  28132. this.kA = c;
  28133. this.Gha(this.kA / 360)
  28134. },
  28135. HAa: A("TF"),
  28136. Gha: function(c) {
  28137. this.TF = c;
  28138. this.kA = 360 * this.TF;
  28139. c = this.Le.Ae();
  28140. var d = 0.5 * c.width - 15,
  28141. f = C.ng(360 * this.TF - 180);
  28142. this.nm.p(this.je.x + 0.5 * c.width + d * Math.cos(f), this.je.y + 0.5 * c.height + d * Math.sin(f))
  28143. },
  28144. Ib: function(c) {
  28145. C.Kc.prototype.Ib.call(this, c);
  28146. this.nm && this.nm.K(c ? 255 : 128)
  28147. },
  28148. KH: A("Le"),
  28149. D0: A("nm"),
  28150. F0: A("je"),
  28151. a1: function(c, d) {
  28152. return C.Kc.prototype.j.call(this) ? (this.Le = C.Ah.lx("huePickerBackground.png", c, d, C.d(0, 0)), this.nm = C.Ah.lx("colourPicker.png", c, d, C.d(0.5, 0.5)), this.nm.p(d.x, d.y + 0.5 * this.Le.Ae().height), this.je = d, this.TF = this.kA = 0, q) : t
  28153. },
  28154. GO: function(c) {
  28155. var d = this.Le.Ae();
  28156. this.AR(C.LC(Math.atan2(c.y - (this.je.y + 0.5 * d.height), c.x - (this.je.x + 0.5 * d.width))) + 180);
  28157. this.Bi(C.uo)
  28158. },
  28159. gF: function(c) {
  28160. var d = Math.sqrt(Math.pow(c.x + 10, 2) + Math.pow(c.y, 2));
  28161. return 80 > d && 59 < d ? (this.GO(c), q) : t
  28162. },
  28163. nc: function(c) {
  28164. if (!this.isEnabled() || !this.Ja) return t;
  28165. c = this.Gp(c);
  28166. return this.gF(c)
  28167. },
  28168. yd: function(c) {
  28169. c = this.Gp(c);
  28170. this.gF(c)
  28171. }
  28172. });
  28173. H = C.cK.prototype;
  28174. C.e(H, "hue", H.GAa, H.AR);
  28175. C.e(H, "huePercent", H.HAa, H.Gha);
  28176. C.e(H, "background", H.KH);
  28177. C.e(H, "slider", H.D0);
  28178. C.e(H, "startPos", H.F0);
  28179. H = s;
  28180. C.cK.create = function(c, d) {
  28181. var f = new C.cK;
  28182. f.a1(c, d);
  28183. return f
  28184. };
  28185. C.OS = C.Kc.extend({
  28186. Yl: s,
  28187. ft: s,
  28188. dw: s,
  28189. Le: s,
  28190. qa: "ControlColourPicker",
  28191. GCa: function(c) {
  28192. this.Yl.Rf = c.kA;
  28193. c = C.Ah.WT(this.Yl);
  28194. C.Kc.prototype.G.call(this, C.color(0 | 255 * c.r, 0 | 255 * c.g, 0 | 255 * c.b));
  28195. this.Bi(C.uo);
  28196. this.awa()
  28197. },
  28198. Lxa: function(c) {
  28199. this.Yl.tl = c.tY;
  28200. this.Yl.ea = c.BL;
  28201. c = C.Ah.WT(this.Yl);
  28202. C.Kc.prototype.G.call(this, C.color(0 | 255 * c.r, 0 | 255 * c.g, 0 | 255 * c.b));
  28203. this.Bi(C.uo)
  28204. },
  28205. G: function(c) {
  28206. C.Kc.prototype.G.call(this, c);
  28207. var d = new Pa;
  28208. d.r = c.r / 255;
  28209. d.g = c.g / 255;
  28210. d.b = c.b / 255;
  28211. d.a = 1;
  28212. this.Yl = C.Ah.uma(d);
  28213. this.dca()
  28214. },
  28215. KH: A("Le"),
  28216. j: function() {
  28217. if (C.Kc.prototype.j.call(this)) {
  28218. C.Fe.Lr(I.E4);
  28219. var c = C.Bh.create(I.F4);
  28220. this.q(c);
  28221. this.Yl = new C.jT(0, 0, 0);
  28222. this.Le = C.Ah.lx("menuColourPanelBackground.png", c, C.d(0, 0), C.d(0.5, 0.5));
  28223. var d = C.cc(this.Le.Ld(), C.d(this.Le.i().width / 2, this.Le.i().height / 2));
  28224. this.dw = C.cK.create(c, C.d(d.x + 8, d.y + 8));
  28225. this.ft = C.dK.create(c, C.d(d.x + 28, d.y + 28));
  28226. this.dw.nH(this, this.GCa, C.uo);
  28227. this.ft.nH(this, this.Lxa, C.uo);
  28228. this.dca();
  28229. this.q(this.dw);
  28230. this.q(this.ft);
  28231. this.Ca(this.Le.i());
  28232. return q
  28233. }
  28234. return t
  28235. },
  28236. awa: function() {
  28237. this.dw.AR(this.Yl.Rf);
  28238. this.ft.qja(this.Yl)
  28239. },
  28240. dca: function() {
  28241. this.dw.AR(this.Yl.Rf);
  28242. this.ft.qja(this.Yl);
  28243. this.ft.EJa(this.Yl)
  28244. },
  28245. Ib: function(c) {
  28246. C.Kc.prototype.Ib.call(this, c);
  28247. this.dw != s && this.dw.Ib(c);
  28248. this.ft && this.ft.Ib(c)
  28249. },
  28250. nc: B(t)
  28251. });
  28252. H = C.OS.prototype;
  28253. C.e(H, "background", H.KH);
  28254. H = s;
  28255. C.OS.create = function() {
  28256. var c = new C.OS;
  28257. c.j();
  28258. return c
  28259. };
  28260. var I = I || {};
  28261. I.E4 = I.E4 || "res/extensions/CCControlColourPickerSpriteSheet.plist";
  28262. I.F4 = I.F4 || "res/extensions/CCControlColourPickerSpriteSheet.png";
  28263. C.F7 = 24;
  28264. C.aNa = 8;
  28265. C.QS = C.Kc.extend({
  28266. Hd: 0,
  28267. Rb: 0,
  28268. sc: 0,
  28269. iN: 0,
  28270. gN: 0,
  28271. vc: s,
  28272. Pt: s,
  28273. Eh: s,
  28274. qa: "ControlSlider",
  28275. Qf: A("Hd"),
  28276. ne: function(c) {
  28277. c = Math.max(c, this.Rb);
  28278. this.Hd = c = Math.min(c, this.sc);
  28279. this.Tf();
  28280. this.Bi(C.uo)
  28281. },
  28282. QH: A("Rb"),
  28283. iJ: function(c) {
  28284. this.iN = this.Rb = c;
  28285. this.Rb >= this.sc && (this.sc = this.Rb + 1);
  28286. this.ne(this.Hd)
  28287. },
  28288. PH: A("sc"),
  28289. hJ: function(c) {
  28290. this.gN = this.sc = c;
  28291. this.sc <= this.Rb && (this.Rb = this.sc - 1);
  28292. this.ne(this.Hd)
  28293. },
  28294. Zn: function(c) {
  28295. c = c.mh();
  28296. c = this.getParent().wi(c);
  28297. var d = this.Ae();
  28298. d.width += this.vc.i().width;
  28299. d.x -= this.vc.i().width / 2;
  28300. return C.Ju(d, c)
  28301. },
  28302. Tx: function(c) {
  28303. c = c.mh();
  28304. c = this.wi(c);
  28305. 0 > c.x ? c.x = 0 : c.x > this.Eh.i().width && (c.x = this.Eh.i().width);
  28306. return c
  28307. },
  28308. fBa: A("iN"),
  28309. LHa: x("iN"),
  28310. dBa: A("gN"),
  28311. JHa: x("gN"),
  28312. XH: A("vc"),
  28313. zBa: A("Pt"),
  28314. bAa: A("Eh"),
  28315. YCa: function(c, d, f) {
  28316. return C.Kc.prototype.j.call(this) ? (this.Hm(t), this.Eh = c, this.Pt = d, this.vc = f, c = C.Ah.G4(c.Ae(), f.Ae()), this.Ca(c.width, c.height), this.Eh.S(0.5, 0.5), this.Eh.p(c.width / 2, c.height / 2), this.q(this.Eh), this.Pt.S(0, 0.5), this.Pt.p(0, c.height / 2), this.q(this.Pt), this.vc.p(0, c.height / 2), this.q(this.vc), this.Rb = 0, this.sc = 1, this.ne(this.Rb), q) : t
  28317. },
  28318. Ib: function(c) {
  28319. C.Kc.prototype.Ib.call(this, c);
  28320. this.vc && this.vc.K(c ? 255 : 128)
  28321. },
  28322. GIa: function(c) {
  28323. this.Wu(q);
  28324. this.vc.G(C.color.GRAY);
  28325. this.ne(this.c4(c))
  28326. },
  28327. IIa: function(c) {
  28328. this.ne(this.c4(c))
  28329. },
  28330. HIa: function() {
  28331. this.oQ() && this.ne(this.c4(this.vc.Ld()));
  28332. this.vc.G(C.color.WHITE);
  28333. this.Wu(t)
  28334. },
  28335. hXa: function(c) {
  28336. c = c.mh();
  28337. c = this.wi(c);
  28338. 0 > c.x ? c.x = 0 : c.x > this.Eh.i().width + C.F7 && (c.x = this.Eh.i().width + C.F7);
  28339. return c
  28340. },
  28341. nc: function(c) {
  28342. if (!this.Zn(c) || !this.isEnabled() || !this.Ja) return t;
  28343. c = this.Tx(c);
  28344. this.GIa(c);
  28345. return q
  28346. },
  28347. yd: function(c) {
  28348. c = this.Tx(c);
  28349. this.IIa(c)
  28350. },
  28351. cd: function() {
  28352. this.HIa(C.d(0, 0))
  28353. },
  28354. Tf: function() {
  28355. this.vc.rs((this.Hd - this.Rb) / (this.sc - this.Rb) * this.Eh.i().width);
  28356. var c = this.Pt.WH(),
  28357. c = C.rect(c.x, c.y, this.vc.Rc(), c.height);
  28358. this.Pt.qc(c, this.Pt.jf)
  28359. },
  28360. c4: function(c) {
  28361. c = c.x / this.Eh.i().width;
  28362. return Math.max(Math.min(this.Rb + c * (this.sc - this.Rb), this.gN), this.iN)
  28363. }
  28364. });
  28365. H = C.QS.prototype;
  28366. C.e(H, "value", H.Qf, H.ne);
  28367. C.e(H, "minValue", H.QH, H.iJ);
  28368. C.e(H, "maxValue", H.PH, H.hJ);
  28369. C.e(H, "minAllowedValue", H.fBa, H.LHa);
  28370. C.e(H, "maxAllowedValue", H.dBa, H.JHa);
  28371. C.e(H, "thumbSprite", H.XH);
  28372. C.e(H, "progressSprite", H.zBa);
  28373. C.e(H, "backgroundSprite", H.bAa);
  28374. H = s;
  28375. C.QS.create = function(c, d, f) {
  28376. "string" == typeof c && (c = C.u.create(c), d = C.u.create(d), f = C.u.create(f));
  28377. var g = new C.QS;
  28378. g.YCa(c, d, f);
  28379. return g
  28380. };
  28381. C.q5 = C.Kc.extend({
  28382. If: s,
  28383. aaa: 0,
  28384. dG: t,
  28385. FA: t,
  28386. qa: "ControlSwitch",
  28387. ctor: function() {
  28388. C.Kc.prototype.ctor.call(this)
  28389. },
  28390. W0: function(c, d, f, g, h, k) {
  28391. c || e("cc.ControlSwitch.initWithMaskSprite(): maskSprite should be non-null.");
  28392. d || e("cc.ControlSwitch.initWithMaskSprite(): onSprite should be non-null.");
  28393. f || e("cc.ControlSwitch.initWithMaskSprite(): offSprite should be non-null.");
  28394. g || e("cc.ControlSwitch.initWithMaskSprite(): thumbSprite should be non-null.");
  28395. return this.j() ? (this.FA = q, this.If = new C.r5, this.If.W0(c, d, f, g, h, k), this.If.p(this.If.i().width / 2, this.If.i().height / 2), this.q(this.If), this.Hm(t), this.S(0.5, 0.5), this.Ca(this.If.i()), q) : t
  28396. },
  28397. ER: function(c, d) {
  28398. var f = (this.FA = c) ? this.If.Kt: this.If.ww;
  28399. d || t ? this.If.Ya(C.fv.create(0.2, "sliderXPosition", this.If.tr, f)) : this.If.MR(f);
  28400. this.Bi(C.uo)
  28401. },
  28402. AYa: A("FA"),
  28403. HXa: A("dG"),
  28404. Ib: function(c) {
  28405. this.Wc = c;
  28406. this.If.K(c ? 255 : 128)
  28407. },
  28408. Tx: function(c) {
  28409. c = c.mh();
  28410. return c = this.wi(c)
  28411. },
  28412. nc: function(c) {
  28413. if (!this.Zn(c) || !this.isEnabled() || !this.Ja) return t;
  28414. this.dG = t;
  28415. this.aaa = this.Tx(c).x - this.If.tr;
  28416. this.If.vc.G(C.color.GRAY);
  28417. this.If.Tf();
  28418. return q
  28419. },
  28420. yd: function(c) {
  28421. c = this.Tx(c);
  28422. c = C.d(c.x - this.aaa, 0);
  28423. this.dG = q;
  28424. this.If.MR(c.x)
  28425. },
  28426. cd: function(c) {
  28427. c = this.Tx(c);
  28428. this.If.vc.G(C.color.WHITE);
  28429. this.dG ? this.ER(!(c.x < this.If.i().width / 2), q) : this.ER(!this.FA, q)
  28430. },
  28431. Xe: function(c) {
  28432. c = this.Tx(c);
  28433. this.If.vc.G(C.color.WHITE);
  28434. this.dG ? this.ER(!(c.x < this.If.i().width / 2), q) : this.ER(!this.FA, q)
  28435. }
  28436. });
  28437. C.q5.create = function(c, d, f, g, h, k) {
  28438. var n = new C.q5;
  28439. return n && n.W0(c, d, f, g, h, k) ? n: s
  28440. };
  28441. C.r5 = C.u.extend({
  28442. tr: 0,
  28443. Kt: 0,
  28444. ww: 0,
  28445. Qba: 0,
  28446. sX: 0,
  28447. tX: s,
  28448. un: s,
  28449. hr: s,
  28450. vc: s,
  28451. kG: s,
  28452. iG: s,
  28453. Hz: s,
  28454. Ud: s,
  28455. l9: s,
  28456. ctor: function() {
  28457. C.u.prototype.ctor.call(this);
  28458. this.sX = this.ww = this.Kt = this.tr = 0;
  28459. this.tX = C.size(0, 0);
  28460. this.iG = this.kG = this.vc = this.hr = this.un = s
  28461. },
  28462. W0: function(c, d, f, g, h, k) {
  28463. return C.u.prototype.ta.call(this, c.ob()) ? (this.Kt = 0, this.ww = -d.i().width + g.i().width / 2, this.tr = this.Kt, this.Uha(d), this.Sha(f), this.qJ(g), this.Tha(h), this.Rha(k), this.Ud = c, c = this.tX = this.Ud.i(), this.Ud.p(0, 0), this.Hz = C.Tc.create(), this.Hz.S(0.5, 0.5), this.Hz.p(c.width / 2, c.height / 2), this.Hz.OR(this.Ud), this.l9 = C.yv.create(c.width, c.height), this.Hz.q(this.l9.E0()), this.q(this.Hz), this.q(this.vc), this.Tf(), q) : t
  28464. },
  28465. Tf: function() {
  28466. this.un.p(this.un.i().width / 2 + this.tr, this.un.i().height / 2);
  28467. this.hr.p(this.un.i().width + this.hr.i().width / 2 + this.tr, this.hr.i().height / 2);
  28468. this.kG && this.kG.p(this.un.Rc() - this.vc.i().width / 6, this.un.i().height / 2);
  28469. this.iG && this.iG.p(this.hr.Rc() + this.vc.i().width / 6, this.hr.i().height / 2);
  28470. this.vc.p(this.un.i().width + this.tr, this.tX.height / 2)
  28471. },
  28472. MR: function(c) {
  28473. c <= this.ww ? c = this.ww: c >= this.Kt && (c = this.Kt);
  28474. this.tr = c;
  28475. this.Tf()
  28476. },
  28477. QBa: A("tr"),
  28478. Csa: function() {
  28479. return this.un.i().width
  28480. },
  28481. zsa: function() {
  28482. return this.hr.i().height
  28483. },
  28484. Z3: function(c, d) {
  28485. C.log("key \x3d " + d + ", value \x3d " + c);
  28486. this.MR(c)
  28487. },
  28488. SHa: x("Kt"),
  28489. qBa: A("Kt"),
  28490. RHa: x("ww"),
  28491. nBa: A("ww"),
  28492. GHa: function(c) {
  28493. this.Ud.Va(c)
  28494. },
  28495. $Aa: function() {
  28496. return this.Ud.ob()
  28497. },
  28498. o5a: x("Qba"),
  28499. UWa: A("Qba"),
  28500. FHa: x("sX"),
  28501. ZAa: A("sX"),
  28502. Uha: x("un"),
  28503. rBa: A("un"),
  28504. Sha: x("hr"),
  28505. oBa: A("hr"),
  28506. qJ: x("vc"),
  28507. XH: A("vc"),
  28508. Tha: x("kG"),
  28509. pBa: A("kG"),
  28510. Rha: x("iG"),
  28511. mBa: A("iG")
  28512. });
  28513. H = C.r5.prototype;
  28514. C.e(H, "sliderX", H.QBa, H.MR);
  28515. C.e(H, "onPos", H.qBa, H.SHa);
  28516. C.e(H, "offPos", H.nBa, H.RHa);
  28517. C.e(H, "maskTexture", H.$Aa, H.GHa);
  28518. C.e(H, "maskPos", H.ZAa, H.FHa);
  28519. C.e(H, "onSprite", H.rBa, H.Uha);
  28520. C.e(H, "offSprite", H.oBa, H.Sha);
  28521. C.e(H, "thumbSprite", H.XH, H.qJ);
  28522. C.e(H, "onLabel", H.pBa, H.Tha);
  28523. C.e(H, "offLabel", H.mBa, H.Rha);
  28524. C.e(H, "onSideWidth", H.Csa);
  28525. C.e(H, "offSideWidth", H.zsa);
  28526. H = s;
  28527. C.h5 = 0;
  28528. C.i5 = 1;
  28529. C.XJ = 2;
  28530. C.ED = C.color(55, 55, 55);
  28531. C.LS = C.color(147, 147, 147);
  28532. C.g5 = "CourierNewPSMT";
  28533. C.j4 = 0.15;
  28534. C.Cja = 12;
  28535. C.RS = C.Kc.extend({
  28536. bh: s,
  28537. Si: s,
  28538. Gt: s,
  28539. Nt: s,
  28540. Hd: 0,
  28541. oF: t,
  28542. pz: t,
  28543. ou: t,
  28544. Rb: 0,
  28545. sc: 0,
  28546. $t: 0,
  28547. XG: t,
  28548. bx: C.XJ,
  28549. YE: 0,
  28550. qa: "ControlStepper",
  28551. ctor: function() {
  28552. C.Kc.prototype.ctor.call(this);
  28553. this.Nt = this.Gt = this.Si = this.bh = s;
  28554. this.Hd = 0;
  28555. this.ou = this.pz = this.oF = t;
  28556. this.$t = this.sc = this.Rb = 0;
  28557. this.XG = t;
  28558. this.bx = C.XJ;
  28559. this.YE = 0
  28560. },
  28561. TCa: function(c, d) {
  28562. c || e("cc.ControlStepper.initWithMinusSpriteAndPlusSprite(): Minus sprite should be non-null.");
  28563. d || e("cc.ControlStepper.initWithMinusSpriteAndPlusSprite(): Plus sprite should be non-null.");
  28564. if (this.j()) {
  28565. this.oF = this.pz = q;
  28566. this.Rb = 0;
  28567. this.sc = 100;
  28568. this.Hd = 0;
  28569. this.$t = 1;
  28570. this.ou = t;
  28571. this.Hm(t);
  28572. this.Oha(c);
  28573. this.bh.p(c.i().width / 2, c.i().height / 2);
  28574. this.q(this.bh);
  28575. this.Nha(C.fa.create("-", C.g5, 40, C.size(40, 40), C.Fs, C.MU));
  28576. this.Gt.G(C.LS);
  28577. this.Gt.p(this.bh.i().width / 2, this.bh.i().height / 2);
  28578. this.bh.q(this.Gt);
  28579. this.Xha(d);
  28580. this.Si.p(c.i().width + d.i().width / 2, c.i().height / 2);
  28581. this.q(this.Si);
  28582. this.Wha(C.fa.create("+", C.g5, 40, C.size(40, 40), C.Fs, C.MU));
  28583. this.Nt.G(C.ED);
  28584. this.Nt.p(this.Si.i().width / 2, this.Si.i().height / 2);
  28585. this.Si.q(this.Nt);
  28586. var f = C.Ah.G4(this.bh.Ae(), this.Si.Ae());
  28587. this.Ca(this.bh.i().width + this.Si.i().height, f.height);
  28588. return q
  28589. }
  28590. return t
  28591. },
  28592. BIa: function(c) {
  28593. if (this.ou = c) this.Gt.G(C.ED),
  28594. this.Nt.G(C.ED);
  28595. this.ne(this.Hd)
  28596. },
  28597. uCa: A("ou"),
  28598. iJ: function(c) {
  28599. c >= this.sc && e("cc.ControlStepper.setMinimumValue(): minimumValue should be numerically less than maximumValue.");
  28600. this.Rb = c;
  28601. this.ne(this.Hd)
  28602. },
  28603. QH: A("Rb"),
  28604. hJ: function(c) {
  28605. c <= this.Rb && e("cc.ControlStepper.setMaximumValue(): maximumValue should be numerically less than maximumValue.");
  28606. this.sc = c;
  28607. this.ne(this.Hd)
  28608. },
  28609. PH: A("sc"),
  28610. ne: function(c) {
  28611. this.w3(c, q)
  28612. },
  28613. Qf: A("Hd"),
  28614. pIa: function(c) {
  28615. 0 >= c && e("cc.ControlStepper.setMaximumValue(): stepValue should be numerically greater than 0.");
  28616. this.$t = c
  28617. },
  28618. WBa: A("$t"),
  28619. rDa: A("oF"),
  28620. w3: function(c, d) {
  28621. c < this.Rb ? c = this.ou ? this.sc: this.Rb: c > this.sc && (c = this.ou ? this.Rb: this.sc);
  28622. this.Hd = c;
  28623. this.ou || (this.Gt.G(c == this.Rb ? C.LS: C.ED), this.Nt.G(c == this.sc ? C.LS: C.ED));
  28624. d && this.Bi(C.uo)
  28625. },
  28626. Pia: function() {
  28627. this.YE = -1;
  28628. this.rg(this.update, C.j4, C.xv, 3 * C.j4)
  28629. },
  28630. Ria: function() {
  28631. this.Zh(this.update)
  28632. },
  28633. update: function() {
  28634. this.YE++;
  28635. this.YE < C.Cja && 0 != this.YE % 3 || (this.bx == C.h5 ? this.w3(this.Hd - this.$t, this.oF) : this.bx == C.i5 && this.w3(this.Hd + this.$t, this.oF))
  28636. },
  28637. ija: function(c) {
  28638. c.x < this.bh.i().width && this.Hd > this.Rb ? (this.bx = C.h5, this.bh.G(C.color.GRAY), this.Si.G(C.color.WHITE)) : c.x >= this.bh.i().width && this.Hd < this.sc ? (this.bx = C.i5, this.bh.G(C.color.WHITE), this.Si.G(C.color.GRAY)) : (this.bx = C.XJ, this.bh.G(C.color.WHITE), this.Si.G(C.color.WHITE))
  28639. },
  28640. nc: function(c) {
  28641. if (!this.Zn(c) || !this.isEnabled() || !this.Ja) return t;
  28642. c = this.Gp(c);
  28643. this.ija(c);
  28644. this.XG = q;
  28645. this.pz && this.Pia();
  28646. return q
  28647. },
  28648. yd: function(c) {
  28649. this.Zn(c) ? (c = this.Gp(c), this.ija(c), this.XG || (this.XG = q, this.pz && this.Pia())) : (this.XG = t, this.bx = C.XJ, this.bh.G(C.color.WHITE), this.Si.G(C.color.WHITE), this.pz && this.Ria())
  28650. },
  28651. cd: function(c) {
  28652. this.bh.G(C.color.WHITE);
  28653. this.Si.G(C.color.WHITE);
  28654. this.pz && this.Ria();
  28655. this.Zn(c) && (c = this.Gp(c), this.ne(this.Hd + (c.x < this.bh.i().width ? 0 - this.$t: this.$t)))
  28656. },
  28657. Oha: x("bh"),
  28658. hBa: A("bh"),
  28659. Xha: x("Si"),
  28660. wBa: A("Si"),
  28661. Nha: x("Gt"),
  28662. gBa: A("Gt"),
  28663. Wha: x("Nt"),
  28664. vBa: A("Nt")
  28665. });
  28666. H = C.RS.prototype;
  28667. C.e(H, "wraps", H.uCa, H.BIa);
  28668. C.e(H, "value", H.Qf, H.ne);
  28669. C.e(H, "minValue", H.QH, H.iJ);
  28670. C.e(H, "maxValue", H.PH, H.hJ);
  28671. C.e(H, "stepValue", H.WBa, H.pIa);
  28672. C.e(H, "continuous", H.rDa);
  28673. C.e(H, "minusSprite", H.hBa, H.Oha);
  28674. C.e(H, "plusSprite", H.wBa, H.Xha);
  28675. C.e(H, "minusLabel", H.gBa, H.Nha);
  28676. C.e(H, "plusLabel", H.vBa, H.Wha);
  28677. H = s;
  28678. C.RS.create = function(c, d) {
  28679. var f = new C.RS;
  28680. return f && f.TCa(c, d) ? f: s
  28681. };
  28682. C.PS = C.Kc.extend({
  28683. vc: s,
  28684. RA: s,
  28685. PA: s,
  28686. Hd: 0,
  28687. Rb: 0,
  28688. sc: 1,
  28689. qa: "ControlPotentiometer",
  28690. cDa: function(c, d, f) {
  28691. return this.j() ? (this.Zha(d), this.qJ(f), this.vc.p(d.Ld()), this.q(f, 2), this.q(d, 1), this.q(c), this.Ca(c.i()), this.Rb = 0, this.sc = 1, this.ne(this.Rb), q) : t
  28692. },
  28693. Ib: function(c) {
  28694. this.Ib(c);
  28695. this.vc != NULL && this.vc.K(c ? 255 : 128)
  28696. },
  28697. ne: function(c) {
  28698. c < this.Rb && (c = this.Rb);
  28699. c > this.sc && (c = this.sc);
  28700. this.Hd = c;
  28701. c = (c - this.Rb) / (this.sc - this.Rb);
  28702. this.RA.X2(100 * c);
  28703. this.vc.th(360 * c);
  28704. this.Bi(C.uo)
  28705. },
  28706. Qf: A("Hd"),
  28707. iJ: function(c) {
  28708. this.Rb = c;
  28709. this.Rb >= this.sc && (this.sc = this.Rb + 1);
  28710. this.ne(this.sc)
  28711. },
  28712. QH: A("Rb"),
  28713. hJ: function(c) {
  28714. this.sc = c;
  28715. this.sc <= this.Rb && (this.Rb = this.sc - 1);
  28716. this.ne(this.Rb)
  28717. },
  28718. PH: A("sc"),
  28719. Zn: function(c) {
  28720. c = this.Gp(c);
  28721. return this.Iya(this.RA.Ld(), c) < Math.min(this.i().width / 2, this.i().height / 2)
  28722. },
  28723. nc: function(c) {
  28724. if (!this.Zn(c) || !this.isEnabled() || !this.Ja) return t;
  28725. this.PA = this.Gp(c);
  28726. this.NFa(this.PA);
  28727. return q
  28728. },
  28729. yd: function(c) {
  28730. c = this.Gp(c);
  28731. this.PFa(c)
  28732. },
  28733. cd: function() {
  28734. this.OFa(C.d(0, 0))
  28735. },
  28736. Iya: function(c, d) {
  28737. var f = c.x - d.x,
  28738. g = c.y - d.y;
  28739. return Math.sqrt(f * f + g * g)
  28740. },
  28741. Lwa: function(c, d, f, g) {
  28742. return 180 * (Math.atan2(d.x - c.x, d.y - c.y) - Math.atan2(g.x - f.x, g.y - f.y)) / Math.PI
  28743. },
  28744. NFa: function() {
  28745. this.Wu(q);
  28746. this.vc.G(C.color.GRAY)
  28747. },
  28748. PFa: function(c) {
  28749. var d = this.Lwa(this.RA.Ld(), c, this.RA.Ld(), this.PA);
  28750. 180 < d ? d -= 360 : -180 > d && (d += 360);
  28751. this.ne(this.Hd + d / 360 * (this.sc - this.Rb));
  28752. this.PA = c
  28753. },
  28754. OFa: function() {
  28755. this.vc.G(C.color.WHITE);
  28756. this.Wu(t)
  28757. },
  28758. qJ: x("vc"),
  28759. XH: A("vc"),
  28760. Zha: x("RA"),
  28761. ABa: A("RA"),
  28762. ZHa: x("PA"),
  28763. JP: A("PA")
  28764. });
  28765. H = C.PS.prototype;
  28766. C.e(H, "value", H.Qf, H.ne);
  28767. C.e(H, "minValue", H.QH, H.iJ);
  28768. C.e(H, "maxValue", H.PH, H.hJ);
  28769. C.e(H, "progressTimer", H.ABa, H.Zha);
  28770. C.e(H, "thumbSprite", H.XH, H.qJ);
  28771. C.e(H, "prevLocation", H.JP, H.ZHa);
  28772. H = s;
  28773. C.PS.create = function(c, d, f) {
  28774. var g = new C.PS;
  28775. return g && (c = C.u.create(c), f = C.u.create(f), d = C.Lb.create(C.u.create(d)), g.cDa(c, d, f)) ? g: s
  28776. };
  28777. C.B7 = -1;
  28778. C.bz = 0;
  28779. C.IK = 1;
  28780. C.HK = 2;
  28781. C.Rxa = function(c) {
  28782. var d = C.view;
  28783. return c * ((d.ia + d.pa) / 2) / 160
  28784. };
  28785. C.Foa = C.O.extend({
  28786. MGa: u(),
  28787. NGa: u()
  28788. });
  28789. C.Ml = C.qe.extend({
  28790. NPa: 0,
  28791. gPa: 0,
  28792. ePa: 0,
  28793. Oq: s,
  28794. Kh: C.HK,
  28795. fn: t,
  28796. xra: s,
  28797. Ta: s,
  28798. sm: t,
  28799. fN: s,
  28800. hN: s,
  28801. aF: t,
  28802. jF: t,
  28803. zG: s,
  28804. pB: s,
  28805. YG: 0,
  28806. Kf: s,
  28807. On: s,
  28808. Baa: 0,
  28809. Aaa: 0,
  28810. mG: s,
  28811. uY: t,
  28812. Sba: s,
  28813. ui: s,
  28814. qa: "ScrollView",
  28815. ctor: function() {
  28816. C.qe.prototype.ctor.call(this);
  28817. this.xra = C.d(0, 0);
  28818. this.fN = C.d(0, 0);
  28819. this.hN = C.d(0, 0);
  28820. this.zG = C.d(0, 0);
  28821. this.pB = C.d(0, 0);
  28822. this.Kf = [];
  28823. this.On = C.size(0, 0);
  28824. this.mG = new C.az(0, 0, 0, 0);
  28825. this.Sba = new C.az(0, 0, 0, 0)
  28826. },
  28827. j: function() {
  28828. return this.kI(C.size(200, 200), s)
  28829. },
  28830. kI: function(c, d) {
  28831. var f = C.d(0, 0);
  28832. return C.qe.prototype.j.call(this) ? (this.Ta = d, this.Ta || (this.Ta = C.qe.create(), this.Ta.Hm(t), this.Ta.S(f)), this.VR(c), this.vh(q), this.Kf.length = 0, this.Oq = s, this.jF = this.aF = q, this.Kh = C.HK, this.Ta.p(f), this.YG = 0, this.q(this.Ta), this.Baa = this.Aaa = 1, q) : t
  28833. },
  28834. SC: function(c, d) {
  28835. if (d) this.lHa(c, 0.15);
  28836. else {
  28837. if (!this.aF) {
  28838. var f = this.bs(),
  28839. g = this.Fu();
  28840. c.x = Math.max(f.x, Math.min(g.x, c.x));
  28841. c.y = Math.max(f.y, Math.min(g.y, c.y))
  28842. }
  28843. this.Ta.p(c)
  28844. }
  28845. },
  28846. lAa: function() {
  28847. var c = this.Ta.Ld();
  28848. return C.d(c.x, c.y)
  28849. },
  28850. lHa: function(c, d) {
  28851. var f = C.Bs.create(d, c),
  28852. g = C.Jc.create(this.Mva, this);
  28853. this.Ta.Ya(C.La.create(f, g));
  28854. this.rg(this.OX)
  28855. },
  28856. Cia: function(c, d) {
  28857. if (d) this.CIa(c, 0.15);
  28858. else {
  28859. var f = this.Ta;
  28860. if (f.SH() != c) {
  28861. var g, h;
  28862. 0 == this.YG ? (h = this.On, h = C.d(0.5 * h.width, 0.5 * h.height), h = this.vm(h)) : h = this.pB;
  28863. g = f.wi(h);
  28864. f.Za(Math.max(this.Baa, Math.min(this.Aaa, c)));
  28865. g = f.vm(g);
  28866. h = C.cc(h, g);
  28867. this.SC(C.ho(f.Ld(), h))
  28868. }
  28869. }
  28870. },
  28871. Fea: function() {
  28872. return this.Ta.SH()
  28873. },
  28874. CIa: function(c, d) {
  28875. if (0 < d) {
  28876. var f = this.Ta.SH();
  28877. f != c && (f = C.fv.create(d, "zoomScale", f, c), this.Ya(f))
  28878. } else this.Cia(c)
  28879. },
  28880. bs: function() {
  28881. var c = this.Ta,
  28882. d = c.i(),
  28883. f = this.On;
  28884. return C.d(f.width - d.width * c.ia, f.height - d.height * c.pa)
  28885. },
  28886. Fu: function() {
  28887. return C.d(0, 0)
  28888. },
  28889. zYa: function(c) {
  28890. var d = this.lAa(),
  28891. f = this.On,
  28892. g = this.Fea(),
  28893. d = C.rect( - d.x / g, -d.y / g, f.width / g, f.height / g);
  28894. return C.gGa(d, c.Ae())
  28895. },
  28896. pause: function() {
  28897. this.Ta.pause();
  28898. for (var c = this.Ta.le(), d = 0; d < c.length; d++) c[d].pause();
  28899. this._super()
  28900. },
  28901. nk: function() {
  28902. for (var c = this.Ta.le(), d = 0, f = c.length; d < f; d++) c[d].nk();
  28903. this.Ta.nk();
  28904. this._super()
  28905. },
  28906. oYa: A("fn"),
  28907. OYa: A("sm"),
  28908. mDa: A("aF"),
  28909. mha: x("aF"),
  28910. rCa: A("On"),
  28911. VR: function(c) {
  28912. this.On = c;
  28913. C.A.prototype.Ca.call(this, c)
  28914. },
  28915. kAa: A("Ta"),
  28916. uha: function(c) {
  28917. c && (this.xf(q), this.Ta = c, c.Hm(t), c.S(0, 0), this.q(c), this.VR(this.On))
  28918. },
  28919. $B: A("Kh"),
  28920. sh: x("Kh"),
  28921. ZB: A("Oq"),
  28922. bq: x("Oq"),
  28923. nc: function(c) {
  28924. if (!this.Ja) return t;
  28925. var d = this.VW(),
  28926. f = this.Ta,
  28927. g = f.vm(f.Bp(c)),
  28928. h = this.Kf;
  28929. if (2 < h.length || this.sm || !C.Ju(d, g)) return t;
  28930. h.push(c);
  28931. 1 === h.length ? (this.pB = this.Bp(c), this.sm = t, this.fn = q, this.zG.x = 0, this.YG = this.zG.y = 0) : 2 == h.length && (this.pB = C.S1(this.Bp(h[0]), this.Bp(h[1])), this.YG = C.kga(f.Bp(h[0]), f.Bp(h[1])), this.fn = t);
  28932. return q
  28933. },
  28934. yd: function(c) {
  28935. if (this.Ja) if (1 === this.Kf.length && this.fn) {
  28936. this.sm = q;
  28937. this.VW();
  28938. var d = this.Bp(c);
  28939. c = C.cc(d, this.pB);
  28940. var f = 0,
  28941. g = this.Kh,
  28942. h;
  28943. if (g === C.IK) f = c.y,
  28944. h = this.Ta.Vd(),
  28945. this.bs().y <= h && h <= this.Fu().y || (c.y *= 0.35);
  28946. else if (g === C.bz) f = c.x,
  28947. h = this.Ta.Rc(),
  28948. this.bs().x <= h && h <= this.Fu().x || (c.x *= 0.35);
  28949. else {
  28950. f = Math.sqrt(c.x * c.x + c.y * c.y);
  28951. h = this.Ta.Vd();
  28952. var k = this.bs(),
  28953. n = this.Fu();
  28954. k.y <= h && h <= n.y || (c.y *= 0.35);
  28955. h = this.Ta.Rc();
  28956. k.x <= h && h <= n.x || (c.x *= 0.35)
  28957. }
  28958. if (this.sm || !(0.04375 > Math.abs(C.Rxa(f)))) if (this.sm || (c.x = 0, c.y = 0), this.pB = d, this.sm = q, this.fn) {
  28959. switch (g) {
  28960. case C.IK:
  28961. c.x = 0;
  28962. break;
  28963. case C.bz:
  28964. c.y = 0
  28965. }
  28966. f = this.Ta.Ld();
  28967. d = f.x + c.x;
  28968. f = f.y + c.y;
  28969. this.zG = c;
  28970. this.SC(C.d(d, f))
  28971. }
  28972. } else 2 === this.Kf.length && !this.fn && (c = C.kga(this.Ta.Bp(this.Kf[0]), this.Ta.Bp(this.Kf[1])), this.Cia(this.Fea() * c / this.YG))
  28973. },
  28974. cd: function() {
  28975. this.Ja && (1 == this.Kf.length && this.sm && this.rg(this.WV), this.Kf.length = 0, this.sm = this.fn = t)
  28976. },
  28977. Xe: function() {
  28978. this.Ja && (this.Kf.length = 0, this.sm = this.fn = t)
  28979. },
  28980. Ca: function(c, d) {
  28981. this.Ta != s && (d === m ? this.Ta.Ca(c) : this.Ta.Ca(c, d), this.eS())
  28982. },
  28983. Qh: function(c) {
  28984. var d = this.Ta;
  28985. d != s && (d.Qh(c), this.eS())
  28986. },
  28987. Ph: function(c) {
  28988. var d = this.Ta;
  28989. d != s && (d.Ph(c), this.eS())
  28990. },
  28991. i: function() {
  28992. return this.Ta.i()
  28993. },
  28994. eS: function() {
  28995. if (this.Ta != s) {
  28996. var c = this.On,
  28997. d = this.Fu();
  28998. this.fN.x = d.x + 0.2 * c.width;
  28999. this.fN.y = d.y + 0.2 * c.height;
  29000. d = this.bs();
  29001. this.hN.x = d.x - 0.2 * c.width;
  29002. this.hN.y = d.y - 0.2 * c.height
  29003. }
  29004. },
  29005. pDa: A("jF"),
  29006. sha: x("jF"),
  29007. J: function(c) {
  29008. if (this.Ja) {
  29009. c = c || C.t;
  29010. var d, f = this.l,
  29011. g, h;
  29012. if (C.L === C.cb) {
  29013. c.save();
  29014. this.transform(c);
  29015. this.m9(c);
  29016. if (f && 0 < f.length) {
  29017. h = f.length;
  29018. this.ed();
  29019. for (d = 0; d < h; d++) if ((g = f[d]) && 0 > g.Wa) g.J(c);
  29020. else break;
  29021. for (this.ka(c); d < h; d++) f[d].J(c)
  29022. } else this.ka(c);
  29023. this.c9();
  29024. c.restore()
  29025. } else {
  29026. C.Zr();
  29027. var k = this.grid;
  29028. k && k.zi() && (k.px(), this.CJ());
  29029. this.transform(c);
  29030. this.m9(c);
  29031. if (f && 0 < f.length) {
  29032. h = f.length;
  29033. for (d = 0; d < h; d++) if ((g = f[d]) && 0 > g.Wa) g.J();
  29034. else break;
  29035. for (this.ka(c); d < h; d++) f[d].J()
  29036. } else this.ka(c);
  29037. this.c9(c);
  29038. k && k.zi() && k.mx(this);
  29039. C.Yr()
  29040. }
  29041. }
  29042. },
  29043. q: function(c, d, f) {
  29044. c || e(Error("child must not nil!"));
  29045. d = d || c.Wa;
  29046. f = f || c.Fm();
  29047. this.Ta != c ? this.Ta.q(c, d, f) : C.qe.prototype.q.call(this, c, d, f)
  29048. },
  29049. k1: function() {
  29050. return this.ui != s
  29051. },
  29052. vh: function(c) {
  29053. this.ui && C.Ka.removeListener(this.ui);
  29054. this.ui = s;
  29055. c ? (c = C.Oa.create({
  29056. event: C.Oa.Gs
  29057. }), this.nc && (c.nc = this.nc.bind(this)), this.yd && (c.yd = this.yd.bind(this)), this.cd && (c.cd = this.cd.bind(this)), this.Xe && (c.Xe = this.Xe.bind(this)), this.ui = c, C.Ka.addListener(c, this)) : (this.sm = this.fn = t, this.Kf.length = 0)
  29058. },
  29059. SOa: B(s),
  29060. xua: function(c) {
  29061. var d = this.bs(),
  29062. f = this.Fu(),
  29063. g = this.Kh,
  29064. h = this.Ta.Ld(),
  29065. k = h.x,
  29066. n = h.y;
  29067. if (g === C.HK || g === C.bz) k = Math.max(k, d.x),
  29068. k = Math.min(k, f.x);
  29069. if (g == C.HK || g == C.IK) n = Math.min(n, f.y),
  29070. n = Math.max(n, d.y); (n != h.y || k != h.x) && this.SC(C.d(k, n), c)
  29071. },
  29072. WV: function() {
  29073. if (this.fn) this.Zh(this.WV);
  29074. else {
  29075. var c, d;
  29076. c = this.Ta.Ld();
  29077. var f = this.zG;
  29078. this.Ta.p(c.x + f.x, c.y + f.y);
  29079. this.aF ? (c = this.fN, d = this.hN) : (c = this.Fu(), d = this.bs());
  29080. var g = this.Ta.Rc(),
  29081. h = this.Ta.Vd();
  29082. f.x *= 0.95;
  29083. f.y *= 0.95;
  29084. this.SC(C.d(g, h));
  29085. if (1 >= Math.abs(f.x) && 1 >= Math.abs(f.y) || h > c.y || h < d.y || g > c.x || g < d.x || g == c.x || g == d.x || h == c.y || h == d.y) this.Zh(this.WV),
  29086. this.xua(q)
  29087. }
  29088. },
  29089. OX: function() {
  29090. this.fn && this.Zh(this.OX)
  29091. },
  29092. Mva: function() {
  29093. this.Zh(this.OX)
  29094. },
  29095. m9: function(c) {
  29096. if (this.jF) {
  29097. this.uY = t;
  29098. var d = this.VW(),
  29099. f = C.view,
  29100. g = this.ia,
  29101. h = this.pa;
  29102. c = c || C.t;
  29103. if (C.L === C.cb) d = this.On.width * g * f.ia,
  29104. f = this.On.height * h * f.pa,
  29105. c.beginPath(),
  29106. c.rect(0, 0, d, -f),
  29107. c.clip(),
  29108. c.closePath();
  29109. else if (f = C.view, f.ADa()) {
  29110. if (this.uY = q, this.mG = f.JBa(), C.fGa(d, this.mG)) {
  29111. var k = this.mG;
  29112. c = Math.max(d.x, k.x);
  29113. h = Math.max(d.y, k.y);
  29114. g = Math.min(d.x + d.width, k.x + k.width);
  29115. d = Math.min(d.y + d.height, k.y + k.height);
  29116. f.LR(c, h, g - c, d - h)
  29117. }
  29118. } else c.enable(c.SCISSOR_TEST),
  29119. f.LR(d.x, d.y, d.width, d.height)
  29120. }
  29121. },
  29122. c9: function(c) {
  29123. this.jF && C.L === C.la && (this.uY ? (c = this.mG, C.view.LR(c.x, c.y, c.width, c.height)) : (c = c || C.t, c.disable(c.SCISSOR_TEST)))
  29124. },
  29125. QOa: u(),
  29126. VW: function() {
  29127. for (var c = this.vm(C.d(0, 0)), d = this.On, f = this.ia, g = this.pa, h = this.Vb; h != s; h = h.getParent()) f *= h.ia,
  29128. g *= h.pa;
  29129. 0 > f && (c.x += d.width * f, f = -f);
  29130. 0 > g && (c.y += d.height * g, g = -g);
  29131. h = this.Sba;
  29132. h.x = c.x;
  29133. h.y = c.y;
  29134. h.width = d.width * f;
  29135. h.height = d.height * g;
  29136. return h
  29137. }
  29138. });
  29139. H = C.Ml.prototype;
  29140. C.e(H, "minOffset", H.bs);
  29141. C.e(H, "maxOffset", H.Fu);
  29142. C.e(H, "bounceable", H.mDa, H.mha);
  29143. C.e(H, "viewSize", H.rCa, H.VR);
  29144. C.e(H, "container", H.kAa, H.uha);
  29145. C.e(H, "direction", H.$B, H.sh);
  29146. C.e(H, "delegate", H.ZB, H.bq);
  29147. C.e(H, "clippingToBounds", H.pDa, H.sha);
  29148. H = s;
  29149. C.Ml.create = function(c, d) {
  29150. var f = new C.Ml;
  29151. if (2 == arguments.length) {
  29152. if (f && f.kI(c, d)) return f
  29153. } else if (f && f.j()) return f;
  29154. return s
  29155. };
  29156. C.Joa = C.O.extend({
  29157. jJ: u(),
  29158. Dm: B(0)
  29159. });
  29160. C.Koa = C.Joa.extend({
  29161. EX: 0,
  29162. ctor: function() {
  29163. this.EX = 0
  29164. },
  29165. jJ: x("EX"),
  29166. Dm: A("EX")
  29167. });
  29168. function Sa(c, d) {
  29169. return c.Dm() - d.Dm()
  29170. }
  29171. C.lS = C.O.extend({
  29172. En: s,
  29173. ctor: function() {
  29174. this.En = []
  29175. },
  29176. efa: function(c) {
  29177. c || e("cc.ArrayForObjectSorting.insertSortedObject(): addObject should be non-null.");
  29178. this.gDa(c, this.iC(c))
  29179. },
  29180. zGa: function(c) {
  29181. if (0 != this.count()) {
  29182. var d = this.iC(c);
  29183. d < this.count() && d != C.zo && this.Ux(d).Dm() == c.Dm() && this.p2(d)
  29184. }
  29185. },
  29186. E4a: function(c, d) {
  29187. var f = this.iC(d);
  29188. if (f < this.count() && f != C.zo) {
  29189. var g = this.Ux(f);
  29190. g.Dm() == d.Dm() && (this.p2(f), g.jJ(c), this.efa(g))
  29191. }
  29192. },
  29193. Yfa: function(c) {
  29194. if (0 == this.count()) return s;
  29195. var d = new C.Koa;
  29196. d.jJ(c);
  29197. var f = this.iC(d);
  29198. f < this.count() && f != C.zo && (d = this.Ux(f), d.Dm() != c && (d = s));
  29199. return d
  29200. },
  29201. zVa: B(s),
  29202. iC: function(c) {
  29203. var d = 0;
  29204. if (c) {
  29205. var f = 0;
  29206. c = c.Dm();
  29207. for (var g = this.En,
  29208. h = 0; h < g.length; h++) {
  29209. var k = g[h].Dm();
  29210. if (c == k || c >= f && c < k) break;
  29211. f = k;
  29212. d++
  29213. }
  29214. } else d = C.zo;
  29215. return d
  29216. },
  29217. count: function() {
  29218. return this.En.length
  29219. },
  29220. T_a: function() {
  29221. var c = this.En;
  29222. return 0 == c.length ? s: c[c.length - 1]
  29223. },
  29224. Ux: function(c) {
  29225. return this.En[c]
  29226. },
  29227. wca: function(c) {
  29228. this.En.push(c);
  29229. this.En.sort(Sa)
  29230. },
  29231. p2: function(c) {
  29232. this.En.splice(c, 1);
  29233. this.En.sort(Sa)
  29234. },
  29235. gDa: function(c, d) {
  29236. this.En.splice(d, 0, c);
  29237. this.En.sort(Sa)
  29238. }
  29239. });
  29240. C.M7 = 0;
  29241. C.ppa = 1;
  29242. C.zpa = C.A.extend({
  29243. Yq: 0,
  29244. qa: "TableViewCell",
  29245. PUa: A("Yq"),
  29246. xHa: x("Yq"),
  29247. reset: function() {
  29248. this.Yq = C.zo
  29249. },
  29250. jJ: x("Yq"),
  29251. Dm: A("Yq")
  29252. });
  29253. H = C.zpa.prototype;
  29254. C.e(H, "objectId", H.Dm, H.jJ);
  29255. H = s;
  29256. C.ANa = C.Foa.extend({
  29257. i6a: u(),
  29258. h6a: u(),
  29259. j6a: u(),
  29260. k6a: u()
  29261. });
  29262. C.zNa = C.O.extend({
  29263. bJa: function(c) {
  29264. return this.Axa(c)
  29265. },
  29266. Axa: function() {
  29267. return C.size(0, 0)
  29268. },
  29269. g6a: B(s),
  29270. x0a: B(0)
  29271. });
  29272. C.xU = C.Ml.extend({
  29273. sB: s,
  29274. Qb: s,
  29275. Cz: s,
  29276. VV: s,
  29277. jZ: s,
  29278. sN: s,
  29279. HL: s,
  29280. Er: s,
  29281. ctor: function() {
  29282. C.Ml.prototype.ctor.call(this);
  29283. this.sN = C.B7;
  29284. this.HL = []
  29285. },
  29286. Dqa: function(c) {
  29287. var d = 0,
  29288. f = -1;
  29289. switch (this.$B()) {
  29290. case C.bz:
  29291. c = c.x;
  29292. break;
  29293. default:
  29294. c = c.y
  29295. }
  29296. for (var g = this.HL; f >= d;) {
  29297. var h = 0 | d + (f - d) / 2,
  29298. k = g[h],
  29299. n = g[h + 1];
  29300. if (c >= k && c <= n) return h;
  29301. c < k ? f = h - 1 : d = h + 1
  29302. }
  29303. return 0 >= d ? 0 : -1
  29304. },
  29305. Zsa: function(c) {
  29306. c = {
  29307. x: c.x,
  29308. y: c.y
  29309. };
  29310. this.sB === C.M7 && (c.y = this.Ta.i().height - c.y);
  29311. c = this.Dqa(c); - 1 != c && (c = Math.max(0, c), -1 < c && (c = C.zo));
  29312. return c
  29313. },
  29314. Eqa: function(c) {
  29315. switch (this.$B()) {
  29316. case C.bz:
  29317. c = C.d(this.HL[c], 0);
  29318. break;
  29319. default:
  29320. c = C.d(0, this.HL[c])
  29321. }
  29322. return c
  29323. },
  29324. Kta: function(c) {
  29325. var d = this.Eqa(c);
  29326. c = this.VV.bJa(this, c);
  29327. this.sB === C.M7 && (d.y = this.Ta.i().height - d.y - c.height);
  29328. return d
  29329. },
  29330. JPa: u(),
  29331. sZ: function() {
  29332. var c = C.size(0, 0);
  29333. this.Ca(c);
  29334. this.sN != this.Kh && (this.Kh == C.bz ? this.SC(C.d(0, 0)) : this.SC(C.d(0, this.bs().y)), this.sN = this.Kh)
  29335. },
  29336. Caa: function(c) {
  29337. this.Cz.wca(c);
  29338. this.bt.zGa(c);
  29339. C.Id(this.Qb, c.Yq);
  29340. c.reset();
  29341. c.getParent() == this.Ta && this.Ta.removeChild(c, q)
  29342. },
  29343. YN: function(c, d) {
  29344. d.S(0, 0);
  29345. d.p(this.Kta(c));
  29346. d.xHa(c)
  29347. },
  29348. Y8: function(c) {
  29349. c.getParent() != this.Ta && this.Ta.q(c);
  29350. this.bt.efa(c);
  29351. var d = this.Qb;
  29352. c = c.Yq; - 1 == d.indexOf(c) && (d.push(c), d.sort(function(c, d) {
  29353. return c - d
  29354. }))
  29355. },
  29356. pAa: A("VV"),
  29357. vha: x("VV"),
  29358. ZB: A("jZ"),
  29359. bq: x("jZ"),
  29360. zIa: function(c) {
  29361. this.sB != c && (this.sB = c, 0 < this.bt.count() && this.mGa())
  29362. },
  29363. qCa: A("sB"),
  29364. kI: function(c, d) {
  29365. return C.Ml.prototype.kI.call(this, c, d) ? (this.bt = new C.lS, this.Cz = new C.lS, this.Qb = [], this.jZ = s, this.sB = C.ppa, this.sh(C.IK), C.Ml.prototype.bq.call(this, this), q) : t
  29366. },
  29367. F6a: function(c) {
  29368. if (! (c == C.zo || -1 < c)) {
  29369. var d = this.r_(c);
  29370. d && this.Caa(d);
  29371. d = s;
  29372. this.YN(c, d);
  29373. this.Y8(d)
  29374. }
  29375. },
  29376. SXa: function(c) {
  29377. if (! (c == C.zo || -1 < c)) {
  29378. var d, f = this.bt;
  29379. if (d = f.Yfa(c)) for (var g = d = f.iC(d); g < f.count(); g++) d = f.Ux(g),
  29380. this.YN(d.Yq + 1, d);
  29381. d = s;
  29382. this.YN(c, d);
  29383. this.Y8(d);
  29384. this.sZ()
  29385. }
  29386. },
  29387. d2a: function(c) {
  29388. if (! (c == C.zo || -1 < c)) {
  29389. var d = this.r_(c);
  29390. if (d) {
  29391. var f = this.bt,
  29392. g = f.iC(d);
  29393. this.Caa(d);
  29394. C.Id(this.Qb, c);
  29395. for (c = f.count() - 1; c > g; c--) d = f.Ux(c),
  29396. this.YN(d.Yq - 1, d)
  29397. }
  29398. }
  29399. },
  29400. mGa: function() {
  29401. this.sN = C.B7;
  29402. for (var c = this.bt,
  29403. d = this.Cz,
  29404. f = this.Ta,
  29405. g = 0,
  29406. h = c.count(); g < h; g++) {
  29407. var k = c.Ux(g);
  29408. d.wca(k);
  29409. k.reset();
  29410. k.getParent() == f && f.removeChild(k, q)
  29411. }
  29412. this.Qb = [];
  29413. this.bt = new C.lS;
  29414. this.sZ()
  29415. },
  29416. uRa: function() {
  29417. if (0 === this.Cz.count()) return s;
  29418. var c = this.Cz.Ux(0);
  29419. this.Cz.p2(0);
  29420. return c
  29421. },
  29422. r_: function(c) {
  29423. return - 1 == this.Qb.indexOf(c) ? s: this.bt.Yfa(c)
  29424. },
  29425. MGa: u(),
  29426. NGa: u(),
  29427. cd: function(c, d) {
  29428. if (this.Ja) {
  29429. if (this.Er) {
  29430. var f = this.Ae(),
  29431. g = C.d(f.x, f.y),
  29432. g = this.Vb.vm(g);
  29433. f.x = g.x;
  29434. f.y = g.y;
  29435. this.Er = s
  29436. }
  29437. C.Ml.prototype.cd.call(this, c, d)
  29438. }
  29439. },
  29440. nc: function(c, d) {
  29441. if (!this.Ja) return t;
  29442. var f = C.Ml.prototype.nc.call(this, c, d);
  29443. if (1 === this.Kf.length) {
  29444. var g;
  29445. g = this.Ta.Bp(c);
  29446. g = this.Zsa(g);
  29447. this.Er = g === C.zo ? s: this.r_(g)
  29448. } else this.Er && (this.Er = s);
  29449. return f
  29450. },
  29451. yd: function(c, d) {
  29452. C.Ml.prototype.yd.call(this, c, d);
  29453. this.Er && this.sm && (this.Er = s)
  29454. },
  29455. Xe: function(c, d) {
  29456. C.Ml.prototype.Xe.call(this, c, d);
  29457. this.Er && (this.Er = s)
  29458. }
  29459. });
  29460. H = C.xU.prototype;
  29461. C.e(H, "dataSource", H.pAa, H.vha);
  29462. C.e(H, "delegate", H.ZB, H.bq);
  29463. C.e(H, "verticalFillOrder", H.qCa, H.zIa);
  29464. H = s;
  29465. C.xU.create = function(c, d, f) {
  29466. var g = new C.xU;
  29467. g.kI(d, f);
  29468. g.vha(c);
  29469. g.sZ();
  29470. return g
  29471. };
  29472. var Ta = "contentSize",
  29473. Ua = "scale";
  29474. function Va(c) {
  29475. C.log("Unexpected property: '" + c + "'!")
  29476. }
  29477. function Wa(c, d) {
  29478. this.QGa = c;
  29479. this.target = d
  29480. }
  29481. function Xa(c, d, f) {
  29482. this.PGa = c;
  29483. this.target = d;
  29484. this.Qxa = f
  29485. }
  29486. C.Ea = C.O.extend({
  29487. Nz: s,
  29488. ctor: function() {
  29489. this.Nz = new C.Ev
  29490. },
  29491. lEa: function(c, d) {
  29492. return this.ji(c, d)
  29493. },
  29494. zFa: function(c, d, f) {
  29495. for (var g = f.zc(t), h = f.zc(t), h = g + h, k = 0; k < h; k++) {
  29496. var n = k >= g,
  29497. p = f.zc(t),
  29498. r = f.wf(),
  29499. v = t,
  29500. y = f.$();
  29501. if (y === Ya || y === Za || y === $a) v = q;
  29502. c instanceof C.zD ? c.fF && n && (c = c.fF, v = -1 != c.userObject.indexOf(r)) : n && c == f.Mc.hm && (n = c.userObject, n || (n = [], c.userObject = n), n.push(r));
  29503. switch (p) {
  29504. case ab:
  29505. p = this.sFa(c, d, f, r);
  29506. v && this.HEa(c, d, r, p, f);
  29507. break;
  29508. case eb:
  29509. p = this.qFa(c, d, f);
  29510. v && this.Xx(c, d, r, p, f);
  29511. break;
  29512. case ib:
  29513. p = this.rFa(c, d, f);
  29514. v && this.GEa(c, d, r, p, f);
  29515. break;
  29516. case jb:
  29517. p = this.uFa(c, d, f);
  29518. v && this.es(c, d, r, p, f);
  29519. break;
  29520. case kb:
  29521. p = this.tFa(c, d, f, r);
  29522. v && this.IEa(c, d, r, p, f);
  29523. break;
  29524. case lb:
  29525. p = this.lFa(c, d, f);
  29526. v && this.FEa(c, d, r, p, f);
  29527. break;
  29528. case pb:
  29529. p = this.iFa(c, d, f);
  29530. v && this.Vx(c, d, r, p, f);
  29531. break;
  29532. case qb:
  29533. p = this.gFa(c, d, f, r);
  29534. v && this.EEa(c, d, r, p, f);
  29535. break;
  29536. case rb:
  29537. p = this.jFa(c, d, f);
  29538. v && this.EI(c, d, r, p, f);
  29539. break;
  29540. case sb:
  29541. p = this.oFa(c, d, f);
  29542. v && this.M1(c, d, r, p, f);
  29543. break;
  29544. case tb:
  29545. p = this.pFa(c, d, f);
  29546. v && this.Wx(c, d, r, p, f);
  29547. break;
  29548. case xb:
  29549. p = this.kFa(c, d, f);
  29550. v && this.K1(c, d, r, p, f);
  29551. break;
  29552. case yb:
  29553. p = this.dFa(c, d, f, r);
  29554. v && this.fo(c, d, r, p, f);
  29555. break;
  29556. case zb:
  29557. p = this.vFa(c, d, f, r);
  29558. v && this.fs(c, d, r, p, f);
  29559. break;
  29560. case Hb:
  29561. p = this.YEa(c, d, f);
  29562. v && this.DEa(c, d, r, p, f);
  29563. break;
  29564. case Ib:
  29565. p = this.yFa(c, d, f);
  29566. v && this.O1(c, d, r, p, f);
  29567. break;
  29568. case Jb:
  29569. p = this.bFa(c, d, f, r);
  29570. v && this.rl(c, d, r, p, f);
  29571. break;
  29572. case Kb:
  29573. p = this.eFa(c, d, f, r);
  29574. v && this.sj(c, d, r, p, f);
  29575. break;
  29576. case Lb:
  29577. p = this.fFa(c, d, f);
  29578. v && this.I1(c, d, r, p, f);
  29579. break;
  29580. case Mb:
  29581. p = this.hFa(c, d, f);
  29582. v && this.J1(c, d, r, p, f);
  29583. break;
  29584. case Nb:
  29585. p = this.ZEa(c, d, f);
  29586. v && this.rj(c, d, r, p, f);
  29587. break;
  29588. case Ob:
  29589. p = f.Sl + this.mFa(c, d, f);
  29590. v && this.L1(c, d, r, p, f);
  29591. break;
  29592. case Wb:
  29593. p = this.nFa(c, d, f);
  29594. v && this.FI(c, d, r, p, f);
  29595. break;
  29596. case Xb:
  29597. p = this.wFa(c, d, f);
  29598. v && this.N1(c, d, r, p, f);
  29599. break;
  29600. case Yb:
  29601. p = this.xFa(c, d, f);
  29602. v && this.GI(c, d, r, p, f);
  29603. break;
  29604. case Zb:
  29605. p = this.$Ea(c, d, f);
  29606. v && this.G1(c, d, r, p, f);
  29607. break;
  29608. case $b:
  29609. p = this.aFa(c, d, f);
  29610. v && p != s && this.H1(c, d, r, p, f);
  29611. break;
  29612. case ac:
  29613. p = this.cFa(c, d, f);
  29614. v && this.DI(c, d, r, p, f);
  29615. break;
  29616. default:
  29617. C.log("Unexpected property type: '" + p + "'!")
  29618. }
  29619. }
  29620. },
  29621. WTa: A("Nz"),
  29622. ji: function() {
  29623. return C.A.create()
  29624. },
  29625. sFa: function(c, d, f, g) {
  29626. var h = f.Yb(),
  29627. k = f.Yb(),
  29628. n = f.zc(t);
  29629. d = f.Mc.AP(d);
  29630. var p = C.FW(h, k, n, d);
  29631. c.p(C.Vza(p, n, d)); - 1 < f.dn.indexOf(g) && f.Mc.iy([h, k, n], c, g);
  29632. return p
  29633. },
  29634. qFa: function(c, d, f) {
  29635. c = f.Yb();
  29636. f = f.Yb();
  29637. return C.d(c, f)
  29638. },
  29639. rFa: function(c, d, f) {
  29640. c = f.Yb();
  29641. f = f.Yb();
  29642. return C.d(c, f)
  29643. },
  29644. uFa: function(c, d, f) {
  29645. c = f.Yb();
  29646. var g = f.Yb(),
  29647. h = f.zc(t);
  29648. d = f.Mc.AP(d);
  29649. switch (h) {
  29650. case bc:
  29651. break;
  29652. case ic:
  29653. c = d.width - c;
  29654. g = d.height - g;
  29655. break;
  29656. case jc:
  29657. c = d.width * c / 100;
  29658. g = d.height * g / 100;
  29659. break;
  29660. case kc:
  29661. c = d.width * c / 100;
  29662. break;
  29663. case lc:
  29664. g = d.height * g / 100;
  29665. break;
  29666. case mc:
  29667. d = C.Jb.yu();
  29668. c *= d;
  29669. g *= d;
  29670. break;
  29671. default:
  29672. C.log("Unknown CCB type.")
  29673. }
  29674. return C.size(c, g)
  29675. },
  29676. tFa: function(c, d, f, g) {
  29677. d = f.Yb();
  29678. var h = f.Yb(),
  29679. k = f.zc(t);
  29680. C.kia(c, d, h, k); - 1 < f.dn.indexOf(g) && f.Mc.iy([d, h, k], c, g);
  29681. k == nc && (d *= C.Jb.yu(), h *= C.Jb.yu());
  29682. return [d, h]
  29683. },
  29684. iFa: function(c, d, f) {
  29685. return f.Yb()
  29686. },
  29687. gFa: function(c, d, f, g) {
  29688. d = f.Yb(); - 1 < f.dn.indexOf(g) && f.Mc.iy(d, c, g);
  29689. return d
  29690. },
  29691. jFa: function(c, d, f) {
  29692. c = f.Yb();
  29693. f.zc(t) == nc && (c *= C.Jb.yu());
  29694. return c
  29695. },
  29696. oFa: function(c, d, f) {
  29697. return f.zc(q)
  29698. },
  29699. pFa: function(c, d, f) {
  29700. return f.zc(q)
  29701. },
  29702. kFa: function(c, d, f) {
  29703. c = f.Yb();
  29704. f = f.Yb();
  29705. return [c, f]
  29706. },
  29707. dFa: function(c, d, f, g) {
  29708. d = f.VI(); - 1 < f.dn.indexOf(g) && f.Mc.iy(d, c, g);
  29709. return d
  29710. },
  29711. vFa: function(c, d, f, g) {
  29712. d = f.wf();
  29713. var h = f.wf(),
  29714. k;
  29715. h != s && 0 != h.length && (0 == d.length ? (h = f.Sl + h, d = C.kb.sd(h), h = d.i(), h = C.rect(0, 0, h.width, h.height), k = C.di.create(d, h)) : (k = C.Fe, d = f.Sl + d, -1 == f.Ft.indexOf(d) && (k.Lr(d), f.Ft.push(d)), k = k.nh(h)), -1 < f.dn.indexOf(g) && f.Mc.iy(k, c, g));
  29716. return k
  29717. },
  29718. YEa: function(c, d, f) {
  29719. c = f.Sl + f.wf();
  29720. f = f.wf();
  29721. d = s;
  29722. f = C.Jb.Efa(f);
  29723. c = C.Jb.Efa(c);
  29724. f != s && "" != f && (d = C.oH, d.nwa(c), d = d.ll(f));
  29725. return d
  29726. },
  29727. yFa: function(c, d, f) {
  29728. c = f.Sl + f.wf();
  29729. return "" != c ? C.kb.sd(c) : s
  29730. },
  29731. bFa: function(c, d, f, g) {
  29732. d = f.$(); - 1 < f.dn.indexOf(g) && f.Mc.iy(d, c, g);
  29733. return d
  29734. },
  29735. eFa: function(c, d, f, g) {
  29736. d = f.$();
  29737. var h = f.$(),
  29738. k = f.$();
  29739. d = {
  29740. r: d,
  29741. g: h,
  29742. b: k
  29743. }; - 1 < f.dn.indexOf(g) && f.Mc.iy(C.aK.create(d), c, g);
  29744. return d
  29745. },
  29746. fFa: function(c, d, f) {
  29747. c = 0 | 255 * f.Yb();
  29748. d = 0 | 255 * f.Yb();
  29749. var g = 0 | 255 * f.Yb(),
  29750. h = f.Yb(),
  29751. h = 1 >= h ? 0 | 255 * h: h,
  29752. k = 0 | 255 * f.Yb(),
  29753. n = 0 | 255 * f.Yb(),
  29754. p = 0 | 255 * f.Yb();
  29755. f = f.Yb();
  29756. var r = [];
  29757. r[0] = {
  29758. r: c,
  29759. g: d,
  29760. b: g,
  29761. a: h
  29762. };
  29763. r[1] = {
  29764. r: k,
  29765. g: n,
  29766. b: p,
  29767. a: 1 >= f ? 0 | 255 * f: f
  29768. };
  29769. return r
  29770. },
  29771. hFa: function(c, d, f) {
  29772. c = f.VI();
  29773. f = f.VI();
  29774. return [c, f]
  29775. },
  29776. ZEa: function(c, d, f) {
  29777. c = f.zc(t);
  29778. f = f.zc(t);
  29779. return new C.Vm(c, f)
  29780. },
  29781. mFa: function(c, d, f) {
  29782. return f.wf()
  29783. },
  29784. wFa: function(c, d, f) {
  29785. return f.wf()
  29786. },
  29787. xFa: function(c, d, f) {
  29788. return f.wf()
  29789. },
  29790. nFa: function(c, d, f) {
  29791. return f.wf()
  29792. },
  29793. $Ea: function(c, d, f) {
  29794. d = f.wf();
  29795. var g = f.zc(t);
  29796. if (g !== oc) {
  29797. var h = s;
  29798. if (f.qn) g === pc ? (f.PO(c), f.OO(d), f.NO(0)) : (f.zca(c), f.yca(d), f.xca(0));
  29799. else if (g === pc ? h = f.Mc.hm: g === qc && (h = f.Rd), h != s) if (0 < d.length) if (c = 0, h != s && h.NEa && (c = m), 0 == c && f.Bz != s && (c = m), 0 == c) C.log("Skipping selector '" + d + "' since no CCBSelectorResolver is present.");
  29800. else return new Wa(c, h);
  29801. else C.log("Unexpected empty selector.");
  29802. else C.log("Unexpected NULL target for selector.")
  29803. }
  29804. return s
  29805. },
  29806. aFa: function(c, d, f) {
  29807. d = f.wf();
  29808. var g = f.zc(t),
  29809. h = f.zc(t);
  29810. if (g !== oc) if (f.qn) g == pc ? (f.PO(c), f.OO(d), f.NO(h)) : (f.zca(c), f.yca(d), f.xca(h));
  29811. else if (c = s, g == pc ? c = f.Mc.hm: g == qc && (c = f.Rd), c != s) if (0 < d.length) if (g = 0, c != s && c.MEa && (g = m), 0 == g && f.Bz != s && (g = m), 0 == g) C.log("Skipping selector '" + d + "' since no CCBSelectorResolver is present.");
  29812. else return new Xa(g, c, h);
  29813. else C.log("Unexpected empty selector.");
  29814. else C.log("Unexpected NULL target for selector.");
  29815. return s
  29816. },
  29817. cFa: function(c, d, f) {
  29818. var g = f.Sl + f.wf(),
  29819. g = C.Jb.zya(g) + ".ccbi";
  29820. c = new C.Jb(f);
  29821. var h = C.M.xd(g);
  29822. h || (h = C.M.K0(g), h = C.M.Ifa(h), C.M.fj[g] = h);
  29823. c.Au(h, f.Rd);
  29824. c.Mc.f3(d.i());
  29825. c.iha(f.Iv);
  29826. c.Mc.VC(f.Rd);
  29827. d = c.Aga(t);
  29828. f.iha(c.Iv);
  29829. d && -1 != c.Mc.nz && c.Mc.v2(c.Mc.nz, 0);
  29830. return d
  29831. },
  29832. lFa: function(c, d, f) {
  29833. c = f.Yb();
  29834. f = f.Yb();
  29835. return [c, f]
  29836. },
  29837. HEa: function(c, d, f, g) {
  29838. "position" === f ? c.p(g) : Va(f)
  29839. },
  29840. Xx: function(c, d, f, g) {
  29841. "anchorPoint" === f ? c.S(g) : Va(f)
  29842. },
  29843. GEa: function(c, d, f) {
  29844. Va(f)
  29845. },
  29846. es: function(c, d, f, g) {
  29847. f === Ta ? c.Ca(g) : Va(f)
  29848. },
  29849. IEa: function(c, d, f, g) {
  29850. f === Ua ? (c.gb(g[0]), c.pb(g[1])) : Va(f)
  29851. },
  29852. FEa: function(c, d, f, g) {
  29853. if ("skew" === f) c.nJ(g[0]),
  29854. c.oJ(g[1]);
  29855. else {
  29856. d = f + "X";
  29857. var h = f + "Y"; (!c[d] || !c[h]) && Va(f);
  29858. c[d](g[0]);
  29859. c[h](g[1])
  29860. }
  29861. },
  29862. Vx: function(c, d, f, g) {
  29863. this.Nz.vl(g, f)
  29864. },
  29865. EEa: function(c, d, f, g) {
  29866. "rotation" === f ? c.th(g) : Va(f)
  29867. },
  29868. EI: function(c, d, f) {
  29869. Va(f)
  29870. },
  29871. M1: function(c, d, f, g) {
  29872. "tag" === f ? c.Qm(g) : Va(f)
  29873. },
  29874. Wx: function(c, d, f) {
  29875. Va(f)
  29876. },
  29877. K1: function(c, d, f) {
  29878. Va(f)
  29879. },
  29880. fo: function(c, d, f, g) {
  29881. "visible" === f ? c.va(g) : "ignoreAnchorPointForPosition" === f ? c.Hm(g) : Va(f)
  29882. },
  29883. fs: function(c, d, f) {
  29884. Va(f)
  29885. },
  29886. DEa: function(c, d, f) {
  29887. Va(f)
  29888. },
  29889. O1: function(c, d, f) {
  29890. Va(f)
  29891. },
  29892. rl: function(c, d, f) {
  29893. Va(f)
  29894. },
  29895. sj: function(c, d, f) {
  29896. Va(f)
  29897. },
  29898. I1: function(c, d, f) {
  29899. Va(f)
  29900. },
  29901. J1: function(c, d, f) {
  29902. Va(f)
  29903. },
  29904. rj: function(c, d, f) {
  29905. Va(f)
  29906. },
  29907. L1: function(c, d, f) {
  29908. Va(f)
  29909. },
  29910. N1: function(c, d, f, g) {
  29911. this.Nz.vl(g, f)
  29912. },
  29913. GI: function(c, d, f) {
  29914. Va(f)
  29915. },
  29916. FI: function(c, d, f) {
  29917. Va(f)
  29918. },
  29919. G1: function(c, d, f) {
  29920. Va(f)
  29921. },
  29922. H1: function(c, d, f) {
  29923. Va(f)
  29924. },
  29925. DI: function(c, d, f) {
  29926. Va(f)
  29927. }
  29928. });
  29929. C.Ea.M = function() {
  29930. return new C.Ea
  29931. };
  29932. C.CMa = C.O.extend({
  29933. C0a: u()
  29934. });
  29935. C.bLa = C.O.extend({
  29936. NEa: u(),
  29937. LEa: u(),
  29938. MEa: u()
  29939. });
  29940. C.aLa = C.O.extend({
  29941. lRa: u()
  29942. });
  29943. C.$Ka = C.O.extend({
  29944. A0a: B(t),
  29945. xEa: B(t)
  29946. });
  29947. C.wS = C.Ea.extend({
  29948. ji: function() {
  29949. return C.zD.create()
  29950. },
  29951. DI: function(c, d, f, g, h) {
  29952. "ccbFile" == f ? c.nha(g) : C.Ea.prototype.DI.call(this, c, d, f, g, h)
  29953. }
  29954. });
  29955. C.wS.M = function() {
  29956. return new C.wS
  29957. };
  29958. C.iq = C.Ea.extend({
  29959. ji: u(),
  29960. H1: function(c, d, f, g, h) {
  29961. "ccControl" == f ? c.nH(g.target, g.PGa, g.Qxa) : C.Ea.prototype.H1.call(this, c, d, f, g, h)
  29962. },
  29963. fo: function(c, d, f, g, h) {
  29964. "enabled" == f ? c.Ib(g) : "selected" == f ? c.Wu(g) : C.Ea.prototype.fo.call(this, c, d, f, g, h)
  29965. }
  29966. });
  29967. C.NS = C.iq.extend({
  29968. ji: function() {
  29969. return C.Ym.create()
  29970. },
  29971. fo: function(c, d, f, g, h) {
  29972. "zoomOnTouchDown" == f ? c.Bia(g) : C.iq.prototype.fo.call(this, c, d, f, g, h)
  29973. },
  29974. N1: function(c, d, f, g, h) {
  29975. "title|1" == f ? c.RR(g, C.Rg) : "title|2" == f ? c.RR(g, C.jv) : "title|3" == f ? c.RR(g, C.iv) : C.iq.prototype.N1.call(this, c, d, f, g, h)
  29976. },
  29977. FI: function(c, d, f, g, h) {
  29978. "titleTTF|1" == f ? c.s3(g, C.Rg) : "titleTTF|2" == f ? c.s3(g, C.jv) : "titleTTF|3" == f ? c.s3(g, C.iv) : C.iq.prototype.FI.call(this, c, d, f, g, h)
  29979. },
  29980. EI: function(c, d, f, g, h) {
  29981. "titleTTFSize|1" == f ? c.t3(g, C.Rg) : "titleTTFSize|2" == f ? c.t3(g, C.jv) : "titleTTFSize|4" == f ? c.t3(g, C.iv) : C.iq.prototype.EI.call(this, c, d, f, g, h)
  29982. },
  29983. Xx: function(c, d, f, g, h) {
  29984. "labelAnchorPoint" == f ? c.U2(g) : C.iq.prototype.Xx.call(this, c, d, f, g, h)
  29985. },
  29986. es: function(c, d, f, g, h) {
  29987. "preferedSize" == f ? c.De(g) : C.iq.prototype.es.call(this, c, d, f, g, h)
  29988. },
  29989. fs: function(c, d, f, g, h) {
  29990. "backgroundSpriteFrame|1" == f ? g != s && c.D2(g, C.Rg) : "backgroundSpriteFrame|2" == f ? g != s && c.D2(g, C.jv) : "backgroundSpriteFrame|3" == f ? g != s && c.D2(g, C.iv) : C.iq.prototype.fs.call(this, c, d, f, g, h)
  29991. },
  29992. sj: function(c, d, f, g, h) {
  29993. "titleColor|1" == f ? c.QR(g, C.Rg) : "titleColor|2" == f ? c.QR(g, C.jv) : "titleColor|3" == f ? c.QR(g, C.iv) : C.iq.prototype.sj.call(this, c, d, f, g, h)
  29994. }
  29995. });
  29996. C.NS.M = function() {
  29997. return new C.NS
  29998. };
  29999. Ua = "scale";
  30000. C.dU = C.Ea.extend({
  30001. ji: function() {
  30002. return C.Ml.create()
  30003. },
  30004. es: function(c, d, f, g, h) {
  30005. f == Ta ? c.VR(g) : C.Ea.prototype.es.call(this, c, d, f, g, h)
  30006. },
  30007. DI: function(c, d, f, g, h) {
  30008. "container" == f ? (c.uha(g), c.eS()) : C.Ea.prototype.DI.call(this, c, d, f, g, h)
  30009. },
  30010. fo: function(c, d, f, g, h) {
  30011. "clipsToBounds" == f ? c.sha(g) : "bounces" == f ? c.mha(g) : C.Ea.prototype.fo.call(this, c, d, f, g, h)
  30012. },
  30013. Vx: function(c, d, f, g, h) {
  30014. f == Ua ? c.Za(g) : C.Ea.prototype.Vx.call(this, c, d, f, g, h)
  30015. },
  30016. Wx: function(c, d, f, g, h) {
  30017. "direction" == f ? c.sh(g) : C.Ea.prototype.Wx.call(this, c, d, f, g, h)
  30018. }
  30019. });
  30020. C.dU.M = function() {
  30021. return new C.dU
  30022. };
  30023. var Ta = "contentSize",
  30024. rc = "color",
  30025. sc = "opacity",
  30026. tc = "blendFunc";
  30027. C.cU = C.Ea.extend({
  30028. ji: function() {
  30029. var c = C.Sa.create();
  30030. c.S(0, 0);
  30031. return c
  30032. },
  30033. sj: function(c, d, f, g, h) {
  30034. f == rc ? (255 !== g.r || 255 !== g.g || 255 !== g.b) && c.G(g) : C.Ea.prototype.sj.call(this, c, d, f, g, h)
  30035. },
  30036. rl: function(c, d, f, g, h) {
  30037. f == sc ? c.K(g) : C.Ea.prototype.rl.call(this, c, d, f, g, h)
  30038. },
  30039. rj: function(c, d, f, g, h) {
  30040. f != tc && C.Ea.prototype.rj.call(this, c, d, f, g, h)
  30041. },
  30042. fs: function(c, d, f, g, h) {
  30043. "spriteFrame" == f ? c.pc(g) : C.Ea.prototype.fs.call(this, c, d, f, g, h)
  30044. },
  30045. es: function(c, d, f, g, h) {
  30046. f != Ta && ("preferedSize" == f ? c.De(g) : C.Ea.prototype.es.call(this, c, d, f, g, h))
  30047. },
  30048. Vx: function(c, d, f, g, h) {
  30049. "insetLeft" == f ? c.Jha(g) : "insetTop" == f ? c.Lha(g) : "insetRight" == f ? c.Kha(g) : "insetBottom" == f ? c.Iha(g) : C.Ea.prototype.Vx.call(this, c, d, f, g, h)
  30050. }
  30051. });
  30052. C.cU.M = function() {
  30053. return new C.cU
  30054. };
  30055. rc = "color";
  30056. sc = "opacity";
  30057. tc = "blendFunc";
  30058. C.hU = C.Ea.extend({
  30059. ji: function() {
  30060. return C.u.create()
  30061. },
  30062. sj: function(c, d, f, g, h) {
  30063. f === rc ? (255 !== g.r || 255 !== g.g || 255 !== g.b) && c.G(g) : C.Ea.prototype.sj.call(this, c, d, f, g, h)
  30064. },
  30065. rl: function(c, d, f, g, h) {
  30066. f === sc ? c.K(g) : C.Ea.prototype.rl.call(this, c, d, f, g, h)
  30067. },
  30068. rj: function(c, d, f, g, h) {
  30069. f === tc ? c.Yd(g) : C.Ea.prototype.rj.call(this, c, d, f, g, h)
  30070. },
  30071. fs: function(c, d, f, g, h) {
  30072. "displayFrame" === f ? g ? c.pc(g) : C.log("ERROR: SpriteFrame is null") : C.Ea.prototype.fs.call(this, c, d, f, g, h)
  30073. },
  30074. J1: function(c, d, f, g, h) {
  30075. "flip" === f ? (c.Nd(g[0]), c.Uf(g[1])) : C.Ea.prototype.J1.call(this, c, d, f, g, h)
  30076. }
  30077. });
  30078. C.hU.M = function() {
  30079. return new C.hU
  30080. };
  30081. C.Ck = C.Ea.extend({
  30082. ji: function() {
  30083. var c = C.qe.create();
  30084. c.Ca(0, 0);
  30085. return c
  30086. },
  30087. fo: function(c, d, f, g, h) {
  30088. "touchEnabled" === f || "isTouchEnabled" === f || "accelerometerEnabled" === f || "isAccelerometerEnabled" === f || "mouseEnabled" === f || "isMouseEnabled" === f || ("keyboardEnabled" === f || "isKeyboardEnabled" === f ? c.CHa && !C.Sc.wDa ? c.CHa(g) : C.log("The property 'isKeyboardEnabled' is not supported!") : C.Ea.prototype.fo.call(this, c, d, f, g, h))
  30089. }
  30090. });
  30091. C.Ck.M = function() {
  30092. return new C.Ck
  30093. };
  30094. C.rT = C.Ck.extend({
  30095. ji: function() {
  30096. return C.gd.create()
  30097. },
  30098. sj: function(c, d, f, g, h) {
  30099. f === rc ? c.G(g) : C.Ck.prototype.sj.call(this, c, d, f, g, h)
  30100. },
  30101. rl: function(c, d, f, g, h) {
  30102. f === sc ? c.K(g) : C.Ck.prototype.rl.call(this, c, d, f, g, h)
  30103. },
  30104. rj: function(c, d, f, g, h) {
  30105. f === tc ? c.Yd(g) : C.Ck.prototype.rj.call(this, c, d, f, g, h)
  30106. }
  30107. });
  30108. C.rT.M = function() {
  30109. return new C.rT
  30110. };
  30111. C.tT = C.Ck.extend({
  30112. ji: function() {
  30113. return C.pq.create()
  30114. },
  30115. sj: function(c, d, f, g, h) {
  30116. "startColor" === f ? c.tg(g) : "endColor" == f ? c.sg(g) : C.Ck.prototype.sj.call(this, c, d, f, g, h)
  30117. },
  30118. rl: function(c, d, f, g, h) {
  30119. "startOpacity" === f ? c.tia(g) : "endOpacity" === f ? c.Aha(g) : C.Ck.prototype.rl.call(this, c, d, f, g, h)
  30120. },
  30121. Xx: function(c, d, f, g, h) {
  30122. "vector" === f ? c.UR(g) : C.Ck.prototype.Xx.call(this, c, d, f, g, h)
  30123. },
  30124. rj: function(c, d, f, g, h) {
  30125. f === tc ? c.Yd(g) : C.Ck.prototype.rj.call(this, c, d, f, g, h)
  30126. }
  30127. });
  30128. C.tT.M = function() {
  30129. return new C.tT
  30130. };
  30131. C.zT = C.Ck.extend({
  30132. ji: function() {
  30133. var c = C.Yy.create();
  30134. c.Ca(0, 0);
  30135. return c
  30136. }
  30137. });
  30138. C.zT.M = function() {
  30139. return new C.zT
  30140. };
  30141. C.F6 = C.Ea.extend({
  30142. ji: B(s),
  30143. G1: function(c, d, f, g, h) {
  30144. "block" === f ? s != g && c.pJ(g.QGa, g.target) : C.Ea.prototype.G1.call(this, c, d, f, g, h)
  30145. },
  30146. fo: function(c, d, f, g, h) {
  30147. "isEnabled" === f ? c.Ib(g) : C.Ea.prototype.fo.call(this, c, d, f, g, h)
  30148. }
  30149. });
  30150. C.xT = C.F6.extend({
  30151. ji: function() {
  30152. return C.wT.create()
  30153. },
  30154. fs: function(c, d, f, g, h) {
  30155. "normalSpriteFrame" === f ? g != s && c.PHa(g) : "selectedSpriteFrame" === f ? g != s && c.jIa(g) : "disabledSpriteFrame" === f ? g != s && c.oHa(g) : C.F6.prototype.fs.call(this, c, d, f, g, h)
  30156. }
  30157. });
  30158. C.xT.M = function() {
  30159. return new C.xT
  30160. };
  30161. C.qT = C.Ea.extend({
  30162. ji: function() {
  30163. return C.fa.create()
  30164. },
  30165. sj: function(c, d, f, g, h) {
  30166. f === rc ? (255 !== g.r || 255 !== g.g || 255 !== g.b) && c.G(g) : C.Ea.prototype.sj.call(this, c, d, f, g, h)
  30167. },
  30168. rl: function(c, d, f, g, h) {
  30169. f === sc ? c.K(g) : C.Ea.prototype.rl.call(this, c, d, f, g, h)
  30170. },
  30171. rj: function(c, d, f, g, h) {
  30172. f === tc ? c.Yd(g) : C.Ea.prototype.rj.call(this, c, d, f, g, h)
  30173. },
  30174. FI: function(c, d, f, g, h) {
  30175. "fontName" === f ? c.Zd(g) : C.Ea.prototype.FI.call(this, c, d, f, g, h)
  30176. },
  30177. GI: function(c, d, f, g, h) {
  30178. "string" === f ? c.sa(g) : C.Ea.prototype.GI.call(this, c, d, f, g, h)
  30179. },
  30180. EI: function(c, d, f, g, h) {
  30181. "fontSize" === f ? c.Od(g) : C.Ea.prototype.EI.call(this, c, d, f, g, h)
  30182. },
  30183. Wx: function(c, d, f, g, h) {
  30184. "horizontalAlignment" === f ? c.S2(g) : "verticalAlignment" === f ? c.y3(g) : C.Ea.prototype.Wx.call(this, c, d, f, g, h)
  30185. },
  30186. es: function(c, d, f, g, h) {
  30187. "dimensions" === f ? c.N2(g) : C.Ea.prototype.es.call(this, c, d, f, g, h)
  30188. }
  30189. });
  30190. C.qT.M = function() {
  30191. return new C.qT
  30192. };
  30193. C.pT = C.Ea.extend({
  30194. ji: function() {
  30195. return C.rv.create()
  30196. },
  30197. sj: function(c, d, f, g, h) {
  30198. f === rc ? (255 !== g.r || 255 !== g.g || 255 !== g.b) && c.G(g) : C.Ea.prototype.sj.call(this, c, d, f, g, h)
  30199. },
  30200. rl: function(c, d, f, g, h) {
  30201. f === sc ? c.K(g) : C.Ea.prototype.rl.call(this, c, d, f, g, h)
  30202. },
  30203. rj: function(c, d, f, g, h) {
  30204. f === tc ? c.Yd(g) : C.Ea.prototype.rj.call(this, c, d, f, g, h)
  30205. },
  30206. L1: function(c, d, f, g, h) {
  30207. "fntFile" === f ? c.UC(g) : C.Ea.prototype.L1.call(this, c, d, f, g, h)
  30208. },
  30209. GI: function(c, d, f, g, h) {
  30210. "string" === f ? c.sa(g) : C.Ea.prototype.GI.call(this, c, d, f, g, h)
  30211. }
  30212. });
  30213. C.pT.M = function() {
  30214. return new C.pT
  30215. };
  30216. C.HT = C.Ea.extend({
  30217. ji: function() {
  30218. return C.B.create()
  30219. },
  30220. Wx: function(c, d, f, g, h) {
  30221. "emitterMode" === f ? c.rk(g) : C.Ea.prototype.Wx.call(this, c, d, f, g, h)
  30222. },
  30223. Xx: function(c, d, f, g, h) {
  30224. "posVar" === f ? c.vk(g) : "gravity" === f ? c.oc(g) : C.Ea.prototype.Xx.call(this, c, d, f, g, h)
  30225. },
  30226. Vx: function(c, d, f, g, h) {
  30227. "emissionRate" === f ? c.qk(g) : "duration" === f ? c.Wh(g) : C.Ea.prototype.Vx.call(this, c, d, f, g, h)
  30228. },
  30229. M1: function(c, d, f, g, h) {
  30230. "totalParticles" === f ? c.yia(g) : C.Ea.prototype.M1.call(this, c, d, f, g, h)
  30231. },
  30232. K1: function(c, d, f, g, h) {
  30233. "life" === f ? (c.tk(g[0]), c.uk(g[1])) : "startSize" === f ? (c.wk(g[0]), c.xk(g[1])) : "endSize" === f ? (c.sk(g[0]), c.R2(g[1])) : "startSpin" === f ? (c.uia(g[0]), c.via(g[1])) : "endSpin" === f ? (c.Bha(g[0]), c.Cha(g[1])) : "angle" === f ? (c.ok(g[0]), c.pk(g[1])) : "speed" === f ? (c.Xh(g[0]), c.yj(g[1])) : "tangentialAccel" === f ? (c.no(g[0]), c.oo(g[1])) : "radialAccel" === f ? (c.wj(g[0]), c.xj(g[1])) : "startRadius" === f ? (c.n3(g[0]), c.o3(g[1])) : "endRadius" === f ? (c.P2(g[0]), c.Q2(g[1])) : "rotatePerSecond" === f ? (c.g3(g[0]), c.h3(g[1])) : C.Ea.prototype.K1.call(this, c, d, f, g, h)
  30234. },
  30235. I1: function(c, d, f, g, h) {
  30236. "startColor" === f ? (c.tg(g[0]), c.zj(g[1])) : "endColor" === f ? (c.sg(g[0]), c.uj(g[1])) : C.Ea.prototype.I1.call(this, c, d, f, g, h)
  30237. },
  30238. rj: function(c, d, f, g, h) {
  30239. f === tc ? c.Yd(g) : C.Ea.prototype.rj.call(this, c, d, f, g, h)
  30240. },
  30241. O1: function(c, d, f, g, h) {
  30242. "texture" === f ? c.Va(g) : C.Ea.prototype.O1.call(this, c, d, f, g, h)
  30243. }
  30244. });
  30245. C.HT.M = function() {
  30246. return new C.HT
  30247. };
  30248. C.Dj = C.O.extend({
  30249. Hq: s,
  30250. ctor: function() {
  30251. this.Hq = {}
  30252. },
  30253. Mga: function() {
  30254. this.lk("CCNode", C.Ea.M());
  30255. this.lk("CCLayer", C.Ck.M());
  30256. this.lk("CCLayerColor", C.rT.M());
  30257. this.lk("CCLayerGradient", C.tT.M());
  30258. this.lk("CCSprite", C.hU.M());
  30259. this.lk("CCLabelBMFont", C.pT.M());
  30260. this.lk("CCLabelTTF", C.qT.M());
  30261. this.lk("CCScale9Sprite", C.cU.M());
  30262. this.lk("CCScrollView", C.dU.M());
  30263. this.lk("CCBFile", C.wS.M());
  30264. this.lk("CCMenu", C.zT.M());
  30265. this.lk("CCMenuItemImage", C.xT.M());
  30266. this.lk("CCControlButton", C.NS.M());
  30267. this.lk("CCParticleSystemQuad", C.HT.M())
  30268. },
  30269. lk: function(c, d) {
  30270. this.Hq[c] = d
  30271. },
  30272. B6a: function(c) {
  30273. this.Hq[c] && delete this.Hq[c]
  30274. },
  30275. Mda: function(c) {
  30276. return this.Hq[c] ? this.Hq[c] : s
  30277. },
  30278. r1a: function(c) {
  30279. if (c) for (var d in this.Hq) delete this.Hq[d];
  30280. this.Hq = {}
  30281. }
  30282. });
  30283. C.Dj.ZI = s;
  30284. C.Dj.jEa = function() {
  30285. return new C.Dj
  30286. };
  30287. C.Dj.P5a = function() {
  30288. C.Dj.ZI == s && (C.Dj.ZI = new C.Dj, C.Dj.ZI.Mga());
  30289. return C.Dj.ZI
  30290. };
  30291. C.Dj.s1a = function() {
  30292. C.Dj.ZI = s
  30293. };
  30294. C.Dj.tEa = function() {
  30295. var c = C.Dj.jEa();
  30296. c.Mga();
  30297. return c
  30298. };
  30299. var ab = 0,
  30300. jb = 1,
  30301. eb = 2,
  30302. ib = 3,
  30303. kb = 4,
  30304. qb = 5,
  30305. sb = 6,
  30306. pb = 7,
  30307. xb = 8,
  30308. yb = 9,
  30309. zb = 10,
  30310. Ib = 11,
  30311. Jb = 12,
  30312. Kb = 13,
  30313. Lb = 14,
  30314. Mb = 15,
  30315. Nb = 16,
  30316. Ob = 17,
  30317. Yb = 18,
  30318. Wb = 19,
  30319. tb = 20,
  30320. Zb = 21,
  30321. Hb = 22,
  30322. ac = 23,
  30323. Xb = 24,
  30324. $b = 25,
  30325. rb = 26,
  30326. lb = 27,
  30327. Ya = 0,
  30328. Za = 1,
  30329. $a = 2,
  30330. oc = 0,
  30331. pc = 1,
  30332. qc = 2,
  30333. bc = 0,
  30334. jc = 1,
  30335. ic = 2,
  30336. kc = 3,
  30337. lc = 4,
  30338. mc = 5,
  30339. nc = 1;
  30340. C.zD = C.A.extend({
  30341. fF: s,
  30342. mTa: A("fF"),
  30343. nha: x("fF")
  30344. });
  30345. C.zD.create = function() {
  30346. return new C.zD
  30347. };
  30348. C.Jb = C.O.extend({
  30349. qn: t,
  30350. Ih: s,
  30351. Sl: "",
  30352. bra: 0,
  30353. Cg: 0,
  30354. ht: 0,
  30355. bZ: s,
  30356. Ft: s,
  30357. Rd: s,
  30358. Mc: s,
  30359. Iv: s,
  30360. dn: s,
  30361. eF: s,
  30362. DV: s,
  30363. GL: s,
  30364. Bz: s,
  30365. zw: s,
  30366. Aw: s,
  30367. BX: s,
  30368. eV: s,
  30369. HA: s,
  30370. IA: s,
  30371. GA: s,
  30372. nPa: t,
  30373. ctor: function(c, d, f, g) {
  30374. this.bZ = [];
  30375. this.Ft = [];
  30376. this.Cg = this.ht = -1;
  30377. 0 != arguments.length && (c instanceof C.Jb ? (this.Ft = c.Ft, this.eF = c.eF, this.GL = c.GL, this.Bz = c.Bz, this.DV = c.DV, this.HA = c.HA, this.IA = c.IA, this.GA = c.GA, this.zw = c.zw, this.Aw = c.Aw, this.Sl = c.Sl) : (this.eF = c, this.GL = d, this.Bz = f, this.DV = g))
  30378. },
  30379. oTa: A("Sl"),
  30380. eHa: x("Sl"),
  30381. Au: function(c, d) {
  30382. this.Mc = new C.z4;
  30383. this.Ih = c;
  30384. this.bra = c.length;
  30385. this.Cg = this.ht = 0;
  30386. this.Rd = d;
  30387. this.Mc.f3(C.Q.aa);
  30388. return q
  30389. },
  30390. bPa: function(c) {
  30391. var d = this.cI(),
  30392. f = "load " + c + " failed!";
  30393. d.open("GET", c, t);
  30394. var g = s;
  30395. if (/msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent)) {
  30396. d.setRequestHeader("Accept-Charset", "x-user-defined");
  30397. d.send(s);
  30398. if (200 != d.status) return C.log(f),
  30399. s;
  30400. if (d = C.RV(d.responseBody)) g = this.Nva(d),
  30401. this.Vra[c] = g
  30402. } else {
  30403. d.overrideMimeType && d.overrideMimeType("text/plain; charset\x3dx-user-defined");
  30404. d.send(s);
  30405. if (200 != d.status) return C.log(f),
  30406. s;
  30407. g = this.Nva(d.responseText);
  30408. this.Vra[c] = g
  30409. }
  30410. return g
  30411. },
  30412. Bga: function(c, d, f, g) {
  30413. f == s ? f = C.Q.aa: f instanceof C.z4 && (g = f, f = C.Q.aa);
  30414. var h = C.M.xd(c);
  30415. h || (h = C.M.K0(c), h = C.M.Ifa(h), C.M.fj[c] = h);
  30416. return this.bGa(h, d, f, g)
  30417. },
  30418. bGa: function(c, d, f) {
  30419. this.Au(c, d);
  30420. c = this.Mc;
  30421. c.f3(f);
  30422. c.VC(d);
  30423. this.zw = [];
  30424. this.Aw = [];
  30425. this.HA = [];
  30426. this.IA = [];
  30427. this.GA = [];
  30428. this.Iv = new C.Ev; (d = this.Aga(q)) && -1 != c.nz && c.v2(c.nz, 0);
  30429. if (this.qn) {
  30430. f = [];
  30431. c = [];
  30432. for (var g = this.Iv,
  30433. h = g.vB(), k = 0; k < h.length; k++) f.push(h[k]),
  30434. c.push(g.Km(h[k]));
  30435. this.BX = f;
  30436. this.eV = c
  30437. }
  30438. return d
  30439. },
  30440. nRa: function(c, d, f, g) {
  30441. c = this.Bga(c, d, f, g);
  30442. d = C.Ll.create();
  30443. d.q(c);
  30444. return d
  30445. },
  30446. nTa: A("GL"),
  30447. pTa: A("Bz"),
  30448. OSa: A("Mc"),
  30449. p3a: x("Mc"),
  30450. KSa: A("dn"),
  30451. iVa: A("Ft"),
  30452. iea: A("Rd"),
  30453. zc: function(c) {
  30454. for (var d = 0; ! this.O$();) d++;
  30455. for (var f = 0,
  30456. g = d - 1; 0 <= g; g--) this.O$() && (f |= 1 << g);
  30457. f |= 1 << d;
  30458. c = c ? f % 2 ? 0 | f / 2 : 0 | -f / 2 : f - 1;
  30459. this.Mqa();
  30460. return c
  30461. },
  30462. $: function() {
  30463. var c = this.Ih[this.Cg];
  30464. this.Cg++;
  30465. return c
  30466. },
  30467. VI: function() {
  30468. return 0 != this.$()
  30469. },
  30470. Yb: function() {
  30471. switch (this.$()) {
  30472. case 0:
  30473. return 0;
  30474. case 1:
  30475. return 1;
  30476. case 2:
  30477. return - 1;
  30478. case 3:
  30479. return 0.5;
  30480. case 4:
  30481. return this.zc(q);
  30482. default:
  30483. return this.XV(23, 8)
  30484. }
  30485. },
  30486. XV: function(c, d) {
  30487. var f = c + d + 1,
  30488. g = f >> 3;
  30489. this.KV(f);
  30490. var f = Math.pow(2, d - 1) - 1,
  30491. h = this.Yaa(c + d, 1, g),
  30492. k = this.Yaa(c, d, g),
  30493. n = 0,
  30494. p = 2,
  30495. r = 0;
  30496. do
  30497. for (var v = this.JN(++r, g), y = c % 8 || 8, z = 1 << y; z >>= 1;) v & z && (n += 1 / p),
  30498. p *= 2;
  30499. while (c -= y);
  30500. this.Cg += g;
  30501. return k == (f << 1) + 1 ? n ? NaN: h ? -Infinity: Infinity: (1 + -2 * h) * (k || n ? !k ? Math.pow(2, -f + 1) * n: Math.pow(2, k - f) * (1 + n) : 0)
  30502. },
  30503. Yaa: function(c, d, f) {
  30504. var g = (c + d) % 8,
  30505. h = c % 8,
  30506. k = f - (c >> 3) - 1;
  30507. c = f + ( - (c + d) >> 3);
  30508. var n = k - c;
  30509. d = this.JN(k, f) >> h & (1 << (n ? 8 - h: d)) - 1;
  30510. for (n && g && (d += (this.JN(c++, f) & (1 << g) - 1) << (n--<<3) - h); n;) d += this.NY(this.JN(c++, f), (n--<<3) - h);
  30511. return d
  30512. },
  30513. JN: function(c, d) {
  30514. return this.Ih[this.Cg + d - c - 1]
  30515. },
  30516. NY: function(c, d) {
  30517. for (++d; --d; c = 1073741824 == ((c %= 2147483648) & 1073741824) ? 2 * c: 2 * (c - 1073741824) + 2147483648);
  30518. return c
  30519. },
  30520. KV: function(c) {
  30521. this.Cg + Math.ceil(c / 8) < this.Ih.length || e(Error("Index out of bound"))
  30522. },
  30523. wf: function() {
  30524. return this.bZ[this.zc(t)]
  30525. },
  30526. vYa: A("qn"),
  30527. JVa: A("HA"),
  30528. KVa: A("IA"),
  30529. IVa: A("GA"),
  30530. LVa: A("zw"),
  30531. MVa: A("Aw"),
  30532. vVa: A("BX"),
  30533. QSa: A("eV"),
  30534. PSa: A("Iv"),
  30535. iha: x("Iv"),
  30536. yca: function(c) {
  30537. this.HA.push(c)
  30538. },
  30539. zca: function(c) {
  30540. this.IA.push(c)
  30541. },
  30542. xca: function(c) {
  30543. this.GA.push(c)
  30544. },
  30545. OO: function(c) {
  30546. this.Mc.OO(c)
  30547. },
  30548. PO: function(c) {
  30549. this.Mc.PO(c)
  30550. },
  30551. NO: function(c) {
  30552. this.Mc.NO(c)
  30553. },
  30554. Aga: function(c) {
  30555. if (!this.rua() || !this.uua() || !this.sua()) return s;
  30556. var d = this.Zaa();
  30557. this.Iv.vl(this.Mc, d);
  30558. c && this.v9(d);
  30559. return d
  30560. },
  30561. bQa: function(c) {
  30562. this.zw.push(c)
  30563. },
  30564. cQa: function(c) {
  30565. c != s && this.Aw.push(c)
  30566. },
  30567. v9: function(c) {
  30568. c.userObject = s;
  30569. c = c.le();
  30570. for (var d = 0,
  30571. f = c.length; d < f; d++) this.v9(c[d])
  30572. },
  30573. qua: function(c) {
  30574. var d = this.zc(t);
  30575. if (!d) return q;
  30576. for (var f = new C.yS,
  30577. g = this.qn,
  30578. h = this.Mc,
  30579. k = f.br,
  30580. n = 0; n < d; n++) {
  30581. var p = this.Yb(),
  30582. r = this.wf(),
  30583. v = this.zc(t),
  30584. y = [r, v],
  30585. z = new C.RJ;
  30586. z.setTime(p);
  30587. z.ne(y);
  30588. g && h.VM.push(v + ":" + r);
  30589. k.push(z)
  30590. }
  30591. c.fHa(f);
  30592. return q
  30593. },
  30594. tua: function(c) {
  30595. var d = this.zc(t);
  30596. if (!d) return q;
  30597. for (var f = new C.yS,
  30598. g = f.br,
  30599. h = 0; h < d; h++) {
  30600. var k = this.Yb(),
  30601. n = this.wf(),
  30602. p = this.Yb(),
  30603. r = this.Yb(),
  30604. v = this.Yb(),
  30605. n = [n, p, r, v],
  30606. p = new C.RJ;
  30607. p.setTime(k);
  30608. p.ne(n);
  30609. g.push(p)
  30610. }
  30611. c.nIa(f);
  30612. return q
  30613. },
  30614. sua: function() {
  30615. for (var c = this.Mc.YA,
  30616. d = this.zc(t), f = 0; f < d; f++) {
  30617. var g = new C.nka;
  30618. g.Wh(this.Yb());
  30619. g.Ze(this.wf());
  30620. g.kIa(this.zc(t));
  30621. g.hHa(this.zc(q));
  30622. if (!this.qua(g) || !this.tua(g)) return t;
  30623. c.push(g)
  30624. }
  30625. this.Mc.bHa(this.zc(q));
  30626. return q
  30627. },
  30628. aGa: function(c) {
  30629. var d = new C.RJ;
  30630. d.setTime(this.Yb());
  30631. var f = this.zc(t),
  30632. g = 0,
  30633. h = s;
  30634. if (2 === f || 3 === f || 4 === f || 5 === f || 6 === f || 7 === f) g = this.Yb();
  30635. d.Ru(f);
  30636. d.tHa(g);
  30637. c == yb ? h = this.VI() : c == Jb ? h = this.$() : c == Kb ? (c = C.color(this.$(), this.$(), this.$()), h = C.aK.create(c)) : c == lb ? h = [this.Yb(), this.Yb()] : c == qb ? h = this.Yb() : c == kb || c == ab || c == lb ? h = [this.Yb(), this.Yb()] : c == zb && (c = this.wf(), f = this.wf(), "" == c ? (f = this.Sl + f, c = C.kb.sd(f), f = c.i(), f = C.rect(0, 0, f.width, f.height), h = C.di.create(c, f)) : (c = this.Sl + c, g = C.Fe, -1 == this.Ft.indexOf(c) && (g.Lr(c), this.Ft.push(c)), h = g.nh(f)));
  30638. d.ne(h);
  30639. return d
  30640. },
  30641. rua: function() {
  30642. if (this.Ih == s) return t;
  30643. var c = this.wua(this.Cg, 4, q);
  30644. this.Cg += 4;
  30645. if ("ccbi" != c) return t;
  30646. c = this.zc(t);
  30647. if (5 != c) return C.log("WARNING! Incompatible ccbi file version (file: " + c + " reader: 5)"),
  30648. t;
  30649. this.qn = this.VI();
  30650. this.Mc.qn = this.qn;
  30651. return q
  30652. },
  30653. wua: function(c, d, f) {
  30654. c = "";
  30655. var g = this.Ih,
  30656. h = this.Cg;
  30657. if (f || t) for (f = d - 1; 0 <= f; f--) c += String.fromCharCode(g[h + f]);
  30658. else for (f = 0; f < d; f++) c += String.fromCharCode(g[h + f]);
  30659. return c
  30660. },
  30661. uua: function() {
  30662. for (var c = this.zc(t), d = 0; d < c; d++) this.vua();
  30663. return q
  30664. },
  30665. vua: function() {
  30666. for (var c = this.$(), d = this.$(), c = c << 8 | d, d = "", f = this.Ih, g = this.Cg, h = 0; h < c; h++) var k = f[g + h].toString("16").toUpperCase(),
  30667. k = 1 < k.length ? k: "0" + k,
  30668. d = d + ("%" + k);
  30669. d = decodeURIComponent(d);
  30670. this.Cg += c;
  30671. this.bZ.push(d)
  30672. },
  30673. Zaa: function(c) {
  30674. var d = this.wf(),
  30675. f,
  30676. g = this.qn,
  30677. h = this.Mc;
  30678. g && (f = this.wf());
  30679. var k = this.zc(t),
  30680. n;
  30681. k != oc && (n = this.wf());
  30682. var p = this.eF.Mda(d);
  30683. p || (p = this.eF.Mda("CCNode"));
  30684. d = p.lEa(c, this);
  30685. h.hm || h.hIa(d);
  30686. g && d == h.hm && h.rHa(f);
  30687. var r = new C.Ev,
  30688. v = this.dn = [],
  30689. y = this.zc(t);
  30690. for (f = 0; f < y; ++f) {
  30691. for (var z = this.zc(t), D = new C.Ev, E = this.zc(t), F = 0; F < E; ++F) {
  30692. var G = new C.yS;
  30693. G.Ze(this.wf());
  30694. G.rJ(this.zc(t));
  30695. v.push(G.getName());
  30696. for (var K = this.zc(t), O = G.br, U = 0; U < K; ++U) {
  30697. var X = this.aGa(G.xc);
  30698. O.push(X)
  30699. }
  30700. D.vl(G, G.getName())
  30701. }
  30702. r.vl(D, z)
  30703. }
  30704. 0 < r.count() && h.SO(d, r);
  30705. p.zFa(d, c, this);
  30706. d instanceof C.zD && (f = d.fF, f.p(d.Ld()), f.th(d.Mx()), f.gb(d.ia), f.pb(d.pa), f.Qm(d.Fm()), f.va(q), h.rEa(d, f), d.nha(s), d = f);
  30707. f = s;
  30708. k != oc && g && (k == pc ? (h.wwa(n), h.xwa(d)) : (this.zw.push(n), this.Aw.push(d)));
  30709. if (0 < p.Nz.length && !g && (f = d, f != s && f.xEa != s)) {
  30710. g = p.Nz.vB();
  30711. for (f = 0; f < g.length; f++);
  30712. }
  30713. this.dn = s;
  30714. g = this.zc(t);
  30715. for (f = 0; f < g; f++) h = this.Zaa(d),
  30716. d.q(h);
  30717. return d
  30718. },
  30719. O$: function() {
  30720. var c = 0 != (this.Ih[this.Cg] & 1 << this.ht);
  30721. this.ht++;
  30722. 8 <= this.ht && (this.ht = 0, this.Cg++, this.Cg > this.Ih.length && e("out of the data bound"));
  30723. return c
  30724. },
  30725. Mqa: function() {
  30726. this.ht && (this.ht = 0, this.Cg++)
  30727. },
  30728. oPa: u()
  30729. });
  30730. C.Jb.t9 = 1;
  30731. C.Jb.Z4a = function(c) {
  30732. C.Jb.t9 = c
  30733. };
  30734. C.Jb.yu = function() {
  30735. return C.Jb.t9
  30736. };
  30737. C.Jb.Z_a = function(c, d, f, g) {
  30738. g = g || C.Jb.A0();
  30739. c = C.Jb.load(c, d, f, g);
  30740. d = C.Ll.create();
  30741. d.q(c);
  30742. return d
  30743. };
  30744. C.Jb.y9 = {};
  30745. C.Jb.I1a = function(c, d) {
  30746. C.Jb.y9[c] = C.O.extend(d)
  30747. };
  30748. C.Jb.load = function(c, d, f, g) {
  30749. g = g || C.Jb.A0();
  30750. var h = new C.Jb(C.Dj.tEa());
  30751. h.eHa(g);
  30752. if (5 > c.length || c.toLowerCase().lastIndexOf(".ccbi") != c.length - 5) c += ".ccbi";
  30753. c = h.Bga(c, d, f);
  30754. var k, n, p;
  30755. if (d) {
  30756. g = h.HA;
  30757. var r = h.IA,
  30758. v = h.GA;
  30759. for (f = 0; f < g.length; f++) k = g[f],
  30760. n = r[f],
  30761. p = v[f],
  30762. n instanceof C.Ym ? n.nH(d, d[k], p) : n.pha(d[k], d);
  30763. g = h.zw;
  30764. r = h.Aw;
  30765. for (f = 0; f < g.length; f++) k = g[f],
  30766. n = r[f],
  30767. d[k] = n
  30768. }
  30769. g = h.BX;
  30770. h = h.eV;
  30771. if (!g || !h) return c;
  30772. r = C.Jb.y9;
  30773. for (f = 0; f < g.length; f++) {
  30774. var y = g[f],
  30775. v = h[f];
  30776. y.pQa = v;
  30777. if (k = v.kW) {
  30778. var z = r[k];
  30779. z || e("Can not find controller : " + k);
  30780. z = new z;
  30781. z.hRa = k;
  30782. y.gRa = z;
  30783. z.J2a = y;
  30784. for (var D = v.cM,
  30785. E = v.dM,
  30786. F = v.bM,
  30787. y = 0; y < D.length; y++) k = D[y],
  30788. n = E[y],
  30789. p = F[y],
  30790. n instanceof C.Ym ? n.nH(z, z[k], p) : n.pha(z[k], z);
  30791. p = v.eM;
  30792. D = v.fM;
  30793. for (y = 0; y < p.length; y++) k = p[y],
  30794. n = D[y],
  30795. z[k] = n;
  30796. z.$fa && "function" == typeof z.$fa && z.$fa();
  30797. k = v.VM;
  30798. for (y = 0; y < k.length; y++) p = k[y].split(":"),
  30799. n = p[0],
  30800. p = p[1],
  30801. 1 == n ? v.oha(C.Jc.create(z[p], z), k[y]) : 2 == n && d && v.oha(C.Jc.create(d[p], d), k[y])
  30802. }
  30803. }
  30804. return c
  30805. };
  30806. C.Jb.iba = "";
  30807. C.Jb.$4a = function(c) {
  30808. C.Jb.iba = c
  30809. };
  30810. C.Jb.A0 = function() {
  30811. return C.Jb.iba
  30812. };
  30813. C.Jb.Efa = function(c) {
  30814. var d = c.lastIndexOf("/");
  30815. return - 1 != d ? c.substring(d + 1, c.length - d) : c
  30816. };
  30817. C.Jb.zya = function(c) {
  30818. var d = c.lastIndexOf(".");
  30819. return - 1 != d ? c.substring(0, d) : c
  30820. };
  30821. C.Jb.toLowerCase = function(c) {
  30822. return c.toLowerCase()
  30823. };
  30824. C.Jb.aSa = function(c, d) {
  30825. return c.length >= d.length ? 0 == c.lastIndexOf(d) : t
  30826. };
  30827. C.Jb.concat = function(c, d) {
  30828. return c + d
  30829. };
  30830. C.M.Zp(["ccbi"], C.$qa);
  30831. C.ZLa = 0;
  30832. C.NLa = 1;
  30833. C.PMa = 2;
  30834. C.KKa = 3;
  30835. C.JNa = 4;
  30836. C.aK = C.O.extend({
  30837. ya: s,
  30838. ctor: function() {
  30839. this.ya = C.color(0, 0, 0)
  30840. },
  30841. Xa: A("ya")
  30842. });
  30843. C.aK.create = function(c) {
  30844. var d = new C.aK;
  30845. d && (d.ya.r = c.r, d.ya.g = c.g, d.ya.b = c.b);
  30846. return d
  30847. };
  30848. C.C4 = C.O.extend({
  30849. Hd: s,
  30850. xc: 0,
  30851. TUa: u(),
  30852. getFloatValue: u(),
  30853. jTa: u(),
  30854. lTa: u(),
  30855. YVa: u(),
  30856. Qf: A("Hd")
  30857. });
  30858. C.C4.create = function() {
  30859. return new C.C4
  30860. };
  30861. C.RJ = C.O.extend({
  30862. Hd: s,
  30863. Rba: 0,
  30864. iM: 0,
  30865. oW: 0,
  30866. Qf: A("Hd"),
  30867. ne: x("Hd"),
  30868. getTime: A("Rba"),
  30869. setTime: x("Rba"),
  30870. qUa: A("iM"),
  30871. Ru: x("iM"),
  30872. pUa: A("oW"),
  30873. tHa: x("oW")
  30874. });
  30875. C.nka = C.O.extend({
  30876. D: 0,
  30877. kd: "",
  30878. TN: 0,
  30879. HV: 0,
  30880. DL: s,
  30881. bO: s,
  30882. ctor: function() {
  30883. this.kd = ""
  30884. },
  30885. Rr: A("D"),
  30886. Wh: x("D"),
  30887. getName: A("kd"),
  30888. Ze: x("kd"),
  30889. xWa: A("TN"),
  30890. kIa: x("TN"),
  30891. BTa: A("HV"),
  30892. hHa: x("HV"),
  30893. uTa: A("DL"),
  30894. fHa: x("DL"),
  30895. DWa: A("bO"),
  30896. nIa: x("bO")
  30897. });
  30898. C.yS = C.O.extend({
  30899. kd: s,
  30900. xc: 0,
  30901. br: s,
  30902. ctor: function() {
  30903. this.j()
  30904. },
  30905. j: function() {
  30906. this.br = [];
  30907. this.kd = ""
  30908. },
  30909. getName: A("kd"),
  30910. Ze: x("kd"),
  30911. $H: A("xc"),
  30912. rJ: x("xc"),
  30913. YUa: A("br")
  30914. });
  30915. C.Vza = function(c, d, f) {
  30916. var g = C.d(0, 0);
  30917. 0 === d ? g = c: 1 === d ? (g.x = c.x, g.y = f.height - c.y) : 2 === d ? (g.x = f.width - c.x, g.y = f.height - c.y) : 3 === d ? (g.x = f.width - c.x, g.y = c.y) : 4 === d ? (g.x = f.width * c.x / 100, g.y = f.height * c.y / 100) : 5 === d && (d = C.Jb.yu(), g.x = c.x * d, g.y = c.y * d);
  30918. return g
  30919. };
  30920. C.FW = function(c, d, f, g) {
  30921. var h = C.d(0, 0);
  30922. 0 === f ? (h.x = c, h.y = d) : 1 === f ? (h.x = c, h.y = g.height - d) : 2 === f ? (h.x = g.width - c, h.y = g.height - d) : 3 === f ? (h.x = g.width - c, h.y = d) : 4 === f ? (h.x = g.width * c / 100, h.y = g.height * d / 100) : 5 === f && (f = C.Jb.yu(), h.x = c * f, h.y = d * f);
  30923. return h
  30924. };
  30925. C.kia = function(c, d, f, g) {
  30926. c || e("cc.setRelativeScale(): node should be non-null");
  30927. 5 === g && (g = C.Jb.yu(), d *= g, f *= g);
  30928. c.gb(d);
  30929. c.pb(f)
  30930. };
  30931. C.ZKa = C.O.extend({
  30932. cRa: u()
  30933. });
  30934. C.z4 = C.O.extend({
  30935. YA: s,
  30936. gG: s,
  30937. qz: s,
  30938. nz: 0,
  30939. hm: s,
  30940. Rd: s,
  30941. QN: s,
  30942. Oq: s,
  30943. yG: s,
  30944. eM: s,
  30945. fM: s,
  30946. cM: s,
  30947. dM: s,
  30948. bM: s,
  30949. kW: "",
  30950. mX: "",
  30951. VM: s,
  30952. kX: s,
  30953. dV: s,
  30954. Xc: s,
  30955. qn: t,
  30956. ctor: function() {
  30957. this.QN = C.size(0, 0);
  30958. this.j()
  30959. },
  30960. j: function() {
  30961. this.YA = [];
  30962. this.gG = new C.Ev;
  30963. this.qz = new C.Ev;
  30964. this.eM = [];
  30965. this.fM = [];
  30966. this.cM = [];
  30967. this.dM = [];
  30968. this.bM = [];
  30969. this.VM = [];
  30970. this.kX = {};
  30971. return q
  30972. },
  30973. yWa: A("YA"),
  30974. d5a: x("YA"),
  30975. TSa: A("nz"),
  30976. bHa: x("nz"),
  30977. qWa: A("hm"),
  30978. hIa: x("hm"),
  30979. iea: A("Rd"),
  30980. VC: x("Rd"),
  30981. PO: function(c) {
  30982. this.dM.push(c)
  30983. },
  30984. OO: function(c) {
  30985. this.cM.push(c)
  30986. },
  30987. NO: function(c) {
  30988. this.bM.push(c)
  30989. },
  30990. xwa: function(c) {
  30991. this.fM.push(c)
  30992. },
  30993. wwa: function(c) {
  30994. this.eM.push(c)
  30995. },
  30996. rHa: x("kW"),
  30997. kUa: A("kW"),
  30998. iUa: A("cM"),
  30999. jUa: A("dM"),
  31000. hUa: A("bM"),
  31001. lUa: A("eM"),
  31002. mUa: A("fM"),
  31003. ZUa: A("mX"),
  31004. XUa: A("VM"),
  31005. pWa: A("QN"),
  31006. f3: function(c) {
  31007. this.QN = C.size(c.width, c.height)
  31008. },
  31009. ZB: A("Oq"),
  31010. bq: x("Oq"),
  31011. sWa: function() {
  31012. return this.yG ? this.yG.getName() : s
  31013. },
  31014. AP: function(c) {
  31015. return c ? c.i() : this.QN
  31016. },
  31017. SO: function(c, d) {
  31018. this.gG.vl(d, c)
  31019. },
  31020. iy: function(c, d, f) {
  31021. var g = this.qz.Km(d);
  31022. g || (g = new C.Ev, this.qz.vl(g, d));
  31023. g.vl(c, f)
  31024. },
  31025. rEa: function(c, d) {
  31026. var f = this.qz,
  31027. g = f.Km(c);
  31028. g != s && (f.vl(g, d), f.q2(c));
  31029. f = this.gG;
  31030. g = f.Km(c);
  31031. g != s && (f.vl(g, d), f.q2(c))
  31032. },
  31033. Wza: function(c) {
  31034. var d = 0,
  31035. f = [];
  31036. c = c.br;
  31037. for (var g = c.length,
  31038. h = 0; h < g; ++h) {
  31039. var k = c[h],
  31040. n = k.getTime() - d,
  31041. d = k.getTime();
  31042. 0 < n && f.push(C.fd.create(n));
  31043. n = k.Qf();
  31044. k = n[0];
  31045. n = n[1];
  31046. if (this.qn) k = this.kX[n + ":" + k],
  31047. k != s && f.push(k);
  31048. else {
  31049. var p;
  31050. n == pc ? p = this.hm: n == qc && (p = this.Rd);
  31051. p != s && (0 < k.length ? (n = 0, p.LEa != s && (n = m), 0 == n ? C.log("Skipping selector '" + k + "' since no CCBSelectorResolver is present.") : f.push(C.Jc.create(n, p))) : C.log("Unexpected empty selector."))
  31052. }
  31053. }
  31054. return 1 > f.length ? s: C.La.create(f)
  31055. },
  31056. Xza: function(c) {
  31057. var d = 0,
  31058. f = [];
  31059. c = c.br;
  31060. for (var g = c.length,
  31061. h = 0; h < g; ++h) {
  31062. var k = c[h],
  31063. n = k.getTime() - d,
  31064. d = k.getTime();
  31065. 0 < n && f.push(C.fd.create(n));
  31066. k = k.Qf();
  31067. f.push(C.AS.create(C.Jb.A0() + k[0], parseFloat(k[1]), parseFloat(k[2]), parseFloat(k[3])))
  31068. }
  31069. return 1 > f.length ? s: C.La.create(f)
  31070. },
  31071. M2a: function(c) {
  31072. this.w2(this.SW(c), 0)
  31073. },
  31074. N2a: function(c, d) {
  31075. this.w2(this.SW(c), d)
  31076. },
  31077. w2: function(c, d) { - 1 === c && e("cc.BuilderAnimationManager.runAnimationsForSequenceIdTweenDuration(): Sequence id should not be -1");
  31078. d = d || 0;
  31079. this.hm.yk();
  31080. for (var f = this.gG.vB(), g = 0, h = f.length; g < h; g++) {
  31081. var k = f[g];
  31082. k.yk();
  31083. var n = this.gG.Km(k).Km(c),
  31084. p,
  31085. r = [];
  31086. if (n) {
  31087. var v = n.vB();
  31088. for (p = 0; p < v.length; p++) {
  31089. var y = v[p],
  31090. z = n.Km(y);
  31091. r.push(y);
  31092. this.Wua(k, z, d);
  31093. this.Kua(k, z, d)
  31094. }
  31095. }
  31096. if (n = this.qz.Km(k)) {
  31097. v = n.vB();
  31098. for (p = 0; p < v.length; p++) y = v[p],
  31099. -1 == r.indexOf(y) && (z = n.Km(y), z != s && this.yY(y, k, z, d))
  31100. }
  31101. }
  31102. f = this.S$(c);
  31103. g = C.La.create(C.fd.create(f.Rr() + d), C.Jc.create(this.Nua, this));
  31104. this.hm.Ya(g);
  31105. f.DL && (g = this.Wza(f.DL)) && this.hm.Ya(g);
  31106. f.bO && (g = this.Xza(f.bO)) && this.hm.Ya(g);
  31107. this.yG = this.S$(c)
  31108. },
  31109. v2: function(c, d) {
  31110. this.w2("string" === typeof c ? this.SW(c) : c, d || 0)
  31111. },
  31112. XGa: function(c, d) {
  31113. this.Xc = c;
  31114. this.dV = d
  31115. },
  31116. G3a: function(c, d) {
  31117. this.XGa(c, d)
  31118. },
  31119. oha: function(c, d) {
  31120. this.kX[d] = c
  31121. },
  31122. debug: u(),
  31123. IF: function(c, d) {
  31124. var f = this.qz.Km(c);
  31125. return f ? f.Km(d) : s
  31126. },
  31127. SW: function(c) {
  31128. for (var d = s,
  31129. f = this.YA,
  31130. g = 0,
  31131. h = f.length; g < h; g++) if ((d = f[g]) && d.getName() === c) return d.TN;
  31132. return - 1
  31133. },
  31134. S$: function(c) {
  31135. for (var d = s,
  31136. f = this.YA,
  31137. g = 0,
  31138. h = f.length; g < h; g++) if ((d = f[g]) && d.TN === c) return d;
  31139. return s
  31140. },
  31141. J$: function(c, d, f, g) {
  31142. c = d.getTime() - (c ? c.getTime() : 0);
  31143. var h;
  31144. if ("rotation" === f) return C.xS.create(c, d.Qf());
  31145. if ("rotationX" === f) return C.A4.create(c, d.Qf());
  31146. if ("rotationY" === f) return C.B4.create(c, d.Qf());
  31147. if ("opacity" === f) return C.xo.create(c, d.Qf());
  31148. if ("color" === f) return g = d.Qf().Xa(),
  31149. C.ez.create(c, g.r, g.g, g.b);
  31150. if ("visible" === f) return d.Qf() ? C.La.create(C.fd.create(c), C.Fj.create()) : C.La.create(C.fd.create(c), C.Fl.create());
  31151. if ("displayFrame" === f) return C.La.create(C.fd.create(c), C.zS.create(d.Qf()));
  31152. if ("position" === f) return f = this.IF(g, f),
  31153. f = f[2],
  31154. h = d.Qf(),
  31155. d = h[0],
  31156. h = h[1],
  31157. g = this.AP(g.getParent()),
  31158. g = C.FW(d, h, f, g),
  31159. C.Bs.create(c, g);
  31160. if ("scale" === f) return f = this.IF(g, f),
  31161. f = f[2],
  31162. h = d.Qf(),
  31163. d = h[0],
  31164. h = h[1],
  31165. f === nc && (g = C.Jb.yu(), d *= g, h *= g),
  31166. C.ae.create(c, d, h);
  31167. if ("skew" === f) return h = d.Qf(),
  31168. d = h[0],
  31169. h = h[1],
  31170. C.rq.create(c, d, h);
  31171. C.log("BuilderReader: Failed to create animation for property: " + f);
  31172. return s
  31173. },
  31174. yY: function(c, d, f, g) {
  31175. if (0 < g) {
  31176. var h = new C.RJ;
  31177. h.ne(f);
  31178. h.setTime(g);
  31179. h.Ru(1);
  31180. f = this.J$(s, h, c, d);
  31181. d.Ya(f)
  31182. } else "position" === c ? (c = this.IF(d, c), c = c[2], g = f[0], f = f[1], d.p(C.FW(g, f, c, this.AP(d.getParent())))) : "scale" === c ? (c = this.IF(d, c), c = c[2], g = f[0], f = f[1], C.kia(d, g, f, c)) : "skew" === c ? (g = f[0], f = f[1], d.nJ(g), d.oJ(f)) : "rotation" === c ? d.th(f) : "rotationX" == c ? d.b5a(f) : "rotationY" == c ? d.c5a(f) : "opacity" === c ? d.K(f) : "displayFrame" === c ? d.pc(f) : "color" === c ? (f = f.Xa(), (255 !== f.r || 255 !== f.g || 255 !== f.b) && d.G(f)) : "visible" === c ? d.va(f || t) : C.log("unsupported property name is " + c)
  31183. },
  31184. Wua: function(c, d, f) {
  31185. var g = d.br;
  31186. 0 === g.length ? ((g = this.IF(c, d.getName())) || C.log("cc.BuilderAnimationManager._setFirstFrame(): No baseValue found for property"), this.yY(d.getName(), c, g, f)) : this.yY(d.getName(), c, g[0].Qf(), f)
  31187. },
  31188. lsa: function(c, d, f) {
  31189. if (1 === d || 0 === d) return c;
  31190. if (2 === d) return C.$D.create(c, f);
  31191. if (3 === d) return C.As.create(c, f);
  31192. if (4 === d) return C.Oy.create(c, f);
  31193. if (11 === d) return C.KD.create(c);
  31194. if (12 === d) return C.MD.create(c);
  31195. if (13 === d) return C.LD.create(c);
  31196. if (8 === d) return C.OD.create(c);
  31197. if (9 === d) return C.QD.create(c);
  31198. if (10 === d) return C.PD.create(c);
  31199. if (5 === d) return C.XD.create(c, f);
  31200. if (6 === d) return C.ZD.create(c, f);
  31201. if (7 === d) return C.YD.create(c, f);
  31202. C.log("BuilderReader: Unkown easing type " + d);
  31203. return c
  31204. },
  31205. Kua: function(c, d, f) {
  31206. var g = d.br,
  31207. h = g.length;
  31208. if (1 < h) {
  31209. var k = [];
  31210. f = g[0].getTime() + f;
  31211. 0 < f && k.push(C.fd.create(f));
  31212. for (f = 0; f < h - 1; ++f) {
  31213. var n = g[f],
  31214. p = this.J$(n, g[f + 1], d.getName(), c);
  31215. p && (p = this.lsa(p, n.iM, n.oW), k.push(p))
  31216. }
  31217. d = C.La.create(k);
  31218. c.Ya(d)
  31219. }
  31220. },
  31221. Nua: function() {
  31222. var c = this.yG;
  31223. this.mX != c.getName() && (this.mX = c.getName());
  31224. c = c.HV;
  31225. this.yG = s; - 1 != c && this.v2(c, 0);
  31226. this.Xc && this.dV && this.dV.call(this.Xc)
  31227. }
  31228. });
  31229. C.zS = C.yh.extend({
  31230. vr: s,
  31231. mj: function(c) {
  31232. this.vr = c;
  31233. return q
  31234. },
  31235. update: function() {
  31236. this.target.pc(this.vr)
  31237. }
  31238. });
  31239. C.zS.create = function(c) {
  31240. var d = new C.zS;
  31241. return d && d.mj(c) ? d: s
  31242. };
  31243. C.xS = C.N.extend({
  31244. Sw: 0,
  31245. O9: 0,
  31246. J9: 0,
  31247. k: function(c, d) {
  31248. return C.N.prototype.k.call(this, c) ? (this.O9 = d, q) : t
  31249. },
  31250. update: function(c) {
  31251. this.target.th(this.Sw + this.J9 * c)
  31252. },
  31253. R: function(c) {
  31254. C.N.prototype.R.call(this, c);
  31255. this.Sw = this.target.Mx();
  31256. this.J9 = this.O9 - this.Sw
  31257. }
  31258. });
  31259. C.xS.create = function(c, d) {
  31260. var f = new C.xS;
  31261. return f && f.k(c, d) ? f: s
  31262. };
  31263. C.A4 = C.N.extend({});
  31264. C.A4.create = function() {
  31265. e("rotationX has not been implemented in cocos2d-html5")
  31266. };
  31267. C.B4 = C.N.extend({});
  31268. C.B4.create = function() {
  31269. e("rotationY has not been implemented in cocos2d-html5")
  31270. };
  31271. C.AS = C.yh.extend({
  31272. j: function(c) {
  31273. this.Ura = c;
  31274. return q
  31275. },
  31276. update: function() {
  31277. C.ud.Zx(this.Ura)
  31278. }
  31279. });
  31280. C.AS.create = function(c) {
  31281. var d = new C.AS;
  31282. return d && d.j(c) ? d: s
  31283. };
  31284. C.Pd = {};
  31285. C.Pd.a9 = function(c) {
  31286. for (var d in C.Pd.C1) c[d] = C.Pd.C1[d];
  31287. C.e(c, "x", c.Rc, c.rs);
  31288. C.e(c, "y", c.Vd, c.Uu);
  31289. C.e(c, "width", c.ef, c.Qh);
  31290. C.e(c, "height", c.Dg, c.Ph);
  31291. C.e(c, "anchorX", c.L$, c.Re);
  31292. C.e(c, "anchorY", c.M$, c.Se);
  31293. C.e(c, "scale", c.SH, c.Za);
  31294. C.e(c, "scaleX", c.LP, c.gb);
  31295. C.e(c, "scaleY", c.TH, c.TH);
  31296. C.e(c, "rotation", c.Mx, c.th);
  31297. C.e(c, "skewX", c.rea, c.nJ);
  31298. C.e(c, "skewY", c.sea, c.oJ);
  31299. C.e(c, "visible", c.l1, c.va);
  31300. C.e(c, "parent", c.getParent, c.cq);
  31301. C.e(c, "opacity", c.rb, c.K)
  31302. };
  31303. C.Pd.C1 = {
  31304. p: function(c, d) {
  31305. d === m ? (this.ma.x = c.x, this.ma.y = c.y) : (this.ma.x = c, this.ma.y = d);
  31306. this.Da();
  31307. this.ja.DJ(this.ma.x, -this.ma.y)
  31308. },
  31309. Uu: function(c) {
  31310. this.ma.y = c;
  31311. this.Da();
  31312. this.ja.DJ(this.ma.x, -this.ma.y)
  31313. },
  31314. rs: function(c) {
  31315. this.ma.x = c;
  31316. this.Da();
  31317. this.ja.DJ(this.ma.x, -this.ma.y)
  31318. },
  31319. Za: function(c, d) {
  31320. this.ia = c;
  31321. this.pa = d || c;
  31322. this.Da();
  31323. this.ja.$p(this.ia, this.pa)
  31324. },
  31325. gb: function(c) {
  31326. this.ia = c;
  31327. this.Da();
  31328. this.ja.$p(this.ia, this.pa)
  31329. },
  31330. pb: function(c) {
  31331. this.pa = c;
  31332. this.Da();
  31333. this.ja.$p(this.ia, this.pa)
  31334. },
  31335. S: function(c, d) {
  31336. var f = this.Ab;
  31337. d === m ? (f.x = c.x, f.y = c.y) : (f.x = c, f.y = d);
  31338. var g = this.Nb,
  31339. h = this.o;
  31340. g.x = h.width * f.x;
  31341. g.y = h.height * f.y;
  31342. this.ja.style[C.ic.Gu + "TransformOrigin"] = "" + g.x + "px " + -g.y + "px";
  31343. this.ignoreAnchor ? (this.ja.style.marginLeft = 0, this.ja.style.marginBottom = 0) : (this.ja.style.marginLeft = this.CDa ? 0 : -g.x + "px", this.ja.style.marginBottom = -g.y + "px");
  31344. this.Da()
  31345. },
  31346. Re: function(c) {
  31347. var d = this.Ab;
  31348. c !== d.x && (d.x = c, c = this.Nb, c.x = this.o.width * d.x, this.ja.style[C.ic.Gu + "TransformOrigin"] = "" + c.x + "px " + -c.y + "px", this.ignoreAnchor ? (this.ja.style.marginLeft = 0, this.ja.style.marginBottom = 0) : this.ja.style.marginLeft = this.CDa ? 0 : -c.x + "px", this.Da())
  31349. },
  31350. Se: function(c) {
  31351. var d = this.Ab;
  31352. c !== d.y && (d.y = c, c = this.Nb, c.y = this.o.height * d.y, this.ja.style[C.ic.Gu + "TransformOrigin"] = "" + c.x + "px " + -c.y + "px", this.ignoreAnchor ? (this.ja.style.marginLeft = 0, this.ja.style.marginBottom = 0) : this.ja.style.marginBottom = -c.y + "px", this.Da())
  31353. },
  31354. Ca: function(c, d) {
  31355. var f = this.o;
  31356. d === m ? (f.width = c.width, f.height = c.height) : (f.width = c, f.height = d);
  31357. var g = this.Nb,
  31358. h = this.Ab;
  31359. g.x = f.width * h.x;
  31360. g.y = f.height * h.y;
  31361. this.ja.width = f.width;
  31362. this.ja.height = f.height;
  31363. this.S(this.dk());
  31364. this.canvas && (this.canvas.width = f.width, this.canvas.height = f.height);
  31365. this.Da();
  31366. this.m2()
  31367. },
  31368. Qh: function(c) {
  31369. var d = this.o;
  31370. c !== d.width && (d.width = c, c = this.Ab, this.Nb.x = d.width * c.x, this.ja.width = d.width, this.anchorX = c.x, this.canvas && (this.canvas.width = d.width), this.Da(), this.m2())
  31371. },
  31372. Ph: function(c) {
  31373. var d = this.o;
  31374. c !== d.height && (d.height = c, c = this.Ab, this.Nb.y = d.height * c.y, this.ja.height = d.height, this.anchorY = c.y, this.canvas && (this.canvas.height = d.height), this.Da(), this.m2())
  31375. },
  31376. th: function(c) {
  31377. this.XA != c && (this.Xi = this.im = c, this.Dn = this.Xi * (Math.PI / 180), this.Mw = this.im * (Math.PI / 180), this.Da(), this.ja.rotate(c))
  31378. },
  31379. nJ: function(c) {
  31380. this.ig = c;
  31381. this.Da();
  31382. this.ja.qia(this.ig, this.jg)
  31383. },
  31384. oJ: function(c) {
  31385. this.jg = c;
  31386. this.Da();
  31387. this.ja.qia(this.ig, this.jg)
  31388. },
  31389. va: function(c) {
  31390. this.Ja = c;
  31391. this.Da();
  31392. this.ja && (this.ja.style.display = c ? "block": "none")
  31393. },
  31394. Ow: function(c) {
  31395. this.Wa = c;
  31396. this.Da();
  31397. this.ja && (this.ja.zIndex = c)
  31398. },
  31399. cq: function(c) {
  31400. this.Vb = c;
  31401. c !== s && (c.S(c.dk()), this.Da(), C.Pd.UQ(this))
  31402. },
  31403. nk: function() {
  31404. this.Em().Mm(this);
  31405. this.UB().Mm(this);
  31406. C.Ka.Mm(this);
  31407. this.ja && !this.ja.parentNode && (this.getParent() ? C.Pd.UQ(this) : this.ja.ox(C.container));
  31408. this.ja && (this.ja.style.visibility = "visible")
  31409. },
  31410. pause: function() {
  31411. this.Em().hs(this);
  31412. this.UB().hs(this);
  31413. C.Ka.hs(this);
  31414. this.ja && (this.ja.style.visibility = "hidden")
  31415. },
  31416. ze: function() {
  31417. this.yk();
  31418. this.FJ();
  31419. this.Jk(this.l, C.A.Gj.ze);
  31420. this.ja && this.ja.remove()
  31421. },
  31422. vGa: function() {
  31423. this.ja.remove()
  31424. },
  31425. K: function(c) {
  31426. this.Eb = c;
  31427. this.ja.style.opacity = c / 255
  31428. },
  31429. m2: function() {
  31430. if (this.jfa) {
  31431. var c = this.l;
  31432. this.l = [];
  31433. C.u.prototype.J.call(this, this.HB);
  31434. this.l = c
  31435. } else C.u.prototype.J.call(this, this.HB)
  31436. }
  31437. };
  31438. C.Pd.Gua = function() {
  31439. var c = C.ic("#EGLViewDiv");
  31440. if (c) {
  31441. var d = C.view,
  31442. f = d.LH(),
  31443. g = d.jh,
  31444. h = d.$da(),
  31445. k = d.Pq,
  31446. n = f.width,
  31447. p = f.height;
  31448. 0 === f.width && 0 === f.height && (n = h.width, p = h.height);
  31449. f = g.width / k;
  31450. 0 === g.width && 0 === g.height && (f = h.width);
  31451. c.style.position = "absolute";
  31452. c.style.width = n + "px";
  31453. c.style.maxHeight = p + "px";
  31454. c.style.margin = 0;
  31455. c.$p(d.ia / k, d.pa / k);
  31456. c.style.left = (f - n) / 2 + "px";
  31457. c.style.bottom = "0px"
  31458. }
  31459. };
  31460. C.Pd.UQ = function(c) {
  31461. var d = c.getParent();
  31462. if (d && c.ja) if (d.ja || (C.Pd.placeHolder(d), d.cq = C.Pd.C1.cq), c.ja.ox(d.ja), d.S(d.dk()), d.getParent()) C.Pd.UQ(d);
  31463. else if (d.$c) if (c = C.ic("#EGLViewDiv")) d.ja.ox(c);
  31464. else {
  31465. c = C.pD("div");
  31466. c.id = "EGLViewDiv";
  31467. var f = C.view,
  31468. g = f.LH(),
  31469. h = f.jh,
  31470. k = f.$da(),
  31471. n = f.Pq,
  31472. p = g.width,
  31473. r = g.height;
  31474. 0 === g.width && 0 === g.height && (p = k.width, r = k.height);
  31475. g = h.width / n;
  31476. 0 === h.width && 0 === h.height && (g = k.width);
  31477. c.style.position = "absolute";
  31478. c.style.width = p + "px";
  31479. c.style.maxHeight = r + "px";
  31480. c.style.margin = 0;
  31481. c.$p(f.ia / n, f.pa / n);
  31482. c.style.left = (g - p) / 2 + "px";
  31483. c.style.bottom = "0px";
  31484. d.ja.ox(c);
  31485. c.ox(C.container)
  31486. }
  31487. };
  31488. C.Pd.setTransform = function(c) {
  31489. if (c.HB) if (c.HB.translate(c.Ep().x, c.Ep().y), c.jfa) {
  31490. var d = c.l;
  31491. c.l = [];
  31492. C.u.prototype.J.call(c, c.HB);
  31493. c.l = d
  31494. } else C.u.prototype.J.call(c, c.HB);
  31495. c.ja && (c.ja.position.x = c.Rc(), c.ja.position.y = -c.Vd(), c.ja.rotation = c.Mx(), c.ja.scale = {
  31496. x: c.ia,
  31497. y: c.pa
  31498. },
  31499. c.ja.wy = {
  31500. x: c.ig,
  31501. y: c.jg
  31502. },
  31503. c.S && c.S(c.dk()), c.ja.Ay())
  31504. };
  31505. C.Pd.Mza = function(c) {
  31506. c.ja = C.pD("div");
  31507. c.canvas = C.pD("canvas");
  31508. var d = c.i();
  31509. c.canvas.width = d.width;
  31510. c.canvas.height = d.height;
  31511. c.ja.style.position = "absolute";
  31512. c.ja.style.bottom = 0;
  31513. c.HB = c.canvas.getContext("2d");
  31514. c.ja.appendChild(c.canvas);
  31515. c.getParent() && C.Pd.UQ(c);
  31516. c.jfa = q
  31517. };
  31518. C.Pd.placeHolder = function(c) {
  31519. c.ja = C.pD("div");
  31520. c.placeholder = q;
  31521. c.ja.style.position = "absolute";
  31522. c.ja.style.bottom = 0;
  31523. c.ja.style.width = (c.i().width || C.Q.aa.width) + "px";
  31524. c.ja.style.maxHeight = (c.i().height || C.Q.aa.height) + "px";
  31525. c.ja.style.margin = 0;
  31526. C.Pd.setTransform(c);
  31527. c.ja.Ay();
  31528. C.Pd.a9(c)
  31529. };
  31530. C.Pd.B_ = function(c) {
  31531. if (1 < arguments.length) C.Pd.B_(arguments);
  31532. else if (1 == arguments.length && !arguments[0].length) C.Pd.B_([arguments[0]]);
  31533. else for (var d = arguments[0], f = 0; f < d.length; f++) d[f] instanceof C.u ? d[f].ja || C.Pd.Mza(d[f]) : C.log("DOM converter only supports sprite and menuitems yet"),
  31534. C.Pd.a9(d[f]),
  31535. d[f].J = u(),
  31536. d[f].transform = u(),
  31537. C.Pd.setTransform(d[f]),
  31538. d[f].va(d[f].Ja)
  31539. };
  31540. C.Ima = 0;
  31541. C.aMa = 1;
  31542. C.dMa = 2;
  31543. C.cMa = 3;
  31544. C.bMa = 4;
  31545. C.Rla = 0;
  31546. C.FLa = 1;
  31547. C.GLa = 2;
  31548. C.HLa = 3;
  31549. C.JLa = 4;
  31550. C.ELa = 5;
  31551. C.ILa = 6;
  31552. C.Pla = 0;
  31553. C.Qla = 1;
  31554. C.DLa = 2;
  31555. C.CLa = 3;
  31556. C.BLa = 4;
  31557. C.MLa = C.O.extend({
  31558. SRa: u(),
  31559. TRa: u(),
  31560. VRa: u(),
  31561. URa: u()
  31562. });
  31563. C.jE = C.Ym.extend({
  31564. lW: s,
  31565. Oq: s,
  31566. Qra: C.Rla,
  31567. Pra: C.Qla,
  31568. vta: C.Ima,
  31569. CPa: "",
  31570. xn: "",
  31571. TG: s,
  31572. MA: s,
  31573. zaa: 50,
  31574. Lqa: 18,
  31575. Qd: s,
  31576. Qz: 14,
  31577. jM: "Arial",
  31578. BN: "",
  31579. pG: 14,
  31580. FPa: t,
  31581. qa: "EditBox",
  31582. ctor: function(c) {
  31583. function d() {
  31584. h.blur()
  31585. }
  31586. C.Ym.prototype.ctor.call(this);
  31587. this.TG = C.color.WHITE;
  31588. this.MA = C.color.GRAY;
  31589. this.Ca(c);
  31590. var f = this.lW = new C.u;
  31591. f.ka = u();
  31592. this.q(f);
  31593. var g = this,
  31594. h = this.Qd = C.bd("input");
  31595. h.type = "text";
  31596. h.style.fontSize = this.Qz + "px";
  31597. h.style.color = "#000000";
  31598. h.style.border = 0;
  31599. h.style.background = "transparent";
  31600. h.style.width = "100%";
  31601. h.style.height = "100%";
  31602. h.style.active = 0;
  31603. h.style.outline = "medium";
  31604. C.qb(h, "input", u());
  31605. C.qb(h, "keypress",
  31606. function(c) {
  31607. c.keyCode === C.Uy.c0 && (c.stopPropagation(), c.preventDefault(), C.Pb.focus())
  31608. });
  31609. C.qb(h, "focus",
  31610. function() {
  31611. this.value == g.xn && (this.value = "", this.style.fontSize = g.Qz + "px", this.style.color = C.Ap(g.TG));
  31612. C.qb(C.Pb, "click", d)
  31613. });
  31614. C.qb(h, "blur",
  31615. function() {
  31616. "" == this.value && (this.value = g.xn, this.style.fontSize = g.pG + "px", this.style.color = C.Ap(g.MA));
  31617. C.Pb.removeEventListener("click", d)
  31618. });
  31619. C.Pd.B_(f);
  31620. f.ja.appendChild(h);
  31621. f.ja.Q5a = t;
  31622. f.ja.style.width = c.width - 6 + "px";
  31623. f.ja.style.height = c.height - 6 + "px";
  31624. f.canvas.remove()
  31625. },
  31626. b4a: function(c, d) {
  31627. this.Qz = d;
  31628. this.jM = c;
  31629. this.XN()
  31630. },
  31631. rr: function(c) {
  31632. if (c = C.fa.xM.exec(c)) this.Qz = parseInt(c[1]),
  31633. this.jM = c[2],
  31634. this.XN()
  31635. },
  31636. Zd: function(c) {
  31637. this.jM = c;
  31638. this.XN()
  31639. },
  31640. Od: function(c) {
  31641. this.Qz = c;
  31642. this.XN()
  31643. },
  31644. XN: function() {
  31645. this.Qd.value != this.xn && (this.Qd.style.fontFamily = this.jM, this.Qd.style.fontSize = this.Qz + "px")
  31646. },
  31647. PR: function(c) {
  31648. C.log("Please use the setString");
  31649. c != s && ("" == c ? (this.Qd.value = this.xn, this.Qd.style.color = C.Ap(this.MA)) : (this.Qd.value = c, this.Qd.style.color = C.Ap(this.TG)))
  31650. },
  31651. sa: function(c) {
  31652. c != s && ("" == c ? (this.Qd.value = this.xn, this.Qd.style.color = C.Ap(this.MA)) : (this.Qd.value = c, this.Qd.style.color = C.Ap(this.TG)))
  31653. },
  31654. uHa: function(c) {
  31655. this.TG = c;
  31656. this.Qd.value != this.xn && (this.Qd.style.color = C.Ap(c))
  31657. },
  31658. qs: function(c) { ! isNaN(c) && 0 < c && (this.zaa = c, this.Qd.maxLength = c)
  31659. },
  31660. Kx: A("zaa"),
  31661. Di: function(c) {
  31662. if (c != s) {
  31663. var d = this.xn;
  31664. this.xn = c;
  31665. this.Qd.value == d && (this.Qd.value = c, this.Qd.style.color = C.Ap(this.MA), this.AG())
  31666. }
  31667. },
  31668. Q4a: function(c, d) {
  31669. this.BN = c;
  31670. this.pG = d;
  31671. this.AG()
  31672. },
  31673. dva: function(c) {
  31674. if (c = C.fa.xM.exec(c)) this.BN = c[2],
  31675. this.pG = parseInt(c[1]),
  31676. this.AG()
  31677. },
  31678. UHa: function(c) {
  31679. this.BN = c;
  31680. this.AG()
  31681. },
  31682. VHa: function(c) {
  31683. this.pG = c;
  31684. this.AG()
  31685. },
  31686. AG: function() {
  31687. this.Qd.value == this.xn && (this.Qd.style.fontFamily = this.BN, this.Qd.style.fontSize = this.pG + "px")
  31688. },
  31689. THa: function(c) {
  31690. this.MA = c;
  31691. this.Qd.value == this.xn && (this.Qd.style.color = C.Ap(c))
  31692. },
  31693. zHa: function(c) {
  31694. this.Pra = c;
  31695. this.Qd.type = c == C.Pla ? "password": "text"
  31696. },
  31697. QWa: function() {
  31698. C.log("Please use the getString");
  31699. return this.Qd.value
  31700. },
  31701. Wb: function() {
  31702. return this.Qd.value
  31703. },
  31704. XCa: function(c, d) {
  31705. return this.Wea(d) ? (this.lW.x = 3, this.lW.y = 3, this.Bia(t), this.De(c), this.y = this.x = 0, this.b9(this, this.nJa, C.f5), q) : t
  31706. },
  31707. bq: x("Oq"),
  31708. cC: A("xn"),
  31709. AHa: x("Qra"),
  31710. fIa: x("vta"),
  31711. p1: function(c) {
  31712. var d = C.jE.Vh(this);
  31713. d.y -= 4;
  31714. d.bYa(c.end) ? this.Lqa = c.end.rVa() - d.sVa() : C.log("needn't to adjust view layout.")
  31715. },
  31716. mfa: u(),
  31717. nfa: u(),
  31718. lfa: u(),
  31719. nJa: u(),
  31720. PXa: function(c, d) {
  31721. this.Ora = c.width;
  31722. this.ja.style.width = this.Ora.toString() + "px";
  31723. this.Nra = c.height;
  31724. this.ja.style.height = this.Nra.toString() + "px";
  31725. this.ja.style.backgroundColor = C.Ap(d)
  31726. }
  31727. });
  31728. H = C.jE.prototype;
  31729. C.e(H, "font", s, H.rr);
  31730. C.e(H, "fontName", s, H.Zd);
  31731. C.e(H, "fontSize", s, H.Od);
  31732. C.e(H, "fontColor", s, H.uHa);
  31733. C.e(H, "string", H.Wb, H.sa);
  31734. C.e(H, "maxLength", H.Kx, H.qs);
  31735. C.e(H, "placeHolder", H.cC, H.Di);
  31736. C.e(H, "placeHolderFont", s, H.dva);
  31737. C.e(H, "placeHolderFontName", s, H.UHa);
  31738. C.e(H, "placeHolderFontSize", s, H.VHa);
  31739. C.e(H, "placeHolderFontColor", s, H.THa);
  31740. C.e(H, "inputFlag", s, H.zHa);
  31741. C.e(H, "delegate", s, H.bq);
  31742. C.e(H, "inputMode", s, H.AHa);
  31743. C.e(H, "returnType", s, H.fIa);
  31744. H = s;
  31745. C.jE.Vh = function(c) {
  31746. var d = c.i(),
  31747. d = C.rect(0, 0, d.width, d.height);
  31748. return C.Gi(d, c.ql())
  31749. };
  31750. C.jE.create = function(c, d, f, g) {
  31751. var h = new C.jE(c);
  31752. h.XCa(c, d) && (f && h.sR(f, C.jv), g && h.sR(g, C.iv));
  31753. return h
  31754. };
  31755. C.Il = C.ha.extend({
  31756. fh: s,
  31757. ON: t,
  31758. lta: function(c, d) {
  31759. this.ON = q;
  31760. this.fh.push(c);
  31761. c.Ow(d)
  31762. },
  31763. ctor: function() {
  31764. C.ha.prototype.ctor.call(this);
  31765. this.fh = []
  31766. },
  31767. Yc: function(c, d, f) {
  31768. C.assert(c != s, "child must be non-nil");
  31769. C.assert(!c.parent, "child already added. It can't be added again");
  31770. d = d || c.Wa;
  31771. f && c.Qm(f);
  31772. this.lta(c, d);
  31773. c.cq(this);
  31774. c.Vha(C.kR);
  31775. this.$c && (c.Z(), this.TM && c.qj());
  31776. this.Zf && this.Rz();
  31777. this.Ag && this.Sz()
  31778. },
  31779. BBa: function(c) {
  31780. C.assert(c != C.yK, "Invalid tag");
  31781. for (var d = this.fh,
  31782. f = 0,
  31783. g = d.length; f < g; f++) if (d.Fm() == c) return d[f];
  31784. return s
  31785. },
  31786. Ai: function(c, d) {
  31787. d == s && (d = q);
  31788. var f = this.fh;
  31789. if (0 !== f.length) {
  31790. var g = f.indexOf(c); - 1 < g && (this.$c && (c.ph(), c.Na()), d && c.ze(), c.cq(s), f.splice(g, 1))
  31791. }
  31792. },
  31793. m2a: function(c, d) {
  31794. C.assert(c != C.yK, "Invalid tag");
  31795. d == s && (d = q);
  31796. var f = this.BBa(c);
  31797. f == s ? C.log("cocos2d: removeChildByTag(tag \x3d %d): child not found!", c) : this.Ai(f, d)
  31798. },
  31799. W1a: function() {
  31800. this.oGa(q)
  31801. },
  31802. oGa: function(c) {
  31803. c == s && (c = q);
  31804. for (var d = this.fh,
  31805. f = 0,
  31806. g = d.length; f < g; f++) {
  31807. var h = d[f];
  31808. this.$c && (h.ph(), h.Na());
  31809. c && h.ze();
  31810. h.cq(s)
  31811. }
  31812. d.length = 0
  31813. },
  31814. x2a: function(c, d) {
  31815. C.assert(c != s, "Child must be non-nil");
  31816. this.ON = q;
  31817. c.Vha(C.kR++);
  31818. c.Ow(d)
  31819. },
  31820. YR: function() {
  31821. if (this.ON) {
  31822. var c = this.fh,
  31823. d = c.length,
  31824. f, g, h;
  31825. for (f = 1; f < d; f++) {
  31826. h = c[f];
  31827. for (g = f - 1; 0 <= g;) {
  31828. if (h.Wa < c[g].Wa) c[g + 1] = c[g];
  31829. else if (h.Wa === c[g].Wa && h.arrivalOrder < c[g].arrivalOrder) c[g + 1] = c[g];
  31830. else break;
  31831. g--
  31832. }
  31833. c[g + 1] = h
  31834. }
  31835. this.ON = t
  31836. }
  31837. },
  31838. J: s,
  31839. Hr: function(c) {
  31840. if (this.Ja) {
  31841. c = c || C.t;
  31842. var d, f, g = this.l,
  31843. h, k = this.fh,
  31844. n = this.l.length,
  31845. p = k.length;
  31846. c.save();
  31847. this.transform(c);
  31848. this.ed();
  31849. this.YR();
  31850. for (d = 0; d < n; d++) if (h = g[d], 0 > h.Wa) h.J(c);
  31851. else break;
  31852. for (f = 0; f < p; f++) if (h = k[f], 0 > h.Wa) h.J(c);
  31853. else break;
  31854. for (this.ka(c); d < n; d++) g[d] && g[d].J(c);
  31855. for (; f < p; f++) k[d] && k[d].J(c);
  31856. this.Lk = t;
  31857. this.arrivalOrder = 0;
  31858. c.restore()
  31859. }
  31860. },
  31861. fx: function() {
  31862. if (this.Ja) {
  31863. var c = C.t,
  31864. d, f = C.Jd,
  31865. g;
  31866. f.stack.push(f.top);
  31867. C.Pp(this.KG, f.top);
  31868. f.top = this.KG;
  31869. var h = this.grid;
  31870. h && h.Wg && h.px();
  31871. this.transform();
  31872. var k = this.l,
  31873. n = this.fh,
  31874. p = k.length,
  31875. r = n.length;
  31876. this.ed();
  31877. this.YR();
  31878. for (d = 0; d < p; d++) if (k[d] && 0 > k[d].Wa) k[d].J();
  31879. else break;
  31880. for (g = 0; g < r; g++) if (n[g] && 0 > n[g].Wa) n[g].J();
  31881. else break;
  31882. for (this.ka(c); d < p; d++) k[d] && k[d].J();
  31883. for (; g < r; g++) n[g] && n[g].J();
  31884. this.arrivalOrder = 0;
  31885. h && h.Wg && h.mx(this);
  31886. f.top = f.stack.pop()
  31887. }
  31888. },
  31889. ze: function() {
  31890. C.A.prototype.ze.call(this);
  31891. for (var c = this.fh,
  31892. d = 0,
  31893. f = c.length; d < f; d++) c[d].ze()
  31894. },
  31895. Z: function() {
  31896. C.A.prototype.Z.call(this);
  31897. for (var c = this.fh,
  31898. d = 0,
  31899. f = c.length; d < f; d++) c[d].Z()
  31900. },
  31901. qj: function() {
  31902. C.A.prototype.qj.call(this);
  31903. for (var c = this.fh,
  31904. d = 0,
  31905. f = c.length; d < f; d++) c[d].qj()
  31906. },
  31907. Na: function() {
  31908. C.A.prototype.Na.call(this);
  31909. for (var c = this.fh,
  31910. d = 0,
  31911. f = c.length; d < f; d++) c[d].Na()
  31912. },
  31913. ph: function() {
  31914. C.A.prototype.ph.call(this);
  31915. for (var c = this.fh,
  31916. d = 0,
  31917. f = c.length; d < f; d++) c[d].ph()
  31918. },
  31919. dc: function(c) {
  31920. this.hb = this.Ig * c / 255;
  31921. this.Gd();
  31922. if (this.Ag) {
  31923. var d, f = this.l,
  31924. g = this.hb;
  31925. c = 0;
  31926. for (d = f.length; c < d; c++) f[c].dc && f[c].dc(g);
  31927. f = this.fh;
  31928. c = 0;
  31929. for (d = f.length; c < d; c++) f[c].dc && f[c].dc(g)
  31930. }
  31931. },
  31932. Tb: function(c) {
  31933. var d = this.wb,
  31934. f = this.od;
  31935. d.r = f.r * c.r / 255;
  31936. d.g = f.g * c.g / 255;
  31937. d.b = f.b * c.b / 255;
  31938. this.Gd();
  31939. if (this.Zf) {
  31940. var g = this.l;
  31941. c = 0;
  31942. for (f = g.length; c < f; c++) g[c].Tb && g[c].Tb(d);
  31943. g = this.fh;
  31944. c = 0;
  31945. for (f = g.length; c < f; c++) g[c].Tb && g[c].Tb(d)
  31946. }
  31947. },
  31948. yRa: function() {
  31949. var c = C.color.WHITE,
  31950. d, f, g = this.l;
  31951. d = 0;
  31952. for (f = g.length; d < f; d++) g[d].Tb(c);
  31953. g = this.fh;
  31954. d = 0;
  31955. for (f = g.length; d < f; d++) g[d].Tb(c)
  31956. }
  31957. });
  31958. C.Il.prototype.J = C.L === C.cb ? C.Il.prototype.Hr: C.Il.prototype.fx;
  31959. C.Il.create = function() {
  31960. return new C.Il
  31961. };
  31962. var uc = uc || C.O;
  31963. uc.extend = uc.extend || C.O.extend;
  31964. var vc = vc || C.Il;
  31965. vc.extend = vc.extend || C.Il.extend;
  31966. var J = vc.extend({
  31967. Wc: q,
  31968. Pv: q,
  31969. uO: t,
  31970. Qv: s,
  31971. CO: t,
  31972. rm: s,
  31973. oB: s,
  31974. Dr: s,
  31975. Ln: s,
  31976. Mn: s,
  31977. kd: "default",
  31978. Jr: s,
  31979. xq: 0,
  31980. ca: C.size(0, 0),
  31981. mc: s,
  31982. wA: s,
  31983. Ct: 0,
  31984. Rq: t,
  31985. Rj: q,
  31986. Cb: t,
  31987. bV: t,
  31988. $A: s,
  31989. hg: s,
  31990. qh: s,
  31991. Ed: s,
  31992. qPa: t,
  31993. cw: t,
  31994. Ht: s,
  31995. ui: s,
  31996. ya: s,
  31997. qa: "Widget",
  31998. Bb: t,
  31999. Db: t,
  32000. Eb: 255,
  32001. SF: t,
  32002. Kn: s,
  32003. ctor: function() {
  32004. C.Il.prototype.ctor.call(this);
  32005. this.Qv = J.rS;
  32006. this.rm = C.d(0, 0);
  32007. this.oB = C.d(0, 0);
  32008. this.Dr = C.d(0, 0);
  32009. this.Jr = J.HE;
  32010. this.ca = C.size(0, 0);
  32011. this.mc = C.size(0, 0);
  32012. this.wA = {};
  32013. this.$A = J.E7;
  32014. this.hg = C.d(0, 0);
  32015. this.qh = J.g7;
  32016. this.Ed = C.d(0, 0);
  32017. this.Ht = [];
  32018. this.ya = C.color(255, 255, 255, 255);
  32019. this.Ct = wc.NONE;
  32020. this.j()
  32021. },
  32022. j: function() {
  32023. return C.Il.prototype.j.call(this) ? (this.wA = {},
  32024. this.ol(), this.wR(q), this.CI = this.BEa.bind(this), this.PQ = s, this.S(C.d(0.5, 0.5)), this.We(q), this.Pu(q), this.Qu(q), q) : t
  32025. },
  32026. Z: function() {
  32027. this.pja();
  32028. C.Il.prototype.Z.call(this)
  32029. },
  32030. Na: function() {
  32031. this.hD();
  32032. C.Il.prototype.Na.call(this)
  32033. },
  32034. J: function(c) {
  32035. this.Ja && (this.Qn(), C.Il.prototype.J.call(this, c))
  32036. },
  32037. pg: function() {
  32038. var c = this.getParent();
  32039. return c instanceof J ? c: s
  32040. },
  32041. Mf: function(c) {
  32042. var d = this.ca;
  32043. this.Cb ? (d.width = c.width, d.height = c.height) : (d.width = this.mc.width, d.height = this.mc.height);
  32044. this.gc()
  32045. },
  32046. faa: function() {
  32047. var c = this.K$(this);
  32048. return c == s ? q: c && !c.isEnabled() ? t: c.faa()
  32049. },
  32050. K$: function(c) {
  32051. if (s == c) return s;
  32052. c = c.getParent();
  32053. return s == c ? s: c instanceof J ? c: this.K$(c.getParent())
  32054. },
  32055. gaa: function(c) {
  32056. return s == c ? q: (c = c.getParent()) && !c.Ja ? t: this.gaa(c)
  32057. },
  32058. fOa: function() {
  32059. this.Tra.removeEventListener(this.ui);
  32060. this.jn == this && (this.jn = s)
  32061. },
  32062. Ib: x("Wc"),
  32063. ol: u(),
  32064. SO: function(c, d, f) {
  32065. c instanceof J ? C.log("Please use addChild to add a Widget.") : (C.A.prototype.q.call(this, c, d, f), this.Ht.push(c))
  32066. },
  32067. GP: function(c) {
  32068. for (var d = this.Ht,
  32069. f = 0; f < d.length; f++) {
  32070. var g = d[f];
  32071. if (g && g.Fm() == c) return g
  32072. }
  32073. return s
  32074. },
  32075. fea: A("Ht"),
  32076. removeNode: function(c) {
  32077. C.A.prototype.removeChild.call(this, c);
  32078. C.Id(this.Ht, c)
  32079. },
  32080. Uga: function(c) {
  32081. var d = this.GP(c);
  32082. d ? this.removeNode(d) : C.log("cocos2d: removeNodeByTag(tag \x3d %d): child not found!", c)
  32083. },
  32084. Qga: function() {
  32085. for (var c = 0; c < this.Ht.length; c++) C.A.prototype.removeChild.call(this, this.Ht[c]);
  32086. this.Ht.length = 0
  32087. },
  32088. yf: function(c) {
  32089. var d = this.mc.width = c.width;
  32090. c = this.mc.height = c.height;
  32091. this.Cb && (d = this.width, c = this.height);
  32092. this.ca.width = d;
  32093. this.ca.height = c;
  32094. this.$c && ((c = this.pg()) ? (d = c.width, c = c.height) : (d = this.Vb.width, c = this.Vb.height), this.hg.x = 0 < d ? this.mc.width / d: 0, this.hg.y = 0 < c ? this.mc.height / c: 0);
  32095. this.gc()
  32096. },
  32097. Qh: function(c) {
  32098. c = this.mc.width = c;
  32099. this.Cb && (c = this.width);
  32100. this.ca.width = c;
  32101. this.$c && (c = (c = this.pg()) ? c.width: this.Vb.width, this.hg.x = 0 < c ? this.mc.width / c: 0);
  32102. this.gc()
  32103. },
  32104. Ph: function(c) {
  32105. c = this.mc.height = c;
  32106. this.Cb && (c = this.height);
  32107. this.ca.height = c;
  32108. this.$c && (c = (c = this.pg()) ? c.height: this.Vb.height, this.hg.y = 0 < c ? this.mc.height / c: 0);
  32109. this.gc()
  32110. },
  32111. pia: function(c) {
  32112. this.hg.x = c.x;
  32113. this.hg.y = c.y;
  32114. var d = this.mc.width,
  32115. f = this.mc.height;
  32116. this.$c && ((f = this.pg()) ? (d = f.width * c.x, f = f.height * c.y) : (d = this.Vb.width * c.x, f = this.Vb.height * c.y));
  32117. this.Cb || (this.ca.width = d, this.ca.height = f);
  32118. this.mc.width = d;
  32119. this.mc.height = f;
  32120. this.gc()
  32121. },
  32122. Ava: function(c) {
  32123. this.hg.x = c;
  32124. var d = this.mc.width;
  32125. this.$c && (d = this.pg(), d = (d ? d.width: this.Vb.width) * c);
  32126. this.Cb || (this.ca.width = d);
  32127. this.mc.width = d;
  32128. this.gc()
  32129. },
  32130. Yua: function(c) {
  32131. this.hg.y = c;
  32132. var d = this.mc.height;
  32133. this.$c && (d = this.pg(), d = (d ? d.height: this.Vb.height) * c);
  32134. this.Cb || (this.ca.height = d);
  32135. this.mc.height = d;
  32136. this.gc()
  32137. },
  32138. pja: function(c) {
  32139. c || (c = (c = this.pg()) ? c.TAa() : this.Vb.i());
  32140. var d;
  32141. switch (this.$A) {
  32142. case J.E7:
  32143. d = this.Cb ? this.i() : this.mc;
  32144. this.ca.width = d.width;
  32145. this.ca.height = d.height;
  32146. var f = d = 0;
  32147. 0 < c.width && (d = this.mc.width / c.width);
  32148. 0 < c.height && (f = this.mc.height / c.height);
  32149. this.hg.x = d;
  32150. this.hg.y = f;
  32151. break;
  32152. case J.voa:
  32153. f = C.size(c.width * this.hg.x, c.height * this.hg.y),
  32154. d = this.Cb ? this.Xn() : f,
  32155. this.ca.width = d.width,
  32156. this.ca.height = d.height,
  32157. this.mc.width = f.width,
  32158. this.mc.height = f.height
  32159. }
  32160. this.gc();
  32161. d = this.Ld();
  32162. switch (this.qh) {
  32163. case J.g7:
  32164. 0 >= c.width || 0 >= c.height ? (this.Ed.x = 0, this.Ed.y = 0) : (this.Ed.x = d.x / c.width, this.Ed.y = d.y / c.height);
  32165. break;
  32166. case J.h7:
  32167. d = C.d(c.width * this.Ed.x, c.height * this.Ed.y)
  32168. }
  32169. this.p(d)
  32170. },
  32171. l3: x("$A"),
  32172. OBa: A("$A"),
  32173. We: function(c) {
  32174. this.Cb != c && (c = (this.Cb = c) ? this.i() : this.mc, this.ca.width = c.width, this.ca.height = c.height, this.gc())
  32175. },
  32176. rYa: A("Cb"),
  32177. UH: function() {
  32178. return C.size(this.ca)
  32179. },
  32180. XTa: function() {
  32181. return C.size(this.mc)
  32182. },
  32183. TAa: function() {
  32184. return C.size(this.ca)
  32185. },
  32186. CWa: function() {
  32187. return C.d(this.hg)
  32188. },
  32189. Rsa: function() {
  32190. return this.hg.x
  32191. },
  32192. rsa: function() {
  32193. return this.hg.y
  32194. },
  32195. wXa: function() {
  32196. return this.vm(C.d(this.Ab.x * this.o.width, this.Ab.y * this.o.height))
  32197. },
  32198. Sr: function() {
  32199. return this
  32200. },
  32201. Xn: function() {
  32202. return C.size(this.o)
  32203. },
  32204. gc: function() {
  32205. this.Ca(this.ca);
  32206. for (var c = this.le(), d = 0, f = c.length; d < f; d++) {
  32207. var g = c[d];
  32208. g instanceof J && g.pja()
  32209. }
  32210. },
  32211. i: A("ca"),
  32212. ef: function() {
  32213. return this.ca.width
  32214. },
  32215. Dg: function() {
  32216. return this.ca.height
  32217. },
  32218. vh: function(c) {
  32219. this.uO !== c && ((this.uO = c) ? (this.ui = C.Oa.create({
  32220. event: C.Oa.Gs,
  32221. yy: q,
  32222. nc: this.nc.bind(this),
  32223. yd: this.yd.bind(this),
  32224. cd: this.cd.bind(this)
  32225. }), C.Ka.addListener(this.ui, this)) : C.Ka.removeListener(this.ui))
  32226. },
  32227. k1: A("uO"),
  32228. mQ: A("SF"),
  32229. vj: function(c) {
  32230. c != this.SF && (this.SF = c, this.Pv ? this.SF ? this.G2(J.qS) : this.G2(J.wD) : this.GC())
  32231. },
  32232. TR: function(c) {
  32233. this.CO != c && ((this.CO = c) ? this.Lu() : this.hD())
  32234. },
  32235. DDa: A("CO"),
  32236. sDa: A("Rq"),
  32237. yR: function(c) {
  32238. if (this.Rq = c) this.jn = this
  32239. },
  32240. qYa: A("Rj"),
  32241. a4a: x("Rq"),
  32242. Pf: function(c, d) {
  32243. if (s == this.PQ || s == this.PQ(c)) {
  32244. var f = d instanceof L;
  32245. if (this.Rq || f) {
  32246. var g = this.getParent();
  32247. return s == g ? f ? d.Pf(c, d) : d: g.Pf(c, d)
  32248. }
  32249. return d
  32250. }
  32251. f = this.PQ(c);
  32252. this.xx(this, f);
  32253. return f
  32254. },
  32255. z2a: function() {
  32256. this != this.jn && this.xx(this.jn, this)
  32257. },
  32258. RTa: A("jn"),
  32259. YRa: u(),
  32260. CI: s,
  32261. PQ: s,
  32262. Wr: function(c, d, f) {
  32263. var g = this.pg();
  32264. g && g.Wr(c, d, f)
  32265. },
  32266. BEa: function(c, d) {
  32267. c && c.yR(t);
  32268. d && d.yR(q)
  32269. },
  32270. xx: function(c, d) {
  32271. c && !c.Rq && (c = this.jn);
  32272. d != c && (d && d.CI && d.CI(c, d), c && d.CI && c.CI(c, d), C.Ka.dispatchEvent(new C.fma(c, d)))
  32273. },
  32274. wR: function(c) { (this.Pv = c) ? (this.Qv = J.rS, this.G2(J.wD)) : this.GC()
  32275. },
  32276. G2: function(c) {
  32277. if (this.Qv != c) switch (this.Qv = c = c || J.wD, this.Qv) {
  32278. case J.wD:
  32279. this.KI();
  32280. break;
  32281. case J.qS:
  32282. this.LI()
  32283. }
  32284. },
  32285. KI: u(),
  32286. LI: u(),
  32287. GC: u(),
  32288. Fya: u(),
  32289. nc: function(c) {
  32290. this.cw = t;
  32291. if (this.Ja && this.isEnabled() && this.faa() && this.gaa(this)) {
  32292. var d = c.mh();
  32293. this.rm.x = d.x;
  32294. this.rm.y = d.y;
  32295. this.hC(this.rm) && this.f1(this.rm) && (this.cw = q)
  32296. }
  32297. if (!this.cw) return t;
  32298. this.vj(q); (d = this.pg()) && d.Wr(J.lU, this, c);
  32299. this.YFa();
  32300. return q
  32301. },
  32302. yd: function(c) {
  32303. var d = c.mh();
  32304. this.oB.x = d.x;
  32305. this.oB.y = d.y;
  32306. this.vj(this.hC(d)); (d = this.pg()) && d.Wr(J.FE, this, c);
  32307. this.Rfa()
  32308. },
  32309. cd: function(c) {
  32310. var d = c.mh();
  32311. this.Dr.x = d.x;
  32312. this.Dr.y = d.y; (d = this.pg()) && d.Wr(J.Eo, this, c);
  32313. c = this.SF;
  32314. this.vj(t);
  32315. c ? this.o2() : this.Mca()
  32316. },
  32317. Xe: function() {
  32318. this.vj(t);
  32319. this.Mca()
  32320. },
  32321. E0a: u(),
  32322. YFa: function() {
  32323. this.Kn && this.Kn(this, J.lU);
  32324. this.Ln && this.Mn && this.Mn.call(this.Ln, this, J.UK)
  32325. },
  32326. Rfa: function() {
  32327. this.Kn && this.Kn(this, J.FE);
  32328. this.Ln && this.Mn && this.Mn.call(this.Ln, this, J.FE)
  32329. },
  32330. o2: function() {
  32331. this.Kn && this.Kn(this, J.Eo);
  32332. this.Ln && this.Mn && this.Mn.call(this.Ln, this, J.Eo)
  32333. },
  32334. Mca: function() {
  32335. this.Kn && this.Kn(this, J.mU);
  32336. this.Ln && this.Mn && this.Mn.call(this.Ln, this, J.mU)
  32337. },
  32338. a0a: u(),
  32339. uB: function(c, d) {
  32340. d === m ? this.Kn = c: (this.Mn = c, this.Ln = d)
  32341. },
  32342. hC: function(c) {
  32343. var d = C.rect(0, 0, this.o.width, this.o.height);
  32344. return C.Ju(d, this.wi(c))
  32345. },
  32346. f1: function(c) {
  32347. this.bV = t;
  32348. for (var d = this.getParent(), f = s; d;) {
  32349. if (d instanceof L && d.Kq) {
  32350. this.bV = q;
  32351. f = d;
  32352. break
  32353. }
  32354. d = d.getParent()
  32355. }
  32356. return ! this.bV ? q: f ? f.hC(c) ? f.f1(c) : t: q
  32357. },
  32358. VQa: function(c) {
  32359. C.log("clippingParentAreaContainPoint is deprecated. Please use isClippingParentContainsPoint instead.");
  32360. this.f1(c)
  32361. },
  32362. Exa: function(c, d, f) {
  32363. var g = this.pg();
  32364. g && g.Exa(c, d, f)
  32365. },
  32366. p: function(c, d) {
  32367. if (this.$c) {
  32368. var f = this.pg();
  32369. f && (f = f.UH(), 0 >= f.width || 0 >= f.height ? (this.Ed.x = 0, this.Ed.y = 0) : d ? (this.Ed.x = c / f.width, this.Ed.y = d / f.height) : (this.Ed.x = c.x / f.width, this.Ed.y = c.y / f.height))
  32370. }
  32371. C.A.prototype.p.call(this, c, d)
  32372. },
  32373. rs: function(c) {
  32374. if (this.$c) {
  32375. var d = this.pg();
  32376. d && (d = d.width, this.Ed.x = 0 >= d ? 0 : c / d)
  32377. }
  32378. C.A.prototype.rs.call(this, c)
  32379. },
  32380. Uu: function(c) {
  32381. if (this.$c) {
  32382. var d = this.pg();
  32383. d && (d = d.height, this.Ed.y = 0 >= d ? 0 : c / d)
  32384. }
  32385. C.A.prototype.Uu.call(this, c)
  32386. },
  32387. Z2: function(c) {
  32388. this.Ed = c;
  32389. if (this.$c && (c = this.pg())) c = c.UH(),
  32390. this.p(c.width * this.Ed.x, c.height * this.Ed.y)
  32391. },
  32392. Bva: function(c) {
  32393. this.Ed.x = c;
  32394. if (this.$c) {
  32395. var d = this.pg();
  32396. d && this.rs(d.width * c)
  32397. }
  32398. },
  32399. Cva: function(c) {
  32400. this.Ed.y = c;
  32401. if (this.$c) {
  32402. var d = this.pg();
  32403. d && this.Uu(d.height * c)
  32404. }
  32405. },
  32406. AJa: function() {
  32407. this.S(this.dk())
  32408. },
  32409. aWa: function() {
  32410. return C.d(this.Ed)
  32411. },
  32412. Ssa: function() {
  32413. return this.Ed.x
  32414. },
  32415. Tsa: function() {
  32416. return this.Ed.y
  32417. },
  32418. a3: x("qh"),
  32419. xBa: A("qh"),
  32420. Nd: function(c) {
  32421. this.Bb = c;
  32422. this.Ak()
  32423. },
  32424. oI: A("Bb"),
  32425. Uf: function(c) {
  32426. this.Db = c;
  32427. this.yl()
  32428. },
  32429. pI: A("Db"),
  32430. Ak: u(),
  32431. yl: u(),
  32432. Qn: u(),
  32433. nDa: A("Pv"),
  32434. isEnabled: A("Wc"),
  32435. yc: function() {
  32436. return this.Rc() - this.Ab.x * this.ca.width
  32437. },
  32438. wd: function() {
  32439. return this.Vd() - this.Ab.y * this.ca.height
  32440. },
  32441. Fc: function() {
  32442. return this.yc() + this.ca.width
  32443. },
  32444. Be: function() {
  32445. return this.wd() + this.ca.height
  32446. },
  32447. kXa: function() {
  32448. C.log("getTouchStartPos is deprecated. Please use getTouchBeganPosition instead.");
  32449. return this.J0()
  32450. },
  32451. J0: function() {
  32452. return C.d(this.rm)
  32453. },
  32454. iXa: function() {
  32455. C.log("getTouchMovePos is deprecated. Please use getTouchMovePosition instead.");
  32456. return this.eCa()
  32457. },
  32458. eCa: function() {
  32459. return C.d(this.oB)
  32460. },
  32461. gXa: function() {
  32462. C.log("getTouchEndPos is deprecated. Please use getTouchEndPosition instead.");
  32463. return this.dCa()
  32464. },
  32465. dCa: function() {
  32466. return C.d(this.Dr)
  32467. },
  32468. Ze: x("kd"),
  32469. getName: A("kd"),
  32470. sCa: A("Jr"),
  32471. ly: function(c) {
  32472. c && (this.wA[c.Cm()] = c, this.Ct = c.Cm())
  32473. },
  32474. ml: function(c) {
  32475. c = c || this.Ct;
  32476. return this.wA[c]
  32477. },
  32478. fk: B("Widget"),
  32479. s: function() {
  32480. var c = this.Uh();
  32481. c.vx(this);
  32482. c.ux(this);
  32483. return c
  32484. },
  32485. Uh: function() {
  32486. return J.create()
  32487. },
  32488. ux: function(c) {
  32489. c = c.le();
  32490. for (var d = 0; d < c.length; d++) {
  32491. var f = c[d];
  32492. f instanceof J && this.q(f.s())
  32493. }
  32494. },
  32495. xi: u(),
  32496. vx: function(c) {
  32497. this.Ib(c.isEnabled());
  32498. this.va(c.Ja);
  32499. this.wR(c.Pv);
  32500. this.vh(c.k1());
  32501. this.ul(c.Wa);
  32502. this.TR(c.CO);
  32503. this.Qm(c.Fm());
  32504. this.Ze(c.getName());
  32505. this.ey(c.xq);
  32506. this.Cb.width = c.Cb.width;
  32507. this.Cb.height = c.Cb.height;
  32508. this.ca.width = c.ca.width;
  32509. this.ca.height = c.ca.height;
  32510. this.mc.width = c.mc.width;
  32511. this.mc.height = c.mc.height;
  32512. this.xi(c);
  32513. this.$A = c.$A;
  32514. this.hg.x = c.hg.x;
  32515. this.hg.y = c.hg.y;
  32516. this.qh = c.qh;
  32517. this.Ed.x = c.Ed.x;
  32518. this.Ed.y = c.Ed.y;
  32519. this.p(c.Ld());
  32520. this.S(c.dk());
  32521. this.gb(c.ia);
  32522. this.pb(c.pa);
  32523. this.th(c.Mx());
  32524. this.i3(c.Xi);
  32525. this.j3(c.im);
  32526. this.Nd(c.oI());
  32527. this.Uf(c.pI());
  32528. this.G(c.Xa());
  32529. this.K(c.rb());
  32530. this.Kn = c.Kn;
  32531. this.Ln = c.Ln;
  32532. this.Mn = c.Mn;
  32533. this.Rq = c.Rq;
  32534. this.Rj = c.Rj;
  32535. for (var d in c.wA) {
  32536. var f = c.wA[d];
  32537. f && this.ly(f.s())
  32538. }
  32539. this.gc()
  32540. },
  32541. ey: x("xq"),
  32542. Ida: A("xq"),
  32543. Xa: function() {
  32544. return C.color(this.ya.r, this.ya.g, this.ya.b, this.ya.a)
  32545. },
  32546. K: function(c) {
  32547. c !== this.ya.a && (this.ya.a = c, this.jD(c))
  32548. },
  32549. rb: A("hb"),
  32550. jD: function(c) {
  32551. for (var d in this.l) {
  32552. var f = this.l[d];
  32553. f && f.sb && f.K(c)
  32554. }
  32555. },
  32556. Ei: function(c) {
  32557. c.sb && c.G(this.ya)
  32558. },
  32559. Al: function(c) {
  32560. c.sb && c.K(this.ya.a)
  32561. },
  32562. I6a: function(c) {
  32563. c.G(this.ya);
  32564. c.K(this.Eb)
  32565. }
  32566. }),
  32567. H = J.prototype;
  32568. C.e(H, "xPercent", H.Ssa, H.Bva);
  32569. C.e(H, "yPercent", H.Tsa, H.Cva);
  32570. C.e(H, "widthPercent", H.Rsa, H.Ava);
  32571. C.e(H, "heightPercent", H.rsa, H.Yua);
  32572. C.e(H, "widgetParent", H.pg);
  32573. C.e(H, "enabled", H.isEnabled, H.Ib);
  32574. C.e(H, "focused", H.sDa, H.yR);
  32575. C.e(H, "sizeType", H.OBa, H.l3);
  32576. C.e(H, "widgetType", H.sCa);
  32577. C.e(H, "touchEnabled", H.k1, H.vh);
  32578. C.e(H, "updateEnabled", H.DDa, H.TR);
  32579. C.e(H, "bright", H.nDa, H.wR);
  32580. C.e(H, "name", H.getName, H.Ze);
  32581. C.e(H, "actionTag", H.Ida, H.ey);
  32582. C.e(H, "opacity", H.rb, H.K);
  32583. H = s;
  32584. J.create = function() {
  32585. return new J
  32586. };
  32587. J.rS = -1;
  32588. J.wD = 0;
  32589. J.qS = 1;
  32590. J.HE = 0;
  32591. J.xpa = 1;
  32592. J.bn = 0;
  32593. J.Jl = 1;
  32594. J.Nl = 0;
  32595. J.Zm = 1;
  32596. J.Pa = 0;
  32597. J.ab = 1;
  32598. J.UK = 0;
  32599. J.FE = 1;
  32600. J.Eo = 2;
  32601. J.mU = 3;
  32602. J.E7 = 0;
  32603. J.voa = 1;
  32604. J.g7 = 0;
  32605. J.h7 = 1;
  32606. C.fma = C.oe.extend({
  32607. kwa: s,
  32608. lwa: s,
  32609. ctor: function(c, d) {
  32610. this.kwa = d;
  32611. this.lwa = c
  32612. }
  32613. });
  32614. var L = J.extend({
  32615. Kq: t,
  32616. Xs: s,
  32617. Cd: s,
  32618. qL: s,
  32619. ZE: s,
  32620. et: s,
  32621. $E: J.Pa,
  32622. ii: s,
  32623. ff: s,
  32624. ya: s,
  32625. Kg: s,
  32626. Ef: s,
  32627. Ji: s,
  32628. Eb: 255,
  32629. rL: s,
  32630. Dt: s,
  32631. $g: q,
  32632. JL: q,
  32633. Lq: s,
  32634. $f: s,
  32635. XW: t,
  32636. sPa: t,
  32637. So: s,
  32638. OV: s,
  32639. qa: "Layout",
  32640. Aq: s,
  32641. Ga: 0,
  32642. Ha: 0,
  32643. mOa: 0,
  32644. tOa: 0,
  32645. oOa: 0,
  32646. rOa: 0,
  32647. sOa: 0,
  32648. nOa: 0,
  32649. pOa: 0,
  32650. qOa: 0,
  32651. lOa: 0,
  32652. iOa: 0,
  32653. jOa: 0,
  32654. kOa: 0,
  32655. j9: 0,
  32656. cPa: 0,
  32657. mw: t,
  32658. Bw: t,
  32659. $q: t,
  32660. ctor: function() {
  32661. this.Dt = L.yja;
  32662. this.Jr = J.xpa;
  32663. this.Lq = L.SJ;
  32664. this.et = L.t4;
  32665. J.prototype.ctor.call(this);
  32666. this.ZE = C.rect(0, 0, 0, 0);
  32667. this.ya = C.color(255, 255, 255, 255);
  32668. this.Kg = C.color(255, 255, 255, 255);
  32669. this.Ef = C.color(255, 255, 255, 255);
  32670. this.Ji = C.d(0, -1);
  32671. this.rL = C.size(0, 0);
  32672. this.So = C.rect(0, 0, 0, 0);
  32673. this.Aq = C.color(255, 255, 255, 255)
  32674. },
  32675. Z: function() {
  32676. J.prototype.Z.call(this);
  32677. this.$f && this.$f.Z();
  32678. this.JL = this.$g = q
  32679. },
  32680. Na: function() {
  32681. J.prototype.Na.call(this);
  32682. this.$f && this.$f.Na()
  32683. },
  32684. w4a: x("mw"),
  32685. xYa: A("mw"),
  32686. O4a: x("Bw"),
  32687. CYa: A("Bw"),
  32688. Pf: function(c, d) {
  32689. if (this.$q || this.Rq) {
  32690. var f = this.getParent();
  32691. this.$q = t;
  32692. if (this.Bw) {
  32693. var g = this.Bw(c, d);
  32694. return g instanceof L && f ? (f.$q = q, f.Pf(c, this)) : g
  32695. }
  32696. if (s == f) return this;
  32697. f.$q = q;
  32698. return f.Pf(c, this)
  32699. }
  32700. if (d.Rq || d instanceof L) if (this.Dt == L.nq) switch (c) {
  32701. case J.bn:
  32702. return this.EM(c, d);
  32703. case J.Jl:
  32704. return this.DM(c, d);
  32705. case J.Zm:
  32706. case J.Nl:
  32707. return this.bp(this, c) ? this.jw(d, c) ? this.Pf(c, this) : d: this.Pf(c, this);
  32708. default:
  32709. return C.assert(0, "Invalid Focus Direction"),
  32710. d
  32711. } else if (this.Dt == L.oq) switch (c) {
  32712. case J.bn:
  32713. case J.Jl:
  32714. return this.bp(this, c) ? this.jw(d, c) ? this.Pf(c, this) : d: this.Pf(c, this);
  32715. case J.Zm:
  32716. return this.DM(c, d);
  32717. case J.Nl:
  32718. return this.EM(c, d);
  32719. default:
  32720. return C.assert(0, "Invalid Focus Direction"),
  32721. d
  32722. } else return C.assert(0, "Un Supported Layout type, please use VBox and HBox instead!!!"),
  32723. d;
  32724. else return d
  32725. },
  32726. FC: s,
  32727. j: function() {
  32728. return J.prototype.j.call(this) ? (this.We(t), this.yf(C.size(0, 0)), this.S(0, 0), this.FC = this.EF.bind(this), q) : t
  32729. },
  32730. Fqa: function(c) {
  32731. c = c || C.t;
  32732. for (var d = this.$f,
  32733. f = C.view.ia,
  32734. g = C.view.pa,
  32735. h = 0; h < d.$b.length; h++) {
  32736. var k = d.$b[h].wg,
  32737. n = k[0];
  32738. c.beginPath();
  32739. c.moveTo(n.x * f, -n.y * g);
  32740. for (var n = 1,
  32741. p = k.length; n < p; n++) c.lineTo(k[n].x * f, -k[n].y * g)
  32742. }
  32743. },
  32744. q: function(c, d, f) {
  32745. c instanceof J && this.Tia(c);
  32746. J.prototype.q.call(this, c, d, f);
  32747. this.$g = q
  32748. },
  32749. removeChild: function(c, d) {
  32750. J.prototype.removeChild.call(this, c, d);
  32751. this.$g = q
  32752. },
  32753. xf: function(c) {
  32754. J.prototype.xf.call(this, c);
  32755. this.$g = q
  32756. },
  32757. Ku: function(c) {
  32758. J.prototype.Ku(c);
  32759. this.$g = q
  32760. },
  32761. oDa: A("Kq"),
  32762. J: function(c) {
  32763. if (this.Ja) if (this.Qn(), this.Vl(), this.Kq) switch (this.Lq) {
  32764. case L.SJ:
  32765. this.E3(c);
  32766. break;
  32767. case L.H4:
  32768. this.z2(c)
  32769. } else J.prototype.J.call(this, c)
  32770. },
  32771. ed: function() {
  32772. J.prototype.ed.call(this);
  32773. this.Vl()
  32774. },
  32775. E3: s,
  32776. Lva: function(c) {
  32777. var d = c || C.t;
  32778. if (this.$f && this.$f.Ja) if (L.rn = -1, L.rn + 1 == C.xy) L.gx = q,
  32779. L.gx && (C.log("Nesting more than " + C.xy + "stencils is not supported. Everything will be drawn without stencil for this node and its childs."), L.gx = t),
  32780. C.A.prototype.J.call(this, c);
  32781. else {
  32782. L.rn++;
  32783. var f = 1 << L.rn,
  32784. g = f | f - 1;
  32785. c = d.isEnabled(d.STENCIL_TEST);
  32786. var h = d.getParameter(d.STENCIL_WRITEMASK),
  32787. k = d.getParameter(d.STENCIL_FUNC),
  32788. n = d.getParameter(d.STENCIL_REF),
  32789. p = d.getParameter(d.STENCIL_VALUE_MASK),
  32790. r = d.getParameter(d.STENCIL_FAIL),
  32791. v = d.getParameter(d.STENCIL_PASS_DEPTH_FAIL),
  32792. y = d.getParameter(d.STENCIL_PASS_DEPTH_PASS);
  32793. d.enable(d.STENCIL_TEST);
  32794. d.stencilMask(f);
  32795. var z = d.getParameter(d.DEPTH_WRITEMASK);
  32796. d.depthMask(t);
  32797. d.stencilFunc(d.NEVER, f, f);
  32798. d.stencilOp(d.ZERO, d.KEEP, d.KEEP);
  32799. C.Df.X_(C.d(0, 0), C.mga(), C.color(255, 255, 255, 255));
  32800. d.stencilFunc(d.NEVER, f, f);
  32801. d.stencilOp(d.REPLACE, d.KEEP, d.KEEP);
  32802. C.Zr();
  32803. this.transform();
  32804. this.$f.J();
  32805. d.depthMask(z);
  32806. d.stencilFunc(d.EQUAL, g, g);
  32807. d.stencilOp(d.KEEP, d.KEEP, d.KEEP);
  32808. g = f = 0;
  32809. this.ed();
  32810. this.YR();
  32811. for (var z = this.l,
  32812. D = this.fh,
  32813. E = z.length,
  32814. F = D.length,
  32815. G; f < E; f++) if ((G = z[f]) && 0 > G.Wa) G.J();
  32816. else break;
  32817. for (; g < F; g++) if ((G = D[g]) && 0 > G.Wa) G.J();
  32818. else break;
  32819. for (this.ka(); f < E; f++) z[f].J();
  32820. for (; g < F; g++) D[g].J();
  32821. d.stencilFunc(k, n, p);
  32822. d.stencilOp(r, v, y);
  32823. d.stencilMask(h);
  32824. c || d.disable(d.STENCIL_TEST);
  32825. L.rn--;
  32826. C.Yr()
  32827. }
  32828. },
  32829. Oba: function(c) {
  32830. if (this.$f && this.$f.Ja) {
  32831. c = c || C.t;
  32832. if (this.Rv() || this.$f instanceof C.u) {
  32833. var d = c.canvas,
  32834. f = L.TW();
  32835. f.width = d.width;
  32836. f.height = d.height;
  32837. f.getContext("2d").drawImage(d, 0, 0);
  32838. c.save();
  32839. C.A.prototype.J.call(this, c);
  32840. c.globalCompositeOperation = "destination-in";
  32841. this.transform(c);
  32842. this.$f.J();
  32843. c.restore();
  32844. c.save();
  32845. c.setTransform(1, 0, 0, 1, 0, 0);
  32846. c.globalCompositeOperation = "destination-over";
  32847. c.drawImage(f, 0, 0)
  32848. } else {
  32849. var f = this.l,
  32850. g;
  32851. c.save();
  32852. this.transform(c);
  32853. this.$f.J(c);
  32854. c.clip();
  32855. this.Rv(q);
  32856. this.ed();
  32857. this.YR();
  32858. for (var h, k = this.fh,
  32859. n = f.length,
  32860. p = k.length,
  32861. d = 0; d < n; d++) if ((g = f[d]) && 0 > g.Wa) g.J(c);
  32862. else break;
  32863. for (h = 0; h < p; h++) if ((g = k[h]) && 0 > g.Wa) g.J(c);
  32864. else break;
  32865. for (; d < n; d++) f[d].J(c);
  32866. for (; h < p; h++) k[h].J(c);
  32867. this.Rv(t)
  32868. }
  32869. c.restore()
  32870. }
  32871. },
  32872. QF: t,
  32873. Rv: function(c) {
  32874. if (c === q || c === t) C.Tc.prototype.QF = c;
  32875. return C.Tc.prototype.QF
  32876. },
  32877. z2: s,
  32878. Lua: function(c) {
  32879. var d = this.Qda();
  32880. c = c || C.t;
  32881. this.XW && c.enable(c.SCISSOR_TEST);
  32882. C.view.LR(d.x, d.y, d.width, d.height);
  32883. C.A.prototype.J.call(this);
  32884. this.XW && c.disable(c.SCISSOR_TEST)
  32885. },
  32886. aq: function(c) {
  32887. if (c != this.Kq) switch (this.Kq = c, this.Lq) {
  32888. case L.SJ:
  32889. c ? (this.$f = C.Tg.create(), C.L === C.cb && (this.$f.ka = this.Fqa.bind(this)), this.$c && this.$f.Z(), this.wia(this.o)) : (this.$c && this.$f.Na(), this.$f = s)
  32890. }
  32891. },
  32892. tha: function(c) {
  32893. if (c != this.Lq) {
  32894. var d = this.Kq;
  32895. this.aq(t);
  32896. this.Lq = c;
  32897. this.aq(d)
  32898. }
  32899. },
  32900. GTa: A("Lq"),
  32901. wia: function(c) {
  32902. if (this.Kq && this.Lq == L.SJ) {
  32903. var d = [];
  32904. d[0] = C.d(0, 0);
  32905. d[1] = C.d(c.width, 0);
  32906. d[2] = C.d(c.width, c.height);
  32907. d[3] = C.d(0, c.height);
  32908. c = C.color.GREEN;
  32909. this.$f.clear();
  32910. this.$f.Of(d, 4, c, 0, c)
  32911. }
  32912. },
  32913. w2a: function() {
  32914. this.Vl()
  32915. },
  32916. Qda: function() {
  32917. if (this.JL) {
  32918. var c = this.vm(C.d(0, 0)),
  32919. d = this.ql(),
  32920. f = this.o.width * d.a,
  32921. d = this.o.height * d.P,
  32922. g;
  32923. g = this;
  32924. for (var h = t; g;) if ((g = g.getParent()) && g instanceof L && g.Kq) if (h || (this.OV = g, h = q), g.Lq == L.H4) {
  32925. this.XW = t;
  32926. break
  32927. }
  32928. if (this.OV) {
  32929. g = this.OV.Qda();
  32930. var h = c.x - f * this.Ab.x,
  32931. k = c.y - d * this.Ab.y,
  32932. n = f,
  32933. p = d,
  32934. r = c.x - g.x;
  32935. 0 > r && (h = g.x, n += r);
  32936. f = c.x + f - (g.x + g.width);
  32937. 0 < f && (n -= f);
  32938. f = c.y + d - (g.y + g.height);
  32939. 0 < f && (p -= f);
  32940. c = c.y - g.y;
  32941. 0 > c && (k = g.x, p += c);
  32942. 0 > n && (n = 0);
  32943. 0 > p && (p = 0);
  32944. this.So.x = h;
  32945. this.So.y = k;
  32946. this.So.width = n;
  32947. this.So.height = p
  32948. } else this.So.x = c.x - f * this.Ab.x,
  32949. this.So.y = c.y - d * this.Ab.y,
  32950. this.So.width = f,
  32951. this.So.height = d;
  32952. this.JL = t
  32953. }
  32954. return this.So
  32955. },
  32956. gc: function() {
  32957. J.prototype.gc.call(this);
  32958. this.wia(this.o);
  32959. this.JL = this.$g = q;
  32960. this.Cd && (this.Cd.p(0.5 * this.o.width, 0.5 * this.o.height), this.Xs && this.Cd instanceof C.Sa && this.Cd.De(this.o));
  32961. this.ii && this.ii.Ca(this.o);
  32962. this.ff && this.ff.Ca(this.o)
  32963. },
  32964. rR: function(c) {
  32965. this.Xs != c && (this.Ai(this.Cd), this.Cd = s, this.Xs = c, this.lca(), this.Nu(this.qL, this.$E), this.bJ(this.ZE))
  32966. },
  32967. gYa: A("Xs"),
  32968. Nu: function(c, d) {
  32969. if (c) {
  32970. d = d || J.Pa;
  32971. this.Cd == s && this.lca();
  32972. this.qL = c;
  32973. this.$E = d;
  32974. if (this.Xs) {
  32975. var f = this.Cd;
  32976. switch (this.$E) {
  32977. case J.Pa:
  32978. f.Ce(c);
  32979. break;
  32980. case J.ab:
  32981. f.pl(c)
  32982. }
  32983. f.De(this.o)
  32984. } else switch (f = this.Cd, this.$E) {
  32985. case J.Pa:
  32986. f.Va(c);
  32987. break;
  32988. case J.ab:
  32989. f.pc(c)
  32990. }
  32991. this.rL = this.Cd.i();
  32992. this.Cd.p(this.o.width / 2, this.o.height / 2);
  32993. this.cca()
  32994. }
  32995. },
  32996. bJ: function(c) {
  32997. this.ZE = c;
  32998. this.Xs && this.Cd.Gc(c)
  32999. },
  33000. ZSa: A("ZE"),
  33001. Tia: function(c) {
  33002. if (c) switch (this.Dt) {
  33003. case L.nq:
  33004. case L.oq:
  33005. var d = c.ml(wc.LINEAR);
  33006. d || c.ly(Ic.create());
  33007. break;
  33008. case L.$y:
  33009. (d = c.ml(wc.$y)) || c.ly(P.create())
  33010. }
  33011. },
  33012. lca: function() {
  33013. this.Xs ? (this.Cd = C.Sa.create(), this.Cd.De(this.o)) : this.Cd = C.u.create();
  33014. this.Yc(this.Cd, L.Sja, -1);
  33015. this.Cd.p(this.o.width / 2, this.o.height / 2)
  33016. },
  33017. b2a: function() {
  33018. this.Cd && (this.Ai(this.Cd), this.Cd = s, this.qL = "", this.rL = C.size(0, 0))
  33019. },
  33020. pR: function(c) {
  33021. if (this.et != c) {
  33022. switch (this.et) {
  33023. case L.t4:
  33024. this.ii && (this.Ai(this.ii), this.ii = s);
  33025. this.ff && (this.Ai(this.ff), this.ff = s);
  33026. break;
  33027. case L.oS:
  33028. this.ii && (this.Ai(this.ii), this.ii = s);
  33029. break;
  33030. case L.nS:
  33031. this.ff && (this.Ai(this.ff), this.ff = s)
  33032. }
  33033. this.et = c;
  33034. switch (this.et) {
  33035. case L.oS:
  33036. this.ii = C.gd.create();
  33037. this.ii.Ca(this.o);
  33038. this.ii.K(this.Eb);
  33039. this.ii.G(this.ya);
  33040. this.Yc(this.ii, L.r4, -1);
  33041. break;
  33042. case L.nS:
  33043. this.ff = C.pq.create(C.color(255, 0, 0, 255), C.color(0, 255, 0, 255)),
  33044. this.ff.Ca(this.o),
  33045. this.ff.K(this.Eb),
  33046. this.ff.tg(this.Kg),
  33047. this.ff.sg(this.Ef),
  33048. this.ff.UR(this.Ji),
  33049. this.Yc(this.ff, L.r4, -1)
  33050. }
  33051. }
  33052. },
  33053. WSa: A("et"),
  33054. Mu: function(c, d) {
  33055. d ? (this.Kg.r = c.r, this.Kg.g = c.g, this.Kg.b = c.b, this.ff && this.ff.tg(c), this.Ef = d, this.ff && this.ff.sg(d)) : (this.ya.r = c.r, this.ya.g = c.g, this.ya.b = c.b, this.ii && this.ii.G(c))
  33056. },
  33057. USa: function() {
  33058. var c = this.ya;
  33059. return C.color(c.r, c.g, c.b, c.a)
  33060. },
  33061. bTa: function() {
  33062. var c = this.Kg;
  33063. return C.color(c.r, c.g, c.b, c.a)
  33064. },
  33065. YSa: function() {
  33066. var c = this.Ef;
  33067. return C.color(c.r, c.g, c.b, c.a)
  33068. },
  33069. oR: function(c) {
  33070. this.Eb = c;
  33071. switch (this.et) {
  33072. case L.oS:
  33073. this.ii.K(c);
  33074. break;
  33075. case L.nS:
  33076. this.ff.K(c)
  33077. }
  33078. },
  33079. VSa: A("Eb"),
  33080. qR: function(c) {
  33081. this.Ji.x = c.x;
  33082. this.Ji.y = c.y;
  33083. this.ff && this.ff.UR(c)
  33084. },
  33085. XSa: A("Ji"),
  33086. t3a: function(c) {
  33087. this.Aq.r = c.r;
  33088. this.Aq.g = c.g;
  33089. this.Aq.b = c.b;
  33090. this.cca()
  33091. },
  33092. u3a: function(c) {
  33093. this.Aq.a = c;
  33094. this.aAa()
  33095. },
  33096. aAa: function() {
  33097. var c = this.Aq;
  33098. return C.color(c.r, c.g, c.b, c.a)
  33099. },
  33100. $Sa: function() {
  33101. return this.Aq.a
  33102. },
  33103. cca: function() {
  33104. this.Cd && this.Cd.G(this.Aq)
  33105. },
  33106. aTa: A("rL"),
  33107. Pm: function(c) {
  33108. this.Dt = c;
  33109. c = this.l;
  33110. for (var d = s,
  33111. f = 0; f < c.length; f++) d = c[f],
  33112. d instanceof J && this.Tia(d);
  33113. this.$g = q
  33114. },
  33115. Cm: A("Dt"),
  33116. y2a: function() {
  33117. this.$g = q
  33118. },
  33119. Vl: function() {
  33120. if (this.$g) {
  33121. var c = this.Ara();
  33122. c && c.Vl(this);
  33123. this.$g = t
  33124. }
  33125. },
  33126. Ara: function() {
  33127. var c = s;
  33128. switch (this.Dt) {
  33129. case L.oq:
  33130. c = Jc.create();
  33131. break;
  33132. case L.nq:
  33133. c = Kc.create();
  33134. break;
  33135. case L.$y:
  33136. c = Lc.create()
  33137. }
  33138. return c
  33139. },
  33140. MW: function() {
  33141. return this.i()
  33142. },
  33143. NW: function() {
  33144. return this.le()
  33145. },
  33146. lPa: u(),
  33147. BOa: u(),
  33148. iPa: u(),
  33149. jPa: u(),
  33150. Lta: u(),
  33151. Lta: u(),
  33152. HPa: function() {
  33153. this.Cd && this.Cd.K(this.j9)
  33154. },
  33155. IPa: function() {
  33156. this.Cd && (this.Cd.G(this.Aq), this.Cd.K(this.j9))
  33157. },
  33158. R$: function() {
  33159. for (var c = this.le(), d = C.size(0, 0), f = 0, g, h = 0, k = c.length; h < k; h++) if (g = c[h], s != g && g instanceof L) g = g.R$(),
  33160. d.width += g.width,
  33161. d.height += g.height;
  33162. else if (g instanceof J) {
  33163. f++;
  33164. var n = w.ml().pi;
  33165. g = w.i();
  33166. d.width += g.width + 0.5 * (n.right + n.left);
  33167. d.height += g.height + 0.5 * (n.top + n.bottom)
  33168. }
  33169. c = this.Cm();
  33170. c == L.nq && (d.height -= d.height / f * (f - 1));
  33171. c == L.oq && (d.width -= d.width / f * (f - 1));
  33172. return d
  33173. },
  33174. EF: function(c, d) {
  33175. if (d == s || d == this) return this.x$();
  33176. var f = 0,
  33177. g = this.le(),
  33178. h = g.length,
  33179. k,
  33180. n = C.pv,
  33181. p = 0;
  33182. if (c == J.bn || c == J.Jl || c == J.Zm || c == J.Nl) {
  33183. for (k = this.Zo(d); f < h;) {
  33184. var r = g[f];
  33185. r && (r instanceof J && r.Rj) && (r = r instanceof L ? r.r9(d) : C.Ye(C.cc(this.Zo(r), k)), r < n && (p = f, n = r));
  33186. f++
  33187. }
  33188. return p
  33189. }
  33190. C.assert(0, "invalid focus direction!");
  33191. return 0
  33192. },
  33193. vM: function(c, d) {
  33194. if (d == s || d == this) return this.x$();
  33195. var f = 0,
  33196. g = this.le().size(),
  33197. h = -C.pv,
  33198. k = 0;
  33199. if (c == J.bn || c == J.Jl || c == J.Zm || c == J.Nl) {
  33200. for (var n = this.Zo(d); f < g;) {
  33201. if (w && w instanceof J && w.Rj) {
  33202. var p = w instanceof L ? w.q9(d) : C.Ye(C.cc(this.Zo(w), n));
  33203. p > h && (k = f, h = p)
  33204. }
  33205. f++
  33206. }
  33207. return k
  33208. }
  33209. C.assert(0, "invalid focus direction!!!");
  33210. return 0
  33211. },
  33212. r9: function(c) {
  33213. for (var d = C.pv,
  33214. f = this.Zo(c), g = this.l, h = 0, k = g.length; h < k; h++) {
  33215. var n = g[h];
  33216. if (n instanceof L) n = n.r9(c);
  33217. else if (n instanceof J && n.Rj) n = C.Ye(C.cc(this.Zo(n), f));
  33218. else continue;
  33219. n < d && (d = n)
  33220. }
  33221. return d
  33222. },
  33223. q9: function(c) {
  33224. for (var d = -C.pv,
  33225. f = this.Zo(c), g = this.l, h = 0, k = g.length; h < k; h++) {
  33226. var n = g[h];
  33227. if (n instanceof L) n = n.q9(c);
  33228. else if (n instanceof J && n.Rj) n = this.Zo(w),
  33229. n = C.Ye(C.cc(n, f));
  33230. else continue;
  33231. n > d && (d = n)
  33232. }
  33233. return d
  33234. },
  33235. Xra: function(c, d) {
  33236. if (d != s) {
  33237. var f = this.Zo(d),
  33238. g = this.Zo(this.y$());
  33239. c == J.bn ? this.FC = f.x > g.x ? this.EF.bind(this) : this.vM.bind(this) : c == J.Jl ? this.FC = f.x > g.x ? this.vM.bind(this) : this.EF.bind(this) : c == J.Zm ? this.FC = f.y > g.y ? this.EF.bind(this) : this.vM.bind(this) : c == J.Nl ? this.FC = f.y < g.y ? this.EF.bind(this) : this.vM.bind(this) : C.assert(0, "invalid direction!")
  33240. }
  33241. },
  33242. y$: function() {
  33243. for (var c = this.l,
  33244. d = 0,
  33245. f = c.length; d < f; d++) {
  33246. var g = c[d];
  33247. if (g instanceof L) {
  33248. if (g = g.y$()) return g
  33249. } else if (g instanceof C.QNa) return g
  33250. }
  33251. return s
  33252. },
  33253. x$: function() {
  33254. for (var c = 0,
  33255. d = this.le(), f = d.length; c < f;) {
  33256. var g = d[c];
  33257. if (g && g instanceof J && g.Rj) return c;
  33258. c++
  33259. }
  33260. return 0
  33261. },
  33262. Wra: function(c) {
  33263. var d = this.eA(c);
  33264. return d ? d.Rj ? d: this.Wra(c + 1) : s
  33265. },
  33266. Zo: function(c) {
  33267. var d = c instanceof L ? c.R$() : c.i();
  33268. return c.vm(C.d(d.width / 2, d.height / 2))
  33269. },
  33270. DM: function(c, d) {
  33271. var f = s,
  33272. f = this.l,
  33273. g = f.indexOf(d),
  33274. g = g + 1;
  33275. if (g < f.length) {
  33276. if (f = this.eA(g)) {
  33277. if (f.Rj) {
  33278. if (f instanceof L) return f.$q = q,
  33279. f.Pf(c, f);
  33280. this.xx(d, f);
  33281. return f
  33282. }
  33283. return this.DM(c, f)
  33284. }
  33285. return d
  33286. }
  33287. if (this.mw) {
  33288. if (this.JV()) {
  33289. f = this.eA(0);
  33290. if (f.Rj) {
  33291. if (f instanceof L) return f.$q = q,
  33292. f.Pf(c, f);
  33293. this.xx(d, f);
  33294. return f
  33295. }
  33296. return this.DM(c, f)
  33297. }
  33298. return d instanceof L ? d: this.jn
  33299. }
  33300. return this.bp(d, c) ? this.jw(this, c) ? this.Pf(c, this) : d instanceof L ? d: this.jn: this.Pf(c, this)
  33301. },
  33302. EM: function(c, d) {
  33303. var f = s,
  33304. f = this.l,
  33305. g = f.indexOf(d),
  33306. g = g - 1;
  33307. if (0 <= g) {
  33308. f = this.eA(g);
  33309. if (f.Rj) {
  33310. if (f instanceof L) return f.$q = q,
  33311. f.Pf(c, f);
  33312. this.xx(d, f);
  33313. return f
  33314. }
  33315. return this.EM(c, f)
  33316. }
  33317. if (this.mw) {
  33318. if (this.JV()) {
  33319. g = f.length - 1;
  33320. f = this.eA(g);
  33321. if (f.Rj) {
  33322. if (f instanceof L) return f.$q = q,
  33323. f.Pf(c, f);
  33324. this.xx(d, f);
  33325. return f
  33326. }
  33327. return this.EM(c, f)
  33328. }
  33329. return d instanceof L ? d: this.jn
  33330. }
  33331. return this.bp(d, c) ? this.jw(this, c) ? this.Pf(c, this) : d instanceof L ? d: this.jn: this.Pf(c, this)
  33332. },
  33333. eA: function(c) {
  33334. for (var d = this.l,
  33335. f = d.length,
  33336. g = 0,
  33337. h = c; c < f;) {
  33338. var k = d[c];
  33339. if (k && k instanceof J) return k;
  33340. g++;
  33341. c++
  33342. }
  33343. for (c = 0; c < h;) {
  33344. if ((f = d[c]) && f instanceof J) return f;
  33345. g++;
  33346. c++
  33347. }
  33348. return s
  33349. },
  33350. bp: function(c, d) {
  33351. var f = c.getParent();
  33352. if (f instanceof L) return q;
  33353. var g = f.le(),
  33354. h = g.indexOf(c);
  33355. if (f.Cm() == L.nq) {
  33356. if (d == J.bn) return 0 == h ? 1 * this.bp(f, d) : t;
  33357. if (d == J.Jl) return h == g.length - 1 ? 1 * this.bp(f, d) : t;
  33358. if (d == J.Zm || d == J.Nl) return this.bp(f, d)
  33359. } else if (f.Cm() == L.oq) {
  33360. if (d == J.Nl) return 0 == h ? 1 * this.bp(f, d) : t;
  33361. if (d == J.Zm) return h == g.length - 1 ? 1 * this.bp(f, d) : t;
  33362. if (d == J.bn || d == J.Jl) return this.bp(f, d)
  33363. } else C.assert(0, "invalid layout Type");
  33364. return t
  33365. },
  33366. jw: function(c, d) {
  33367. var f = c.getParent();
  33368. if (f == s) return t;
  33369. if (f.mw) {
  33370. var g = f.Cm();
  33371. if (g == L.nq) return d == J.bn || d == J.Jl ? q: this.jw(f, d);
  33372. if (g == L.oq) return d == J.Zm || d == J.Nl ? q: this.jw(f, d);
  33373. C.assert(0, "invalid layout type")
  33374. } else return this.jw(f, d)
  33375. },
  33376. Bw: function(c, d) {
  33377. if (this.JV()) {
  33378. var f = this.jn;
  33379. this.Xra(c, f);
  33380. f = this.FC(c, f);
  33381. f = this.eA(f);
  33382. if (f instanceof L) return f.$q = q,
  33383. f.Pf(c, f);
  33384. this.xx(d, f);
  33385. return f
  33386. }
  33387. return this
  33388. },
  33389. JV: function() {
  33390. for (var c = this.l,
  33391. d = 0,
  33392. f = c.length; d < f; d++) {
  33393. var g = c[d];
  33394. if (g && g instanceof J && g.Rj) return q
  33395. }
  33396. return t
  33397. },
  33398. fk: B("Layout"),
  33399. Uh: function() {
  33400. return L.create()
  33401. },
  33402. ux: function(c) {
  33403. J.prototype.ux.call(this, c)
  33404. },
  33405. xi: function(c) {
  33406. this.rR(c.Xs);
  33407. this.Nu(c.qL, c.$E);
  33408. this.bJ(c.ZE);
  33409. this.pR(c.et);
  33410. this.Mu(c.ya);
  33411. this.Mu(c.Kg, c.Ef);
  33412. this.oR(c.Eb);
  33413. this.qR(c.Ji);
  33414. this.Pm(c.Dt);
  33415. this.aq(c.Kq);
  33416. this.tha(c.Lq);
  33417. this.mw = c.mw;
  33418. this.Bw = c.Bw
  33419. }
  33420. });
  33421. L.MM = s;
  33422. L.gx = s;
  33423. L.rn = s;
  33424. L.GG = s;
  33425. C.L == C.la ? (L.prototype.E3 = L.prototype.Lva, L.prototype.z2 = L.prototype.Lua) : (L.prototype.E3 = L.prototype.Oba, L.prototype.z2 = L.prototype.Oba);
  33426. L.TW = function() {
  33427. return C.Tc.GG || (C.Tc.GG = C.bd("canvas"))
  33428. };
  33429. H = L.prototype;
  33430. C.e(H, "clippingEnabled", H.oDa, H.aq);
  33431. C.e(H, "clippingType", s, H.tha);
  33432. C.e(H, "layoutType", H.Cm, H.Pm);
  33433. H = s;
  33434. L.create = function() {
  33435. return new L
  33436. };
  33437. L.t4 = 0;
  33438. L.oS = 1;
  33439. L.nS = 2;
  33440. L.yja = 0;
  33441. L.oq = 1;
  33442. L.nq = 2;
  33443. L.$y = 3;
  33444. L.SJ = 0;
  33445. L.H4 = 1;
  33446. L.Sja = -2;
  33447. L.r4 = -2;
  33448. var Mc = uc.extend({
  33449. left: 0,
  33450. top: 0,
  33451. right: 0,
  33452. bottom: 0,
  33453. ctor: function(c, d, f, g) {
  33454. c && d === m && (this.left = c.left, this.top = c.top, this.right = c.right, this.bottom = c.bottom);
  33455. g !== m && (this.left = c, this.top = d, this.right = f, this.bottom = g)
  33456. },
  33457. mo: function(c, d, f, g) {
  33458. this.left = c;
  33459. this.top = d;
  33460. this.right = f;
  33461. this.bottom = g
  33462. },
  33463. cSa: function(c) {
  33464. return this.left == c.left && this.top == c.top && this.right == c.right && this.bottom == c.bottom
  33465. }
  33466. });
  33467. function Nc() {
  33468. return new Mc(0, 0, 0, 0)
  33469. }
  33470. var wc = uc.extend({
  33471. pi: s,
  33472. Ct: s,
  33473. ctor: function() {
  33474. this.pi = new Mc;
  33475. this.Ct = wc.NONE
  33476. },
  33477. mo: function(c, d, f, g) {
  33478. "object" === typeof c ? (this.pi.left = c.left, this.pi.top = c.top, this.pi.right = c.right, this.pi.bottom = c.bottom) : (this.pi.left = c, this.pi.top = d, this.pi.right = f, this.pi.bottom = g)
  33479. },
  33480. mVa: A("pi"),
  33481. Cm: A("Ct"),
  33482. s: function() {
  33483. var c = this.Uh();
  33484. c.vx(this);
  33485. return c
  33486. },
  33487. Uh: function() {
  33488. return wc.create()
  33489. },
  33490. vx: function(c) {
  33491. this.pi = c.pi
  33492. }
  33493. });
  33494. wc.create = function() {
  33495. return new wc
  33496. };
  33497. wc.NONE = 0;
  33498. wc.LINEAR = 1;
  33499. wc.$y = 2;
  33500. var Ic = wc.extend({
  33501. $M: s,
  33502. ctor: function() {
  33503. wc.prototype.ctor.call(this);
  33504. this.$M = Ic.NONE;
  33505. this.Ct = wc.LINEAR
  33506. },
  33507. oc: x("$M"),
  33508. MH: A("$M"),
  33509. Uh: function() {
  33510. return Ic.create()
  33511. },
  33512. vx: function(c) {
  33513. wc.prototype.vx.call(this, c);
  33514. c && (this.mR(c.Iw), this.IR(c.SA), this.JR(c.TA), this.oc(c.$M))
  33515. }
  33516. });
  33517. Ic.create = function() {
  33518. return new Ic
  33519. };
  33520. Ic.NONE = 0;
  33521. Ic.bn = 1;
  33522. Ic.U7 = 2;
  33523. Ic.Jl = 3;
  33524. Ic.pS = 4;
  33525. Ic.ES = 5;
  33526. Ic.DS = 6;
  33527. var P = wc.extend({
  33528. Iw: s,
  33529. TA: "",
  33530. SA: "",
  33531. ri: t,
  33532. ctor: function() {
  33533. wc.prototype.ctor.call(this);
  33534. this.Iw = P.NONE;
  33535. this.SA = this.TA = "";
  33536. this.ri = t;
  33537. this.Ct = wc.$y
  33538. },
  33539. mR: x("Iw"),
  33540. GSa: A("Iw"),
  33541. JR: x("TA"),
  33542. lWa: A("TA"),
  33543. IR: x("SA"),
  33544. kWa: A("SA"),
  33545. Uh: function() {
  33546. return P.create()
  33547. },
  33548. vx: function(c) {
  33549. wc.prototype.vx.call(this, c);
  33550. this.mR(c.Iw);
  33551. this.JR(c.TA);
  33552. this.IR(c.SA)
  33553. }
  33554. });
  33555. P.create = function() {
  33556. return new P
  33557. };
  33558. P.NONE = 0;
  33559. P.T6 = 1;
  33560. P.S6 = 2;
  33561. P.U6 = 3;
  33562. P.P6 = 4;
  33563. P.yka = 5;
  33564. P.R6 = 6;
  33565. P.O6 = 7;
  33566. P.N6 = 8;
  33567. P.Q6 = 9;
  33568. P.i6 = 10;
  33569. P.h6 = 11;
  33570. P.j6 = 12;
  33571. P.p6 = 13;
  33572. P.o6 = 14;
  33573. P.n6 = 15;
  33574. P.s6 = 16;
  33575. P.r6 = 17;
  33576. P.q6 = 18;
  33577. P.l6 = 19;
  33578. P.k6 = 20;
  33579. P.m6 = 21;
  33580. var bd = uc.extend({
  33581. Vl: u()
  33582. }),
  33583. Jc = bd.extend({
  33584. Vl: function(c) {
  33585. var d = c.MW();
  33586. c = c.NW();
  33587. for (var f = d.height,
  33588. g = 0,
  33589. h = c.length; g < h; g++) {
  33590. var k = c[g];
  33591. if (k) {
  33592. var n = k.ml();
  33593. if (n) {
  33594. var p = n.MH(),
  33595. r = k.dk(),
  33596. v = k.i(),
  33597. y = r.x * v.width,
  33598. f = f - (1 - r.y) * v.height;
  33599. switch (p) {
  33600. case Ic.Jl:
  33601. y = d.width - (1 - r.x) * v.width;
  33602. break;
  33603. case Ic.DS:
  33604. y = d.width / 2 - v.width * (0.5 - r.x)
  33605. }
  33606. n = n.pi;
  33607. y += n.left;
  33608. f -= n.top;
  33609. k.p(y, f);
  33610. f = k.Vd() - k.dk().y * k.i().height - n.bottom
  33611. }
  33612. }
  33613. }
  33614. }
  33615. });
  33616. Jc.create = function() {
  33617. return new Jc
  33618. };
  33619. var Kc = bd.extend({
  33620. Vl: function(c) {
  33621. var d = c.MW();
  33622. c = c.NW();
  33623. for (var f = 0,
  33624. g = 0,
  33625. h = c.length; g < h; g++) {
  33626. var k = c[g];
  33627. if (k) {
  33628. var n = k.ml();
  33629. if (n) {
  33630. var p = n.MH(),
  33631. r = k.dk(),
  33632. v = k.UH(),
  33633. f = f + r.x * v.width,
  33634. y = d.height - (1 - r.y) * v.height;
  33635. switch (p) {
  33636. case Ic.pS:
  33637. y = r.y * v.height;
  33638. break;
  33639. case Ic.ES:
  33640. y = d.height / 2 - v.height * (0.5 - r.y)
  33641. }
  33642. n = n.pi;
  33643. f += n.left;
  33644. y -= n.top;
  33645. k.p(f, y);
  33646. f = k.Fc() + n.right
  33647. }
  33648. }
  33649. }
  33650. }
  33651. });
  33652. Kc.create = function() {
  33653. return new Kc
  33654. };
  33655. var Lc = bd.extend({
  33656. qZ: s,
  33657. LO: s,
  33658. hH: s,
  33659. Ga: 0,
  33660. Ha: 0,
  33661. ge: s,
  33662. Vl: function(c) {
  33663. for (var d = this.LO = this.gsa(c); 0 < this.qZ;) {
  33664. for (var f = 0,
  33665. g = d.length; f < g; f++) {
  33666. this.hH = d[f];
  33667. var h = this.hH.ml();
  33668. h && !h.ri && this.dra(c) && (this.cra(), this.hH.p(this.Ga, this.Ha), h.ri = q)
  33669. }
  33670. this.qZ--
  33671. }
  33672. this.LO.length = 0
  33673. },
  33674. gsa: function(c) {
  33675. c = c.NW();
  33676. for (var d = [], f = 0, g = c.length; f < g; f++) {
  33677. var h = c[f];
  33678. h && (h.ml().ri = t, this.qZ++, d.push(h))
  33679. }
  33680. return d
  33681. },
  33682. Gsa: function(c) {
  33683. var d = s;
  33684. if ((c = c.ml().TA) && 0 != c.length) for (var f = this.LO,
  33685. g = 0,
  33686. h = f.length; g < h; g++) {
  33687. var k = f[g];
  33688. if (k) {
  33689. var n = k.ml();
  33690. if (n && n.SA == c) {
  33691. d = k;
  33692. this.ge = n;
  33693. break
  33694. }
  33695. }
  33696. }
  33697. return d
  33698. },
  33699. dra: function(c) {
  33700. var d = this.hH,
  33701. f = d.dk(),
  33702. g = d.i();
  33703. this.Ha = this.Ga = 0;
  33704. var h = this.Gsa(d),
  33705. d = d.ml().Iw;
  33706. c = c.MW();
  33707. switch (d) {
  33708. case P.NONE:
  33709. case P.T6:
  33710. this.Ga = f.x * g.width;
  33711. this.Ha = c.height - (1 - f.y) * g.height;
  33712. break;
  33713. case P.S6:
  33714. this.Ga = 0.5 * c.width - g.width * (0.5 - f.x);
  33715. this.Ha = c.height - (1 - f.y) * g.height;
  33716. break;
  33717. case P.U6:
  33718. this.Ga = c.width - (1 - f.x) * g.width;
  33719. this.Ha = c.height - (1 - f.y) * g.height;
  33720. break;
  33721. case P.P6:
  33722. this.Ga = f.x * g.width;
  33723. this.Ha = 0.5 * c.height - g.height * (0.5 - f.y);
  33724. break;
  33725. case P.yka:
  33726. this.Ga = 0.5 * c.width - g.width * (0.5 - f.x);
  33727. this.Ha = 0.5 * c.height - g.height * (0.5 - f.y);
  33728. break;
  33729. case P.R6:
  33730. this.Ga = c.width - (1 - f.x) * g.width;
  33731. this.Ha = 0.5 * c.height - g.height * (0.5 - f.y);
  33732. break;
  33733. case P.O6:
  33734. this.Ga = f.x * g.width;
  33735. this.Ha = f.y * g.height;
  33736. break;
  33737. case P.N6:
  33738. this.Ga = 0.5 * c.width - g.width * (0.5 - f.x);
  33739. this.Ha = f.y * g.height;
  33740. break;
  33741. case P.Q6:
  33742. this.Ga = c.width - (1 - f.x) * g.width;
  33743. this.Ha = f.y * g.height;
  33744. break;
  33745. case P.i6:
  33746. if (h) {
  33747. if (this.ge && !this.ge.ri) return t;
  33748. var d = h.Be(),
  33749. k = h.yc();
  33750. this.Ha = d + f.y * g.height;
  33751. this.Ga = k + f.x * g.width
  33752. }
  33753. break;
  33754. case P.h6:
  33755. if (h) {
  33756. if (this.ge && !this.ge.ri) return t;
  33757. c = h.i();
  33758. d = h.Be();
  33759. this.Ha = d + f.y * g.height;
  33760. this.Ga = h.yc() + 0.5 * c.width + f.x * g.width - 0.5 * g.width
  33761. }
  33762. break;
  33763. case P.j6:
  33764. if (h) {
  33765. if (this.ge && !this.ge.ri) return t;
  33766. d = h.Be();
  33767. k = h.Fc();
  33768. this.Ha = d + f.y * g.height;
  33769. this.Ga = k - (1 - f.x) * g.width
  33770. }
  33771. break;
  33772. case P.p6:
  33773. if (h) {
  33774. if (this.ge && !this.ge.ri) return t;
  33775. d = h.Be();
  33776. k = h.yc();
  33777. this.Ha = d - (1 - f.y) * g.height;
  33778. this.Ga = k - (1 - f.x) * g.width
  33779. }
  33780. break;
  33781. case P.o6:
  33782. if (h) {
  33783. if (this.ge && !this.ge.ri) return t;
  33784. c = h.i();
  33785. k = h.yc();
  33786. this.Ga = k - (1 - f.x) * g.width;
  33787. this.Ha = h.wd() + 0.5 * c.height + f.y * g.height - 0.5 * g.height
  33788. }
  33789. break;
  33790. case P.n6:
  33791. if (h) {
  33792. if (this.ge && !this.ge.ri) return t;
  33793. d = h.wd();
  33794. k = h.yc();
  33795. this.Ha = d + f.y * g.height;
  33796. this.Ga = k - (1 - f.x) * g.width
  33797. }
  33798. break;
  33799. case P.s6:
  33800. if (h) {
  33801. if (this.ge && !this.ge.ri) return t;
  33802. d = h.Be();
  33803. k = h.Fc();
  33804. this.Ha = d - (1 - f.y) * g.height;
  33805. this.Ga = k + f.x * g.width
  33806. }
  33807. break;
  33808. case P.r6:
  33809. if (h) {
  33810. if (this.ge && !this.ge.ri) return t;
  33811. c = h.i();
  33812. k = h.Fc();
  33813. this.Ga = k + f.x * g.width;
  33814. this.Ha = h.wd() + 0.5 * c.height + f.y * g.height - 0.5 * g.height
  33815. }
  33816. break;
  33817. case P.q6:
  33818. if (h) {
  33819. if (this.ge && !this.ge.ri) return t;
  33820. d = h.wd();
  33821. k = h.Fc();
  33822. this.Ha = d + f.y * g.height;
  33823. this.Ga = k + f.x * g.width
  33824. }
  33825. break;
  33826. case P.l6:
  33827. if (h) {
  33828. if (this.ge && !this.ge.ri) return t;
  33829. d = h.wd();
  33830. k = h.yc();
  33831. this.Ha = d - (1 - f.y) * g.height;
  33832. this.Ga = k + f.x * g.width
  33833. }
  33834. break;
  33835. case P.k6:
  33836. if (h) {
  33837. if (this.ge && !this.ge.ri) return t;
  33838. c = h.i();
  33839. d = h.wd();
  33840. this.Ha = d - (1 - f.y) * g.height;
  33841. this.Ga = h.yc() + 0.5 * c.width + f.x * g.width - 0.5 * g.width
  33842. }
  33843. break;
  33844. case P.m6:
  33845. if (h) {
  33846. if (this.ge && !this.ge.ri) return t;
  33847. d = h.wd();
  33848. k = h.Fc();
  33849. this.Ha = d - (1 - f.y) * g.height;
  33850. this.Ga = k - (1 - f.x) * g.width
  33851. }
  33852. }
  33853. return q
  33854. },
  33855. cra: function() {
  33856. var c = this.hH.ml(),
  33857. d = c.pi;
  33858. switch (c.Iw) {
  33859. case P.NONE:
  33860. case P.T6:
  33861. this.Ga += d.left;
  33862. this.Ha -= d.top;
  33863. break;
  33864. case P.S6:
  33865. this.Ha -= d.top;
  33866. break;
  33867. case P.U6:
  33868. this.Ga -= d.right;
  33869. this.Ha -= d.top;
  33870. break;
  33871. case P.P6:
  33872. this.Ga += d.left;
  33873. break;
  33874. case P.R6:
  33875. this.Ga -= d.right;
  33876. break;
  33877. case P.O6:
  33878. this.Ga += d.left;
  33879. this.Ha += d.bottom;
  33880. break;
  33881. case P.N6:
  33882. this.Ha += d.bottom;
  33883. break;
  33884. case P.Q6:
  33885. this.Ga -= d.right;
  33886. this.Ha += d.bottom;
  33887. break;
  33888. case P.i6:
  33889. this.Ha += d.bottom;
  33890. this.Ga += d.left;
  33891. break;
  33892. case P.j6:
  33893. this.Ha += d.bottom;
  33894. this.Ga -= d.right;
  33895. break;
  33896. case P.h6:
  33897. this.Ha += d.bottom;
  33898. break;
  33899. case P.p6:
  33900. this.Ga -= d.right;
  33901. this.Ha -= d.top;
  33902. break;
  33903. case P.n6:
  33904. this.Ga -= d.right;
  33905. this.Ha += d.bottom;
  33906. break;
  33907. case P.o6:
  33908. this.Ga -= d.right;
  33909. break;
  33910. case P.s6:
  33911. this.Ga += d.left;
  33912. this.Ha -= d.top;
  33913. break;
  33914. case P.q6:
  33915. this.Ga += d.left;
  33916. this.Ha += d.bottom;
  33917. break;
  33918. case P.r6:
  33919. this.Ga += d.left;
  33920. break;
  33921. case P.l6:
  33922. this.Ha -= d.top;
  33923. this.Ga += d.left;
  33924. break;
  33925. case P.m6:
  33926. this.Ha -= d.top;
  33927. this.Ga -= d.right;
  33928. break;
  33929. case P.k6:
  33930. this.Ha -= d.top
  33931. }
  33932. }
  33933. });
  33934. Lc.create = function() {
  33935. return new Lc
  33936. };
  33937. var cd = L.extend({
  33938. j: function() {
  33939. return L.prototype.j.call(this) ? (this.Pm(L.nq), q) : t
  33940. },
  33941. Mp: function(c) {
  33942. return this.j() ? (this.yf(c), q) : t
  33943. }
  33944. });
  33945. cd.create = function(c) {
  33946. var d = new cd;
  33947. return c ? d.Mp() ? d: s: d
  33948. };
  33949. var dd = L.extend({
  33950. j: function() {
  33951. return L.prototype.j.call(this) ? (this.Pm(L.$y), q) : t
  33952. },
  33953. Mp: function(c) {
  33954. return this.j() ? (this.yf(c), q) : t
  33955. }
  33956. });
  33957. dd.create = function(c) {
  33958. var d = new dd;
  33959. return c ? d.Mp() ? d: s: d
  33960. };
  33961. var ed = L.extend({
  33962. j: function() {
  33963. return L.prototype.j.call(this) ? (this.Pm(L.PNa), q) : t
  33964. },
  33965. Mp: function(c) {
  33966. return this.j() ? (this.yf(c), q) : t
  33967. }
  33968. });
  33969. ed.create = function(c) {
  33970. var d = new ed;
  33971. return c ? d.Mp() ? d: s: d
  33972. };
  33973. function fd(c, d) {
  33974. if (!c) return s;
  33975. if (c.xq == d) return c;
  33976. for (var f = c.le(), g = 0; g < f.length; g++) {
  33977. var h = fd(f[g], d);
  33978. if (h != s) return h
  33979. }
  33980. return s
  33981. };
  33982. var gd = J.extend({
  33983. eb: s,
  33984. Ob: s,
  33985. Ub: s,
  33986. kg: s,
  33987. CX: "",
  33988. NV: "",
  33989. eW: "",
  33990. Qe: q,
  33991. W: t,
  33992. zz: s,
  33993. Az: s,
  33994. yz: s,
  33995. hG: J.Pa,
  33996. sG: J.Pa,
  33997. wF: J.Pa,
  33998. It: s,
  33999. bY: s,
  34000. gW: s,
  34001. YQ: t,
  34002. pO: s,
  34003. uw: 1,
  34004. vw: 1,
  34005. Ew: 1,
  34006. Fw: 1,
  34007. Jta: t,
  34008. aY: t,
  34009. Gra: t,
  34010. Ag: q,
  34011. qa: "Button",
  34012. DX: q,
  34013. $X: q,
  34014. fW: q,
  34015. Oc: "Thonburi",
  34016. Pc: 12,
  34017. xc: 0,
  34018. ctor: function() {
  34019. this.zz = C.rect(0, 0, 0, 0);
  34020. this.Az = C.rect(0, 0, 0, 0);
  34021. this.yz = C.rect(0, 0, 0, 0);
  34022. var c = this.ca;
  34023. this.It = C.size(c.width, c.height);
  34024. this.bY = C.size(c.width, c.height);
  34025. this.gW = C.size(c.width, c.height);
  34026. this.pO = C.color.WHITE;
  34027. J.prototype.ctor.call(this)
  34028. },
  34029. j: function(c, d, f, g) {
  34030. if (J.prototype.j.call(this)) {
  34031. this.vh(q);
  34032. if (c === m) return q;
  34033. this.pj(c, d, f, g)
  34034. }
  34035. return t
  34036. },
  34037. ol: function() {
  34038. this.eb = C.u.create();
  34039. this.Ob = C.u.create();
  34040. this.Ub = C.u.create();
  34041. this.kg = C.fa.create("");
  34042. this.Yc(this.eb, gd.K6, -1);
  34043. this.Yc(this.Ob, gd.i7, -1);
  34044. this.Yc(this.Ub, gd.w5, -1);
  34045. this.Yc(this.kg, gd.rpa, -1)
  34046. },
  34047. uh: function(c) {
  34048. this.W != c && (this.Qv = J.rS, this.W = c, this.Ai(this.eb), this.Ai(this.Ob), this.Ai(this.Ub), this.W ? (this.eb = C.Sa.create(), this.Ob = C.Sa.create(), this.Ub = C.Sa.create()) : (this.eb = C.u.create(), this.Ob = C.u.create(), this.Ub = C.u.create()), this.Rx(this.CX, this.hG), this.Sx(this.NV, this.sG), this.Qx(this.eW, this.wF), this.Yc(this.eb, gd.K6, -1), this.Yc(this.Ob, gd.i7, -1), this.Yc(this.Ub, gd.w5, -1), this.W ? (c = this.Cb, this.We(t), this.Qe = c) : this.We(this.Qe), this.I2(this.zz), this.J2(this.Az), this.H2(this.yz), this.wR(this.Pv))
  34049. },
  34050. j1: A("W"),
  34051. We: function(c) {
  34052. if (!this.W || this.W && !c) J.prototype.We.call(this, c),
  34053. this.Qe = c
  34054. },
  34055. Xn: A("It"),
  34056. pj: function(c, d, f, g) {
  34057. this.Rx(c, g);
  34058. this.Sx(d, g);
  34059. this.Qx(f, g)
  34060. },
  34061. Rx: function(c, d) {
  34062. if (c) {
  34063. d = d || J.Pa;
  34064. this.CX = c;
  34065. this.hG = d;
  34066. if (this.W) {
  34067. var f = this.eb;
  34068. switch (this.hG) {
  34069. case J.Pa:
  34070. f.Ce(c);
  34071. break;
  34072. case J.ab:
  34073. f.pl(c)
  34074. }
  34075. f.Gc(this.zz)
  34076. } else switch (f = this.eb, this.hG) {
  34077. case J.Pa:
  34078. f.Va(c);
  34079. break;
  34080. case J.ab:
  34081. f.pc(c)
  34082. }
  34083. this.It = this.eb.i();
  34084. this.Ak();
  34085. this.yl();
  34086. this.eb.G(this.Xa());
  34087. this.eb.K(this.rb());
  34088. this.Mf(this.It);
  34089. this.DX = this.Jta = q
  34090. }
  34091. },
  34092. Sx: function(c, d) {
  34093. if (c) {
  34094. d = d || J.Pa;
  34095. this.NV = c;
  34096. this.sG = d;
  34097. if (this.W) {
  34098. var f = this.Ob;
  34099. switch (this.sG) {
  34100. case J.Pa:
  34101. f.Ce(c);
  34102. break;
  34103. case J.ab:
  34104. f.pl(c)
  34105. }
  34106. f.Gc(this.Az)
  34107. } else switch (f = this.Ob, this.sG) {
  34108. case J.Pa:
  34109. f.Va(c);
  34110. break;
  34111. case J.ab:
  34112. f.pc(c)
  34113. }
  34114. this.bY = this.Ob.i();
  34115. this.Ak();
  34116. this.yl();
  34117. this.Ub.G(this.Xa());
  34118. this.Ub.K(this.rb());
  34119. this.$X = this.aY = q
  34120. }
  34121. },
  34122. Qx: function(c, d) {
  34123. if (c) {
  34124. d = d || J.Pa;
  34125. this.eW = c;
  34126. this.wF = d;
  34127. if (this.W) {
  34128. var f = this.Ub;
  34129. switch (this.wF) {
  34130. case J.Pa:
  34131. f.Ce(c);
  34132. break;
  34133. case J.ab:
  34134. f.pl(c)
  34135. }
  34136. f.Gc(this.yz)
  34137. } else switch (f = this.Ub, this.wF) {
  34138. case J.Pa:
  34139. f.Va(c);
  34140. break;
  34141. case J.ab:
  34142. f.pc(c)
  34143. }
  34144. this.gW = this.Ub.i();
  34145. this.Ak();
  34146. this.yl();
  34147. this.Ub.G(this.Xa());
  34148. this.Ub.K(this.rb());
  34149. this.fW = this.Gra = q
  34150. }
  34151. },
  34152. Gc: function(c) {
  34153. this.I2(c);
  34154. this.J2(c);
  34155. this.H2(c)
  34156. },
  34157. I2: function(c) {
  34158. this.zz = c;
  34159. this.W && this.eb.Gc(c)
  34160. },
  34161. xTa: A("zz"),
  34162. J2: function(c) {
  34163. this.Az = c;
  34164. this.W && this.Ob.Gc(c)
  34165. },
  34166. yTa: A("Az"),
  34167. H2: function(c) {
  34168. this.yz = c;
  34169. this.W && this.Ub.Gc(c)
  34170. },
  34171. wTa: A("yz"),
  34172. KI: function() {
  34173. this.eb.va(q);
  34174. this.Ob.va(t);
  34175. this.Ub.va(t);
  34176. if (this.aY) {
  34177. if (this.YQ) {
  34178. this.eb.yk();
  34179. this.Ob.yk();
  34180. var c = C.ae.create(0.05, this.uw, this.vw);
  34181. this.eb.Ya(c);
  34182. this.Ob.Za(this.Ew, this.Fw)
  34183. }
  34184. } else this.W ? this.JJa() : (this.eb.yk(), this.eb.Za(this.uw, this.vw))
  34185. },
  34186. LI: function() {
  34187. if (this.aY) {
  34188. if (this.eb.va(t), this.Ob.va(q), this.Ub.va(t), this.YQ) {
  34189. this.eb.yk();
  34190. this.Ob.yk();
  34191. var c = C.ae.create(0.05, this.Ew + 0.1, this.Fw + 0.1);
  34192. this.Ob.Ya(c);
  34193. this.eb.Za(this.Ew + 0.1, this.Fw + 0.1)
  34194. }
  34195. } else this.eb.va(q),
  34196. this.Ob.va(q),
  34197. this.Ub.va(t),
  34198. this.W ? this.eb.G(ja.GRAY) : (this.eb.yk(), this.eb.Za(this.uw + 0.1, this.vw + 0.1))
  34199. },
  34200. GC: function() {
  34201. this.eb.va(t);
  34202. this.Ob.va(t);
  34203. this.Ub.va(q);
  34204. this.eb.Za(this.uw, this.vw);
  34205. this.Ob.Za(this.Ew, this.Fw)
  34206. },
  34207. Nd: function(c) {
  34208. this.kg.Nd(c);
  34209. this.W || (this.eb.Nd(c), this.Ob.Nd(c), this.Ub.Nd(c))
  34210. },
  34211. Z3a: function(c) {
  34212. this.kg.Uf(c);
  34213. this.W || (this.eb.Uf(c), this.Ob.Uf(c), this.Ub.Uf(c))
  34214. },
  34215. oI: function() {
  34216. return this.W ? t: this.eb.oI()
  34217. },
  34218. pI: function() {
  34219. return this.W ? t: this.eb.pI()
  34220. },
  34221. Ak: function() {
  34222. var c = this.Bb ? -1 : 1;
  34223. this.kg.gb(c);
  34224. this.W ? (this.eb.gb(c), this.Ob.gb(c), this.Ub.gb(c)) : (this.eb.Nd(this.Bb), this.Ob.Nd(this.Bb), this.Ub.Nd(this.Bb))
  34225. },
  34226. yl: function() {
  34227. var c = this.Db ? -1 : 1;
  34228. this.kg.pb(c);
  34229. this.W ? (this.eb.pb(c), this.Ob.pb(c), this.Ub.pb(c)) : (this.eb.Uf(this.Db), this.Ob.Uf(this.Db), this.Ub.Uf(this.Db))
  34230. },
  34231. JJa: function() {
  34232. this.eb.G(this.Xa());
  34233. this.Ob.G(this.Xa());
  34234. this.Ub.G(this.Xa());
  34235. this.eb.K(this.rb());
  34236. this.Ob.K(this.rb());
  34237. this.Ub.K(this.rb())
  34238. },
  34239. S: function(c, d) {
  34240. d === m ? (J.prototype.S.call(this, c), this.eb.S(c), this.Ob.S(c), this.Ub.S(c)) : (J.prototype.S.call(this, c, d), this.eb.S(c, d), this.Ob.S(c, d), this.Ub.S(c, d));
  34241. this.kg.p(this.ca.width * (0.5 - this.Ab.x), this.ca.height * (0.5 - this.Ab.y))
  34242. },
  34243. Re: function(c) {
  34244. J.prototype.Re.call(this, c);
  34245. this.eb.Re(c);
  34246. this.Ob.Re(c);
  34247. this.Ub.Re(c);
  34248. this.kg.rs(this.ca.width * (0.5 - this.Ab.x))
  34249. },
  34250. Se: function(c) {
  34251. J.prototype.Se.call(this, c);
  34252. this.eb.Se(c);
  34253. this.Ob.Se(c);
  34254. this.Ub.Se(c);
  34255. this.kg.Uu(this.ca.height * (0.5 - this.Ab.y))
  34256. },
  34257. gc: function() {
  34258. J.prototype.gc.call(this);
  34259. this.KJa();
  34260. this.Xfa();
  34261. this.wga();
  34262. this.mda()
  34263. },
  34264. i: A("It"),
  34265. ef: function() {
  34266. return this.W ? this.ca.width: this.It.width
  34267. },
  34268. Dg: function() {
  34269. return this.W ? this.ca.height: this.It.height
  34270. },
  34271. Sr: function() {
  34272. if (this.Pv) switch (this.Qv) {
  34273. case J.wD:
  34274. return this.eb;
  34275. case J.qS:
  34276. return this.Ob;
  34277. default:
  34278. return s
  34279. } else return this.Ub
  34280. },
  34281. Xfa: function() {
  34282. if (this.Cb) this.W || (this.eb.Za(1), this.uw = this.vw = 1);
  34283. else if (this.W) this.eb.De(this.ca),
  34284. this.uw = this.vw = 1;
  34285. else {
  34286. var c = this.It;
  34287. if (0 >= c.width || 0 >= c.height) {
  34288. this.eb.Za(1);
  34289. return
  34290. }
  34291. var d = this.ca.width / c.width,
  34292. c = this.ca.height / c.height;
  34293. this.eb.gb(d);
  34294. this.eb.pb(c);
  34295. this.uw = d;
  34296. this.vw = c
  34297. }
  34298. this.eb.p(this.o.width / 2, this.o.height / 2)
  34299. },
  34300. wga: function() {
  34301. if (this.Cb) this.W || (this.Ob.Za(1), this.Ew = this.Fw = 1);
  34302. else if (this.W) this.Ob.De(this.ca),
  34303. this.Ew = this.Fw = 1;
  34304. else {
  34305. var c = this.bY;
  34306. if (0 >= c.width || 0 >= c.height) {
  34307. this.Ob.Za(1);
  34308. return
  34309. }
  34310. var d = this.ca.width / c.width,
  34311. c = this.ca.height / c.height;
  34312. this.Ob.gb(d);
  34313. this.Ob.pb(c);
  34314. this.Ew = d;
  34315. this.Fw = c
  34316. }
  34317. this.Ob.p(this.o.width / 2, this.o.height / 2)
  34318. },
  34319. mda: function() {
  34320. if (this.Cb) this.W || this.Ub.Za(1);
  34321. else if (this.W) this.Ub.De(this.ca);
  34322. else {
  34323. var c = this.gW;
  34324. if (0 >= c.width || 0 >= c.height) {
  34325. this.Ub.Za(1);
  34326. return
  34327. }
  34328. var d = this.ca.height / c.height;
  34329. this.Ub.gb(this.ca.width / c.width);
  34330. this.Ub.pb(d)
  34331. }
  34332. this.Ub.p(this.o.width / 2, this.o.height / 2)
  34333. },
  34334. Qn: function() {
  34335. this.DX && (this.Xfa(), this.DX = t);
  34336. this.$X && (this.wga(), this.$X = t);
  34337. this.fW && (this.mda(), this.fW = t)
  34338. },
  34339. KJa: function() {
  34340. this.kg.p(0.5 * this.o.width, 0.5 * this.o.height)
  34341. },
  34342. oy: x("YQ"),
  34343. vy: function(c) {
  34344. this.kg.sa(c)
  34345. },
  34346. Dea: function() {
  34347. return this.kg.Wb()
  34348. },
  34349. sy: function(c) {
  34350. this.pO.r = c.r;
  34351. this.pO.g = c.g;
  34352. this.pO.b = c.b;
  34353. this.kg.Tb(c)
  34354. },
  34355. Aea: function() {
  34356. return this.kg.Xa()
  34357. },
  34358. uy: function(c) {
  34359. this.kg.Od(c)
  34360. },
  34361. Cea: function() {
  34362. return this.kg.Vn()
  34363. },
  34364. ty: function(c) {
  34365. this.kg.Zd(c)
  34366. },
  34367. Bea: function() {
  34368. return this.kg.Fp()
  34369. },
  34370. wva: function(c) {
  34371. this.kg.font = c
  34372. },
  34373. Nsa: function() {
  34374. return this.kg.font
  34375. },
  34376. IJ: function() {
  34377. this.Ei(this.eb);
  34378. this.Ei(this.Ob);
  34379. this.Ei(this.Ub)
  34380. },
  34381. fk: B("Button"),
  34382. Uh: function() {
  34383. return gd.create()
  34384. },
  34385. xi: function(c) {
  34386. this.Qe = c.Qe;
  34387. this.uh(c.W);
  34388. this.Rx(c.CX, c.hG);
  34389. this.Sx(c.NV, c.sG);
  34390. this.Qx(c.eW, c.wF);
  34391. this.I2(c.zz);
  34392. this.J2(c.Az);
  34393. this.H2(c.yz);
  34394. this.vy(c.Dea());
  34395. this.ty(c.Bea());
  34396. this.uy(c.Cea());
  34397. this.sy(c.Aea());
  34398. this.oy(c.YQ)
  34399. }
  34400. }),
  34401. H = gd.prototype;
  34402. C.e(H, "titleText", H.Dea, H.vy);
  34403. C.e(H, "titleFont", H.Nsa, H.wva);
  34404. C.e(H, "titleFontSize", H.Cea, H.uy);
  34405. C.e(H, "titleFontName", H.Bea, H.ty);
  34406. C.e(H, "titleColor", H.Aea, H.sy);
  34407. H = s;
  34408. gd.create = function(c, d, f, g) {
  34409. var h = new gd;
  34410. if (c === m) return h;
  34411. h.j(c, d, f, g)
  34412. };
  34413. gd.K6 = -2;
  34414. gd.i7 = -2;
  34415. gd.w5 = -2;
  34416. gd.rpa = -1;
  34417. gd.G7 = 0;
  34418. gd.vpa = 1;
  34419. var hd = J.extend({
  34420. Vc: s,
  34421. te: s,
  34422. Oe: s,
  34423. se: s,
  34424. we: s,
  34425. Sj: q,
  34426. Tv: s,
  34427. Uv: s,
  34428. Sv: s,
  34429. pV: J.Pa,
  34430. oV: J.Pa,
  34431. DW: J.Pa,
  34432. nV: J.Pa,
  34433. BW: J.Pa,
  34434. i9: "",
  34435. k9: "",
  34436. I$: "",
  34437. h9: "",
  34438. H$: "",
  34439. qa: "CheckBox",
  34440. pL: q,
  34441. sL: q,
  34442. CM: q,
  34443. oL: q,
  34444. BM: q,
  34445. ctor: function() {
  34446. J.prototype.ctor.call(this)
  34447. },
  34448. j: function(c, d, f, g, h, k) {
  34449. return J.prototype.j.call(this) ? (this.Sj = q, this.vh(q), c === m && this.pj(c, d, f, g, h, k), q) : t
  34450. },
  34451. ol: function() {
  34452. this.Vc = C.u.create();
  34453. this.te = C.u.create();
  34454. this.Oe = C.u.create();
  34455. this.se = C.u.create();
  34456. this.we = C.u.create();
  34457. this.Yc(this.Vc, hd.Zja, -1);
  34458. this.Yc(this.te, hd.$ja, -1);
  34459. this.Yc(this.Oe, hd.qma, -1);
  34460. this.Yc(this.se, hd.Yja, -1);
  34461. this.Yc(this.we, hd.pma, -1);
  34462. window.test = [this.Vc, this.te, this.Oe, this.se, this.we];
  34463. window.a = this
  34464. },
  34465. pj: function(c, d, f, g, h, k) {
  34466. this.uC(c, k);
  34467. this.wC(d, k);
  34468. this.xC(f, k);
  34469. this.vC(g, k);
  34470. this.yC(h, k)
  34471. },
  34472. uC: function(c, d) {
  34473. if (c) {
  34474. d = d || J.Pa;
  34475. this.i9 = c;
  34476. this.pV = d;
  34477. var f = this.Vc;
  34478. switch (this.pV) {
  34479. case J.Pa:
  34480. f.Va(c);
  34481. break;
  34482. case J.ab:
  34483. f.pc(c)
  34484. }
  34485. this.YZ();
  34486. f.Aa || (this.Vc.Ca(this.mc), f.ye(function() {
  34487. this.YZ()
  34488. },
  34489. this));
  34490. this.Ak();
  34491. this.yl();
  34492. this.Vc.G(this.Xa());
  34493. this.Vc.K(this.rb());
  34494. this.Mf(this.Vc.i());
  34495. this.pL = q
  34496. }
  34497. },
  34498. wC: function(c, d) {
  34499. if (c) {
  34500. d = d || J.Pa;
  34501. this.k9 = c;
  34502. this.oV = d;
  34503. switch (this.oV) {
  34504. case J.Pa:
  34505. this.te.Va(c);
  34506. break;
  34507. case J.ab:
  34508. this.te.pc(c)
  34509. }
  34510. this.Ak();
  34511. this.yl();
  34512. this.te.G(this.Xa());
  34513. this.te.K(this.rb());
  34514. this.sL = q
  34515. }
  34516. },
  34517. xC: function(c, d) {
  34518. if (c) {
  34519. d = d || J.Pa;
  34520. this.I$ = c;
  34521. this.DW = d;
  34522. switch (this.DW) {
  34523. case J.Pa:
  34524. this.Oe.Va(c);
  34525. break;
  34526. case J.ab:
  34527. this.Oe.pc(c)
  34528. }
  34529. this.Ak();
  34530. this.yl();
  34531. this.Oe.G(this.Xa());
  34532. this.Oe.K(this.rb());
  34533. this.CM = q
  34534. }
  34535. },
  34536. vC: function(c, d) {
  34537. if (c) {
  34538. d = d || J.Pa;
  34539. this.h9 = c;
  34540. this.nV = d;
  34541. switch (this.nV) {
  34542. case J.Pa:
  34543. this.se.Va(c);
  34544. break;
  34545. case J.ab:
  34546. this.se.pc(c)
  34547. }
  34548. this.Ak();
  34549. this.yl();
  34550. this.se.G(this.Xa());
  34551. this.se.K(this.rb());
  34552. this.oL = q
  34553. }
  34554. },
  34555. yC: function(c, d) {
  34556. if (c) {
  34557. d = d || J.Pa;
  34558. this.H$ = c;
  34559. this.BW = d;
  34560. switch (this.BW) {
  34561. case J.Pa:
  34562. this.we.Va(c);
  34563. break;
  34564. case J.ab:
  34565. this.we.pc(c)
  34566. }
  34567. this.Ak();
  34568. this.yl();
  34569. this.we.G(this.Xa());
  34570. this.we.K(this.rb());
  34571. this.BM = q
  34572. }
  34573. },
  34574. KI: function() {
  34575. this.Vc.va(q);
  34576. this.te.va(t);
  34577. this.se.va(t);
  34578. this.we.va(t)
  34579. },
  34580. LI: function() {
  34581. this.Vc.va(t);
  34582. this.te.va(q);
  34583. this.se.va(t);
  34584. this.we.va(t)
  34585. },
  34586. GC: function() {
  34587. this.Vc.va(t);
  34588. this.te.va(t);
  34589. this.se.va(q);
  34590. this.Oe.va(t);
  34591. this.Sj && this.we.va(q)
  34592. },
  34593. qy: function(c) {
  34594. c != this.Sj && (this.Sj = c, this.Oe.va(this.Sj))
  34595. },
  34596. MBa: A("Sj"),
  34597. RGa: function() {
  34598. this.Sv && this.Sv(this, hd.K5);
  34599. this.Tv && this.Uv && this.Uv.call(this.Tv, this, hd.K5)
  34600. },
  34601. tJa: function() {
  34602. this.Sv && this.Sv(this, hd.M5);
  34603. this.Tv && this.Uv && this.Uv.call(this.Tv, this, hd.M5)
  34604. },
  34605. o2: function() {
  34606. J.prototype.o2.call(this);
  34607. this.Sj ? (this.qy(t), this.tJa()) : (this.qy(q), this.RGa())
  34608. },
  34609. UPa: function(c, d) {
  34610. this.Uv = c;
  34611. this.Tv = d
  34612. },
  34613. addEventListener: x("Sv"),
  34614. Xn: function() {
  34615. return this.Vc.i()
  34616. },
  34617. Ak: function() {
  34618. this.Vc.Nd(this.Bb);
  34619. this.te.Nd(this.Bb);
  34620. this.Oe.Nd(this.Bb);
  34621. this.se.Nd(this.Bb);
  34622. this.we.Nd(this.Bb)
  34623. },
  34624. yl: function() {
  34625. this.Vc.Uf(this.Db);
  34626. this.te.Uf(this.Db);
  34627. this.Oe.Uf(this.Db);
  34628. this.se.Uf(this.Db);
  34629. this.we.Uf(this.Db)
  34630. },
  34631. S: function(c, d) {
  34632. d === m ? (J.prototype.S.call(this, c), this.Vc.S(c), this.te.S(c), this.se.S(c), this.Oe.S(c), this.we.S(c)) : (J.prototype.S.call(this, c, d), this.Vc.S(c, d), this.te.S(c, d), this.se.S(c, d), this.Oe.S(c, d), this.we.S(c, d))
  34633. },
  34634. Re: function(c) {
  34635. J.prototype.Re.call(this, c);
  34636. this.Vc.Re(c);
  34637. this.te.Re(c);
  34638. this.se.Re(c);
  34639. this.Oe.Re(c);
  34640. this.we.Re(c)
  34641. },
  34642. Se: function(c) {
  34643. J.prototype.Se.call(this, c);
  34644. this.Vc.Se(c);
  34645. this.te.Se(c);
  34646. this.se.Se(c);
  34647. this.Oe.Se(c);
  34648. this.we.Se(c)
  34649. },
  34650. gc: function() {
  34651. J.prototype.gc.call(this);
  34652. this.BM = this.oL = this.CM = this.sL = this.pL = q
  34653. },
  34654. i: function() {
  34655. return this.Vc.i()
  34656. },
  34657. ef: function() {
  34658. return this.Vc.ef()
  34659. },
  34660. Dg: function() {
  34661. return this.Vc.Dg()
  34662. },
  34663. Sr: A("Vc"),
  34664. YZ: function() {
  34665. if (this.Cb) this.Vc.Za(1);
  34666. else {
  34667. var c = this.Vc.i();
  34668. if (0 >= c.width || 0 >= c.height) {
  34669. this.Vc.Za(1);
  34670. return
  34671. }
  34672. var d = this.ca.height / c.height;
  34673. this.Vc.gb(this.ca.width / c.width);
  34674. this.Vc.pb(d)
  34675. }
  34676. c = this.o.width / 2;
  34677. d = this.o.height / 2;
  34678. this.Vc.p(c, d);
  34679. this.te.p(c, d);
  34680. this.Oe.p(c, d);
  34681. this.se.p(c, d);
  34682. this.we.p(c, d)
  34683. },
  34684. kxa: function() {
  34685. if (this.Cb) this.te.Za(1);
  34686. else {
  34687. var c = this.te.i();
  34688. if (0 >= c.width || 0 >= c.height) this.te.Za(1);
  34689. else {
  34690. var d = this.ca.height / c.height;
  34691. this.te.gb(this.ca.width / c.width);
  34692. this.te.pb(d)
  34693. }
  34694. }
  34695. },
  34696. Tza: function() {
  34697. if (this.Cb) this.Oe.Za(1);
  34698. else {
  34699. var c = this.Oe.i();
  34700. if (0 >= c.width || 0 >= c.height) this.Oe.Za(1);
  34701. else {
  34702. var d = this.ca.height / c.height;
  34703. this.Oe.gb(this.ca.width / c.width);
  34704. this.Oe.pb(d)
  34705. }
  34706. }
  34707. },
  34708. jxa: function() {
  34709. if (this.Cb) this.se.Za(1);
  34710. else {
  34711. var c = this.se.i();
  34712. if (0 >= c.width || 0 >= c.height) this.se.Za(1);
  34713. else {
  34714. var d = this.ca.height / c.height;
  34715. this.se.gb(this.ca.width / c.width);
  34716. this.se.pb(d)
  34717. }
  34718. }
  34719. },
  34720. Sza: function() {
  34721. if (this.Cb) this.we.Za(1);
  34722. else {
  34723. var c = this.we.i();
  34724. if (0 >= c.width || 0 >= c.height) this.we.Za(1);
  34725. else {
  34726. var d = this.ca.height / c.height;
  34727. this.we.gb(this.ca.width / c.width);
  34728. this.we.pb(d)
  34729. }
  34730. }
  34731. },
  34732. IJ: function() {
  34733. this.Ei(this.Vc);
  34734. this.Ei(this.te);
  34735. this.Ei(this.Oe);
  34736. this.Ei(this.se);
  34737. this.Ei(this.we)
  34738. },
  34739. jD: function() {
  34740. this.Al(this.Vc);
  34741. this.Al(this.te);
  34742. this.Al(this.Oe);
  34743. this.Al(this.se);
  34744. this.Al(this.we)
  34745. },
  34746. fk: B("CheckBox"),
  34747. Uh: function() {
  34748. return hd.create()
  34749. },
  34750. xi: function(c) {
  34751. c instanceof hd && (this.uC(c.i9, c.pV), this.wC(c.k9, c.oV), this.xC(c.I$, c.DW), this.vC(c.h9, c.nV), this.yC(c.H$, c.BW), this.qy(c.Sj), this.Tv = c.Tv, this.Uv = c.Uv, this.Sv = c.Sv)
  34752. },
  34753. Qn: function() {
  34754. this.pL && (this.YZ(), this.pL = t);
  34755. this.sL && (this.kxa(), this.sL = t);
  34756. this.CM && (this.Tza(), this.CM = t);
  34757. this.oL && (this.jxa(), this.oL = t);
  34758. this.BM && (this.Sza(), this.BM = t)
  34759. }
  34760. }),
  34761. H = hd.prototype;
  34762. C.e(H, "selected", H.MBa, H.qy);
  34763. H = s;
  34764. hd.create = function(c, d, f, g, h, k) {
  34765. var n = new hd;
  34766. c === m ? n.j() : n.j(c, d, f, g, h, k);
  34767. return n
  34768. };
  34769. hd.K5 = 0;
  34770. hd.M5 = 1;
  34771. hd.Zja = -1;
  34772. hd.$ja = -1;
  34773. hd.Yja = -1;
  34774. hd.qma = -1;
  34775. hd.pma = -1;
  34776. var id = J.extend({
  34777. W: t,
  34778. Qe: q,
  34779. df: s,
  34780. Dd: s,
  34781. Jn: "",
  34782. LM: J.Pa,
  34783. lA: s,
  34784. qa: "ImageView",
  34785. KM: q,
  34786. ctor: function() {
  34787. this.df = C.rect(0, 0, 0, 0);
  34788. this.lA = C.size(this.ca.width, this.ca.height);
  34789. J.prototype.ctor.call(this)
  34790. },
  34791. j: function(c, d) {
  34792. J.prototype.j.call(this);
  34793. c !== m && this.Sf(c, d);
  34794. return q
  34795. },
  34796. ol: function() {
  34797. this.Dd = C.u.create();
  34798. this.Yc(this.Dd, id.Fk, -1)
  34799. },
  34800. Sf: function(c, d) {
  34801. if (c) {
  34802. d = d || J.Pa;
  34803. this.Jn = c;
  34804. this.LM = d;
  34805. var f = this.Dd;
  34806. switch (this.LM) {
  34807. case J.Pa:
  34808. this.W ? (f.Ce(c), f.Gc(this.df)) : f.Va(c);
  34809. break;
  34810. case J.ab:
  34811. this.W ? (f.pl(c), f.Gc(this.df)) : f.pc(c)
  34812. }
  34813. this.lA = f.i();
  34814. this.Ak();
  34815. this.yl();
  34816. f.G(this.Xa());
  34817. f.K(this.rb());
  34818. this.Mf(this.lA);
  34819. this.KM = q
  34820. }
  34821. },
  34822. qc: function(c) {
  34823. this.W || this.Dd.qc(c)
  34824. },
  34825. Ak: function() {
  34826. this.W ? this.Dd.gb(this.Bb ? -1 : 1) : this.Dd.Nd(this.Bb)
  34827. },
  34828. yl: function() {
  34829. this.W ? this.Dd.pb(this.Db ? -1 : 1) : this.Dd.Uf(this.Db)
  34830. },
  34831. Qn: function() {
  34832. this.KM && (this.ICa(), this.KM = t)
  34833. },
  34834. uh: function(c) {
  34835. this.W != c && (this.W = c, this.Ai(this.Dd), this.Dd = s, this.Dd = this.W ? C.Sa.create() : C.u.create(), this.Sf(this.Jn, this.LM), this.Yc(this.Dd, id.Fk, -1), this.W ? (c = this.Cb, this.We(t), this.Qe = c) : this.We(this.Qe), this.Gc(this.df))
  34836. },
  34837. j1: A("W"),
  34838. We: function(c) {
  34839. if (!this.W || this.W && !c) J.prototype.We.call(this, c),
  34840. this.Qe = c
  34841. },
  34842. Gc: function(c) {
  34843. this.df = c;
  34844. this.W && this.Dd.Gc(c)
  34845. },
  34846. l0: A("df"),
  34847. S: function(c, d) {
  34848. d === m ? (J.prototype.S.call(this, c), this.Dd.S(c)) : (J.prototype.S.call(this, c, d), this.Dd.S(c, d))
  34849. },
  34850. Re: function(c) {
  34851. J.prototype.Re.call(this, c);
  34852. this.Dd.Re(c)
  34853. },
  34854. Se: function(c) {
  34855. J.prototype.Se.call(this, c);
  34856. this.Dd.Se(c)
  34857. },
  34858. gc: function() {
  34859. J.prototype.gc.call(this);
  34860. this.KM = q
  34861. },
  34862. i: A("lA"),
  34863. ef: function() {
  34864. return this.lA.width
  34865. },
  34866. Dg: function() {
  34867. return this.lA.height
  34868. },
  34869. Sr: A("Dd"),
  34870. ICa: function() {
  34871. if (this.Cb) this.W || this.Dd.Za(1);
  34872. else if (this.W) this.Dd.De(this.ca);
  34873. else {
  34874. var c = this.Dd.i();
  34875. if (0 >= c.width || 0 >= c.height) {
  34876. this.Dd.Za(1);
  34877. return
  34878. }
  34879. this.Dd.gb(this.ca.width / c.width);
  34880. this.Dd.pb(this.ca.height / c.height)
  34881. }
  34882. this.Dd.p(this.o.width / 2, this.o.height / 2)
  34883. },
  34884. IJ: function() {
  34885. this.Ei(this.Dd)
  34886. },
  34887. jD: function() {
  34888. this.Al(this.Dd)
  34889. },
  34890. fk: B("ImageView"),
  34891. Xn: u(),
  34892. Uh: function() {
  34893. return id.create()
  34894. },
  34895. xi: function(c) {
  34896. c instanceof id && (this.Qe = c.Qe, this.uh(c.W), this.Sf(c.Jn, c.LM), this.Gc(c.df))
  34897. }
  34898. });
  34899. id.create = function(c, d) {
  34900. var f = new id;
  34901. c !== m && f.j(c, d);
  34902. return f
  34903. };
  34904. id.Fk = -1;
  34905. var jd = J.extend({
  34906. Kh: s,
  34907. em: 100,
  34908. ax: 0,
  34909. lb: s,
  34910. MN: J.Pa,
  34911. Rl: s,
  34912. W: t,
  34913. Qe: q,
  34914. df: s,
  34915. Jn: "",
  34916. sta: t,
  34917. qa: "LoadingBar",
  34918. Bq: q,
  34919. ctor: function() {
  34920. this.Kh = jd.WK;
  34921. this.Rl = C.size(0, 0);
  34922. this.df = C.rect(0, 0, 0, 0);
  34923. J.prototype.ctor.call(this)
  34924. },
  34925. ol: function() {
  34926. this.lb = C.u.create();
  34927. C.A.prototype.q.call(this, this.lb, jd.Fk, -1);
  34928. this.lb.S(0, 0.5)
  34929. },
  34930. sh: function(c) {
  34931. if (this.Kh != c) switch (this.Kh = c, this.Kh) {
  34932. case jd.WK:
  34933. this.lb.S(0, 0.5);
  34934. this.lb.p(0.5 * -this.ax, 0);
  34935. this.W || this.lb.Nd(t);
  34936. break;
  34937. case jd.wU:
  34938. this.lb.S(1, 0.5),
  34939. this.lb.p(0.5 * this.ax, 0),
  34940. this.W || this.lb.Nd(q)
  34941. }
  34942. },
  34943. $B: A("Kh"),
  34944. Sf: function(c, d) {
  34945. if (c) {
  34946. this.MN = d = d || J.Pa;
  34947. this.Jn = c;
  34948. var f = this.lb;
  34949. switch (this.MN) {
  34950. case J.Pa:
  34951. this.W ? (f.Ce(c), f.Gc(this.df)) : f.Va(c);
  34952. break;
  34953. case J.ab:
  34954. this.W ? (f.pl(c), f.Gc(this.df)) : f.pc(c)
  34955. }
  34956. f.G(this.Xa());
  34957. f.K(this.rb());
  34958. var g = f.i();
  34959. this.Rl.width = g.width;
  34960. this.Rl.height = g.height;
  34961. switch (this.Kh) {
  34962. case jd.WK:
  34963. f.S(0, 0.5);
  34964. this.W || f.Nd(t);
  34965. break;
  34966. case jd.wU:
  34967. f.S(1, 0.5),
  34968. this.W || f.Nd(q)
  34969. }
  34970. this.$O();
  34971. this.Mf(this.Rl);
  34972. this.Bq = q
  34973. }
  34974. },
  34975. uh: function(c) {
  34976. this.W != c && (this.W = c, this.Ai(this.lb), this.lb = this.W ? C.Sa.create() : C.u.create(), this.Sf(this.Jn, this.MN), this.Yc(this.lb, jd.Fk, -1), this.W ? (c = this.Cb, this.We(t), this.Qe = c) : this.We(this.Qe), this.Gc(this.df), this.Ci(this.em))
  34977. },
  34978. j1: A("W"),
  34979. Gc: function(c) {
  34980. this.df = c;
  34981. this.W && this.lb.Gc(c)
  34982. },
  34983. l0: A("df"),
  34984. Ci: function(c) {
  34985. if (! (0 > c || 100 < c) && !(0 >= this.ax)) if (this.em = c, c = this.em / 100, this.W) this.mia();
  34986. else {
  34987. var d = this.lb.WH();
  34988. this.lb.qc(C.rect(d.x, d.y, this.Rl.width * c, this.Rl.height))
  34989. }
  34990. },
  34991. u0: A("em"),
  34992. gc: function() {
  34993. J.prototype.gc.call(this);
  34994. this.Bq = q
  34995. },
  34996. We: function(c) {
  34997. if (!this.W || this.W && !c) J.prototype.We.call(this, c),
  34998. this.Qe = c
  34999. },
  35000. Xn: A("Rl"),
  35001. i: A("Rl"),
  35002. ef: function() {
  35003. return this.Rl.width
  35004. },
  35005. Dg: function() {
  35006. return this.Rl.height
  35007. },
  35008. Sr: A("lb"),
  35009. $O: function() {
  35010. var c = this.lb;
  35011. if (this.Cb) this.W || (this.ax = this.Rl.width, c.Za(1));
  35012. else if (this.ax = this.ca.width, this.W) this.mia();
  35013. else {
  35014. var d = this.Rl;
  35015. if (0 >= d.width || 0 >= d.height) {
  35016. c.Za(1);
  35017. return
  35018. }
  35019. var f = this.ca.height / d.height;
  35020. c.gb(this.ca.width / d.width);
  35021. c.pb(f)
  35022. }
  35023. switch (this.Kh) {
  35024. case jd.WK:
  35025. c.p(0, 0.5 * this.o.height);
  35026. break;
  35027. case jd.wU:
  35028. c.p(this.ax, 0.5 * this.o.height)
  35029. }
  35030. },
  35031. Qn: function() {
  35032. this.Bq && (this.$O(), this.Bq = t)
  35033. },
  35034. mia: function() {
  35035. this.lb.De(C.size(this.em / 100 * this.ax, this.ca.height))
  35036. },
  35037. IJ: function() {
  35038. this.Ei(this.lb)
  35039. },
  35040. jD: function() {
  35041. this.Al(this.lb)
  35042. },
  35043. fk: B("LoadingBar"),
  35044. Uh: function() {
  35045. return jd.create()
  35046. },
  35047. xi: function(c) {
  35048. c instanceof jd && (this.Qe = c.Qe, this.uh(c.W), this.Sf(c.Jn, c.MN), this.Gc(c.df), this.Ci(c.em), this.sh(c.Kh))
  35049. }
  35050. }),
  35051. H = jd.prototype;
  35052. C.e(H, "direction", H.$B, H.sh);
  35053. C.e(H, "percent", H.u0, H.Ci);
  35054. H = s;
  35055. jd.create = function(c, d) {
  35056. var f = new jd;
  35057. c !== m && f.Sf(c);
  35058. d !== m && f.Ci(d);
  35059. return f
  35060. };
  35061. jd.WK = 0;
  35062. jd.wU = 1;
  35063. jd.Fk = -1;
  35064. var kd = J.extend({
  35065. lb: s,
  35066. Sd: s,
  35067. QA: s,
  35068. bl: s,
  35069. mm: s,
  35070. lm: s,
  35071. aB: s,
  35072. uL: 0,
  35073. em: 0,
  35074. W: t,
  35075. Qe: q,
  35076. Jn: "",
  35077. gY: "",
  35078. Hba: "",
  35079. Iba: "",
  35080. Gba: "",
  35081. EL: s,
  35082. FL: s,
  35083. HG: s,
  35084. IG: s,
  35085. vL: J.Pa,
  35086. FN: J.Pa,
  35087. rV: J.Pa,
  35088. sV: J.Pa,
  35089. qV: J.Pa,
  35090. sta: t,
  35091. qa: "Slider",
  35092. Bq: q,
  35093. uG: q,
  35094. ctor: function() {
  35095. this.QA = C.size(0, 0);
  35096. this.EL = C.rect(0, 0, 0, 0);
  35097. this.FL = C.rect(0, 0, 0, 0);
  35098. J.prototype.ctor.call(this)
  35099. },
  35100. j: function() {
  35101. return J.prototype.j.call(this) ? q: t
  35102. },
  35103. ol: function() {
  35104. this.lb = C.u.create();
  35105. this.Sd = C.u.create();
  35106. this.Sd.S(0, 0.5);
  35107. this.Yc(this.lb, kd.s4, -1);
  35108. this.Yc(this.Sd, kd.j7, -1);
  35109. this.bl = C.u.create();
  35110. this.mm = C.u.create();
  35111. this.mm.va(t);
  35112. this.lm = C.u.create();
  35113. this.lm.va(t);
  35114. this.aB = C.A.create();
  35115. this.aB.q(this.bl);
  35116. this.aB.q(this.mm);
  35117. this.aB.q(this.lm);
  35118. this.Yc(this.aB, kd.Tja, -1)
  35119. },
  35120. kk: function(c, d) {
  35121. if (c) {
  35122. d = d || J.Pa;
  35123. this.Jn = c;
  35124. this.vL = d;
  35125. var f = this.lb;
  35126. switch (this.vL) {
  35127. case J.Pa:
  35128. this.W ? f.Ce(c) : f.Va(c);
  35129. break;
  35130. case J.ab:
  35131. this.W ? f.pl(c) : f.pc(c)
  35132. }
  35133. f.G(this.Xa());
  35134. f.K(this.rb());
  35135. this.uG = this.Bq = q;
  35136. this.Mf(this.lb.i())
  35137. }
  35138. },
  35139. Eu: function(c, d) {
  35140. if (c) {
  35141. d = d || J.Pa;
  35142. this.gY = c;
  35143. this.FN = d;
  35144. var f = this.Sd;
  35145. switch (this.FN) {
  35146. case J.Pa:
  35147. this.W ? f.Ce(c) : f.Va(c);
  35148. break;
  35149. case J.ab:
  35150. this.W ? f.pl(c) : f.pc(c)
  35151. }
  35152. this.Sd.G(this.Xa());
  35153. this.Sd.K(this.rb());
  35154. this.Sd.S(C.d(0, 0.5));
  35155. f = this.Sd.i();
  35156. this.QA = {
  35157. width: f.width,
  35158. height: f.height
  35159. };
  35160. this.uG = q
  35161. }
  35162. },
  35163. uh: function(c) {
  35164. this.W != c && (this.W = c, this.Ai(this.lb, q), this.Ai(this.Sd, q), this.Sd = this.lb = s, this.W ? (this.lb = C.Sa.create(), this.Sd = C.Sa.create()) : (this.lb = C.u.create(), this.Sd = C.u.create()), this.kk(this.Jn, this.vL), this.Eu(this.gY, this.FN), this.Yc(this.lb, kd.s4, -1), this.Yc(this.Sd, kd.j7, -1), this.W ? (c = this.Cb, this.We(t), this.Qe = c) : this.We(this.Qe), this.rha(this.EL), this.qha(this.FL))
  35165. },
  35166. j1: A("W"),
  35167. We: function(c) {
  35168. if (!this.W || this.W && !c) J.prototype.We.call(this, c),
  35169. this.Qe = c
  35170. },
  35171. Gc: function(c) {
  35172. this.rha(c);
  35173. this.qha(c)
  35174. },
  35175. rha: function(c) {
  35176. this.EL = c;
  35177. this.W && this.lb.Gc(c)
  35178. },
  35179. vTa: A("EL"),
  35180. qha: function(c) {
  35181. this.FL = c;
  35182. this.W && this.Sd.Gc(c)
  35183. },
  35184. zTa: A("FL"),
  35185. Lfa: function(c, d, f, g) {
  35186. this.sC(c, g);
  35187. this.tC(d, g);
  35188. this.rC(f, g)
  35189. },
  35190. sC: function(c, d) {
  35191. if (c) {
  35192. d = d || J.Pa;
  35193. this.Hba = c;
  35194. this.rV = d;
  35195. switch (this.rV) {
  35196. case J.Pa:
  35197. this.bl.Va(c);
  35198. break;
  35199. case J.ab:
  35200. this.bl.pc(c)
  35201. }
  35202. this.bl.G(this.Xa());
  35203. this.bl.K(this.rb())
  35204. }
  35205. },
  35206. tC: function(c, d) {
  35207. if (c) {
  35208. d = d || J.Pa;
  35209. this.Iba = c;
  35210. this.sV = d;
  35211. switch (this.sV) {
  35212. case J.Pa:
  35213. this.mm.Va(c);
  35214. break;
  35215. case J.ab:
  35216. this.mm.pc(c)
  35217. }
  35218. this.mm.G(this.Xa());
  35219. this.mm.K(this.rb())
  35220. }
  35221. },
  35222. rC: function(c, d) {
  35223. if (c) {
  35224. d = d || J.Pa;
  35225. this.Gba = c;
  35226. this.qV = d;
  35227. switch (this.qV) {
  35228. case J.Pa:
  35229. this.lm.Va(c);
  35230. break;
  35231. case J.ab:
  35232. this.lm.pc(c)
  35233. }
  35234. this.lm.G(this.Xa());
  35235. this.lm.K(this.rb())
  35236. }
  35237. },
  35238. Ci: function(c) {
  35239. 100 < c && (c = 100);
  35240. 0 > c && (c = 0);
  35241. this.em = c;
  35242. c = this.uL * (c / 100);
  35243. this.aB.p(C.d(c, this.o.height / 2));
  35244. if (this.W) this.Sd.De(C.size(c, this.QA.height));
  35245. else {
  35246. var d = this.Sd,
  35247. f = d.WH();
  35248. d.qc(C.rect(f.x, f.y, c, f.height), d.jf)
  35249. }
  35250. },
  35251. hC: function(c) {
  35252. c = this.bl.wi(c);
  35253. var d = this.bl.i(),
  35254. d = C.rect(0, 0, d.width, d.height);
  35255. return C.Ju(d, c)
  35256. },
  35257. nc: function(c, d) {
  35258. var f = J.prototype.nc.call(this, c, d);
  35259. if (this.cw) {
  35260. var g = this.wi(this.rm);
  35261. this.Ci(this.jea(g.x));
  35262. this.sga()
  35263. }
  35264. return f
  35265. },
  35266. yd: function(c) {
  35267. c = this.wi(c.mh());
  35268. this.Ci(this.jea(c.x));
  35269. this.sga()
  35270. },
  35271. cd: function(c, d) {
  35272. J.prototype.cd.call(this, c, d)
  35273. },
  35274. Xe: function(c, d) {
  35275. J.prototype.Xe.call(this, c, d)
  35276. },
  35277. jea: function(c) {
  35278. return 100 * (c / this.uL)
  35279. },
  35280. YPa: function(c, d) {
  35281. this.IG = c;
  35282. this.HG = d
  35283. },
  35284. addEventListener: x("mb"),
  35285. sga: function() {
  35286. this.HG && this.IG && this.IG.call(this.HG, this, kd.E5);
  35287. this.mb && this.mb(kd.E5)
  35288. },
  35289. u0: A("em"),
  35290. gc: function() {
  35291. J.prototype.gc.call(this);
  35292. this.uG = this.Bq = q
  35293. },
  35294. Qn: function() {
  35295. this.Bq && (this.$O(), this.Bq = t);
  35296. this.uG && (this.VFa(), this.uG = t)
  35297. },
  35298. Xn: function() {
  35299. return this.lb.i()
  35300. },
  35301. Sr: A("lb"),
  35302. $O: function() {
  35303. if (this.Cb) this.lb.Za(1),
  35304. this.uL = this.o.width;
  35305. else if (this.uL = this.o.width, this.W) this.lb.De(this.o);
  35306. else {
  35307. var c = this.lb.i();
  35308. if (0 >= c.width || 0 >= c.height) {
  35309. this.lb.Za(1);
  35310. return
  35311. }
  35312. var d = this.o.height / c.height;
  35313. this.lb.gb(this.o.width / c.width);
  35314. this.lb.pb(d)
  35315. }
  35316. this.lb.p(this.o.width / 2, this.o.height / 2);
  35317. this.Ci(this.em)
  35318. },
  35319. VFa: function() {
  35320. if (this.Cb) {
  35321. if (!this.W) {
  35322. var c = this.QA,
  35323. d = this.o.width / c.width,
  35324. c = this.o.height / c.height;
  35325. this.Sd.gb(d);
  35326. this.Sd.pb(c)
  35327. }
  35328. } else if (this.W) this.Sd.De(this.o),
  35329. this.QA = this.Sd.i();
  35330. else {
  35331. c = this.QA;
  35332. if (0 >= c.width || 0 >= c.height) {
  35333. this.Sd.Za(1);
  35334. return
  35335. }
  35336. d = this.o.width / c.width;
  35337. c = this.o.height / c.height;
  35338. this.Sd.gb(d);
  35339. this.Sd.pb(c)
  35340. }
  35341. this.Sd.p(0, this.o.height / 2);
  35342. this.Ci(this.em)
  35343. },
  35344. i: function() {
  35345. var c = this.lb.i();
  35346. return C.size(c.width, c.height)
  35347. },
  35348. ef: function() {
  35349. return this.lb.ef()
  35350. },
  35351. Dg: function() {
  35352. return this.lb.Dg()
  35353. },
  35354. KI: function() {
  35355. this.bl.va(q);
  35356. this.mm.va(t);
  35357. this.lm.va(t)
  35358. },
  35359. LI: function() {
  35360. this.bl.va(t);
  35361. this.mm.va(q);
  35362. this.lm.va(t)
  35363. },
  35364. GC: function() {
  35365. this.bl.va(t);
  35366. this.mm.va(t);
  35367. this.lm.va(q)
  35368. },
  35369. fk: B("Slider"),
  35370. Uh: function() {
  35371. return kd.create()
  35372. },
  35373. xi: function(c) {
  35374. this.Qe = c.Qe;
  35375. this.uh(c.W);
  35376. this.kk(c.Jn, c.vL);
  35377. this.Eu(c.gY, c.FN);
  35378. this.sC(c.Hba, c.rV);
  35379. this.tC(c.Iba, c.sV);
  35380. this.rC(c.Gba, c.qV);
  35381. this.Ci(c.em);
  35382. this.HG = c.HG;
  35383. this.IG = c.IG;
  35384. this.mb = c.mb
  35385. },
  35386. IJ: function() {
  35387. this.Ei(this.lb);
  35388. this.Ei(this.Sd);
  35389. this.Ei(this.bl);
  35390. this.Ei(this.mm);
  35391. this.Ei(this.lm)
  35392. },
  35393. jD: function() {
  35394. this.Al(this.lb);
  35395. this.Al(this.Sd);
  35396. this.Al(this.bl);
  35397. this.Al(this.mm);
  35398. this.Al(this.lm)
  35399. }
  35400. }),
  35401. H = kd.prototype;
  35402. C.e(H, "percent", H.u0, H.Ci);
  35403. H = s;
  35404. kd.create = function() {
  35405. var c = new kd;
  35406. return c && c.j() ? c: s
  35407. };
  35408. kd.E5 = 0;
  35409. kd.s4 = -3;
  35410. kd.j7 = -2;
  35411. kd.Tja = -1;
  35412. var ld = J.extend({
  35413. xO: t,
  35414. oN: 1,
  35415. pN: 1,
  35416. Oc: "Thonburi",
  35417. Pc: 10,
  35418. Gaa: 0.5,
  35419. yb: "",
  35420. hB: s,
  35421. EPa: 0,
  35422. DPa: 0,
  35423. qa: "Text",
  35424. xc: s,
  35425. cr: q,
  35426. ctor: function() {
  35427. this.xc = ld.aqa.G7;
  35428. this.hB = C.size(0, 0);
  35429. J.prototype.ctor.call(this)
  35430. },
  35431. j: function(c, d, f) {
  35432. return J.prototype.j.call(this) ? (0 < arguments.length && (this.sa(c), this.Zd(d), this.Od(f)), q) : t
  35433. },
  35434. ol: function() {
  35435. this.yb = C.fa.create();
  35436. C.A.prototype.q.call(this, this.yb, ld.Fk, -1)
  35437. },
  35438. PR: function(c) {
  35439. C.log("Please use the setString");
  35440. this.sa(c)
  35441. },
  35442. sa: function(c) {
  35443. this.yb.sa(c);
  35444. this.Mf(this.yb.i());
  35445. this.cr = q
  35446. },
  35447. getStringValue: function() {
  35448. C.log("Please use the getString");
  35449. return this.yb.Wb()
  35450. },
  35451. Wb: function() {
  35452. return this.yb.Wb()
  35453. },
  35454. zu: function() {
  35455. return this.yb.zu()
  35456. },
  35457. Od: function(c) {
  35458. this.Pc = c;
  35459. this.yb.Od(c);
  35460. this.Mf(this.yb.i());
  35461. this.cr = q
  35462. },
  35463. Vn: A("Pc"),
  35464. Zd: function(c) {
  35465. this.Oc = c;
  35466. this.yb.Zd(c);
  35467. this.Mf(this.yb.i());
  35468. this.cr = q
  35469. },
  35470. ry: function(c) {
  35471. this.yb.N2(c);
  35472. this.Mf(this.yb.i());
  35473. this.cr = q
  35474. },
  35475. RWa: function() {
  35476. return this.yb.rAa()
  35477. },
  35478. Xu: function(c) {
  35479. this.yb.S2(c);
  35480. this.Mf(this.yb.i());
  35481. this.cr = q
  35482. },
  35483. XBa: function() {
  35484. return this.yb.$o
  35485. },
  35486. Yu: function(c) {
  35487. this.yb.y3(c);
  35488. this.Mf(this.yb.i());
  35489. this.cr = q
  35490. },
  35491. YBa: function() {
  35492. return this.yb.xp
  35493. },
  35494. SR: x("xO"),
  35495. PYa: A("xO"),
  35496. KI: function() {
  35497. this.xO && (this.yb.gb(this.oN), this.yb.pb(this.pN))
  35498. },
  35499. LI: function() {
  35500. this.xO && (this.yb.gb(this.oN + this.Gaa), this.yb.pb(this.pN + this.Gaa))
  35501. },
  35502. GC: u(),
  35503. Ak: function() {
  35504. this.Bb ? this.yb.gb( - 1) : this.yb.gb(1)
  35505. },
  35506. gc: function() {
  35507. J.prototype.gc.call(this);
  35508. this.cr = q
  35509. },
  35510. Qn: function() {
  35511. this.cr && (this.BQ(), this.cr = t)
  35512. },
  35513. Xn: function() {
  35514. return this.yb.i()
  35515. },
  35516. Sr: A("yb"),
  35517. BQ: function() {
  35518. if (this.Cb) this.yb.Za(1),
  35519. this.oN = this.pN = 1;
  35520. else {
  35521. this.yb.N2(C.size(this.o.width, this.o.height));
  35522. var c = this.yb.i();
  35523. if (0 >= c.width || 0 >= c.height) {
  35524. this.yb.Za(1);
  35525. return
  35526. }
  35527. var d = this.o.width / c.width,
  35528. c = this.o.height / c.height;
  35529. this.yb.gb(d);
  35530. this.yb.pb(c);
  35531. this.oN = d;
  35532. this.pN = c
  35533. }
  35534. this.yb.p(this.o.width / 2, this.o.height / 2)
  35535. },
  35536. fk: B("Label"),
  35537. a0: function(c, d, f) {
  35538. this.yb.a0(c, d, f)
  35539. },
  35540. $Ra: u(),
  35541. ZRa: u(),
  35542. ARa: u(),
  35543. Uh: function() {
  35544. return ld.create()
  35545. },
  35546. Fp: A("Oc"),
  35547. $H: A("xc"),
  35548. rr: function(c) {
  35549. var d = C.fa.xM.exec(c);
  35550. d && (this.Pc = parseInt(d[1]), this.Oc = d[2], this.yb.rr(c), this.BQ())
  35551. },
  35552. bw: function() {
  35553. return this.yb.bw()
  35554. },
  35555. VN: function(c) {
  35556. this.hB.width = c;
  35557. this.yb.VN(c);
  35558. this.BQ()
  35559. },
  35560. UN: function(c) {
  35561. this.hB.height = c;
  35562. this.yb.UN(c);
  35563. this.BQ()
  35564. },
  35565. KF: function() {
  35566. return this.hB.width
  35567. },
  35568. IW: function() {
  35569. return this.hB.height
  35570. },
  35571. xi: function(c) {
  35572. c instanceof c && (this.Zd(c.Oc), this.Od(c.Vn()), this.sa(c.Wb()), this.SR(c.y6a), this.ry(c.hB), this.Xu(c.yb.$o), this.Yu(c.yb.xp))
  35573. }
  35574. }),
  35575. H = ld.prototype;
  35576. C.e(H, "boundingWidth", H.KF, H.VN);
  35577. C.e(H, "boundingHeight", H.IW, H.UN);
  35578. C.e(H, "string", H.Wb, H.sa);
  35579. C.e(H, "stringLength", H.zu);
  35580. C.e(H, "font", H.bw, H.rr);
  35581. C.e(H, "fontSize", H.Vn, H.Od);
  35582. C.e(H, "fontName", H.Fp, H.Zd);
  35583. C.e(H, "textAlign", H.XBa, H.Xu);
  35584. C.e(H, "verticalAlign", H.YBa, H.Yu);
  35585. H = s;
  35586. ld.create = function(c, d, f) {
  35587. var g = new ld;
  35588. if (0 < arguments.length) {
  35589. if (g && g.j(c, d, f)) return g
  35590. } else if (g && g.j()) return g;
  35591. return s
  35592. };
  35593. ld.Fk = -1;
  35594. ld.aqa = {
  35595. G7: 0,
  35596. vpa: 1
  35597. };
  35598. var md = J.extend({
  35599. Mh: s,
  35600. Tw: "",
  35601. IV: "",
  35602. Tj: 0,
  35603. Oi: 0,
  35604. $Y: "",
  35605. qa: "TextAtlas",
  35606. YF: s,
  35607. ctor: function() {
  35608. J.prototype.ctor.call(this)
  35609. },
  35610. ol: function() {
  35611. this.Mh = new C.Gl;
  35612. this.Mh.S(C.d(0.5, 0.5));
  35613. this.Yc(this.Mh, md.Fk, -1)
  35614. },
  35615. setProperty: function(c, d, f, g, h) {
  35616. this.Tw = c;
  35617. this.IV = d;
  35618. this.Tj = f;
  35619. this.Oi = g;
  35620. this.$Y = h;
  35621. this.Mh.sf(c, this.IV, this.Tj, this.Oi, this.$Y[0]);
  35622. this.Mf(this.Mh.i());
  35623. this.YF = q
  35624. },
  35625. sa: function(c) {
  35626. this.Tw = c;
  35627. this.Mh.sa(c);
  35628. this.Mf(this.Mh.i());
  35629. this.YF = q
  35630. },
  35631. setStringValue: function(c) {
  35632. C.log("Please use the setString");
  35633. this.sa(c)
  35634. },
  35635. getStringValue: function() {
  35636. C.log("Please use the getString");
  35637. return this.Wb()
  35638. },
  35639. Wb: function() {
  35640. return this.Mh.Wb()
  35641. },
  35642. zu: function() {
  35643. return this.Mh.zu()
  35644. },
  35645. gc: function() {
  35646. J.prototype.gc.call(this);
  35647. this.YF = q
  35648. },
  35649. Qn: function() {
  35650. this.YF && (this.gEa(), this.YF = t)
  35651. },
  35652. Xn: function() {
  35653. return this.Mh.i()
  35654. },
  35655. Sr: A("Mh"),
  35656. gEa: function() {
  35657. if (this.Cb) this.Mh.Za(1);
  35658. else {
  35659. var c = this.Mh.i();
  35660. if (0 >= c.width || 0 >= c.height) {
  35661. this.Mh.Za(1);
  35662. return
  35663. }
  35664. var d = this.ca.height / c.height;
  35665. this.Mh.gb(this.ca.width / c.width);
  35666. this.Mh.pb(d)
  35667. }
  35668. this.Mh.p(this.o.width / 2, this.o.height / 2)
  35669. },
  35670. fk: B("LabelAtlas"),
  35671. Uh: function() {
  35672. return md.create()
  35673. },
  35674. xi: function(c) {
  35675. c && this.setProperty(c.Tw, c.IV, c.Tj, c.Oi, c.$Y)
  35676. }
  35677. }),
  35678. H = md.prototype;
  35679. C.e(H, "string", H.Wb, H.sa);
  35680. H = s;
  35681. md.create = function(c, d, f, g, h) {
  35682. var k = new md;
  35683. return k && k.j() ? (0 < arguments.length && k.setProperty(c, d, f, g, h), k) : s
  35684. };
  35685. md.Fk = -1;
  35686. var nd, od = nd = J.extend({
  35687. ah: s,
  35688. A$: t,
  35689. Zra: "",
  35690. Tw: "",
  35691. qa: "TextBMFont",
  35692. WM: q,
  35693. ctor: function() {
  35694. J.prototype.ctor.call(this)
  35695. },
  35696. ol: function() {
  35697. this.ah = C.rv.create();
  35698. this.Yc(this.ah, nd.Fk, -1)
  35699. },
  35700. UC: function(c) {
  35701. c && (this.Zra = c, this.ah.sf("", c), this.AJa(), this.y1(), this.ah.Aa || this.ah.ye(function() {
  35702. this.y1()
  35703. },
  35704. this), this.ah.G(this.Xa()), this.ah.K(this.rb()), this.A$ = q, this.sa(this.Tw))
  35705. },
  35706. PR: function(c) {
  35707. C.log("Please use the setString");
  35708. this.sa(c)
  35709. },
  35710. sa: function(c) {
  35711. this.Tw = c;
  35712. this.A$ && (this.ah.sa(c), this.Mf(this.ah.i()), this.WM = q)
  35713. },
  35714. Wb: A("Tw"),
  35715. zu: function() {
  35716. return this.ah.zu()
  35717. },
  35718. gc: function() {
  35719. J.prototype.gc.call(this);
  35720. this.WM = q
  35721. },
  35722. Qn: function() {
  35723. this.WM && (this.y1(), this.WM = t)
  35724. },
  35725. Xn: function() {
  35726. return this.ah.i()
  35727. },
  35728. Sr: A("ah"),
  35729. y1: function() {
  35730. if (this.Cb) this.ah.Za(1);
  35731. else {
  35732. var c = this.ah.i();
  35733. if (0 >= c.width || 0 >= c.height) {
  35734. this.ah.Za(1);
  35735. return
  35736. }
  35737. var d = this.ca.height / c.height;
  35738. this.ah.gb(this.ca.width / c.width);
  35739. this.ah.pb(d)
  35740. }
  35741. this.ah.p(this.o.width / 2, this.o.height / 2)
  35742. },
  35743. fk: B("LabelBMFont")
  35744. }),
  35745. H = nd.prototype;
  35746. C.e(H, "string", H.Wb, H.setStringValue);
  35747. H = s;
  35748. nd.create = function(c, d) {
  35749. var f = new nd;
  35750. return f && f.j() ? (d && c && (f.UC(d), f.sa(c)), f) : s
  35751. };
  35752. nd.Fk = -1;
  35753. var pd = C.Hj.extend({
  35754. maxLengthEnabled: t,
  35755. maxLength: 0,
  35756. passwordEnabled: t,
  35757. Cw: "",
  35758. iV: t,
  35759. aW: t,
  35760. cX: t,
  35761. YV: t,
  35762. qa: "UICCTextField",
  35763. In: q,
  35764. ctor: function() {
  35765. C.Hj.prototype.ctor.call(this);
  35766. this.maxLengthEnabled = t;
  35767. this.maxLength = 0;
  35768. this.passwordEnabled = t;
  35769. this.Cw = "*";
  35770. this.YV = this.cX = this.aW = this.iV = t
  35771. },
  35772. Z: function() {
  35773. C.Hj.prototype.bq.call(this, this)
  35774. },
  35775. bga: function() {
  35776. this.aJ(q);
  35777. return t
  35778. },
  35779. P1: function(c, d, f) {
  35780. if (1 == f && "\n" == d) return t;
  35781. this.gJ(q);
  35782. return this.maxLengthEnabled && C.Hj.prototype.YB.call(this) >= this.maxLength ? q: t
  35783. },
  35784. cga: function() {
  35785. this.cJ(q);
  35786. return t
  35787. },
  35788. dga: function() {
  35789. this.dJ(q);
  35790. return t
  35791. },
  35792. lI: function(c, d) {
  35793. "\n" != c && this.maxLengthEnabled && this.Wb().length >= this.maxLength ? this.passwordEnabled && this.FR(this.Wb()) : (C.Hj.prototype.lI.call(this, c, d), this.passwordEnabled && 0 < C.Hj.prototype.YB.call(this) && this.FR(this.Wb()))
  35794. },
  35795. mP: function() {
  35796. C.Hj.prototype.mP.call(this);
  35797. 0 < C.Hj.prototype.YB.call(this) && this.passwordEnabled && this.FR(this.Ni)
  35798. },
  35799. F0a: function() {
  35800. C.Hj.prototype.pH.call(this)
  35801. },
  35802. WQa: function() {
  35803. C.Hj.prototype.nP.call(this)
  35804. },
  35805. my: x("maxLengthEnabled"),
  35806. qI: A("maxLengthEnabled"),
  35807. qs: x("maxLength"),
  35808. Kx: A("maxLength"),
  35809. YB: function() {
  35810. return C.Hj.prototype.YB.call(this)
  35811. },
  35812. ny: x("passwordEnabled"),
  35813. rI: A("passwordEnabled"),
  35814. WC: function(c) {
  35815. if (! (1 < c.length)) {
  35816. var d = c.charCodeAt(0);
  35817. 33 > d || 126 < d || (this.Cw = c)
  35818. }
  35819. },
  35820. FR: function(c) {
  35821. var d = "",
  35822. f = c.length;
  35823. c = f;
  35824. this.maxLengthEnabled && f > this.maxLength && (c = this.maxLength);
  35825. for (f = 0; f < c; ++f) d += this.Cw;
  35826. C.fa.prototype.sa.call(this, d)
  35827. },
  35828. aJ: x("iV"),
  35829. yP: A("iV"),
  35830. dJ: x("aW"),
  35831. DP: A("aW"),
  35832. gJ: x("cX"),
  35833. FP: A("cX"),
  35834. cJ: x("YV"),
  35835. CP: A("YV"),
  35836. j: function() {
  35837. return J.prototype.j.call(this) ? (this.vh(q), q) : t
  35838. },
  35839. AEa: B(t)
  35840. });
  35841. pd.create = function(c, d, f) {
  35842. var g = new pd;
  35843. return g && g.sf("", d, f) ? (c && g.Di(c), g) : s
  35844. };
  35845. var qd = J.extend({
  35846. za: s,
  35847. yO: 0,
  35848. vO: 0,
  35849. fca: t,
  35850. zr: s,
  35851. Ar: s,
  35852. bOa: s,
  35853. xOa: s,
  35854. TOa: s,
  35855. uOa: s,
  35856. cOa: s,
  35857. yOa: s,
  35858. UOa: s,
  35859. vOa: s,
  35860. Cw: "",
  35861. In: q,
  35862. ctor: function() {
  35863. J.prototype.ctor.call(this)
  35864. },
  35865. j: function() {
  35866. return J.prototype.j.call(this) ? (this.vh(q), q) : t
  35867. },
  35868. Z: function() {
  35869. J.prototype.Z.call(this);
  35870. this.TR(q)
  35871. },
  35872. Na: function() {
  35873. this.TR(t);
  35874. L.prototype.Na.call(this)
  35875. },
  35876. ol: function() {
  35877. this.za = pd.create("input words here", "Thonburi", 20);
  35878. this.Yc(this.za, qd.Fk, -1)
  35879. },
  35880. u3: function(c) {
  35881. this.yO = c.width;
  35882. this.vO = c.height
  35883. },
  35884. u5a: x("fca"),
  35885. Qn: function() {
  35886. this.In && (this.cJa(), this.In = t)
  35887. },
  35888. hC: function(c) {
  35889. if (this.fca) {
  35890. c = this.wi(c);
  35891. var d = C.rect( - this.yO * this.Ab.x, -this.vO * this.Ab.y, this.yO, this.vO);
  35892. if (c.x >= d.origin.x && c.x <= d.origin.x + d.size.width && c.y >= d.origin.y && c.y <= d.origin.y + d.size.height) return q
  35893. } else return J.prototype.hC.call(this, c);
  35894. return t
  35895. },
  35896. jXa: function() {
  35897. return C.size(this.yO, this.vO)
  35898. },
  35899. PR: function(c) {
  35900. C.log("Please use the setString");
  35901. this.sa(c)
  35902. },
  35903. sa: function(c) {
  35904. c && (c = String(c), this.qI() && (c = c.substr(0, this.Kx())), this.rI() ? (this.za.FR(c), this.za.sa(""), this.za.lI(c, c.length)) : this.za.sa(c), this.In = q, this.Mf(this.za.i()))
  35905. },
  35906. Di: function(c) {
  35907. this.za.Di(c);
  35908. this.In = q;
  35909. this.Mf(this.za.i())
  35910. },
  35911. cC: function() {
  35912. return this.za.cC()
  35913. },
  35914. rr: function(c) {
  35915. this.za.rr(c);
  35916. this.In = q
  35917. },
  35918. bw: function() {
  35919. return this.za.bw()
  35920. },
  35921. Od: function(c) {
  35922. this.za.Od(c);
  35923. this.In = q;
  35924. this.Mf(this.za.i())
  35925. },
  35926. Vn: function() {
  35927. return this.za.NWa()
  35928. },
  35929. Zd: function(c) {
  35930. this.za.Zd(c);
  35931. this.In = q;
  35932. this.Mf(this.za.i())
  35933. },
  35934. Fp: function() {
  35935. return this.za.MWa()
  35936. },
  35937. Fya: function() {
  35938. this.za.nP()
  35939. },
  35940. getStringValue: function() {
  35941. C.log("Please use the getString");
  35942. return this.Wb()
  35943. },
  35944. Wb: function() {
  35945. return this.za.Wb()
  35946. },
  35947. zu: function() {
  35948. return this.za.zu()
  35949. },
  35950. nc: function(c, d) {
  35951. var f = this,
  35952. g = J.prototype.nc.call(f, c, d);
  35953. f.cw && setTimeout(function() {
  35954. f.za.pH()
  35955. },
  35956. 0);
  35957. return g
  35958. },
  35959. my: function(c) {
  35960. this.za.my(c)
  35961. },
  35962. qI: function() {
  35963. return this.za.qI()
  35964. },
  35965. qs: function(c) {
  35966. this.za.qs(c);
  35967. this.sa(this.Wb())
  35968. },
  35969. Kx: function() {
  35970. return this.za.Kx()
  35971. },
  35972. ny: function(c) {
  35973. this.za.ny(c)
  35974. },
  35975. rI: function() {
  35976. return this.za.rI()
  35977. },
  35978. WC: function(c) {
  35979. this.za.WC(c);
  35980. this.Cw = c;
  35981. this.sa(this.Wb())
  35982. },
  35983. WVa: A("Cw"),
  35984. update: function() {
  35985. this.yP() && (this.bxa(), this.aJ(t));
  35986. this.DP() && (this.Bya(), this.dJ(t));
  35987. this.FP() && (this.hDa(), this.gJ(t), this.In = q, this.Mf(this.za.i()));
  35988. this.CP() && (this.yya(), this.cJ(t), this.In = q, this.Mf(this.za.i()))
  35989. },
  35990. yP: function() {
  35991. return this.za.yP()
  35992. },
  35993. aJ: function(c) {
  35994. this.za.aJ(c)
  35995. },
  35996. DP: function() {
  35997. return this.za.DP()
  35998. },
  35999. dJ: function(c) {
  36000. this.za.dJ(c)
  36001. },
  36002. FP: function() {
  36003. return this.za.FP()
  36004. },
  36005. gJ: function(c) {
  36006. this.za.gJ(c)
  36007. },
  36008. CP: function() {
  36009. return this.za.CP()
  36010. },
  36011. cJ: function(c) {
  36012. this.za.cJ(c)
  36013. },
  36014. bxa: function() {
  36015. this.zr && this.Ar && this.Ar.call(this.zr, this, qd.Xla);
  36016. this.mb && this.mb(this, 0)
  36017. },
  36018. Bya: function() {
  36019. this.zr && this.Ar && this.Ar.call(this.zr, this, qd.Zla);
  36020. this.mb && this.mb(this, 1)
  36021. },
  36022. hDa: function() {
  36023. this.zr && this.Ar && this.Ar.call(this.zr, this, qd.$la);
  36024. this.mb && this.mb(this, 2)
  36025. },
  36026. yya: function() {
  36027. this.zr && this.Ar && this.Ar.call(this.zr, this, qd.Yla);
  36028. this.mb && this.mb(this, 3)
  36029. },
  36030. ZPa: function(c, d) {
  36031. this.Ar = c;
  36032. this.zr = d
  36033. },
  36034. S: function(c, d) {
  36035. d === m ? (J.prototype.S.call(this, c), this.za.S(c)) : (J.prototype.S.call(this, c, d), this.za.S(c, d))
  36036. },
  36037. Re: function(c) {
  36038. J.prototype.Re.call(this, c);
  36039. this.za.Re(c)
  36040. },
  36041. Se: function(c) {
  36042. J.prototype.Se.call(this, c);
  36043. this.za.Se(c)
  36044. },
  36045. gc: function() {
  36046. J.prototype.gc.call(this);
  36047. this.In = q
  36048. },
  36049. cJa: function() {
  36050. if (this.Cb) {
  36051. this.za.Za(1);
  36052. var c = this.i();
  36053. this.ca.width = c.width;
  36054. this.ca.height = c.height
  36055. } else {
  36056. c = this.i();
  36057. if (0 >= c.width || 0 >= c.height) {
  36058. this.za.Za(1);
  36059. return
  36060. }
  36061. var d = this.ca.height / c.height;
  36062. this.za.gb(this.ca.width / c.width);
  36063. this.za.pb(d)
  36064. }
  36065. this.za.p(this.o.width / 2, this.o.height / 2)
  36066. },
  36067. i: function() {
  36068. return this.za.i()
  36069. },
  36070. ef: function() {
  36071. return this.za.ef()
  36072. },
  36073. Dg: function() {
  36074. return this.za.Dg()
  36075. },
  36076. Sr: A("za"),
  36077. IJ: function() {
  36078. this.Ei(this.za)
  36079. },
  36080. jD: function() {
  36081. this.Al(this.za)
  36082. },
  36083. fk: B("TextField"),
  36084. pH: function() {
  36085. this.za.pH()
  36086. },
  36087. Uh: function() {
  36088. return qd.create()
  36089. },
  36090. xi: function(c) {
  36091. this.sa(c.za.Wb());
  36092. this.Di(c.Wb());
  36093. this.Od(c.za.Vn());
  36094. this.Zd(c.za.Fp());
  36095. this.my(c.qI());
  36096. this.qs(c.Kx());
  36097. this.ny(c.rI());
  36098. this.WC(c.Cw);
  36099. this.aJ(c.yP());
  36100. this.dJ(c.DP());
  36101. this.gJ(c.FP());
  36102. this.cJ(c.CP())
  36103. }
  36104. });
  36105. qd.create = function(c, d, f) {
  36106. var g = new qd;
  36107. return g && g.j() ? (c && (d && f) && (g.Di(c), g.Zd(d), g.Od(f)), g) : s
  36108. };
  36109. H = qd.prototype;
  36110. C.e(H, "string", H.Wb, H.sa);
  36111. C.e(H, "placeHolder", H.cC, H.Di);
  36112. C.e(H, "font", H.bw, H.rr);
  36113. C.e(H, "fontSize", H.Vn, H.Od);
  36114. C.e(H, "fontName", H.Fp, H.Zd);
  36115. C.e(H, "maxLengthEnabled", H.qI, H.my);
  36116. C.e(H, "maxLength", H.Kx, H.qs);
  36117. C.e(H, "passwordEnabled", H.rI, H.ny);
  36118. H = s;
  36119. qd.create = function() {
  36120. return new qd
  36121. };
  36122. qd.Xla = 0;
  36123. qd.Zla = 1;
  36124. qd.$la = 2;
  36125. qd.Yla = 3;
  36126. qd.Fk = -1;
  36127. var rd = uc.extend({
  36128. type: 0,
  36129. tag: 0,
  36130. color: s,
  36131. ctor: function() {
  36132. this.tag = this.type = 0;
  36133. this.color = C.color(255, 255, 255, 255)
  36134. },
  36135. j: function(c, d, f) {
  36136. this.tag = c;
  36137. this.color.r = d.r;
  36138. this.color.g = d.g;
  36139. this.color.b = d.b;
  36140. this.color.a = f
  36141. }
  36142. }),
  36143. sd = rd.extend({
  36144. text: "",
  36145. fontName: "",
  36146. fontSize: 0,
  36147. ctor: function() {
  36148. rd.prototype.ctor.call(this);
  36149. this.type = rd.iU;
  36150. this.fontName = this.text = "";
  36151. this.fontSize = 0
  36152. },
  36153. j: function(c, d, f, g, h, k) {
  36154. rd.prototype.j.call(this, c, d, f);
  36155. this.text = g;
  36156. this.fontName = h;
  36157. this.fontSize = k
  36158. }
  36159. });
  36160. sd.create = function(c, d, f, g, h, k) {
  36161. var n = new sd;
  36162. n.j(c, d, f, g, h, k);
  36163. return n
  36164. };
  36165. var td = rd.extend({
  36166. sP: "",
  36167. kJa: s,
  36168. lJa: 0,
  36169. ctor: function() {
  36170. rd.prototype.ctor.call(this);
  36171. this.type = rd.lT;
  36172. this.sP = "";
  36173. this.kJa = C.rect(0, 0, 0, 0);
  36174. this.lJa = 0
  36175. },
  36176. j: function(c, d, f, g) {
  36177. rd.prototype.j.call(this, c, d, f);
  36178. this.sP = g
  36179. }
  36180. });
  36181. td.create = function(c, d, f, g) {
  36182. var h = new td;
  36183. h.j(c, d, f, g);
  36184. return h
  36185. };
  36186. var ud = rd.extend({
  36187. kP: s,
  36188. ctor: function() {
  36189. rd.prototype.ctor.call(this);
  36190. this.type = rd.hq;
  36191. this.kP = s
  36192. },
  36193. j: function(c, d, f, g) {
  36194. rd.prototype.j.call(this, c, d, f);
  36195. this.kP = g
  36196. }
  36197. });
  36198. ud.create = function(c, d, f, g) {
  36199. var h = new ud;
  36200. h.j(c, d, f, g);
  36201. return h
  36202. };
  36203. var vd = J.extend({
  36204. $v: t,
  36205. VA: s,
  36206. mt: s,
  36207. sn: 0,
  36208. CZ: 0,
  36209. lt: s,
  36210. ctor: function() {
  36211. J.prototype.ctor.call(this);
  36212. this.$v = t;
  36213. this.VA = [];
  36214. this.mt = [];
  36215. this.CZ = this.sn = 0
  36216. },
  36217. ol: function() {
  36218. this.lt = C.A.create();
  36219. this.lt.S(0.5, 0.5);
  36220. this.Yc(this.lt, 0, -1)
  36221. },
  36222. VXa: function(c, d) {
  36223. this.VA.splice(d, 0, c);
  36224. this.$v = q
  36225. },
  36226. v1a: function(c) {
  36227. this.VA.push(c);
  36228. this.$v = q
  36229. },
  36230. h2a: function(c) {
  36231. "number" === typeof c ? this.VA.splice(c, 1) : C.Id(this.VA, c);
  36232. this.$v = q
  36233. },
  36234. Pza: function() {
  36235. if (this.$v) {
  36236. this.lt.xf();
  36237. this.mt.length = 0;
  36238. var c, d, f = this.VA;
  36239. if (this.Cb) {
  36240. this.RO();
  36241. for (c = 0; c < f.length; c++) {
  36242. d = f[c];
  36243. var g = s;
  36244. switch (d.type) {
  36245. case rd.iU:
  36246. g = C.fa.create(d.text, d.fontName, d.fontSize);
  36247. break;
  36248. case rd.lT:
  36249. g = C.u.create(d.sP);
  36250. break;
  36251. case rd.hq:
  36252. g = d.kP
  36253. }
  36254. g.G(d.color);
  36255. g.K(d.color.a);
  36256. this.SI(g)
  36257. }
  36258. } else {
  36259. this.RO();
  36260. for (c = 0; c < f.length; c++) switch (d = f[c], d.type) {
  36261. case rd.iU:
  36262. this.Lea(d.text, d.fontName, d.fontSize, d.color);
  36263. break;
  36264. case rd.lT:
  36265. this.zCa(d.sP, d.color, d.color.a);
  36266. break;
  36267. case rd.hq:
  36268. this.Kea(d.kP)
  36269. }
  36270. }
  36271. this.Oza();
  36272. this.$v = t
  36273. }
  36274. },
  36275. Lea: function(c, d, f, g) {
  36276. var h = C.fa.create(c, d, f),
  36277. k = h.i().width;
  36278. this.sn -= k;
  36279. 0 > this.sn ? (h = c.length * (1 - -this.sn / k), k = c.substr(0, h), c = c.substr(h, c.length - 1), 0 < h && (h = C.fa.create(k.substr(0, h), d, f), h.G(g), h.K(g.a), this.SI(h)), this.RO(), this.Lea(c, d, f, g)) : (h.G(g), h.K(g.a), this.SI(h))
  36280. },
  36281. zCa: function(c) {
  36282. c = C.u.create(c);
  36283. this.Kea(c)
  36284. },
  36285. Kea: function(c) {
  36286. var d = c.i();
  36287. this.sn -= d.width;
  36288. 0 > this.sn ? (this.RO(), this.SI(c), this.sn -= d.width) : this.SI(c)
  36289. },
  36290. RO: function() {
  36291. this.sn = this.mc.width;
  36292. this.mt.push([])
  36293. },
  36294. Oza: function() {
  36295. var c = 0,
  36296. d = this.lt,
  36297. f = this.mt;
  36298. if (this.Cb) {
  36299. for (var g = 0,
  36300. h = f[0], k = 0, n = 0; n < h.length; n++) {
  36301. var p = h[n];
  36302. p.S(C.d(0, 0));
  36303. p.p(C.d(k, 0));
  36304. d.q(p, 1, n);
  36305. f = p.i();
  36306. g += f.width;
  36307. c = Math.max(c, f.height);
  36308. k += f.width
  36309. }
  36310. d.Ca(C.size(g, c))
  36311. } else {
  36312. for (var g = [], r = 0; r < f.length; r++) {
  36313. h = f[r];
  36314. for (n = k = 0; n < h.length; n++) p = h[n],
  36315. k = Math.max(p.i().height, k);
  36316. g[r] = k;
  36317. c += g[r]
  36318. }
  36319. c = this.mc.height;
  36320. for (r = 0; r < f.length; r++) {
  36321. h = f[r];
  36322. k = 0;
  36323. c -= g[r] + this.CZ;
  36324. for (n = 0; n < h.length; n++) p = h[n],
  36325. p.S(C.d(0, 0)),
  36326. p.p(C.d(k, c)),
  36327. d.q(p, 1, 10 * r + n),
  36328. k += p.i().width
  36329. }
  36330. d.Ca(this.ca)
  36331. }
  36332. this.mt.length = 0;
  36333. this.Cb ? (h = this.Xn(), this.ca.width = h.width, this.ca.height = h.height) : (this.ca.width = this.mc.width, this.ca.height = this.mc.height);
  36334. this.Mf(this.ca);
  36335. d.p(0.5 * this.o.width, 0.5 * this.o.height)
  36336. },
  36337. SI: function(c) {
  36338. 0 >= this.mt.length || this.mt[this.mt.length - 1].push(c)
  36339. },
  36340. J: function(c) {
  36341. this.Wc && (this.Pza(), J.prototype.J.call(this, c))
  36342. },
  36343. L5a: x("CZ"),
  36344. S: function(c) {
  36345. J.prototype.S.call(this, c);
  36346. this.lt.S(c)
  36347. },
  36348. Xn: function() {
  36349. return this.lt.i()
  36350. },
  36351. i: function() {
  36352. return this.lt.i()
  36353. },
  36354. We: function(c) {
  36355. this.Cb != c && (this.$v = q, J.prototype.We.call(this, c))
  36356. },
  36357. fk: B("RichText")
  36358. });
  36359. vd.create = function() {
  36360. return new vd
  36361. };
  36362. rd.iU = 0;
  36363. rd.lT = 1;
  36364. rd.hq = 2;
  36365. var T = L.extend({
  36366. z: s,
  36367. direction: s,
  36368. Mo: s,
  36369. Rh: 0,
  36370. fi: 0,
  36371. bg: 0,
  36372. kf: 0,
  36373. Ro: 0,
  36374. No: 0,
  36375. Po: 0,
  36376. Qo: 0,
  36377. WE: t,
  36378. oz: 0,
  36379. Ql: 0,
  36380. XE: 0,
  36381. eX: t,
  36382. lN: t,
  36383. Xg: s,
  36384. wL: t,
  36385. Qw: 0,
  36386. jN: s,
  36387. iF: 0,
  36388. Et: t,
  36389. hu: t,
  36390. St: t,
  36391. Ys: t,
  36392. su: t,
  36393. bF: t,
  36394. Oo: s,
  36395. yL: 0,
  36396. iI: t,
  36397. mf: s,
  36398. nf: s,
  36399. qa: "ScrollView",
  36400. mb: s,
  36401. ctor: function() {
  36402. L.prototype.ctor.call(this);
  36403. this.direction = T.Fla;
  36404. this.Mo = C.d(0, 0);
  36405. this.Qo = this.Po = this.No = this.Ro = this.kf = this.bg = this.fi = this.Rh = 0;
  36406. this.WE = t;
  36407. this.Ql = this.oz = 0;
  36408. this.XE = -1E3;
  36409. this.lN = this.eX = t;
  36410. this.Xg = C.d(0, 0);
  36411. this.wL = t;
  36412. this.Qw = 0;
  36413. this.jN = C.d(0, 0);
  36414. this.iF = 5;
  36415. this.bF = this.su = this.Ys = this.St = this.hu = this.Et = t;
  36416. this.Oo = C.d(0, 0);
  36417. this.yL = 0;
  36418. this.iI = q;
  36419. this.nf = this.mf = s
  36420. },
  36421. j: function() {
  36422. return L.prototype.j.call(this) ? (this.aq(q), this.z.vh(t), q) : t
  36423. },
  36424. Z: function() {
  36425. L.prototype.Z.call(this);
  36426. this.Lu(q)
  36427. },
  36428. Pf: function(c, d) {
  36429. return this.Cm() == L.oq || this.Cm() == L.nq ? this.z.Pf(c, d) : J.prototype.Pf.call(this, c, d)
  36430. },
  36431. ol: function() {
  36432. L.prototype.ol.call(this);
  36433. this.z = L.create();
  36434. this.Yc(this.z, 1, 1)
  36435. },
  36436. gc: function() {
  36437. L.prototype.gc.call(this);
  36438. var c = this.o;
  36439. this.Rh = c.height;
  36440. this.kf = c.width;
  36441. var d = c.width / 3,
  36442. f = c.height / 3;
  36443. this.Ro = c.height - f;
  36444. this.No = f;
  36445. this.Po = d;
  36446. this.Qo = this.o.width - d;
  36447. f = this.z.i();
  36448. d = f.height;
  36449. f = Math.max(f.width, c.width);
  36450. d = Math.max(d, c.height);
  36451. this.z.Ca(C.size(f, d));
  36452. this.z.p(0, c.height - this.z.i().height)
  36453. },
  36454. ky: function(c) {
  36455. var d = this.o,
  36456. f = d.width,
  36457. g = d.height,
  36458. h = this.z.i();
  36459. c.width < d.width ? C.log("Inner width \x3c\x3d scrollview width, it will be force sized!") : f = c.width;
  36460. c.height < d.height ? C.log("Inner height \x3c\x3d scrollview height, it will be force sized!") : g = c.height;
  36461. this.z.yf(C.size(f, g));
  36462. switch (this.direction) {
  36463. case T.wo:
  36464. c = this.z.i();
  36465. h = h.height - c.height;
  36466. this.ko(0, h);
  36467. break;
  36468. case T.vo:
  36469. this.z.Fc() <= d.width && (c = this.z.i(), h = h.width - c.width, this.ko(h, 0));
  36470. break;
  36471. case T.zg:
  36472. c = this.z.i(),
  36473. f = h.height - c.height,
  36474. g = 0,
  36475. this.z.Fc() <= d.width && (g = h.width - c.width),
  36476. this.ko(g, f)
  36477. }
  36478. h = this.z;
  36479. c = h.i();
  36480. f = h.Ld();
  36481. g = h.dk();
  36482. 0 < h.yc() && h.p(g.x * c.width, f.y);
  36483. h.Fc() < d.width && h.p(d.width - (1 - g.x) * c.width, f.y);
  36484. 0 < f.y && h.p(f.x, g.y * c.height);
  36485. h.Be() < d.height && h.p(f.x, d.height - (1 - g.y) * c.height)
  36486. },
  36487. $ua: function(c) {
  36488. var d = this.o.width,
  36489. f = d,
  36490. g = this.z,
  36491. h = g.width;
  36492. c < d ? C.log("Inner width \x3c\x3d scrollview width, it will be force sized!") : f = c;
  36493. g.width = f;
  36494. switch (this.direction) {
  36495. case T.vo:
  36496. case T.zg:
  36497. g.Fc() <= d && this.ko(h - g.width, 0)
  36498. }
  36499. c = g.anchorX;
  36500. 0 < g.yc() && (g.x = c * f);
  36501. g.Fc() < d && (g.x = d - (1 - c) * f)
  36502. },
  36503. Zua: function(c) {
  36504. var d = this.o.height,
  36505. f = d,
  36506. g = this.z,
  36507. h = g.height;
  36508. c < d ? C.log("Inner height \x3c\x3d scrollview height, it will be force sized!") : f = c;
  36509. g.height = f;
  36510. switch (this.direction) {
  36511. case T.wo:
  36512. case T.zg:
  36513. this.ko(0, h - f)
  36514. }
  36515. c = g.anchorY;
  36516. 0 < g.yc() && (g.y = c * f);
  36517. g.Fc() < d && (g.y = d - (1 - c) * f)
  36518. },
  36519. KAa: function() {
  36520. return this.z.i()
  36521. },
  36522. tsa: function() {
  36523. return this.z.width
  36524. },
  36525. ssa: function() {
  36526. return this.z.height
  36527. },
  36528. q: function(c, d, f) {
  36529. if (!c) return t;
  36530. d = d || c.Wa;
  36531. f = f || c.Fm();
  36532. return this.z.q(c, d, f)
  36533. },
  36534. xf: function() {
  36535. this.Ku(q)
  36536. },
  36537. Ku: function(c) {
  36538. this.z.Ku(c)
  36539. },
  36540. removeChild: function(c, d) {
  36541. return this.z.removeChild(c, d)
  36542. },
  36543. le: function() {
  36544. return this.z.le()
  36545. },
  36546. m0: function() {
  36547. return this.z.m0()
  36548. },
  36549. lj: function(c) {
  36550. return this.z.lj(c)
  36551. },
  36552. Pda: function(c) {
  36553. return this.z.Pda(c)
  36554. },
  36555. SO: function(c, d, f) {
  36556. this.z.SO(c, d, f)
  36557. },
  36558. GP: function(c) {
  36559. return this.z.GP(c)
  36560. },
  36561. fea: function() {
  36562. return this.z.fea()
  36563. },
  36564. removeNode: function(c) {
  36565. this.z.removeNode(c)
  36566. },
  36567. Uga: function(c) {
  36568. this.z.Uga(c)
  36569. },
  36570. Qga: function() {
  36571. this.z.Qga()
  36572. },
  36573. eo: function(c, d) {
  36574. var f = this.z.Ld();
  36575. this.jN.x = f.x + c;
  36576. this.jN.y = f.y + d;
  36577. this.z.p(this.jN)
  36578. },
  36579. hxa: function(c) {
  36580. var d = this.oz;
  36581. this.oz += c;
  36582. if (this.eX) 0 >= this.Ql + this.XE * this.oz ? (this.dD(), this.wH()) : (d = (this.Ql + 0.5 * this.XE * (2 * d + c)) * c, this.ko(d * this.Mo.x, d * this.Mo.y) || (this.dD(), this.wH()));
  36583. else if (this.lN) {
  36584. var d = this.Mo.x * c * this.Ql,
  36585. f = this.Mo.y * c * this.Ql;
  36586. c = this.Fxa(d, f);
  36587. d = this.ko(d, f);
  36588. if (!c || !d) this.dD(),
  36589. this.wH()
  36590. } else this.ko(this.Mo.x * c * this.Ql, this.Mo.y * c * this.Ql) || (this.dD(), this.wH())
  36591. },
  36592. txa: function(c) {
  36593. var d = this.yL,
  36594. f = this.Oo;
  36595. 0 >= d && this.F3();
  36596. this.uxa(f.x * c * d, f.y * c * d) || this.F3()
  36597. },
  36598. wH: function() {
  36599. if (!this.su) return t;
  36600. this.Dxa();
  36601. if (this.hu || this.Ys || this.Et || this.St) {
  36602. var c, d;
  36603. this.hu && this.Et ? (c = C.cc(C.d(0, this.o.height), C.d(this.z.yc(), this.z.Be())), d = C.Ye(c) / 0.2, this.Oo = C.vf(c), this.$u(d)) : this.hu && this.St ? (c = C.cc(C.d(this.o.width, this.o.height), C.d(this.z.Fc(), this.z.Be())), d = C.Ye(c) / 0.2, this.Oo = C.vf(c), this.$u(d)) : this.Ys && this.Et ? (c = C.cc(C.d(0, 0), C.d(this.z.yc(), this.z.wd())), d = C.Ye(c) / 0.2, this.Oo = C.vf(c), this.$u(d)) : this.Ys && this.St ? (c = C.cc(C.d(this.o.width, 0), C.d(this.z.Fc(), this.z.wd())), d = C.Ye(c) / 0.2, this.Oo = C.vf(c), this.$u(d)) : this.hu ? (c = C.cc(C.d(0, this.o.height), C.d(0, this.z.Be())), d = C.Ye(c) / 0.2, this.Oo = C.vf(c), this.$u(d)) : this.Ys ? (c = C.cc(C.d(0, 0), C.d(0, this.z.wd())), d = C.Ye(c) / 0.2, this.Oo = C.vf(c), this.$u(d)) : this.Et ? (c = C.cc(C.d(0, 0), C.d(this.z.yc(), 0)), d = C.Ye(c) / 0.2, this.Oo = C.vf(c), this.$u(d)) : this.St && (c = C.cc(C.d(this.o.width, 0), C.d(this.z.Fc(), 0)), d = C.Ye(c) / 0.2, this.Oo = C.vf(c), this.$u(d));
  36604. return q
  36605. }
  36606. return t
  36607. },
  36608. Dxa: function() {
  36609. this.z.wd() > this.fi ? (this.ks(), this.Ys = q) : this.Ys = t;
  36610. this.z.Be() < this.Rh ? (this.ns(), this.hu = q) : this.hu = t;
  36611. this.z.Fc() < this.kf ? (this.ms(), this.St = q) : this.St = t;
  36612. this.z.yc() > this.bg ? (this.ls(), this.Et = q) : this.Et = t
  36613. },
  36614. $u: function(c) {
  36615. this.yL = c;
  36616. this.bF = q
  36617. },
  36618. F3: function() {
  36619. this.bF = t;
  36620. this.yL = 0;
  36621. this.Ys = this.hu = this.St = this.Et = t
  36622. },
  36623. Oia: function(c, d, f, g) {
  36624. this.dD();
  36625. this.Mo = c;
  36626. this.eX = f;
  36627. this.Ql = d;
  36628. this.WE = q;
  36629. this.XE = g
  36630. },
  36631. po: function(c, d, f) {
  36632. this.lN = t;
  36633. this.Xg = c;
  36634. var g = C.cc(c, this.z.Ld());
  36635. c = C.vf(g);
  36636. var h = 0,
  36637. k = -1E3,
  36638. g = C.Ye(g);
  36639. f ? (k = -(2 * g) / (d * d), h = 2 * g / d) : (this.lN = q, h = g / d);
  36640. this.Oia(c, h, f, k)
  36641. },
  36642. ao: function(c, d) {
  36643. c.x !== m && (d = c.y, c = c.x);
  36644. var f = c,
  36645. g = d;
  36646. switch (this.direction) {
  36647. case T.wo:
  36648. 0 >= d && (g = Math.max(d, this.o.height - this.z.i().height));
  36649. break;
  36650. case T.vo:
  36651. 0 >= c && (f = Math.max(c, this.o.width - this.z.i().width));
  36652. break;
  36653. case T.zg:
  36654. 0 >= d && (g = Math.max(d, this.o.height - this.z.i().height)),
  36655. 0 >= c && (f = Math.max(c, this.o.width - this.z.i().width))
  36656. }
  36657. this.z.p(f, g)
  36658. },
  36659. dD: function() {
  36660. this.WE = t;
  36661. this.oz = this.Ql = 0
  36662. },
  36663. uxa: function(c, d) {
  36664. var f = q,
  36665. g, h, k;
  36666. 0 < c && 0 < d ? (g = c, h = d, k = this.z.Fc(), k + g >= this.kf && (g = this.kf - k, this.g_(), f = t), k = this.z.Be(), k + d >= this.Rh && (h = this.Rh - k, this.h_(), f = t), this.eo(g, h)) : 0 > c && 0 < d ? (g = c, h = d, k = this.z.yc(), k + g <= this.bg && (g = this.bg - k, this.f_(), f = t), k = this.z.Be(), k + d >= this.Rh && (h = this.Rh - k, this.h_(), f = t), this.eo(g, h)) : 0 > c && 0 > d ? (g = c, h = d, k = this.z.yc(), k + g <= this.bg && (g = this.bg - k, this.f_(), f = t), k = this.z.wd(), k + d <= this.fi && (h = this.fi - k, this.b_(), f = t), this.eo(g, h)) : 0 < c && 0 > d ? (g = c, h = d, k = this.z.Fc(), k + g >= this.kf && (g = this.kf - k, this.g_(), f = t), k = this.z.wd(), k + d <= this.fi && (h = this.fi - k, this.b_(), f = t), this.eo(g, h)) : 0 == c && 0 < d ? (h = d, k = this.z.Be(), k + d >= this.Rh && (h = this.Rh - k, this.h_(), f = t), this.eo(0, h)) : 0 == c && 0 > d ? (h = d, k = this.z.wd(), k + d <= this.fi && (h = this.fi - k, this.b_(), f = t), this.eo(0, h)) : 0 < c && 0 == d ? (g = c, k = this.z.Fc(), k + g >= this.kf && (g = this.kf - k, this.g_(), f = t), this.eo(g, 0)) : 0 > c && 0 == d && (g = c, h = this.z.yc(), h + g <= this.bg && (g = this.bg - h, this.f_(), f = t), this.eo(g, 0));
  36667. return f
  36668. },
  36669. Fxa: function(c, d) {
  36670. var f = q,
  36671. g;
  36672. switch (this.direction) {
  36673. case T.wo:
  36674. 0 < this.Mo.y ? (g = this.z.wd(), g + d >= this.Xg.y && (f = t)) : (g = this.z.wd(), g + d <= this.Xg.y && (f = t));
  36675. break;
  36676. case T.vo:
  36677. 0 < this.Mo.x ? (g = this.z.yc(), g + c >= this.Xg.x && (f = t)) : (g = this.z.yc(), g + c <= this.Xg.x && (f = t));
  36678. break;
  36679. case T.zg:
  36680. 0 < c && 0 < d ? (g = this.z.yc(), g + c >= this.Xg.x && (f = t), g = this.z.wd(), g + d >= this.Xg.y && (f = t)) : 0 > c && 0 < d ? (g = this.z.Fc(), g + c <= this.Xg.x && (f = t), g = this.z.wd(), g + d >= this.Xg.y && (f = t)) : 0 > c && 0 > d ? (g = this.z.Fc(), g + c <= this.Xg.x && (f = t), g = this.z.Be(), g + d <= this.Xg.y && (f = t)) : 0 < c && 0 > d ? (g = this.z.yc(), g + c >= this.Xg.x && (f = t), g = this.z.Be(), g + d <= this.Xg.y && (f = t)) : 0 == c && 0 < d ? (g = this.z.wd(), g + d >= this.Xg.y && (f = t)) : 0 > c && 0 == d ? (g = this.z.Fc(), g + c <= this.Xg.x && (f = t)) : 0 == c && 0 > d ? (g = this.z.Be(), g + d <= this.Xg.y && (f = t)) : 0 < c && 0 == d && (g = this.z.yc(), g + c >= this.Xg.x && (f = t))
  36681. }
  36682. return f
  36683. },
  36684. MTa: function(c) {
  36685. this.Ql -= this.XE * c;
  36686. return this.Ql * c
  36687. },
  36688. ko: function(c, d) {
  36689. var f = q;
  36690. this.OGa();
  36691. switch (this.direction) {
  36692. case T.wo:
  36693. f = this.LGa(c, d);
  36694. break;
  36695. case T.vo:
  36696. f = this.KGa(c, d);
  36697. break;
  36698. case T.zg:
  36699. f = this.JGa(c, d)
  36700. }
  36701. return f
  36702. },
  36703. LGa: function(c, d) {
  36704. var f = d,
  36705. g = q,
  36706. h;
  36707. this.su ? (h = this.z.wd(), h + d >= this.No && (f = this.No - h, this.ks(), g = t), h = this.z.Be(), h + d <= this.Ro && (f = this.Ro - h, this.ns(), g = t)) : (h = this.z.wd(), h + d >= this.fi && (f = this.fi - h, this.ks(), g = t), h = this.z.Be(), h + d <= this.Rh && (f = this.Rh - h, this.ns(), g = t));
  36708. this.eo(0, f);
  36709. return g
  36710. },
  36711. KGa: function(c) {
  36712. var d = q,
  36713. f = c,
  36714. g;
  36715. this.su ? (g = this.z.Fc(), g + c <= this.Qo && (f = this.Qo - g, this.ms(), d = t), g = this.z.yc(), g + c >= this.Po && (f = this.Po - g, this.ls(), d = t)) : (g = this.z.Fc(), g + c <= this.kf && (f = this.kf - g, this.ms(), d = t), g = this.z.yc(), g + c >= this.bg && (f = this.bg - g, this.ls(), d = t));
  36716. this.eo(f, 0);
  36717. return d
  36718. },
  36719. JGa: function(c, d) {
  36720. var f = q,
  36721. g = c,
  36722. h = d,
  36723. k;
  36724. this.su ? 0 < c && 0 < d ? (k = this.z.yc(), k + c >= this.Po && (g = this.Po - k, this.ls(), f = t), k = this.z.wd(), k + d >= this.No && (h = this.No - k, this.ks(), f = t)) : 0 > c && 0 < d ? (k = this.z.Fc(), k + c <= this.Qo && (g = this.Qo - k, this.ms(), f = t), k = this.z.wd(), k + d >= this.No && (h = this.No - k, this.ks(), f = t)) : 0 > c && 0 > d ? (k = this.z.Fc(), k + c <= this.Qo && (g = this.Qo - k, this.ms(), f = t), k = this.z.Be(), k + d <= this.Ro && (h = this.Ro - k, this.ns(), f = t)) : 0 < c && 0 > d ? (k = this.z.yc(), k + c >= this.Po && (g = this.Po - k, this.ls(), f = t), k = this.z.Be(), k + d <= this.Ro && (h = this.Ro - k, this.ns(), f = t)) : 0 == c && 0 < d ? (k = this.z.wd(), k + d >= this.No && (h = this.No - k, this.ks(), f = t)) : 0 > c && 0 == d ? (k = this.z.Fc(), k + c <= this.Qo && (g = this.Qo - k, this.ms(), f = t)) : 0 == c && 0 > d ? (k = this.z.Be(), k + d <= this.Ro && (h = this.Ro - k, this.ns(), f = t)) : 0 < c && 0 == d && (k = this.z.yc(), k + c >= this.Po && (g = this.Po - k, this.ls(), f = t)) : 0 < c && 0 < d ? (k = this.z.yc(), k + c >= this.bg && (g = this.bg - k, this.ls(), f = t), k = this.z.wd(), k + d >= this.fi && (h = this.fi - k, this.ks(), f = t)) : 0 > c && 0 < d ? (k = this.z.Fc(), k + c <= this.kf && (g = this.kf - k, this.ms(), f = t), k = this.z.wd(), k + d >= this.fi && (h = this.fi - k, this.ks(), f = t)) : 0 > c && 0 > d ? (k = this.z.Fc(), k + c <= this.kf && (g = this.kf - k, this.ms(), f = t), k = this.z.Be(), k + d <= this.Rh && (h = this.Rh - k, this.ns(), f = t)) : 0 < c && 0 > d ? (k = this.z.yc(), k + c >= this.bg && (g = this.bg - k, this.ls(), f = t), k = this.z.Be(), k + d <= this.Rh && (h = this.Rh - k, this.ns(), f = t)) : 0 == c && 0 < d ? (k = this.z.wd(), k + d >= this.fi && (h = this.fi - k, this.ks(), f = t)) : 0 > c && 0 == d ? (k = this.z.Fc(), k + c <= this.kf && (g = this.kf - k, this.ms(), f = t)) : 0 == c && 0 > d ? (k = this.z.Be(), k + d <= this.Rh && (h = this.Rh - k, this.ns(), f = t)) : 0 < c && 0 == d && (k = this.z.yc(), k + c >= this.bg && (g = this.bg - k, this.ls(), f = t));
  36725. this.eo(g, h);
  36726. return f
  36727. },
  36728. T2a: function(c, d) {
  36729. this.po(C.d(this.z.Rc(), 0), c, d)
  36730. },
  36731. a3a: function(c, d) {
  36732. this.po(C.d(this.z.Rc(), this.o.height - this.z.i().height), c, d)
  36733. },
  36734. W2a: function(c, d) {
  36735. this.po(C.d(0, this.z.Vd()), c, d)
  36736. },
  36737. $2a: function(c, d) {
  36738. this.po(C.d(this.o.width - this.z.i().width, this.z.Vd()), c, d)
  36739. },
  36740. b3a: function(c, d) {
  36741. this.direction != T.zg ? C.log("Scroll direction is not both!") : this.po(C.d(0, this.o.height - this.z.i().height), c, d)
  36742. },
  36743. c3a: function(c, d) {
  36744. if (this.direction != T.zg) C.log("Scroll direction is not both!");
  36745. else {
  36746. var f = this.z.i();
  36747. this.po(C.d(this.o.width - f.width, this.o.height - f.height), c, d)
  36748. }
  36749. },
  36750. U2a: function(c, d) {
  36751. this.direction != T.zg ? C.log("Scroll direction is not both!") : this.po(C.d(0, 0), c, d)
  36752. },
  36753. V2a: function(c, d) {
  36754. this.direction != T.zg ? C.log("Scroll direction is not both!") : this.po(C.d(this.o.width - this.z.i().width, 0), c, d)
  36755. },
  36756. Z2a: function(c, d, f) {
  36757. var g = this.o.height - this.z.i().height;
  36758. this.po(C.d(this.z.Rc(), g + c * -g / 100), d, f)
  36759. },
  36760. Y2a: function(c, d, f) {
  36761. var g = this.z.i().width - this.o.width;
  36762. this.po(C.d( - (c * g / 100), this.z.Vd()), d, f)
  36763. },
  36764. X2a: function(c, d, f) {
  36765. if (this.direction == T.zg) {
  36766. var g = this.o.height - this.z.i().height,
  36767. h = -g,
  36768. k = this.z.i().width - this.o.width;
  36769. this.po(C.d( - (c.x * k / 100), g + c.y * h / 100), d, f)
  36770. }
  36771. },
  36772. TYa: function() {
  36773. this.ao(this.z.Rc(), 0)
  36774. },
  36775. aZa: function() {
  36776. this.ao(this.z.Rc(), this.o.height - this.z.i().height)
  36777. },
  36778. WYa: function() {
  36779. this.ao(0, this.z.Vd())
  36780. },
  36781. $Ya: function() {
  36782. this.ao(this.o.width - this.z.i().width, this.z.Vd())
  36783. },
  36784. bZa: function() {
  36785. this.direction != T.zg ? C.log("Scroll direction is not both!") : this.ao(0, this.o.height - this.z.i().height)
  36786. },
  36787. cZa: function() {
  36788. if (this.direction != T.zg) C.log("Scroll direction is not both!");
  36789. else {
  36790. var c = this.z.i();
  36791. this.ao(this.o.width - c.width, this.o.height - c.height)
  36792. }
  36793. },
  36794. UYa: function() {
  36795. this.direction != T.zg ? C.log("Scroll direction is not both!") : this.ao(0, 0)
  36796. },
  36797. VYa: function() {
  36798. this.direction != T.zg ? C.log("Scroll direction is not both!") : this.ao(this.o.width - this.z.i().width, 0)
  36799. },
  36800. ZYa: function(c) {
  36801. var d = this.o.height - this.z.i().height;
  36802. this.ao(this.z.Rc(), d + c * -d / 100)
  36803. },
  36804. YYa: function(c) {
  36805. var d = this.z.i().width - this.o.width;
  36806. this.ao( - (c * d / 100), this.z.Vd())
  36807. },
  36808. XYa: function(c) {
  36809. if (this.direction == T.zg) {
  36810. var d = this.z.i(),
  36811. f = this.o.height - d.height;
  36812. this.ao( - (c.x * (d.width - this.o.width) / 100), f + c.y * -f / 100)
  36813. }
  36814. },
  36815. UIa: function() {
  36816. this.WE && this.dD();
  36817. this.bF && this.F3();
  36818. this.Qw = 0
  36819. },
  36820. Aza: function() {
  36821. if (!this.wH() && this.iI && !(0.016 >= this.Qw)) {
  36822. var c = 0,
  36823. d;
  36824. switch (this.direction) {
  36825. case T.wo:
  36826. c = this.Dr.y - this.rm.y;
  36827. d = 0 > c ? T.boa: T.eoa;
  36828. break;
  36829. case T.vo:
  36830. c = this.Dr.x - this.rm.x;
  36831. d = 0 > c ? T.coa: T.doa;
  36832. break;
  36833. case T.zg:
  36834. d = C.cc(this.Dr, this.rm),
  36835. c = C.Ye(d),
  36836. d = C.vf(d)
  36837. }
  36838. c = Math.min(Math.abs(c) / this.Qw, T.Dja);
  36839. this.Oia(d, c, q, -1E3);
  36840. this.Qw = 0
  36841. }
  36842. },
  36843. gI: function() {
  36844. this.UIa();
  36845. this.wL = q
  36846. },
  36847. fI: function(c) {
  36848. c = C.cc(c.mh(), c.JP());
  36849. switch (this.direction) {
  36850. case T.wo:
  36851. this.ko(0, c.y);
  36852. break;
  36853. case T.vo:
  36854. this.ko(c.x, 0);
  36855. break;
  36856. case T.zg:
  36857. this.ko(c.x, c.y)
  36858. }
  36859. },
  36860. fC: function() {
  36861. this.Aza();
  36862. this.wL = t
  36863. },
  36864. nc: function(c, d) {
  36865. var f = L.prototype.nc.call(this, c, d);
  36866. this.cw && this.gI(c);
  36867. return f
  36868. },
  36869. yd: function(c, d) {
  36870. L.prototype.yd.call(this, c, d);
  36871. this.fI(c)
  36872. },
  36873. cd: function(c, d) {
  36874. L.prototype.cd.call(this, c, d);
  36875. this.fC(c)
  36876. },
  36877. Xe: function(c, d) {
  36878. L.prototype.Xe.call(this, c, d)
  36879. },
  36880. update: function(c) {
  36881. this.WE && this.hxa(c);
  36882. this.bF && this.txa(c);
  36883. this.eGa(c)
  36884. },
  36885. eGa: function(c) {
  36886. this.wL && (this.Qw += c)
  36887. },
  36888. Wr: function(c, d, f) {
  36889. var g = f.mh();
  36890. switch (c) {
  36891. case J.lU:
  36892. this.rm.x = g.x;
  36893. this.rm.y = g.y;
  36894. this.gI(f);
  36895. break;
  36896. case J.FE:
  36897. C.Ye(C.cc(d.J0(), g)) > this.iF && (d.vj(t), this.oB.x = g.x, this.oB.y = g.y, this.fI(f));
  36898. break;
  36899. case J.mU:
  36900. case J.Eo:
  36901. this.Dr.x = g.x,
  36902. this.Dr.y = g.y,
  36903. this.fC(f)
  36904. }
  36905. },
  36906. ns: function() {
  36907. this.mf && this.nf && this.nf.call(this.mf, this, T.J5);
  36908. this.mb && this.mb(this, T.J5)
  36909. },
  36910. ks: function() {
  36911. this.mf && this.nf && this.nf.call(this.mf, this, T.G5);
  36912. this.mb && this.mb(this, T.G5)
  36913. },
  36914. ls: function() {
  36915. this.mf && this.nf && this.nf.call(this.mf, this, T.H5);
  36916. this.mb && this.mb(this, T.H5)
  36917. },
  36918. ms: function() {
  36919. this.mf && this.nf && this.nf.call(this.mf, this, T.I5);
  36920. this.mb && this.mb(this, T.I5)
  36921. },
  36922. OGa: function() {
  36923. this.mf && this.nf && this.nf.call(this.mf, this, T.F5);
  36924. this.mb && this.mb(this, T.F5)
  36925. },
  36926. h_: function() {
  36927. this.mf && this.nf && this.nf.call(this.mf, this, T.D5);
  36928. this.mb && this.mb(this, T.D5)
  36929. },
  36930. b_: function() {
  36931. this.mf && this.nf && this.nf.call(this.mf, this, T.A5);
  36932. this.mb && this.mb(this, T.A5)
  36933. },
  36934. f_: function() {
  36935. this.mf && this.nf && this.nf.call(this.mf, this, T.B5);
  36936. this.mb && this.mb(this, T.B5)
  36937. },
  36938. g_: function() {
  36939. this.mf && this.nf && this.nf.call(this.mf, this, T.C5);
  36940. this.mb && this.mb(this, T.C5)
  36941. },
  36942. XPa: function(c, d) {
  36943. this.nf = c;
  36944. this.mf = d
  36945. },
  36946. addEventListener: x("mb"),
  36947. sh: x("direction"),
  36948. $B: A("direction"),
  36949. vR: x("su"),
  36950. kYa: A("su"),
  36951. yHa: x("iI"),
  36952. tYa: A("iI"),
  36953. RUa: A("z"),
  36954. Pm: function(c) {
  36955. this.z.Pm(c)
  36956. },
  36957. Cm: function() {
  36958. return this.z.Cm()
  36959. },
  36960. Vl: function() {
  36961. this.$g && (this.$g = t)
  36962. },
  36963. fk: B("ScrollView"),
  36964. Uh: function() {
  36965. return T.create()
  36966. },
  36967. ux: function(c) {
  36968. L.prototype.ux.call(this, c)
  36969. },
  36970. xi: function(c) {
  36971. c instanceof T && (L.prototype.xi.call(this, c), this.ky(c.KAa()), this.sh(c.direction), this.vR(c.su), this.yHa(c.iI), this.mf = c.mf, this.nf = c.nf, this.mb = c.mb)
  36972. }
  36973. }),
  36974. H = T.prototype;
  36975. C.e(H, "innerWidth", H.tsa, H.$ua);
  36976. C.e(H, "innerHeight", H.ssa, H.Zua);
  36977. H = s;
  36978. T.create = function() {
  36979. return new T
  36980. };
  36981. T.Fla = 0;
  36982. T.wo = 1;
  36983. T.vo = 2;
  36984. T.zg = 3;
  36985. T.J5 = 0;
  36986. T.G5 = 1;
  36987. T.H5 = 2;
  36988. T.I5 = 3;
  36989. T.F5 = 4;
  36990. T.D5 = 5;
  36991. T.A5 = 6;
  36992. T.B5 = 7;
  36993. T.C5 = 8;
  36994. T.Dja = 1E3;
  36995. T.eoa = C.d(0, 1);
  36996. T.boa = C.d(0, -1);
  36997. T.coa = C.d( - 1, 0);
  36998. T.doa = C.d(1, 0);
  36999. var wd = T.extend({
  37000. rw: s,
  37001. Eg: s,
  37002. wt: s,
  37003. pn: 0,
  37004. yA: s,
  37005. zA: s,
  37006. UV: 0,
  37007. gm: q,
  37008. qa: "ListView",
  37009. ctor: function() {
  37010. T.prototype.ctor.call(this);
  37011. this.rw = s;
  37012. this.Eg = [];
  37013. this.wt = wd.hT;
  37014. this.pn = 0;
  37015. this.zA = this.yA = s;
  37016. this.UV = 0;
  37017. this.gm = q
  37018. },
  37019. j: function() {
  37020. return T.prototype.j.call(this) ? (this.Pm(L.oq), q) : t
  37021. },
  37022. BHa: function(c) {
  37023. c && (this.rw = c)
  37024. },
  37025. FJa: function() {
  37026. switch (this.direction) {
  37027. case T.wo:
  37028. for (var c = this.Eg.length,
  37029. d = (c - 1) * this.pn, f = 0; f < c; f++) var g = this.Eg[f],
  37030. d = d + g.i().height;
  37031. c = this.o.width;
  37032. this.ky(C.size(c, d));
  37033. break;
  37034. case T.vo:
  37035. c = this.Eg.length;
  37036. d = (c - 1) * this.pn;
  37037. for (f = 0; f < c; f++) g = this.Eg[f],
  37038. d += g.i().width;
  37039. c = this.o.height;
  37040. this.ky(C.size(d, c))
  37041. }
  37042. },
  37043. YI: function(c) {
  37044. if (c) switch (this.direction) {
  37045. case T.wo:
  37046. var d = c.ml();
  37047. if (d) switch (0 == this.OH(c) ? d.mo(Nc()) : d.mo(new Mc(0, this.pn, 0, 0)), this.wt) {
  37048. case wd.a6:
  37049. d.oc(Ic.bn);
  37050. break;
  37051. case wd.b6:
  37052. d.oc(Ic.Jl);
  37053. break;
  37054. case wd.hT:
  37055. d.oc(Ic.DS)
  37056. } else {
  37057. d = Ic.create();
  37058. switch (this.wt) {
  37059. case wd.a6:
  37060. d.oc(Ic.bn);
  37061. break;
  37062. case wd.b6:
  37063. d.oc(Ic.Jl);
  37064. break;
  37065. case wd.hT:
  37066. d.oc(Ic.DS)
  37067. }
  37068. 0 == this.OH(c) ? d.mo(Nc()) : d.mo(new Mc(0, this.pn, 0, 0));
  37069. c.ly(d)
  37070. }
  37071. break;
  37072. case T.vo:
  37073. if (d = c.ml()) switch (0 == this.OH(c) ? d.mo(Nc()) : d.mo(new Mc(this.pn, 0, 0, 0)), this.wt) {
  37074. case wd.c6:
  37075. d.oc(Ic.U7);
  37076. break;
  37077. case wd.Y5:
  37078. d.oc(Ic.pS);
  37079. break;
  37080. case wd.Z5:
  37081. d.oc(Ic.ES)
  37082. } else {
  37083. d = Ic.create();
  37084. switch (this.wt) {
  37085. case wd.c6:
  37086. d.oc(Ic.U7);
  37087. break;
  37088. case wd.Y5:
  37089. d.oc(Ic.pS);
  37090. break;
  37091. case wd.Z5:
  37092. d.oc(Ic.ES)
  37093. }
  37094. 0 == this.OH(c) ? d.mo(Nc()) : d.mo(new Mc(this.pn, 0, 0, 0));
  37095. c.ly(d)
  37096. }
  37097. }
  37098. },
  37099. u1a: function() {
  37100. if (this.rw) {
  37101. var c = this.rw.s();
  37102. this.YI(c);
  37103. this.q(c);
  37104. this.gm = q
  37105. }
  37106. },
  37107. UXa: function(c) {
  37108. if (this.rw) {
  37109. var d = this.rw.s();
  37110. this.Eg.splice(c, 0, d);
  37111. T.prototype.q.call(this, d);
  37112. this.YI(d);
  37113. this.gm = q
  37114. }
  37115. },
  37116. yga: function(c) {
  37117. this.YI(c);
  37118. this.q(c);
  37119. this.gm = q
  37120. },
  37121. q: function(c, d, f) {
  37122. c && (d = d || c.Wa, f = f || c.Fm(), T.prototype.q.call(this, c, d, f), this.Eg.push(c))
  37123. },
  37124. removeChild: function(c, d) {
  37125. if (c) {
  37126. var f = this.Eg.indexOf(c); - 1 < f && this.Eg.splice(f, 1);
  37127. T.prototype.removeChild.call(this, c, d)
  37128. }
  37129. },
  37130. xf: function() {
  37131. this.Ku(q)
  37132. },
  37133. Ku: function(c) {
  37134. T.prototype.Ku.call(this, c);
  37135. this.Eg = []
  37136. },
  37137. TXa: function(c, d) {
  37138. this.Eg.splice(d, 0, c);
  37139. T.prototype.q.call(this, c);
  37140. this.YI(c);
  37141. this.gm = q
  37142. },
  37143. removeItem: function(c) {
  37144. if (c = this.getItem(c)) this.removeChild(c),
  37145. this.gm = q
  37146. },
  37147. i2a: function() {
  37148. this.removeItem(this.Eg.length - 1)
  37149. },
  37150. S1a: function() {
  37151. this.xf()
  37152. },
  37153. getItem: function(c) {
  37154. return 0 > c || c >= this.Eg.length ? s: this.Eg[c]
  37155. },
  37156. VUa: A("Eg"),
  37157. OH: function(c) {
  37158. return this.Eg.indexOf(c)
  37159. },
  37160. oc: function(c) {
  37161. this.wt != c && (this.wt = c, this.gm = q)
  37162. },
  37163. T2: function(c) {
  37164. this.pn != c && (this.pn = c, this.gm = q)
  37165. },
  37166. WUa: A("pn"),
  37167. sh: function(c) {
  37168. switch (c) {
  37169. case T.wo:
  37170. this.Pm(L.oq);
  37171. break;
  37172. case T.vo:
  37173. this.Pm(L.nq);
  37174. break;
  37175. case T.zg:
  37176. return;
  37177. default:
  37178. return
  37179. }
  37180. T.prototype.sh.call(this, c)
  37181. },
  37182. A2a: function() {
  37183. this.gm = q
  37184. },
  37185. iGa: function() {
  37186. for (var c = 0; c < this.Eg.length; c++) {
  37187. var d = this.Eg[c];
  37188. d.ul(c);
  37189. this.YI(d)
  37190. }
  37191. this.FJa()
  37192. },
  37193. Vl: function() {
  37194. L.prototype.Vl.call(this);
  37195. this.gm && (this.iGa(), this.gm = t)
  37196. },
  37197. VPa: function(c, d) {
  37198. this.yA = d;
  37199. this.zA = c
  37200. },
  37201. addEventListener: x("mb"),
  37202. SGa: function(c) {
  37203. c = c == J.lU ? wd.xna: wd.wna;
  37204. this.yA && this.zA && this.zA.call(this.yA, this, c);
  37205. this.mb && this.mb(this, c)
  37206. },
  37207. Wr: function(c, d, f) {
  37208. T.prototype.Wr.call(this, c, d, f);
  37209. if (1 != c) {
  37210. for (f = d; f;) {
  37211. if (f && f.getParent() == this.z) {
  37212. this.UV = this.OH(f);
  37213. break
  37214. }
  37215. f = f.getParent()
  37216. }
  37217. d.mQ() && this.SGa(c)
  37218. }
  37219. },
  37220. OTa: A("UV"),
  37221. gc: function() {
  37222. T.prototype.gc.call(this);
  37223. this.gm = q
  37224. },
  37225. fk: B("ListView"),
  37226. Uh: function() {
  37227. return wd.create()
  37228. },
  37229. ux: function(c) {
  37230. c = c.Eg;
  37231. for (var d = 0; d < c.length; d++) this.yga(c[d].s())
  37232. },
  37233. xi: function(c) {
  37234. T.prototype.xi.call(this, c);
  37235. this.BHa(c.rw);
  37236. this.T2(c.pn);
  37237. this.oc(c.wt);
  37238. this.yA = c.yA;
  37239. this.zA = c.zA;
  37240. this.mb = c.mb
  37241. }
  37242. });
  37243. wd.create = function() {
  37244. return new wd
  37245. };
  37246. wd.LLa = 0;
  37247. wd.xna = 0;
  37248. wd.wna = 1;
  37249. wd.a6 = 0;
  37250. wd.b6 = 1;
  37251. wd.hT = 2;
  37252. wd.c6 = 3;
  37253. wd.Y5 = 4;
  37254. wd.Z5 = 5;
  37255. var xd = L.extend({
  37256. Mj: 0,
  37257. uc: s,
  37258. wO: s,
  37259. Vva: 0,
  37260. Uva: 0,
  37261. Gta: s,
  37262. xA: s,
  37263. WA: s,
  37264. bg: 0,
  37265. kf: 0,
  37266. fw: t,
  37267. Jj: 0,
  37268. mL: 0,
  37269. lV: 0,
  37270. iF: 0,
  37271. JA: s,
  37272. KA: s,
  37273. qa: "PageView",
  37274. mb: s,
  37275. ctor: function() {
  37276. L.prototype.ctor.call(this);
  37277. this.Mj = 0;
  37278. this.uc = [];
  37279. this.wO = xd.nU;
  37280. this.Uva = this.Vva = 0;
  37281. this.WA = this.xA = this.Gta = s;
  37282. this.kf = this.bg = 0;
  37283. this.fw = t;
  37284. this.lV = this.mL = this.Jj = 0;
  37285. this.iF = 5;
  37286. this.KA = this.JA = s
  37287. },
  37288. j: function() {
  37289. return L.prototype.j.call(this) ? (this.aq(q), q) : t
  37290. },
  37291. Z: function() {
  37292. L.prototype.Z.call(this);
  37293. this.Lu(q)
  37294. },
  37295. lQa: function(c, d, f) {
  37296. if (c && !(0 > d)) {
  37297. var g = this.uc.length;
  37298. d >= g ? f && (d > g && C.log("pageIdx is %d, it will be added as page id [%d]", d, g), d = this.Xxa(), d.q(c), this.TO(d)) : (d = this.uc[d]) && d.q(c)
  37299. }
  37300. },
  37301. Xxa: function() {
  37302. var c = L.create();
  37303. c.Ca(this.i());
  37304. return c
  37305. },
  37306. TO: function(c) {
  37307. c && -1 == this.uc.indexOf(c) && (this.Yc(c), this.uc.push(c), this.$g = q)
  37308. },
  37309. XXa: function(c, d) {
  37310. 0 > d || (!c || -1 != this.uc.indexOf(c)) || (d >= this.uc.length ? this.TO(c) : (this.uc[d] = c, this.Yc(c)), this.$g = q)
  37311. },
  37312. xGa: function(c) {
  37313. c && (this.Ai(c), c = this.uc.indexOf(c), -1 < c && this.uc.splice(c, 1), this.$g = q)
  37314. },
  37315. l2a: function(c) {
  37316. 0 > c || c >= this.uc.length || (c = this.uc[c]) && this.xGa(c)
  37317. },
  37318. V1a: function() {
  37319. for (var c = this.uc,
  37320. d = 0,
  37321. f = c.length; d < f; d++) this.Ai(c[d]);
  37322. this.uc.length = 0
  37323. },
  37324. CJa: function() {
  37325. 0 >= this.uc.length ? this.WA = this.xA = s: (this.xA = this.uc[0], this.WA = this.uc[this.uc.length - 1])
  37326. },
  37327. OVa: function() {
  37328. return this.uc.length
  37329. },
  37330. cWa: function(c) {
  37331. return this.UH().width * (c - this.Mj)
  37332. },
  37333. gc: function() {
  37334. L.prototype.gc.call(this);
  37335. this.kf = this.i().width;
  37336. this.$g = q
  37337. },
  37338. zJa: function() {
  37339. for (var c = this.i(), d = this.uc, f = 0, g = d.length; f < g; f++) d[f].Ca(c)
  37340. },
  37341. yJa: function() {
  37342. var c = this.uc.length;
  37343. if (0 >= c) this.Mj = 0;
  37344. else {
  37345. this.Mj >= c && (this.Mj = c - 1);
  37346. for (var d = this.i().width, f = this.uc, g = 0; g < c; g++) f[g].p(C.d((g - this.Mj) * d, 0))
  37347. }
  37348. },
  37349. A2: function(c) {
  37350. 0 > c || c >= this.uc.length || (this.Mj = c, this.Jj = -this.uc[c].Ld().x, this.mL = Math.abs(this.Jj) / 0.2, this.lV = 0 < this.Jj ? 1 : 0, this.fw = q)
  37351. },
  37352. update: function(c) {
  37353. this.fw && this.gxa(c)
  37354. },
  37355. gxa: function(c) {
  37356. switch (this.lV) {
  37357. case 0:
  37358. c *= this.mL;
  37359. 0 <= this.Jj + c ? (c = -this.Jj, this.Jj = 0, this.fw = t) : this.Jj += c;
  37360. this.$I( - c);
  37361. this.fw || this.qga();
  37362. break;
  37363. case 1:
  37364. c *= this.mL,
  37365. 0 >= this.Jj - c ? (c = this.Jj, this.Jj = 0, this.fw = t) : this.Jj -= c,
  37366. this.$I(c),
  37367. this.fw || this.qga()
  37368. }
  37369. },
  37370. nc: function(c, d) {
  37371. var f = L.prototype.nc.call(this, c, d);
  37372. this.cw && this.gI(c);
  37373. return f
  37374. },
  37375. yd: function(c) {
  37376. this.fI(c);
  37377. var d = this.pg();
  37378. d && d.Wr(J.FE, this, c);
  37379. this.Rfa()
  37380. },
  37381. cd: function(c, d) {
  37382. L.prototype.cd.call(this, c, d);
  37383. this.fC(c)
  37384. },
  37385. Xe: function(c, d) {
  37386. L.prototype.Xe.call(this, c, d);
  37387. this.fC(c)
  37388. },
  37389. Vl: function() {
  37390. this.$g && (this.yJa(), this.zJa(), this.CJa(), this.$g = t)
  37391. },
  37392. E1: function(c) {
  37393. for (var d = this.uc,
  37394. f = d.length,
  37395. g = 0; g < f; g++) {
  37396. var h = d[g],
  37397. k = h.Ld();
  37398. h.p(k.x + c, k.y)
  37399. }
  37400. },
  37401. $I: function(c) {
  37402. if (0 >= this.uc.length || !this.xA || !this.WA) return t;
  37403. var d = c;
  37404. switch (this.wO) {
  37405. case xd.nU:
  37406. if (this.WA.Fc() + c <= this.kf) return d = this.kf - this.WA.Fc(),
  37407. this.E1(d),
  37408. t;
  37409. break;
  37410. case xd.V7:
  37411. if (this.xA.yc() + c >= this.bg) return d = this.bg - this.xA.yc(),
  37412. this.E1(d),
  37413. t
  37414. }
  37415. this.E1(d);
  37416. return q
  37417. },
  37418. gI: u(),
  37419. fI: function(c) {
  37420. c = c.mh().x - c.JP().x;
  37421. 0 > c ? this.wO = xd.nU: 0 < c && (this.wO = xd.V7);
  37422. this.$I(c)
  37423. },
  37424. fC: function() {
  37425. if (! (0 >= this.uc.length)) {
  37426. var c = this.uc[this.Mj];
  37427. if (c) {
  37428. var d = c.Ld(),
  37429. c = this.uc.length,
  37430. d = d.x,
  37431. f = this.UH().width / 2;
  37432. d <= -f ? this.Mj >= c - 1 ? this.$I( - d) : this.A2(this.Mj + 1) : d >= f ? 0 >= this.Mj ? this.$I( - d) : this.A2(this.Mj - 1) : this.A2(this.Mj)
  37433. }
  37434. }
  37435. },
  37436. Wr: function(c, d, f) {
  37437. switch (c) {
  37438. case 0:
  37439. this.gI(f);
  37440. break;
  37441. case 1:
  37442. c = 0;
  37443. c = Math.abs(d.J0().x - f.x);
  37444. c > this.iF && (d.yR(t), this.fI(f));
  37445. break;
  37446. case 2:
  37447. this.fC(f)
  37448. }
  37449. },
  37450. qga: function() {
  37451. this.JA && this.KA && this.KA.call(this.JA, this, xd.L5);
  37452. this.mb && this.mb(this, xd.L5)
  37453. },
  37454. WPa: function(c, d) {
  37455. this.KA = c;
  37456. this.JA = d
  37457. },
  37458. addEventListener: x("mb"),
  37459. NTa: A("Mj"),
  37460. PVa: A("uc"),
  37461. NVa: function(c) {
  37462. return 0 > c || c >= this.uc.size() ? s: this.uc[c]
  37463. },
  37464. fk: B("PageView"),
  37465. Uh: function() {
  37466. return xd.create()
  37467. },
  37468. ux: function(c) {
  37469. c = c.uc;
  37470. for (var d = 0; d < c.length; d++) this.TO(c[d].s())
  37471. },
  37472. xi: function(c) {
  37473. L.prototype.xi.call(this, c);
  37474. this.mb = c.mb;
  37475. this.JA = c.JA;
  37476. this.KA = c.KA
  37477. }
  37478. });
  37479. xd.create = function() {
  37480. var c = new xd;
  37481. return c && c.j() ? c: s
  37482. };
  37483. xd.L5 = 0;
  37484. xd.nU = 0;
  37485. xd.V7 = 1;
  37486. C.zh = C.O.extend({
  37487. Rd: s,
  37488. kd: "",
  37489. Wc: q,
  37490. ctor: function() {
  37491. this.Rd = s;
  37492. this.kd = "";
  37493. this.Wc = q
  37494. },
  37495. j: B(q),
  37496. Z: u(),
  37497. Na: u(),
  37498. update: u(),
  37499. QC: u(),
  37500. isEnabled: A("Wc"),
  37501. Ib: x("Wc"),
  37502. getName: A("kd"),
  37503. Ze: x("kd"),
  37504. VC: x("Rd"),
  37505. iea: A("Rd")
  37506. });
  37507. C.zh.create = function() {
  37508. return new C.zh
  37509. };
  37510. C.o5 = C.O.extend({
  37511. Gh: s,
  37512. Rd: s,
  37513. ctor: function(c) {
  37514. this.Gh = s;
  37515. this.Rd = c
  37516. },
  37517. Rda: function(c) {
  37518. c || e("cc.ComponentContainer.getComponent(): name should be non-null");
  37519. c = c.trim();
  37520. return this.Gh[c]
  37521. },
  37522. add: function(c) {
  37523. c || e("cc.ComponentContainer.add(): component should be non-null");
  37524. if (c.Rd) return C.log("cc.ComponentContainer.add(): Component already added. It can't be added again"),
  37525. t;
  37526. this.Gh == s && (this.Gh = {},
  37527. this.Rd.Lu());
  37528. if (this.Gh[c.getName()]) return C.log("cc.ComponentContainer.add(): Component already added. It can't be added again"),
  37529. t;
  37530. c.VC(this.Rd);
  37531. this.Gh[c.getName()] = c;
  37532. c.Z();
  37533. return q
  37534. },
  37535. remove: function(c) {
  37536. c || e("cc.ComponentContainer.remove(): name should be non-null");
  37537. if (!this.Gh) return t;
  37538. if (c instanceof C.zh) return this.eba(c);
  37539. c = c.trim();
  37540. return this.eba(this.Gh[c])
  37541. },
  37542. eba: function(c) {
  37543. if (c) return t;
  37544. c.Na();
  37545. c.VC(s);
  37546. delete this.Gh[c.getName()];
  37547. return q
  37548. },
  37549. mk: function() {
  37550. if (this.Gh) {
  37551. var c = this.Gh,
  37552. d;
  37553. for (d in c) {
  37554. var f = c[d];
  37555. f.Na();
  37556. f.VC(s);
  37557. delete c[d]
  37558. }
  37559. this.Rd.hD();
  37560. this.Gh = s
  37561. }
  37562. },
  37563. XNa: function() {
  37564. this.Gh = {}
  37565. },
  37566. J: function(c) {
  37567. if (this.Gh) {
  37568. var d = this.Gh,
  37569. f;
  37570. for (f in d) d[f].update(c)
  37571. }
  37572. },
  37573. gfa: function() {
  37574. if (!this.Gh) return q;
  37575. for (var c in this.Gh) return t;
  37576. return q
  37577. }
  37578. });
  37579. var V = V || {};
  37580. V.O = V.O || C.O;
  37581. V.O.extend = V.O.extend || C.O.extend;
  37582. V.A = V.A || C.A;
  37583. V.A.extend = V.A.extend || C.A.extend;
  37584. V.ha = V.ha || C.ha;
  37585. V.ha.extend = V.ha.extend || C.ha.extend;
  37586. V.u = V.u || C.u;
  37587. V.u.extend = V.u.extend || C.u.extend;
  37588. V.zh = V.zh || C.zh;
  37589. V.zh.extend = V.zh.extend || C.zh.extend;
  37590. V.YQa = "v1.3.0.0";
  37591. V.mKa = V.O.extend({
  37592. Lp: function(c, d, f) {
  37593. c = c.substr(c.lastIndexOf("/") + 1, c.length());
  37594. C.log("filename \x3d\x3d %s", c.toString());
  37595. for (var g = [], h = d.actionlist, k = 0; k < h; k++) {
  37596. var n = new ActionObject;
  37597. n.Lp(d.actionlist[k], f);
  37598. g.push(n)
  37599. }
  37600. this.vq[c] = g
  37601. },
  37602. i0: function(c, d) {
  37603. var f = this.vq[c];
  37604. if (f) for (var g = 0; g < f.length; g++) {
  37605. var h = f[g];
  37606. if (d == h.getName()) return h
  37607. }
  37608. },
  37609. GFa: function(c, d) {
  37610. var f = this.i0(c, d);
  37611. f && f.play();
  37612. return f
  37613. },
  37614. kGa: function() {
  37615. for (var c in this.vq) delete this.vq[c];
  37616. this.vq = []
  37617. }
  37618. });
  37619. V.MNa = 0.3;
  37620. V.oqa = 1;
  37621. V.pqa = 1.1;
  37622. V.$ma = 5E6;
  37623. V.Aja = 50;
  37624. V.Bja = 100;
  37625. V.hKa = V.$ma / V.Aja / V.Bja;
  37626. V.lKa = t;
  37627. V.ID = t;
  37628. V.mv = t;
  37629. V.qQa = B("v1.1.0.0");
  37630. V.e5 = "version";
  37631. V.WJ = 2;
  37632. V.xs = 0.3;
  37633. V.JS = "skeleton";
  37634. V.Dka = "armatures";
  37635. V.J4 = "armature";
  37636. V.DD = "b";
  37637. V.dla = "d";
  37638. V.Bka = "animations";
  37639. V.I4 = "animation";
  37640. V.c5 = "mov";
  37641. V.IS = "f";
  37642. V.jla = "TextureAtlas";
  37643. V.d5 = "SubTexture";
  37644. V.yg = "name";
  37645. V.Iy = "dr";
  37646. V.Pka = "fi";
  37647. V.P4 = "to";
  37648. V.Q4 = "drTW";
  37649. V.U4 = "lp";
  37650. V.AD = "sc";
  37651. V.V4 = "dl";
  37652. V.O4 = "dI";
  37653. V.hLa = "vert";
  37654. V.eLa = "frag";
  37655. V.Tka = "plist";
  37656. V.FS = "parent";
  37657. V.TJ = "kX";
  37658. V.UJ = "kY";
  37659. V.BD = "cX";
  37660. V.CD = "cY";
  37661. V.HS = "z";
  37662. V.R4 = "evt";
  37663. V.Vka = "sd";
  37664. V.Wka = "sdE";
  37665. V.VJ = "twE";
  37666. V.Xka = "twR";
  37667. V.Oka = "twEP";
  37668. V.Rka = "isArmature";
  37669. V.Nka = "displayType";
  37670. V.Ska = "mov";
  37671. V.Ika = "bd";
  37672. V.Hka = "bd_src";
  37673. V.Gka = "bd_dst";
  37674. V.Jy = "x";
  37675. V.Ky = "y";
  37676. V.M4 = "cocos2d_x";
  37677. V.N4 = "cocos2d_y";
  37678. V.Z4 = "width";
  37679. V.T4 = "height";
  37680. V.W4 = "pX";
  37681. V.X4 = "pY";
  37682. V.Kka = "cocos2d_pX";
  37683. V.Lka = "cocos2d_pY";
  37684. V.K4 = "a";
  37685. V.Y4 = "r";
  37686. V.S4 = "g";
  37687. V.L4 = "b";
  37688. V.Fka = "aM";
  37689. V.Uka = "rM";
  37690. V.Qka = "gM";
  37691. V.Jka = "bM";
  37692. V.Mka = "colorTransform";
  37693. V.GS = "tweenFrame";
  37694. V.fLa = "rotation";
  37695. V.gLa = "uci";
  37696. V.a5 = "con";
  37697. V.cla = "con_vt";
  37698. V.iLa = "movementEventFrame";
  37699. V.kLa = "soundFrame";
  37700. V.b5 = "NaN";
  37701. V.fla = "frame_data";
  37702. V.gla = "mov_bone_data";
  37703. V.jLa = "mov_frame_data";
  37704. V.hla = "mov_data";
  37705. V.Cka = "animation_data";
  37706. V.ela = "display_data";
  37707. V.ila = "skin_data";
  37708. V.Yka = "bone_data";
  37709. V.Eka = "armature_data";
  37710. V.bla = "contour_data";
  37711. V.kla = "texture_data";
  37712. V.lla = "vertex";
  37713. V.Zka = "color";
  37714. V.$ka = "config_file_path";
  37715. V.ala = "content_scale";
  37716. function yd() {
  37717. this.uQa = s;
  37718. this.fRa = [];
  37719. this.yH = 1;
  37720. this.xQa = this.filename = "";
  37721. this.EB = this.tP = 0
  37722. }
  37723. V.lP = {
  37724. nF: [],
  37725. COa: V.WJ,
  37726. gOa: V.xs,
  37727. OA: 1,
  37728. mz: 0,
  37729. Jv: 0,
  37730. R4a: x("OA"),
  37731. bWa: A("OA"),
  37732. clear: function() {
  37733. this.nF = [];
  37734. this.Jv = this.mz = 0
  37735. },
  37736. rca: function(c, d) {
  37737. if ( - 1 == this.nF.indexOf(c)) {
  37738. this.nF.push(c);
  37739. var f = C.path.Cp(c).toLowerCase(),
  37740. g = new yd;
  37741. g.filename = c;
  37742. g.ZZ = this.$sa(c);
  37743. ".xml" == f ? this.vwa(c, g) : (".json" == f || ".exportjson" == f) && this.twa(c, g, d)
  37744. }
  37745. },
  37746. swa: function(c, d, f, g) {
  37747. if ( - 1 != this.nF.indexOf(c)) d && f && (0 == this.Jv && 0 == this.mz ? this.gV(d, f, 1) : this.gV(d, f, (this.Jv - this.mz) / this.Jv));
  37748. else {
  37749. this.Jv++;
  37750. this.mz++;
  37751. var h = this;
  37752. C.Q.Em().y2(this,
  37753. function() {
  37754. h.rca(c, g);
  37755. h.mz--;
  37756. h.gV(d, f, (h.Jv - h.mz) / h.Jv)
  37757. },
  37758. 0.1, t)
  37759. }
  37760. },
  37761. gV: function(c, d, f) {
  37762. if (c && "string" == typeof d) c[d](f);
  37763. else c && "function" == typeof d && d.call(c, f)
  37764. },
  37765. $sa: function(c) {
  37766. var d = c.lastIndexOf("/");
  37767. return c = -1 < d ? c.substr(0, d + 1) : ""
  37768. },
  37769. vwa: function(c, d) {
  37770. var f = C.M.xd(c);
  37771. f || e("Please load the resource first : " + c); (f = C.IGa.parse(f).documentElement) && this.rwa(f, d)
  37772. },
  37773. rwa: function(c, d) {
  37774. if (c) {
  37775. d.tP = parseFloat(c.getAttribute(V.e5));
  37776. for (var f = c.querySelectorAll(V.JS + " \x3e " + V.Dka + " \x3e " + V.J4 + ""), g = V.Mr, h = 0; h < f.length; h++) {
  37777. var k = this.eya(f[h], d);
  37778. g.LZ(k.name, k, d.filename)
  37779. }
  37780. f = c.querySelectorAll(V.JS + " \x3e " + V.Bka + " \x3e " + V.I4 + "");
  37781. for (h = 0; h < f.length; h++) k = this.cya(f[h], d),
  37782. g.KZ(k.name, k, d.filename);
  37783. f = c.querySelectorAll(V.JS + " \x3e " + V.jla + " \x3e " + V.d5 + "");
  37784. for (h = 0; h < f.length; h++) k = this.uya(f[h], d),
  37785. g.Aca(k.name, k, d.filename)
  37786. } else C.log("XML error or XML is empty.")
  37787. },
  37788. eya: function(c, d) {
  37789. var f = c.getAttribute(V.yg),
  37790. g = new V.kS;
  37791. g.name = f;
  37792. for (var f = c.querySelectorAll(V.J4 + " \x3e " + V.DD), h = 0; h < f.length; h++) {
  37793. var k = f[h],
  37794. n = k.getAttribute(V.FS),
  37795. p = s;
  37796. if (n) for (var r = 0; r < f.length && !(p = f[r], n == f[r].getAttribute(V.yg)); r++);
  37797. k = this.gya(k, p, d);
  37798. g.nca(k)
  37799. }
  37800. return g
  37801. },
  37802. gya: function(c, d, f) {
  37803. var g = c.getAttribute(V.yg);
  37804. if ("" != g) {
  37805. d = new V.y4;
  37806. d.name = g;
  37807. d.RI = c.getAttribute(V.FS) || "";
  37808. d.Tm = parseInt(c.getAttribute(V.HS)) || 0;
  37809. c = c.querySelectorAll(V.DD + " \x3e " + V.dla);
  37810. for (var h, g = 0; g < c.length; g++) h = c[g],
  37811. h = this.hya(h, f),
  37812. d.tca(h);
  37813. return d
  37814. }
  37815. },
  37816. hya: function(c) {
  37817. var d = s;
  37818. 1 == (parseFloat(c.getAttribute(V.Rka)) || 0) ? (d = new V.vD, d.il = V.Ly) : (d = new V.sq, d.il = V.zs); (c = c.getAttribute(V.yg) || "") && (d.displayName = c);
  37819. return d
  37820. },
  37821. cya: function(c, d) {
  37822. var f = c.getAttribute(V.yg),
  37823. g = new V.jS,
  37824. h = V.Mr.Gx(f);
  37825. g.name = f;
  37826. for (var f = c.querySelectorAll(V.I4 + " \x3e " + V.c5), k = s, n = 0; n < f.length; n++) k = f[n],
  37827. k = this.oya(k, h, d),
  37828. g.uca(k);
  37829. return g
  37830. },
  37831. oya: function(c, d, f) {
  37832. var g = c.getAttribute(V.yg),
  37833. h = new V.I6;
  37834. h.name = g;
  37835. g = g = 0;
  37836. g = parseFloat(c.getAttribute(V.Iy)) || 0;
  37837. h.duration = g;
  37838. g = parseFloat(c.getAttribute(V.P4)) || 0;
  37839. h.wu = g;
  37840. g = parseFloat(c.getAttribute(V.Q4)) || 0;
  37841. h.qP = g;
  37842. g = c.getAttribute(V.U4);
  37843. h.loop = g ? Boolean(parseFloat(g)) : q;
  37844. if (g = c.getAttribute(V.VJ)) g != V.b5 ? (g = parseFloat(g) || 0, h.tweenEasing = 2 == g ? V.bb.XC: g) : h.tweenEasing = V.bb.oj;
  37845. c = c.querySelectorAll(V.c5 + " \x3e " + V.DD);
  37846. for (var k = s,
  37847. g = 0; g < c.length; g++) {
  37848. var k = c[g],
  37849. n = k.getAttribute(V.yg);
  37850. if (!h.t0(n)) {
  37851. var n = d.Hx(n),
  37852. p = n.RI,
  37853. r = s;
  37854. if ("" != p) for (var v = 0; v < c.length && !(r = c[v], p == r.getAttribute(V.yg)); v++);
  37855. k = this.pya(k, r, n, f);
  37856. h.vca(k)
  37857. }
  37858. }
  37859. return h
  37860. },
  37861. pya: function(c, d, f, g) {
  37862. var h = new V.H6,
  37863. k;
  37864. c && (k = parseFloat(c.getAttribute(V.AD)) || 0, h.scale = k, k = parseFloat(c.getAttribute(V.V4)) || 0, 0 < k && (k -= 1), h.wm = k);
  37865. var n = 0,
  37866. p = k = 0,
  37867. r = s,
  37868. v = [];
  37869. if (d != s) {
  37870. for (var y = d.querySelectorAll(V.DD + " \x3e " + V.IS), n = 0; n < y.length; n++) v.push(y[n]);
  37871. n = v.length
  37872. }
  37873. var y = 0,
  37874. z = c.getAttribute(V.yg);
  37875. h.name = z;
  37876. c = c.querySelectorAll(V.DD + " \x3e " + V.IS);
  37877. for (var D = z = 0; D < c.length; D++) {
  37878. var E = c[D];
  37879. if (d) for (; z < n && (r ? y < k || y >= k + p: 1);) r = v[z],
  37880. k += p,
  37881. p = parseFloat(r.getAttribute(V.Iy)),
  37882. z++;
  37883. E = this.mya(E, r, f, g);
  37884. h.QO(E);
  37885. E.kj = y;
  37886. y += E.duration;
  37887. h.duration = y
  37888. }
  37889. d = h.kh;
  37890. f = Math.PI;
  37891. for (n = d.length - 1; 0 <= n; n--) if (0 < n) {
  37892. g = d[n].skewX - d[n - 1].skewX;
  37893. k = d[n].skewY - d[n - 1].skewY;
  37894. if (g < -f || g > f) d[n - 1].skewX = 0 > g ? d[n - 1].skewX - 2 * f: d[n - 1].skewX + 2 * f;
  37895. if (k < -f || k > f) d[n - 1].skewY = 0 > k ? d[n - 1].skewY - 2 * f: d[n - 1].skewY + 2 * f
  37896. }
  37897. 0 < h.kh.length && (E = new V.qv, E.copy(h.kh[h.kh.length - 1]), E.kj = h.duration, h.QO(E));
  37898. return h
  37899. },
  37900. mya: function(c, d, f, g) {
  37901. f = new V.qv;
  37902. f.zC = c.getAttribute(V.Ska) || "";
  37903. f.event = c.getAttribute(V.R4) || "";
  37904. f.pxa = parseInt(c.getAttribute(V.Ika)) || V.u4;
  37905. var h = f.blendFunc;
  37906. switch (f.pxa) {
  37907. case V.u4:
  37908. h.src = C.Ic;
  37909. h.ga = C.Hc;
  37910. break;
  37911. case V.Vja:
  37912. h.src = C.SRC_ALPHA;
  37913. h.ga = C.ONE;
  37914. break;
  37915. case V.Wja:
  37916. h.src = C.ONE_MINUS_SRC_ALPHA;
  37917. h.ga = C.ONE_MINUS_DST_COLOR;
  37918. break;
  37919. case V.Xja:
  37920. h.src = C.ONE,
  37921. h.ga = C.ONE_MINUS_DST_COLOR
  37922. }
  37923. f.ZR = c.getAttribute(V.Vka) || "";
  37924. f.$R = c.getAttribute(V.Wka) || "";
  37925. h = c.getAttribute(V.GS);
  37926. h == s && (h = q);
  37927. f.Cu = Boolean(h);
  37928. g.tP >= V.WJ ? (f.x = parseFloat(c.getAttribute(V.M4)) || 0, f.y = -parseFloat(c.getAttribute(V.N4)) || 0) : (f.x = parseFloat(c.getAttribute(V.Jy)) || 0, f.y = -parseFloat(c.getAttribute(V.Ky)) || 0);
  37929. f.x *= this.OA;
  37930. f.y *= this.OA;
  37931. f.scaleX = parseFloat(c.getAttribute(V.BD)) || 0;
  37932. f.scaleY = parseFloat(c.getAttribute(V.CD)) || 0;
  37933. f.skewX = C.ng(parseFloat(c.getAttribute(V.TJ)) || 0);
  37934. f.skewY = C.ng( - parseFloat(c.getAttribute(V.UJ)) || 0);
  37935. f.duration = parseFloat(c.getAttribute(V.Iy)) || 0;
  37936. f.ij = parseFloat(c.getAttribute(V.O4)) || 0;
  37937. f.Tm = parseFloat(c.getAttribute(V.HS)) || 0;
  37938. f.Cy = parseFloat(c.getAttribute(V.Xka)) || 0;
  37939. h = c.querySelectorAll(V.IS + " \x3e " + V.Mka);
  37940. if (0 < h.length) {
  37941. var k = h[0],
  37942. n = 0,
  37943. p = 0,
  37944. r = 0,
  37945. v = 0,
  37946. y = 0,
  37947. z = 0,
  37948. D = 100,
  37949. h = parseFloat(k.getAttribute(V.K4)) || 0,
  37950. n = parseFloat(k.getAttribute(V.Y4)) || n,
  37951. p = parseFloat(k.getAttribute(V.S4)) || p,
  37952. r = parseFloat(k.getAttribute(V.L4)) || r,
  37953. E = k.getAttribute(V.Fka);
  37954. E && (v = parseFloat(E)); (E = k.getAttribute(V.Uka)) && (y = parseFloat(E));
  37955. var F = k.getAttribute(V.Qka);
  37956. E && (z = parseFloat(F)); (k = k.getAttribute(V.Jka)) && (D = parseFloat(k));
  37957. f.a = 2.55 * v + h;
  37958. f.r = 2.55 * y + n;
  37959. f.g = 2.55 * z + p;
  37960. f.b = 2.55 * D + r;
  37961. f.$n = q
  37962. } - 1 == f.ij && (f.a = 0); (c = c.getAttribute(V.VJ)) && (f.tweenEasing = c != V.b5 ? 2 == c ? V.bb.XC: c: V.bb.oj);
  37963. d && (c = new V.Um, g.tP >= V.WJ ? (c.x = parseFloat(d.getAttribute(V.M4)) || 0, c.y = parseFloat(d.getAttribute(V.N4)) || 0) : (c.x = parseFloat(d.getAttribute(V.Jy)) || 0, c.y = parseFloat(d.getAttribute(V.Ky)) || 0), c.skewX = parseFloat(d.getAttribute(V.TJ)) || 0, c.skewY = parseFloat(d.getAttribute(V.UJ)) || 0, c.y = -c.y, c.skewX = C.ng(c.skewX), c.skewY = C.ng( - c.skewY), V.Ij.pJa(f, c));
  37964. return f
  37965. },
  37966. uya: function(c, d) {
  37967. var f = new V.a8;
  37968. c.getAttribute(V.yg) && (f.name = c.getAttribute(V.yg));
  37969. var g, h, k, n = 0;
  37970. d.tP >= V.WJ ? (g = parseFloat(c.getAttribute(V.Kka)) || 0, h = parseFloat(c.getAttribute(V.Lka)) || 0) : (g = parseFloat(c.getAttribute(V.W4)) || 0, h = parseFloat(c.getAttribute(V.X4)) || 0);
  37971. k = parseFloat(c.getAttribute(V.Z4)) || 0;
  37972. n = parseFloat(c.getAttribute(V.T4)) || 0;
  37973. f.WQ = g / k;
  37974. f.XQ = (n - h) / n;
  37975. g = c.querySelectorAll(V.d5 + " \x3e " + V.a5);
  37976. for (h = 0; h < g.length; h++) this.kya(g[h], d);
  37977. return f
  37978. },
  37979. kya: function(c) {
  37980. var d = new V.p5;
  37981. c = c.querySelectorAll(V.a5 + " \x3e " + V.cla);
  37982. for (var f, g = 0; g < c.length; g++) {
  37983. f = c[g];
  37984. var h = C.d(0, 0);
  37985. h.x = parseFloat(f.getAttribute(V.Jy)) || 0;
  37986. h.y = parseFloat(f.getAttribute(V.Ky)) || 0;
  37987. d.dv.push(h)
  37988. }
  37989. return d
  37990. },
  37991. twa: function(c, d, f) {
  37992. this.uwa(C.M.xd(c), d, f)
  37993. },
  37994. uwa: function(c, d, f) {
  37995. d.yH = c[V.ala] || 1;
  37996. for (var g = c[V.Eka] || [], h, k = 0; k < g.length; k++) h = this.fya(g[k], d),
  37997. V.Mr.LZ(h.name, h, d.filename);
  37998. g = c[V.Cka] || [];
  37999. for (k = 0; k < g.length; k++) h = this.dya(g[k], d),
  38000. V.Mr.KZ(h.name, h, d.filename);
  38001. g = c[V.kla] || [];
  38002. for (k = 0; k < g.length; k++) h = this.vya(g[k], d),
  38003. V.Mr.Aca(h.name, h, d.filename);
  38004. if (f) {
  38005. c = c[V.$ka] || [];
  38006. for (k = 0; k < c.length; k++) f = c[k],
  38007. g = f.lastIndexOf("."),
  38008. f = f.substring(0, g),
  38009. g = d.ZZ + f + ".plist",
  38010. f = d.ZZ + f + ".png",
  38011. V.Mr.mH(g, f, d.filename)
  38012. }
  38013. },
  38014. fya: function(c, d) {
  38015. var f = new V.kS,
  38016. g = c[V.yg];
  38017. g && (f.name = g);
  38018. d.EB = f.IB = c[V.e5] || 0.1;
  38019. for (var g = c[V.Yka], h = 0; h < g.length; h++) f.nca(this.jya(g[h], d));
  38020. return f
  38021. },
  38022. jya: function(c, d) {
  38023. var f = new V.y4;
  38024. this.gda(f, c, d);
  38025. f.name = c[V.yg] || "";
  38026. f.RI = c[V.FS] || "";
  38027. for (var g = c[V.ela] || [], h = 0; h < g.length; h++) {
  38028. var k = this.iya(g[h], d);
  38029. f.tca(k)
  38030. }
  38031. return f
  38032. },
  38033. iya: function(c, d) {
  38034. var f = c[V.Nka] || V.zs,
  38035. g = s;
  38036. switch (f) {
  38037. case V.zs:
  38038. g = new V.sq;
  38039. g.displayName = c[V.yg] || "";
  38040. var h = (c[V.ila] || [])[0];
  38041. if (h) {
  38042. var k = g.skinData;
  38043. k.x = (h[V.Jy] || 0) * this.OA;
  38044. k.y = (h[V.Ky] || 0) * this.OA;
  38045. h[V.BD] !== m && (k.scaleX = h[V.BD]);
  38046. h[V.CD] !== m && (k.scaleY = h[V.CD]);
  38047. k.skewX = h[V.TJ] || 0;
  38048. k.skewY = h[V.UJ] || 0;
  38049. k.x *= d.yH;
  38050. k.y *= d.yH
  38051. }
  38052. break;
  38053. case V.Ly:
  38054. g = new V.vD;
  38055. g.displayName = c[V.yg] || "";
  38056. break;
  38057. case V.HD:
  38058. g = new V.DK;
  38059. g.displayName = d.ZZ + c[V.Tka] || "";
  38060. break;
  38061. default:
  38062. g = new V.sq
  38063. }
  38064. g.il = f;
  38065. return g
  38066. },
  38067. dya: function(c, d) {
  38068. var f = new V.jS;
  38069. f.name = c[V.yg] || "";
  38070. for (var g = c[V.hla] || [], h = 0; h < g.length; h++) {
  38071. var k = this.rya(g[h], d);
  38072. f.uca(k)
  38073. }
  38074. return f
  38075. },
  38076. rya: function(c, d) {
  38077. var f = new V.I6;
  38078. f.loop = c[V.U4] || t;
  38079. f.qP = c[V.Q4] || 0;
  38080. f.wu = c[V.P4] || 0;
  38081. f.duration = c[V.Iy] || 0;
  38082. c[V.AD] !== m && (f.scale = c[V.AD]);
  38083. f.tweenEasing = c[V.VJ] || V.bb.oj;
  38084. f.name = c[V.yg] || "";
  38085. for (var g = c[V.gla] || [], h = 0; h < g.length; h++) {
  38086. var k = this.qya(g[h], d);
  38087. f.vca(k)
  38088. }
  38089. return f
  38090. },
  38091. qya: function(c, d) {
  38092. var f = new V.H6;
  38093. f.wm = c[V.V4] || 0;
  38094. c[V.AD] !== m && (f.scale = c[V.AD]);
  38095. f.name = c[V.yg] || "";
  38096. for (var g = c[V.fla] || [], h = 0; h < g.length; h++) {
  38097. var k = this.nya(g[h], d);
  38098. f.QO(k);
  38099. d.EB < V.xs && (k.kj = f.duration, f.duration += k.duration)
  38100. }
  38101. if (d.EB < V.oqa) {
  38102. g = f.kh;
  38103. k = Math.PI;
  38104. for (h = g.length - 1; 0 <= h; h--) if (0 < h) {
  38105. var n = g[h].skewX - g[h - 1].skewX,
  38106. p = g[h].skewY - g[h - 1].skewY;
  38107. if (n < -k || n > k) g[h - 1].skewX = 0 > n ? g[h - 1].skewX - 2 * k: g[h - 1].skewX + 2 * k;
  38108. if (p < -k || p > k) g[h - 1].skewY = 0 > p ? g[h - 1].skewY - 2 * k: g[h - 1].skewY + 2 * k
  38109. }
  38110. }
  38111. d.EB < V.xs && 0 < f.kh.length && (k = new V.qv, k.copy(f.kh[f.kh.length - 1]), f.QO(k), k.kj = f.duration);
  38112. return f
  38113. },
  38114. nya: function(c, d) {
  38115. var f = new V.qv;
  38116. this.gda(f, c, d);
  38117. f.duration = c[V.Iy] || 0;
  38118. f.tweenEasing = c[V.VJ] || V.bb.oj;
  38119. f.ij = c[V.O4] || 0;
  38120. var g = c[V.Gka] || C.Hc;
  38121. f.blendFunc.src = c[V.Hka] || C.Ic;
  38122. f.blendFunc.ga = g;
  38123. f.event = c[V.R4] || s;
  38124. c[V.GS] !== m && (f.Cu = c[V.GS]);
  38125. d.EB < V.xs ? f.duration = c[V.Iy] || 0 : f.kj = c[V.Pka] || 0;
  38126. for (var g = c[V.Oka] || [], h = 0; h < g.length; h++) f.LB[h] = g[h];
  38127. return f
  38128. },
  38129. vya: function(c) {
  38130. var d = new V.a8;
  38131. d.name = c[V.yg] || "";
  38132. d.width = c[V.Z4] || 0;
  38133. d.height = c[V.T4] || 0;
  38134. d.WQ = c[V.W4] || 0;
  38135. d.XQ = c[V.X4] || 0;
  38136. c = c[V.bla] || [];
  38137. for (var f = 0; f < c.length; f++) {
  38138. var g = this.lya(c[f]);
  38139. d.tx.push(g)
  38140. }
  38141. return d
  38142. },
  38143. lya: function(c) {
  38144. var d = new V.p5;
  38145. c = c[V.lla] || [];
  38146. for (var f = 0; f < c.length; f++) {
  38147. var g = c[f],
  38148. h = C.d(0, 0);
  38149. h.x = g[V.Jy] || 0;
  38150. h.y = g[V.Ky] || 0;
  38151. d.dv.push(h)
  38152. }
  38153. return d
  38154. },
  38155. gda: function(c, d, f) {
  38156. c.x = d[V.Jy] || 0;
  38157. c.y = d[V.Ky] || 0;
  38158. c.x *= f.yH;
  38159. c.y *= f.yH;
  38160. c.Tm = d[V.HS] || 0;
  38161. c.skewX = d[V.TJ] || 0;
  38162. c.skewY = d[V.UJ] || 0;
  38163. d[V.BD] !== m && (c.scaleX = d[V.BD]);
  38164. d[V.CD] !== m && (c.scaleY = d[V.CD]);
  38165. if (d = d[V.Zka] || s) f.EB < V.pqa && (d = d[0]),
  38166. c.a = d[V.K4],
  38167. c.r = d[V.Y4],
  38168. c.g = d[V.S4],
  38169. c.b = d[V.L4],
  38170. c.$n = q,
  38171. delete d
  38172. },
  38173. uGa: function(c) {
  38174. C.Id(this.nF, c)
  38175. }
  38176. };
  38177. V.Mia = {
  38178. nO: {},
  38179. Wsa: [],
  38180. mH: function(c, d) {
  38181. C.Fe.Lr(c, d)
  38182. },
  38183. $Ba: B(s),
  38184. clear: function() {
  38185. this.nO = {};
  38186. this.Wsa = []
  38187. }
  38188. };
  38189. V.Ij = V.Ij || V.O.extend({});
  38190. V.Ij.UP = {
  38191. a: 1,
  38192. b: 0,
  38193. H: 0,
  38194. P: 1,
  38195. na: 0,
  38196. oa: 0
  38197. };
  38198. V.Ij.VP = {
  38199. a: 1,
  38200. b: 0,
  38201. H: 0,
  38202. P: 1,
  38203. na: 0,
  38204. oa: 0
  38205. };
  38206. V.Ij.Ip = C.d(0, 0);
  38207. V.Ij.Jp = C.d(0, 0);
  38208. V.Ij.pJa = function(c, d) {
  38209. this.F1(c, this.UP);
  38210. this.F1(d, this.VP);
  38211. this.VP = C.iS(this.VP);
  38212. this.UP = C.Qg(this.UP, this.VP);
  38213. this.Pfa(this.UP, c)
  38214. };
  38215. V.Ij.F1 = function(c, d) {
  38216. if (c.skewX == -c.skewY) {
  38217. var f = Math.sin(c.skewX),
  38218. g = Math.cos(c.skewX);
  38219. d.a = c.scaleX * g;
  38220. d.b = c.scaleX * -f;
  38221. d.H = c.scaleY * f;
  38222. d.P = c.scaleY * g
  38223. } else d.a = c.scaleX * Math.cos(c.skewY),
  38224. d.b = c.scaleX * Math.sin(c.skewY),
  38225. d.H = c.scaleY * Math.sin(c.skewX),
  38226. d.P = c.scaleY * Math.cos(c.skewY);
  38227. d.na = c.x;
  38228. d.oa = c.y
  38229. };
  38230. V.Ij.Pfa = function(c, d) {
  38231. this.Ip.x = 0;
  38232. this.Ip.y = 1;
  38233. this.Ip = C.wv(this.Ip, c);
  38234. this.Ip.x -= c.na;
  38235. this.Ip.y -= c.oa;
  38236. this.Jp.x = 1;
  38237. this.Jp.y = 0;
  38238. this.Jp = C.wv(this.Jp, c);
  38239. this.Jp.x -= c.na;
  38240. this.Jp.y -= c.oa;
  38241. d.skewX = -(Math.atan2(this.Ip.y, this.Ip.x) - 1.5707964);
  38242. d.skewY = Math.atan2(this.Jp.y, this.Jp.x);
  38243. d.scaleX = Math.sqrt(c.a * c.a + c.b * c.b);
  38244. d.scaleY = Math.sqrt(c.H * c.H + c.P * c.P);
  38245. d.x = c.na;
  38246. d.y = c.oa
  38247. };
  38248. V.Ij.h0a = function(c, d) {
  38249. c.x += d.x;
  38250. c.y += d.y;
  38251. c.skewX += d.skewX;
  38252. c.skewY += d.skewY;
  38253. c.scaleX += d.scaleX;
  38254. c.scaleY += d.scaleY
  38255. };
  38256. V.Ij.vEa = function(c, d) {
  38257. c.x -= d.x;
  38258. c.y -= d.y;
  38259. c.skewX -= d.skewX;
  38260. c.skewY -= d.skewY;
  38261. c.scaleX -= d.scaleX;
  38262. c.scaleY -= d.scaleY
  38263. };
  38264. V.bb = {
  38265. bya: -1,
  38266. oj: 0,
  38267. B3: 1,
  38268. C3: 2,
  38269. XC: 3,
  38270. d2: 4,
  38271. f2: 5,
  38272. e2: 6,
  38273. F_: 7,
  38274. H_: 8,
  38275. G_: 9,
  38276. g2: 10,
  38277. i2: 11,
  38278. h2: 12,
  38279. j2: 13,
  38280. l2: 14,
  38281. k2: 15,
  38282. e0: 16,
  38283. g0: 17,
  38284. f0: 18,
  38285. u_: 19,
  38286. xza: 20,
  38287. v_: 21,
  38288. Y_: 22,
  38289. $_: 23,
  38290. Z_: 24,
  38291. VZ: 25,
  38292. XZ: 26,
  38293. WZ: 27,
  38294. c_: 28,
  38295. e_: 29,
  38296. d_: 30,
  38297. bja: 1E4
  38298. };
  38299. V.jc = V.jc || V.O.extend({});
  38300. V.Bo = 2 * Math.PI;
  38301. V.D6 = Math.PI / 2;
  38302. V.ana = Math.PI;
  38303. V.jc.rJa = function(c, d, f) {
  38304. var g = 0;
  38305. switch (d) {
  38306. case V.bb.bya:
  38307. g = this.aya(c, f);
  38308. break;
  38309. case V.bb.oj:
  38310. g = this.oj(c);
  38311. break;
  38312. case V.bb.B3:
  38313. g = this.B3(c);
  38314. break;
  38315. case V.bb.C3:
  38316. g = this.C3(c);
  38317. break;
  38318. case V.bb.XC:
  38319. g = this.XC(c);
  38320. break;
  38321. case V.bb.d2:
  38322. g = this.d2(c);
  38323. break;
  38324. case V.bb.f2:
  38325. g = this.f2(c);
  38326. break;
  38327. case V.bb.e2:
  38328. g = this.e2(c);
  38329. break;
  38330. case V.bb.F_:
  38331. g = this.F_(c);
  38332. break;
  38333. case V.bb.H_:
  38334. g = this.H_(c);
  38335. break;
  38336. case V.bb.G_:
  38337. g = this.G_(c);
  38338. break;
  38339. case V.bb.g2:
  38340. g = this.g2(c);
  38341. break;
  38342. case V.bb.i2:
  38343. g = this.i2(c);
  38344. break;
  38345. case V.bb.h2:
  38346. g = this.h2(c);
  38347. break;
  38348. case V.bb.j2:
  38349. g = this.j2(c);
  38350. break;
  38351. case V.bb.l2:
  38352. g = this.l2(c);
  38353. break;
  38354. case V.bb.k2:
  38355. g = this.k2(c);
  38356. break;
  38357. case V.bb.e0:
  38358. g = this.e0(c);
  38359. break;
  38360. case V.bb.g0:
  38361. g = this.g0(c);
  38362. break;
  38363. case V.bb.f0:
  38364. g = this.f0(c);
  38365. break;
  38366. case V.bb.u_:
  38367. g = this.u_(c);
  38368. break;
  38369. case V.bb.xza:
  38370. g = this.Hxa(c);
  38371. break;
  38372. case V.bb.v_:
  38373. g = this.v_(c);
  38374. break;
  38375. case V.bb.Y_:
  38376. g = this.Y_(c, f);
  38377. break;
  38378. case V.bb.$_:
  38379. g = this.$_(c, f);
  38380. break;
  38381. case V.bb.Z_:
  38382. g = this.Z_(c, f);
  38383. break;
  38384. case V.bb.VZ:
  38385. g = this.VZ(c);
  38386. break;
  38387. case V.bb.XZ:
  38388. g = this.XZ(c);
  38389. break;
  38390. case V.bb.WZ:
  38391. g = this.WZ(c);
  38392. break;
  38393. case V.bb.c_:
  38394. g = this.c_(c);
  38395. break;
  38396. case V.bb.e_:
  38397. g = this.e_(c);
  38398. break;
  38399. case V.bb.d_:
  38400. g = this.d_(c);
  38401. break;
  38402. default:
  38403. g = this.XC(c)
  38404. }
  38405. return g
  38406. };
  38407. V.jc.oj = da();
  38408. V.jc.B3 = function(c) {
  38409. return - 1 * Math.cos(c * V.D6) + 1
  38410. };
  38411. V.jc.C3 = function(c) {
  38412. return Math.sin(c * V.D6)
  38413. };
  38414. V.jc.XC = function(c) {
  38415. return - 0.5 * (Math.cos(V.ana * c) - 1)
  38416. };
  38417. V.jc.d2 = function(c) {
  38418. return c * c
  38419. };
  38420. V.jc.f2 = function(c) {
  38421. return - 1 * c * (c - 2)
  38422. };
  38423. V.jc.e2 = function(c) {
  38424. c *= 2;
  38425. if (1 > c) return 0.5 * c * c; --c;
  38426. return - 0.5 * (c * (c - 2) - 1)
  38427. };
  38428. V.jc.F_ = function(c) {
  38429. return c * c * c
  38430. };
  38431. V.jc.H_ = function(c) {
  38432. c -= 1;
  38433. return c * c * c + 1
  38434. };
  38435. V.jc.G_ = function(c) {
  38436. c *= 2;
  38437. if (1 > c) return 0.5 * c * c * c;
  38438. c -= 2;
  38439. return 0.5 * (c * c * c + 2)
  38440. };
  38441. V.jc.g2 = function(c) {
  38442. return c * c * c * c
  38443. };
  38444. V.jc.i2 = function(c) {
  38445. c -= 1;
  38446. return - (c * c * c * c - 1)
  38447. };
  38448. V.jc.h2 = function(c) {
  38449. c *= 2;
  38450. if (1 > c) return 0.5 * c * c * c * c;
  38451. c -= 2;
  38452. return - 0.5 * (c * c * c * c - 2)
  38453. };
  38454. V.jc.j2 = function(c) {
  38455. return c * c * c * c * c
  38456. };
  38457. V.jc.l2 = function(c) {
  38458. c -= 1;
  38459. return c * c * c * c * c + 1
  38460. };
  38461. V.jc.k2 = function(c) {
  38462. c *= 2;
  38463. if (1 > c) return 0.5 * c * c * c * c * c;
  38464. c -= 2;
  38465. return 0.5 * (c * c * c * c * c + 2)
  38466. };
  38467. V.jc.e0 = function(c) {
  38468. return 0 == c ? 0 : Math.pow(2, 10 * (c - 1)) - 0.0010
  38469. };
  38470. V.jc.g0 = function(c) {
  38471. return 1 == c ? 1 : -Math.pow(2, -10 * c) + 1
  38472. };
  38473. V.jc.f0 = function(c) {
  38474. c /= 0.5;
  38475. return c = 1 > c ? 0.5 * Math.pow(2, 10 * (c - 1)) : 0.5 * ( - Math.pow(2, -10 * (c - 1)) + 2)
  38476. };
  38477. V.jc.u_ = function(c) {
  38478. return - 1 * (Math.sqrt(1 - c * c) - 1)
  38479. };
  38480. V.jc.Hxa = function(c) {
  38481. c -= 1;
  38482. return Math.sqrt(1 - c * c)
  38483. };
  38484. V.jc.v_ = function(c) {
  38485. c *= 2;
  38486. if (1 > c) return - 0.5 * (Math.sqrt(1 - c * c) - 1);
  38487. c -= 2;
  38488. return 0.5 * (Math.sqrt(1 - c * c) + 1)
  38489. };
  38490. V.jc.Y_ = function(c, d) {
  38491. var f = 0.3;
  38492. 0 < d.length && (f = d[0]);
  38493. var g = 0;
  38494. 0 == c || 1 == c ? g = c: (c -= 1, g = -Math.pow(2, 10 * c) * Math.sin((c - f / 4) * V.Bo / f));
  38495. return g
  38496. };
  38497. V.jc.$_ = function(c, d) {
  38498. var f = 0.3;
  38499. 0 < d.length && (f = d[0]);
  38500. var g = 0;
  38501. return g = 0 == c || 1 == c ? c: Math.pow(2, -10 * c) * Math.sin((c - f / 4) * V.Bo / f) + 1
  38502. };
  38503. V.jc.Z_ = function(c, d) {
  38504. var f = 0.3;
  38505. 0 < d.length && (f = d[0]);
  38506. var g = 0;
  38507. 0 == c || 1 == c ? g = c: (f || (f = 0.3 * 1.5), g = f / 4, c = 2 * c - 1, g = 0 > c ? -0.5 * Math.pow(2, 10 * c) * Math.sin((c - g) * V.Bo / f) : 0.5 * Math.pow(2, -10 * c) * Math.sin((c - g) * V.Bo / f) + 1);
  38508. return g
  38509. };
  38510. V.jc.VZ = function(c) {
  38511. return c * c * (2.70158 * c - 1.70158)
  38512. };
  38513. V.jc.XZ = function(c) {
  38514. c -= 1;
  38515. return c * c * (2.70158 * c + 1.70158) + 1
  38516. };
  38517. V.jc.WZ = function(c) {
  38518. c *= 2;
  38519. if (1 > c) return c * c * (3.5949095 * c - 2.5949095) / 2;
  38520. c -= 2;
  38521. return c * c * (3.5949095 * c + 2.5949095) / 2 + 1
  38522. };
  38523. V.Nr = function(c) {
  38524. if (c < 1 / 2.75) return 7.5625 * c * c;
  38525. if (c < 2 / 2.75) return c -= 1.5 / 2.75,
  38526. 7.5625 * c * c + 0.75;
  38527. if (c < 2.5 / 2.75) return c -= 2.25 / 2.75,
  38528. 7.5625 * c * c + 0.9375;
  38529. c -= 2.625 / 2.75;
  38530. return 7.5625 * c * c + 0.984375
  38531. };
  38532. V.jc.c_ = function(c) {
  38533. return 1 - V.Nr(1 - c)
  38534. };
  38535. V.jc.e_ = function(c) {
  38536. return V.Nr(c)
  38537. };
  38538. V.jc.d_ = function(c) {
  38539. var d = 0;
  38540. return d = 0.5 > c ? 0.5 * (1 - V.Nr(1 - 2 * c)) : 0.5 * V.Nr(2 * c - 1) + 0.5
  38541. };
  38542. V.jc.aya = function(c, d) {
  38543. if (0 < d.length) {
  38544. var f = 1 - c;
  38545. return d[1] * f * f * f + 3 * d[3] * c * f * f + 3 * d[5] * c * c * f + d[7] * c * c * c
  38546. }
  38547. return c
  38548. };
  38549. V.QB = function(c, d) {
  38550. for (; c > d;) c -= d;
  38551. return c
  38552. };
  38553. function zd(c) {
  38554. c && c.rh && c.rh()
  38555. }
  38556. V.kfa = function(c, d, f) {
  38557. var g = C.d(0, 0);
  38558. f && (g = c.wi(d));
  38559. c = c.i();
  38560. c = C.rect(0, 0, c.width, c.height);
  38561. return C.Ju(c, g)
  38562. };
  38563. V.cNa = V.kfa;
  38564. V.woa = V.kfa;
  38565. V.eSa = function(c, d, f, g, h) {
  38566. var k = C.d(0, 0);
  38567. g && !h && (k.x = Math.pow(1 - c, 2) * d.x + 2 * c * (1 - c) * f.x + Math.pow(c, 2) * g.x, k.y = Math.pow(1 - c, 2) * d.y + 2 * c * (1 - c) * f.y + Math.pow(c, 2) * g.y);
  38568. h && (k.x = d.x * Math.pow(1 - c, 3) + 3 * c * f.x * Math.pow(1 - c, 2) + 3 * g.x * Math.pow(c, 2) * (1 - c) + h.x * Math.pow(c, 3), k.y = d.y * Math.pow(1 - c, 3) + 3 * c * f.y * Math.pow(1 - c, 2) + 3 * g.y * Math.pow(c, 2) * (1 - c) + h.y * Math.pow(c, 3));
  38569. return k
  38570. };
  38571. V.fSa = function(c, d, f, g, h) {
  38572. var k = C.d(0, 0);
  38573. k.x = d.x + f * Math.cos(g + h * c);
  38574. k.y = d.y + f * Math.sin(g + h * c);
  38575. return k
  38576. };
  38577. function Ad() {
  38578. this.a2 = [];
  38579. this.SZ = [];
  38580. this.xB = [];
  38581. this.M3 = []
  38582. }
  38583. V.Mr = {
  38584. Vs: {},
  38585. Ws: {},
  38586. du: {},
  38587. Vqa: t,
  38588. LN: {},
  38589. $1a: function(c) {
  38590. for (var d = this.RH(c), f = 0; f < d.SZ.length; f++) {
  38591. var g = d.SZ[f];
  38592. this.rGa(g)
  38593. }
  38594. for (f = 0; f < d.xB.length; f++) g = d.xB[f],
  38595. this.pGa(g);
  38596. for (f = 0; f < d.M3.length; f++) g = d.M3[f],
  38597. this.BGa(g);
  38598. for (f = 0; f < d.a2.length; f++) g = d.a2[f],
  38599. C.Fe.AGa(g);
  38600. delete this.LN[c];
  38601. V.lP.uGa(c)
  38602. },
  38603. LZ: function(c, d, f) {
  38604. this.Ws && (this.RH(f).SZ.push(c), this.Ws[c] = d)
  38605. },
  38606. rGa: function(c) {
  38607. this.Ws[c] && delete this.Ws[c]
  38608. },
  38609. Gx: function(c) {
  38610. var d = s;
  38611. this.Ws && (d = this.Ws[c]);
  38612. return d
  38613. },
  38614. RSa: A("Ws"),
  38615. KZ: function(c, d, f) {
  38616. this.Vs && (this.RH(f).xB.push(c), this.Vs[c] = d)
  38617. },
  38618. pGa: function(c) {
  38619. this.Vs[c] && delete this.Vs[c]
  38620. },
  38621. Jda: function(c) {
  38622. var d = s;
  38623. this.Vs[c] && (d = this.Vs[c]);
  38624. return d
  38625. },
  38626. LSa: A("Vs"),
  38627. Aca: function(c, d, f) {
  38628. this.du && (this.RH(f).M3.push(c), this.du[c] = d)
  38629. },
  38630. BGa: function(c) {
  38631. this.du[c] && delete this.du[c]
  38632. },
  38633. ZBa: function(c) {
  38634. var d = s;
  38635. this.du && (d = this.du[c]);
  38636. return d
  38637. },
  38638. TWa: A("du"),
  38639. pwa: function() {
  38640. var c, d, f, g = t;
  38641. 1 == arguments.length ? (f = arguments[0], g = q, this.UO(f)) : 3 == arguments.length && (c = arguments[0], d = arguments[1], f = arguments[2], this.UO(f), this.mH(d, c, f));
  38642. V.lP.rca(f, g)
  38643. },
  38644. RPa: function() {
  38645. var c, d, f, g, h, k = t;
  38646. 3 == arguments.length ? (f = arguments[0], h = arguments[1], g = arguments[2], k = q, this.UO(f)) : 5 == arguments.length && (c = arguments[0], d = arguments[1], f = arguments[2], h = arguments[3], g = arguments[4], this.UO(f), this.mH(d, c, f));
  38647. V.lP.swa(f, g, h, k)
  38648. },
  38649. mH: function(c, d, f) {
  38650. this.RH(f).a2.push(c);
  38651. V.Mia.mH(c, d)
  38652. },
  38653. eYa: A("Vqa"),
  38654. UO: function(c) {
  38655. this.LN[c] || (this.LN[c] = new Ad)
  38656. },
  38657. RH: function(c) {
  38658. return this.LN[c]
  38659. },
  38660. clear: function() {
  38661. this.Vs = {};
  38662. this.Ws = {};
  38663. this.du = {};
  38664. V.Mia.clear();
  38665. V.lP.clear()
  38666. }
  38667. };
  38668. V.u4 = 0;
  38669. V.EKa = 1;
  38670. V.zKa = 2;
  38671. V.Wja = 3;
  38672. V.FKa = 4;
  38673. V.Xja = 5;
  38674. V.GKa = 6;
  38675. V.CKa = 7;
  38676. V.Vja = 8;
  38677. V.HKa = 9;
  38678. V.AKa = 10;
  38679. V.DKa = 11;
  38680. V.yKa = 12;
  38681. V.BKa = 13;
  38682. V.zs = 0;
  38683. V.Ly = 1;
  38684. V.HD = 2;
  38685. V.gK = 3;
  38686. V.Um = V.O.extend({
  38687. x: 0,
  38688. y: 0,
  38689. Tm: 0,
  38690. skewX: 0,
  38691. skewY: 0,
  38692. scaleX: 1,
  38693. scaleY: 1,
  38694. Cy: 0,
  38695. $n: t,
  38696. r: 255,
  38697. g: 255,
  38698. b: 255,
  38699. a: 255,
  38700. ctor: function() {
  38701. this.skewY = this.skewX = this.Tm = this.y = this.x = 0;
  38702. this.scaleY = this.scaleX = 1;
  38703. this.Cy = 0;
  38704. this.$n = t;
  38705. this.a = this.b = this.g = this.r = 255
  38706. },
  38707. copy: function(c) {
  38708. this.x = c.x;
  38709. this.y = c.y;
  38710. this.Tm = c.Tm;
  38711. this.scaleX = c.scaleX;
  38712. this.scaleY = c.scaleY;
  38713. this.skewX = c.skewX;
  38714. this.skewY = c.skewY;
  38715. this.Cy = c.Cy;
  38716. this.$n = c.$n;
  38717. this.r = c.r;
  38718. this.g = c.g;
  38719. this.b = c.b;
  38720. this.a = c.a
  38721. },
  38722. G: function(c) {
  38723. this.r = c.r;
  38724. this.g = c.g;
  38725. this.b = c.b;
  38726. this.a = c.a
  38727. },
  38728. Xa: function() {
  38729. return C.color(this.r, this.g, this.b, this.a)
  38730. },
  38731. J3: function(c, d, f) {
  38732. this.x = d.x - c.x;
  38733. this.y = d.y - c.y;
  38734. this.scaleX = d.scaleX - c.scaleX;
  38735. this.scaleY = d.scaleY - c.scaleY;
  38736. this.skewX = d.skewX - c.skewX;
  38737. this.skewY = d.skewY - c.skewY;
  38738. this.$n || c.$n || d.$n ? (this.a = d.a - c.a, this.r = d.r - c.r, this.g = d.g - c.g, this.b = d.b - c.b, this.$n = q) : (this.a = this.r = this.g = this.b = 0, this.$n = t);
  38739. f && (this.skewX > C.PI && (this.skewX -= V.Bo), this.skewX < -C.PI && (this.skewX += V.Bo), this.skewY > C.PI && (this.skewY -= V.Bo), this.skewY < -C.PI && (this.skewY += V.Bo));
  38740. d.Cy && (this.skewX += d.Cy * V.Bo, this.skewY -= d.Cy * V.Bo)
  38741. }
  38742. });
  38743. V.My = V.O.extend({
  38744. il: V.gK,
  38745. displayName: "",
  38746. ctor: function() {
  38747. this.il = V.gK
  38748. },
  38749. PQa: function(c) {
  38750. var d = c.lastIndexOf("."); - 1 != d && (c = c.substring(0, d));
  38751. return c
  38752. },
  38753. copy: function(c) {
  38754. this.displayName = c.displayName;
  38755. this.il = c.il
  38756. }
  38757. });
  38758. V.sq = V.My.extend({
  38759. skinData: s,
  38760. ctor: function() {
  38761. this.skinData = new V.Um;
  38762. this.il = V.zs
  38763. },
  38764. copy: function(c) {
  38765. V.My.prototype.copy.call(this, c);
  38766. this.skinData = c.skinData
  38767. }
  38768. });
  38769. V.vD = V.My.extend({
  38770. displayName: "",
  38771. ctor: function() {
  38772. this.displayName = "";
  38773. this.il = V.Ly
  38774. }
  38775. });
  38776. V.DK = V.My.extend({
  38777. ctor: function() {
  38778. this.il = V.HD
  38779. }
  38780. });
  38781. V.y4 = V.Um.extend({
  38782. oP: s,
  38783. name: "",
  38784. RI: "",
  38785. qxa: s,
  38786. ctor: function() {
  38787. this.oP = [];
  38788. this.RI = this.name = "";
  38789. this.qxa = s
  38790. },
  38791. j: u(),
  38792. tca: function(c) {
  38793. this.oP.push(c)
  38794. },
  38795. Am: function(c) {
  38796. return this.oP[c]
  38797. }
  38798. });
  38799. V.kS = V.O.extend({
  38800. sH: s,
  38801. name: "",
  38802. IB: 0.1,
  38803. ctor: function() {
  38804. this.sH = {};
  38805. this.name = "";
  38806. this.IB = 0.1
  38807. },
  38808. j: B(q),
  38809. nca: function(c) {
  38810. this.sH[c.name] = c
  38811. },
  38812. gTa: A("sH"),
  38813. Hx: function(c) {
  38814. return this.sH[c]
  38815. }
  38816. });
  38817. V.qv = V.Um.extend({
  38818. duration: 0,
  38819. tweenEasing: 0,
  38820. GH: 0,
  38821. LB: s,
  38822. ij: -1,
  38823. zC: "",
  38824. event: "",
  38825. ZR: "",
  38826. $R: "",
  38827. blendFunc: 0,
  38828. kj: 0,
  38829. Cu: q,
  38830. ctor: function() {
  38831. V.Um.prototype.ctor.call(this);
  38832. this.duration = 1;
  38833. this.tweenEasing = V.bb.oj;
  38834. this.GH = 0;
  38835. this.LB = [];
  38836. this.ij = 0;
  38837. this.$R = this.ZR = this.event = this.zC = "";
  38838. this.blendFunc = new C.Vm(C.Ic, C.Hc);
  38839. this.kj = 0;
  38840. this.Cu = q
  38841. },
  38842. copy: function(c) {
  38843. V.Um.prototype.copy.call(this, c);
  38844. this.duration = c.duration;
  38845. this.tweenEasing = c.tweenEasing;
  38846. this.ij = c.ij;
  38847. this.zC = c.zC;
  38848. this.event = c.event;
  38849. this.ZR = c.ZR;
  38850. this.$R = c.$R;
  38851. this.blendFunc = c.blendFunc;
  38852. this.Cu = c.Cu;
  38853. this.GH = c.GH;
  38854. this.LB = [];
  38855. if (0 != this.GH) for (var d = 0; d < this.GH; d++) this.LB[d] = c.LB[d]
  38856. }
  38857. });
  38858. V.H6 = V.O.extend({
  38859. wm: 0,
  38860. scale: 1,
  38861. duration: 0,
  38862. kh: s,
  38863. name: "",
  38864. ctor: function() {
  38865. this.wm = 0;
  38866. this.scale = 1;
  38867. this.duration = 0;
  38868. this.kh = [];
  38869. this.name = ""
  38870. },
  38871. j: function() {
  38872. this.kh = []
  38873. },
  38874. QO: function(c) {
  38875. this.kh.push(c)
  38876. },
  38877. Zda: function(c) {
  38878. return this.kh[c]
  38879. }
  38880. });
  38881. V.I6 = V.O.extend({
  38882. D1: s,
  38883. duration: 0,
  38884. scale: 1,
  38885. wu: 0,
  38886. qP: V.bb.oj,
  38887. loop: q,
  38888. tweenEasing: 2,
  38889. name: "",
  38890. ctor: function() {
  38891. this.name = "";
  38892. this.duration = 0;
  38893. this.scale = 1;
  38894. this.qP = this.wu = 0;
  38895. this.loop = q;
  38896. this.tweenEasing = V.bb.oj;
  38897. this.D1 = {}
  38898. },
  38899. vca: function(c) {
  38900. this.D1[c.name] = c
  38901. },
  38902. t0: function(c) {
  38903. return this.D1[c]
  38904. }
  38905. });
  38906. V.jS = V.O.extend({
  38907. JQ: s,
  38908. AI: s,
  38909. name: "",
  38910. ctor: function() {
  38911. this.JQ = {};
  38912. this.AI = []
  38913. },
  38914. uca: function(c) {
  38915. this.JQ[c.name] = c;
  38916. this.AI.push(c.name)
  38917. },
  38918. cea: function(c) {
  38919. return this.JQ[c]
  38920. },
  38921. dea: function() {
  38922. return Object.keys(this.JQ).length
  38923. }
  38924. });
  38925. function Bd(c, d) {
  38926. this.x = c || 0;
  38927. this.y = d || 0
  38928. }
  38929. V.p5 = V.O.extend({
  38930. dv: s,
  38931. ctor: function() {
  38932. this.dv = []
  38933. },
  38934. j: function() {
  38935. this.dv = [];
  38936. return q
  38937. },
  38938. kQa: function(c) {
  38939. c = Bd(c.x, c.y);
  38940. this.dv.push(c)
  38941. }
  38942. });
  38943. V.a8 = V.O.extend({
  38944. height: 0,
  38945. width: 0,
  38946. WQ: 0,
  38947. XQ: 0,
  38948. name: "",
  38949. tx: s,
  38950. ctor: function() {
  38951. this.width = this.height = 0;
  38952. this.XQ = this.WQ = 0.5;
  38953. this.name = "";
  38954. this.tx = []
  38955. },
  38956. j: function() {
  38957. this.tx = []
  38958. },
  38959. qca: function(c) {
  38960. this.tx.push(c)
  38961. },
  38962. BP: function(c) {
  38963. return this.tx[c]
  38964. }
  38965. });
  38966. V.hK = V.O.extend({
  38967. jt: s,
  38968. Kj: s,
  38969. xF: s,
  38970. ctor: function() {
  38971. this.xF = this.Kj = this.jt = s
  38972. },
  38973. j: B(q),
  38974. eJ: x("jt"),
  38975. fUa: A("jt"),
  38976. jHa: x("Kj"),
  38977. HTa: A("Kj"),
  38978. TC: x("xF"),
  38979. Am: A("xF"),
  38980. rh: function() {
  38981. zd(this.jt);
  38982. this.jt = s;
  38983. zd(this.xF);
  38984. this.xF = s;
  38985. zd(this.Kj);
  38986. this.Kj = s
  38987. }
  38988. });
  38989. V.hK.create = function() {
  38990. var c = new V.hK;
  38991. return c && c.j() ? c: s
  38992. };
  38993. V.Sg = V.Sg || V.O.extend({});
  38994. V.Sg.NZ = function(c, d, f) {
  38995. switch (f.il) {
  38996. case V.zs:
  38997. this.Cwa(c, d, f);
  38998. break;
  38999. case V.HD:
  39000. this.zwa(c, d, f);
  39001. break;
  39002. case V.Ly:
  39003. this.owa(c, d, f)
  39004. }
  39005. };
  39006. V.Sg.Wxa = function(c, d) {
  39007. switch (d.Am().il) {
  39008. case V.zs:
  39009. this.bda(c, d);
  39010. break;
  39011. case V.HD:
  39012. this.ada(c, d);
  39013. break;
  39014. case V.Ly:
  39015. this.Zca(c, d)
  39016. }
  39017. };
  39018. V.Sg.Vsa = {
  39019. a: 1,
  39020. b: 0,
  39021. H: 0,
  39022. P: 1,
  39023. na: 0,
  39024. oa: 0
  39025. };
  39026. V.Sg.DJa = function(c, d, f) {
  39027. var g = c.aC();
  39028. if (g) {
  39029. switch (c.q0()) {
  39030. case V.zs:
  39031. f && g.fja();
  39032. break;
  39033. case V.HD:
  39034. this.HJa(c, g, d);
  39035. break;
  39036. case V.Ly:
  39037. this.BJa(g, d);
  39038. break;
  39039. default:
  39040. d = c.uVa(),
  39041. g.UGa(d)
  39042. }
  39043. if ((V.ID || V.mv) && f) if (g = c.Kd.en, f = g.Kj) {
  39044. d = g.jt;
  39045. var h = d.me(),
  39046. g = this.Vsa;
  39047. g.a = h.a;
  39048. g.b = h.b;
  39049. g.H = h.H;
  39050. g.P = h.P;
  39051. g.na = h.na;
  39052. g.oa = h.oa;
  39053. d = d.Ep();
  39054. d = C.wv(d, g);
  39055. g.na = d.x;
  39056. g.oa = d.y;
  39057. c = C.Qg(g, c.Nc.me());
  39058. f.$h(c)
  39059. }
  39060. }
  39061. };
  39062. V.Sg.Cwa = function(c, d, f) {
  39063. var g = new V.sq;
  39064. g.copy(f);
  39065. d.TC(g);
  39066. this.bda(c, d)
  39067. };
  39068. V.Sg.bda = function(c, d) {
  39069. var f = s,
  39070. g = d.Am(),
  39071. f = g.displayName,
  39072. h = f.lastIndexOf("."); - 1 != h && (f = f.substring(0, h));
  39073. f = "" == f ? V.Do.create() : V.Do.cda(f + ".png");
  39074. d.eJ(f);
  39075. f.E2(c);
  39076. this.V0(c, d, g.displayName, f); (h = c.Nc) && (h.Gx().IB >= V.xs ? f.ss(g.skinData) : f.ss(c.Hx()))
  39077. };
  39078. V.Sg.V0 = function(c, d, f, g) {
  39079. var h = f.lastIndexOf("."); - 1 != h && (f = f.substring(0, h)); (f = V.Mr.ZBa(f)) && g.S(f.WQ, f.XQ);
  39080. if ((V.ID || V.mv) && f && 0 < f.tx.length) c = V.$J.create(c),
  39081. c.qwa(f.tx),
  39082. d.jHa(c)
  39083. };
  39084. V.Sg.owa = function(c, d, f) {
  39085. var g = new V.vD;
  39086. g.copy(f);
  39087. d.TC(g);
  39088. this.Zca(c, d)
  39089. };
  39090. V.Sg.Zca = function(c, d) {
  39091. var f = V.Bk.create(d.Am().displayName, c);
  39092. d.eJ(f)
  39093. };
  39094. V.Sg.BJa = function(c, d) {
  39095. c && (c.ed(), c.update(d))
  39096. };
  39097. V.Sg.zwa = function(c, d, f) {
  39098. var g = new V.DK;
  39099. g.copy(f);
  39100. d.TC(g);
  39101. this.ada(c, d)
  39102. };
  39103. V.Sg.ada = function(c, d) {
  39104. var f = C.B.create(d.Am().displayName);
  39105. f.Lm();
  39106. f.ze();
  39107. c.Nc && f.cq(c.Nc);
  39108. d.eJ(f)
  39109. };
  39110. V.Sg.HJa = function(c, d, f) {
  39111. var g = new V.Um;
  39112. V.Ij.Pfa(c.nu, g);
  39113. d.p(g.x, g.y);
  39114. d.gb(g.scaleX);
  39115. d.pb(g.scaleY);
  39116. d.update(f)
  39117. };
  39118. V.XS = V.O.extend({
  39119. ag: s,
  39120. en: s,
  39121. Ne: s,
  39122. Xo: -1,
  39123. yM: t,
  39124. hd: s,
  39125. Ja: q,
  39126. aM: s,
  39127. ctor: function() {
  39128. this.ag = [];
  39129. this.Ne = this.en = s;
  39130. this.Xo = -1;
  39131. this.yM = t;
  39132. this.hd = s;
  39133. this.Ja = q;
  39134. this.aM = V.gK
  39135. },
  39136. j: function(c) {
  39137. this.hd = c;
  39138. this.Sea(c.Hx());
  39139. return q
  39140. },
  39141. NZ: function(c, d) {
  39142. var f = s;
  39143. 0 <= d && d < this.ag.length ? f = this.ag[d] : (f = V.hK.create(), this.ag.push(f));
  39144. var g = s;
  39145. if (c instanceof V.Do) {
  39146. c.E2(this.hd);
  39147. g = new V.sq;
  39148. V.Sg.V0(this.hd, f, c.Wv, c);
  39149. var h = f.Am();
  39150. if (h instanceof V.sq) c.ss(h.skinData),
  39151. g.skinData = h.skinData;
  39152. else for (h = this.ag.length - 2; 0 <= h; h--) {
  39153. var k = this.ag[h].Am();
  39154. if (k instanceof V.sq) {
  39155. c.ss(k.skinData);
  39156. g.skinData = k.skinData;
  39157. break
  39158. }
  39159. }
  39160. } else c instanceof C.B ? (g = new V.DK, c.Lm(), c.ze(), (h = this.hd.Nc) && c.cq(h)) : c instanceof V.Bk ? (h = c, g = new V.vD, g.displayName = h.getName(), h.Tu(this.hd)) : g = new V.My;
  39161. f.eJ(c);
  39162. f.TC(g);
  39163. d == this.Xo && (this.Xo = -1, this.Or(d, t))
  39164. },
  39165. UNa: function(c, d) {
  39166. var f = s;
  39167. if (d instanceof V.Do) {
  39168. d.E2(this.hd);
  39169. f = new V.sq;
  39170. f.displayName = d.Wv;
  39171. V.Sg.V0(this.hd, c, d.Wv, d);
  39172. var g = c.Am();
  39173. if (g instanceof V.sq) d.ss(g.skinData);
  39174. else {
  39175. for (var g = t,
  39176. h = this.ag.length - 2; 0 <= h; h--) {
  39177. var k = this.ag[h].Am();
  39178. if (k) {
  39179. g = q;
  39180. d.ss(k.skinData);
  39181. f.skinData = k.skinData;
  39182. break
  39183. }
  39184. }
  39185. g || d.ss(new V.Um);
  39186. d.ss(new V.Um)
  39187. }
  39188. } else d instanceof C.B ? (f = new V.DK, f.displayName = d.CN) : d instanceof V.Bk ? (f = new V.vD, f.displayName = d.getName(), d.Tu(this.hd)) : f = new V.My;
  39189. c.eJ(d);
  39190. c.TC(f)
  39191. },
  39192. Sga: function(c) {
  39193. this.ag.splice(c, 1);
  39194. c == this.Xo && this.xR(s)
  39195. },
  39196. ZTa: A("ag"),
  39197. Or: function(c, d) {
  39198. if (c >= this.ag.length) C.log("the index value is out of range");
  39199. else if (this.yM = d, 0 > c) this.Xo = c,
  39200. this.Ne && (this.Ne.Lm(q), this.xR(s), this.Ne = s);
  39201. else if (this.Xo != c) {
  39202. this.Xo = c;
  39203. var f = this.ag[this.Xo];
  39204. f && this.xR(f)
  39205. }
  39206. },
  39207. Oca: function(c, d) {
  39208. for (var f = 0; f < this.ag.length; f++) if (this.ag[f].Am().displayName == c) {
  39209. this.Or(f, d);
  39210. break
  39211. }
  39212. },
  39213. xR: function(c) {
  39214. var d = this.en; (V.ID || V.mv) && d && d.Kj && d.Kj.setActive(t);
  39215. d = this.en = c; (V.ID || V.mv) && d && d.Kj && d.Kj.setActive(q);
  39216. c = d == s ? s: d.jt;
  39217. this.Ne && (this.Ne instanceof V.Bk && this.hd.K2(s), this.Ne.Lm(q), this.Ne = s); (this.Ne = c) ? (c instanceof V.Bk ? this.hd.K2(c) : c instanceof C.B && c.Zga(), c.sb && (c.G(this.hd.xu()), c.K(this.hd.hb)), this.aM = this.en.Am().il) : this.aM = V.gK
  39218. },
  39219. aC: A("Ne"),
  39220. q0: A("aM"),
  39221. QTa: A("Xo"),
  39222. PTa: A("en"),
  39223. YTa: function(c) {
  39224. return this.ag[c]
  39225. },
  39226. Sea: function(c) {
  39227. this.ag = [];
  39228. if (c) {
  39229. c = c.oP;
  39230. for (var d = 0; d < c.length; d++) {
  39231. var f = c[d],
  39232. g = V.hK.create();
  39233. g.TC(f);
  39234. V.Sg.Wxa(this.hd, g);
  39235. this.ag.push(g)
  39236. }
  39237. }
  39238. },
  39239. Pxa: function(c, d) {
  39240. var f = C.d(0, 0);
  39241. d === m ? (f.x = c.x, f.y = c.y) : (f.x = c, f.y = d);
  39242. if (!this.Ja || 0 > this.Xo) return t;
  39243. var g = t;
  39244. switch (this.en.Am().il) {
  39245. case V.zs:
  39246. var g = C.d(0, 0),
  39247. h = this.en.jt,
  39248. h = h.lj(0),
  39249. g = V.woa(h, f, g)
  39250. }
  39251. return g
  39252. },
  39253. va: function(c) {
  39254. this.Ne && (this.Ja = c, this.Ne.va(c))
  39255. },
  39256. l1: A("Ja"),
  39257. i: function() {
  39258. return ! this.Ne ? C.size(0, 0) : this.Ne.i()
  39259. },
  39260. Ae: function() {
  39261. return ! this.Ne ? C.rect(0, 0, 0, 0) : this.Ne.Ae()
  39262. },
  39263. dk: function() {
  39264. return ! this.Ne ? C.d(0, 0) : this.Ne.dk()
  39265. },
  39266. Ep: function() {
  39267. return ! this.Ne ? C.d(0, 0) : this.Ne.Ep()
  39268. },
  39269. HUa: A("yM"),
  39270. rh: function() {
  39271. this.ag = [];
  39272. this.Ne && (this.Ne.Lm(q), this.Ne = s)
  39273. }
  39274. });
  39275. V.XS.create = function(c) {
  39276. var d = new V.XS;
  39277. return d && d.j(c) ? d: s
  39278. };
  39279. V.Do = V.u.extend({
  39280. QY: s,
  39281. ej: s,
  39282. RY: s,
  39283. Wv: "",
  39284. Nc: s,
  39285. qa: "Skin",
  39286. ctor: function() {
  39287. C.u.prototype.ctor.call(this);
  39288. this.ej = this.QY = s;
  39289. this.Wv = "";
  39290. this.RY = {
  39291. a: 1,
  39292. b: 0,
  39293. H: 0,
  39294. P: 1,
  39295. na: 0,
  39296. oa: 0
  39297. };
  39298. this.Nc = s
  39299. },
  39300. pl: function(c) {
  39301. var d = C.u.prototype.pl.call(this, c);
  39302. this.Wv = c;
  39303. return d
  39304. },
  39305. Ce: function(c) {
  39306. var d = C.u.prototype.Ce.call(this, c);
  39307. this.Wv = c;
  39308. return d
  39309. },
  39310. ss: function(c) {
  39311. this.QY = c;
  39312. this.gb(c.scaleX);
  39313. this.pb(c.scaleY);
  39314. this.i3(C.LC(c.skewX));
  39315. this.j3(C.LC( - c.skewY));
  39316. this.p(c.x, c.y);
  39317. c = this.me();
  39318. var d = this.RY;
  39319. d.a = c.a;
  39320. d.b = c.b;
  39321. d.H = c.H;
  39322. d.P = c.P;
  39323. d.na = c.na;
  39324. d.oa = c.oa;
  39325. this.fja()
  39326. },
  39327. PBa: A("QY"),
  39328. E2: x("ej"),
  39329. Kda: A("ej"),
  39330. fja: function() {
  39331. var c = this.Lf = C.Qg(this.RY, this.ej.nu),
  39332. d = this.Nc;
  39333. d && d.XB() && (this.Lf = C.Qg(c, d.me()));
  39334. C.L === C.cb && (c = this.Lf, c.b *= -1, c.H *= -1, c.b = [c.H, c.H = c.b][0])
  39335. },
  39336. Ae: function() {
  39337. var c = C.rect(0, 0, this.o.width, this.o.height),
  39338. d = this.me();
  39339. C.L === C.cb && (d.b *= -1, d.H *= -1, d.b = [d.H, d.H = d.b][0]);
  39340. return C.Gi(c, d)
  39341. },
  39342. uAa: A("Wv"),
  39343. ql: function() {
  39344. return C.Qg(this.Lf, this.ej.Nc.ql())
  39345. },
  39346. j0a: function() {
  39347. var c = this.Lf,
  39348. d = this.Nb,
  39349. d = C.wv(d, c);
  39350. c.na = d.x;
  39351. c.oa = d.y;
  39352. return C.Qg(c, this.ej.Nc.ql())
  39353. }
  39354. });
  39355. V.Do.prototype.me = C.A.prototype.nN;
  39356. H = V.Do.prototype;
  39357. C.e(H, "skinData", H.PBa, H.ss);
  39358. C.e(H, "displayName", H.uAa);
  39359. H = s;
  39360. V.Do.create = function(c, d) {
  39361. var f = arguments.length,
  39362. g = new V.Do;
  39363. if (0 === f) {
  39364. if (g.j()) return g
  39365. } else if (g && g.Ce(c, d)) return g;
  39366. return s
  39367. };
  39368. V.Do.cda = function(c) {
  39369. var d = new V.Do;
  39370. return d && d.pl(c) ? d: s
  39371. };
  39372. V.NJ = -4;
  39373. V.rD = -3;
  39374. V.sD = -2;
  39375. V.h4 = -1;
  39376. V.gS = 0;
  39377. V.zja = 1;
  39378. V.qD = 2;
  39379. V.Ek = V.O.extend({
  39380. np: 1,
  39381. $l: q,
  39382. yt: q,
  39383. am: t,
  39384. Pk: 0,
  39385. zn: 0,
  39386. Xk: 0,
  39387. zO: 0,
  39388. VO: s,
  39389. Yg: 0,
  39390. Qj: 0,
  39391. dh: 0,
  39392. Lz: s,
  39393. qta: t,
  39394. ctor: function() {
  39395. this.np = 1;
  39396. this.yt = this.$l = q;
  39397. this.am = t;
  39398. this.zn = this.Qj = this.Pk = this.Yg = 0;
  39399. this.Xk = V.zja;
  39400. this.zO = V.bb.oj;
  39401. this.VO = 1 / 60;
  39402. this.Qj = this.Lz = 0;
  39403. this.qta = t
  39404. },
  39405. pause: function() {
  39406. this.yt = q;
  39407. this.am = t
  39408. },
  39409. nk: function() {
  39410. this.yt = t;
  39411. this.am = q
  39412. },
  39413. stop: function() {
  39414. this.$l = q;
  39415. this.am = t
  39416. },
  39417. play: function(c, d) {
  39418. this.yt = this.$l = t;
  39419. this.am = q;
  39420. this.Yg = 0;
  39421. this.dh = c;
  39422. this.zO = d
  39423. },
  39424. update: function(c) {
  39425. if (this.$l || this.yt || 0 >= this.zn) return t;
  39426. var d = this.dh,
  39427. f = this.Yg;
  39428. 0 >= d ? (this.Pk = 1, f = 0) : (f += this.np * (c / this.VO), this.Pk = f / d, f = V.QB(f, d));
  39429. this.Yg = f;
  39430. this.X3();
  39431. return q
  39432. },
  39433. X3: u(),
  39434. Hea: function(c) {
  39435. var d = this.Xk;
  39436. d == V.rD ? d = V.qD: d == V.sD && (d = V.gS);
  39437. this.Xk = d;
  39438. this.Lz = c;
  39439. this.dh = this.Qj
  39440. },
  39441. nAa: function() {
  39442. return this.Lz = (this.zn - 1) * this.Pk
  39443. },
  39444. xDa: A("yt"),
  39445. qDa: A("$l"),
  39446. oAa: A("Pk"),
  39447. DBa: A("zn"),
  39448. bea: A("Xk"),
  39449. iCa: A("zO"),
  39450. MSa: A("VO"),
  39451. n3a: x("VO"),
  39452. eWa: A("np"),
  39453. GR: x("np"),
  39454. ifa: A("am")
  39455. });
  39456. H = V.Ek.prototype;
  39457. C.e(H, "currentFrameIndex", H.nAa);
  39458. C.e(H, "paused", H.xDa);
  39459. C.e(H, "completed", H.qDa);
  39460. C.e(H, "currentPercent", H.oAa);
  39461. C.e(H, "rawDuration", H.DBa);
  39462. C.e(H, "loop", H.bea);
  39463. C.e(H, "tweenEasing", H.iCa);
  39464. C.e(H, "playing", H.ifa);
  39465. H = s;
  39466. V.xK = {
  39467. start: 0,
  39468. complete: 1,
  39469. oEa: 2
  39470. };
  39471. V.m4 = V.O.extend({
  39472. e9: s,
  39473. $s: s,
  39474. km: s,
  39475. ctor: function(c, d, f) {
  39476. this.Ih = f;
  39477. this.$s = d;
  39478. this.km = c
  39479. },
  39480. call: function() {
  39481. this.$s && this.$s.apply(this.km, this.e9)
  39482. },
  39483. jha: x("e9")
  39484. });
  39485. function Cd() {
  39486. this.armature = s;
  39487. this.Tfa = this.Ufa = ""
  39488. }
  39489. function Dd() {
  39490. this.ej = s;
  39491. this.Hda = "";
  39492. this.currentFrameIndex = this.fga = 0
  39493. }
  39494. V.PJ = V.Ek.extend({
  39495. qu: s,
  39496. er: s,
  39497. Nc: s,
  39498. sw: "",
  39499. oua: 0,
  39500. vp: 0,
  39501. aj: s,
  39502. cA: s,
  39503. CA: s,
  39504. Yt: 1,
  39505. Ur: t,
  39506. yW: s,
  39507. yX: s,
  39508. userObject: s,
  39509. gr: s,
  39510. xw: t,
  39511. kN: t,
  39512. dp: 0,
  39513. ctor: function() {
  39514. V.Ek.prototype.ctor.call(this);
  39515. this.er = this.qu = s;
  39516. this.sw = "";
  39517. this.Nc = s;
  39518. this.vp = this.oua = 0;
  39519. this.aj = [];
  39520. this.CA = this.cA = s;
  39521. this.Yt = 1;
  39522. this.Ur = t;
  39523. this.yW = [];
  39524. this.yX = [];
  39525. this.userObject = s;
  39526. this.gr = [];
  39527. this.kN = this.xw = t;
  39528. this.dp = 0
  39529. },
  39530. j: function(c) {
  39531. this.Nc = c;
  39532. this.aj = [];
  39533. return q
  39534. },
  39535. pause: function() {
  39536. for (var c = 0; c < this.aj.length; c++) this.aj[c].pause();
  39537. V.Ek.prototype.pause.call(this)
  39538. },
  39539. nk: function() {
  39540. for (var c = 0; c < this.aj.length; c++) this.aj[c].nk();
  39541. V.Ek.prototype.nk.call(this)
  39542. },
  39543. stop: function() {
  39544. for (var c = 0; c < this.aj.length; c++) this.aj[c].stop();
  39545. this.aj = [];
  39546. V.Ek.prototype.stop.call(this)
  39547. },
  39548. sia: function(c) {
  39549. if (c != this.Yt) {
  39550. this.Yt = c;
  39551. this.np = !this.er ? this.Yt: this.Yt * this.er.scale;
  39552. c = this.Nc.Fh;
  39553. for (var d in c) {
  39554. var f = c[d];
  39555. f.lu.GR(this.np);
  39556. f.Tl && f.Tl.ll().GR(this.np)
  39557. }
  39558. }
  39559. },
  39560. SBa: A("Yt"),
  39561. Zza: A("Yt"),
  39562. YGa: function(c) {
  39563. return this.sia(c)
  39564. },
  39565. play: function(c, d, f) {
  39566. if (this.qu == s) C.log("this.animationData can not be null");
  39567. else if (this.er = this.qu.cea(c), this.er == s) C.log("this._movementData can not be null");
  39568. else {
  39569. d === m && (d = -1);
  39570. f === m && (f = -1);
  39571. var g = this.er;
  39572. this.zn = g.duration;
  39573. this.sw = c;
  39574. this.np = this.Yt * g.scale;
  39575. d = -1 == d ? g.wu: d;
  39576. c = g.qP;
  39577. c = 0 == c ? this.zn: c;
  39578. var h = g.tweenEasing;
  39579. f = 0 > f ? g.loop: Boolean(f);
  39580. this.xw = t;
  39581. V.Ek.prototype.play.call(this, d, h);
  39582. 0 == this.zn ? this.Xk = V.NJ: (this.Xk = f ? V.sD: V.rD, this.Qj = c);
  39583. this.aj = [];
  39584. var k, n = this.Nc.Fh,
  39585. p;
  39586. for (p in n) {
  39587. var r = n[p];
  39588. k = g.t0(r.getName());
  39589. var v = r.lu;
  39590. k && 0 < k.kh.length ? (this.aj.push(v), k.duration = g.duration, v.play(k, d, c, f, h), v.GR(this.np), r.Tl && r.Tl.ll().GR(this.np)) : r.YP || (r.Kd.Or( - 1, t), v.stop())
  39591. }
  39592. this.Nc.update(0)
  39593. }
  39594. },
  39595. h1a: function(c, d, f) {
  39596. this.gr = [];
  39597. this.kN = f;
  39598. this.xw = q;
  39599. for (f = this.dp = 0; f < c.length; f++) this.gr.push({
  39600. name: c[f],
  39601. wu: d
  39602. });
  39603. this.Y3()
  39604. },
  39605. Y3: function() {
  39606. if (this.xw) {
  39607. if (this.kN) {
  39608. var c = this.gr[this.dp];
  39609. this.play(c.name, c.wu, -1, 0);
  39610. this.dp++;
  39611. this.dp >= this.gr.length && (this.dp = 0)
  39612. } else this.dp < this.gr.length ? (c = this.gr[this.dp], this.play(c.name, c.wu, -1, 0), this.dp++) : this.xw = t;
  39613. this.xw = q
  39614. }
  39615. },
  39616. QP: function(c) {
  39617. if (!this.er || 0 > c || c >= this.er.duration) C.log("Please ensure you have played a movement, and the frameIndex is in the range.");
  39618. else {
  39619. var d = this.Ur;
  39620. this.am = this.Ur = q;
  39621. this.$l = this.yt = t;
  39622. V.Ek.prototype.Hea.call(this, c);
  39623. this.Pk = this.Lz / (this.er.duration - 1);
  39624. this.Yg = this.dh * this.Pk;
  39625. for (var f = 0; f < this.aj.length; f++) this.aj[f].QP(c);
  39626. this.Nc.update(0);
  39627. this.Ur = d
  39628. }
  39629. },
  39630. xCa: function(c) {
  39631. this.QP(c);
  39632. this.pause()
  39633. },
  39634. IFa: function(c, d, f, g) {
  39635. "undefined" == typeof d && (d = -1);
  39636. "undefined" == typeof g && (g = -1);
  39637. f = this.qu.AI; - 1 > c || c >= f.length || this.play(f[c], d, g, 0)
  39638. },
  39639. f1a: function(c, d, f, g, h) {
  39640. C.log("playByIndex is deprecated. Use playWithIndex instead.");
  39641. this.IFa(c, d, f, g, h)
  39642. },
  39643. g1a: function(c, d, f) {
  39644. this.gr = [];
  39645. this.kN = f;
  39646. this.xw = q;
  39647. this.dp = 0;
  39648. f = this.qu.AI;
  39649. for (var g = 0; g < c.length; g++) this.gr.push({
  39650. name: f[c[g]],
  39651. wu: d
  39652. });
  39653. this.Y3()
  39654. },
  39655. dea: function() {
  39656. return this.qu.dea()
  39657. },
  39658. update: function(c) {
  39659. if (V.Ek.prototype.update.call(this, c)) for (var d = 0; d < this.aj.length; d++) this.aj[d].update(c);
  39660. for (c = this.yW; 0 < c.length;) d = c.shift(),
  39661. this.Ur = q,
  39662. this.yxa([d.ej, d.Hda, d.fga, d.currentFrameIndex]),
  39663. this.Ur = t;
  39664. for (c = this.yX; 0 < c.length;) d = c.shift(),
  39665. this.zxa([d.armature, d.Ufa, d.Tfa])
  39666. },
  39667. X3: function() {
  39668. var c = this.Pk;
  39669. if (1 <= c) {
  39670. switch (this.Xk) {
  39671. case V.rD:
  39672. if (this.Xk = V.qD, this.Yg = (c - 1) * this.dh, c = this.Yg / this.Qj, 1 > c) {
  39673. this.dh = this.Qj;
  39674. this.KQ(this.Nc, V.xK.start, this.sw);
  39675. break
  39676. }
  39677. case V.qD:
  39678. case V.NJ:
  39679. c = 1;
  39680. this.$l = q;
  39681. this.am = t;
  39682. this.KQ(this.Nc, V.xK.complete, this.sw);
  39683. this.Y3();
  39684. break;
  39685. case V.sD:
  39686. this.Xk = V.gS;
  39687. c = V.QB(c, 1);
  39688. this.Yg = 0 == this.dh ? 0 : V.QB(this.Yg, this.dh);
  39689. this.dh = 0 < this.Qj ? this.Qj: 1;
  39690. this.KQ(this, V.xK.start, this.sw);
  39691. break;
  39692. default:
  39693. this.Yg = V.QB(this.Yg, this.dh),
  39694. this.vp = 0,
  39695. this.KQ(this.Nc, V.xK.oEa, this.sw)
  39696. }
  39697. this.Pk = c
  39698. }
  39699. },
  39700. STa: function() {
  39701. return this.$l ? "": this.sw
  39702. },
  39703. MHa: function(c, d) {
  39704. this.CA = new V.m4(d, c)
  39705. },
  39706. zxa: function(c) {
  39707. this.CA && (this.CA.jha(c), this.CA.call())
  39708. },
  39709. d4a: function(c, d) {
  39710. this.cA = new V.m4(d, c)
  39711. },
  39712. yxa: function(c) {
  39713. this.cA && (this.cA.jha(c), this.cA.call())
  39714. },
  39715. KQ: function(c, d, f) {
  39716. if (this.CA) {
  39717. var g = new Cd;
  39718. g.armature = c;
  39719. g.Ufa = d;
  39720. g.Tfa = f;
  39721. this.yX.push(g)
  39722. }
  39723. },
  39724. Rza: function(c, d, f, g) {
  39725. if (this.cA) {
  39726. var h = new Dd;
  39727. h.ej = c;
  39728. h.Hda = d;
  39729. h.fga = f;
  39730. h.currentFrameIndex = g;
  39731. this.yW.push(h)
  39732. }
  39733. },
  39734. gha: x("qu"),
  39735. Jda: A("qu"),
  39736. xIa: x("userObject"),
  39737. lCa: A("userObject"),
  39738. sYa: A("Ur"),
  39739. m4a: x("Ur")
  39740. });
  39741. H = V.PJ.prototype;
  39742. C.e(H, "speedScale", H.SBa, H.sia);
  39743. C.e(H, "animationScale", H.Zza, H.YGa);
  39744. H = s;
  39745. V.PJ.create = function(c) {
  39746. var d = new V.PJ;
  39747. return d && d.j(c) ? d: s
  39748. };
  39749. V.DU = V.Ek.extend({
  39750. Fd: s,
  39751. Jf: s,
  39752. Qc: s,
  39753. Cq: s,
  39754. Ri: s,
  39755. hd: s,
  39756. dA: 0,
  39757. Mv: 0,
  39758. $w: 0,
  39759. vp: 0,
  39760. Sq: 0,
  39761. td: s,
  39762. LA: t,
  39763. ctor: function() {
  39764. V.Ek.prototype.ctor.call(this);
  39765. this.Ri = this.hd = this.Cq = this.Qc = this.Jf = this.Fd = s;
  39766. this.dA = V.bb.oj;
  39767. this.Sq = this.vp = 0;
  39768. this.td = s;
  39769. this.LA = t
  39770. },
  39771. j: function(c) {
  39772. this.Qc = new V.qv;
  39773. this.Cq = new V.qv;
  39774. this.hd = c;
  39775. this.Fd = this.hd.Fd;
  39776. this.Fd.ij = -1;
  39777. if (c = c.Nc) this.td = c.ll();
  39778. return q
  39779. },
  39780. play: function(c, d, f, g, h) {
  39781. V.Ek.prototype.play.call(this, d, h);
  39782. this.Xk = g ? V.sD: V.rD;
  39783. this.Sq = this.vp = this.Mv = this.$w = 0;
  39784. h = c != this.Ri;
  39785. this.Ri = c;
  39786. this.zn = this.Ri.duration;
  39787. c = this.Ri.Zda(0);
  39788. this.Fd.ij = c.ij;
  39789. this.hd.Nc.Gx().IB >= V.xs && (V.Ij.vEa(this.Fd, this.hd.Hx()), this.Fd.scaleX += 1, this.Fd.scaleY += 1);
  39790. 0 == this.zn || 1 == this.Ri.kh.length ? (this.Xk = V.NJ, 0 == d ? this.Ou(c, c) : this.Ou(this.Fd, c), this.dA = V.bb.oj) : 1 < this.Ri.kh.length && (this.Qj = f * this.Ri.scale, g && 0 != this.Ri.wm ? this.Ou(this.Fd, this.S3(this.hja(1 - this.Ri.wm), this.Cq)) : !h || 0 == d ? this.Ou(c, c) : this.Ou(this.Fd, c));
  39791. this.S3(0)
  39792. },
  39793. QP: function(c) {
  39794. V.Ek.prototype.Hea.call(this, c);
  39795. this.Sq = this.vp = this.Mv = this.$w = 0;
  39796. this.am = q;
  39797. this.$l = this.yt = t;
  39798. this.Pk = this.Lz / (this.zn - 1);
  39799. this.Yg = this.dh * this.Pk
  39800. },
  39801. xCa: function(c) {
  39802. this.QP(c);
  39803. this.pause()
  39804. },
  39805. X3: function() {
  39806. var c = this.Pk,
  39807. d = this.Xk;
  39808. if (1 <= c) switch (d) {
  39809. case V.NJ:
  39810. c = 1;
  39811. this.$l = q;
  39812. this.am = t;
  39813. break;
  39814. case V.rD:
  39815. d = V.qD;
  39816. c = 0 >= this.Qj ? 1 : (c - 1) * this.dh / this.Qj;
  39817. 1 <= c ? (c = 1, this.$l = q, this.am = t) : (this.dh = this.Qj, this.Yg = c * this.dh, this.Sq = this.vp = this.Mv = this.$w = 0);
  39818. break;
  39819. case V.sD:
  39820. d = V.gS;
  39821. this.dh = 0 < this.Qj ? this.Qj: 1;
  39822. 0 != this.Ri.wm ? (this.Yg = (1 - this.Ri.wm) * this.dh, c = this.Yg / this.dh) : this.Yg = c = 0;
  39823. this.Sq = this.vp = this.Mv = this.$w = 0;
  39824. break;
  39825. case V.qD:
  39826. c = 1;
  39827. this.$l = q;
  39828. this.am = t;
  39829. break;
  39830. default:
  39831. this.Yg = V.QB(this.Yg, this.dh),
  39832. this.Mv = this.$w = 0
  39833. }
  39834. 1 > c && d < V.h4 && (c = Math.sin(c * C.PI / 2));
  39835. this.Pk = c;
  39836. this.Xk = d;
  39837. d > V.h4 && (c = this.hja(c));
  39838. this.dA != V.bb.bja && this.S3(c)
  39839. },
  39840. Ou: function(c, d, f) {
  39841. "undefined" == typeof f && (f = q);
  39842. 0 > c.ij && 0 <= d.ij ? (this.Qc.copy(d), this.Cq.J3(d, d, f)) : 0 > d.ij && 0 <= c.ij ? (this.Qc.copy(c), this.Cq.J3(d, d, f)) : (this.Qc.copy(c), this.Cq.J3(c, d, f));
  39843. c.Cu || (this.Fd.copy(c), this.Fd.Cu = q);
  39844. this.Zwa(c)
  39845. },
  39846. Zwa: function(c) {
  39847. if (c) {
  39848. var d = this.hd,
  39849. f = c.ij,
  39850. g = d.Kd;
  39851. g.yM || (g.Or(f, t), (f = g.aC()) && f.Yd(c.blendFunc));
  39852. this.Fd.Tm = c.Tm;
  39853. d.OJa(); (d = d.Tl) && "" != c.zC && d.ll().play(c.zC)
  39854. }
  39855. },
  39856. S3: function(c, d) {
  39857. d || (d = this.Fd);
  39858. var f = this.Qc,
  39859. g = this.Cq;
  39860. f.Cu || (c = 0);
  39861. d.x = f.x + c * g.x;
  39862. d.y = f.y + c * g.y;
  39863. d.scaleX = f.scaleX + c * g.scaleX;
  39864. d.scaleY = f.scaleY + c * g.scaleY;
  39865. d.skewX = f.skewX + c * g.skewX;
  39866. d.skewY = f.skewY + c * g.skewY;
  39867. this.hd.tIa(q);
  39868. d && g.$n && this.qJa(c, d);
  39869. return d
  39870. },
  39871. qJa: function(c, d) {
  39872. var f = this.Qc,
  39873. g = this.Cq;
  39874. d.a = f.a + c * g.a;
  39875. d.r = f.r + c * g.r;
  39876. d.g = f.g + c * g.g;
  39877. d.b = f.b + c * g.b;
  39878. this.hd.ro()
  39879. },
  39880. hja: function(c) {
  39881. 1 < c && 0 != this.Ri.wm && (c = V.QB(c, 1));
  39882. var d = (this.zn - 1) * c,
  39883. f,
  39884. g,
  39885. h = this.$w,
  39886. k = this.Mv,
  39887. n = this.vp;
  39888. if (d < h || d >= h + k) {
  39889. var k = this.Ri.kh.length,
  39890. p = this.Ri.kh;
  39891. if (d < p[0].kj) return f = g = p[0],
  39892. this.Ou(f, g),
  39893. c;
  39894. if (d >= p[k - 1].kj) {
  39895. if (this.LA) return f = g = p[k - 1],
  39896. this.Ou(f, g),
  39897. c;
  39898. this.LA = q
  39899. } else this.LA = t;
  39900. do
  39901. if (this.Sq = n, f = p[this.Sq], h = f.kj, n = this.Sq + 1, n >= k && (n = 0), g = p[n], f.event && !this.td.Ur && this.td.Rza(this.hd, f.event, f.kj, d), d == f.kj || this.LA && this.Sq == k - 1) break;
  39902. while (d < f.kj || d >= g.kj);
  39903. k = g.kj - f.kj;
  39904. this.dA = f.tweenEasing;
  39905. this.Ou(f, g, t);
  39906. this.$w = h;
  39907. this.Mv = k;
  39908. this.vp = n
  39909. }
  39910. c = 0 == k ? 0 : (d - h) / k;
  39911. d = this.dA != V.bb.oj ? this.dA: this.zO;
  39912. d != V.bb.bja && (d != V.bb.oj && !this.LA) && (c = V.jc.rJa(c, d, this.Qc.LB));
  39913. return c
  39914. },
  39915. gy: x("td"),
  39916. ll: A("td"),
  39917. rh: function() {
  39918. this.Cq = this.Qc = s
  39919. }
  39920. });
  39921. V.DU.create = function(c) {
  39922. var d = new V.DU;
  39923. return d && d.j(c) ? d: s
  39924. };
  39925. V.RMa = 32;
  39926. V.m5 = V.O.extend({
  39927. w9: 0,
  39928. V$: 0,
  39929. ctor: function(c, d) {
  39930. this.w9 = c || 0;
  39931. this.V$ = d || 0
  39932. },
  39933. oja: function(c) {
  39934. c.ZQa = this.w9;
  39935. c.group = this.V$
  39936. }
  39937. });
  39938. V.xla = V.O.extend({
  39939. shape: s,
  39940. D_: s,
  39941. colliderFilter: s,
  39942. dF: s,
  39943. ctor: function(c) {
  39944. this.shape = s;
  39945. this.D_ = c;
  39946. this.colliderFilter = new V.m5;
  39947. V.mv && (this.dF = [])
  39948. },
  39949. BP: A("D_"),
  39950. L3a: x("D_"),
  39951. zWa: A("shape"),
  39952. lIa: x("shape"),
  39953. Jx: A("colliderFilter"),
  39954. ps: x("colliderFilter"),
  39955. sTa: A("dF")
  39956. });
  39957. V.$J = V.O.extend({
  39958. hi: s,
  39959. hd: s,
  39960. ei: s,
  39961. Wg: t,
  39962. uM: s,
  39963. ctor: function() {
  39964. this.hi = [];
  39965. this.ei = this.hd = s;
  39966. this.Wg = t;
  39967. this.uM = s
  39968. },
  39969. j: function(c) {
  39970. this.hi = [];
  39971. c && (this.hd = c);
  39972. this.uM = new V.m5;
  39973. return q
  39974. },
  39975. qca: function(c) {
  39976. var d = new V.xla(c);
  39977. this.hi.push(d);
  39978. if (V.mv) {
  39979. d = d.dF;
  39980. c = c.dv;
  39981. for (var f = 0; f < c.length; f++) d.push(new Bd(0, 0))
  39982. }
  39983. },
  39984. qwa: function(c) {
  39985. for (var d = 0; d < c.length; d++) this.qca(c[d])
  39986. },
  39987. f2a: function(c) {
  39988. for (var d = this.hi,
  39989. f = 0; f < d.length; f++) if (d[f].BP() == c) {
  39990. d.splice(f, 1);
  39991. break
  39992. }
  39993. },
  39994. mk: function() {
  39995. this.hi = []
  39996. },
  39997. ps: function(c) {
  39998. this.uM = c;
  39999. for (var d = 0; d < this.hi.length; d++) {
  40000. var f = this.hi[d];
  40001. f.ps(c);
  40002. V.ID && f.shape && f.Jx().oja(f.shape)
  40003. }
  40004. },
  40005. Jx: A("uM"),
  40006. setActive: function(c) {
  40007. if (this.Wg != c) {
  40008. this.Wg = c;
  40009. c = this.ei;
  40010. var d;
  40011. if (c) if (d = s, this.Wg) for (var f = 0; f < this.hi.length; f++) d = this.hi[f],
  40012. d = d.shape,
  40013. c.D3.Awa(d);
  40014. else for (f = 0; f < this.hi.length; f++) d = this.hi[f],
  40015. d = d.shape,
  40016. c.D3.o2a(d)
  40017. }
  40018. },
  40019. Yza: A("Wg"),
  40020. n0: A("hi"),
  40021. ECa: C.d(0, 0),
  40022. $h: function(c) {
  40023. if (this.Wg) for (var d = s,
  40024. f = this.ei,
  40025. g = this.ECa,
  40026. h = 0; h < this.hi.length; h++) {
  40027. var d = this.hi[h],
  40028. k = d.BP(),
  40029. n = s;
  40030. f && (n = d.shape);
  40031. for (var k = k.dv,
  40032. p = d.dF,
  40033. d = 0; d < k.length; d++) if (g.x = k[d].x, g.y = k[d].y, g = C.wv(g, c), n && (n.wg[2 * d] = g.x, n.wg[2 * d + 1] = g.y), V.mv) {
  40034. var r = C.d(0, 0);
  40035. r.x = g.x;
  40036. r.y = g.y;
  40037. p[d] = r
  40038. }
  40039. if (n) for (d = 0; d < k.length; d++) p = cp.ea.normalize(cp.ea.d1a(cp.ea.sub(n.wg[(d + 1) % n.wg.length], n.wg[d]))),
  40040. n.ixa[d].ds = p,
  40041. n.ixa[d].P = cp.ea.KRa(p, n.wg[d])
  40042. }
  40043. },
  40044. k0: A("ei"),
  40045. uR: function(c) {
  40046. this.ei = c;
  40047. for (var d = 0; d < this.hi.length; d++) {
  40048. c = this.hi[d];
  40049. for (var f = [], g = c.BP().dv, d = 0; d < g.length; d++) {
  40050. var h = g[d];
  40051. f.push(h.x);
  40052. f.push(h.y)
  40053. }
  40054. f = new cp.UMa(this.ei, f, cp.R6a);
  40055. f.i3a = q;
  40056. f.data = this.hd;
  40057. this.Wg && this.ei.D3.Awa(f);
  40058. c.lIa(f);
  40059. c.Jx().oja(f)
  40060. }
  40061. }
  40062. });
  40063. H = V.$J.prototype;
  40064. C.e(H, "colliderFilter", H.Jx, H.ps);
  40065. C.e(H, "active", H.Yza, H.setActive);
  40066. C.e(H, "body", H.k0, H.uR);
  40067. H = s;
  40068. V.$J.create = function(c) {
  40069. var d = new V.$J;
  40070. return d && d.j(c) ? d: s
  40071. };
  40072. V.Bk = V.ha.extend({
  40073. td: s,
  40074. ru: s,
  40075. batchNode: s,
  40076. name: "",
  40077. Sva: s,
  40078. zN: s,
  40079. Fh: s,
  40080. gu: s,
  40081. Rqa: s,
  40082. gp: s,
  40083. version: 0,
  40084. kz: q,
  40085. ei: s,
  40086. nO: s,
  40087. C: s,
  40088. qa: "Armature",
  40089. ctor: function(c, d) {
  40090. C.ha.prototype.ctor.call(this);
  40091. this.batchNode = this.ru = this.td = s;
  40092. this.name = "";
  40093. this.gu = this.Fh = this.zN = this.Sva = s;
  40094. this.Rqa = {};
  40095. this.gp = C.d(0, 0);
  40096. this.version = 0;
  40097. this.kz = q;
  40098. this.C = this.nO = this.ei = s;
  40099. d && V.Bk.prototype.j.call(this, c, d)
  40100. },
  40101. j: function(c, d) {
  40102. C.ha.prototype.j.call(this);
  40103. d && (this.zN = d);
  40104. this.xf();
  40105. this.td = new V.PJ;
  40106. this.td.j(this);
  40107. this.Fh = {};
  40108. this.gu = [];
  40109. this.nO = {};
  40110. this.C = {
  40111. src: C.Ic,
  40112. ga: C.Hc
  40113. };
  40114. this.name = !c ? "": c;
  40115. var f = V.Mr;
  40116. if ("" != c) {
  40117. var g = f.Jda(c);
  40118. if (!g) return C.log("AnimationData not exist! "),
  40119. t;
  40120. this.td.gha(g);
  40121. this.ru = f = f.Gx(c);
  40122. var f = f.sH,
  40123. h;
  40124. for (h in f) {
  40125. var f = this.$ca(String(h)),
  40126. k = g.cea(g.AI[0]);
  40127. if (k && (k = k.t0(f.getName())) && !(0 >= k.kh.length)) if (k = k.Zda(0)) f.Fd.copy(k),
  40128. f.Or(k.ij, t)
  40129. }
  40130. this.update(0);
  40131. this.GJa()
  40132. } else this.name = "new_armature",
  40133. this.ru = new V.kS,
  40134. this.ru.name = this.name,
  40135. g = new V.jS,
  40136. g.name = this.name,
  40137. f.LZ(this.name, this.ru),
  40138. f.KZ(this.name, g),
  40139. this.td.gha(g);
  40140. C.L === C.la && this.mJ(C.ug.Xd(C.LK));
  40141. this.Qu(q);
  40142. this.Pu(q);
  40143. return q
  40144. },
  40145. Z: function() {
  40146. C.ha.prototype.Z.call(this);
  40147. this.Lu()
  40148. },
  40149. Na: function() {
  40150. C.ha.prototype.Na.call(this);
  40151. this.hD()
  40152. },
  40153. $ca: function(c) {
  40154. var d = this.Kda(c);
  40155. if (d) return d;
  40156. var d = this.ru.Hx(c),
  40157. f = d.RI,
  40158. g = s;
  40159. "" != f ? (this.$ca(f), g = V.ws.create(c), this.mca(g, f)) : (g = V.ws.create(c), this.mca(g, ""));
  40160. g.lha(d);
  40161. g.Kd.Or( - 1, t);
  40162. return g
  40163. },
  40164. mca: function(c, d) {
  40165. if (c) if (this.Fh[c.getName()]) C.log("bone already added. It can't be added again");
  40166. else {
  40167. if (d) {
  40168. var f = this.Fh[d];
  40169. f ? f.oca(c) : this.gu.push(c)
  40170. } else this.gu.push(c);
  40171. c.nR(this);
  40172. this.Fh[c.getName()] = c;
  40173. this.q(c)
  40174. } else C.log("Argument must be non-nil")
  40175. },
  40176. c2a: function(c, d) {
  40177. c ? (c.nR(s), c.Lm(d), C.Id(this.gu, c), delete this.Fh[c.getName()], this.removeChild(c, q)) : C.log("bone must be added to the bone dictionary!")
  40178. },
  40179. Kda: function(c) {
  40180. return this.Fh[c]
  40181. },
  40182. NQa: function(c, d) {
  40183. if (c) {
  40184. var f = c.HP();
  40185. f && (C.Id(f.Mk, c), c.Tu(s));
  40186. d && ((f = this.Fh[d]) ? (f.oca(c), C.Id(this.gu, c)) : this.gu.push(c))
  40187. } else C.log("bone must be added to the bone dictionary!")
  40188. },
  40189. hTa: A("Fh"),
  40190. GJa: function() {
  40191. var c = this.i_();
  40192. this.Ca(c);
  40193. var d = this.gp;
  40194. d.x = -c.x;
  40195. d.y = -c.y;
  40196. 0 != c.width && 0 != c.height && this.S(d.x / c.width, d.y / c.height)
  40197. },
  40198. update: function(c) {
  40199. this.td.update(c);
  40200. for (var d = this.gu,
  40201. f = 0; f < d.length; f++) d[f].update(c);
  40202. this.kz = t
  40203. },
  40204. me: s,
  40205. nN: function() {
  40206. if (this.el) {
  40207. this.kz = q;
  40208. var c = this.ma.x,
  40209. d = this.ma.y,
  40210. f = this.Nb.x,
  40211. g = -f,
  40212. h = this.Nb.y,
  40213. k = -h,
  40214. n = this.ia,
  40215. p = this.pa;
  40216. this.nn && (c += f, d += h);
  40217. var r = 1,
  40218. v = 0,
  40219. y = 1,
  40220. z = 0;
  40221. if (0 !== this.Xi || 0 !== this.im) r = Math.cos( - this.Dn),
  40222. v = Math.sin( - this.Dn),
  40223. y = Math.cos( - this.Mw),
  40224. z = Math.sin( - this.Mw);
  40225. var c = c + (y * this.gp.x * this.ia + -v * this.gp.y * this.pa),
  40226. d = d + (z * this.gp.x * this.ia + r * this.gp.y * this.pa),
  40227. D = this.ig || this.jg;
  40228. if (!D && (0 !== f || 0 !== h)) c += y * g * n + -v * k * p,
  40229. d += z * g * n + r * k * p;
  40230. c = {
  40231. a: y * n,
  40232. b: z * n,
  40233. H: -v * p,
  40234. P: r * p,
  40235. na: c,
  40236. oa: d
  40237. };
  40238. if (D && (c = C.Qg({
  40239. a: 1,
  40240. b: Math.tan(C.ng(this.jg)),
  40241. H: Math.tan(C.ng(this.ig)),
  40242. P: 1,
  40243. na: 0,
  40244. oa: 0
  40245. },
  40246. c), 0 !== f || 0 !== h)) c = C.OJ(c, g, k);
  40247. this.yq && (c = C.Qg(c, this.iz), this.yq = t);
  40248. this.Lf = c;
  40249. this.el = t
  40250. }
  40251. return this.Lf
  40252. },
  40253. Ita: function() {
  40254. this.Lf || (this.Lf = {
  40255. a: 1,
  40256. b: 0,
  40257. H: 0,
  40258. P: 1,
  40259. na: 0,
  40260. oa: 0
  40261. });
  40262. if (this.el) {
  40263. this.kz = q;
  40264. var c = this.Lf;
  40265. c.na = this.ma.x;
  40266. c.oa = this.ma.y;
  40267. var d = 1,
  40268. f = 0;
  40269. this.Xi && (d = Math.cos( - this.Dn), f = Math.sin( - this.Dn));
  40270. c.a = c.P = d;
  40271. c.H = -f;
  40272. c.b = f;
  40273. var g = this.ia,
  40274. h = this.pa,
  40275. k = this.Nb.x,
  40276. n = this.Nb.y,
  40277. p = 1E-6 > g && -1E-6 < g ? 1E-6: g,
  40278. r = 1E-6 > h && -1E-6 < h ? 1E-6: h;
  40279. c.na += d * this.gp.x * g + -f * this.gp.y * h;
  40280. c.oa += f * this.gp.x * g + d * this.gp.y * h;
  40281. if (this.ig || this.jg) {
  40282. var v = Math.tan( - this.ig * Math.PI / 180),
  40283. y = Math.tan( - this.jg * Math.PI / 180),
  40284. z = n * v * p,
  40285. D = k * y * r;
  40286. c.a = d + -f * y;
  40287. c.H = d * v + -f;
  40288. c.b = f + d * y;
  40289. c.P = f * v + d;
  40290. c.na += d * z + -f * D;
  40291. c.oa += f * z + d * D
  40292. }
  40293. if (1 !== g || 1 !== h) c.a *= p,
  40294. c.b *= p,
  40295. c.H *= r,
  40296. c.P *= r;
  40297. c.na += d * -k * p + -f * -n * r;
  40298. c.oa += f * -k * p + d * -n * r;
  40299. this.nn && (c.na += k, c.oa += n);
  40300. this.yq && (this.Lf = C.Qg(this.Lf, this.iz), this.yq = t);
  40301. c.na |= 0;
  40302. c.oa |= 0;
  40303. this.el = t
  40304. }
  40305. return this.Lf
  40306. },
  40307. ka: u(),
  40308. Yd: x("C"),
  40309. ek: A("C"),
  40310. i_: function() {
  40311. for (var c = 0,
  40312. d = 0,
  40313. f = 0,
  40314. g = 0,
  40315. h = q,
  40316. g = C.rect(0, 0, 0, 0), k = 0; k < this.l.length; k++) if (c = this.l[k], c instanceof V.ws) {
  40317. var n = c.Kd.Ae();
  40318. h ? (c = C.io(n), d = C.jo(n), f = C.Xp(n), g = C.Yp(n), h = t) : (c = C.io(n) < C.io(g) ? C.io(n) : C.io(g), d = C.jo(n) < C.jo(g) ? C.jo(n) : C.jo(g), f = C.Xp(n) > C.Xp(g) ? C.Xp(n) : C.Xp(g), g = C.Yp(n) > C.Yp(g) ? C.Yp(n) : C.Yp(g));
  40319. g = C.rect(c, d, f - c, g - d)
  40320. }
  40321. return C.Gi(g, this.me())
  40322. },
  40323. fTa: function(c, d) {
  40324. for (var f = this.l.length - 1; 0 <= f; f--) {
  40325. var g = this.l[f];
  40326. if (g instanceof V.ws && g.Kd.Pxa(c, d)) return g
  40327. }
  40328. return s
  40329. },
  40330. $Ba: B(s),
  40331. Tu: function(c) {
  40332. this.zN = c;
  40333. for (var d in this.Fh) this.Fh[d].nR(this)
  40334. },
  40335. ps: function(c) {
  40336. for (var d in this.Fh) this.Fh[d].ps(c)
  40337. },
  40338. NRa: function() {
  40339. C.Df.tj(255, 255, 255, 255);
  40340. C.Df.Su(1);
  40341. for (var c in this.Fh) for (var d = this.Fh[c].n0(), f = 0; f < d.length; f++) {
  40342. var g = d[f].dF;
  40343. C.Df.Of(g, g.length, q)
  40344. }
  40345. },
  40346. HP: A("zN"),
  40347. ll: A("td"),
  40348. gy: x("td"),
  40349. Gx: A("ru"),
  40350. q3a: x("ru"),
  40351. getName: A("name"),
  40352. Ze: x("name"),
  40353. XB: A("batchNode"),
  40354. os: x("batchNode"),
  40355. rXa: A("version"),
  40356. setVersion: x("version"),
  40357. SSa: A("kz"),
  40358. k0: A("ei"),
  40359. uR: function(c) {
  40360. if (this.ei != c) {
  40361. this.ei = c;
  40362. this.ei.data = this;
  40363. var d, f;
  40364. for (c = 0; c < this.l.length; c++) if (d = this.l[c], d instanceof V.ws) {
  40365. d = d.Kd.ag;
  40366. for (var g = 0; g < d.length; g++) f = d[g],
  40367. (f = f.Kj) && f.uR(this.ei)
  40368. }
  40369. }
  40370. },
  40371. AWa: function() {
  40372. return this.ei ? this.ei.O5a: []
  40373. }
  40374. });
  40375. V.Bk.prototype.me = C.L == C.la ? V.Bk.prototype.nN: V.Bk.prototype.Ita;
  40376. H = V.Bk.prototype;
  40377. C.e(H, "parentBone", H.HP, H.Tu);
  40378. C.e(H, "body", H.k0, H.uR);
  40379. C.e(H, "colliderFilter", s, H.ps);
  40380. H = s;
  40381. V.Bk.create = function(c, d) {
  40382. var f = new V.Bk;
  40383. return f && f.j(c, d) ? f: s
  40384. };
  40385. V.ws = V.ha.extend({
  40386. Dq: s,
  40387. Nc: s,
  40388. Tl: s,
  40389. Kd: s,
  40390. YP: t,
  40391. lu: s,
  40392. Fd: s,
  40393. name: "",
  40394. Mk: s,
  40395. parentBone: s,
  40396. um: t,
  40397. nu: s,
  40398. C: 0,
  40399. aP: t,
  40400. MO: s,
  40401. fV: s,
  40402. F9: 0,
  40403. qa: "Bone",
  40404. ctor: function() {
  40405. C.ha.prototype.ctor.call(this);
  40406. this.Kd = this.Tl = this.Nc = this.Dq = s;
  40407. this.YP = t;
  40408. this.Fd = this.lu = s;
  40409. this.name = "";
  40410. this.Mk = [];
  40411. this.parentBone = s;
  40412. this.um = q;
  40413. this.nu = {
  40414. a: 1,
  40415. b: 0,
  40416. H: 0,
  40417. P: 1,
  40418. na: 0,
  40419. oa: 0
  40420. };
  40421. this.C = new C.Vm(C.Ic, C.Hc);
  40422. this.aP = t
  40423. },
  40424. rh: function() {
  40425. zd(this.Fd);
  40426. for (var c = 0; c < this.Mk.length; c++) zd(this.Mk[c]);
  40427. this.Mk = [];
  40428. zd(this.lu);
  40429. zd(this.Kd);
  40430. zd(this.Dq);
  40431. zd(this.Tl)
  40432. },
  40433. j: function(c) {
  40434. C.ha.prototype.j.call(this);
  40435. c && (this.name = c);
  40436. this.Fd = new V.qv;
  40437. this.lu = new V.DU;
  40438. this.lu.j(this);
  40439. this.Kd = new V.XS;
  40440. this.Kd.j(this);
  40441. this.MO = new V.Um;
  40442. this.Dq = new V.Um;
  40443. return q
  40444. },
  40445. lha: function(c) {
  40446. c ? (this.Dq = c, this.name = this.Dq.name, this.ul(this.Dq.Tm), this.Kd.Sea(c)) : C.log("boneData must not be null")
  40447. },
  40448. Hx: A("Dq"),
  40449. nR: function(c) { (this.Nc = c) ? (this.lu.gy(this.Nc.ll()), this.F9 = this.Nc.Gx().IB, this.fV = this.Nc.HP()) : this.fV = s
  40450. },
  40451. $za: A("Nc"),
  40452. update: function(c) {
  40453. var d = this.parentBone,
  40454. f = this.Nc,
  40455. g = this.Fd,
  40456. h = this.nu,
  40457. k = this.MO,
  40458. n = this.fV;
  40459. d && (this.um = this.um || d.um);
  40460. n && !this.um && (this.um = n.um);
  40461. this.um && (this.F9 >= V.xs && (d = this.Dq, g.x += d.x, g.y += d.y, g.skewX += d.skewX, g.skewY += d.skewY, g.scaleX += d.scaleX, g.scaleY += d.scaleY, g.scaleX -= 1, g.scaleY -= 1), k.x = g.x + this.ma.x, k.y = g.y + this.ma.y, k.scaleX = g.scaleX * this.ia, k.scaleY = g.scaleY * this.pa, k.skewX = g.skewX + this.ig + this.Xi, k.skewY = g.skewY + this.jg - this.im, this.parentBone ? this.Cca(this.parentBone) : n && this.Cca(n), V.Ij.F1(k, h), n && (this.nu = C.Qg(h, f.me())));
  40462. V.Sg.DJa(this, c, this.um || f.kz);
  40463. f = this.Mk;
  40464. for (g = 0; g < f.length; g++) f[g].update(c);
  40465. this.um = t
  40466. },
  40467. Cca: function(c) {
  40468. var d = this.MO,
  40469. f = c.nu;
  40470. c = c.MO;
  40471. var g = d.x,
  40472. h = d.y;
  40473. d.x = g * f.a + h * f.H + c.x;
  40474. d.y = g * f.b + h * f.P + c.y;
  40475. d.scaleX *= c.scaleX;
  40476. d.scaleY *= c.scaleY;
  40477. d.skewX += c.skewX;
  40478. d.skewY += c.skewY
  40479. },
  40480. J: function(c) {
  40481. if (this.Ja) {
  40482. var d = this.Kd.aC();
  40483. d && d.J(c)
  40484. }
  40485. },
  40486. Tb: function(c) {
  40487. this.od = C.color(255, 255, 255);
  40488. C.ha.prototype.Tb.call(this, c);
  40489. this.ro()
  40490. },
  40491. dc: function(c) {
  40492. this.Ig = 255;
  40493. C.ha.prototype.dc.call(this, c);
  40494. this.ro()
  40495. },
  40496. G: function(c) {
  40497. C.ha.prototype.G.call(this, c);
  40498. this.ro()
  40499. },
  40500. K: function(c) {
  40501. C.ha.prototype.K.call(this, c);
  40502. this.ro()
  40503. },
  40504. ro: function() {
  40505. var c = this.Kd.aC();
  40506. if (c && c.sb) {
  40507. var d = this.wb,
  40508. f = this.Fd,
  40509. g = this.hb * f.a / 255,
  40510. d = C.color(d.r * f.r / 255, d.g * f.g / 255, d.b * f.b / 255);
  40511. c.K(g);
  40512. c.G(d)
  40513. }
  40514. },
  40515. OJa: function() {
  40516. this.Nc.Gx().IB >= V.xs ? this.ul(this.Fd.Tm + this.Dq.Tm) : this.ul(this.Fd.Tm)
  40517. },
  40518. oca: function(c) {
  40519. c ? c.parentBone ? C.log("child already added. It can't be added again") : 0 > this.Mk.indexOf(c) && (this.Mk.push(c), c.Tu(this)) : C.log("Argument must be non-nil")
  40520. },
  40521. Rga: function(c, d) {
  40522. for (var f = 0; f < this.Mk.length; f++) if (this.Mk[f] == c) {
  40523. if (d) for (var g = c.Mk,
  40524. h = 0; h < g.length; h++) c.Rga(g[h], d);
  40525. c.Tu(s);
  40526. c.Kd.xR(s);
  40527. C.Id(this.Mk, c)
  40528. }
  40529. },
  40530. Lm: function(c) {
  40531. this.parentBone && this.parentBone.Rga(this, c)
  40532. },
  40533. Tu: x("parentBone"),
  40534. HP: A("parentBone"),
  40535. K2: function(c) {
  40536. this.Tl != c && (c == s && this.Tl && this.Tl.Tu(s), this.Tl = c)
  40537. },
  40538. hAa: A("Tl"),
  40539. iAa: A("Mk"),
  40540. gCa: A("lu"),
  40541. ul: function(c) {
  40542. this.MPa != c && C.A.prototype.ul.call(this, c)
  40543. },
  40544. tIa: x("um"),
  40545. QYa: A("um"),
  40546. i0a: A("nu"),
  40547. ql: function() {
  40548. return C.Qg(this.nu, this.Nc.ql())
  40549. },
  40550. aC: function() {
  40551. return this.Kd.aC()
  40552. },
  40553. q0: function() {
  40554. return this.Kd.q0()
  40555. },
  40556. NZ: function(c, d) {
  40557. return this.Kd.NZ(c, d || 0)
  40558. },
  40559. Sga: function(c) {
  40560. this.Kd.Sga(c)
  40561. },
  40562. Bwa: function(c, d) {
  40563. return this.Kd.Bwa(c, d || 0)
  40564. },
  40565. OQa: function(c, d) {
  40566. C.log("changeDisplayByIndex is deprecated. Use changeDisplayWithIndex instead.");
  40567. this.Or(c, d)
  40568. },
  40569. Or: function(c, d) {
  40570. this.Kd.Or(c, d)
  40571. },
  40572. Oca: function(c, d) {
  40573. this.Kd.Oca(c, d)
  40574. },
  40575. n0: function() {
  40576. var c = this.Kd.en;
  40577. return c && (c = c.Kj) ? c.n0() : []
  40578. },
  40579. ps: function(c) {
  40580. for (var d = this.Kd.ag,
  40581. f = 0; f < d.length; f++) {
  40582. var g = d[f].Kj;
  40583. g && g.ps(c)
  40584. }
  40585. },
  40586. Jx: function() {
  40587. var c = this.Kd.en;
  40588. return c && (c = c.Kj) ? c.Jx() : s
  40589. },
  40590. U3a: x("Kd"),
  40591. gUa: A("Kd"),
  40592. n4a: x("YP"),
  40593. QUa: A("YP"),
  40594. hCa: A("Fd"),
  40595. Ze: x("name"),
  40596. getName: A("name"),
  40597. Yd: function(c) {
  40598. if (this.C.src != c.src || this.C.ga != c.ga) this.C = c,
  40599. this.aP = q
  40600. },
  40601. ek: A("C"),
  40602. x3a: x("aP"),
  40603. jYa: A("aP")
  40604. });
  40605. H = V.ws.prototype;
  40606. C.e(H, "boneData", H.Hx, H.lha);
  40607. C.e(H, "armature", H.$za, H.nR);
  40608. C.e(H, "childArmature", H.hAa, H.K2);
  40609. C.e(H, "childrenBone", H.iAa);
  40610. C.e(H, "tween", H.gCa);
  40611. C.e(H, "tweenData", H.hCa);
  40612. C.e(H, "colliderFilter", H.Jx, H.ps);
  40613. H = s;
  40614. V.ws.create = function(c) {
  40615. var d = new V.ws;
  40616. return d && d.j(c) ? d: s
  40617. };
  40618. V.R5 = 0;
  40619. V.T5 = 1;
  40620. V.S5 = 2;
  40621. V.U5 = 3;
  40622. V.Q5 = 4;
  40623. V.oma = 5;
  40624. V.fc = {
  40625. oLa: -1,
  40626. sv: 0,
  40627. Goa: 1,
  40628. Ioa: 2,
  40629. Hoa: 3,
  40630. Sna: 4,
  40631. Una: 5,
  40632. Tna: 6,
  40633. yla: 7,
  40634. Ala: 8,
  40635. zla: 9,
  40636. Vna: 10,
  40637. Xna: 11,
  40638. Wna: 12,
  40639. Yna: 13,
  40640. $na: 14,
  40641. Zna: 15,
  40642. jma: 16,
  40643. lma: 17,
  40644. kma: 18,
  40645. ula: 19,
  40646. wla: 20,
  40647. vla: 21,
  40648. bma: 22,
  40649. dma: 23,
  40650. cma: 24,
  40651. fka: 25,
  40652. hka: 26,
  40653. gka: 27,
  40654. kka: 28,
  40655. mka: 29,
  40656. lka: 30
  40657. };
  40658. V.to = V.O.extend({
  40659. Pr: 0,
  40660. ym: 0,
  40661. Dp: 0,
  40662. BSa: s,
  40663. time: 0,
  40664. ctor: function() {
  40665. this.time = this.Dp = this.ym = this.Pr = 0
  40666. },
  40667. Qr: B(s),
  40668. LF: function(c) {
  40669. if (c === s) return console.error("Action cannot be null!"),
  40670. s;
  40671. var d;
  40672. switch (this.ym) {
  40673. case V.fc.sv:
  40674. d = c;
  40675. break;
  40676. case V.fc.Goa:
  40677. d = c.ra(C.uza());
  40678. break;
  40679. case V.fc.Ioa:
  40680. d = c.ra(C.wza());
  40681. break;
  40682. case V.fc.Hoa:
  40683. d = c.ra(C.vza());
  40684. break;
  40685. case V.fc.Sna:
  40686. d = c.ra(C.lza());
  40687. break;
  40688. case V.fc.Una:
  40689. d = c.ra(C.nza());
  40690. break;
  40691. case V.fc.Tna:
  40692. d = c.ra(C.mza());
  40693. break;
  40694. case V.fc.yla:
  40695. d = c.ra(C.cza());
  40696. break;
  40697. case V.fc.Ala:
  40698. d = c.ra(C.eza());
  40699. break;
  40700. case V.fc.zla:
  40701. d = c.ra(C.dza());
  40702. break;
  40703. case V.fc.Vna:
  40704. d = c.ra(C.oza());
  40705. break;
  40706. case V.fc.Xna:
  40707. d = c.ra(C.qza());
  40708. break;
  40709. case V.fc.Wna:
  40710. d = c.ra(C.pza());
  40711. break;
  40712. case V.fc.Yna:
  40713. d = c.ra(C.rza());
  40714. break;
  40715. case V.fc.$na:
  40716. d = c.ra(C.tza());
  40717. break;
  40718. case V.fc.Zna:
  40719. d = c.ra(C.sza());
  40720. break;
  40721. case V.fc.jma:
  40722. d = c.ra(C.fza());
  40723. break;
  40724. case V.fc.lma:
  40725. d = c.ra(C.hza());
  40726. break;
  40727. case V.fc.kma:
  40728. d = c.ra(C.gza());
  40729. break;
  40730. case V.fc.ula:
  40731. d = c.ra(C.$ya());
  40732. break;
  40733. case V.fc.wla:
  40734. d = c.ra(C.bza());
  40735. break;
  40736. case V.fc.vla:
  40737. d = c.ra(C.aza());
  40738. break;
  40739. case V.fc.bma:
  40740. d = c.ra(C.qda());
  40741. break;
  40742. case V.fc.dma:
  40743. d = c.ra(C.sda());
  40744. break;
  40745. case V.fc.cma:
  40746. d = c.ra(C.rda());
  40747. break;
  40748. case V.fc.fka:
  40749. d = c.ra(C.Tya());
  40750. break;
  40751. case V.fc.hka:
  40752. d = c.ra(C.Vya());
  40753. break;
  40754. case V.fc.gka:
  40755. d = c.ra(C.Uya());
  40756. break;
  40757. case V.fc.kka:
  40758. d = c.ra(C.Xya());
  40759. break;
  40760. case V.fc.mka:
  40761. d = c.ra(C.Zya());
  40762. break;
  40763. case V.fc.lka:
  40764. d = c.ra(C.Yya())
  40765. }
  40766. return d
  40767. },
  40768. fJ: function(c) {
  40769. this.Aqa = [];
  40770. for (var d = 0; d < c.length; d++) this.Aqa.push(c[d])
  40771. },
  40772. Ru: x("iM")
  40773. });
  40774. V.Jja = V.to.extend({
  40775. ma: s,
  40776. ctor: function() {
  40777. V.to.prototype.ctor.call(this);
  40778. this.ma = C.d(0, 0);
  40779. this.Pr = V.R5
  40780. },
  40781. p: function(c, d) {
  40782. d === m ? (this.ma.x = c.x, this.ma.y = c.y) : (this.ma.x = c, this.ma.y = d)
  40783. },
  40784. Ld: A("ma"),
  40785. Qr: function(c) {
  40786. c = C.Bs.create(c, this.ma);
  40787. c.ym = this.ym || V.fc.sv;
  40788. return this.LF(c)
  40789. }
  40790. });
  40791. V.Nja = V.to.extend({
  40792. ia: 1,
  40793. pa: 1,
  40794. ctor: function() {
  40795. V.to.prototype.ctor.call(this);
  40796. this.pa = this.ia = 1;
  40797. this.Pr = V.T5
  40798. },
  40799. gb: x("ia"),
  40800. LP: A("ia"),
  40801. pb: x("pa"),
  40802. TH: A("pa"),
  40803. Qr: function(c) {
  40804. c = C.ae.create(c, this.ia, this.pa);
  40805. c.ym = this.ym || V.fc.sv;
  40806. return this.LF(c)
  40807. }
  40808. });
  40809. V.Mja = V.to.extend({
  40810. XA: 0,
  40811. ctor: function() {
  40812. V.to.prototype.ctor.call(this);
  40813. this.XA = 0;
  40814. this.Pr = V.S5
  40815. },
  40816. th: x("XA"),
  40817. Mx: A("XA"),
  40818. Qr: function(c) {
  40819. c = C.wE.create(c, this.XA);
  40820. c.ym = this.ym || V.fc.sv;
  40821. return this.LF(c)
  40822. }
  40823. });
  40824. V.Fja = V.to.extend({
  40825. Eb: 255,
  40826. ctor: function() {
  40827. V.to.prototype.ctor.call(this);
  40828. this.Eb = 255;
  40829. this.Pr = V.Q5
  40830. },
  40831. K: x("Eb"),
  40832. rb: A("Eb"),
  40833. Qr: function(c) {
  40834. c = C.xo.create(c, this.Eb);
  40835. c.ym = this.ym || V.fc.sv;
  40836. return this.LF(c)
  40837. }
  40838. });
  40839. V.Oja = V.to.extend({
  40840. ya: s,
  40841. ctor: function() {
  40842. V.to.prototype.ctor.call(this);
  40843. this.ya = C.color(255, 255, 255, 255);
  40844. this.Pr = V.U5
  40845. },
  40846. G: function(c) {
  40847. var d = this.ya;
  40848. d.r = c.r;
  40849. d.g = c.g;
  40850. d.b = c.b
  40851. },
  40852. Xa: function() {
  40853. var c = this.ya;
  40854. return C.color(c.r, c.g, c.b, c.a)
  40855. },
  40856. Qr: function(c) {
  40857. c = C.ez.create(c, this.ya.r, this.ya.g, this.ya.b);
  40858. c.ym = this.ym || V.fc.sv;
  40859. return this.LF(c)
  40860. }
  40861. });
  40862. V.actionManager = {
  40863. vq: {},
  40864. Lp: function(c, d, f) {
  40865. c = c.substr(c.lastIndexOf("/") + 1, c.length);
  40866. d = d.actionlist;
  40867. for (var g = [], h = 0; h < d.length; h++) {
  40868. var k = new V.Lja;
  40869. k.Lp(d[h], f);
  40870. g.push(k)
  40871. }
  40872. this.vq[c] = g
  40873. },
  40874. i0: function(c, d) {
  40875. var f = this.vq[c];
  40876. if (!f) return s;
  40877. for (var g = 0; g < f.length; g++) {
  40878. var h = f[g];
  40879. if (d == h.getName()) return h
  40880. }
  40881. return s
  40882. },
  40883. GFa: function(c, d, f) { (c = this.i0(c, d)) && c.play(f)
  40884. },
  40885. kGa: function() {
  40886. this.vq = {}
  40887. },
  40888. clear: function() {
  40889. this.vq = {}
  40890. }
  40891. };
  40892. V.Kja = V.O.extend({
  40893. Cra: 0,
  40894. Era: 0,
  40895. fl: 0,
  40896. xq: 0,
  40897. ara: s,
  40898. hz: s,
  40899. Ke: s,
  40900. Mi: s,
  40901. aw: 0,
  40902. ctor: function() {
  40903. this.Era = this.Cra = 0;
  40904. this.fl = 0.1;
  40905. this.xq = 0;
  40906. this.Ke = this.hz = this.ara = s;
  40907. this.Mi = [];
  40908. this.aw = V.oma;
  40909. for (var c = 0; c < this.aw; c++) this.Mi.push([])
  40910. },
  40911. Lp: function(c, d) {
  40912. this.ey(c.ActionTag);
  40913. for (var f = c.actionframelist,
  40914. g = 0; g < f.length; g++) {
  40915. for (var h = f[g], k = h.tweenType, n = h.tweenParameter, p = [], r = 0; r < n; r++) p.push(h.tweenParameter[r]);
  40916. if (h.positionx !== m) {
  40917. var r = h.positionx,
  40918. v = h.positiony,
  40919. n = new V.Jja;
  40920. n.Ru(k);
  40921. n.fJ(p);
  40922. n.p(r, v);
  40923. r = this.Mi[V.R5];
  40924. r.push(n)
  40925. }
  40926. h.scalex !== m && (r = h.scalex, v = h.scaley, n = new V.Nja, n.Ru(k), n.fJ(p), n.gb(r), n.pb(v), r = this.Mi[V.T5], r.push(n));
  40927. h.rotation !== m && (r = h.rotation, n = new V.Mja, n.Ru(k), n.fJ(p), n.th(r), r = this.Mi[V.S5], r.push(n));
  40928. h.opacity !== m && (r = h.opacity, n = new V.Fja, n.Ru(k), n.fJ(p), n.K(r), r = this.Mi[V.Q5], r.push(n));
  40929. h.colorr !== m && (r = h.colorr, v = h.colorg, h = h.colorb, n = new V.Oja, n.Ru(k), n.fJ(p), n.G(C.color(r, v, h)), r = this.Mi[V.U5], r.push(n))
  40930. }
  40931. this.JCa(d)
  40932. },
  40933. JCa: function(c) {
  40934. c instanceof J && (c = fd(c, this.xq)) && this.vl(c)
  40935. },
  40936. vJ: function(c) {
  40937. this.fl = c;
  40938. this.hGa()
  40939. },
  40940. jCa: A("fl"),
  40941. ey: x("xq"),
  40942. Ida: A("xq"),
  40943. vl: x("DA"),
  40944. lBa: A("DA"),
  40945. j0: function() {
  40946. return this.DA instanceof C.A || this.DA instanceof J ? this.DA: s
  40947. },
  40948. WXa: function(c, d) {
  40949. d != s && this.Mi[d.Pr].splice(c, 0, d)
  40950. },
  40951. $Pa: function(c) {
  40952. c && this.Mi[c.Pr].push(c)
  40953. },
  40954. sRa: function(c) {
  40955. c != s && C.Id(this.Mi[c.Pr], c)
  40956. },
  40957. UQa: function() {
  40958. for (var c = 0; c < this.aw; c++) this.Mi[c] = []
  40959. },
  40960. hGa: function() {
  40961. if (this.DA == s) return s;
  40962. for (var c = [], d = 0; d < this.aw; d++) {
  40963. var f = this.Mi[d];
  40964. if (! (0 >= f.length)) {
  40965. for (var g = [], h = 0; h < f.length; h++) {
  40966. var k = f[h];
  40967. 0 != h && (k = k.Qr((k.Dp - f[h - 1].Dp) * this.fl)) && g.push(k)
  40968. }
  40969. g && (f = C.La.create(g), f != s && c.push(f))
  40970. }
  40971. }
  40972. this.Ke = s;
  40973. return this.hz = C.ci.create(c)
  40974. },
  40975. FFa: function(c) {
  40976. this.DA == s || this.hz == s || (this.Ke = c ? C.La.create(this.hz, c) : C.La.create(this.hz), this.Ya())
  40977. },
  40978. Ya: function() {
  40979. var c = this.j0();
  40980. c != s && this.Ke != s && c.Ya(this.Ke)
  40981. },
  40982. yJ: function() {
  40983. var c = this.j0();
  40984. c != s && this.Ke != s && (this.Ke.ik() || c.yJ(this.Ke))
  40985. },
  40986. AAa: function() {
  40987. for (var c = 99999,
  40988. d = t,
  40989. f = 0; f < this.aw; f++) {
  40990. var g = this.Mi[f];
  40991. 0 >= g.length || (d = q, g = g[0].Dp, c = c > g ? g: c)
  40992. }
  40993. d || (c = 0);
  40994. return c
  40995. },
  40996. SAa: function() {
  40997. for (var c = -1,
  40998. d = t,
  40999. f = 0; f < this.aw; f++) {
  41000. var g = this.Mi[f];
  41001. 0 >= g.length || (d = q, g = g[g.length - 1].Dp, c = c < g ? g: c)
  41002. }
  41003. d || (c = 0);
  41004. return c
  41005. },
  41006. xJa: function(c) {
  41007. for (var d = t,
  41008. f = this.fl,
  41009. g = 0; g < this.aw; g++) {
  41010. var h = this.Mi[g];
  41011. if (h != s) for (var k = 0; k < h.length; k++) {
  41012. var n = h[k];
  41013. if (n.Dp * f == c) {
  41014. this.rP(1, 1, n);
  41015. d = q;
  41016. break
  41017. } else if (n.Dp * f > c) {
  41018. 0 == k ? (this.rP(1, 1, n), d = t) : (d = h[k - 1], h = (n.Dp - d.Dp) * f, k = c - d.Dp * f, this.rP(h, 1, d), this.rP(h, k / h, n), d = q);
  41019. break
  41020. }
  41021. }
  41022. }
  41023. return d
  41024. },
  41025. rP: function(c, d, f) {
  41026. c = f.Qr(c);
  41027. f = this.j0();
  41028. c == s || f == s || (c.R(f), c.update(d))
  41029. },
  41030. kDa: function() {
  41031. return this.Ke == s ? q: this.Ke.ik()
  41032. }
  41033. });
  41034. V.Lja = V.O.extend({
  41035. Ik: s,
  41036. kd: "",
  41037. Uj: t,
  41038. NX: t,
  41039. Oaa: t,
  41040. fl: 0,
  41041. RL: 0,
  41042. hh: s,
  41043. uW: 0,
  41044. ctor: function() {
  41045. this.Ik = [];
  41046. this.kd = "";
  41047. this.Oaa = this.NX = this.Uj = t;
  41048. this.fl = 0.1;
  41049. this.uW = this.RL = 0;
  41050. this.hh = new C.cz;
  41051. C.Q.Em().lR(this.hh, 0, t)
  41052. },
  41053. Ze: x("kd"),
  41054. getName: A("kd"),
  41055. CR: x("Uj"),
  41056. bea: A("Uj"),
  41057. vJ: function(c) {
  41058. this.fl = c;
  41059. c = this.Ik.length;
  41060. for (var d = 0; d < c; d++) this.Ik[d].vJ(this.fl)
  41061. },
  41062. jCa: A("fl"),
  41063. VTa: A("RL"),
  41064. N3a: x("RL"),
  41065. fXa: A("uW"),
  41066. ifa: A("Oaa"),
  41067. Lp: function(c, d) {
  41068. this.Ze(c.name);
  41069. this.CR(c.loop);
  41070. this.vJ(c.unittime);
  41071. for (var f = c.actionnodelist,
  41072. g = 0,
  41073. h = 0; h < f.length; h++) {
  41074. var k = new V.Kja;
  41075. k.Lp(f[h], d);
  41076. k.vJ(this.fl);
  41077. this.Ik.push(k);
  41078. k = k.SAa() - k.AAa();
  41079. k > g && (g = k)
  41080. }
  41081. this.uW = g * this.fl
  41082. },
  41083. QPa: function(c) {
  41084. c && (this.Ik.push(c), c.vJ(this.fl))
  41085. },
  41086. O1a: function(c) {
  41087. c != s && C.Id(this.Ik, c)
  41088. },
  41089. play: function(c) {
  41090. this.stop();
  41091. this.LJa(0);
  41092. for (var d = this.Ik.length,
  41093. f = 0; f < d; f++) this.Ik[f].FFa(c);
  41094. this.Uj && this.hh.y2(this, this.Fia, 0, C.xv, 0, t)
  41095. },
  41096. pause: function() {
  41097. this.NX = q
  41098. },
  41099. stop: function() {
  41100. for (var c = 0; c < this.Ik.length; c++) this.Ik[c].yJ();
  41101. this.hh.W3(this, this.Fia);
  41102. this.NX = t
  41103. },
  41104. LJa: function(c) {
  41105. this.RL = c;
  41106. for (var d = 0; d < this.Ik.length; d++) this.Ik[d].xJa(c)
  41107. },
  41108. Fia: function() {
  41109. if (this.Uj) {
  41110. for (var c = q,
  41111. d = this.Ik,
  41112. f = 0; f < d.length; f++) if (d[f].kDa() == t) {
  41113. c = t;
  41114. break
  41115. }
  41116. c && this.play()
  41117. }
  41118. }
  41119. });
  41120. V.MS = V.zh.extend({
  41121. Pi: s,
  41122. Fa: "",
  41123. ctor: function() {
  41124. C.zh.prototype.ctor.call(this);
  41125. this.Pi = {};
  41126. this.Fa = "";
  41127. this.kd = "CCComAttribute"
  41128. },
  41129. j: function() {
  41130. this.Pi = {};
  41131. return q
  41132. },
  41133. o4a: function(c, d) {
  41134. c ? this.Pi[c] = d: C.log("Argument must be non-nil")
  41135. },
  41136. V3a: function(c, d) {
  41137. c ? this.Pi[c] = d: C.log("Argument must be non-nil")
  41138. },
  41139. $3a: function(c, d) {
  41140. c ? this.Pi[c] = d: C.log("Argument must be non-nil")
  41141. },
  41142. y3a: function(c, d) {
  41143. c ? this.Pi[c] = d: C.log("Argument must be non-nil")
  41144. },
  41145. sa: function(c, d) {
  41146. c ? this.Pi[c] = d: C.log("Argument must be non-nil")
  41147. },
  41148. vl: function(c, d) {
  41149. c ? this.Pi[c] = d: C.log("Argument must be non-nil")
  41150. },
  41151. SUa: function(c) {
  41152. return parseInt(this.Pi[c] || 0)
  41153. },
  41154. nUa: function(c) {
  41155. return parseFloat(this.Pi[c] || 0)
  41156. },
  41157. FUa: function(c) {
  41158. return parseFloat(this.Pi[c] || 0)
  41159. },
  41160. iTa: function(c) {
  41161. return Boolean(this.Pi[c] || t)
  41162. },
  41163. Wb: function(c) {
  41164. return this.Pi[c] || ""
  41165. },
  41166. lBa: function(c) {
  41167. return this.Pi[c]
  41168. },
  41169. parse: function(c) {
  41170. this.Pi = C.M.xd(c)
  41171. }
  41172. });
  41173. V.MS.create = function() {
  41174. var c = new V.MS;
  41175. return c && c.j() ? c: s
  41176. };
  41177. V.bK = V.zh.extend({
  41178. Fa: "",
  41179. Uj: t,
  41180. ctor: function() {
  41181. C.zh.prototype.ctor.call(this);
  41182. this.kd = "Audio"
  41183. },
  41184. j: B(q),
  41185. Z: u(),
  41186. Na: function() {
  41187. this.WIa(q);
  41188. this.cD()
  41189. },
  41190. end: function() {
  41191. C.ud.end()
  41192. },
  41193. QFa: function(c) {
  41194. C.M.load(c)
  41195. },
  41196. HFa: function(c, d) {
  41197. c ? C.ud.tga(c, d) : C.ud.tga(this.Fa, this.Uj)
  41198. },
  41199. WIa: function(c) {
  41200. C.ud.Sia(c)
  41201. },
  41202. a1a: function() {
  41203. C.ud.Y1()
  41204. },
  41205. D2a: function() {
  41206. C.ud.aha()
  41207. },
  41208. H2a: function() {
  41209. C.ud.GGa()
  41210. },
  41211. V6a: B(t),
  41212. hYa: function() {
  41213. return C.ud.nQ()
  41214. },
  41215. cTa: function() {
  41216. return C.ud.iBa()
  41217. },
  41218. v3a: function(c) {
  41219. C.ud.NHa(c)
  41220. },
  41221. Uda: function() {
  41222. return C.ud.Uda()
  41223. },
  41224. zha: function(c) {
  41225. C.ud.zha(c)
  41226. },
  41227. Zx: function(c, d) {
  41228. return c ? C.ud.Zx(c, d) : C.ud.Zx(this.Fa, this.Uj)
  41229. },
  41230. X1: function(c) {
  41231. C.ud.X1(c)
  41232. },
  41233. W1: function() {
  41234. C.ud.W1()
  41235. },
  41236. u2: function(c) {
  41237. C.ud.u2(c)
  41238. },
  41239. t2: function() {
  41240. C.ud.t2()
  41241. },
  41242. G3: function(c) {
  41243. C.ud.G3(c)
  41244. },
  41245. cD: function() {
  41246. C.ud.cD()
  41247. },
  41248. RFa: function(c) {
  41249. this.Eha(c);
  41250. this.CR(t)
  41251. },
  41252. V3: function(c) {
  41253. C.ud.V3(c)
  41254. },
  41255. Eha: x("Fa"),
  41256. CR: x("Uj"),
  41257. getFile: A("Fa"),
  41258. wYa: A("Uj")
  41259. });
  41260. V.bK.create = function() {
  41261. var c = new V.bK;
  41262. return c && c.j() ? c: s
  41263. };
  41264. V.n5 = V.zh.extend({
  41265. ctor: function() {
  41266. C.zh.prototype.ctor.call(this);
  41267. this.kd = "ComController"
  41268. },
  41269. j: B(q),
  41270. Z: function() {
  41271. this.Rd != s && this.Rd.Lu()
  41272. },
  41273. Na: u(),
  41274. update: u(),
  41275. isEnabled: A("Wc"),
  41276. Ib: function() {
  41277. this.Wc = b
  41278. }
  41279. });
  41280. V.n5.create = function() {
  41281. var c = new V.n5;
  41282. return c && c.j() ? c: s
  41283. };
  41284. V.lv = V.zh.extend({
  41285. Rt: s,
  41286. ctor: function(c, d) {
  41287. C.zh.prototype.ctor.call(this);
  41288. this.Rt = c;
  41289. this.kd = d;
  41290. this.GYa = q
  41291. },
  41292. Z: function() {
  41293. this.Rd && this.Rd.q(this.Rt)
  41294. },
  41295. Na: function() {
  41296. this.Rd && (this.Rd.removeChild(this.Rt, q), this.Rt = s)
  41297. },
  41298. tVa: A("Rt"),
  41299. C4a: x("Rt")
  41300. });
  41301. V.lv.create = function(c, d) {
  41302. var f = new V.lv(c, d);
  41303. return f && f.j() ? f: s
  41304. };
  41305. V.BI = {
  41306. AO: {},
  41307. Aya: function() {
  41308. this.Zl = s
  41309. },
  41310. zH: function(c) {
  41311. var d = s; (c = this.AO[c]) && (d = new c.ut);
  41312. return d
  41313. },
  41314. Nga: function(c) {
  41315. this.AO[c.qa] = c
  41316. },
  41317. kRa: function(c) {
  41318. var d = s;
  41319. "Panel" === c ? c = "Layout": "TextArea" === c ? c = "Label": "TextButton" === c && (c = "Button");
  41320. if ((c = this.AO[c]) && c.ut) d = c.ut;
  41321. return d
  41322. },
  41323. Yxa: function(c) {
  41324. var d = s;
  41325. if ((c = this.AO[c]) && c.ut) d = c.ut;
  41326. return d
  41327. }
  41328. };
  41329. V.R7 = V.O.extend({
  41330. qa: "",
  41331. ut: s,
  41332. ctor: function(c, d) {
  41333. d ? (this.qa = c, this.ut = d) : (this.qa = c.qa, this.ut = c.ut);
  41334. V.BI.Nga(this)
  41335. }
  41336. });
  41337. V.h3a = function(c) {
  41338. c = V.P3.get(c);
  41339. if (c != s) for (var d = 0; d < c.length; d++);
  41340. };
  41341. V.J1a = function(c, d) {
  41342. new V.R7(c, d)
  41343. };
  41344. V.P3 = {
  41345. hn: {},
  41346. Vba: {},
  41347. fr: [],
  41348. Aya: function() {
  41349. this.mk();
  41350. this.Zl = s
  41351. },
  41352. parse: function(c) {
  41353. for (var d = 0; d < c.length; ++d) {
  41354. var f = c[d],
  41355. g = V.BU.create();
  41356. g.QC(f);
  41357. for (var f = g.cH,
  41358. h = 0; h < f.length; h++) this.add(f[h], g);
  41359. this.Vba[g.ni] = g
  41360. }
  41361. },
  41362. get: function(c) {
  41363. return this.hn[c]
  41364. },
  41365. fCa: function(c) {
  41366. return this.Vba[c]
  41367. },
  41368. add: function(c, d) {
  41369. var f = this.hn[c];
  41370. f || (f = []); - 1 == f.indexOf(d) && (f.push(d), this.hn[c] = f)
  41371. },
  41372. mk: function() {
  41373. for (var c in this.hn) for (var d = this.hn[c], f = 0; f < d.length; f++) d[f].mk();
  41374. this.hn = {}
  41375. },
  41376. remove: function(c, d) {
  41377. if (d) return this.Bua(c, d);
  41378. var f = t,
  41379. g = this.hn[c];
  41380. if (g) {
  41381. for (f = 0; f < g.length; f++) {
  41382. var h = g[f];
  41383. h && h.mk()
  41384. }
  41385. delete this.hn[c];
  41386. f = q
  41387. }
  41388. return f
  41389. },
  41390. Bua: function(c, d) {
  41391. var f = t;
  41392. do {
  41393. var g = this.hn[c];
  41394. if (g) {
  41395. for (f = 0; f < g.length; f++) {
  41396. var h = g[f];
  41397. if (h && h == d) {
  41398. h.mk();
  41399. g.splice(f, 1);
  41400. break
  41401. }
  41402. }
  41403. f = q
  41404. }
  41405. } while ( 0 );
  41406. return f
  41407. },
  41408. v2a: function(c) {
  41409. c = this.fCa(c);
  41410. if (!c) return t;
  41411. for (var d = c.cH,
  41412. f = 0; f < d.length; f++) this.remove(d[f], c);
  41413. return q
  41414. },
  41415. gfa: function() {
  41416. return ! this.hn || 0 >= this.hn.length
  41417. },
  41418. SPa: function(c, d, f) {
  41419. if (! (c == s || f == s || d == s)) {
  41420. for (var g, h = t,
  41421. k = 0; k < this.fr.length; k++) if ((g = this.fr[k]) && g[0] == c) g.kca(d, f),
  41422. h = q;
  41423. h || (g = new V.Qja, c.ll().MHa(g.Ywa, g), g.kca(d, f), this.fr.push([c, g]))
  41424. }
  41425. },
  41426. a2a: function(c, d, f) {
  41427. if (! (c == s || d == s || f == s)) for (var g, h = 0; h < this.fr.length; h++)(g = this.fr[h]) && g[0] == c && g.qGa(f, d)
  41428. },
  41429. Z1a: function(c) {
  41430. if (c != s) for (var d, f = 0; f < this.fr.length; f++) if ((d = this.fr[f]) && d[0] == c) {
  41431. this.fr.splice(f, 1);
  41432. break
  41433. }
  41434. },
  41435. Q1a: function() {
  41436. this.fr = []
  41437. },
  41438. version: B("1.2.0.0")
  41439. };
  41440. V.Qja = V.O.extend({
  41441. nw: s,
  41442. ctor: function() {
  41443. this.nw = []
  41444. },
  41445. Ywa: function(c, d, f) {
  41446. for (var g, h, k = 0; k < this.nw.length; k++) g = this.nw[k],
  41447. h = g[0],
  41448. (g = g[1]) && g.call(h, c, d, f)
  41449. },
  41450. kca: function(c, d) {
  41451. this.nw.push([d, c])
  41452. },
  41453. qGa: function(c, d) {
  41454. for (var f, g = 0; g < this.nw.length; g++) f = this.nw[g],
  41455. f[0] == d && this.nw.splice(g, 1)
  41456. }
  41457. });
  41458. V.XKa = V.O.extend({
  41459. ctor: u(),
  41460. j: B(q),
  41461. M_: B(q),
  41462. QC: u(),
  41463. mk: u()
  41464. });
  41465. V.WKa = V.O.extend({
  41466. ctor: u(),
  41467. j: B(q),
  41468. Jya: u(),
  41469. QC: u(),
  41470. mk: u()
  41471. });
  41472. V.BU = V.O.extend({
  41473. gt: s,
  41474. Gv: s,
  41475. ni: 0,
  41476. mM: q,
  41477. cH: s,
  41478. ctor: function() {
  41479. this.ni = 0;
  41480. this.mM = q
  41481. },
  41482. j: function() {
  41483. this.gt = [];
  41484. this.Gv = [];
  41485. this.cH = [];
  41486. return q
  41487. },
  41488. M_: function() {
  41489. if (!this.mM || 0 == this.gt.length) return q;
  41490. for (var c = q,
  41491. d = s,
  41492. f = 0; f < this.gt.length; f++)(d = this.gt[f]) && d.M_ && (c = c && d.M_());
  41493. return c
  41494. },
  41495. Jya: function() {
  41496. if (this.mM && 0 != this.Gv.length) for (var c = 0; c < this.Gv.length; c++);
  41497. },
  41498. mk: function() {
  41499. for (var c = s,
  41500. d = 0; d < this.gt.length; d++)(c = this.gt[d]) && c.mk();
  41501. this.gt = [];
  41502. for (d = 0; d < this.Gv.length; d++)(c = this.Gv[d]) && c.mk();
  41503. this.Gv = []
  41504. },
  41505. QC: function(c) {
  41506. this.ni = c.id || 0;
  41507. for (var d = c.conditions || [], f = 0; f < d.length; f++) {
  41508. var g = d[f],
  41509. h = g.classname,
  41510. k = V.BI.zH(h);
  41511. k ? (k.QC(g), k.j(), this.gt.push(k)) : C.log("class named classname(" + h + ") can not implement!")
  41512. }
  41513. d = c.actions || [];
  41514. for (f = 0; f < d.length; f++) g = d[f],
  41515. h = g.classname,
  41516. (k = V.BI.zH(h)) ? (k.QC(g), k.j(), this.Gv.push(k)) : C.log("class named classname(" + h + ") can not implement!");
  41517. c = c.events || [];
  41518. for (f = 0; f < c.length; f++) g = c[f],
  41519. g = g.id,
  41520. 0 > g || this.cH.push(g)
  41521. },
  41522. IAa: A("ni"),
  41523. W3a: x("mM"),
  41524. AUa: A("cH")
  41525. });
  41526. V.BU.create = function() {
  41527. var c = new V.BU;
  41528. return c.j() ? c: s
  41529. };
  41530. V.zk = {
  41531. Fa: "",
  41532. Faa: t,
  41533. wW: {},
  41534. pX: {},
  41535. qX: {},
  41536. nCa: function(c) {
  41537. if (!c) return 0;
  41538. var d = c.length;
  41539. if (7 > d) return 0;
  41540. var f = c.indexOf("."),
  41541. g = c.substr(0, f);
  41542. c = c.substr(f + 1, d - 1);
  41543. var f = c.indexOf("."),
  41544. h = c.substr(0, f);
  41545. c = c.substr(f + 1, d - 1);
  41546. var f = c.indexOf("."),
  41547. k = c.substr(0, f);
  41548. c = c.substr(f + 1, d - 1);
  41549. f = c.indexOf(".");
  41550. return 1E3 * parseInt(g) + 100 * parseInt(h) + 10 * parseInt(k) + parseInt( - 1 == f ? c: c.substr(0, f))
  41551. },
  41552. aS: function(c, d) {
  41553. this.wW[c] = d
  41554. },
  41555. CUa: function(c) {
  41556. return this.wW[c]
  41557. },
  41558. SJa: function(c) {
  41559. var d = C.M.xd(c);
  41560. d || e("Please load the resource first : " + c);
  41561. var f = C.path.dirname(c);
  41562. this.Fa = "" == f ? f: f + "/";
  41563. var f = d.version,
  41564. g = this.nCa(f);
  41565. c = (f ? 250 > g ? new V.O8: new V.qqa: new V.O8).E_(d, this.Fa, c);
  41566. if (!f || 250 > g) this.Faa = q;
  41567. return c
  41568. },
  41569. clear: function() {
  41570. this.Fa = "";
  41571. this.Faa = t;
  41572. this.wW = {}
  41573. },
  41574. K1a: function(c, d, f, g) {
  41575. d = V.BI;
  41576. var h = new V.R7(c, f);
  41577. d.Nga(h);
  41578. f && (this.pX[c] = f);
  41579. g && (this.qX[c] = g)
  41580. },
  41581. DUa: A("Fa"),
  41582. UVa: A("pX"),
  41583. TVa: A("qX")
  41584. };
  41585. V.N8 = V.O.extend({
  41586. Fa: "",
  41587. E_: u(),
  41588. oD: u()
  41589. });
  41590. V.O8 = V.N8.extend({
  41591. E_: function(c, d, f) {
  41592. this.Fa = "" == d ? d: C.path.join(d, "/");
  41593. for (var g = c.textures,
  41594. h = 0; h < g.length; h++) {
  41595. var k = d,
  41596. k = k + g[h];
  41597. C.Fe.Lr(k)
  41598. }
  41599. d = c.designWidth;
  41600. g = c.designHeight;
  41601. 0 >= d || 0 >= g ? (C.log("Read design size error!"), V.zk.aS(f, C.Q.aa)) : V.zk.aS(f, C.size(d, g));
  41602. h = this.oD(c.widgetTree);
  41603. k = h.i();
  41604. 0 == k.width && 0 == k.height && h.yf(C.size(d, g));
  41605. V.actionManager.Lp(f, c.animation, h);
  41606. return h
  41607. },
  41608. oD: function(c) {
  41609. var d = s,
  41610. f = c.classname,
  41611. g = c.options;
  41612. "Button" == f ? (d = gd.create(), this.kJ(d, g)) : "CheckBox" == f ? (d = hd.create(), this.bia(d, g)) : "Label" == f ? (d = ld.create(), this.c3(d, g)) : "LabelAtlas" == f ? (d = md.create(), this.dia(d, g)) : "LoadingBar" == f ? (d = jd.create(), this.fia(d, g)) : "ScrollView" == f ? (d = T.create(), this.d3(d, g)) : "TextArea" == f ? (d = ld.create(), this.c3(d, g)) : "TextButton" == f ? (d = gd.create(), this.kJ(d, g)) : "TextField" == f ? (d = qd.create(), this.hia(d, g)) : "ImageView" == f ? (d = id.create(), this.cia(d, g)) : "Panel" == f ? (d = L.create(), this.Vu(d, g)) : "Slider" == f ? (d = kd.create(), this.gia(d, g)) : "LabelBMFont" == f ? (d = nd.create(), this.eia(d, g)) : "DragPanel" == f && (d = T.create(), this.d3(d, g));
  41613. c = c.children;
  41614. for (f = 0; f < c.length; f++)(g = this.oD(c[f])) && d.q(g);
  41615. return d
  41616. },
  41617. Ee: function(c, d) {
  41618. d.ignoreSize !== m && c.We(d.ignoreSize);
  41619. c.yf(C.size(d.width, d.height));
  41620. c.Qm(d.tag);
  41621. c.ey(d.actiontag);
  41622. c.vh(d.touchAble);
  41623. var f = d.name;
  41624. c.Ze(f ? f: "default");
  41625. c.p(C.d(d.x, d.y));
  41626. d.scaleX !== m && c.gb(d.scaleX);
  41627. d.scaleY !== m && c.pb(d.scaleY);
  41628. d.rotation !== m && c.th(d.rotation);
  41629. d.visible !== m && c.va(d.visible);
  41630. c.ul(d.ZOrder)
  41631. },
  41632. b3: u(),
  41633. aia: u(),
  41634. Ad: function(c, d) {
  41635. d.opacity !== m && c.K(d.opacity);
  41636. c.G(C.color(d.colorR !== m ? d.colorR: 255, d.colorG !== m ? d.colorG: 255, d.colorB !== m ? d.colorB: 255));
  41637. c.S(d.anchorPointX !== m ? d.anchorPointX: c.Jr == J.HE ? 0.5 : 0, d.anchorPointY !== m ? d.anchorPointY: c.Jr == J.HE ? 0.5 : 0);
  41638. var f = d.flipY;
  41639. c.Nd(d.flipX);
  41640. c.Uf(f)
  41641. },
  41642. kJ: function(c, d) {
  41643. this.Ee(c, d);
  41644. var f = d.scale9Enable;
  41645. c.uh(f);
  41646. var g = d.normal,
  41647. h = d.pressed,
  41648. k = d.disabled,
  41649. n = g ? this.Fa + g: s,
  41650. p = h ? this.Fa + h: s,
  41651. r = k ? this.Fa + k: s,
  41652. v = d.useMergedTexture;
  41653. f ? (v ? c.pj(g, h, k, J.ab) : c.pj(n, p, r), d.scale9Width !== m && d.scale9Height !== m && c.yf(C.size(d.scale9Width, d.scale9Height))) : v ? c.pj(g, h, k, J.ab) : c.pj(n, p, r);
  41654. d.text !== m && (f = d.text || "") && c.vy(f);
  41655. d.fontSize !== m && c.uy(d.fontSize);
  41656. d.fontName !== m && c.ty(d.fontName);
  41657. f = C.color(d.textColorR !== m ? d.textColorR: 255, d.textColorG !== m ? d.textColorG: 255, d.textColorB !== m ? d.textColorB: 255);
  41658. c.sy(f);
  41659. this.Ad(c, d)
  41660. },
  41661. bia: function(c, d) {
  41662. this.Ee(c, d);
  41663. var f = d.backGroundBox,
  41664. g = d.backGroundBoxSelected,
  41665. h = d.frontCross,
  41666. k = d.backGroundBoxDisabled,
  41667. n = d.frontCrossDisabled,
  41668. p = this.Fa,
  41669. r = f ? p + f: s,
  41670. v = g ? p + g: s,
  41671. y = h ? p + h: s,
  41672. z = k ? p + k: s,
  41673. p = n ? p + n: s;
  41674. d.useMergedTexture ? c.pj(f, g, h, k, n, J.ab) : c.pj(r, v, y, z, p);
  41675. c.qy(d.selectedState || t);
  41676. this.Ad(c, d)
  41677. },
  41678. cia: function(c, d) {
  41679. this.Ee(c, d);
  41680. var f = d.fileName,
  41681. g = d.scale9Enable || t;
  41682. c.uh(g);
  41683. var h = this.Fa,
  41684. k = s;
  41685. f && (k = h + f);
  41686. h = d.useMergedTexture;
  41687. g ? (h ? c.Sf(f, J.ab) : c.Sf(k), d.scale9Width !== m && d.scale9Height !== m && c.yf(C.size(d.scale9Width, d.scale9Height)), c.Gc(C.rect(d.capInsetsX, d.capInsetsY, d.capInsetsWidth, d.capInsetsHeight))) : h ? c.Sf(f, J.ab) : c.Sf(k);
  41688. this.Ad(c, d)
  41689. },
  41690. c3: function(c, d) {
  41691. this.Ee(c, d);
  41692. c.SR(d.touchScaleEnable);
  41693. c.sa(d.text);
  41694. d.fontSize !== m && c.Od(d.fontSize);
  41695. d.fontName !== m && c.Zd(d.fontName);
  41696. if (d.areaWidth !== m && d.areaHeight !== m) {
  41697. var f = C.size(d.areaWidth, d.areaHeight);
  41698. c.ry(f)
  41699. }
  41700. d.hAlignment && c.Xu(d.hAlignment);
  41701. d.vAlignment && c.Yu(d.vAlignment);
  41702. this.Ad(c, d)
  41703. },
  41704. dia: function(c, d) {
  41705. this.Ee(c, d);
  41706. var f = d.charMapFile !== m,
  41707. g = d.itemWidth !== m,
  41708. h = d.itemHeight !== m,
  41709. k = d.startCharMap !== m;
  41710. d.stringValue !== m && (f && g && h && k && d.charMapFile) && c.setProperty(d.stringValue, this.Fa + d.charMapFile, d.itemWidth, d.itemHeight, d.startCharMap);
  41711. this.Ad(c, d)
  41712. },
  41713. Vu: function(c, d) {
  41714. this.Ee(c, d); ! (c instanceof T) && !(c instanceof wd) && c.aq(d.clipAble);
  41715. var f = d.backGroundScale9Enable;
  41716. c.rR(f);
  41717. var g = d.bgColorR,
  41718. h = d.bgColorG,
  41719. k = d.bgColorB,
  41720. n = d.bgStartColorR,
  41721. p = d.bgStartColorG,
  41722. r = d.bgStartColorB,
  41723. v = d.bgEndColorR,
  41724. y = d.bgEndColorG,
  41725. z = d.bgEndColorB;
  41726. c.qR(C.d(d.vectorX, d.vectorY));
  41727. var D = d.bgColorOpacity;
  41728. c.pR(d.colorType);
  41729. c.Mu(C.color(n, p, r), C.color(v, y, z));
  41730. c.Mu(C.color(g, h, k));
  41731. c.oR(D);
  41732. h = (g = d.backGroundImage) ? this.Fa + g: s;
  41733. d.useMergedTexture ? c.Nu(g, J.ab) : c.Nu(h);
  41734. f && c.bJ(C.rect(d.capInsetsX, d.capInsetsY, d.capInsetsWidth, d.capInsetsHeight));
  41735. this.Ad(c, d)
  41736. },
  41737. d3: function(c, d) {
  41738. this.Vu(c, d);
  41739. c.ky(C.size(d.innerWidth, d.innerHeight));
  41740. c.sh(d.direction);
  41741. c.vR(d.bounceEnable);
  41742. this.Ad(c, d)
  41743. },
  41744. T4a: function(c, d) {
  41745. this.Ee(c, d); (c instanceof T || c instanceof wd) && c.aq(d.clipAble);
  41746. this.Ad(c, d)
  41747. },
  41748. gia: function(c, d) {
  41749. this.Ee(c, d);
  41750. var f = d.barTextureScale9Enable || t;
  41751. c.uh(f);
  41752. var g = d.length,
  41753. h = d.useMergedTexture;
  41754. if (d.barFileName !== m) if (f) {
  41755. var k = (f = d.barFileName) ? this.Fa + f: s;
  41756. h ? c.kk(f, J.ab) : c.kk(k);
  41757. c.yf(C.size(g, c.i().height))
  41758. } else k = (f = d.barFileName) ? this.Fa + f: s,
  41759. h ? c.kk(f, J.ab) : c.kk(k);
  41760. var g = d.ballNormal,
  41761. f = d.ballPressed,
  41762. k = d.ballDisabled,
  41763. n = g ? this.Fa + g: s,
  41764. p = f ? this.Fa + f: s,
  41765. r = k ? this.Fa + k: s;
  41766. h ? c.Lfa(g, f, k, J.ab) : c.Lfa(n, p, r);
  41767. c.Ci(d.percent);
  41768. k = (f = d.progressBarFileName) ? this.Fa + f: s;
  41769. h ? c.Eu(f, J.ab) : c.Eu(k);
  41770. this.Ad(c, d)
  41771. },
  41772. cIa: function(c, d) {
  41773. this.Ee(c, d);
  41774. c.sa(d.text);
  41775. d.fontSize !== m && c.Od(d.fontSize);
  41776. c.G(C.color(d.colorR, d.colorG, d.colorB));
  41777. c.Zd(d.fontName);
  41778. if (d.areaWidth !== m && d.areaHeight !== m) {
  41779. var f = C.size(d.areaWidth, d.areaHeight);
  41780. c.ry(f)
  41781. }
  41782. d.hAlignment && c.Xu(d.hAlignment);
  41783. d.vAlignment && c.Yu(d.vAlignment);
  41784. this.Ad(c, d)
  41785. },
  41786. dIa: function(c, d) {
  41787. this.kJ(c, d);
  41788. c.vy(d.text || "");
  41789. c.sy(C.color(d.textColorR !== m ? d.textColorR: 255, d.textColorG !== m ? d.textColorG: 255, d.textColorB !== m ? d.textColorB: 255));
  41790. d.fontSize !== m && c.uy(d.fontSize);
  41791. d.fontName !== m && c.ty(d.fontName);
  41792. this.Ad(c, d)
  41793. },
  41794. hia: function(c, d) {
  41795. this.Ee(c, d);
  41796. d.placeHolder !== m && c.Di(d.placeHolder);
  41797. c.sa(d.text);
  41798. d.fontSize !== m && c.Od(d.fontSize);
  41799. d.fontName !== m && c.Zd(d.fontName);
  41800. d.touchSizeWidth !== m && d.touchSizeHeight !== m && c.u3(C.size(d.touchSizeWidth, d.touchSizeHeight));
  41801. var f = d.maxLengthEnable;
  41802. c.my(f);
  41803. f && c.qs(d.maxLength);
  41804. f = d.passwordEnable;
  41805. c.ny(f);
  41806. f && c.WC(d.passwordStyleText);
  41807. this.Ad(c, d)
  41808. },
  41809. fia: function(c, d) {
  41810. this.Ee(c, d);
  41811. var f = d.texture,
  41812. g = f ? this.Fa + f: s;
  41813. d.useMergedTexture ? c.Sf(f, J.ab) : c.Sf(g);
  41814. c.sh(d.direction);
  41815. c.Ci(d.percent);
  41816. this.Ad(c, d)
  41817. },
  41818. aIa: function(c, d) {
  41819. this.Vu(c, d)
  41820. },
  41821. bIa: function(c, d) {
  41822. this.Vu(c, d)
  41823. },
  41824. eia: function(c, d) {
  41825. this.Ee(c, d);
  41826. c.UC(this.Fa + d.fileName);
  41827. c.sa(d.text);
  41828. this.Ad(c, d)
  41829. }
  41830. });
  41831. V.qqa = V.N8.extend({
  41832. E_: function(c, d, f) {
  41833. this.Fa = "" == d ? d: C.path.join(d, "/");
  41834. for (var g = c.textures,
  41835. h = 0; h < g.length; h++) {
  41836. var k = d,
  41837. k = k + g[h];
  41838. C.Fe.Lr(k)
  41839. }
  41840. d = c.designWidth;
  41841. g = c.designHeight;
  41842. 0 >= d || 0 >= g ? (C.log("Read design size error!"), V.zk.aS(f, C.Q.aa)) : V.zk.aS(f, C.size(d, g));
  41843. h = this.oD(c.widgetTree);
  41844. k = h.i();
  41845. 0 == k.width && 0 == k.height && h.yf(C.size(d, g));
  41846. V.actionManager.Lp(f, c.animation, h);
  41847. return h
  41848. },
  41849. b3: function(c, d, f) {
  41850. c.Bd(d, f)
  41851. },
  41852. aia: function(c, d, f) {
  41853. var g = V.zk,
  41854. h = g.pX[c],
  41855. g = g.qX[c];
  41856. h && g && h.f3a.call(this, c, d, f)
  41857. },
  41858. oD: function(c) {
  41859. var d = s,
  41860. f = c.classname,
  41861. g = c.options;
  41862. "Button" == f ? d = gd.create() : "CheckBox" == f ? d = hd.create() : "Label" == f ? d = ld.create() : "LabelAtlas" == f ? d = md.create() : "LoadingBar" == f ? d = jd.create() : "ScrollView" == f ? d = T.create() : "TextArea" == f ? d = ld.create() : "TextButton" == f ? d = gd.create() : "TextField" == f ? d = qd.create() : "ImageView" == f ? d = id.create() : "Panel" == f ? d = L.create() : "Slider" == f ? d = kd.create() : "LabelBMFont" == f ? d = nd.create() : "DragPanel" == f ? d = T.create() : "ListView" == f ? d = wd.create() : "PageView" == f ? d = xd.create() : "Widget" == f && (d = J.create());
  41863. var h = f;
  41864. switch (h) {
  41865. case "Panel":
  41866. h = "Layout";
  41867. break;
  41868. case "TextArea":
  41869. h = "Label";
  41870. break;
  41871. case "TextButton":
  41872. h = "Button"
  41873. }
  41874. if (h = V.BI.Yxa(h + "Reader")) this.b3(h, d, g);
  41875. else {
  41876. var k;
  41877. d instanceof gd ? k = V.D4: d instanceof hd ? k = V.l5: d instanceof id ? k = V.e6: d instanceof md ? k = V.t6: d instanceof od ? k = V.u6: d instanceof ld ? k = V.v6: d instanceof jd ? k = V.B6: d instanceof kd ? k = V.L7: d instanceof qd ? k = V.Y7: d instanceof wd ? k = V.z6: d instanceof T ? k = V.eU: d instanceof xd ? k = V.l7: d instanceof L ? k = V.vK: d instanceof J && (k = V.Je);
  41878. this.b3(k, d, g);
  41879. g || C.log("GetParseError");
  41880. this.aia(f, d, g)
  41881. }
  41882. c = c.children;
  41883. for (f = 0; f < c.length; f++) if (g = this.oD(c[f])) d instanceof xd ? d.TO(g) : d instanceof wd ? d.yga(g) : (d instanceof L && (g.qh == J.h7 && (k = g.Ld(), h = d.dk(), g.Z2(C.d(k.x + h.x, k.y + h.y))), k = d.Ep(), g.p(C.d(g.Rc() + k.x, g.Vd() + k.y))), d.q(g));
  41884. return d
  41885. },
  41886. Ee: function(c, d) {
  41887. var f = d.name;
  41888. c.Ze(f ? f: "default");
  41889. d.ignoreSize !== m && c.We(d.ignoreSize);
  41890. c.l3(d.sizeType);
  41891. c.a3(d.positionType);
  41892. c.pia(C.d(d.sizePercentX, d.sizePercentY));
  41893. c.Z2(C.d(d.positionPercentX, d.positionPercentY));
  41894. c.yf(C.size(d.width, d.height));
  41895. c.Qm(d.tag);
  41896. c.ey(d.actiontag);
  41897. c.vh(d.touchAble);
  41898. c.p(C.d(d.x, d.y));
  41899. d.scaleX !== m && c.gb(d.scaleX);
  41900. d.scaleY !== m && c.pb(d.scaleY);
  41901. d.rotation !== m && c.th(d.rotation);
  41902. d.visible !== m && c.va(d.visible);
  41903. c.ul(d.ZOrder);
  41904. if (f = d.layoutParameter) {
  41905. var g;
  41906. switch (f.type) {
  41907. case 1:
  41908. g = Ic.create();
  41909. g.oc(f.gravity);
  41910. break;
  41911. case 2:
  41912. g = P.create(),
  41913. g.IR(f.relativeName),
  41914. g.JR(f.relativeToName),
  41915. g.mR(f.align)
  41916. }
  41917. g.mo(new Mc(f.marginLeft, f.marginTop, f.marginRight, f.marginDown));
  41918. c.ly(g)
  41919. }
  41920. },
  41921. Ad: function(c, d) {
  41922. d.opacity !== m && c.K(d.opacity);
  41923. c.G(C.color(d.colorR !== m ? d.colorR: 255, d.colorG !== m ? d.colorG: 255, d.colorB !== m ? d.colorB: 255));
  41924. c.S(d.anchorPointX !== m ? d.anchorPointX: c.Jr == J.HE ? 0.5 : 0, d.anchorPointY !== m ? d.anchorPointY: c.Jr == J.HE ? 0.5 : 0);
  41925. var f = d.flipY;
  41926. c.Nd(d.flipX);
  41927. c.Uf(f)
  41928. },
  41929. kJ: function(c, d) {
  41930. this.Ee(c, d);
  41931. var f = d.scale9Enable;
  41932. c.uh(f);
  41933. var g = d.normalData;
  41934. switch (g.resourceType) {
  41935. case 0:
  41936. g = g.path;
  41937. c.Rx(g ? this.Fa + g: s);
  41938. break;
  41939. case 1:
  41940. g = g.path,
  41941. c.Rx(g, J.ab)
  41942. }
  41943. g = d.pressedData;
  41944. switch (g.resourceType) {
  41945. case 0:
  41946. g = g.path;
  41947. c.Sx(g ? this.Fa + g: s);
  41948. break;
  41949. case 1:
  41950. g = g.path,
  41951. c.Sx(g, J.ab)
  41952. }
  41953. g = d.disabledData;
  41954. switch (g.resourceType) {
  41955. case 0:
  41956. g = g.path;
  41957. c.Qx(g ? this.Fa + g: s);
  41958. break;
  41959. case 1:
  41960. g = g.path,
  41961. c.Qx(g, J.ab)
  41962. }
  41963. f && (c.Gc(C.rect(d.capInsetsX, d.capInsetsY, d.capInsetsWidth, d.capInsetsHeight)), d.scale9Width !== m && d.scale9Height !== m && c.yf(C.size(d.scale9Width, d.scale9Height)));
  41964. d.text !== m && (f = d.text || "") && c.vy(f);
  41965. d.fontSize !== m && c.uy(d.fontSize);
  41966. d.fontName !== m && c.ty(d.fontName);
  41967. f = C.color(d.textColorR !== m ? d.textColorR: 255, d.textColorG !== m ? d.textColorG: 255, d.textColorB !== m ? d.textColorB: 255);
  41968. c.sy(f);
  41969. this.Ad(c, d)
  41970. },
  41971. bia: function(c, d) {
  41972. this.Ee(c, d);
  41973. var f = d.backGroundBoxData;
  41974. switch (f.resourceType) {
  41975. case 0:
  41976. f = f.path;
  41977. c.uC(f ? this.Fa + f: s);
  41978. break;
  41979. case 1:
  41980. f = f.path,
  41981. c.uC(f, J.ab)
  41982. }
  41983. f = d.backGroundBoxSelectedData;
  41984. switch (f.resourceType) {
  41985. case 0:
  41986. f = f.path;
  41987. c.wC(f ? this.Fa + f: s);
  41988. break;
  41989. case 1:
  41990. f = f.path,
  41991. c.wC(f, J.ab)
  41992. }
  41993. f = d.frontCrossData;
  41994. switch (f.resourceType) {
  41995. case 0:
  41996. f = f.path;
  41997. c.xC(f ? this.Fa + f: s);
  41998. break;
  41999. case 1:
  42000. f = f.path,
  42001. c.xC(f, J.ab)
  42002. }
  42003. f = d.backGroundBoxDisabledData;
  42004. switch (f.resourceType) {
  42005. case 0:
  42006. f = f.path;
  42007. c.vC(f ? this.Fa + f: s);
  42008. break;
  42009. case 1:
  42010. f = f.path,
  42011. c.vC(f, J.ab)
  42012. }
  42013. switch (d.frontCrossDisabledData.resourceType) {
  42014. case 0:
  42015. f = d.path;
  42016. c.yC(f ? this.Fa + f: s);
  42017. break;
  42018. case 1:
  42019. f = d.path,
  42020. c.yC(f, J.ab)
  42021. }
  42022. c.qy(d.selectedState || t);
  42023. c.qy(d, "selectedState");
  42024. this.Ad(c, d)
  42025. },
  42026. cia: function(c, d) {
  42027. this.Ee(c, d);
  42028. var f = d.fileNameData;
  42029. switch (f.resourceType) {
  42030. case 0:
  42031. var g = this.Fa; (f = f.path) && c.Sf(g + f);
  42032. break;
  42033. case 1:
  42034. f = f.path,
  42035. c.Sf(f, J.ab)
  42036. }
  42037. g = d.scale9Enable || t;
  42038. c.uh(g);
  42039. g && (d.scale9Width !== m && d.scale9Height !== m && c.yf(C.size(d.scale9Width, d.scale9Height)), c.Gc(C.rect(d.capInsetsX, d.capInsetsY, d.capInsetsWidth, d.capInsetsHeight)));
  42040. this.Ad(c, d)
  42041. },
  42042. c3: function(c, d) {
  42043. this.Ee(c, d);
  42044. c.SR(d.touchScaleEnable);
  42045. c.sa(d.text);
  42046. d.fontSize !== m && c.Od(d.fontSize);
  42047. d.fontName !== m && c.Zd(d.fontName);
  42048. if (d.areaWidth !== m && d.areaHeight !== m) {
  42049. var f = C.size(d.areaWidth, d.areaHeight);
  42050. c.ry(f)
  42051. }
  42052. d.hAlignment && c.Xu(d.hAlignment);
  42053. d.vAlignment && c.Yu(d.vAlignment);
  42054. this.Ad(c, d)
  42055. },
  42056. dia: function(c, d) {
  42057. this.Ee(c, d);
  42058. var f = d.charMapFile !== m,
  42059. g = d.itemWidth !== m,
  42060. h = d.itemHeight !== m,
  42061. k = d.startCharMap !== m;
  42062. if (d.stringValue !== m && f && g && h && k) switch (f = d.charMapFileData, f.resourceType) {
  42063. case 0:
  42064. c.setProperty(d.stringValue, this.Fa + f.path, d.itemWidth, d.itemHeight, d.startCharMap);
  42065. break;
  42066. case 1:
  42067. C.log("Wrong res type of LabelAtlas!")
  42068. }
  42069. this.Ad(c, d)
  42070. },
  42071. Vu: function(c, d) {
  42072. this.Ee(c, d); ! (c instanceof T) && !(c instanceof wd) && c.aq(d.clipAble);
  42073. var f = d.backGroundScale9Enable;
  42074. c.rR(f);
  42075. var g = d.bgColorR,
  42076. h = d.bgColorG,
  42077. k = d.bgColorB,
  42078. n = d.bgStartColorR,
  42079. p = d.bgStartColorG,
  42080. r = d.bgStartColorB,
  42081. v = d.bgEndColorR,
  42082. y = d.bgEndColorG,
  42083. z = d.bgEndColorB;
  42084. c.qR(C.d(d.vectorX, d.vectorY));
  42085. var D = d.bgColorOpacity;
  42086. c.pR(d.colorType);
  42087. c.Mu(C.color(n, p, r), C.color(v, y, z));
  42088. c.Mu(C.color(g, h, k));
  42089. c.oR(D);
  42090. g = d.backGroundImageData || {};
  42091. switch (g.resourceType) {
  42092. case 0:
  42093. g = g.path;
  42094. c.Nu(g ? this.Fa + g: s);
  42095. break;
  42096. case 1:
  42097. g = g.path,
  42098. c.Nu(g, J.ab)
  42099. }
  42100. f && c.bJ(C.rect(d.capInsetsX, d.capInsetsY, d.capInsetsWidth, d.capInsetsHeight));
  42101. c.Pm(d.layoutType);
  42102. this.Ad(c, d)
  42103. },
  42104. d3: function(c, d) {
  42105. this.Vu(c, d);
  42106. c.ky(C.size(d.innerWidth, d.innerHeight));
  42107. c.sh(d.direction);
  42108. c.vR(d.bounceEnable);
  42109. this.Ad(c, d)
  42110. },
  42111. gia: function(c, d) {
  42112. this.Ee(c, d);
  42113. var f = d.barTextureScale9Enable || t;
  42114. c.uh(f);
  42115. var g = d.length;
  42116. if (d.barFileName !== m) if (f) {
  42117. var f = d.barFileNameData,
  42118. h = f.resourceType;
  42119. switch (h) {
  42120. case 0:
  42121. f = (f = f.path) ? this.Fa + f: s;
  42122. c.kk(f);
  42123. break;
  42124. case 1:
  42125. f = f.path,
  42126. c.kk(f, J.ab)
  42127. }
  42128. c.yf(C.size(g, c.i().height))
  42129. } else switch (f = d.barFileNameData, h = f.resourceType, h) {
  42130. case 0:
  42131. f = (f = f.path) ? this.Fa + f: s;
  42132. c.kk(f);
  42133. break;
  42134. case 1:
  42135. f = f.path,
  42136. c.kk(f, J.ab)
  42137. }
  42138. g = d.ballNormalData;
  42139. switch (g.resourceType) {
  42140. case 0:
  42141. g = g.path;
  42142. c.sC(g ? this.Fa + g: s);
  42143. break;
  42144. case 1:
  42145. g = g.path,
  42146. c.sC(g, J.ab)
  42147. }
  42148. g = d.ballPressedData;
  42149. switch (g.resourceType) {
  42150. case 0:
  42151. g = g.path;
  42152. c.tC(g ? this.Fa + g: s);
  42153. break;
  42154. case 1:
  42155. g = g.path,
  42156. c.tC(g, J.ab)
  42157. }
  42158. g = d.ballDisabledData;
  42159. switch (g.resourceType) {
  42160. case 0:
  42161. g = g.path;
  42162. c.rC(g ? this.Fa + g: s);
  42163. break;
  42164. case 1:
  42165. g = g.path,
  42166. c.rC(g, J.ab)
  42167. }
  42168. g = d.progressBarData;
  42169. switch (g.resourceType) {
  42170. case 0:
  42171. f = (f = g.path) ? this.Fa + f: s;
  42172. c.Eu(f);
  42173. break;
  42174. case 1:
  42175. f = g.path,
  42176. c.Eu(f, J.ab)
  42177. }
  42178. this.Ad(c, d);
  42179. c.Ci(d.percent)
  42180. },
  42181. cIa: function(c, d) {
  42182. this.Ee(c, d);
  42183. c.sa(d.text);
  42184. d.fontSize !== m && c.Od(d.fontSize);
  42185. c.G(C.color(d.colorR, d.colorG, d.colorB));
  42186. c.Zd(d.fontName);
  42187. if (d.areaWidth !== m && d.areaHeight !== m) {
  42188. var f = C.size(d.areaWidth, d.areaHeight);
  42189. c.ry(f)
  42190. }
  42191. d.hAlignment && c.Xu(d.hAlignment);
  42192. d.vAlignment && c.Yu(d.vAlignment);
  42193. this.Ad(c, d)
  42194. },
  42195. dIa: function(c, d) {
  42196. this.kJ(c, d);
  42197. c.vy(d.text || "");
  42198. c.sy(C.color(d.textColorR !== m ? d.textColorR: 255, d.textColorG !== m ? d.textColorG: 255, d.textColorB !== m ? d.textColorB: 255));
  42199. d.fontSize !== m && c.uy(d.fontSize);
  42200. d.fontName !== m && c.ty(d.fontName);
  42201. this.Ad(c, d)
  42202. },
  42203. hia: function(c, d) {
  42204. this.Ee(c, d);
  42205. d.placeHolder !== m && c.Di(d.placeHolder);
  42206. c.sa(d.text);
  42207. d.fontSize !== m && c.Od(d.fontSize);
  42208. d.fontName !== m && c.Zd(d.fontName);
  42209. d.touchSizeWidth !== m && d.touchSizeHeight !== m && c.u3(C.size(d.touchSizeWidth, d.touchSizeHeight));
  42210. var f = d.maxLengthEnable;
  42211. c.my(f);
  42212. f && c.qs(d.maxLength);
  42213. f = d.passwordEnable;
  42214. c.ny(f);
  42215. f && c.WC(d.passwordStyleText);
  42216. this.Ad(c, d)
  42217. },
  42218. fia: function(c, d) {
  42219. this.Ee(c, d);
  42220. var f = d.textureData;
  42221. switch (f.resourceType) {
  42222. case 0:
  42223. var g = this.Fa; (f = f.path) && c.Sf(g + f);
  42224. break;
  42225. case 1:
  42226. f = f.path,
  42227. c.Sf(f, J.ab)
  42228. }
  42229. g = d.scale9Enable;
  42230. c.uh(g);
  42231. g && (c.Gc(C.rect(d.capInsetsX, d.capInsetsY, d.capInsetsWidth, d.capInsetsHeight)), c.yf(C.size(d.width, d.height)));
  42232. c.sh(d.direction);
  42233. c.Ci(d.percent);
  42234. this.Ad(c, d)
  42235. },
  42236. aIa: function(c, d) {
  42237. this.Vu(c, d);
  42238. c.ky(C.size(d.innerWidth || 0, d.innerHeight || 0));
  42239. c.sh(d.direction || 0);
  42240. c.oc(d.gravity || 0);
  42241. c.T2(d.itemMargin || 0)
  42242. },
  42243. bIa: function(c, d) {
  42244. this.Vu(c, d)
  42245. },
  42246. eia: function(c, d) {
  42247. this.Ee(c, d);
  42248. var f = d.fileNameData;
  42249. switch (f.resourceType) {
  42250. case 0:
  42251. c.UC(this.Fa + f.path);
  42252. break;
  42253. case 1:
  42254. C.log("Wrong res type of LabelAtlas!")
  42255. }
  42256. c.sa(d.text);
  42257. this.Ad(c, d)
  42258. }
  42259. });
  42260. V.R2a = {
  42261. uV: "",
  42262. AA: s,
  42263. xY: s,
  42264. gf: s,
  42265. mRa: function(c) {
  42266. this.gf = s;
  42267. this.uV = C.path.dirname(c);
  42268. var d = C.M.xd(c);
  42269. d || e("Please load the resource first : " + c);
  42270. this.gf = this.zH(d, s);
  42271. V.P3.parse(d.Triggers || []);
  42272. return this.gf
  42273. },
  42274. zH: function(c, d) {
  42275. var f = c.classname;
  42276. if ("CCNode" == f) {
  42277. var g = s;
  42278. d ? (g = C.A.create(), d.q(g)) : g = C.A.create();
  42279. this.$Ha(g, c);
  42280. for (var h = c.components,
  42281. k = 0; k < h.length; k++) {
  42282. var n = h[k];
  42283. if (!n) break;
  42284. var f = n.classname,
  42285. p = n.name,
  42286. r = n.fileData,
  42287. v = "",
  42288. y = "",
  42289. z = 0;
  42290. r != s && (z = r.resourceType !== m ? r.resourceType: -1, v = C.path.join(this.uV, r.path), y = r.plistFile);
  42291. var D = C.path.Cp(v);
  42292. if ("CCSprite" == f) {
  42293. f = s;
  42294. if (0 == z) {
  42295. if (".png" != D) continue;
  42296. f = C.u.create(v)
  42297. } else if (1 == z) {
  42298. if (".plist" != D) continue;
  42299. y = C.path.join(this.uV, y);
  42300. C.Fe.Lr(y, C.path.s_(y, ".png"));
  42301. f = C.u.create("#" + r.path)
  42302. } else continue;
  42303. v = V.lv.create(f, "CCSprite");
  42304. p != s && v.Ze(p);
  42305. g.pu(v);
  42306. this.at(f, n)
  42307. } else if ("CCTMXTiledMap" == f) r = s,
  42308. 0 == z && ".tmx" == D && (r = C.OK.create(v), v = V.lv.create(r, "CCTMXTiledMap"), p != s && v.Ze(p), g.pu(v), this.at(r, n));
  42309. else if ("CCParticleSystemQuad" == f)".plist" == D && (D = s, 0 == z ? (D = C.B.create(v), D.p(0, 0), v = V.lv.create(D, "CCParticleSystemQuad"), p != s && v.Ze(p), g.pu(v), this.at(D, n)) : C.log("unknown resourcetype on CCParticleSystemQuad!"));
  42310. else if ("CCArmature" == f) 0 == z && ((z = C.M.xd(v)) || C.log("Please load the resource [%s] first!", v), z = z.armature_data[0].name, V.Mr.pwa(v), z = V.Bk.create(z), v = V.lv.create(z, "CCArmature"), p != s && v.Ze(p), g.pu(v), (p = n.selectedactionname) && z.ll() && z.ll().play(p), this.at(z, n));
  42311. else if ("CCComAudio" == f) {
  42312. var E = s;
  42313. 0 == z && (E = V.bK.create(), E.RFa(v), p && E.Ze(p), g.pu(E), this.at(E, n))
  42314. } else "CCComAttribute" == f ? (D = s, 0 == z ? (D = V.MS.create(), "" != v && D.parse(v), p && D.Ze(p), g.pu(D), this.at(D, n)) : C.log("unknown resourcetype on CCComAttribute!")) : "CCBackgroundAudio" == f ? D && 0 == z && (E = V.bK.create(), E.QFa(v), E.Eha(v), z = Boolean(n.loop || 0), E.CR(z), p && E.Ze(p), g.pu(E), E.HFa(v, z), this.at(E, n)) : "GUIComponent" == f && (v = V.zk.SJa(v), v = V.lv.create(v, "GUIComponent"), p != s && v.Ze(p), g.pu(v), this.at(E, n))
  42315. }
  42316. h = c.gameobjects;
  42317. for (k = 0; k < h.length; k++) {
  42318. n = h[k];
  42319. if (!n) break;
  42320. this.zH(n, g)
  42321. }
  42322. return g
  42323. }
  42324. return s
  42325. },
  42326. Wfa: function(c, d) {
  42327. if (c == s) return s;
  42328. for (var f = s,
  42329. g = c.le(), h = 0; h < g.length && !((f = g[h]) && f.Fm() == d) && !(f = this.Wfa(f, d)); h++);
  42330. return f
  42331. },
  42332. GP: function(c) {
  42333. return this.gf == s ? s: this.gf.Fm() == c ? this.gf: this.Wfa(this.gf, c)
  42334. },
  42335. $Ha: function(c, d) {
  42336. c.p("undefined" === typeof d.x ? 0 : d.x, "undefined" === typeof d.y ? 0 : d.y);
  42337. c.va(Boolean("undefined" === typeof d.visible ? 1 : d.visible));
  42338. c.Qm("undefined" === typeof d.objecttag ? -1 : d.objecttag);
  42339. c.ul("undefined" === typeof d.zorder ? 0 : d.zorder);
  42340. var f = "undefined" === typeof d.scaley ? 1 : d.scaley;
  42341. c.gb("undefined" === typeof d.scalex ? 1 : d.scalex);
  42342. c.pb(f);
  42343. c.th("undefined" === typeof d.rotation ? 0 : d.rotation)
  42344. },
  42345. pJ: function(c, d) {
  42346. this.AA = d;
  42347. this.xY = c
  42348. },
  42349. at: function(c, d) {
  42350. this.xY && this.xY.call(this.AA, c, d)
  42351. },
  42352. version: B("1.2.0.0"),
  42353. clear: function() {
  42354. V.P3.mk();
  42355. C.ud.end()
  42356. }
  42357. };
  42358. V.RNa = V.O.extend({
  42359. Bd: u()
  42360. });
  42361. V.Je = {
  42362. gk: function() {
  42363. return V.Je
  42364. },
  42365. Bd: function(c, d) {
  42366. var f = d.ignoreSize;
  42367. f && c.We(f);
  42368. c.l3(d.sizeType);
  42369. c.a3(d.positionType);
  42370. c.pia(C.d(d.sizePercentX, d.sizePercentY));
  42371. c.Z2(C.d(d.positionPercentX, d.positionPercentY));
  42372. c.yf(C.size(d.width, d.height));
  42373. c.Qm(d.tag);
  42374. c.ey(d.actiontag);
  42375. c.vh(d.touchAble);
  42376. f = d.name;
  42377. c.Ze(f ? f: "default");
  42378. c.p(C.d(d.x, d.y)); (f = d.scalex) && c.gb(f); (f = d.scaleY) && c.pb(f); (f = d.rotation) && c.th(f); (f = d.visible) && c.va(f);
  42379. c.ul(d.ZOrder);
  42380. if (d.layoutParameter) {
  42381. var f = d.layoutParameter,
  42382. g = s;
  42383. switch (f.type) {
  42384. case 1:
  42385. g = new Ic;
  42386. g.oc(f.gravity);
  42387. break;
  42388. case 2:
  42389. var h = g = new P;
  42390. h.IR(f.relativeName);
  42391. h.JR(f.relativeToName);
  42392. h.mR(f.align)
  42393. }
  42394. g && (g.mo(f.marginLeft, f.marginTop, f.marginRight, f.marginDown), c.ly(g))
  42395. }
  42396. },
  42397. lo: function(c, d) {
  42398. var f = d.opacity;
  42399. f && c.K(f);
  42400. c.G(C.color(d.colorR || 255, d.colorG || 255, d.colorB || 255));
  42401. c.S(C.d(d.anchorPointX || (c.Jr === V.rqa ? 0.5 : 0), d.anchorPointY || (c.Jr === V.rqa ? 0.5 : 0)))
  42402. }
  42403. };
  42404. V.D4 = {
  42405. gk: function() {
  42406. return V.D4
  42407. },
  42408. Bd: function(c, d) {
  42409. V.Je.Bd.call(this, c, d);
  42410. var f = V.zk.Fa,
  42411. g = d.scale9Enable;
  42412. c.uh(g);
  42413. var h = d.normalData;
  42414. switch (h.resourceType) {
  42415. case 0:
  42416. h = h.path;
  42417. c.Rx(h && "" !== h ? f + h: s);
  42418. break;
  42419. case 1:
  42420. h = h.path,
  42421. c.Rx(h, 1)
  42422. }
  42423. h = d.pressedData;
  42424. switch (h.resourceType) {
  42425. case 0:
  42426. h = h.path;
  42427. c.Sx(h && "" !== h ? f + h: s);
  42428. break;
  42429. case 1:
  42430. h = h.path,
  42431. c.Sx(h, 1)
  42432. }
  42433. h = d.disabledData;
  42434. switch (h.resourceType) {
  42435. case 0:
  42436. h = h.path;
  42437. c.Qx(h && "" !== h ? f + h: s);
  42438. break;
  42439. case 1:
  42440. h = h.path,
  42441. c.Qx(h, 1)
  42442. }
  42443. g && (c.Gc(C.rect(d.capInsetsX, d.capInsetsY, d.capInsetsWidth, d.capInsetsHeight)), f = d.scale9Height, d.scale9Width && f && c.yf(C.size(d.scale9Width, d.scale9Height)));
  42444. d.text && (f = d.text) && c.vy(f);
  42445. c.sy(C.color(d.textColorR ? d.textColorR: 255, d.textColorG ? d.textColorG: 255, d.textColorB ? d.textColorB: 255));
  42446. d.fontSize && c.uy(d.fontSize);
  42447. d.fontName && c.ty(d.fontName);
  42448. V.Je.lo.call(this, c, d)
  42449. }
  42450. };
  42451. V.l5 = {
  42452. gk: function() {
  42453. return V.l5
  42454. },
  42455. Bd: function(c, d) {
  42456. V.Je.Bd.call(this, c, d);
  42457. var f = V.zk.Fa,
  42458. g = d.backGroundBoxData;
  42459. switch (g.resourceType) {
  42460. case 0:
  42461. g = g.path;
  42462. c.uC(g && "" !== g ? f + g: s);
  42463. break;
  42464. case 1:
  42465. g = g.path,
  42466. c.uC(g, 1)
  42467. }
  42468. g = d.backGroundBoxSelectedData;
  42469. switch (g.resourceType) {
  42470. case 0:
  42471. g = g.path;
  42472. c.wC(g && "" !== g ? f + g: s);
  42473. break;
  42474. case 1:
  42475. g = g.path,
  42476. c.wC(g, 1)
  42477. }
  42478. g = d.frontCrossData;
  42479. switch (g.resourceType) {
  42480. case 0:
  42481. g = g.path;
  42482. c.xC(g && "" !== g ? f + g: s);
  42483. break;
  42484. case 1:
  42485. g = g.path,
  42486. c.xC(g, 1)
  42487. }
  42488. g = d.backGroundBoxDisabledData;
  42489. switch (g.resourceType) {
  42490. case 0:
  42491. g = g.path;
  42492. c.vC(g && "" !== g ? f + g: s);
  42493. break;
  42494. case 1:
  42495. g = g.path,
  42496. c.vC(g, 1)
  42497. }
  42498. switch (d.frontCrossDisabledData.resourceType) {
  42499. case 0:
  42500. g = d.path;
  42501. c.yC(g && "" !== g ? f + g: s);
  42502. break;
  42503. case 1:
  42504. g = d.path,
  42505. c.yC(g, 1)
  42506. }
  42507. V.Je.lo.call(this, c, d)
  42508. }
  42509. };
  42510. V.e6 = {
  42511. gk: function() {
  42512. return V.e6
  42513. },
  42514. Bd: function(c, d) {
  42515. V.Je.Bd.call(this, c, d);
  42516. var f = V.zk.Fa,
  42517. g = d.fileNameData;
  42518. switch (g.resourceType) {
  42519. case 0:
  42520. (g = g.path) && "" !== g && c.Sf(f + g);
  42521. break;
  42522. case 1:
  42523. g = g.path,
  42524. c.Sf(g, 1)
  42525. }
  42526. f = t;
  42527. d.scale9Enable && (f = d.scale9Enable);
  42528. c.uh(f);
  42529. f && (f = d.scale9Height, d.scale9Width && f && c.yf(C.size(d.scale9Width, d.scale9Height)), c.Gc(C.rect(d.capInsetsX, d.capInsetsY, d.capInsetsWidth, d.capInsetsHeight)));
  42530. V.Je.lo.call(this, c, d)
  42531. }
  42532. };
  42533. V.t6 = {
  42534. gk: function() {
  42535. return V.t6
  42536. },
  42537. Bd: function(c, d) {
  42538. V.Je.Bd.call(this, c, d);
  42539. var f = V.zk.Fa,
  42540. g = d.charMapFileData || d.charMapFile,
  42541. h = d.itemWidth,
  42542. k = d.itemHeight,
  42543. n = d.startCharMap;
  42544. if (d.stringValue && g && h && k && n) switch (g = d.charMapFileData, g.resourceType) {
  42545. case 0:
  42546. c.setProperty(d.stringValue, f + g.path, d.itemWidth, d.itemHeight, d.startCharMap);
  42547. break;
  42548. case 1:
  42549. C.log("Wrong res type of LabelAtlas!")
  42550. }
  42551. V.Je.lo.call(this, c, d)
  42552. }
  42553. };
  42554. V.u6 = {
  42555. gk: function() {
  42556. return V.u6
  42557. },
  42558. Bd: function(c, d) {
  42559. V.Je.Bd.call(this, c, d);
  42560. var f = V.zk.Fa,
  42561. g = d.fileNameData;
  42562. switch (g.resourceType) {
  42563. case 0:
  42564. c.UC(f + g.path);
  42565. break;
  42566. case 1:
  42567. C.log("Wrong res type of LabelAtlas!")
  42568. }
  42569. c.PR(d.text);
  42570. V.Je.lo.call(this, c, d)
  42571. }
  42572. };
  42573. V.v6 = {
  42574. gk: function() {
  42575. return V.v6
  42576. },
  42577. Bd: function(c, d) {
  42578. V.Je.Bd.call(this, c, d);
  42579. c.SR(d.touchScaleEnable);
  42580. c.sa(d.text);
  42581. d.fontSize && c.Od(d.fontSize);
  42582. d.fontName && c.Zd(d.fontName);
  42583. var f = d.areaHeight;
  42584. d.areaWidth && f && (f = C.size(d.areaWidth, d.areaHeight), c.ry(f));
  42585. d.hAlignment && c.Xu(d.hAlignment);
  42586. d.vAlignment && c.Yu(d.vAlignment);
  42587. V.Je.lo.call(this, c, d)
  42588. }
  42589. };
  42590. V.vK = {
  42591. gk: function() {
  42592. return V.vK
  42593. },
  42594. Bd: function(c, d) {
  42595. V.Je.Bd.call(this, c, d);
  42596. var f = V.zk.Fa,
  42597. g = 0,
  42598. h = 0;
  42599. d.adaptScreen ? (h = C.Q.aa, g = h.width, h = h.height) : (g = d.width, h = d.height);
  42600. c.yf(C.size(g, h));
  42601. c.aq(d.clipAble);
  42602. g = d.backGroundScale9Enable;
  42603. c.rR(g);
  42604. var h = d.bgColorR,
  42605. k = d.bgColorG,
  42606. n = d.bgColorB,
  42607. p = d.bgStartColorR,
  42608. r = d.bgStartColorG,
  42609. v = d.bgStartColorB,
  42610. y = d.bgEndColorR,
  42611. z = d.bgEndColorG,
  42612. D = d.bgEndColorB;
  42613. c.qR(C.d(d.vectorX, d.vectorY));
  42614. var E = d.bgColorOpacity;
  42615. c.pR(d.colorType);
  42616. c.Mu(C.color(p, r, v), C.color(y, z, D));
  42617. c.Mu(C.color(h, k, n));
  42618. c.oR(E);
  42619. if (h = d.backGroundImageData) switch (h.resourceType) {
  42620. case 0:
  42621. h = h.path;
  42622. c.Nu(h && "" !== h ? f + h: s);
  42623. break;
  42624. case 1:
  42625. h = h.path,
  42626. c.Nu(h, 1)
  42627. }
  42628. g && c.bJ(C.rect(d.capInsetsX, d.capInsetsY, d.capInsetsWidth, d.capInsetsHeight));
  42629. c.Pm(d.layoutType);
  42630. V.Je.lo.call(this, c, d)
  42631. }
  42632. };
  42633. V.eU = {
  42634. gk: function() {
  42635. return V.eU
  42636. },
  42637. Bd: function(c, d) {
  42638. V.vK.Bd.call(this, c, d);
  42639. c.ky(C.size(d.innerWidth, d.innerHeight));
  42640. c.sh(d.direction);
  42641. c.vR(d.bounceEnable);
  42642. V.Je.lo.call(this, c, d)
  42643. }
  42644. };
  42645. V.z6 = {
  42646. gk: function() {
  42647. return V.z6
  42648. },
  42649. Bd: function(c, d) {
  42650. V.eU.Bd.call(this, c, d);
  42651. c.sh(d.direction);
  42652. c.oc(d.gravity);
  42653. c.T2(d.itemMargin)
  42654. }
  42655. };
  42656. V.B6 = {
  42657. gk: function() {
  42658. return V.B6
  42659. },
  42660. Bd: function(c, d) {
  42661. V.Je.Bd.call(this, c, d);
  42662. var f = V.zk.Fa,
  42663. g = d.textureData;
  42664. switch (g.resourceType) {
  42665. case 0:
  42666. (g = g.path) && "" !== g && c.Sf(f + g);
  42667. break;
  42668. case 1:
  42669. g = g.path,
  42670. c.Sf(g, 1)
  42671. }
  42672. f = d.scale9Enable;
  42673. c.uh(f);
  42674. f && (c.Gc(C.rect(d.capInsetsX, d.capInsetsY, d.capInsetsWidth, d.capInsetsHeight)), c.yf(C.size(d.width, d.height)));
  42675. c.sh(d.direction);
  42676. c.Ci(d.percent);
  42677. V.Je.lo.call(this, c, d)
  42678. }
  42679. };
  42680. V.l7 = {
  42681. $Xa: s,
  42682. gk: function() {
  42683. return V.l7
  42684. },
  42685. Bd: function(c, d) {
  42686. V.vK.Bd.call(this, c, d)
  42687. }
  42688. };
  42689. V.L7 = {
  42690. gk: function() {
  42691. return V.L7
  42692. },
  42693. Bd: function(c, d) {
  42694. V.Je.Bd.call(this, c, d);
  42695. var f = V.zk.Fa,
  42696. g = d.scale9Enable;
  42697. c.uh(g);
  42698. var h = d.length;
  42699. if (d.barFileName) {
  42700. if (g) {
  42701. var g = d.barFileNameData,
  42702. k = d.resourceType;
  42703. switch (k) {
  42704. case 0:
  42705. g = (g = g.path) && "" !== g ? f + g: s;
  42706. c.kk(g);
  42707. break;
  42708. case 1:
  42709. g = g.path,
  42710. c.kk(g, 1)
  42711. }
  42712. c.yf(C.size(h, c.i().height))
  42713. }
  42714. } else switch (g = d.barFileNameData, k = g.resourceType, k) {
  42715. case 0:
  42716. g = (g = g.path) && "" !== g ? f + g: s;
  42717. c.kk(g);
  42718. break;
  42719. case 1:
  42720. g = g.path,
  42721. c.kk(g, 1)
  42722. }
  42723. h = d.ballNormalData;
  42724. switch (h.resourceType) {
  42725. case 0:
  42726. h = h.path;
  42727. c.sC(h && "" !== h ? f + h: s);
  42728. break;
  42729. case 1:
  42730. h = h.path,
  42731. c.sC(h, 1)
  42732. }
  42733. h = d.ballPressedData;
  42734. switch (h.resourceType) {
  42735. case 0:
  42736. h = h.path;
  42737. c.tC(h && "" !== h ? f + h: s);
  42738. break;
  42739. case 1:
  42740. h = h.path,
  42741. c.tC(h, 1)
  42742. }
  42743. h = d.ballDisabledData;
  42744. switch (h.resourceType) {
  42745. case 0:
  42746. h = h.path;
  42747. c.rC(h && "" !== h ? f + h: s);
  42748. break;
  42749. case 1:
  42750. h = h.path,
  42751. c.rC(h, 1)
  42752. }
  42753. h = d.progressBarData;
  42754. switch (h.resourceType) {
  42755. case 0:
  42756. g = (g = h.path) && "" !== g ? f + g: s;
  42757. c.Eu(g);
  42758. break;
  42759. case 1:
  42760. g = h.path,
  42761. c.Eu(g, 1)
  42762. }
  42763. V.Je.lo.call(this, c, d)
  42764. }
  42765. };
  42766. V.Y7 = {
  42767. gk: function() {
  42768. return V.Y7
  42769. },
  42770. Bd: function(c, d) {
  42771. V.Je.Bd.call(this, c, d);
  42772. var f = d.placeHolder;
  42773. f && c.Di(f);
  42774. c.sa(d.text); (f = d.fontSize1) && c.Od(f); (f = d.fontName) && c.Zd(f);
  42775. var f = d.touchSizeWidth,
  42776. g = d.touchSizeHeight;
  42777. f && g && c.u3(f, g);
  42778. f = d.maxLengthEnable;
  42779. c.my(f);
  42780. f && c.qs(d.maxLength);
  42781. f = d.passwordEnable;
  42782. c.ny(f);
  42783. f && c.WC(d.passwordStyleText);
  42784. f = d.areaWidth;
  42785. g = d.areaHeight;
  42786. f && g && (f = C.size(f, g), c.ry(f)); (f = d.hAlignment) && c.Xu(f); (f = d.vAlignment) && c.Yu(f);
  42787. V.Je.lo.call(this, c, d)
  42788. }
  42789. };
  42790. function Ed(c, d) {
  42791. this.name = c;
  42792. this.parent = d
  42793. }
  42794. Ed.prototype = {
  42795. length: 0,
  42796. x: 0,
  42797. y: 0,
  42798. Rea: q,
  42799. Qea: q
  42800. };
  42801. function Fd(c, d) {
  42802. this.name = c;
  42803. this.boneData = d
  42804. }
  42805. Fd.prototype = {
  42806. TZ: s,
  42807. PZ: t
  42808. };
  42809. function Gd(c, d) {
  42810. this.data = c;
  42811. this.parent = d;
  42812. this.Zu()
  42813. }
  42814. Gd.prototype = {
  42815. x: 0,
  42816. y: 0,
  42817. Im: 0,
  42818. Rp: 0,
  42819. Rm: 0,
  42820. Jm: 0,
  42821. m11: 0,
  42822. Sm: 0,
  42823. LJ: 0,
  42824. Dy: 1,
  42825. Ey: 1,
  42826. lD: function(c, d) {
  42827. var f = this.parent;
  42828. f != s ? (this.Rm = this.x * f.Im + this.y * f.Rp + f.Rm, this.Sm = this.x * f.Jm + this.y * f.m11 + f.Sm, this.data.Rea ? (this.Dy = f.Dy * this.scaleX, this.Ey = f.Ey * this.scaleY) : (this.Dy = this.scaleX, this.Ey = this.scaleY), this.LJ = this.data.Qea ? f.LJ + this.rotation: this.rotation) : (this.Rm = c ? -this.x: this.x, this.Sm = d != t ? -this.y: this.y, this.Dy = this.scaleX, this.Ey = this.scaleY, this.LJ = this.rotation);
  42829. var g = this.LJ * Math.PI / 180,
  42830. f = Math.cos(g),
  42831. g = Math.sin(g);
  42832. this.Im = f * this.Dy;
  42833. this.Jm = g * this.Dy;
  42834. this.Rp = -g * this.Ey;
  42835. this.m11 = f * this.Ey;
  42836. c && (this.Im = -this.Im, this.Rp = -this.Rp);
  42837. d != t && (this.Jm = -this.Jm, this.m11 = -this.m11)
  42838. },
  42839. Zu: function() {
  42840. var c = this.data;
  42841. this.x = c.x;
  42842. this.y = c.y;
  42843. this.rotation = c.rotation;
  42844. this.scaleX = c.scaleX;
  42845. this.scaleY = c.scaleY
  42846. }
  42847. };
  42848. function Hd(c, d, f) {
  42849. this.data = c;
  42850. this.wl = d;
  42851. this.ej = f;
  42852. this.Zu()
  42853. }
  42854. Hd.prototype = {
  42855. Uqa: 0,
  42856. Th: s,
  42857. hy: function(c) {
  42858. this.Th = c;
  42859. this.Uqa = this.wl.time
  42860. },
  42861. Zu: function() {
  42862. var c = this.data;
  42863. this.r = c.r;
  42864. this.g = c.g;
  42865. this.b = c.b;
  42866. this.a = c.a;
  42867. for (var d = this.wl.data.zf,
  42868. f = 0,
  42869. g = d.length; f < g; f++) if (d[f] == c) {
  42870. this.hy(!c.TZ ? s: Id(this.wl, f, c.TZ));
  42871. break
  42872. }
  42873. }
  42874. };
  42875. function Jd(c) {
  42876. this.name = c;
  42877. this.XO = {}
  42878. }
  42879. Jd.prototype = {
  42880. JH: function(c, d) {
  42881. return this.XO[c + ":" + d]
  42882. }
  42883. };
  42884. function Kd(c, d, f) {
  42885. this.name = c;
  42886. this.Yia = d;
  42887. this.duration = f
  42888. }
  42889. Kd.prototype = {
  42890. apply: function(c, d, f, g, h) {
  42891. g && 0 != this.duration && (f %= this.duration, d %= this.duration);
  42892. g = this.Yia;
  42893. for (var k = 0,
  42894. n = g.length; k < n; k++) g[k].apply(c, d, f, h, 1)
  42895. }
  42896. };
  42897. function Ld(c, d, f) {
  42898. var g = 0,
  42899. h = Math.floor(c.length / f) - 2;
  42900. if (0 == h) return f;
  42901. for (var k = h >>> 1;;) {
  42902. c[(k + 1) * f] <= d ? g = k + 1 : h = k;
  42903. if (g == h) return (g + 1) * f;
  42904. k = g + h >>> 1
  42905. }
  42906. }
  42907. function Md(c) {
  42908. this.hj = [];
  42909. this.hj.length = 6 * (c - 1)
  42910. }
  42911. Md.prototype = {};
  42912. function Nd(c, d, f) {
  42913. f = 0 > f ? 0 : 1 < f ? 1 : f;
  42914. var g = 6 * d,
  42915. h = c.hj;
  42916. d = h[g];
  42917. if (!d) return f;
  42918. if ( - 1 == d) return 0;
  42919. c = h[g + 1];
  42920. for (var k = h[g + 2], n = h[g + 3], p = h[g + 4], r = h[g + 5], g = d, h = c, v = 8;;) {
  42921. if (g >= f) return d = g - d,
  42922. c = h - c,
  42923. c + (h - c) * (f - d) / (g - d);
  42924. if (0 == v) break;
  42925. v--;
  42926. d += k;
  42927. c += n;
  42928. k += p;
  42929. n += r;
  42930. g += d;
  42931. h += c
  42932. }
  42933. return h + (1 - h) * (f - g) / (1 - g)
  42934. }
  42935. function Od(c) {
  42936. this.hj = new Md(c);
  42937. this.frames = [];
  42938. this.frames.length = 2 * c
  42939. }
  42940. Od.prototype = {
  42941. qx: 0,
  42942. Bm: function() {
  42943. return this.frames.length / 2
  42944. },
  42945. Om: function(c, d, f) {
  42946. c *= 2;
  42947. this.frames[c] = d;
  42948. this.frames[c + 1] = f
  42949. },
  42950. apply: function(c, d, f, g, h) {
  42951. d = this.frames;
  42952. if (! (f < d[0])) {
  42953. c = c.vd[this.qx];
  42954. if (f >= d[d.length - 2]) d = c.data.rotation + d[d.length - 1] - c.rotation;
  42955. else {
  42956. var k = Ld(d, f, 2);
  42957. g = d[k - 1];
  42958. var n = d[k];
  42959. f = 1 - (f - n) / (d[k - 2] - n);
  42960. f = Nd(this.hj, k / 2 - 1, f);
  42961. for (d = d[k + 1] - g; 180 < d;) d -= 360;
  42962. for (; - 180 > d;) d += 360;
  42963. d = c.data.rotation + (g + d * f) - c.rotation
  42964. }
  42965. for (; 180 < d;) d -= 360;
  42966. for (; - 180 > d;) d += 360;
  42967. c.rotation += d * h
  42968. }
  42969. }
  42970. };
  42971. function Pd(c) {
  42972. this.hj = new Md(c);
  42973. this.frames = [];
  42974. this.frames.length = 3 * c
  42975. }
  42976. Pd.prototype = {
  42977. qx: 0,
  42978. Bm: function() {
  42979. return this.frames.length / 3
  42980. },
  42981. Om: function(c, d, f, g) {
  42982. c *= 3;
  42983. this.frames[c] = d;
  42984. this.frames[c + 1] = f;
  42985. this.frames[c + 2] = g
  42986. },
  42987. apply: function(c, d, f, g, h) {
  42988. d = this.frames;
  42989. if (! (f < d[0])) if (c = c.vd[this.qx], f >= d[d.length - 3]) c.x += (c.data.x + d[d.length - 2] - c.x) * h,
  42990. c.y += (c.data.y + d[d.length - 1] - c.y) * h;
  42991. else {
  42992. g = Ld(d, f, 3);
  42993. var k = d[g - 2],
  42994. n = d[g - 1],
  42995. p = d[g];
  42996. f = 1 - (f - p) / (d[g + -3] - p);
  42997. f = Nd(this.hj, g / 3 - 1, f);
  42998. c.x += (c.data.x + k + (d[g + 1] - k) * f - c.x) * h;
  42999. c.y += (c.data.y + n + (d[g + 2] - n) * f - c.y) * h
  43000. }
  43001. }
  43002. };
  43003. function Qd(c) {
  43004. this.hj = new Md(c);
  43005. this.frames = [];
  43006. this.frames.length = 3 * c
  43007. }
  43008. Qd.prototype = {
  43009. qx: 0,
  43010. Bm: function() {
  43011. return this.frames.length / 3
  43012. },
  43013. Om: function(c, d, f, g) {
  43014. c *= 3;
  43015. this.frames[c] = d;
  43016. this.frames[c + 1] = f;
  43017. this.frames[c + 2] = g
  43018. },
  43019. apply: function(c, d, f, g, h) {
  43020. d = this.frames;
  43021. if (! (f < d[0])) if (c = c.vd[this.qx], f >= d[d.length - 3]) c.scaleX += (c.data.scaleX - 1 + d[d.length - 2] - c.scaleX) * h,
  43022. c.scaleY += (c.data.scaleY - 1 + d[d.length - 1] - c.scaleY) * h;
  43023. else {
  43024. g = Ld(d, f, 3);
  43025. var k = d[g - 2],
  43026. n = d[g - 1],
  43027. p = d[g];
  43028. f = 1 - (f - p) / (d[g + -3] - p);
  43029. f = Nd(this.hj, g / 3 - 1, f);
  43030. c.scaleX += (c.data.scaleX - 1 + k + (d[g + 1] - k) * f - c.scaleX) * h;
  43031. c.scaleY += (c.data.scaleY - 1 + n + (d[g + 2] - n) * f - c.scaleY) * h
  43032. }
  43033. }
  43034. };
  43035. function Rd(c) {
  43036. this.hj = new Md(c);
  43037. this.frames = [];
  43038. this.frames.length = 5 * c
  43039. }
  43040. Rd.prototype = {
  43041. YC: 0,
  43042. Bm: function() {
  43043. return this.frames.length / 5
  43044. },
  43045. Om: function(c, d, f, g, h, k) {
  43046. c *= 5;
  43047. this.frames[c] = d;
  43048. this.frames[c + 1] = f;
  43049. this.frames[c + 2] = g;
  43050. this.frames[c + 3] = h;
  43051. this.frames[c + 4] = k
  43052. },
  43053. apply: function(c, d, f, g, h) {
  43054. d = this.frames;
  43055. if (! (f < d[0])) if (c = c.zf[this.YC], f >= d[d.length - 5]) h = d.length - 1,
  43056. c.r = d[h - 3],
  43057. c.g = d[h - 2],
  43058. c.b = d[h - 1],
  43059. c.a = d[h];
  43060. else {
  43061. g = Ld(d, f, 5);
  43062. var k = d[g - 4],
  43063. n = d[g - 3],
  43064. p = d[g - 2],
  43065. r = d[g - 1],
  43066. v = d[g];
  43067. f = 1 - (f - v) / (d[g - 5] - v);
  43068. f = Nd(this.hj, g / 5 - 1, f);
  43069. k += (d[g + 1] - k) * f;
  43070. n += (d[g + 2] - n) * f;
  43071. p += (d[g + 3] - p) * f;
  43072. d = r + (d[g + 4] - r) * f;
  43073. 1 > h ? (c.r += (k - c.r) * h, c.g += (n - c.g) * h, c.b += (p - c.b) * h, c.a += (d - c.a) * h) : (c.r = k, c.g = n, c.b = p, c.a = d)
  43074. }
  43075. }
  43076. };
  43077. function Sd(c) {
  43078. this.hj = new Md(c);
  43079. this.frames = [];
  43080. this.frames.length = c;
  43081. this.UZ = [];
  43082. this.UZ.length = c
  43083. }
  43084. Sd.prototype = {
  43085. YC: 0,
  43086. Bm: function() {
  43087. return this.frames.length
  43088. },
  43089. Om: function(c, d, f) {
  43090. this.frames[c] = d;
  43091. this.UZ[c] = f
  43092. },
  43093. apply: function(c, d, f) {
  43094. d = this.frames;
  43095. f < d[0] || (f = this.UZ[f >= d[d.length - 1] ? d.length - 1 : Ld(d, f, 1) - 1], c.zf[this.YC].hy(!f ? s: Id(c, this.YC, f)))
  43096. }
  43097. };
  43098. function Td(c) {
  43099. this.frames = [];
  43100. this.frames.length = c;
  43101. this.zm = [];
  43102. this.zm.length = c
  43103. }
  43104. Td.prototype = {
  43105. Bm: function() {
  43106. return this.frames.length
  43107. },
  43108. Om: function(c, d, f) {
  43109. this.frames[c] = d;
  43110. this.zm[c] = f
  43111. },
  43112. apply: function(c, d, f, g, h) {
  43113. if (g) {
  43114. var k = this.frames,
  43115. n = k.length;
  43116. if (d > f) this.apply(c, d, Number.MAX_VALUE, g, h),
  43117. d = -1;
  43118. else if (d >= k[n - 1]) return;
  43119. if (! (f < k[0])) {
  43120. if (d < k[0]) c = 0;
  43121. else {
  43122. c = Ld(k, d, 1);
  43123. for (d = k[c]; 0 < c && k[c - 1] == d;) c--
  43124. }
  43125. for (d = this.zm; c < n && f >= k[c]; c++) g.push(d[c])
  43126. }
  43127. }
  43128. }
  43129. };
  43130. function Ud(c) {
  43131. this.frames = [];
  43132. this.frames.length = c;
  43133. this.R_ = [];
  43134. this.R_.length = c
  43135. }
  43136. Ud.prototype = {
  43137. Bm: function() {
  43138. return this.frames.length
  43139. },
  43140. Om: function(c, d, f) {
  43141. this.frames[c] = d;
  43142. this.R_[c] = f
  43143. },
  43144. apply: function(c, d, f) {
  43145. var g = this.frames;
  43146. if (! (f < g[0])) {
  43147. d = c.vu;
  43148. var h = c.zf;
  43149. if (f = this.R_[f >= g[g.length - 1] ? g.length - 1 : Ld(g, f, 1) - 1]) {
  43150. g = 0;
  43151. for (k = f.length; g < k; g++) d[g] = c.zf[f[g]]
  43152. } else for (var g = 0,
  43153. k = h.length; g < k; g++) d[g] = h[g]
  43154. }
  43155. }
  43156. };
  43157. function Vd() {
  43158. this.vd = [];
  43159. this.zf = [];
  43160. this.Iia = [];
  43161. this.zm = [];
  43162. this.xB = []
  43163. }
  43164. Vd.prototype = {
  43165. K_: s,
  43166. HH: function(c) {
  43167. for (var d = this.vd,
  43168. f = 0,
  43169. g = d.length; f < g; f++) if (d[f].name == c) return d[f];
  43170. return s
  43171. },
  43172. xda: function(c) {
  43173. for (var d = this.vd,
  43174. f = 0,
  43175. g = d.length; f < g; f++) if (d[f].name == c) return f;
  43176. return - 1
  43177. },
  43178. h0: function(c) {
  43179. for (var d = this.zf,
  43180. f = 0,
  43181. g = d.length; f < g; f++) if (d[f].name == c) return d[f];
  43182. return s
  43183. },
  43184. IH: function(c) {
  43185. for (var d = this.zf,
  43186. f = 0,
  43187. g = d.length; f < g; f++) if (d[f].name == c) return f;
  43188. return - 1
  43189. }
  43190. };
  43191. function Wd(c, d) {
  43192. for (var f = c.xB,
  43193. g = 0,
  43194. h = f.length; g < h; g++) if (f[g].name == d) return f[g];
  43195. return s
  43196. }
  43197. function Xd(c) {
  43198. this.data = c;
  43199. this.vd = [];
  43200. for (var d = 0,
  43201. f = c.vd.length; d < f; d++) {
  43202. var g = c.vd[d];
  43203. this.vd.push(new Gd(g, !g.parent ? s: this.vd[c.vd.indexOf(g.parent)]))
  43204. }
  43205. this.zf = [];
  43206. this.vu = [];
  43207. d = 0;
  43208. for (f = c.zf.length; d < f; d++) g = c.zf[d],
  43209. g = new Hd(g, this, this.vd[c.vd.indexOf(g.boneData)]),
  43210. this.zf.push(g),
  43211. this.vu.push(g)
  43212. }
  43213. Xd.prototype = {
  43214. x: 0,
  43215. y: 0,
  43216. wJ: s,
  43217. time: 0,
  43218. Ada: t,
  43219. Bda: t,
  43220. lD: function() {
  43221. for (var c = this.Ada,
  43222. d = this.Bda,
  43223. f = this.vd,
  43224. g = 0,
  43225. h = f.length; g < h; g++) f[g].lD(c, d)
  43226. },
  43227. Zu: function() {
  43228. this.F2();
  43229. this.m3()
  43230. },
  43231. F2: function() {
  43232. for (var c = this.vd,
  43233. d = 0,
  43234. f = c.length; d < f; d++) c[d].Zu()
  43235. },
  43236. m3: function() {
  43237. for (var c = this.zf,
  43238. d = 0,
  43239. f = c.length; d < f; d++) c[d].Zu(d)
  43240. },
  43241. HH: function(c) {
  43242. for (var d = this.vd,
  43243. f = 0,
  43244. g = d.length; f < g; f++) if (d[f].data.name == c) return d[f];
  43245. return s
  43246. },
  43247. xda: function(c) {
  43248. for (var d = this.vd,
  43249. f = 0,
  43250. g = d.length; f < g; f++) if (d[f].data.name == c) return f;
  43251. return - 1
  43252. },
  43253. h0: function(c) {
  43254. for (var d = this.zf,
  43255. f = 0,
  43256. g = d.length; f < g; f++) if (d[f].data.name == c) return d[f];
  43257. return s
  43258. },
  43259. IH: function(c) {
  43260. for (var d = this.zf,
  43261. f = 0,
  43262. g = d.length; f < g; f++) if (d[f].data.name == c) return f;
  43263. return - 1
  43264. },
  43265. ria: function(c) {
  43266. if (this.wJ && c) {
  43267. var d = this.wJ;
  43268. console.log(d.XO);
  43269. for (var f in d.XO) {
  43270. var g = f.indexOf(":"),
  43271. d = parseInt(f.substring(0, g)),
  43272. h = f.substring(g + 1),
  43273. g = this.zf[d];
  43274. g.Th && g.Th.name == h && (d = c.JH(d, h)) && g.hy(d)
  43275. }
  43276. }
  43277. this.wJ = c
  43278. },
  43279. hy: function(c, d) {
  43280. for (var f = this.zf,
  43281. g = 0,
  43282. h = f.length; g < h; g++) {
  43283. var k = f[g];
  43284. if (k.data.name == c) {
  43285. f = s;
  43286. d && ((f = this.JH(g, d)) || e("Attachment not found: " + d + ", for slot: " + c));
  43287. k.hy(f);
  43288. return
  43289. }
  43290. }
  43291. e("Slot not found: " + c)
  43292. },
  43293. update: function(c) {
  43294. this.time += c
  43295. }
  43296. };
  43297. function Id(c, d, f) {
  43298. if (c.wJ) {
  43299. var g = c.wJ.JH(d, f);
  43300. if (g) return g
  43301. }
  43302. return c.data.K_ ? c.data.K_.JH(d, f) : s
  43303. }
  43304. function Yd(c) {
  43305. this.name = c
  43306. }
  43307. Yd.prototype = {
  43308. jQ: 0,
  43309. uP: 0,
  43310. stringValue: s
  43311. };
  43312. function Zd(c) {
  43313. this.data = c
  43314. }
  43315. Zd.prototype = {
  43316. jQ: 0,
  43317. uP: 0,
  43318. stringValue: s
  43319. };
  43320. var $d = {
  43321. region: 0,
  43322. vxa: 1
  43323. };
  43324. function ae(c) {
  43325. this.name = c;
  43326. this.offset = [];
  43327. this.offset.length = 8;
  43328. this.fq = [];
  43329. this.fq.length = 8
  43330. }
  43331. ae.prototype = {
  43332. x: 0,
  43333. y: 0,
  43334. cy: s,
  43335. Gga: 0,
  43336. Hga: 0,
  43337. Kga: 0,
  43338. Fga: 0,
  43339. Jga: 0,
  43340. Iga: 0
  43341. };
  43342. function be(c, d, f, g, h) {
  43343. d += g.Rm;
  43344. f += g.Sm;
  43345. var k = g.Im,
  43346. n = g.Rp,
  43347. p = g.Jm;
  43348. g = g.m11;
  43349. c = c.offset;
  43350. h[0] = c[0] * k + c[1] * n + d;
  43351. h[1] = c[0] * p + c[1] * g + f;
  43352. h[2] = c[2] * k + c[3] * n + d;
  43353. h[3] = c[2] * p + c[3] * g + f;
  43354. h[4] = c[4] * k + c[5] * n + d;
  43355. h[5] = c[4] * p + c[5] * g + f;
  43356. h[6] = c[6] * k + c[7] * n + d;
  43357. h[7] = c[6] * p + c[7] * g + f
  43358. }
  43359. function de(c) {
  43360. this.name = c;
  43361. this.m = []
  43362. }
  43363. de.prototype = {};
  43364. function ee(c) {
  43365. this.Hia = c;
  43366. this.Bca = {}
  43367. }
  43368. ee.prototype = {
  43369. xya: 0,
  43370. Pha: function(c, d, f) {
  43371. this.Bca[c.name + ":" + d.name] = f
  43372. }
  43373. };
  43374. function fe(c, d, f) {
  43375. return (d = c.Bca[d.name + ":" + f.name]) ? d: c.xya
  43376. }
  43377. function ge() {}
  43378. ge.prototype = {
  43379. next: s,
  43380. Hu: s,
  43381. td: s,
  43382. wm: 0,
  43383. time: 0,
  43384. oC: -1,
  43385. Cx: 0,
  43386. N3: 1,
  43387. zI: 0,
  43388. HQ: 0,
  43389. Vp: s,
  43390. Up: s,
  43391. DC: s,
  43392. EC: s
  43393. };
  43394. function he(c) {
  43395. this.data = c;
  43396. this.Yh = [];
  43397. this.zm = []
  43398. }
  43399. he.prototype = {
  43400. Vp: s,
  43401. Up: s,
  43402. DC: s,
  43403. EC: s,
  43404. N3: 1,
  43405. update: function(c) {
  43406. c *= this.N3;
  43407. for (var d = 0; d < this.Yh.length; d++) {
  43408. var f = this.Yh[d];
  43409. if (f) {
  43410. var g = c * f.N3;
  43411. f.time += g;
  43412. f.Hu && (f.Hu.time += g, f.zI += g); (g = f.next) ? f.oC >= g.wm && ie(this, d, g) : !f.loop && f.oC >= f.Cx && this.fP(d)
  43413. }
  43414. }
  43415. },
  43416. apply: function(c) {
  43417. for (var d = 0; d < this.Yh.length; d++) {
  43418. var f = this.Yh[d];
  43419. if (f) {
  43420. this.zm.length = 0;
  43421. var g = f.time,
  43422. h = f.oC,
  43423. k = f.Cx,
  43424. n = f.loop; ! n && g > k && (g = k);
  43425. var p = f.Hu;
  43426. if (p) {
  43427. var r = p.time; ! p.loop && r > p.Cx && (r = p.Cx);
  43428. p.td.apply(c, r, r, p.loop, s);
  43429. var v = f.zI / f.HQ;
  43430. 1 <= v && (v = 1, f.Hu = s);
  43431. var y = f.td,
  43432. p = c,
  43433. r = f.oC,
  43434. z = g,
  43435. D = this.zm;
  43436. n && 0 != y.duration && (z %= y.duration, r %= y.duration);
  43437. for (var y = y.Yia,
  43438. E = 0,
  43439. F = y.length; E < F; E++) y[E].apply(p, r, z, D, v)
  43440. } else f.td.apply(c, f.oC, g, n, this.zm);
  43441. p = 0;
  43442. for (r = this.zm.length; p < r; p++) z = this.zm[p],
  43443. f.EC != s && f.EC(d, z),
  43444. this.EC != s && this.EC(d, z);
  43445. if (n ? h % k > g % k: h < k && g >= k) g = Math.floor(g / k),
  43446. f.DC && f.DC(d, g),
  43447. this.DC && this.DC(d, g);
  43448. f.oC = f.time
  43449. }
  43450. }
  43451. },
  43452. Qca: function() {
  43453. for (var c = 0,
  43454. d = this.Yh.length; c < d; c++) this.fP(c);
  43455. this.Yh.length = 0
  43456. },
  43457. fP: function(c) {
  43458. if (! (c >= this.Yh.length)) {
  43459. var d = this.Yh[c];
  43460. d && (d.Up != s && d.Up(c), this.Up != s && this.Up(c), this.Yh[c] = s)
  43461. }
  43462. },
  43463. gy: function(c, d, f) {
  43464. var g = new ge;
  43465. g.td = d;
  43466. g.loop = f;
  43467. g.Cx = d.duration;
  43468. ie(this, c, g);
  43469. return g
  43470. },
  43471. lH: function(c, d, f, g) {
  43472. var h = new ge;
  43473. h.td = d;
  43474. h.loop = f;
  43475. h.Cx = d.duration;
  43476. if (f = je(this, c)) {
  43477. for (; f.next;) f = f.next;
  43478. f.next = h
  43479. } else this.Yh[c] = h;
  43480. 0 >= g && (g = f ? g + (f.Cx - fe(this.data, f.td, d)) : 0);
  43481. h.wm = g;
  43482. return h
  43483. },
  43484. Sda: function(c) {
  43485. return c >= this.Yh.length ? s: this.Yh[c]
  43486. }
  43487. };
  43488. function ie(c, d, f) {
  43489. var g = je(c, d);
  43490. if (g) {
  43491. var h = g.Hu;
  43492. g.Hu = s;
  43493. g.Up != s && g.Up(d);
  43494. c.Up != s && c.Up(d);
  43495. f.HQ = fe(c.data, g.td, f.td);
  43496. 0 < f.HQ && (f.zI = 0, f.Hu = h && 0.5 > g.zI / g.HQ ? h: g)
  43497. }
  43498. c.Yh[d] = f;
  43499. f.Vp != s && f.Vp(d);
  43500. c.Vp != s && c.Vp(d)
  43501. }
  43502. function je(c, d) {
  43503. if (d < c.Yh.length) return c.Yh[d];
  43504. for (; d >= c.Yh.length;) c.Yh.push(s);
  43505. return s
  43506. }
  43507. function ke(c) {
  43508. this.cxa = c
  43509. }
  43510. ke.prototype = {};
  43511. function le(c, d, f) {
  43512. var g = f.curve;
  43513. if (g) if ("stepped" == g) c.hj.hj[6 * d] = -1;
  43514. else if (g instanceof Array) {
  43515. f = g[0];
  43516. var h = g[1],
  43517. k = g[2],
  43518. n = g[3],
  43519. p = 0.1 * 0.1,
  43520. g = 0.1 * p,
  43521. r = 3 * 0.1,
  43522. v = 3 * p,
  43523. p = 6 * p,
  43524. y = 6 * g,
  43525. z = 2 * -f + k,
  43526. D = 2 * -h + n,
  43527. k = 3 * (f - k) + 1,
  43528. n = 3 * (h - n) + 1;
  43529. d *= 6;
  43530. c = c.hj.hj;
  43531. c[d] = f * r + z * v + k * g;
  43532. c[d + 1] = h * r + D * v + n * g;
  43533. c[d + 2] = z * p + k * y;
  43534. c[d + 3] = D * p + n * y;
  43535. c[d + 4] = k * y;
  43536. c[d + 5] = n * y
  43537. }
  43538. }
  43539. function me(c, d) {
  43540. 8 != c.length && e("Color hexidecimal length must be 8, recieved: " + c);
  43541. return parseInt(c.substring(2 * d, 2 * d + 2), 16) / 255
  43542. }
  43543. function ne(c, d) {
  43544. this.n6a = d;
  43545. this.WEa = [];
  43546. this.Lga = [];
  43547. var f = new oe(c),
  43548. g = [];
  43549. g.length = 4;
  43550. for (var h = s;;) {
  43551. var k = pe(f);
  43552. if (k == s) break;
  43553. k = f.trim(k);
  43554. if (0 == k.length) h = s;
  43555. else if (h) {
  43556. var n = new qe;
  43557. n.name = k;
  43558. n.page = h;
  43559. n.rotate = "true" == re(f);
  43560. se(f, g);
  43561. var k = parseInt(g[0]),
  43562. p = parseInt(g[1]);
  43563. se(f, g);
  43564. var r = parseInt(g[0]),
  43565. v = parseInt(g[1]);
  43566. n.xa = k / h.width;
  43567. n.ea = p / h.height;
  43568. n.rotate ? (n.T3 = (k + v) / h.width, n.a4 = (p + r) / h.height) : (n.T3 = (k + r) / h.width, n.a4 = (p + v) / h.height);
  43569. n.x = k;
  43570. n.y = p;
  43571. n.width = Math.abs(r);
  43572. n.height = Math.abs(v);
  43573. 4 == se(f, g) && (n.KIa = [parseInt(g[0]), parseInt(g[1]), parseInt(g[2]), parseInt(g[3])], 4 == se(f, g) && (n.VEa = [parseInt(g[0]), parseInt(g[1]), parseInt(g[2]), parseInt(g[3])], se(f, g)));
  43574. n.hga = parseInt(g[0]);
  43575. n.gga = parseInt(g[1]);
  43576. se(f, g);
  43577. n.offsetX = parseInt(g[0]);
  43578. n.offsetY = parseInt(g[1]);
  43579. n.index = parseInt(re(f));
  43580. this.Lga.push(n)
  43581. } else h = new te,
  43582. h.name = k,
  43583. h.Nza = ue[re(f)],
  43584. se(f, g),
  43585. h.Qfa = ve[g[0]],
  43586. h.Nfa = ve[g[1]],
  43587. n = re(f),
  43588. h.U3 = we,
  43589. h.b4 = we,
  43590. "x" == n ? h.U3 = xe: "y" == n ? h.b4 = xe: "xy" == n && (h.U3 = h.b4 = xe),
  43591. d.load(h, k, this),
  43592. this.WEa.push(h)
  43593. }
  43594. }
  43595. ne.prototype = {};
  43596. var ue = {
  43597. wKa: 0,
  43598. $La: 1,
  43599. sMa: 2,
  43600. RGB565: 3,
  43601. YMa: 4,
  43602. XMa: 5,
  43603. ZMa: 6
  43604. },
  43605. ve = {
  43606. BMa: 0,
  43607. sv: 1,
  43608. vMa: 2,
  43609. zMa: 3,
  43610. xMa: 4,
  43611. yMa: 5,
  43612. wMa: 6
  43613. },
  43614. we = 1,
  43615. xe = 2;
  43616. function te() {}
  43617. te.prototype = {
  43618. Nza: s,
  43619. Qfa: s,
  43620. Nfa: s,
  43621. U3: s,
  43622. b4: s,
  43623. cy: s
  43624. };
  43625. function qe() {}
  43626. qe.prototype = {
  43627. page: s,
  43628. x: 0,
  43629. y: 0,
  43630. xa: 0,
  43631. ea: 0,
  43632. T3: 0,
  43633. a4: 0,
  43634. hga: 0,
  43635. gga: 0,
  43636. index: 0,
  43637. rotate: t,
  43638. KIa: s,
  43639. VEa: s
  43640. };
  43641. function oe(c) {
  43642. this.Hfa = c.split(/\r\n|\r|\n/)
  43643. }
  43644. oe.prototype = {
  43645. index: 0,
  43646. trim: function(c) {
  43647. return c.replace(/^\s+|\s+$/g, "")
  43648. }
  43649. };
  43650. function se(c, d) {
  43651. var f = pe(c),
  43652. g = f.indexOf(":"); - 1 == g && e("Invalid line: " + f);
  43653. for (var h = 0,
  43654. g = g + 1; 3 > h; h++) {
  43655. var k = f.indexOf(",", g);
  43656. if ( - 1 == k) {
  43657. 0 == h && e("Invalid line: " + f);
  43658. break
  43659. }
  43660. d[h] = c.trim(f.substr(g, k - g));
  43661. g = k + 1
  43662. }
  43663. d[h] = c.trim(f.substring(g));
  43664. return h + 1
  43665. }
  43666. function re(c) {
  43667. var d = pe(c),
  43668. f = d.indexOf(":"); - 1 == f && e("Invalid line: " + d);
  43669. return c.trim(d.substring(f + 1))
  43670. }
  43671. function pe(c) {
  43672. return c.index >= c.Hfa.length ? s: c.Hfa[c.index++]
  43673. }
  43674. function ye(c) {
  43675. this.$wa = c
  43676. }
  43677. ye.prototype = {};
  43678. var Be = C.ha.extend({
  43679. he: s,
  43680. Iua: s,
  43681. fu: 1,
  43682. UL: t,
  43683. TL: t,
  43684. EN: t,
  43685. cua: s,
  43686. $Na: s,
  43687. C: s,
  43688. ctor: function() {
  43689. C.ha.prototype.ctor.call(this);
  43690. this.C = {
  43691. src: C.Ic,
  43692. ga: C.Hc
  43693. }
  43694. },
  43695. j: function() {
  43696. C.A.prototype.j.call(this);
  43697. this.$d(q);
  43698. this.C.src = C.ONE;
  43699. this.C.ga = C.ONE_MINUS_SRC_ALPHA;
  43700. C.L === C.la && this.mJ(C.ug.Xd(C.Co));
  43701. this.Lu()
  43702. },
  43703. P3a: x("UL"),
  43704. O3a: x("TL"),
  43705. sIa: x("fu"),
  43706. cQ: function(c, d, f) {
  43707. var g, h, k, n;
  43708. if ("string" == typeof c) {
  43709. if ("string" == typeof d) {
  43710. var p = C.M.xd(d);
  43711. ze.aHa(d);
  43712. h = new ne(p, ze)
  43713. } else h = d;
  43714. k = f || 1 / C.Q.Ul;
  43715. var r = new ke(new ye(h));
  43716. r.scale = k;
  43717. for (var v = C.M.xd(c), y = new Vd, z = v.bones, D = 0, E = z.length; D < E; D++) {
  43718. var F = z[D],
  43719. G = s;
  43720. F.parent && ((G = y.HH(F.parent)) || e("Parent bone not found: " + F.parent));
  43721. var K = new Ed(F.name, G);
  43722. K.length = (F.length || 0) * r.scale;
  43723. K.x = (F.x || 0) * r.scale;
  43724. K.y = (F.y || 0) * r.scale;
  43725. K.rotation = F.rotation || 0;
  43726. K.scaleX = F.scaleX || 1;
  43727. K.scaleY = F.scaleY || 1;
  43728. K.Rea = !F.inheritScale || "true" == F.inheritScale;
  43729. K.Qea = !F.inheritRotation || "true" == F.inheritRotation;
  43730. y.vd.push(K)
  43731. }
  43732. for (var O = v.slots,
  43733. D = 0,
  43734. E = O.length; D < E; D++) {
  43735. var U = O[D]; (K = y.HH(U.bone)) || e("Slot bone not found: " + U.bone);
  43736. var X = new Fd(U.name, K),
  43737. N = U.color;
  43738. N && (X.r = me(N, 0), X.g = me(N, 1), X.b = me(N, 2), X.a = me(N, 3));
  43739. X.TZ = U.attachment;
  43740. X.PZ = U.additive && "true" == U.additive;
  43741. y.zf.push(X)
  43742. }
  43743. var Q = v.skins,
  43744. S;
  43745. for (S in Q) if (Q.hasOwnProperty(S)) {
  43746. var M = Q[S],
  43747. R = new Jd(S),
  43748. $;
  43749. for ($ in M) if (M.hasOwnProperty($)) {
  43750. var sa = y.IH($),
  43751. aa = M[$],
  43752. ta;
  43753. for (ta in aa) if (aa.hasOwnProperty(ta)) {
  43754. var ma, ba = r,
  43755. xa = ta,
  43756. ca = aa[ta],
  43757. xa = ca.name || xa,
  43758. Ma = $d[ca.type || "region"],
  43759. W = m;
  43760. a: {
  43761. switch (Ma) {
  43762. case $d.vxa:
  43763. W = new de(xa);
  43764. break a;
  43765. case $d.region:
  43766. var pa;
  43767. b:
  43768. {
  43769. for (var hb = ba.cxa.$wa.Lga,
  43770. Na = 0,
  43771. Gb = hb.length; Na < Gb; Na++) if (hb[Na].name == xa) {
  43772. pa = hb[Na];
  43773. break b
  43774. }
  43775. pa = s
  43776. }
  43777. pa || e("Region not found in atlas: " + xa + " (" + Ma + ")");
  43778. var Aa = new ae(xa);
  43779. Aa.cy = pa;
  43780. var fb = pa.xa,
  43781. gb = pa.ea,
  43782. Ka = pa.T3,
  43783. Ab = pa.a4,
  43784. va = Aa.fq;
  43785. pa.rotate ? (va[2] = fb, va[3] = Ab, va[4] = fb, va[5] = gb, va[6] = Ka, va[7] = gb, va[0] = Ka, va[1] = Ab) : (va[0] = fb, va[1] = Ab, va[2] = fb, va[3] = gb, va[4] = Ka, va[5] = gb, va[6] = Ka, va[7] = Ab);
  43786. Aa.Gga = pa.offsetX;
  43787. Aa.Hga = pa.offsetY;
  43788. Aa.Kga = pa.width;
  43789. Aa.Fga = pa.height;
  43790. Aa.Jga = pa.hga;
  43791. Aa.Iga = pa.gga;
  43792. W = Aa;
  43793. break a
  43794. }
  43795. e("Unknown attachment type: " + Ma)
  43796. }
  43797. if (Ma == $d.region) {
  43798. W.x = (ca.x || 0) * ba.scale;
  43799. W.y = (ca.y || 0) * ba.scale;
  43800. W.scaleX = ca.scaleX || 1;
  43801. W.scaleY = ca.scaleY || 1;
  43802. W.rotation = ca.rotation || 0;
  43803. W.width = (ca.width || 32) * ba.scale;
  43804. W.height = (ca.height || 32) * ba.scale;
  43805. var Oc = W.width / W.Jga * W.scaleX,
  43806. Pc = W.height / W.Iga * W.scaleY,
  43807. cc = -W.width / 2 * W.scaleX + W.Gga * Oc,
  43808. dc = -W.height / 2 * W.scaleY + W.Hga * Pc,
  43809. Qc = cc + W.Kga * Oc,
  43810. Rc = dc + W.Fga * Pc,
  43811. Sc = W.rotation * Math.PI / 180,
  43812. Bb = Math.cos(Sc),
  43813. Cb = Math.sin(Sc),
  43814. Tc = cc * Bb + W.x,
  43815. Uc = cc * Cb,
  43816. Vc = dc * Bb + W.y,
  43817. Wc = dc * Cb,
  43818. Xc = Qc * Bb + W.x,
  43819. Yc = Qc * Cb,
  43820. Zc = Rc * Bb + W.y,
  43821. $c = Rc * Cb,
  43822. Ra = W.offset;
  43823. Ra[0] = Tc - Wc;
  43824. Ra[1] = Vc + Uc;
  43825. Ra[2] = Tc - $c;
  43826. Ra[3] = Zc + Uc;
  43827. Ra[4] = Xc - $c;
  43828. Ra[5] = Zc + Yc;
  43829. Ra[6] = Xc - Wc;
  43830. Ra[7] = Vc + Yc
  43831. } else if (Ma == $d.i_) for (var ad = ca.vertices,
  43832. hc = 0,
  43833. ce = ad.length; hc < ce; hc++) W.m.push(ad[hc] * ba.scale);
  43834. ma = W;
  43835. ma != s && (R.XO[sa + ":" + ta] = ma)
  43836. }
  43837. }
  43838. y.Iia.push(R);
  43839. "default" == R.name && (y.K_ = R)
  43840. }
  43841. var ec = v.events,
  43842. Db;
  43843. for (Db in ec) if (ec.hasOwnProperty(Db)) {
  43844. var fc = ec[Db],
  43845. Eb = new Yd(Db);
  43846. Eb.jQ = fc["int"] || 0;
  43847. Eb.uP = fc["float"] || 0;
  43848. Eb.stringValue = fc.string || s;
  43849. y.zm.push(Eb)
  43850. }
  43851. var gc = v.animations,
  43852. Fb;
  43853. for (Fb in gc) if (gc.hasOwnProperty(Fb)) {
  43854. var Oe = r,
  43855. Pe = Fb,
  43856. Pb = gc[Fb],
  43857. mb = y,
  43858. bb = [],
  43859. Fa = 0,
  43860. xc = Pb.bones,
  43861. nb = m;
  43862. for (nb in xc) if (xc.hasOwnProperty(nb)) {
  43863. var yc = mb.xda(nb); - 1 == yc && e("Bone not found: " + nb);
  43864. var zc = xc[nb],
  43865. Ba;
  43866. for (Ba in zc) if (zc.hasOwnProperty(Ba)) {
  43867. var Ca = zc[Ba];
  43868. if ("rotate" == Ba) {
  43869. var Z = new Od(Ca.length);
  43870. Z.qx = yc;
  43871. for (var ua = 0,
  43872. ia = 0,
  43873. Ia = Ca.length; ia < Ia; ia++) {
  43874. var ya = Ca[ia];
  43875. Z.Om(ua, ya.time, ya.angle);
  43876. le(Z, ua, ya);
  43877. ua++
  43878. }
  43879. bb.push(Z);
  43880. Fa = Math.max(Fa, Z.frames[2 * Z.Bm() - 2])
  43881. } else if ("translate" == Ba || "scale" == Ba) {
  43882. var Ac = 1;
  43883. "scale" == Ba ? Z = new Qd(Ca.length) : (Z = new Pd(Ca.length), Ac = Oe.scale);
  43884. Z.qx = yc;
  43885. ia = ua = 0;
  43886. for (Ia = Ca.length; ia < Ia; ia++) ya = Ca[ia],
  43887. Z.Om(ua, ya.time, (ya.x || 0) * Ac, (ya.y || 0) * Ac),
  43888. le(Z, ua, ya),
  43889. ua++;
  43890. bb.push(Z);
  43891. Fa = Math.max(Fa, Z.frames[3 * Z.Bm() - 3])
  43892. } else e("Invalid timeline type for a bone: " + Ba + " (" + nb + ")")
  43893. }
  43894. }
  43895. var Bc = Pb.slots,
  43896. ub = m;
  43897. for (ub in Bc) if (Bc.hasOwnProperty(ub)) {
  43898. var Cc = Bc[ub],
  43899. vb = mb.IH(ub);
  43900. for (Ba in Cc) if (Cc.hasOwnProperty(Ba)) if (Ca = Cc[Ba], "color" == Ba) {
  43901. Z = new Rd(Ca.length);
  43902. Z.YC = vb;
  43903. ia = ua = 0;
  43904. for (Ia = Ca.length; ia < Ia; ia++) {
  43905. var ya = Ca[ia],
  43906. Qb = ya.color,
  43907. Qe = me(Qb, 0),
  43908. Re = me(Qb, 1),
  43909. Se = me(Qb, 2),
  43910. Te = me(Qb, 3);
  43911. Z.Om(ua, ya.time, Qe, Re, Se, Te);
  43912. le(Z, ua, ya);
  43913. ua++
  43914. }
  43915. bb.push(Z);
  43916. Fa = Math.max(Fa, Z.frames[5 * Z.Bm() - 5])
  43917. } else if ("attachment" == Ba) {
  43918. Z = new Sd(Ca.length);
  43919. Z.YC = vb;
  43920. ia = ua = 0;
  43921. for (Ia = Ca.length; ia < Ia; ia++) ya = Ca[ia],
  43922. Z.Om(ua++, ya.time, ya.name);
  43923. bb.push(Z);
  43924. Fa = Math.max(Fa, Z.frames[Z.Bm() - 1])
  43925. } else e("Invalid timeline type for a slot: " + Ba + " (" + ub + ")")
  43926. }
  43927. var Rb = Pb.events;
  43928. if (Rb) {
  43929. Z = new Td(Rb.length);
  43930. ia = ua = 0;
  43931. for (Ia = Rb.length; ia < Ia; ia++) {
  43932. var Qa = Rb[ia],
  43933. cb;
  43934. a: {
  43935. for (var Dc = mb.zm,
  43936. Sb = 0,
  43937. Ue = Dc.length; Sb < Ue; Sb++) if (Dc[Sb].name == Qa.name) {
  43938. cb = Dc[Sb];
  43939. break a
  43940. }
  43941. cb = s
  43942. }
  43943. cb || e("Event not found: " + Qa.name);
  43944. var Tb = new Zd(cb);
  43945. Tb.jQ = Qa.hasOwnProperty("int") ? Qa["int"] : cb.jQ;
  43946. Tb.uP = Qa.hasOwnProperty("float") ? Qa["float"] : cb.uP;
  43947. Tb.stringValue = Qa.hasOwnProperty("string") ? Qa.string: cb.stringValue;
  43948. Z.Om(ua++, Qa.time, Tb)
  43949. }
  43950. bb.push(Z);
  43951. Fa = Math.max(Fa, Z.frames[Z.Bm() - 1])
  43952. }
  43953. var Ub = Pb.draworder;
  43954. if (Ub) {
  43955. for (var Z = new Ud(Ub.length), wb = mb.zf.length, ia = ua = 0, Ia = Ub.length; ia < Ia; ia++) {
  43956. var Ec = Ub[ia],
  43957. db = s;
  43958. if (Ec.offsets) {
  43959. db = [];
  43960. db.length = wb;
  43961. for (var Ga = wb - 1; 0 <= Ga; Ga--) db[Ga] = -1;
  43962. var Fc = Ec.offsets,
  43963. Vb = [];
  43964. Vb.length = wb - Fc.length;
  43965. for (var ob = 0,
  43966. Gc = 0,
  43967. Ga = 0,
  43968. Ve = Fc.length; Ga < Ve; Ga++) {
  43969. var Hc = Fc[Ga],
  43970. vb = mb.IH(Hc.slot);
  43971. for ( - 1 == vb && e("Slot not found: " + Hc.slot); ob != vb;) Vb[Gc++] = ob++;
  43972. db[ob + Hc.offset] = ob++
  43973. }
  43974. for (; ob < wb;) Vb[Gc++] = ob++;
  43975. for (Ga = wb - 1; 0 <= Ga; Ga--) - 1 == db[Ga] && (db[Ga] = Vb[--Gc])
  43976. }
  43977. Z.Om(ua++, Ec.time, db)
  43978. }
  43979. bb.push(Z);
  43980. Fa = Math.max(Fa, Z.frames[Z.Bm() - 1])
  43981. }
  43982. mb.xB.push(new Kd(Pe, bb, Fa))
  43983. }
  43984. g = y;
  43985. n = q
  43986. } else g = c,
  43987. n = d;
  43988. this.mIa(g, n);
  43989. this.j()
  43990. },
  43991. i_: function() {
  43992. for (var c = C.pv,
  43993. d = C.pv,
  43994. f = C.O5,
  43995. g = C.O5,
  43996. h = this.ia,
  43997. k = this.pa,
  43998. n = [], p = this.he.zf, r = 0, v = p.length; r < v; ++r) {
  43999. var y = p[r];
  44000. if (y.Th && 0 == y.Th.type) {
  44001. var z = y.wl.x,
  44002. D = y.wl.y,
  44003. E = y.ej,
  44004. F = n,
  44005. y = y.Th.offset,
  44006. z = z + E.Rm,
  44007. D = D + E.Sm;
  44008. F[0] = y[0] * E.Im + y[1] * E.Rp + z;
  44009. F[1] = y[0] * E.Jm + y[1] * E.m11 + D;
  44010. F[2] = y[2] * E.Im + y[3] * E.Rp + z;
  44011. F[3] = y[2] * E.Jm + y[3] * E.m11 + D;
  44012. F[4] = y[4] * E.Im + y[5] * E.Rp + z;
  44013. F[5] = y[4] * E.Jm + y[5] * E.m11 + D;
  44014. F[6] = y[6] * E.Im + y[7] * E.Rp + z;
  44015. F[7] = y[6] * E.Jm + y[7] * E.m11 + D;
  44016. c = Math.min(c, n[0] * h, n[6] * h, n[2] * h, n[4] * h);
  44017. d = Math.min(d, n[1] * k, n[7] * k, n[3] * k, n[5] * k);
  44018. f = Math.max(f, n[0] * h, n[6] * h, n[2] * h, n[4] * h);
  44019. g = Math.max(g, n[1] * k, n[7] * k, n[3] * k, n[5] * k)
  44020. }
  44021. }
  44022. h = this.Ld();
  44023. return C.rect(h.x + c, h.y + d, f - c, g - d)
  44024. },
  44025. lD: function() {
  44026. this.he.lD()
  44027. },
  44028. Zu: function() {
  44029. this.he.Zu()
  44030. },
  44031. F2: function() {
  44032. this.he.F2()
  44033. },
  44034. m3: function() {
  44035. this.he.m3()
  44036. },
  44037. HH: function(c) {
  44038. return this.he.HH(c)
  44039. },
  44040. h0: function(c) {
  44041. return this.he.h0(c)
  44042. },
  44043. ria: function(c) {
  44044. var d = this.he,
  44045. f;
  44046. a: {
  44047. f = d.data.Iia;
  44048. for (var g = 0,
  44049. h = f.length; g < h; g++) if (f[g].name == c) {
  44050. f = f[g];
  44051. break a
  44052. }
  44053. f = s
  44054. }
  44055. f || e("Skin not found: " + c);
  44056. d.ria(f)
  44057. },
  44058. JH: function(c, d) {
  44059. return Id(this.he, this.he.data.IH(c), d)
  44060. },
  44061. hy: function(c, d) {
  44062. return this.he.hy(c, d)
  44063. },
  44064. $d: x("EN"),
  44065. qg: A("EN"),
  44066. mIa: function(c, d) {
  44067. this.he = new Xd(c);
  44068. this.Iua = 0 == this.he.vd.length ? s: this.he.vd[0];
  44069. this.cua = d;
  44070. if (C.L === C.cb) for (var f = this.he,
  44071. g, h, k = 0,
  44072. n = f.vu.length; k < n; k++) {
  44073. var p = f.vu[k];
  44074. g = p.Th;
  44075. g instanceof ae && (g = g.cy, h = C.rect(g.x, g.y, g.width, g.height), g = C.u.create(g.page.da, h, g.rotate), this.q(g, -1), p.dda = g)
  44076. }
  44077. },
  44078. VH: function(c) {
  44079. return c.cy.page.cy
  44080. },
  44081. ek: A("C"),
  44082. Yd: x("C"),
  44083. update: function(c) {
  44084. this.he.update(c);
  44085. if (C.L === C.cb) {
  44086. this.Xa();
  44087. this.he.lD();
  44088. c = this.he.vu;
  44089. for (var d = 0,
  44090. f = c.length; d < f; d++) {
  44091. var g = c[d],
  44092. h = g.Th,
  44093. k = g.dda;
  44094. if (h instanceof ae) {
  44095. if (!k) {
  44096. var n = h.cy,
  44097. p = C.rect(n.x, n.y, n.width, n.height),
  44098. n = C.u.create(n.page.da, p, n.rotate);
  44099. this.q(n, -1);
  44100. g.dda = n
  44101. }
  44102. k.va(q);
  44103. k.Yd(C.Ic, g.data.PZ ? C.ONE: C.Hc);
  44104. n = g.ej;
  44105. k.p(n.Rm + h.x * n.Im + h.y * n.Rp, n.Sm + h.x * n.Jm + h.y * n.m11);
  44106. k.Za(n.Dy, n.Ey);
  44107. k.th( - (g.ej.LJ + h.rotation))
  44108. } else k && k.va(t)
  44109. }
  44110. }
  44111. },
  44112. ka: s,
  44113. gn: function() {
  44114. C.BC(this);
  44115. var c = this.Xa(),
  44116. d = this.he;
  44117. d.r = c.r / 255;
  44118. d.g = c.g / 255;
  44119. d.b = c.b / 255;
  44120. d.a = this.rb() / 255;
  44121. this.EN && (d.r *= d.a, d.g *= d.a, d.b *= d.a);
  44122. var f, g, h, k, n, p = new C.Uc,
  44123. r = this.C,
  44124. c = 0;
  44125. for (n = d.zf.length; c < n; c++) if (k = d.vu[c], k.Th && 0 == k.Th.type) {
  44126. h = k.Th;
  44127. var v = this.VH(h);
  44128. k.data.PZ != f ? (g && (g.KB(), g.NC()), f = !f, C.Gm(r.src, f ? C.ONE: r.ga)) : v != g && g && (g.KB(), g.NC());
  44129. g = v;
  44130. v = g.Sb;
  44131. if (g.Yf == v && (g.KB(), g.NC(), !g.eR(2 * g.Yf))) return;
  44132. Ae(h, k, p, this.EN);
  44133. g.HJ(p, v)
  44134. }
  44135. g && (g.KB(), g.NC());
  44136. f = C.Df;
  44137. if (this.UL) {
  44138. f.tj(0, 0, 255, 255);
  44139. f.Su(1);
  44140. c = 0;
  44141. for (n = d.zf.length; c < n; c++) k = d.vu[c],
  44142. k.Th && 0 == k.Th.type && (h = k.Th, p = new C.Uc, Ae(h, k, p), g = [], g.push(C.d(p.T.m.x, p.T.m.y)), g.push(C.d(p.Y.m.x, p.Y.m.y)), g.push(C.d(p.V.m.x, p.V.m.y)), g.push(C.d(p.X.m.x, p.X.m.y)), f.Of(g, 4, q))
  44143. }
  44144. if (this.TL) {
  44145. f.Su(2);
  44146. f.tj(255, 0, 0, 255);
  44147. c = 0;
  44148. for (n = d.vd.length; c < n; c++) p = d.vd[c],
  44149. g = p.data.length * p.Im + p.Rm,
  44150. h = p.data.length * p.Jm + p.Sm,
  44151. f.Tn(C.d(p.Rm, p.Sm), C.d(g, h));
  44152. f.Y2(4);
  44153. f.tj(0, 0, 255, 255);
  44154. c = 0;
  44155. for (n = d.vd.length; c < n; c++) p = d.vd[c],
  44156. f.S_(C.d(p.Rm, p.Sm)),
  44157. 0 == c && f.tj(0, 255, 0, 255)
  44158. }
  44159. },
  44160. Qq: function() {
  44161. if (this.UL || this.TL) {
  44162. var c = this.he,
  44163. d, f, g, h, k = C.Df;
  44164. if (this.UL) {
  44165. k.tj(0, 0, 255, 255);
  44166. k.Su(1);
  44167. var n = [];
  44168. g = 0;
  44169. for (h = c.zf.length; g < h; g++) if (f = c.vu[g], f.Th && 0 == f.Th.type) {
  44170. d = f.Th;
  44171. var p = n;
  44172. if (p) {
  44173. var r = {};
  44174. be(d, f.wl.x, f.wl.y, f.ej, r);
  44175. p.length = 0;
  44176. p.push(C.d(r[0], r[1]));
  44177. p.push(C.d(r[6], r[7]));
  44178. p.push(C.d(r[4], r[5]));
  44179. p.push(C.d(r[2], r[3]))
  44180. }
  44181. k.Of(n, 4, q)
  44182. }
  44183. }
  44184. if (this.TL) {
  44185. k.Su(2);
  44186. k.tj(255, 0, 0, 255);
  44187. g = 0;
  44188. for (h = c.vd.length; g < h; g++) d = c.vd[g],
  44189. f = d.data.length * d.Im + d.Rm,
  44190. n = d.data.length * d.Jm + d.Sm,
  44191. k.Tn(C.d(d.Rm, d.Sm), C.d(f, n));
  44192. k.Y2(4);
  44193. k.tj(0, 0, 255, 255);
  44194. g = 0;
  44195. for (h = c.vd.length; g < h; g++) d = c.vd[g],
  44196. k.S_(C.d(d.Rm, d.Sm)),
  44197. 0 === g && k.tj(0, 255, 0, 255)
  44198. }
  44199. }
  44200. }
  44201. });
  44202. Be.prototype.ka = C.L === C.la ? Be.prototype.gn: Be.prototype.Qq;
  44203. Be.Zxa = function(c, d) {
  44204. var f = new Be;
  44205. f.cQ.apply(f, arguments);
  44206. return f
  44207. };
  44208. Be.create = function(c, d, f) {
  44209. var g = new Be;
  44210. g.cQ.apply(g, arguments);
  44211. return g
  44212. };
  44213. var ze = {
  44214. Kia: s,
  44215. aHa: x("Kia"),
  44216. load: function(c, d) {
  44217. var f = C.path.join(C.path.dirname(this.Kia), d);
  44218. C.L === C.la ? (f = C.kb.sd(f), c.cy = C.uq.create(f, 128), c.width = f.w0(), c.height = f.v0()) : c.da = C.kb.sd(f)
  44219. },
  44220. A6a: u()
  44221. };
  44222. function Ae(c, d, f, g) {
  44223. var h = {};
  44224. be(c, d.wl.x, d.wl.y, d.ej, h);
  44225. var k = 255 * d.wl.r * d.r,
  44226. n = 255 * d.wl.g * d.g,
  44227. p = 255 * d.wl.b * d.b;
  44228. d = d.wl.a * d.a;
  44229. g && (k *= d, n *= d, p *= d);
  44230. f.T.F.r = f.X.F.r = f.V.F.r = f.Y.F.r = k;
  44231. f.T.F.g = f.X.F.g = f.V.F.g = f.Y.F.g = n;
  44232. f.T.F.b = f.X.F.b = f.V.F.b = f.Y.F.b = p;
  44233. f.T.F.a = f.X.F.a = f.V.F.a = f.Y.F.a = 255 * d;
  44234. f.T.m.x = h[0];
  44235. f.T.m.y = h[1];
  44236. f.X.m.x = h[2];
  44237. f.X.m.y = h[3];
  44238. f.V.m.x = h[4];
  44239. f.V.m.y = h[5];
  44240. f.Y.m.x = h[6];
  44241. f.Y.m.y = h[7];
  44242. f.T.v.xa = c.fq[0];
  44243. f.T.v.ea = c.fq[1];
  44244. f.X.v.xa = c.fq[2];
  44245. f.X.v.ea = c.fq[3];
  44246. f.V.v.xa = c.fq[4];
  44247. f.V.v.ea = c.fq[5];
  44248. f.Y.v.xa = c.fq[6];
  44249. f.Y.v.ea = c.fq[7]
  44250. }
  44251. var Ce = Be.extend({
  44252. zb: s,
  44253. Xc: s,
  44254. Xf: s,
  44255. j: function() {
  44256. this._super();
  44257. this.ZGa(new ee(this.he.data))
  44258. },
  44259. ZGa: function(c) {
  44260. c = new he(c);
  44261. c.Vp = this.Pta.bind(this);
  44262. c.DC = this.Mta.bind(this);
  44263. c.Up = this.Nta.bind(this);
  44264. c.EC = this.Ota.bind(this);
  44265. this.zb = c
  44266. },
  44267. Pha: function(c, d, f) {
  44268. var g = this.zb.data,
  44269. h = Wd(g.Hia, c);
  44270. h || e("Animation not found: " + c); (c = Wd(g.Hia, d)) || e("Animation not found: " + d);
  44271. g.Pha(h, c, f)
  44272. },
  44273. o3a: function(c, d) {
  44274. this.Xc = c;
  44275. this.Xf = d
  44276. },
  44277. gy: function(c, d, f) {
  44278. var g = Wd(this.he.data, d);
  44279. return ! g ? (C.log("Spine: Animation not found: " + d), 0) : this.zb.gy(c, g, f)
  44280. },
  44281. lH: function(c, d, f, g) {
  44282. var h = Wd(this.he.data, d);
  44283. return ! h ? (C.log("Spine: Animation not found:" + d), 0) : this.zb.lH(c, h, f, g)
  44284. },
  44285. Sda: function(c) {
  44286. return this.zb.Sda(c)
  44287. },
  44288. Qca: function() {
  44289. this.zb.Qca()
  44290. },
  44291. fP: function(c) {
  44292. this.zb.fP(c)
  44293. },
  44294. update: function(c) {
  44295. this._super(c);
  44296. c *= this.fu;
  44297. this.zb.update(c);
  44298. this.zb.apply(this.he);
  44299. this.he.lD()
  44300. },
  44301. Pta: function(c) {
  44302. this.kL(c, 0, s, 0)
  44303. },
  44304. Nta: function(c) {
  44305. this.kL(c, 1, s, 0)
  44306. },
  44307. Mta: function(c, d) {
  44308. this.kL(c, 2, s, d)
  44309. },
  44310. Ota: function(c, d) {
  44311. this.kL(c, 3, d, 0)
  44312. },
  44313. kL: function(c, d, f, g) {
  44314. this.Xc && this.Xf && this.Xf.call(this.Xc, this, c, d, f, g)
  44315. }
  44316. });
  44317. Ce.Zxa = function(c) {
  44318. var d = new Ce;
  44319. d.cQ.apply(d, arguments);
  44320. return d
  44321. };
  44322. Ce.create = function(c, d, f) {
  44323. var g = new Ce;
  44324. g.cQ.apply(g, arguments);
  44325. return g
  44326. };
  44327. C.i1a = {
  44328. jp: {},
  44329. w1a: function(c) {
  44330. if (c instanceof C.A) {
  44331. var d = c.constructor.prototype.YU;
  44332. if (!d) {
  44333. var f = {
  44334. writable: q,
  44335. enumerable: t,
  44336. configurable: q
  44337. };
  44338. f.value = ha.eea();
  44339. Object.defineProperty(c.constructor.prototype, "__pid", f)
  44340. }
  44341. this.jp[d] || (this.jp[d] = []);
  44342. c.C6a();
  44343. this.jp[d].push(c)
  44344. }
  44345. },
  44346. BCa: function(c) {
  44347. c = this.jp[c.prototype.YU];
  44348. return ! c || 0 == c.length ? t: q
  44349. },
  44350. j2a: function(c) {
  44351. var d = c.constructor.prototype.YU;
  44352. if (d && (d = this.jp[d])) for (var f = 0; f < d.length; f++) c === d[f] && (c.rh(), d.splice(f, 1))
  44353. },
  44354. LUa: function(c) {
  44355. if (this.BCa(c)) {
  44356. var d = this.jp[c.prototype.YU],
  44357. f = Array.prototype.slice.call(arguments);
  44358. f.shift();
  44359. d = d.pop();
  44360. d.gR.apply(d, f);
  44361. return d
  44362. }
  44363. },
  44364. MRa: function() {
  44365. for (var c in this.jp) for (var d = 0; d < this.jp[c].length; d++) this.jp[c][d].rh();
  44366. this.jp = {}
  44367. }
  44368. };
  44369. var I = {
  44370. Nwa: "res/anglebg.png",
  44371. Mwa: "res/angle.png",
  44372. DQa: "res/box.png",
  44373. t_: "res/char1.png",
  44374. ofa: "res/kiss1.png",
  44375. LDa: "res/kiss2.png",
  44376. xH: "res/closebtn.png",
  44377. Rca: "res/cloud.png",
  44378. Ffa: "res/lastword.png",
  44379. Dda: "res/floor.png",
  44380. IXa: "res/height.png",
  44381. R0: "res/morebtn2.png",
  44382. FCa: "res/help.png",
  44383. LXa: "res/highscorebg.png",
  44384. KXa: "res/highscore.png",
  44385. FDa: "res/jiesuan.png",
  44386. Mfa: "res/logo.png",
  44387. b0a: "res/m.png",
  44388. Z1: "res/startbtn.png",
  44389. vga: "res/powerdi.png",
  44390. uga: "res/power.png",
  44391. Lia: "res/speedline.png",
  44392. e4: "res/again.png",
  44393. f4: "res/morebtn.png",
  44394. Bxa: "res/char.plist",
  44395. Cxa: "res/char.png",
  44396. XR: "res/skycity.png",
  44397. Gfa: "res/light.png",
  44398. Jca: "res/boom.wav",
  44399. dP: "res/choose.wav",
  44400. tda: "res/fall.wav",
  44401. Fda: "res/fly.wav",
  44402. vja: "res/kiss.wav",
  44403. Dca: "res/arrow.png",
  44404. Jea: "res/hand.png",
  44405. z1: "res/lips.png"
  44406. },
  44407. De = [I.Mfa, I.XR, I.t_, I.Z1, I.R0, I.xH],
  44408. Ee = [I.XR, I.t_, I.Rca, I.Bxa, I.Cxa, I.Lia, I.Ffa, I.e4, I.f4, I.vga, I.uga, I.Gfa, I.ofa, I.LDa, I.dP, I.tda, I.vja, I.Jca, I.Fda, I.Dca, I.Jea, I.z1];
  44409. var Fe = 640,
  44410. Ge = 960,
  44411. Y = 1,
  44412. He = 1,
  44413. Ie = "\u4e07\u4e07\u6ca1\u60f3\u5230\uff0c\u6211\u6454\u6b7b\u4e86 \u64e6\u64e6\uff0c\u6211\u5c45\u7136\u6b7b\u4e86 \u6211\u60f3\u518d\u6d3b500\u5e74 \u4e8c\u5341\u5e74\u540e\u53c8\u662f\u6761\u597d\u866b \u751f\u7684\u4f1f\u5927\uff0c\u6b7b\u7684\u60e8\u70c8 \u7b56\u5212\uff0c\u6211\u4eec\u6765\u8c08\u8c08\u4eba\u751f".split(" "),
  44414. Je = [125, 4500, 12E3, 15E3, 18E3, 21E3, 24E3, 27E3, 3E4, 33E3, 39E3, 41E3, 43E3, 45E3, 47E3, 49E3, 50816],
  44415. Ke = "\u4f60\u9017\u6211\u73a9\u5462\uff1f \u5c31\u8fd9\u6210\u7ee9\uff0c\u6d17\u6d17\u7761\u5427 \u8bf4\u51fa\u53bb\u90fd\u662f\u6cea\uff01 \u7ee7\u7eed\u52aa\u529b\u5427\uff01 \u9e1f\u98de\u5f97\u90fd\u6bd4\u4f60\u9ad8\uff01 \u4f60\u6bd4\u9e1f\u98de\u5f97\u9ad8\u4e86 \u98de\u884c\u59ff\u52bf\u4e0d\u5bf9\uff0c\u91cd\u98de \u98de\u884c\u59ff\u52bf\u4e0d\u9519\u54e6 \u6e10\u5165\u4f73\u5883 \u6709\u70b9\u5b9e\u529b \u8d85\u8d76\u5927\u90e8\u5206\u4eba \u7ed9\u4f60\u70b9\u8d5e \u518d\u6765\u4e00\u6b21 \u53ef\u4ee5\u5f00\u8bfe\u6559\u98de\u4e86 \u5f00\u6302\u4e86\u5427\uff01 \u79bb\u795e\u53ea\u6709\u4e00\u6b65 \u819c\u62dc\u5927\u795e\u554a\uff01".split(" "),
  44416. Le = [0, 2, 5, 7, 10, 13, 16, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39],
  44417. Me = "\u4f60\u662f\u7334\u5b50\u6d3e\u6765\u7684\u9017\u6bd4\u5417\uff1f;\u5c0f\u660e\u7ad9\u8d77\u6765\uff01;\u4f1a\u98de\u7684\u4e0d\u4e00\u5b9a\u662f\u8d85\u4eba\uff0c\u8fd8\u6709\u53ef\u80fd\u662f\u9e1f\u4eba;zuo\u6bd4\u5012\u602a\u6b7b\u5f97\u5feb;\u6218\u4e94\u661f\u7684\u6e23\u6e23;\u653e\u5b66\u522b\u8d70\uff0c\u300a\u65b0\u795e\u66f2\u300b\u548c\u4f60\u5355\u6311;\u5206\u6570\u592a\u4f4e\uff0c\u6012\u7838\u624b\u673a\u5427\uff01;\u4e8c\u5e08\u5144\uff0c\u4f60\u98de\u7684\u6bd4\u5927\u5e08\u5144\u90fd\u9ad8;\u8001\u6e7f\uff0c\u4e0dgelivable\u5440;\u4f4e\u5206\u515a\uff0c\u54ed\u6655\u5728\u5395\u6240;\u6218\u4e94\u6e23\uff0c\u5b8c\u8d25\u65b0\u795e\u66f2\u5e7f\u573a\u821edama;\u8981\u8ba9\u6240\u6709\u4eba\u77e5\u9053\uff0c\u65b0\u795e\u66f2\u88ab\u4f60\u627f\u5305\u4e86;\u65b0\u795e\u66f2\u73a9\u5f97\u8fd9\u4e48\u597d\u4e00\u5b9a\u662f\u9e1f\u4e0d\u62c9\u5c4e\u5927\u738b;\u9e1f\u4eba\u7ec8\u4e00\u6b7b\uff0c\u6216\u91cd\u4e8e\u9e3f\u6bdb\u6216\u91cd\u4e8e\u5176\u4ed6\u6bdb;\u98de\u7684\u597d\u9ad8\uff0c\u4f60\u7684\u80a5\u7682\u6389\u4e86;\u5438\u4e00\u53e3\u96fe\u973e\uff0c\u91cd\u5934\u518d\u6765;\u836f\u4e0d\u80fd\u505c;\u81ea\u4ece\u5403\u4e86\u65b0\u795e\u66f2\u7075\u836f\uff0c\u7cbe\u795e\u75c5\u8d8a\u6765\u8d8a\u597d;\u60f3\u8d77\u5728\u5929\u7a7a\u4e0b\u98de\u884c\uff0c\u90a3\u662f\u6211\u901d\u53bb\u7684\u9752\u6625;\u98a4\u6296\u5427\uff0c\u4eba\u7c7b;\u5206\u4f4e\u966a\u4f60\u4e1c\u5c71\u518d\u8d77\uff1b\u5206\u9ad8\u7838\u70c2\u4f60\u624b\u673a;\u65b0\u795e\u66f2\u53cb\u60c5\u63d0\u793a\uff1a\u5929\u53f0\u5df2\u6ee1\uff0c\u8bf7\u5230\u6cb3\u8fb9;No zuo no die;\u5f85\u4f60\u957f\u53d1\u53ca\u8170\uff0c\u51e4\u59d0\u5ac1\u4f60\u53ef\u597d\uff1f;\u6253\u8d25\u4f60\u7684\u4e0d\u662f\u5929\u771f\uff0c\u662f\u6ca1\u7535;\u770b\uff0c\u5929\u4e0a\u6709\u9e1f\u4eba;\u4e14\u98de\u4e14\u73cd\u60dc;\u4e09\u4ef6\u4e8b\u62db\u4eba\u6068\uff0c\u5206\u9ad8\uff0c\u5904\u5973\u5ea7\uff0c\u6ca1\u73a9\u65b0\u795e\u66f2;\u5931\u8282\u4e8b\u5c0f\uff0c\u6454\u6b7b\u4e8b\u5927;\u6012\u4e0b\u65b0\u795e\u66f2\uff0c\u53ef\u5f97\u6ee1\u5206;\u6211\u52d2\u4e2a\u64e6\uff0c\u8fd9\u5206\u6570\u633a\u5e26\u611f\u5440;\u6709\u7fc5\u8180\u7684\u4e0d\u4e00\u5b9a\u662f\u5929\u4f7f\uff0c\u4e5f\u6709\u53ef\u80fd\u662f\u9e1f\u4eba;\u54e5\u98de\u7684\u7684\u4e0d\u662f\u65b0\u795e\u66f2\u5929\u7a7a\u4e4b\u57ce\uff0c\u662f\u9017\u6bd4;\u597d\u9ad8\u7684\u5206\uff0c\u597d\u5389\u5bb3\u601d\u5bc6\u8fbe;\u98de\u518d\u9ad8\uff0c\u4f60\u4e5f\u4e0a\u4e0d\u4e86\u5934\u6761;\u597d\u9ad8\u7684\u5206\u6570 \u67e5\u6c34\u8868\uff0c\u8bf7\u5f00\u95e8;\u5173\u516c\u6218\u79e6\u743c\uff0czuo\u6bd4\u6218dou\u6bd4;\u4f60\u6709\u672c\u4e8b\u73a9\u9ad8\u5206\u4eba \u4f60\u6709\u672c\u4e8b\u5f00\u95e8\u5440;\u597d\u9ad8\u7684\u5206\uff0c\u4f60\u8fc7\u6765 \u6211\u4fdd\u8bc1\u4e0d\u6253\u6b7b\u4f60\uff01".split(";");
  44418. var Ne = C.qe.extend({
  44419. AA: s,
  44420. j: function() {
  44421. if (this._super()) {
  44422. winSize = C.Q.aa;
  44423. var c = C.gd.create(C.color(0, 0, 0, 230), winSize.width, winSize.height);
  44424. this.q(c, 100);
  44425. var d = C.u.create(I.Dca);
  44426. d.x = winSize.width - 5;
  44427. d.y = winSize.height;
  44428. d.anchorX = 1;
  44429. d.anchorY = 1;
  44430. d.scale = 0.8;
  44431. c.q(d, 2);
  44432. d = C.fa.create("请点击右上角菜单\n \n分享给小伙伴哦~", "Arial", 16, C.size(200, 260), C.Fs);
  44433. d.dj({
  44434. x: winSize.width / 2,
  44435. y: 160,
  44436. anchorX: 0.5,
  44437. anchorY: 0.5,
  44438. fillStyle: C.color(255, 255, 255, 255)
  44439. });
  44440. c.q(d, 10);
  44441. this.AA = C.Oa.create({
  44442. event: C.Oa.Gs,
  44443. yy: q,
  44444. nc: B(q),
  44445. cd: function(c, d) {
  44446. d.Cf.getParent().Lm(q)
  44447. }
  44448. });
  44449. C.Ka.addListener(this.AA, c);
  44450. return q
  44451. }
  44452. return t
  44453. },
  44454. Na: function() {
  44455. C.Ka.removeListener(this.AA);
  44456. this._super()
  44457. },
  44458. B0a: function() {
  44459. this.Lm(q)
  44460. }
  44461. });
  44462. Ne.create = function() {
  44463. var c = new Ne;
  44464. return c && c.j() ? c: s
  44465. };
  44466. var Ze = C.qe.extend({
  44467. Ua: s,
  44468. xL: s,
  44469. Hf: 0,
  44470. ce: [],
  44471. zb: 4,
  44472. zq: 6,
  44473. or: 0,
  44474. Ss: s,
  44475. Ts: s,
  44476. gX: q,
  44477. Xj: s,
  44478. pr: s,
  44479. fX: q,
  44480. lf: 0,
  44481. zt: s,
  44482. Hf: 0,
  44483. Kba: 0,
  44484. Gn: 0,
  44485. tp: s,
  44486. Zv: s,
  44487. ur: s,
  44488. Yz: 0,
  44489. Bt: s,
  44490. ZOa: s,
  44491. sp: s,
  44492. Kr: s,
  44493. Ir: s,
  44494. Dba: s,
  44495. Uq: s,
  44496. aPa: s,
  44497. APa: 2,
  44498. Wk: s,
  44499. j: function() {
  44500. var c = t;
  44501. this._super() && (winSize = C.Q.aa, C.Fe.Lr("res/char.plist", "res/char.png"), this.xL = C.gd.create(C.color(255, 255, 255, 255), winSize.width, winSize.height), this.xL.anchorX = 0, this.xL.anchorY = 0, this.q(this.xL, 0, 1), this.tp = C.u.create(I.XR), this.tp.x = winSize.width / 2, this.tp.y = winSize.height - 45 * He, this.tp.anchorY = 1, this.tp.scale = 0.4 * Y, this.q(this.tp, 2), c = C.gd.create(C.color(0, 0, 0, 255), 5, winSize.height), c.anchorX = 0, c.anchorY = 0, this.q(c, 1), c = C.gd.create(C.color(0, 0, 0, 255), 5, winSize.height), c.anchorX = 1, c.anchorY = 0, c.x = winSize.width - 5, this.q(c, 1), this.Ua = C.u.create(C.Fe.nh("char1.png")), this.Ua.anchorY = 0, this.Ua.x = winSize.width / 2, this.Ua.y = -2, this.Ua.scale = 0.8 * Y, this.Ua.rotation = -18, this.q(this.Ua, 2, 8), this.ur = C.u.create(I.Lia), this.ur.anchorY = 1, this.ur.x = this.Ua.x + 4 * Y, this.ur.y = -1, this.ur.scale = 0.8 * Y, this.q(this.ur, 2), this.Zv = C.u.create(I.Dda), this.Zv.anchorX = 0, this.Zv.y = 5, this.Zv.scale = Y, this.q(this.Zv, 0, 2), this.KCa(), this.OCa(), this.LCa(), this.MCa(), "mouse" in C.Sc.uH && C.Ka.addListener({
  44502. event: C.Oa.tv,
  44503. JI: function(c) {
  44504. c.AV == C.$e.eka && c.Cf.xga(c)
  44505. }
  44506. },
  44507. this), C.Sc.uH.hasOwnProperty("touches") && C.Ka.addListener({
  44508. m1a: -1,
  44509. event: C.Oa.TK,
  44510. HC: function(c, f) {
  44511. f.Cf.xga(c[0])
  44512. }
  44513. },
  44514. this), this.rg(this.gja, 0.1), c = q);
  44515. return c
  44516. },
  44517. xga: function() {
  44518. 4 === this.zb ? (this.Zh(this.gja), this.zb = 5, this.Xj.visible = q, this.pr.visible = q, this.Uq.x = winSize.width - 84 * Y, this.Uq.flippedX = q, this.rg(this.kja, 0.01)) : 5 === this.zb && (this.or = this.Xj.wn, this.Uq.visible = t, this.zb = 1, this.Zh(this.kja), this.CEa())
  44519. },
  44520. KCa: function() {
  44521. for (var c = 0; 5 > c; ++c) this.ce[c] = C.u.create(I.Rca),
  44522. this.ce[c].x = -100 * Y,
  44523. this.ce[c].y = -100 * Y,
  44524. this.ce[c].scale = Y,
  44525. this.q(this.ce[c], 0, 100 + c);
  44526. this.ce[0].x = 120 * Y;
  44527. this.ce[0].y = winSize.height - 40 / He;
  44528. this.ce[1].x = winSize.width - 45 * Y;
  44529. this.ce[1].y = winSize.height - 120 * He
  44530. },
  44531. OCa: function() {
  44532. var c = C.u.create("res/height.png");
  44533. c.anchorX = 0;
  44534. c.x = 10 * Y;
  44535. c.y = winSize.height - 30 * He;
  44536. c.scale = 1.5 * Y;
  44537. this.q(c, 2);
  44538. this.zt = C.Gl.create("::::0", "res/num.png", 32, 34, "0");
  44539. this.q(this.zt, 2, 101);
  44540. this.zt.anchorX = 0;
  44541. this.zt.x = 135 * Y;
  44542. this.zt.y = winSize.height - 62 * He;
  44543. this.zt.scale = 1.2 * Y;
  44544. c = C.u.create("res/m.png");
  44545. c.anchorX = 0;
  44546. c.x = 328 * Y;
  44547. c.y = winSize.height - 30 * He;
  44548. c.scale = 1.5 * Y;
  44549. this.q(c, 2)
  44550. },
  44551. LCa: function() {
  44552. this.Ss = C.u.create(I.Nwa);
  44553. this.Ss.x = 80 * Y;
  44554. this.Ss.y = 70 * Y;
  44555. this.Ss.scale = 1 * Y;
  44556. this.q(this.Ss, 2, 1001);
  44557. this.Ts = C.u.create(I.Mwa);
  44558. this.Ts.x = 80 * Y;
  44559. this.Ts.y = 26 * Y;
  44560. this.Ts.anchorY = 0.08;
  44561. this.Ts.scale = 1 * Y;
  44562. this.q(this.Ts, 2, 1002);
  44563. this.pr = C.u.create(I.vga);
  44564. this.pr.x = winSize.width - 40 * Y;
  44565. this.pr.y = 25 * Y;
  44566. this.pr.anchorY = 0;
  44567. this.pr.scale = 1 * Y;
  44568. this.q(this.pr, 2, 1003);
  44569. this.pr.visible = t;
  44570. this.Xj = C.Lb.create(C.u.create(I.uga));
  44571. this.Xj.type = C.Lb.Is;
  44572. this.Xj.midPoint = C.d(1, 0);
  44573. this.Xj.barChangeRate = C.d(0, 1);
  44574. this.Xj.x = winSize.width - 40 * Y;
  44575. this.Xj.y = 25 * Y;
  44576. this.Xj.anchorY = 0;
  44577. this.Xj.scale = 1 * Y;
  44578. this.q(this.Xj, 2, 1004);
  44579. this.Xj.visible = t;
  44580. this.Uq = C.u.create(I.Jea);
  44581. this.Uq.x = this.Ss.x + 85 * Y;
  44582. this.Uq.y = this.Ss.y - 5 * Y;
  44583. this.Uq.scale = Y;
  44584. this.q(this.Uq, 2, 1005);
  44585. var c = C.ae.create(0.4, 1.15 * Y),
  44586. d = C.ae.create(0.4, 0.85 * Y),
  44587. c = C.La.create(c, d);
  44588. this.Uq.Ya(c.cR())
  44589. },
  44590. MCa: function() {
  44591. this.Bt = C.u.create(I.Ffa);
  44592. this.Bt.x = winSize.width / 2 + 75;
  44593. this.Bt.y = 60;
  44594. this.Bt.scale = Y;
  44595. this.q(this.Bt, 2);
  44596. this.Bt.visible = t
  44597. },
  44598. Eia: function() {
  44599. this.sp = C.u.create(I.FDa);
  44600. this.sp.x = winSize.width / 2;
  44601. this.sp.y = winSize.height / 2;
  44602. this.sp.scale = Y;
  44603. this.q(this.sp, 2);
  44604. var c = gd.create();
  44605. c.scale = 1.5;
  44606. c.vh(q);
  44607. c.oy(q);
  44608. c.pj(I.xH, I.xH, "");
  44609. c.x = 480;
  44610. c.y = 310;
  44611. c.uB(this.zEa, this);
  44612. this.sp.q(c, 10, 89);
  44613. this.Ir = gd.create();
  44614. this.Ir.scale = 0.95;
  44615. this.Ir.vh(q);
  44616. this.Ir.oy(q);
  44617. this.Ir.pj(I.e4, I.e4, "");
  44618. this.Ir.x = 135;
  44619. this.Ir.y = 60;
  44620. this.Ir.uB(this.OEa, this);
  44621. this.sp.q(this.Ir, 10, 90);
  44622. this.Kr = gd.create();
  44623. this.Kr.scale = 0.95;
  44624. this.Kr.vh(q);
  44625. this.Kr.oy(q);
  44626. this.Kr.pj(I.f4, I.f4, "");
  44627. this.Kr.x = 365;
  44628. this.Kr.y = 60;
  44629. this.Kr.uB(this.PEa, this);
  44630. this.sp.q(this.Kr, 10, 91);
  44631. var c = "\u98de\u884c" + this.lf + "\u7c73\uff0c" + this.aea(this.lf),
  44632. d = C.fa.create(c, "Arial", 30, C.size(430, 360), C.dz);
  44633. d.dj({
  44634. x: 230,
  44635. y: 100,
  44636. anchorX: 0.5,
  44637. anchorY: 0.5,
  44638. fillStyle: C.color(0, 0, 0, 255)
  44639. });
  44640. 13 < c.length && (d.y = 112);
  44641. this.sp.q(d, 10)
  44642. },
  44643. zEa: function(c, d) {
  44644. (this.removeChild(this.sp, q), We.KC(De,
  44645. function() {
  44646. C.Q.PC(new Xe.x2)
  44647. },
  44648. this))
  44649. },
  44650. OEa: function(c, d) {
  44651. this.zEa(c,d);
  44652. },
  44653. PEa: function(c, d) {
  44654. clickMore();
  44655. },
  44656. CEa: function() {
  44657. this.rxa();
  44658. this.Hf = 10 * this.or;
  44659. this.Gn = this.Hf * Math.cos(0.017453293 * this.zq);
  44660. this.Kba = this.Hf * Math.sin(0.017453293 * this.zq);
  44661. 0 > this.Gn && (this.Gn *= -1)
  44662. },
  44663. gja: function() {
  44664. this.gX ? (this.zq += 6, 45 < this.zq && (this.gX = t)) : (this.zq -= 6, -45 > this.zq && (this.gX = q));
  44665. this.Ts.rotation = this.zq
  44666. },
  44667. kja: function() {
  44668. this.fX ? (this.or += 5, 99 < this.or && (this.fX = t)) : (this.or -= 5, 1 > this.or && (this.fX = q));
  44669. this.Xj.X2(this.or)
  44670. },
  44671. SIa: function() {
  44672. this.Ua.pc(C.Fe.nh("charfly" + Math.round(3 * Math.random() + 1) + ".png"));
  44673. this.Ua.rotation = 0;
  44674. Ye(I.Fda, q);
  44675. this.rg(this.nja, 0.025);
  44676. this.rg(this.mja, 0.8)
  44677. },
  44678. nja: function() {
  44679. if (this.Ua.y < winSize.height / 2 - 50 * He) {
  44680. if (this.Ua.y + 0.2 * this.Gn > winSize.height / 2 - 50 * He) {
  44681. this.Ua.y = winSize.height / 2 - 50 * He;
  44682. for (var c = 0; 5 > c; c++) this.ce[c].visible = q;
  44683. this.tp.scale = 0.4 * Y;
  44684. this.Zv.visible = t
  44685. } else this.Ua.y += 0.2 * this.Gn;
  44686. this.ur.y = this.Ua.y
  44687. } else for (c = 0; 5 > c; c++) - 10 > this.ce[c].y && 0.5 < Math.random() ? (this.ce[c].y = winSize.height + 10, this.ce[c].x = Math.round(Math.random() * winSize.width), this.ce[c].scale = 0.6 * Math.random(), this.ce[c].flippedX = 0.5 < Math.random() ? q: t) : this.ce[c].y -= 0.2 * 0.2 * this.Gn;
  44688. this.Ua.x += 0.1 * (0.2 * this.Kba) * Y;
  44689. this.ur.x = this.Ua.x;
  44690. this.tp.scale = 0.2 * (this.lf / 5E4) + 0.4 * Y;
  44691. this.lf += 0.2 * this.Gn - 0.2;
  44692. this.zt.sa(this.Wb(Math.round(this.lf)));
  44693. this.Gn -= 2;
  44694. 0 > this.Gn && (49999 < this.lf && (this.lf = 50815, this.zt.sa(this.Wb(Math.round(this.lf)))), this.aga());
  44695. if (this.Ua.x > winSize.width - 15 || 15 > this.Ua.x) this.Ua.x = 15 > this.Ua.x ? 15 : winSize.width - 15,
  44696. this.aga()
  44697. },
  44698. mja: function() {
  44699. this.Ua.pc(C.Fe.nh("charfly" + Math.round(3 * Math.random() + 1) + ".png"))
  44700. },
  44701. rxa: function() {
  44702. var c = C.Ds.create(0.3, 8),
  44703. d = c.reverse(),
  44704. c = C.La.create(c, d);
  44705. this.Ua.Ya(c.cR());
  44706. this.rg(this.YIa, 1, t)
  44707. },
  44708. YIa: function() {
  44709. this.Ua.yk();
  44710. this.sxa();
  44711. Ye(I.Jca)
  44712. },
  44713. sxa: function() {
  44714. this.Ua.pc(C.Fe.nh("char2.png"));
  44715. var c = C.Av.create(0.3, 1.2),
  44716. d = c.reverse(),
  44717. c = C.La.create(c, d);
  44718. this.Ua.Ya(c);
  44719. this.rg(this.XIa, 0.4, t)
  44720. },
  44721. XIa: function() {
  44722. this.Ua.yk();
  44723. this.Ss.visible = t;
  44724. this.Ts.visible = t;
  44725. this.Xj.visible = t;
  44726. this.pr.visible = t;
  44727. this.SIa()
  44728. },
  44729. Wb: function(c) {
  44730. return 10 > c ? "::::" + c: 100 > c ? ":::" + c: 1E3 > c ? "::" + c: 1E4 > c ? ":" + c: "" + c
  44731. },
  44732. aea: function(c) {
  44733. for (var d = 0; 17 > d; ++d) if (c < Je[d]) return Ke[d];
  44734. return "error"
  44735. },
  44736. B0: function(c) {
  44737. for (var d = 0; 16 > d && !(c < Je[d]); ++d);
  44738. return Me[Math.round(Math.random() * (Le[d + 1] - Le[d] - 1)) + Le[d]]
  44739. },
  44740. aga: function() {
  44741. this.Zh(this.nja);
  44742. this.Zh(this.mja);
  44743. this.ur.visible = t;
  44744. 49E3 < this.lf ? (this.finish(), Ye(I.vja)) : (Ye(I.tda), this.Ua.pc(C.Fe.nh("charfly4.png")), this.Ua.flippedY = q, this.rg(this.uda, 0.1))
  44745. },
  44746. uda: function() {
  44747. if (4 > this.Ua.y) this.Zh(this.uda),
  44748. this.finish();
  44749. else {
  44750. if (this.Ua.y > winSize.height / 2 - 50 * He && 5 > this.Yz) {
  44751. for (var c = 0; 5 > c; c++) - 10 > this.ce[c].y && 0.5 < Math.random() ? (this.ce[c].y = winSize.height + 10, this.ce[c].x = Math.round(Math.random() * winSize.width), this.ce[c].scale = Math.random() * Y, this.ce[c].flippedX = 0.5 < Math.random() ? q: t) : this.ce[c].y += this.Yz;
  44752. this.tp.scale -= this.Yz / 100
  44753. } else this.Ua.y < winSize.height / 2 - 60 && (this.Zv.visible = q),
  44754. this.Ua.y -= this.Yz;
  44755. this.Yz += 1
  44756. }
  44757. },
  44758. finish: function() {
  44759. dp_submitScore(Math.round(this.lf) );
  44760. for (var c = 0; 5 > c; c++) this.ce[c].visible = t;
  44761. console.dir("我在《新神曲》“zuo比飞越天空之城”中,飞行" + Math.round(this.lf) + "\u7c73\uff0c" + this.aea(this.lf) + "\u3010" + this.B0(this.lf) + "\u3011");
  44762. console.dir("\u98de\u884c" + Math.round(this.lf) + "\u7c73\u3010" + this.B0(this.lf) + "\u3011");
  44763. console.dir( "我在zuo比飞越天空之城”,你敢挑战我吗?");
  44764. if (49001 > this.lf) this.Bt.visible = q,
  44765. c = C.fa.create(Ie[Math.round(5 * Math.random())], "Arial", 25, C.size(180, 120), C.dz),
  44766. c.dj({
  44767. x: 118,
  44768. y: 65,
  44769. anchorX: 0.5,
  44770. anchorY: 0.5,
  44771. fillStyle: C.color(0, 0, 0, 255)
  44772. }),
  44773. this.Bt.q(c, 30),
  44774. this.lf = Math.round(this.lf),
  44775. this.Eia();
  44776. else {
  44777. c = C.u.create(I.Gfa);
  44778. c.x = winSize.width / 2;
  44779. c.y = winSize.height - 90 * Y;
  44780. c.scale = 0.42;
  44781. this.q(c, 1);
  44782. c = C.di.create(I.ofa, C.rect(0, 0, 130, 130));
  44783. this.Ua.pc(c);
  44784. this.Ua.x = winSize.width / 2;
  44785. this.Ua.y = winSize.height - 155 * Y;
  44786. this.Ua.flippedY = t;
  44787. this.rg(this.NDa, 0.5);
  44788. this.Wk = C.u.create(I.z1);
  44789. this.Wk.x = winSize.width / 2;
  44790. this.Wk.y = winSize.height - 115 * Y;
  44791. this.Wk.scale = 0.1;
  44792. this.Wk.visible = t;
  44793. this.q(this.Wk, 10);
  44794. this.cm = [];
  44795. for (c = 0; 5 > c; ++c) this.cm[c] = C.u.create(I.z1),
  44796. this.cm[c].x = winSize.width / 2,
  44797. this.cm[c].y = winSize.height - 115 * Y,
  44798. this.cm[c].scale = 0.2,
  44799. this.q(this.cm[c], 5);
  44800. this.rg(this.Eda, 0.2)
  44801. }
  44802. },
  44803. SV: 0,
  44804. A9: 0,
  44805. Eda: function() {
  44806. for (var c = 0; 5 > c; ++c) this.cm[c].x += 20 * Math.sin(15 * (c - 2)),
  44807. this.cm[c].y += 20 * Math.cos(15 * (c - 2));
  44808. this.SV++;
  44809. if (2 <= this.A9) {
  44810. for (c = 0; 5 > c; ++c) this.cm[c].visible = t;
  44811. this.Zh(this.Eda);
  44812. this.Wk.visible = q;
  44813. this.rg(this.pfa, 0.16)
  44814. }
  44815. if (6 <= this.SV) {
  44816. this.SV = 0;
  44817. this.A9++;
  44818. for (c = 0; 5 > c; ++c) this.cm[c].x = winSize.width / 2,
  44819. this.cm[c].y = winSize.height - 115 * Y
  44820. }
  44821. },
  44822. pfa: function() {
  44823. this.Wk.y -= 10;
  44824. this.Wk.scale += 0.15;
  44825. 2 < this.Wk.scale && this.rg(this.MDa, 0.8, t)
  44826. },
  44827. MDa: function() {
  44828. this.Wk.visible = t;
  44829. this.lf = Math.round(this.lf);
  44830. this.Eia();
  44831. this.Zh(this.pfa)
  44832. },
  44833. lX: 1,
  44834. NDa: function() {
  44835. this.lX = 1 === this.lX ? 2 : 1;
  44836. this.Ua.pc(C.Fe.nh("kiss" + this.lX + ".png"))
  44837. }
  44838. });
  44839. Ze.create = function() {
  44840. var c = new Ze;
  44841. return c && c.j() ? c: s
  44842. };
  44843. Ze.x2 = function() {
  44844. var c = C.Ll.create(),
  44845. d = Ze.create();
  44846. c.q(d, 1);
  44847. return c
  44848. };
  44849. MyParticleExplosion = C.B.extend({
  44850. j: function() {
  44851. return this.Hb(15)
  44852. },
  44853. Hb: function(c) {
  44854. return C.B.prototype.Hb.call(this, c) ? (this.Wh(C.B.$m), this.rk(C.B.rc), this.oc(C.d(0, 0)), this.Xh(94), this.yj(43), this.wj( - 57), this.xj(17.55), this.no(144.37), this.oo( - 187.61), this.ok(114), this.pk(175), c = C.Q.aa, this.p(c.width / 2, c.height / 2), this.vk(C.d(0, 0)), this.tk(1.8), this.uk(0.38), this.tg(C.color(255, 0, 0, 250)), this.zj(C.color(0, 0, 0, 0)), this.sg(C.color(255, 0, 0, 200)), this.uj(C.color(0, 0, 0, 0.09)), this.wk(50), this.xk(20), this.sk(100), this.R2(20), this.qk(this.wc / this.Rr()), this.Nm(t), q) : t
  44855. }
  44856. });
  44857. MyParticleExplosion.create = function() {
  44858. var c = new MyParticleExplosion;
  44859. return c.j() ? c: s
  44860. };
  44861. function Ye(c, d) {
  44862. try {
  44863. C.ud.cD(),
  44864. d ? C.ud.Zx(c, q) : C.ud.Zx(c)
  44865. } catch(f) {}
  44866. }
  44867. var Xe = C.qe.extend({
  44868. Ua: s,
  44869. zb: 0,
  44870. nr: s,
  44871. Xq: s,
  44872. j: function() {
  44873. var c = t;
  44874. if (this._super()) {
  44875. winSize = C.Q.aa;
  44876. console.dir("init");
  44877. c = C.gd.create(C.color(255, 255, 255, 255), winSize.width, winSize.height);
  44878. c.anchorX = 0;
  44879. c.anchorY = 0;
  44880. this.q(c, 0, 1);
  44881. c = C.u.create(I.XR);
  44882. c.dj({
  44883. x: winSize.width / 2,
  44884. y: winSize.height - 130 * He,
  44885. scaleX: Y,
  44886. scaleY: He
  44887. });
  44888. this.q(c, 2);
  44889. c = C.u.create(I.Mfa);
  44890. c.dj({
  44891. x: winSize.width / 2,
  44892. y: winSize.height - 310 * He,
  44893. scaleX: Y,
  44894. scaleY: He
  44895. });
  44896. this.q(c, 3);
  44897. c = C.gd.create(C.color(0, 0, 0, 255), 5, winSize.height);
  44898. c.anchorX = 0;
  44899. c.anchorY = 0;
  44900. this.q(c, 1);
  44901. c = C.gd.create(C.color(0, 0, 0, 255), 5, winSize.height);
  44902. c.anchorX = 1;
  44903. c.anchorY = 0;
  44904. c.x = winSize.width - 5;
  44905. this.q(c, 1);
  44906. this.nr = gd.create();
  44907. this.nr.scale = 1 * He;
  44908. this.nr.vh(q);
  44909. this.nr.oy(q);
  44910. this.nr.pj(I.Z1, I.Z1, "");
  44911. this.nr.x = winSize.width / 2;
  44912. this.nr.y = winSize.height / 2 - 45 * He;
  44913. this.nr.uB(this.KEa, this);
  44914. this.q(this.nr);
  44915. this.Xq = gd.create();
  44916. this.Xq.scale = 1 * He;
  44917. this.Xq.vh(q);
  44918. this.Xq.oy(q);
  44919. this.Xq.pj(I.R0, I.R0, "");
  44920. this.Xq.x = winSize.width / 2;
  44921. this.Xq.y = winSize.height / 2 - 170 * He;
  44922. this.Xq.uB(this.JEa, this);
  44923. this.q(this.Xq);
  44924. this.Ua = C.u.create(I.t_);
  44925. this.Ua.anchorY = 0;
  44926. this.Ua.x = winSize.width / 2;
  44927. this.Ua.y = -2;
  44928. this.Ua.scale = Y;
  44929. this.Ua.rotation = -18;
  44930. this.q(this.Ua, 2, 8);
  44931. var c = C.Ds.create(4, 30),
  44932. d = c.reverse(),
  44933. c = C.La.create(c, d);
  44934. this.Ua.Ya(c.cR());
  44935. c = C.u.create(I.Dda);
  44936. c.anchorX = 0;
  44937. c.y = 5;
  44938. c.scale = Y;
  44939. this.q(c, 0, 2);
  44940. c = q
  44941. }
  44942. return c
  44943. },
  44944. KEa: function(c, d) {
  44945. console.dir(c);
  44946. console.dir(d);
  44947. d == J.UK && Ye(I.dP);
  44948. d == J.Eo && 0 === this.zb && We.KC(Ee,
  44949. function() {
  44950. var c = C.Ll.create();
  44951. c.q(Ze.create());
  44952. C.Q.PC(c)
  44953. },
  44954. this)
  44955. },
  44956. JEa: function(c, d) {
  44957. clickMore();
  44958. return;
  44959. d == J.UK && Ye(I.dP);
  44960. if (d == J.Eo && 0 === this.zb) {
  44961. this.zb = 3;
  44962. var f = C.u.create(I.FCa);
  44963. f.x = winSize.width / 2;
  44964. f.y = winSize.height / 2 - 40 * He;
  44965. f.scale = Y;
  44966. this.q(f, 10, 88);
  44967. var g = gd.create();
  44968. g.scale = 3 * Y;
  44969. g.vh(q);
  44970. g.oy(q);
  44971. g.pj(I.xH, I.xH, "");
  44972. g.x = f.x + 210 / Y;
  44973. g.y = f.y + 90 / He;
  44974. g.uB(this.yEa, this);
  44975. this.lj(88).q(g, 10, 89)
  44976. }
  44977. },
  44978. yEa: function(c, d) {
  44979. d == J.UK && Ye(I.dP);
  44980. d == J.Eo && (this.zb = 0, this.$Q(88, Boolean))
  44981. }
  44982. });
  44983. Xe.create = function() {
  44984. var c = new Xe;
  44985. return c && c.j() ? c: s
  44986. };
  44987. Xe.x2 = function() {
  44988. var c = C.Ll.create(),
  44989. d = Xe.create();
  44990. c.q(d);
  44991. return c
  44992. };
  44993. var We = C.Ll.extend({
  44994. Zq: s,
  44995. $F: 0,
  44996. Vv: 0,
  44997. ee: s,
  44998. qa: "LoadingScene",
  44999. j: function() {
  45000. var c = this.xV = C.gd.create(C.color(32, 32, 32, 255));
  45001. c.p(C.ts.bP);
  45002. this.q(c, 0);
  45003. var d = this.ee = C.fa.create("Loading... 0%", "Arial", 24);
  45004. d.p(C.ho(C.ts.vH, C.d(0, 0)));
  45005. d.G(C.color(180, 180, 180));
  45006. c.q(this.ee, 10);
  45007. return q
  45008. },
  45009. $$: function(c, d) {
  45010. var f = this.Rva = new C.Ma;
  45011. f.Ng(c);
  45012. f.Md();
  45013. f = this.Cta = C.u.create(f);
  45014. f.Za(C.Ec());
  45015. f.x = d.x;
  45016. f.y = d.y;
  45017. this.xV.q(f, 10)
  45018. },
  45019. Z: function() {
  45020. C.A.prototype.Z.call(this);
  45021. this.rg(this.MG, 0.3)
  45022. },
  45023. Na: function() {
  45024. C.A.prototype.Na.call(this);
  45025. this.ee.sa("Loading... 0%")
  45026. },
  45027. X0: function(c, d) {
  45028. "string" == typeof c && (c = [c]);
  45029. this.s2 = c || [];
  45030. this.mg = d
  45031. },
  45032. MG: function() {
  45033. var c = this;
  45034. c.Zh(c.MG);
  45035. var d = c.s2;
  45036. c.$F = d.length;
  45037. c.Vv = 0;
  45038. C.M.load(d,
  45039. function(d, g) {
  45040. c.Vv = g
  45041. },
  45042. function() {
  45043. c.mg && c.mg()
  45044. });
  45045. c.rg(c.bH)
  45046. },
  45047. bH: function() {
  45048. var c = this.Vv,
  45049. d = this.$F,
  45050. f;
  45051. f = Math.min(100 * (c / d) | 0, 100);
  45052. this.ee.sa("Loading... " + f + "%");
  45053. c >= d && this.Zh(this.bH)
  45054. }
  45055. });
  45056. We.KC = function(c, d) {
  45057. this.Zl || (this.Zl = new We, this.Zl.j());
  45058. this.Zl.X0(c, d);
  45059. C.Q.PC(this.Zl);
  45060. return this.Zl
  45061. };
  45062. C.qf.Vp = function() {
  45063. C.view.Ewa(q);
  45064. 640 > window.innerWidth && (Fe = window.innerWidth);
  45065. Ge = 0.7656 * window.innerHeight;
  45066. Y = Fe / 640;
  45067. He = Ge / 960;
  45068. C.view.M2(Fe, Ge, C.Ej.MK);
  45069. C.view.EGa(q);
  45070. We.KC(De,
  45071. function() {
  45072. C.Q.PC(new Xe.x2)
  45073. },
  45074. this)
  45075. };
  45076. C.qf.HGa();